/* generated by tools/redesign/pages_dial.py from site/dial-practical/ (ShushtarWolf) */
/* Shared dial calculator styles — page chrome (header/footer/theme) comes from assets/css/site.css */
/* Dial tokens aliased to the main-site theme (light / dark / noir). */
:root, [data-theme="light"] {
  --teal: var(--brand-2);
  --teal-dark: #0b2e32;
  --accent: #2ec4c6;
  --card: var(--surface);
  --card-b: color-mix(in srgb, var(--brand) 14%, transparent);
  --font: "Kalameh", Tahoma, system-ui, sans-serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --teal: #2ec4c6;
  --accent: #2ec4c6;
  --card: var(--surface);
  --card-b: rgba(46,196,198,0.16);
  color-scheme: dark;
}
[data-theme="noir"] {
  --teal: #a78bfa;
  --teal-dark: #120a24;
  --accent: #c4b5fd;
  --card: var(--surface);
  --card-b: rgba(167,139,250,0.22);
  color-scheme: dark;
}
.dp-embed, .dp-embed * { box-sizing: border-box; }
.dp-embed h1, .dp-embed h2, .dp-embed h3, .dp-embed p { margin: 0; }

/* body colour/font/background owned by site.css */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* intro band for alternative pages */
.intro { padding: 104px 20px 34px; text-align: center; background:
  radial-gradient(60% 70% at 80% 0%, rgba(46,196,198,0.14), transparent 70%), radial-gradient(50% 60% at 10% 100%, rgba(5,104,107,0.08), transparent 70%), var(--bg); }
.intro .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(5,104,107,0.08); color: var(--teal); border: 1px solid rgba(5,104,107,0.16); padding: 6px 14px; border-radius: 999px; font-size: .76rem; font-weight: 700; margin-bottom: 12px; }
[data-theme="dark"] .intro .eyebrow { background: rgba(46,196,198,0.10); color: #2ec4c6; border-color: rgba(46,196,198,0.26); }
.intro h1 { font-size: clamp(1.7rem, 4.6vw, 2.9rem); font-weight: 900; line-height: 1.3; margin-bottom: 8px; }
.intro h1 em { font-style: normal; color: var(--teal); }
[data-theme="dark"] .intro h1 em { color: #2ec4c6; }
.intro p { color: var(--muted); max-width: 560px; margin: 0 auto 18px; font-size: 1rem; }

/* buttons + chips */
.hero-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: #2ec4c6; color: #0b2e32; padding: 12px 24px; border-radius: 999px; font-weight: 800; font-size: .9rem; border: none; cursor: pointer; font-family: inherit; box-shadow: 0 8px 32px rgba(46,196,198,0.35); transition: transform .3s, box-shadow .3s; white-space: nowrap; }
.hero-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(46,196,198,0.5); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { font-family: inherit; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; cursor: pointer; border: 1px solid var(--card-b); background: var(--card); color: var(--ink); transition: background .25s, color .25s, border-color .25s, transform .2s; white-space: nowrap; }
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip.on { background: var(--teal); color: #fff; border-color: var(--teal); }
[data-theme="dark"] .chip.on { background: #2ec4c6; color: #072326; border-color: #2ec4c6; }
.confirm { font-family: inherit; font-weight: 800; font-size: .76rem; border: 0; border-radius: 999px; padding: 5px 13px; cursor: pointer; background: var(--accent); color: #0b2e32; }
.confirm[hidden] { display: none; }
@media (max-width: 860px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { font-size: .72rem; padding: 3px 10px; }
}

/* scroll-driven section scaffold */
.calc { position: relative; }
.calc-track { position: relative; }
.calc-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* rolling digits (fixed roller: per-digit width, 1.2em cell, clipping window) */
.odo { --cell: 1.2em; display: inline-flex; direction: ltr; unicode-bidi: isolate; line-height: var(--cell); height: var(--cell); font-weight: 900; vertical-align: bottom; }
.odo-col { display: inline-block; position: relative; width: .62em; height: var(--cell); text-align: center; transition: width .55s cubic-bezier(.2,.75,.25,1), opacity .35s; }
.odo-col.off { opacity: 0; }
.odo-win { position: absolute; top: 0; bottom: 0; left: -.26em; right: -.26em; overflow: hidden; }
.odo-strip { display: block; transition: transform .55s cubic-bezier(.2,.75,.25,1); will-change: transform; }
.odo-strip span { display: block; height: var(--cell); line-height: var(--cell); white-space: nowrap; }
.odo-sep { display: inline-block; width: .34em; height: var(--cell); line-height: var(--cell); text-align: center; overflow: hidden; transition: width .35s, opacity .35s; }
.odo-sep.off { width: 0; opacity: 0; }
.no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; }

/* footnote, CTA band, footer (template) */
.foot-note { text-align: center; color: var(--muted); font-size: .86rem; padding: 28px 24px; background: var(--bg); }
.foot-note b { color: var(--teal); }
[data-theme="dark"] .foot-note b { color: #2ec4c6; }
.cta-band {
  background: linear-gradient(135deg, #05686b, #0b2e32);
  color: #fff;
  text-align: center;
  border-radius: 26px;
  border: 0;
  padding: 48px 24px;
  /* standalone card: inset like dial cards, clear air above the footer */
  max-width: 1180px;
  width: auto;
  margin: 8px 12px 56px;
  box-sizing: border-box;
}
@media (min-width: 861px) {
  .cta-band {
    margin: 16px auto 80px;
    width: calc(100% - 48px);
    max-width: 1180px;
    padding: 56px 28px;
  }
}
.cta-band h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; color: #fff; }
.cta-band p { opacity: 0.85; margin-bottom: 20px; color: rgba(255,255,255,.84); }
.cta-band .hero-btn { background: #fff; color: #05686b; }
.cta-sub { margin: 16px 0 0 !important; font-size: 0.9rem; }
.cta-sub a { color: #fff; font-weight: 700; }
[data-theme="dark"] .cta-band { background: linear-gradient(135deg, #0a4a4d, #082427); border-top: 0; }
[data-theme="dark"] .cta-band .hero-btn { background: #2ec4c6; color: #072326; }

.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease, fill .45s ease, stroke .45s ease, box-shadow .45s ease, opacity .35s ease, transform .45s cubic-bezier(.3,1.4,.5,1) !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .odo-strip, .odo-col, .odo-sep { transition: none !important; }
}


.dial-sec { background: var(--bg); }
    /* Neutralize main-site .calc / .chip rules that collide with the dial layout */
    section.calc.dial-sec {
      background: var(--bg);
      border: 0;
      border-radius: 0;
      padding: 0;
      box-shadow: none;
    }
    section.calc.dial-sec h2 {
      font-size: clamp(1.1rem, 2.3vw, 1.65rem);
      font-weight: 900;
      line-height: 1.35;
      margin: 0;
    }
    .dial-sec .chip {
      display: inline-block;
      align-items: unset;
      gap: unset;
      font-family: inherit;
      font-size: .78rem;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: 999px;
      cursor: pointer;
      border: 1px solid var(--card-b);
      background: var(--card);
      color: var(--ink);
      box-shadow: none;
      min-height: 0;
      white-space: nowrap;
    }
    .dial-sec .chip::before { content: none !important; display: none !important; width: 0; height: 0; margin: 0; padding: 0; }
    .dial-sec .chip:hover { border-color: var(--accent); transform: translateY(-1px); }
    .dial-sec .chip.on { background: var(--teal); color: #fff; border-color: var(--teal); }
    [data-theme="dark"] .dial-sec .chip.on { background: #2ec4c6; color: #072326; border-color: #2ec4c6; }
    [data-theme="noir"] .dial-sec .chip.on { background: #a78bfa; color: #120a24; border-color: #a78bfa; }
    @media (max-width: 860px) {
      .dial-sec .chip { font-size: .72rem; padding: 3px 10px; }
    }
    /* practical version: no scroll-scrub; each calculator is one normal screen and the page scrolls normally */
    .dial-sec .calc-track { height: auto; }
    .dial-sec .calc-pin { position: relative; }
    #calc2 { background: radial-gradient(70% 50% at 50% 0%, rgba(46,196,198,.08), transparent 70%), var(--bg); }
    .calc-pin { padding: 76px 24px 16px; }
    .dev { height: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 12px; }
    .dev-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px 20px; flex-wrap: wrap; }
    .dev-tag { display: inline-flex; gap: 8px; align-items: center; font-size: .7rem; font-weight: 800; letter-spacing: .12em; color: var(--teal); }
    .dev-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61,220,132,.2), 0 0 10px #3ddc84; }
    [data-theme="dark"] .dev-tag { color: #2ec4c6; }
    .dev-head h2 { font-size: clamp(1.1rem, 2.3vw, 1.65rem); font-weight: 900; line-height: 1.35; }
    .dev-hint { color: var(--muted); font-size: .8rem; }
    .dev-ctl { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
    .dev-body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "w k c" "h k s"; gap: 14px 24px; min-height: 0; }
    .dev-body > * { min-width: 0; min-height: 0; }

    /* device bezel look */
    .bezel { border-radius: 20px; padding: 9px; background: linear-gradient(160deg, #f9fbfb, #dfe8e9); border: 1px solid rgba(5,104,107,.12); box-shadow: 0 14px 34px rgba(11,46,50,.10), inset 0 1px 0 #fff; }
    [data-theme="dark"] .bezel { background: linear-gradient(160deg, #183a3e, #0c2427); border-color: rgba(46,196,198,.16); box-shadow: 0 14px 34px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); }

    /* knob */
    .knob-area { grid-area: k; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
    .knob-wrap { position: relative; width: min(330px, 40vh); aspect-ratio: 1; }
    .knob-scale { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
    .knob-scale .tick { stroke: rgba(5,104,107,.35); stroke-width: 1.4; }
    .knob-scale .tick.major { stroke: var(--teal); stroke-width: 2.2; }
    [data-theme="dark"] .knob-scale .tick { stroke: rgba(168,213,214,.35); }
    [data-theme="dark"] .knob-scale .tick.major { stroke: #2ec4c6; }
    .knob-track { fill: none; stroke: rgba(5,104,107,.12); stroke-width: 5; stroke-linecap: round; }
    [data-theme="dark"] .knob-track { stroke: rgba(168,213,214,.14); }
    .knob-arc { fill: none; stroke: url(#arcGrad); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(46,196,198,.55)); }
    .knob { position: absolute; inset: 15%; border-radius: 50%;
      background: repeating-conic-gradient(from 0deg, rgba(0,0,0,.08) 0 1.5deg, rgba(255,255,255,.5) 1.5deg 3deg), radial-gradient(circle at 35% 28%, #ffffff, #e2eaeb 45%, #b7c7c8 100%);
      box-shadow: 0 22px 44px rgba(11,46,50,.28), 0 4px 10px rgba(11,46,50,.18), inset 0 -8px 16px rgba(0,0,0,.14), inset 0 6px 12px rgba(255,255,255,.9); }
    [data-theme="dark"] .knob { background: repeating-conic-gradient(from 0deg, rgba(0,0,0,.25) 0 1.5deg, rgba(255,255,255,.07) 1.5deg 3deg), radial-gradient(circle at 35% 28%, #3c5357, #1f3336 50%, #0d1c1e 100%);
      box-shadow: 0 22px 44px rgba(0,0,0,.55), inset 0 -8px 16px rgba(0,0,0,.4), inset 0 4px 10px rgba(255,255,255,.08); }
    .knob::before { content: ""; position: absolute; inset: 15%; border-radius: 50%; background: radial-gradient(circle at 40% 32%, #fdfefe, #d4dfe0 75%); box-shadow: inset 0 3px 8px rgba(0,0,0,.13), 0 1px 0 rgba(255,255,255,.9); }
    [data-theme="dark"] .knob::before { background: radial-gradient(circle at 40% 32%, #2e4649, #142729 75%); box-shadow: inset 0 3px 8px rgba(0,0,0,.45); }
    .knob-mark { position: absolute; left: 50%; top: 5%; width: 6px; height: 17%; margin-left: -3px; border-radius: 3px; background: var(--teal); box-shadow: 0 0 10px rgba(46,196,198,.7); }
    [data-theme="dark"] .knob-mark { background: #2ec4c6; }
    .knob-wrap[role="slider"] { touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; outline: none; border-radius: 50%; }
    .knob-wrap.dragging { cursor: grabbing; }
    .knob-wrap:focus-visible .knob { outline: 2px solid var(--accent); outline-offset: 4px; }
    .knob.swing { transition: transform .35s cubic-bezier(.2,.75,.25,1); }
    .knob-logo { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; font-size: clamp(.9rem, 2vw, 1.15rem); color: rgba(5,104,107,.55); pointer-events: none; }
    [data-theme="dark"] .knob-logo { color: rgba(46,196,198,.6); }
    .lcd { display: flex; gap: 10px; }
    .lcd-cell { background: #061719; color: #d9f2f2; border-radius: 12px; padding: 6px 16px 4px; min-width: 150px; text-align: center; box-shadow: inset 0 2px 10px rgba(0,0,0,.6); border: 1px solid rgba(46,196,198,.18); position: relative; transition: border-color .3s, box-shadow .3s, opacity .3s; }
    .lcd-cell .lbl { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .72rem; font-weight: 700; color: rgba(217,242,242,.72); }
    .lcd-cell .led { width: 7px; height: 7px; border-radius: 50%; background: #234; transition: background .3s, box-shadow .3s; }
    .lcd-cell .odo { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: #7fe9ea; text-shadow: 0 0 12px rgba(46,196,198,.45); }
    .lcd-cell.active { border-color: #2ec4c6; box-shadow: inset 0 2px 10px rgba(0,0,0,.6), 0 0 0 3px rgba(46,196,198,.18); }
    .lcd-cell.active .led { background: #3ddc84; box-shadow: 0 0 8px #3ddc84; }
    .lcd-cell.idle { opacity: .7; }
    /* editable value: transparent input over the cell; shown in place of the rolling digits only while editing */
    .lcd-cell.has-in { cursor: text; }
    .lcd-cell .odo-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; margin: 0; padding: 0; background: transparent; cursor: text; font: inherit; font-weight: 900; color: #7fe9ea; caret-color: #7fe9ea; text-align: center; direction: ltr; outline: none; -webkit-appearance: none; appearance: none; border-radius: 0; }
    .lcd-cell.editing .odo { visibility: hidden; }
    .lcd-cell.editing .odo-in { inset: auto 0 4px 0; height: 1.2em; line-height: 1.2em; opacity: 1; font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-shadow: 0 0 12px rgba(46,196,198,.45); }
    .lcd-cell .odo-in::selection { background: rgba(46,196,198,.35); color: #fff; }
    .lcd-cell.editing { border-color: #2ec4c6; box-shadow: inset 0 2px 10px rgba(0,0,0,.6), 0 0 0 3px rgba(46,196,198,.32); opacity: 1; }
    .lcd-cell .hold { position: absolute; top: 4px; left: 6px; font-size: .6rem; font-weight: 800; color: #072326; background: #2ec4c6; border-radius: 999px; padding: 0 6px; opacity: 0; transition: opacity .3s; }
    .lcd-cell.held .hold { opacity: 1; }

    /* monitors */
    .mon { display: flex; }
    .mon-w { grid-area: w; } .mon-c { grid-area: c; } .mon-h { grid-area: h; }
    .mon-screen { flex: 1; border-radius: 13px; background-color: #061719;
      background-image: linear-gradient(rgba(46,196,198,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(46,196,198,.07) 1px, transparent 1px);
      background-size: 18px 18px; box-shadow: inset 0 2px 14px rgba(0,0,0,.65); color: #d9f2f2; position: relative; overflow: hidden;
      display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; padding: 10px 16px; }
    .mon-screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.05) 48%, transparent 52%); transform: translateX(-100%); animation: sweep 5.5s linear infinite; pointer-events: none; }
    @keyframes sweep { to { transform: translateX(100%); } }
    .mon-w .mon-screen { --mc: #62d9ff; } .mon-c .mon-screen { --mc: #8fe27c; } .mon-h .mon-screen { --mc: #ffc861; }
    .gauge { width: 132px; height: 86px; overflow: visible; }
    .g-track { fill: none; stroke: rgba(217,242,242,.12); stroke-width: 7; stroke-linecap: round; }
    .g-arc { fill: none; stroke: var(--mc); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--mc)); }
    .g-tick { stroke: rgba(217,242,242,.35); stroke-width: 1.2; }
    .g-needle { stroke: #f4fbfb; stroke-width: 2.4; stroke-linecap: round; }
    .g-hub { fill: #f4fbfb; }
    .mon-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
    .mon-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; color: rgba(217,242,242,.78); }
    .mon-top i { font-style: normal; font-size: .62rem; letter-spacing: .1em; color: var(--mc); }
    .mon-val { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
    .mon-val .odo { font-size: clamp(1.15rem, 1.75vw, 1.6rem); color: var(--mc); text-shadow: 0 0 10px color-mix(in srgb, var(--mc) 45%, transparent); }
    .mon-val small { font-size: .74rem; font-weight: 700; color: rgba(217,242,242,.72); }
    .mon-sub { font-size: .72rem; color: rgba(217,242,242,.74); line-height: 1.5; }
    .mon-sub b { color: #fff; }

    .dev-sum { grid-area: s; display: flex; }
    .dev-sum .sum-in { flex: 1; border-radius: 13px; background: var(--card); padding: 12px 16px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
    .sum-text { font-size: .86rem; line-height: 1.7; color: var(--ink); }
    .sum-text b { color: var(--teal); font-weight: 900; }
    [data-theme="dark"] .sum-text b { color: #2ec4c6; }
    .sum-note { display: block; font-size: .7rem; color: var(--muted); }
    .dev-sum .hero-btn { align-self: flex-start; padding: 10px 20px; font-size: .84rem; }

    @media (min-width: 861px) {
      .mon-screen { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; align-content: center; gap: 6px; padding: 12px 18px; }
      .gauge { width: min(200px, 100%); height: auto; }
      .mon-txt { align-items: center; }
      .mon-top { justify-content: center; gap: 10px; font-size: .8rem; }
      .mon-val { justify-content: center; }
      .mon-val .odo { font-size: clamp(1.3rem, 1.9vw, 1.85rem); }
      .mon-sub { font-size: .76rem; }
    }
    @media (max-width: 860px) {
      .calc-pin { padding: 60px 12px 10px; }
      .dev { gap: 8px; }
      .dev-head { align-items: stretch; flex-direction: column; gap: 4px; }
      .dev-head h2 { font-size: 1.05rem; }
      .dev-hint { font-size: .7rem; }
      .dev-ctl { align-items: stretch; }
      .dev-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto repeat(3, minmax(0, 1fr)) auto; grid-template-areas: "k" "w" "c" "h" "s"; gap: 7px; }
      .knob-area { flex-direction: row; gap: 12px; justify-content: space-between; }
      .knob-wrap { width: 128px; flex: none; }
      .knob-logo { font-size: .7rem; }
      .lcd { flex: 1; flex-direction: column; gap: 6px; }
      .lcd-cell { min-width: 0; padding: 3px 10px 2px; }
      .lcd-cell .odo { font-size: 1.75rem; }
      #calc2 .lcd-cell .odo { font-size: 1.35rem; }
      .lcd-cell.editing .odo-in { font-size: 1.75rem; bottom: 2px; }
      #calc2 .lcd-cell.editing .odo-in { font-size: 1.35rem; }
      .bezel { padding: 5px; border-radius: 15px; }
      .mon-screen { padding: 4px 12px; gap: 0 10px; border-radius: 11px; }
      .gauge { width: 78px; height: 52px; }
      .mon-val .odo { font-size: 1.2rem; }
      .mon-sub { font-size: .66rem; }
      .dev-sum .sum-in { flex-direction: row; align-items: center; padding: 7px 10px; gap: 8px; }
      .sum-text { font-size: .7rem; line-height: 1.55; }
      .sum-note { display: none; }
      .dev-sum .hero-btn { padding: 8px 11px; font-size: .72rem; align-self: center; }
    }
    @media (min-width: 861px) and (max-height: 780px) { .knob-wrap { width: min(280px, 36vh); } .gauge { width: min(150px, 100%); } }

  
    /* Dial-only token aliases (site.css owns --bg/--ink/--muted/--brand) */
    :root, [data-theme="light"] {
      --teal: var(--brand-2);
      --teal-dark: #0b2e32;
      --accent: #2ec4c6;
      --card: var(--surface);
      --card-b: color-mix(in srgb, var(--brand) 14%, transparent);
    }
    [data-theme="dark"] {
      --teal: #2ec4c6;
      --accent: #2ec4c6;
      --card: var(--surface);
      --card-b: rgba(46,196,198,0.16);
    }
    [data-theme="noir"] {
      --teal: #a78bfa;
      --teal-dark: #120a24;
      --accent: #c4b5fd;
      --card: var(--surface);
      --card-b: rgba(167,139,250,0.22);
    }
    /* Dial accents that previously hard-coded teal → follow theme accent in noir */
    [data-theme="noir"] .dev-tag { color: #c4b5fd; }
    [data-theme="noir"] .dev-tag::before { background: #a78bfa; box-shadow: 0 0 0 3px rgba(167,139,250,.22), 0 0 10px #a78bfa; }
    [data-theme="noir"] .knob-scale .tick.major { stroke: #a78bfa; }
    [data-theme="noir"] .knob-scale .tick { stroke: rgba(196,181,253,.35); }
    [data-theme="noir"] .knob-track { stroke: rgba(196,181,253,.16); }
    [data-theme="noir"] .knob-arc { stroke: #c4b5fd; filter: drop-shadow(0 0 4px rgba(167,139,250,.55)); }
    [data-theme="noir"] .knob-mark { background: #a78bfa; box-shadow: 0 0 10px rgba(167,139,250,.7); }
    [data-theme="noir"] .knob-logo { color: rgba(196,181,253,.65); }
    [data-theme="noir"] .knob {
      background: repeating-conic-gradient(from 0deg, rgba(0,0,0,.3) 0 1.5deg, rgba(255,255,255,.06) 1.5deg 3deg), radial-gradient(circle at 35% 28%, #2a2640, #161328 50%, #0a0a12 100%);
      box-shadow: 0 22px 44px rgba(0,0,0,.55), inset 0 -8px 16px rgba(0,0,0,.45), inset 0 4px 10px rgba(255,255,255,.06);
    }
    [data-theme="noir"] .knob::before {
      background: radial-gradient(circle at 40% 32%, #2e2a45, #12101c 75%);
      box-shadow: inset 0 3px 8px rgba(0,0,0,.5);
    }
    [data-theme="noir"] .bezel {
      background: linear-gradient(160deg, #1c1a2e, #0e0d18);
      border-color: rgba(167,139,250,.2);
      box-shadow: 0 14px 34px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
    }
    [data-theme="noir"] .sum-text b { color: #c4b5fd; }
    [data-theme="noir"] .chip.on { background: #a78bfa; color: #120a24; border-color: #a78bfa; }
    [data-theme="noir"] .intro .eyebrow { background: rgba(167,139,250,.12); color: #c4b5fd; border-color: rgba(167,139,250,.3); }
    [data-theme="noir"] .intro h1 em { color: #c4b5fd; }
    [data-theme="noir"] .confirm { background: #a78bfa; color: #120a24; }
    [data-theme="noir"] .hero-btn { background: #a78bfa; color: #120a24; box-shadow: 0 8px 32px rgba(167,139,250,.35); }
    [data-theme="noir"] .hero-btn:hover { box-shadow: 0 14px 40px rgba(167,139,250,.5); }
    [data-theme="noir"] .cta-band { background: linear-gradient(135deg, #5b21b6, #0a0a12); border-top: 0; }
    [data-theme="noir"] .cta-band .hero-btn { background: #c4b5fd; color: #120a24; }
    [data-theme="noir"] .foot-note b { color: #c4b5fd; }
    [data-theme="noir"] .lcd-cell.active { border-color: #a78bfa; box-shadow: inset 0 2px 10px rgba(0,0,0,.6), 0 0 0 3px rgba(167,139,250,.22); }
    [data-theme="noir"] .lcd-cell.editing { border-color: #a78bfa; box-shadow: inset 0 2px 10px rgba(0,0,0,.6), 0 0 0 3px rgba(167,139,250,.35); }
    [data-theme="noir"] .lcd-cell .hold { background: #a78bfa; color: #120a24; }
    [data-theme="noir"] #arcGrad stop:first-child { stop-color: #6d28d9; }
    [data-theme="noir"] #arcGrad stop:last-child { stop-color: #c4b5fd; }
    /* Room for fixed transparent header over the intro */
    .dp-page .intro { padding-top: 120px; }
    .dial-sec, .dial-sec .calc-track, .dial-sec .calc-pin, .dial-sec .dev,
    .dial-sec .dev-head, .dial-sec .dev-body, .dial-sec .dev-ctl, .dial-sec .knob-area {
      min-width: 0;
    }
    .dial-sec .dev-ctl { width: 100%; align-items: stretch; }
    .dial-sec .chips { max-width: 100%; }


  