/* ============ Tokens ============ */
  :root{
    --bg: #F4F5F2;
    --surface: #FFFFFF;
    --surface-2: #EAECE6;
    --surface-3: #E1E4DC;
    --text: #1A1D1A;
    --text-muted: #565C56;
    --border: #D7DAD1;
    --border-strong: #BFC4B8;
    --accent: #87561F; /* darkened from the original #B9762A so accent-as-text/button meets WCAG AA (4.5:1) on light backgrounds */
    --accent-ink: #ffffff;
    --accent-soft: #F0DEC3;
    --teal: #1C6E6E;
    --teal-soft: #DCEDEA;
    --danger: #9E3F37;
    --danger-soft: #F5DEDC;
    --shadow: 0 1px 2px rgba(26,29,26,0.06), 0 8px 24px -12px rgba(26,29,26,0.18);
    --radius-s: 6px;
    --radius-m: 12px;
    --radius-l: 20px;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }
  @media (prefers-color-scheme: dark){
    :root:not([data-theme="light"]){
      --bg: #14181A;
      --surface: #1B2022;
      --surface-2: #202626;
      --surface-3: #262D2D;
      --text: #EDEFEA;
      --text-muted: #A6ACA4;
      --border: #333B3B;
      --border-strong: #454F4E;
      --accent: #E3A25C;
      --accent-ink: #1A1204;
      --accent-soft: #3A2E1E;
      --teal: #5CC7C7;
      --teal-soft: #1C2E2E;
      --danger: #E5847A;
      --danger-soft: #3A2220;
      --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 12px 32px -16px rgba(0,0,0,0.6);
    }
  }
  :root[data-theme="dark"]{
    --bg: #14181A;
    --surface: #1B2022;
    --surface-2: #202626;
    --surface-3: #262D2D;
    --text: #EDEFEA;
    --text-muted: #A6ACA4;
    --border: #333B3B;
    --border-strong: #454F4E;
    --accent: #E3A25C;
    --accent-ink: #1A1204;
    --accent-soft: #3A2E1E;
    --teal: #5CC7C7;
    --teal-soft: #1C2E2E;
    --danger: #E5847A;
    --danger-soft: #3A2220;
    --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 12px 32px -16px rgba(0,0,0,0.6);
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce){ html{ scroll-behavior: auto; } }

  body{
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-inline: 0;
  }

  h1,h2,h3{
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    text-wrap: balance;
    margin: 0;
    color: var(--text);
  }
  h1{ font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.01em; }
  h2{ font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
  h3{ font-size: 1.15rem; font-weight: 600; }
  p{ margin: 0; color: var(--text-muted); }
  a{ color: inherit; }

.wrap {
    max-width: 1290px;
    margin-inline: auto;
    padding-inline: 20px;
}
  .wrap-narrow{ max-width: 780px; margin-inline: auto; padding-inline: 20px; }

  .eyebrow{
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .eyebrow::before{
    content: "";
    width: 16px; height: 1px;
    background: var(--teal);
    display: inline-block;
  }

  section{ padding-block: clamp(52px, 9vw, 96px); }
  .band-alt{ background: var(--surface-2); border-block: 1px solid var(--border); }

  /* Photo-backed section: a fixed dark scrim over the photo, so text stays
     readable regardless of theme or what's underneath — verified against the
     brightest plausible photo pixel (~14:1 contrast for white text), not just
     eyeballed. Text colors here are intentionally hardcoded, not tokens. */
  .band-photo{
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #0A0C0A;
  }
  .band-photo::before{
    content: "";
    position: absolute; inset: 0;
    background: rgba(8, 10, 8, 0.84);
  }
  .band-photo > *{ position: relative; z-index: 1; }
  .band-photo .eyebrow{ color: #E3A25C; }
  .band-photo .eyebrow::before{ background: #E3A25C; }
  .band-photo h2{ color: #FFFFFF; }
  .band-photo .need-copy p,
  .band-photo .proc-body h3,
  .band-photo .proc-body p,
  .band-photo .outcome h3,
  .band-photo .outcome p{ color: #F4F5F2; }
  .band-photo .proc-index{ color: #A6ACA4; }
  .band-photo .outcome-num{ color: #E3A25C; }

  /* Admin-only per-section background picker */
  .bg-picker-toggle{
    display: none; position: absolute; top: 16px; right: 16px; z-index: 2;
    align-items: center; gap: 6px;
    font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em;
    padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35);
    background: rgba(10,12,10,0.55); color: #fff; cursor: pointer;
  }
  .bg-picker-toggle svg{ width: 14px; height: 14px; }
  .bg-picker-toggle:hover{ background: rgba(10,12,10,0.8); }
  .bg-picker-toggle:focus-visible{ outline: 2px solid var(--teal); outline-offset: 2px; }
  .cms-editing .bg-picker-toggle{ display: inline-flex; }
  .bg-picker-panel{
    display: none; position: absolute; top: 56px; right: 16px; z-index: 3;
    width: min(300px, calc(100% - 32px)); max-height: 260px; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
    box-shadow: var(--shadow); padding: 10px; grid-template-columns: repeat(3, 1fr); gap: 8px;
  }
  .bg-picker-panel.open{ display: grid; }
  .bg-picker-thumb{
    aspect-ratio: 4 / 3; border-radius: var(--radius-s); border: 2px solid transparent;
    background-size: cover; background-position: center; cursor: pointer; padding: 0;
  }
  .bg-picker-thumb:hover{ border-color: var(--border-strong); }
  .bg-picker-thumb.is-selected{ border-color: var(--teal); }
  .bg-picker-thumb:focus-visible{ outline: 2px solid var(--teal); outline-offset: 2px; }
  .band-photo .proc-row{ border-top-color: rgba(255,255,255,0.16); }
  .band-photo .proc-row:last-child{ border-bottom-color: rgba(255,255,255,0.16); }

  /* ============ Buttons ============ */
  .btn{
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 13px 24px;
    border-radius: var(--radius-s);
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }
  .btn:active{ transform: translateY(1px); }
  .btn-primary{ background: var(--accent); color: var(--accent-ink); }
  .btn-primary:hover{ background: color-mix(in srgb, var(--accent) 88%, black 0%); filter: brightness(1.04); }
  .btn-ghost{ background: transparent; color: var(--text); border-color: var(--border-strong); }
  .btn-ghost:hover{ background: var(--surface-2); }
  .btn:focus-visible{ outline: 2px solid var(--teal); outline-offset: 2px; }

  /* ============ Nav ============ */
  header{
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .nav{
    display: flex; align-items: center; justify-content: space-between;
    padding-block: 14px;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
  }
  .brand{ display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
  .brand-mark{ width: 30px; height: 30px; flex: none; }
  .brand-name{
    font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
    color: var(--text); letter-spacing: -0.01em; white-space: nowrap;
  }
  .brand-sub{ font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; display: block; margin-top: 1px; white-space: nowrap; }

  /* Always-visible controls: theme toggle, primary CTA (marketing pages), menu button */
  .nav-tools{ display: flex; align-items: center; gap: 10px; flex: none; }
  .theme-toggle{
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--border-strong); background: var(--surface);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text); flex: none;
  }
  .theme-toggle svg{ width: 16px; height: 16px; }
  .nav-toggle{
    display: none; width: 34px; height: 34px; border-radius: var(--radius-s);
    border: 1px solid var(--border-strong); background: var(--surface);
    align-items: center; justify-content: center; cursor: pointer; color: var(--text); flex: none;
  }
  .nav-toggle svg{ width: 18px; height: 18px; }

  /* Collapsible panel: nav links + sign-in/account, row on desktop, dropdown on mobile */
  .navlinks{ display: flex; align-items: center; gap: 28px; }
  .navlinks a{ text-decoration: none; color: var(--text-muted); font-size: 0.92rem; font-weight: 500; }
  .navlinks a:hover{ color: var(--text); }
  .navlinks-list{ display: flex; gap: 28px; }
  .navcta{ display: flex; align-items: center; gap: 14px; }
  .nav-signout-form{ display: contents; } /* the <form> itself shouldn't take up flex space, just its button */

  @media (max-width: 880px){
    .nav-toggle{ display: inline-flex; }
    .navlinks{
      display: none;
      position: absolute; left: 0; right: 0; top: 100%;
      flex-direction: column; align-items: stretch; gap: 4px;
      background: var(--surface); border: 1px solid var(--border); border-top: none;
      border-radius: 0 0 var(--radius-m) var(--radius-m);
      padding: 12px 20px 18px; box-shadow: var(--shadow);
    }
    .navlinks.open{ display: flex; }
    .navlinks-list{ flex-direction: column; gap: 2px; }
    .navlinks-list a{ padding-block: 10px; border-bottom: 1px solid var(--border); }
    .navcta{ flex-direction: column; align-items: stretch; gap: 8px; margin-top: 10px; }
    .navcta .btn{ justify-content: center; }
  }

  /* ============ Hero ============ */
  .hero{ padding-block: clamp(56px, 10vw, 104px) clamp(48px, 8vw, 88px); }
  .hero-grid{
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
  }
  @media (max-width: 900px){ .hero-grid{ grid-template-columns: 1fr; } }
  .hero-copy{ display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
  .hero-copy p.lead{ font-size: 1.12rem; max-width: 46ch; }
  .hero-actions{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
  .hero-note{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }

  .hero-visual{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow);
    padding: 20px;
  }
  .hero-visual-head{
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted);
    letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px;
  }
  .rec-dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--teal); display: inline-block; margin-right: 6px; box-shadow: 0 0 0 3px var(--teal-soft); }
  canvas#waveform{ width: 100%; height: 180px; display: block; border-radius: var(--radius-m); background: var(--surface-2); }
  .hero-visual-foot{
    display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px;
  }
  .vf-item{ text-align: left; }
  .vf-num{ font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; color: var(--text); font-variant-numeric: tabular-nums; }
  .vf-label{ font-size: 0.72rem; color: var(--text-muted); }

  /* ============ Stat strip ============ */
  .stat-strip{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    overflow: hidden;
    background: var(--surface);
  }
  .stat-cell{
    padding: 22px 20px;
    border-left: 1px solid var(--border);
  }
  .stat-cell:first-child{ border-left: none; }
  .stat-num{ font-family: var(--font-mono); font-size: 1.5rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
  .stat-label{ font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }
  @media (max-width: 760px){
    .stat-strip{ grid-template-columns: repeat(2,1fr); }
    .stat-cell:nth-child(3){ border-left: none; }
  }

  /* ============ Section headers ============ */
  .section-head{ display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; max-width: 640px; }
  .section-head p{ font-size: 1.02rem; }

  /* ============ Need / positioning ============ */
  .need-grid{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
  @media (max-width: 860px){ .need-grid{ grid-template-columns: 1fr; } }
  .need-copy{ display: flex; flex-direction: column; gap: 16px; }
  .need-copy p{ font-size: 1.02rem; }
  .pain-list{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
  .pain-list li{
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-m); padding: 14px 16px;
  }
  .pain-list .mk{
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--teal);
    background: var(--teal-soft); border-radius: 4px; padding: 2px 6px; flex: none; margin-top: 2px;
  }
  .pain-list span.tx{ font-size: 0.93rem; color: var(--text); }

  /* ============ Services ============ */
  .cards{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  @media (max-width: 980px){ .cards{ grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px){ .cards{ grid-template-columns: 1fr; } }
  .card{
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
    padding: 22px; display: flex; flex-direction: column; gap: 12px; height: 100%;
  }
  .card-icon{ width: 38px; height: 38px; color: var(--accent); }
  .card h3{ margin-top: 2px; }
  .card p{ font-size: 0.92rem; }
  .card-price{
    margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
    font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted);
  }
  .card-price b{ color: var(--text); font-weight: 600; }

  /* ============ The Rig (spec sheet) ============ */
  .rig-wrap{
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: start;
  }
  @media (max-width: 900px){ .rig-wrap{ grid-template-columns: 1fr; } }
  .rig-outcomes{ display: flex; flex-direction: column; gap: 16px; }
  .outcome{ display: flex; gap: 14px; align-items: flex-start; }
  .outcome-num{ font-family: var(--font-mono); color: var(--accent); font-weight: 600; font-size: 0.85rem; flex: none; width: 22px; }
  .outcome h3{ font-size: 1rem; margin-bottom: 4px; }
  .outcome p{ font-size: 0.9rem; }

  .spec-sheet{
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
    overflow: hidden; box-shadow: var(--shadow);
  }
  .spec-sheet-head{
    background: var(--surface-3); padding: 14px 20px; border-bottom: 1px solid var(--border);
    font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
    display: flex; justify-content: space-between;
  }
  .spec-row{
    display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
    padding: 15px 20px; border-bottom: 1px solid var(--border); font-size: 0.92rem;
  }
  .spec-row:last-child{ border-bottom: none; }
  .spec-name{ font-weight: 600; color: var(--text); }
  .spec-desc{ display: block; font-weight: 400; color: var(--text-muted); font-size: 0.83rem; margin-top: 2px; }
  .spec-tag{
    font-family: var(--font-mono); font-size: 0.72rem; color: var(--teal);
    background: var(--teal-soft); padding: 4px 9px; border-radius: 999px; white-space: nowrap;
  }

  /* ============ Gallery ============ */
  .gallery-grid{
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 14px;
  }
  .gallery-item{
    margin: 0; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--border);
    background: var(--surface); min-width: 0;
  }
  .gallery-item img{
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.3s ease;
  }
  .gallery-item:hover img{ transform: scale(1.05); }
  .gallery-item-wide{ grid-column: span 2; }
  @media (max-width: 980px){
    .gallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
    .gallery-item-wide{ grid-column: span 2; }
  }
  @media (max-width: 560px){
    .gallery-grid{ grid-template-columns: minmax(0, 1fr); grid-auto-rows: 220px; }
    .gallery-item-wide{ grid-column: span 1; }
  }

  /* ============ Team ============ */
  .team-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  @media (max-width: 760px){ .team-grid{ grid-template-columns: 1fr; } }
  .team-card{
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-m);
    padding: 26px; display: flex; flex-direction: column; gap: 14px;
  }
  .team-role{ font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
  .team-tags{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
  .tag{
    font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted);
    border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 10px;
  }

  /* ============ Process ============ */
  .process-list{ display: flex; flex-direction: column; }
  .proc-row{
    display: grid; grid-template-columns: 64px 1fr; gap: 20px;
    padding-block: 22px; border-top: 1px solid var(--border);
  }
  .proc-row:last-child{ border-bottom: 1px solid var(--border); }
  .proc-index{ font-family: var(--font-mono); font-size: 1.4rem; font-weight: 600; color: var(--text-muted); }
  .proc-body h3{ margin-bottom: 6px; }
  .proc-body p{ max-width: 60ch; }

  /* ============ Contact ============ */
  .contact-grid{ display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 44px; align-items: start; }
  @media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; } }
  .contact-info{ display: flex; flex-direction: column; gap: 22px; }
  .info-row{ display: flex; gap: 14px; align-items: flex-start; }
  .info-icon{ width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 2px; }
  .info-label{ font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
  .info-value{ font-size: 0.98rem; color: var(--text); margin-top: 2px; }
  .placeholder-note{
    font-size: 0.78rem; color: var(--text-muted); font-style: italic;
  }

  form{ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 28px; box-shadow: var(--shadow); }
  .form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  @media (max-width: 520px){ .form-row{ grid-template-columns: 1fr; } }
  .field{ display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
  .field label{ font-size: 0.82rem; font-weight: 600; color: var(--text); }
  .field input, .field select, .field textarea{
    font-family: var(--font-body); font-size: 0.95rem; padding: 11px 12px;
    border-radius: var(--radius-s); border: 1px solid var(--border-strong);
    background: var(--bg); color: var(--text); width: 100%;
  }
  .field input:focus, .field select:focus, .field textarea:focus{
    outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal);
  }
  .field textarea{ resize: vertical; min-height: 90px; font-family: var(--font-body); }
  .form-foot{ display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
  .form-fineprint{ font-size: 0.78rem; color: var(--text-muted); }
  .success-box{
    display: none; align-items: flex-start; gap: 12px;
    background: var(--teal-soft); border: 1px solid var(--teal); border-radius: var(--radius-m);
    padding: 16px 18px; margin-bottom: 16px;
  }
  .success-box.show{ display: flex; }
  .success-box svg{ width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 2px; }
  .success-box strong{ display: block; color: var(--text); font-size: 0.95rem; }
  .success-box span{ font-size: 0.85rem; color: var(--text-muted); }

  /* ============ Footer ============ */
  footer{ border-top: 1px solid var(--border); padding-block: 30px; }
  .foot-row{ display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
  .foot-brand{ display: flex; align-items: center; gap: 10px; }
  .foot-links{ display: flex; gap: 22px; }
  .foot-links a{ text-decoration: none; font-size: 0.85rem; color: var(--text-muted); }
  .foot-links a:hover{ color: var(--text); }
  .foot-copy{ font-size: 0.8rem; color: var(--text-muted); }

  [hidden]{ display: none !important; }

  /* ============ CMS edit mode ============ */
  body.cms-editing [data-cms]{
    outline: 1.5px dashed color-mix(in srgb, var(--teal) 65%, transparent);
    outline-offset: 3px;
    border-radius: 4px;
    cursor: text;
    transition: background 0.12s ease;
  }
  body.cms-editing [data-cms]:hover{ background: var(--teal-soft); }
  body.cms-editing [data-cms]:focus{
    outline: 1.5px solid var(--teal);
    background: var(--teal-soft);
  }
  body.cms-editing{ padding-bottom: 68px; }

  .cms-bar{
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    display: none;
    background: var(--surface); border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px -12px rgba(0,0,0,0.25);
  }
  .cms-bar.show{ display: block; }
.cms-bar-inner {
    max-width: 1290px;
    margin-inline: auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
  .cms-bar-label{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
  .cms-bar-label .rec-dot{ background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  .cms-bar-actions{ display: flex; gap: 8px; flex-wrap: wrap; }
  .btn-sm{ padding: 8px 14px; font-size: 0.82rem; }
  .btn-danger{ background: transparent; color: var(--danger); border-color: var(--danger); }
  .btn-danger:hover{ background: var(--danger-soft); }

  .cms-launcher{
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: 999px;
    padding: 11px 18px; font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
    box-shadow: var(--shadow); cursor: pointer;
  }
  .cms-launcher:hover{ background: var(--surface-2); }
  .cms-launcher svg{ width: 15px; height: 15px; }
  body.cms-editing .cms-launcher{ display: none; }

  .cms-toast{
    position: fixed; right: 20px; bottom: 84px; z-index: 110;
    background: var(--teal); color: #fff; font-size: 0.85rem; font-weight: 600;
    padding: 10px 16px; border-radius: var(--radius-s); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(6px); transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
  }
  .cms-toast.show{ opacity: 1; transform: translateY(0); }

  @media (max-width: 700px){
    .cms-bar-inner{ flex-direction: column; align-items: stretch; }
    .cms-bar-actions{ justify-content: center; }
  }

  /* ============ Accessibility ============ */
  /* Visible on every interactive element by default; the more specific
     .btn:focus-visible rule above still wins for buttons/links styled as buttons. */
  a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
  textarea:focus-visible, [tabindex]:focus-visible{
    outline: 2px solid var(--teal);
    outline-offset: 2px;
    border-radius: 2px;
  }

  /* Visually hidden but still reachable by screen readers and, for the skip
     link, revealed on keyboard focus. */
  .visually-hidden{
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
  .skip-link{
    position: absolute; top: -100%; left: 12px; z-index: 100;
    background: var(--surface); color: var(--text);
    padding: 10px 16px; border-radius: var(--radius-s);
    border: 1px solid var(--border-strong); box-shadow: var(--shadow);
    font-weight: 600; font-size: 0.9rem; text-decoration: none;
    transition: top 0.15s ease;
  }
  .skip-link:focus{ top: 12px; }
