:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #202020;
  background: #e9e8e4;
  font-synthesis: none;
  --paper: #fff;
  --stone: #f4f3ef;
  --line: #d5d4ce;
  --muted: #62635e;
  --black: #151515;
  --accent: #365647;
  --error: #972d2d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #688778;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 20;
  background: #fff;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.initial {
  padding: 40px;
}
.shell {
  display: grid;
  grid-template-columns: 244px 1fr;
  min-height: 100dvh;
}
.rail {
  background: var(--black);
  color: #fff;
  padding: 38px 26px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.wordmark {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -1.3px;
  line-height: 0.94;
  text-decoration: none;
  display: block;
}
.wordmark span {
  display: block;
}
.rail-sub {
  margin-top: 14px;
  font-size: 12px;
  color: #c1c1b8;
  line-height: 1.5;
}
.rail nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav {
  border: 0;
  text-align: left;
  background: transparent;
  color: #c9c9c0;
  border-radius: 3px;
  padding: 13px 12px;
}
.nav[aria-current="page"] {
  color: #151515;
  background: #eeede8;
  font-weight: bold;
}
.rail-bottom {
  margin-top: auto;
  display: grid;
  gap: 16px;
}
.locale {
  display: flex;
  gap: 2px;
}
.locale button {
  background: none;
  color: inherit;
  border: 1px solid #777;
  padding: 8px 12px;
}
.locale button[aria-pressed="true"] {
  background: #fff;
  color: #151515;
}
.workspace {
  min-width: 0;
}
.topbar {
  padding: 21px 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: #f4f3ef;
}
.topbar p {
  margin: 0;
  font-size: 14px;
}
.environment {
  border: 1px solid #a99b72;
  background: #f4ecd4;
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 3px;
}
.main {
  max-width: 1300px;
  margin: auto;
  padding: 46px 42px 70px;
  min-height: 70vh;
}
h1 {
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 500;
  letter-spacing: -1.6px;
  line-height: 1.08;
  margin: 0 0 16px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  font-weight: 500;
  margin: 0 0 20px;
}
h3 {
  font-size: 17px;
  margin: 0 0 14px;
}
.intro {
  max-width: 65ch;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 30px;
}
.section {
  margin: 30px 0;
  background: var(--paper);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.section.secondary {
  background: var(--stone);
}
.section p {
  line-height: 1.5;
}
.row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 18px;
}
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.btn {
  border: 1px solid var(--black);
  padding: 11px 17px;
  border-radius: 3px;
  background: var(--black);
  color: #fff;
  font-weight: 600;
  line-height: 1.25;
}
.btn.secondary {
  background: transparent;
  color: var(--black);
}
.btn.small {
  font-size: 13px;
  padding: 8px 12px;
}
.btn.danger {
  border-color: var(--error);
  color: var(--error);
  background: #fff;
}
.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 5px 8px;
  font-size: 12px;
  background: var(--stone);
}
.empty {
  padding: 27px 0;
  color: var(--muted);
  line-height: 1.55;
}
.notice {
  padding: 14px 18px;
  background: #eeeade;
  border-left: 3px solid #98885d;
  font-size: 14px;
  line-height: 1.5;
  margin: 20px 0;
}
.error {
  color: var(--error);
  background: #fff0ed;
  border-left: 3px solid var(--error);
  padding: 14px;
  white-space: pre-wrap;
  line-height: 1.45;
}
.success {
  color: #244c36;
  background: #e9f2eb;
  padding: 14px;
  line-height: 1.5;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
td,
th {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
th {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}
.project-link {
  background: none;
  border: 0;
  font-weight: bold;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.35;
}
label.wide {
  grid-column: 1/-1;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #aaa99f;
  border-radius: 3px;
  color: var(--black);
  background: #fff;
  min-width: 0;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
}
label.check {
  display: flex;
  align-items: center;
}
.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.form-actions {
  margin-top: 22px;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(340px, 1fr);
  gap: 60px;
  align-items: start;
}
.auth-brand {
  border-top: 5px solid var(--black);
  padding-top: 28px;
}
.auth-brand h1 {
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 0.92;
}
.auth-brand p {
  font-size: 17px;
  line-height: 1.55;
  max-width: 32ch;
}
.auth-form {
  background: #fff;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
  padding-bottom: 16px;
}
.auth-tabs button {
  border: 0;
  background: transparent;
  padding: 8px;
}
.auth-tabs button.active {
  border-bottom: 2px solid #151515;
  font-weight: bold;
}
.metric {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 6px 0;
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin: 25px 0;
  gap: 20px;
}
.summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.player {
  background: #242824;
  color: #fff;
  padding: 26px;
  border-radius: 5px;
  margin: 22px 0;
}
.player h2 {
  color: #fff;
}
.player .hint {
  color: #c7cfc8;
}
.player select {
  background: #fff;
}
.player audio {
  width: 100%;
  display: block;
  margin: 20px 0;
}
.player .btn.secondary {
  border-color: #aaa;
  color: #fff;
}
.player .badge {
  color: #151515;
}
.transport {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.transport input[type="range"] {
  padding: 0;
  width: 150px;
}
.time {
  font-variant-numeric: tabular-nums;
  font-size: 14px;
}
.waveform {
  width: 100%;
  height: 90px;
  display: block;
  margin: 16px 0;
  background: #313731;
}
.note {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.note p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.technical {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.approval {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.approval strong {
  display: block;
  margin-bottom: 6px;
}
details {
  margin: 18px 0;
  border: 1px solid var(--line);
  padding: 18px;
  background: #fff;
  border-radius: 4px;
}
summary {
  font-size: 17px;
  cursor: pointer;
  font-weight: 600;
}
details[open] summary {
  margin-bottom: 24px;
}
.result {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.5;
}
.muted {
  color: var(--muted);
}
.secret {
  background: #f3eed9;
  border: 1px solid #b5a56c;
  padding: 16px;
  overflow-wrap: anywhere;
}
.footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 40px;
  line-height: 1.6;
}
.mobile-label {
  display: none;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .rail {
    padding: 28px 18px;
  }
  .topbar {
    padding: 20px 24px;
  }
  .main {
    padding: 32px 24px 60px;
  }
  .columns,
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-layout {
    gap: 30px;
  }
  .auth-brand h1 {
    font-size: 52px;
  }
  .summary {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .shell {
    display: block;
  }
  .rail {
    position: static;
    width: 100%;
    height: auto;
    padding: 20px;
    gap: 20px;
  }
  .wordmark {
    font-size: 20px;
    letter-spacing: -0.7px;
    line-height: 1;
  }
  .wordmark span {
    display: inline;
  }
  .wordmark span + span:before {
    content: " ";
  }
  .rail-sub {
    display: none;
  }
  .rail nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    margin: 0 -5px;
  }
  .nav {
    white-space: nowrap;
    padding: 10px;
  }
  .rail-bottom {
    position: absolute;
    right: 20px;
    top: 15px;
  }
  .rail-bottom > .btn,
  .rail-bottom > .hint {
    display: none;
  }
  .locale button {
    padding: 6px 9px;
  }
  .topbar {
    padding: 14px 20px;
    align-items: flex-start;
  }
  .topbar p {
    font-size: 12px;
    max-width: 55%;
  }
  .main {
    padding: 28px 20px 50px;
  }
  .section,
  .player,
  .auth-form {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  label.wide {
    grid-column: auto;
  }
  .summary {
    grid-template-columns: 1fr;
  }
  .auth-brand h1 {
    font-size: 48px;
  }
  .columns {
    gap: 0;
  }
  td,
  th {
    padding: 14px 8px;
  }
  .approval {
    align-items: flex-start;
    flex-direction: column;
  }
  .environment {
    font-size: 11px;
  }
  .footer {
    margin-top: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Guest opinions remain visually distinct from version-authorized feedback. */
.guest-feedback {
  background: var(--stone);
}
.guest-opinion {
  border-left: 3px solid #9b9d91;
  padding-left: 16px;
}
.reply-thread {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  margin: 18px 0;
}
.reply {
  padding: 12px 0;
}
.reply p {
  margin: 9px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.form-grid > .wide {
  grid-column: 1/-1;
}
.source-link-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.source-link-row > label:first-child {
  grid-column: 1/-1;
}
.source-link-row > button {
  justify-self: start;
}
.source-link-rows {
  margin-bottom: 18px;
}
.payment-instructions {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.quote-detail audio {
  display: block;
  width: 100%;
  margin: 18px 0;
}
@media (max-width: 600px) {
  .source-link-row {
    grid-template-columns: 1fr;
  }
}

.artist-comparisons {
  display: grid;
  gap: 10px;
}
.artist-file-hash {
  overflow-wrap: anywhere;
  font-family: monospace;
}
.main > .section > audio {
  width: 100%;
  display: block;
  margin: 16px 0;
}

/* Keep progressive billing fields hidden even when labels use grid/flex. */
[hidden] {
  display: none !important;
}

/* Local studio controls use the same paper/ink palette as the portal. */
.work-launch {
  background: var(--black);
  color: #fff;
  padding: clamp(22px, 4vw, 36px);
  margin: 24px 0 32px;
}
.work-launch h2 {
  margin-top: 0;
}
.work-launch p {
  max-width: 66ch;
  line-height: 1.6;
}
.work-launch .btn {
  background: #fff;
  color: var(--black);
  border-color: #fff;
  margin: 8px 10px 0 0;
}
.work-launch .btn.secondary {
  background: transparent;
  color: #fff;
}
.studio-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.studio-shortcuts h2 {
  width: 100%;
  margin-bottom: 6px;
}
.studio-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1 1 170px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--stone);
  color: var(--black);
  text-align: left;
}
.studio-jump strong {
  font-size: 1.5rem;
}
.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 30px;
}
[id^="studio-"] {
  scroll-margin-top: 24px;
}
[id^="studio-"]:focus {
  outline: 3px solid #688778;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .work-launch .btn,
  .studio-actions .btn {
    width: 100%;
  }
  .studio-shortcuts {
    gap: 8px;
  }
  .studio-jump {
    flex-basis: 100%;
  }
}

/* Work orders retain the project player and establish a separate commercial hierarchy. */
.operations-tracks {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.operations-track {
  border: 1px solid var(--line, #d5d5d5);
  border-radius: 0.5rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}
.operations-track legend {
  padding: 0 0.5rem;
  font-weight: 600;
}
.operations-track label:last-child {
  grid-column: 1/-1;
}
.locale {
  flex-wrap: wrap;
}
.rail-bottom label {
  font-size: 0.75rem;
}
.rail-bottom select {
  max-width: 100%;
}
.section a.btn {
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .operations-track {
    grid-template-columns: 1fr;
  }
  .operations-track label:last-child {
    grid-column: auto;
  }
}

.download-control {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  max-width: 100%;
}
.download-count {
  display: block;
  overflow-wrap: anywhere;
}

/* Identity and the studio directory share the existing monochrome workspace. */
.auth-form .form-grid {
  grid-template-columns: minmax(0, 1fr);
}
.auth-form .notice {
  margin-bottom: 20px;
  line-height: 1.55;
}
.auth-tabs button {
  cursor: pointer;
  min-height: 44px;
}
.auth-tabs button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.auth-form button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.client-directory > label {
  display: block;
  max-width: 38rem;
  margin-bottom: 20px;
}
.client-directory input[type="search"] {
  width: 100%;
}
.client-details:not(:empty) {
  border-top: 2px solid var(--black);
  margin-top: 28px;
  padding-top: 24px;
}
.client-details .muted {
  max-width: 72ch;
  line-height: 1.5;
}
.client-roles {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
}
.client-roles legend {
  padding: 0 5px;
}
.client-details input[readonly] {
  background: #f3f3f3;
  color: #555;
}
.catalog { --catalog-ink:#151515; --catalog-paper:#fff; --catalog-muted:#646464; --catalog-line:#d7d7d7; color:var(--catalog-ink); }
.catalog-title { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom:24px; }
.catalog-title h1 { margin-bottom:8px; }
.catalog-tabs { display:flex; flex-wrap:wrap; gap:4px; border-bottom:1px solid var(--catalog-line); margin-bottom:24px; padding-bottom:12px; }
.catalog-tabs .nav { color:var(--catalog-ink); }
.catalog-tabs .nav[aria-current=page] { background:var(--catalog-ink); color:white; }
.catalog input[readonly] { background:#eeeeec; color:#555; }
.catalog-basis { max-width:78ch; color:var(--catalog-muted); line-height:1.6; padding:16px 0; }
.catalog-totals { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; padding:24px 0; border-top:2px solid var(--catalog-ink); border-bottom:1px solid var(--catalog-line); }
.catalog-totals dt { color:var(--catalog-muted); font-size:14px; }
.catalog-totals dd { margin:10px 0 0; font-size:clamp(20px,2.2vw,32px); font-weight:600; font-variant-numeric:tabular-nums; }
.catalog-section { margin:36px 0; }
.catalog-section h2 { font-size:23px; margin-bottom:18px; }
.catalog td { font-variant-numeric:tabular-nums; vertical-align:top; }
.catalog td .btn { font-size:inherit; padding:4px 8px; text-align:left; }
.catalog .form-grid { margin:18px 0; }
.catalog .form-grid label { display:flex; flex-direction:column; gap:7px; min-width:0; }
.catalog .form-grid .check { flex-direction:row; align-items:center; }
.catalog .form-grid select[multiple] { min-height:110px; }
.catalog .form-grid textarea { min-height:100px; }
.catalog-actions { display:flex; gap:12px; margin-top:20px; }
.catalog-bar { display:grid; grid-template-columns:minmax(80px,1fr) auto; gap:15px; align-items:center; }
.catalog meter { width:100%; height:10px; accent-color:#161616; }
.catalog-link { display:inline-block; margin:4px 16px 4px 0; text-decoration:underline; }
.catalog-credit { border-left:2px solid var(--catalog-line); padding:5px 20px; margin:20px 0; }
@media(max-width:850px) { .catalog-totals {grid-template-columns:repeat(2,1fr)} .catalog-title {flex-direction:column} }
@media(max-width:500px) { .catalog-totals {grid-template-columns:1fr} .catalog-tabs {gap:8px} .catalog-tabs .nav {font-size:13px} }
.client-details textarea {
  min-height: 110px;
}
@media (max-width: 600px) {
  .auth-form {
    padding: 22px;
  }
  .client-directory table {
    min-width: 560px;
  }
}

.preflight-badges { display:flex; flex-wrap:wrap; gap:.4rem; margin:.65rem 0; }
.preflight-badges .badge { white-space:normal; line-height:1.5; }
.preflight-badges .badge.good { background:#e4f3e9; color:#155b30; border:1px solid #6fa583; }
.preflight-badges .badge.warn { background:#fff3da; color:#745000; border:1px solid #c6a65d; }
.preflight-badges .badge.bad { background:#fbe6e6; color:#8b2424; border:1px solid #c47d7d; }
.mastering-form .form-section-title { border-top:1px solid var(--line); padding-top:22px; margin:12px 0 0; }
.mastering-form .form-section-title:first-child { border-top:0; padding-top:0; margin-top:0; }
.mastering-form .check { line-height:1.5; }
.mastering-form .check input { flex-shrink:0; }
.mastering-form { min-width:0; grid-template-columns:repeat(2,minmax(0,1fr)); }
.mastering-form > *, .mastering-form label { min-width:0; max-width:100%; align-content:start; }
.mastering-form input[type="file"] { max-width:100%; overflow:hidden; }
.mastering-form p, .mastering-form .badge { overflow-wrap:anywhere; }
.mastering-form [hidden] { display:none !important; }
@media (max-width:680px) { .mastering-form { grid-template-columns:minmax(0,1fr); } }

/* Service selection and form are separate blocks; headings never overlap. */
.new-work-service-area { margin-top:28px; clear:both; }
.mastering-form { row-gap:22px; align-items:start; }
.mastering-order-summary { padding:24px; border:1px solid var(--line); border-radius:12px; background:var(--stone); }
.mastering-order-summary h3 { margin:0 0 16px; }
.mastering-order-summary strong { display:block; margin-top:18px; font-size:1.25rem; }

.new-work-selector { display:grid; gap:12px; padding:0 0 24px; margin:0; min-width:0; border-bottom:1px solid var(--line); }
.new-work-selector label { align-content:start; }
.new-work-service-area { display:flow-root; margin-top:0; padding-top:28px; }
.new-work-service-area .mastering-form { margin-top:0; }

.billing-profile-fields { grid-template-columns:repeat(2,minmax(0,1fr)); min-width:0; }
.billing-profile-fields > * { min-width:0; }
@media(max-width:680px) { .billing-profile-fields { grid-template-columns:minmax(0,1fr); } }

.mfa-enrollment form { display:grid; gap:16px; max-width:480px; margin:20px 0; }
.mfa-enrollment canvas { display:block; max-width:100%; height:auto; background:#fff; margin:20px 0; }
.mfa-manual-key { display:block; overflow-wrap:anywhere; padding:16px; }
.mfa-recovery-codes { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:20px 0; }

.rail-user { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:6px; }
.inline-logoff { border:0; background:transparent; color:inherit; font:inherit; text-decoration:underline; cursor:pointer; padding:0; }
.nav-group-label { font-size:10px; text-transform:uppercase; letter-spacing:1.4px; color:var(--muted); margin:10px 12px; }
.admin-tabs { display:flex; flex-wrap:wrap; gap:10px; margin:28px 0; }
.admin-tabs [aria-current="page"] { background:var(--black);color:white; }
.main > .section[hidden] { display:none !important; }
.admin-listening > label { max-width:520px; margin:18px 0; }
.admin-pending { font-size:12px; }

/* Workspace navigation: admin sections live in the rail; own-client tools can collapse. */
.nav-group-toggle {display:flex;align-items:center;justify-content:space-between;width:100%;border:0;background:transparent;color:#e4e5e1;text-align:left;padding:10px 12px;font-size:13px;font-weight:650;cursor:pointer;}
.nav-group-toggle::after {content:"−";font-size:18px;line-height:1;}
.nav-group-toggle[aria-expanded="false"]::after {content:"+";}
.nav-group-toggle:focus-visible {outline:2px solid #8fd9ef;outline-offset:2px;}
.nav-group-items:not([hidden]) {display:grid;gap:3px;}
.nav-group-items[hidden] {display:none;}
.rail .nav-group-label {color:#a9ada9;}
@media(min-width:601px){.rail{gap:24px}.rail>nav{flex:1;min-height:0;overflow-y:auto;padding-right:3px}.rail>div{flex-shrink:0}.rail-bottom{gap:10px}.rail .nav{padding:11px 12px}}
@media(max-width:600px){.rail .nav-group{flex:none}.rail .nav-group-items:not([hidden]){display:flex}.rail nav .nav-group-label{align-self:center;white-space:nowrap}.rail .nav-group-toggle{padding:10px}}
@media(max-width:600px){
  .rail .rail-bottom{position:static;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:0}
  .rail .rail-bottom label{display:flex;align-items:center;gap:8px;font-size:12px}
  .rail .rail-bottom select{width:auto;max-width:110px}
  .rail .nav-group-toggle::after{margin-left:12px}
  .rail nav .nav-group-label{flex-shrink:0;margin:10px 16px}
}
