/* Traffic Sound Guardian: a quiet instrument for real sound, not decorative telemetry.
   Design process: Unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   https://github.com/heydamir/unslop
   This layer changes presentation only; legacy control IDs and state contracts remain intact. */
:root {
  color-scheme: dark;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Yu Gothic', 'Microsoft YaHei', sans-serif;
  font-synthesis: none;
  --bg: #141617;
  --surface: #1b1e20;
  --raised: #25292c;
  --ink: #edf0f1;
  --secondary: #b4bcbf;
  --muted: #a0aaaf;
  --line: #394145;
  --accent: #91dbcd;
  --accent-ink: #102b26;
  --red: #ff98a0;
  --warning-surface: #382326;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
html[data-theme='light'] {
  color-scheme: light;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --raised: #e9eeec;
  --ink: #192421;
  --secondary: #465851;
  --muted: #5c6b65;
  --line: #cbd5d0;
  --accent: #166b5a;
  --accent-ink: #ffffff;
  --red: #ac2739;
  --warning-surface: #fff0f1;
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
h1 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
h3 {
  font-size: 14px;
  font-weight: 500;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select,
input,
textarea,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
select,
textarea,
input[type='text'],
input[type='number'] {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 14px;
}
button,
select,
summary {
  cursor: pointer;
}
button,
a,
select,
summary {
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease),
    border-color 160ms var(--ease);
}
button:not(:disabled):hover,
summary:hover {
  background-color: var(--line);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.primary,
button[aria-selected='true'] {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
button.primary:not(:disabled):hover {
  background: var(--accent);
  filter: brightness(0.95);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
output,
dd,
td,
.metric,
.version {
  font-variant-numeric: tabular-nums;
}
input[type='range'] {
  accent-color: var(--accent);
  min-width: 0;
  min-height: 44px;
  cursor: pointer;
}
input[type='checkbox'] {
  accent-color: var(--accent);
}
select {
  min-width: 0;
  text-overflow: ellipsis;
}
select option {
  background: var(--surface);
  color: var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}
.brand-mark {
  width: 28px;
  color: var(--accent);
}
.wordmark,
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
}
.wordmark span,
.brand strong {
  color: var(--ink);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.version {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  border: 0;
  padding: 0;
  margin-left: auto;
}
.navigation-wordmark {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.site-navigation {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: 20px;
}
.site-navigation a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  border: 1px solid transparent;
}
.site-navigation a:hover {
  background: var(--raised);
  color: var(--ink);
}
.site-navigation a[aria-current='page'] {
  background: var(--raised);
  color: var(--ink);
  border-color: var(--line);
}
.app {
  max-width: 1200px;
  padding: 24px 32px;
}
.toolbar {
  margin: 20px 0;
}
.settings-menu > summary {
  background: var(--surface);
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
}
.settings-content {
  top: 52px;
  width: min(416px, calc(100vw - 48px));
  max-height: min(720px, calc(100dvh - 196px));
  padding: 24px;
  box-shadow: 0 8px 24px #0002;
}
.settings-group {
  gap: 12px;
}
.field-label,
.theme-picker-label,
.setting-row > label,
.version-switch > span {
  color: var(--muted);
  font-size: 13px;
}
.language-switch,
.theme-picker {
  gap: 8px;
}
.theme-picker select {
  background: var(--raised);
  color: var(--ink);
  border-color: var(--line);
  font-size: 14px;
  padding: 10px 12px;
}
.setting-row,
.overall-control {
  margin-top: 20px;
}
.alert-tone-line {
  font-size: 14px;
}
#alert-preview-note,
#alert-preview-status,
#mic-select-status,
.mic-selection-name {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.settings-links a,
.version-options a {
  font-size: 13px;
}
.settings-links {
  margin-top: 20px;
  padding-top: 12px;
}
.standard-main {
  padding: 0;
}
body[data-mode='standard'] .mic-source-panel {
  font-size: 13px;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.status {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0;
}
body[data-mode='standard'] .visual {
  width: 208px;
  height: 208px;
  margin: 28px auto;
}
body[data-mode='standard'] .visual .icon-disc {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
  color: var(--accent);
  width: 136px;
  height: 136px;
  min-height: 136px;
}
body[data-mode='standard'] .visual::before {
  border-color: var(--accent);
}
body[data-mode='standard'] .visual::after {
  border-color: var(--accent);
}
.message h1 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
#description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}
#sound-type {
  font-size: 24px;
  font-weight: 500;
}
.score {
  font-size: 13px;
}
.current-result {
  padding: 24px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin-top: 16px;
}
.rolling-current-label {
  color: var(--muted);
  font-size: 13px;
}
.rolling-current-value {
  color: var(--ink);
  font-size: 28px;
  font-weight: 500;
}
.rolling-current-value[data-warning='true'] {
  color: var(--red);
}
.rolling-panel {
  background: var(--surface);
  padding: 24px;
  border-radius: 16px;
  margin: 8px 0 24px;
}
.rolling-header h2 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}
.rolling-state {
  font-size: 12px;
  color: var(--accent);
}
#rolling-waveform {
  height: 176px;
}
#rolling-events {
  font-size: 13px;
  color: var(--red);
}
#rolling-note {
  font-size: 12px;
  color: var(--muted);
}
.last-warning-card {
  padding: 8px 0 8px 16px;
  margin: 0 0 16px;
  font-size: 14px;
}
.last-warning-card h2 {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}
footer {
  color: var(--muted);
}
footer p {
  font-size: 12px;
  line-height: 1.6;
}
/* Warning stays semantic and explicit without tinting unrelated research data. */
body[data-state='warning'] .message {
  background: var(--warning-surface);
  border-left: 3px solid var(--red);
  padding: 16px;
  border-radius: 8px;
}
body[data-mode='standard'][data-state='warning'] .visual .icon-disc {
  background: var(--warning-surface);
  box-shadow: none;
}
/* Real recording activity is the only repeating status animation. */
@keyframes tsg-status-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}
/* Test: all research fields remain in their original order and available at every width. */
body.ipad-test .app {
  max-width: 1680px;
}
body.ipad-test .ipad-left,
body.ipad-test .ipad-center,
body.ipad-test .ipad-right {
  padding: 20px;
  border-color: var(--line);
  border-radius: 12px;
}
body.ipad-test .brand {
  padding-bottom: 16px;
}
body.ipad-test .mic-source-panel,
.mic-source-note {
  font-size: 12px;
}
body.ipad-test .message h1 {
  font-size: 22px;
}
body.ipad-test #description {
  font-size: 13px;
}
body.ipad-test .icon-disc {
  font-weight: 500;
  font-size: 15px;
}
body.ipad-test .rolling-panel {
  padding: 0 0 20px;
  border-radius: 0;
  background: transparent;
}
body.ipad-test #rolling-waveform {
  height: 152px;
}
body.ipad-test .rolling-current {
  align-items: flex-start;
  text-align: left;
  margin: 20px 0 8px;
}
body.ipad-test .rolling-current-value {
  font-size: 24px;
}
body.ipad-test .control-settings {
  padding-top: 20px;
}
body.ipad-test .settings-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
body.ipad-test .settings-group label {
  font-size: 13px;
}
body.ipad-test .settings-links {
  display: flex;
}
.debug-switch,
.debug-note,
.debug-status,
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.debug-panel > summary {
  font-size: 14px;
  font-weight: 500;
}
.debug-status {
  gap: 8px 12px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.debug-status dd {
  color: var(--ink);
}
table {
  font-size: 13px;
  line-height: 1.5;
}
th,
td {
  padding: 12px 8px;
  border-color: var(--line);
}
th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
td small,
.debug-score,
#debug-target td:last-child,
#debug-target th:last-child {
  font-size: 12px;
}
td small {
  color: var(--muted);
}
.debug-content h2 {
  margin: 24px 0 8px;
  font-size: 15px;
  font-weight: 500;
}
.research-panel {
  margin-top: 24px;
  padding-top: 24px;
}
.research-metrics {
  gap: 0 16px;
}
.metric {
  padding: 12px 0;
}
.metric dt {
  font-size: 12px;
  color: var(--muted);
}
.metric dd {
  font-size: 16px;
  color: var(--ink);
}
.warning-counts {
  gap: 8px 16px;
  font-size: 12px;
}
.research-toolbar {
  gap: 8px;
}
.research-toolbar select {
  font-size: 13px;
}
.log-scroll {
  max-height: 320px;
  border-top: 1px solid var(--line);
}
.log-scroll th,
.table-wrap th {
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.sensitivity-line {
  font-size: 13px;
  gap: 12px;
}
.sensitivity-line output {
  color: var(--accent);
  font:
    13px ui-monospace,
    monospace;
}
.sensitivity-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  column-gap: 8px;
  padding: 8px 0;
}
.sensitivity-item .sensitivity-line {
  grid-column: 1 / -1;
  min-height: 24px;
}
.sensitivity-item input {
  grid-column: 1;
  width: 100%;
}
.sensitivity-item .effective-line {
  grid-column: 2;
  margin: 0;
}
.reset-one {
  min-height: 44px;
  min-width: 44px;
  padding: 0;
  color: var(--muted);
  font-size: 22px;
  border-radius: 8px;
}
.sensitivity-footer {
  background: var(--surface);
  padding-top: 16px;
}
/* Secondary research pages use the same surface, text and control hierarchy. */
#test-app {
  max-width: 1280px;
  padding: 24px 32px 40px;
}
.auxiliary-brand {
  max-width: 1216px;
  margin: 24px auto 0;
}
#test-app .top {
  gap: 16px;
}
#test-app > h1 {
  margin: 32px 0 16px;
}
#test-app .language-switch {
  border: 0;
  background: transparent;
}
#test-app .language-switch::after {
  display: none;
}
#test-app .language-switch select {
  appearance: auto;
  background: var(--raised);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 14px;
}
#test-app .notice {
  background: var(--raised);
  border-color: var(--accent);
  padding: 12px 16px;
  color: var(--secondary);
}
#test-app .note,
#test-app .muted,
#test-app footer {
  color: var(--muted);
  font-size: 13px;
}
#test-app .tabs {
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
}
#test-app .tabs button {
  flex: 1 1 140px;
  background: transparent;
  color: var(--muted);
  border-color: transparent;
  font-size: 14px;
}
#test-app .tabs button.primary {
  background: var(--raised);
  color: var(--ink);
  border-color: var(--line);
}
#test-app .card {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}
#test-app .thresholds {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 24px;
}
#test-app .thresholds label {
  font-size: 14px;
}
#test-app input[type='number'] {
  width: 100px;
}
#test-app input[type='text'],
#test-app textarea,
#test-app select {
  background: var(--raised);
  color: var(--ink);
  border-color: var(--line);
}
#test-app .upload-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
#test-app input[type='file'] {
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 20px;
  margin: 12px 0 24px;
  border: 1px dashed var(--muted);
  border-radius: 8px;
  background: var(--bg);
  color: var(--secondary);
}
#test-app input[type='file']::file-selector-button {
  font: inherit;
  min-height: 44px;
  padding: 8px 16px;
  margin-right: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--raised);
  color: var(--ink);
  cursor: pointer;
}
#test-app progress {
  accent-color: var(--accent);
}
#test-app table {
  font-size: 13px;
}
#test-app th,
#test-app td {
  border-color: var(--line);
}
#test-app th {
  color: var(--muted);
}
#test-app .table-wrap {
  max-height: 640px;
}
#test-app svg.chart {
  background: var(--bg);
}
#test-app svg text {
  fill: var(--secondary);
}
#test-app .metric {
  color: var(--ink);
  font-weight: 500;
}
#test-app .metric small {
  color: var(--muted);
}
.annotation-editor {
  background: var(--bg);
  border-color: var(--line);
}
.annotation-status,
.annotation-legend {
  color: var(--muted);
}
.annotation-row {
  border-color: var(--line);
}
.annotation-controls input[type='range'] {
  accent-color: var(--accent);
}
body:has(#test-app) > .theme-picker.standalone {
  max-width: 1280px;
  margin: auto;
  padding: 16px 32px 0;
}
.shell {
  max-width: 1280px;
  padding: 24px 32px 32px;
}
.shell .brand .logo {
  border: 0;
  border-radius: 0;
  color: var(--accent);
}
.shell .toolbar {
  gap: 12px;
  margin: 24px 0 32px;
  flex-wrap: wrap;
}
.shell .toolbar a,
.shell footer a {
  color: var(--accent);
  font-size: 14px;
}
.shell .toolbar select {
  max-width: 100%;
  width: auto;
  background: var(--raised);
  color: var(--ink);
  border-color: var(--line);
}
.shell h1 {
  font-size: 32px;
  font-weight: 500;
}
.shell .lead {
  color: var(--muted);
  font-size: 15px;
  max-width: 76ch;
}
.shell .panel {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: none;
  border-radius: 12px;
  padding: 24px;
  margin: 0;
}
.shell .panel h2 {
  font-size: 16px;
  font-weight: 500;
}
.shell .panel label {
  color: var(--secondary);
  font-size: 14px;
}
.shell #device-select {
  background: var(--raised);
  color: var(--ink);
  border-color: var(--line);
  border-radius: 8px;
}
.shell .hint {
  color: var(--muted);
  font-size: 13px;
}
.shell .controls button {
  background: var(--raised);
  color: var(--ink);
  border-color: var(--line);
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
}
.shell .controls button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.shell .status {
  background: var(--raised);
  color: var(--secondary);
  border-radius: 8px;
  font-size: 14px;
}
.shell .status:empty {
  display: none;
}
.shell .status[data-status='error'] {
  background: var(--warning-surface);
  color: var(--red);
}
.shell .meter {
  height: 16px;
  border-radius: 4px;
  background: var(--raised);
  border-color: var(--line);
}
.shell .meter > div {
  background: var(--accent);
}
.shell .meter-head {
  font-size: 14px;
}
.shell .meter-head strong {
  color: var(--accent);
}
.shell dt,
.shell dd {
  border-color: var(--line);
  font-size: 14px;
  padding: 12px 0;
}
.shell dt {
  color: var(--muted);
}
.shell dd {
  color: var(--ink);
}
.shell ol {
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.8;
  padding-left: 24px;
}
.shell li + li {
  margin-top: 12px;
}
.shell footer p {
  color: var(--muted);
  font-size: 12px;
}
@media (min-width: 900px) {
  body[data-mode='standard'] .standard-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-rows: auto auto auto 1fr auto;
    align-items: center;
    column-gap: 64px;
  }
  body[data-mode='standard'] .mic-source-panel {
    grid-column: 1 / -1;
  }
  body[data-mode='standard'] .status {
    grid-column: 1;
    justify-content: center;
  }
  body[data-mode='standard'] .visual {
    grid-column: 1;
    grid-row: 3 / 5;
  }
  body[data-mode='standard'] .message {
    grid-column: 1;
    grid-row: 5;
  }
  body[data-mode='standard'] .current-result {
    grid-column: 2;
    grid-row: 2 / 4;
    margin: 0 0 20px;
    align-items: flex-start;
    text-align: left;
    padding: 0;
    border: 0;
  }
  body[data-mode='standard'] .rolling-panel {
    grid-column: 2;
    grid-row: 4;
    align-self: stretch;
    margin: 0;
  }
  body[data-mode='standard'] .last-warning-card {
    grid-column: 2;
    grid-row: 5;
    margin: 24px 0;
  }
  body[data-mode='standard'] footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
  .shell main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
  .shell main > h1,
  .shell main > .lead {
    grid-column: 1 / -1;
    margin: 0;
  }
  .shell main > .lead {
    margin-bottom: 8px;
  }
  .shell main > .panel:last-child {
    grid-column: 1 / -1;
  }
  .shell ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 48px;
  }
  .shell li + li {
    margin: 0;
  }
}
@media (orientation: landscape) and (min-width: 820px) and (min-height: 500px) {
  body.ipad-test .ipad-dashboard {
    grid-template-columns: minmax(224px, 24%) minmax(0, 1fr) minmax(240px, 27%);
    grid-template-rows: 88px minmax(0, 1fr);
    padding: 16px;
    gap: 16px;
  }
  body.ipad-test .brand {
    padding: 0 0 12px;
    align-content: center;
  }
  body.ipad-test .site-navigation {
    margin-left: 12px;
  }
  body.ipad-test .ipad-left,
  body.ipad-test .ipad-center,
  body.ipad-test .ipad-right {
    padding: 16px;
  }
  body.ipad-test .sensitivity-list {
    padding-right: 8px;
  }
  body.ipad-test .sensitivity-item {
    padding: 4px 0;
  }
  body.ipad-test .setting-row {
    margin-top: 16px;
  }
  body.ipad-test #description {
    font-size: 13px;
  }
  body.ipad-test .settings-group {
    grid-template-columns: 1fr;
  }
  body.ipad-test .theme-picker {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (min-width: 1400px) and (orientation: landscape) {
  body.ipad-test .settings-group {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 899px) {
  .site-navigation {
    flex-basis: 100%;
    margin-left: 0;
  }
  .brand {
    gap: 8px 12px;
  }
  .app,
  #test-app,
  .shell {
    padding: 20px 20px 32px;
  }
  .auxiliary-brand {
    margin: 20px 20px 0;
  }
  .site-navigation a {
    font-size: 13px;
    padding: 8px 10px;
  }
  .shell main > .panel {
    margin: 20px 0;
  }
  body:has(#test-app) > .theme-picker.standalone {
    padding: 16px 20px 0;
  }
}
@media (max-width: 480px) {
  .app,
  #test-app,
  .shell {
    padding: 16px 16px 24px;
  }
  .auxiliary-brand {
    margin: 16px 16px 0;
  }
  .brand .site-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 4px;
  }
  .brand .site-navigation a {
    justify-content: flex-start;
    padding: 8px;
  }
  .message h1,
  .shell h1,
  #test-app h1 {
    font-size: 26px;
  }
  .settings-content {
    width: calc(100vw - 32px);
    padding: 20px;
    max-height: calc(100dvh - 240px);
  }
  .rolling-panel,
  #test-app .card,
  #test-app .upload-panel,
  .shell .panel {
    padding: 16px;
  }
  .rolling-current-value {
    font-size: 24px;
  }
  #rolling-waveform {
    height: 140px;
  }
  body.ipad-test .ipad-left,
  body.ipad-test .ipad-center,
  body.ipad-test .ipad-right {
    padding: 16px;
  }
  #test-app .thresholds {
    grid-template-columns: 1fr;
  }
  #test-app .tabs button {
    flex-basis: 100px;
  }
  #test-app input[type='file'] {
    padding: 12px;
    font-size: 13px;
  }
  #test-app input[type='file']::file-selector-button {
    padding: 8px;
    margin-right: 8px;
  }
  .shell .toolbar > a {
    flex-basis: 100%;
  }
  .shell .toolbar > select,
  .shell .toolbar .theme-picker {
    flex: 1;
  }
  .shell .controls button {
    flex: 1 1 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Keep compact paired controls where iPad panel width is limited. */
body.ipad-test .settings-group {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
body.ipad-test .settings-group select {
  padding-left: 8px;
  padding-right: 8px;
}
.auxiliary-brand {
  width: calc(100% - 64px);
}
.auxiliary-brand > .theme-picker {
  margin-left: auto;
}
.auxiliary-brand > .theme-picker select {
  width: auto;
  max-width: 180px;
}
.shell #status {
  padding: 12px 16px;
}
@media (max-width: 899px) {
  .auxiliary-brand {
    width: calc(100% - 40px);
  }
}
@media (max-width: 480px) {
  .auxiliary-brand {
    width: calc(100% - 32px);
  }
  .auxiliary-brand > .theme-picker {
    margin-left: 0;
  }
}
/* Allow localized navigation to determine header height on short landscape screens. */
@media (orientation: landscape) and (min-width: 820px) and (min-height: 500px) {
  body.ipad-test .ipad-dashboard {
    grid-template-rows: auto minmax(0, 1fr);
  }
  body.ipad-test .brand {
    min-height: 88px;
  }
}
@media (max-width: 899px) {
  .settings-content {
    max-height: calc(100dvh - 300px);
  }
}
/* Shared wordmark geometry also applies to pages that do not load guardian.css. */
.brand-mark {
  flex: none;
}
.brand-mark svg {
  display: block;
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.wordmark span {
  display: block;
  line-height: 1.2;
}
.panel-navigation {
  display: none;
}
@media (orientation: portrait), (max-width: 819px), (max-height: 499px) {
  .panel-navigation {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 5;
    gap: 4px;
    flex-wrap: wrap;
    padding: 8px 0;
    margin-bottom: 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .panel-navigation a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
  }
  .ipad-left,
  .ipad-center,
  .ipad-right {
    scroll-margin-top: 88px;
  }
}
