/* STM SmartCalendar handbook (stm-doc.vercel.app). Split out of the single-file handbook 2026-11-12. */
      :root {
        color-scheme: light;
        --paper: #eff2f5;
        --surface: #ffffff;
        --surface-2: #f6f8fa;
        --line: #d4dbe3;
        --line-soft: #e4e9ef;
        --ink: #141c26;
        --ink-2: #445668;
        --ink-3: #6c7e91;
        --pe: #b4530c;
        --ci: #7a3e6b;
        --accent: #f76b08;
        --accent-deep: #de6107;
        --accent-tint: #fbeadb;
        --good: #157f4a;
        --good-tint: #e1f2e9;
        --good-ink: #0d5230;
        --warn: #a8650a;
        --warn-tint: #faefd8;
        --warn-ink: #78480a;
        --bad: #b42318;
        --bad-tint: #fae6e4;
        --bad-ink: #881a11;
        --info: #2b5fa8;
        --info-tint: #e3ecf8;
        --info-ink: #1d4376;
        --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
        --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
        --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
      }
      * {
        box-sizing: border-box;
      }
      html {
        font-size: 18px;
        scroll-behavior: smooth;
        scroll-padding-top: 7rem;
      }
      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }
      }
      body {
        background: var(--paper);
        color: var(--ink);
        font-family: var(--f-body);
        font-size: 1rem;
        line-height: 1.62;
        margin: 0;
        padding: 0;
        -webkit-font-smoothing: antialiased;
      }
      img {
        max-width: 100%;
      }
      [hidden] {
        display: none !important;
      }

      /* ── nav ── */
      .nav {
        position: sticky;
        top: env(safe-area-inset-top, 0px);
        z-index: 20;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
      }
      .nav-in {
        /* wider than the 58rem reading column: six tabs + language + role must sit on ONE line on a desktop
           (with the KOM notes tab the role switch had dropped to a second row) */
        max-width: 74rem;
        margin: 0 auto;
        padding: 10px 20px;
        display: flex;
        align-items: center;
        gap: 12px 16px;
        flex-wrap: wrap;
      }
      .brand {
        font-family: var(--f-display);
        font-weight: 800;
        font-size: 0.97rem;
        letter-spacing: -0.015em;
        white-space: nowrap;
        color: var(--ink);
        text-decoration: none;
      }
      /* main menu */
      .menu {
        display: flex;
        gap: 3px;
        flex-wrap: wrap;
        margin-right: auto;
        /* A flex item that is allowed to wrap can be squeezed to one button
           wide, which split the menu into "Home Learn" / "FAQ All cards
           Glossary" long before the bar was actually full. Hold it at its
           natural width so it drops to its own row as one piece instead. */
        min-width: max-content;
      }
      .menu button {
        font-family: var(--f-display);
        font-size: 0.88rem;
        font-weight: 700;
        letter-spacing: -0.008em;
        background: transparent;
        border: 0;
        border-radius: 6px;
        padding: 8px 13px;
        cursor: pointer;
        color: var(--ink-3);
        white-space: nowrap;
      }
      .menu button:hover {
        color: var(--ink);
        background: var(--surface-2);
      }
      .menu button[aria-current="true"] {
        color: #ffffff;
        background: var(--accent-deep);
      }

      /* ── home: what this is, and the four ways in ── */
      .why {
        display: flex;
        flex-direction: column;
        gap: 11px;
        font-size: 0.96rem;
        color: var(--ink-2);
      }
      .why b {
        color: var(--ink);
        font-weight: 600;
      }
      .hub {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 4px;
      }
      @media (max-width: 620px) {
        .hub {
          grid-template-columns: 1fr;
        }
      }
      .hub-card {
        font-family: inherit;
        text-align: left;
        cursor: pointer;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 17px 19px 18px;
        display: flex;
        flex-direction: column;
        gap: 7px;
        transition:
          border-color 0.15s ease,
          box-shadow 0.15s ease;
      }
      .hub-card:hover {
        border-color: var(--accent);
        box-shadow: 0 12px 26px -20px rgba(20, 28, 38, 0.55);
      }
      .hub-card .tag {
        font-family: var(--f-mono);
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--ink-3);
      }
      .hub-card.lead .tag {
        color: var(--accent-deep);
      }
      .hub-card .t {
        font-family: var(--f-display);
        font-size: 1.04rem;
        font-weight: 700;
        letter-spacing: -0.01em;
        color: var(--ink);
        display: flex;
        align-items: baseline;
        gap: 10px;
      }
      .hub-card .t::after {
        content: "→";
        margin-left: auto;
        color: var(--accent);
      }
      .hub-card .d {
        font-size: 0.88rem;
        line-height: 1.45;
        color: var(--ink-2);
      }

      /* glossary */
      .gloss {
        display: flex;
        flex-direction: column;
      }
      .gloss-row {
        display: grid;
        grid-template-columns: minmax(7rem, 11rem) 1fr;
        gap: 3px 20px;
        padding: 13px 0;
        border-bottom: 1px solid var(--line-soft);
      }
      .gloss-row:first-child {
        border-top: 1px solid var(--line-soft);
      }
      .gloss-t {
        font-family: var(--f-display);
        font-weight: 700;
        font-size: 0.95rem;
      }
      .gloss-d {
        font-size: 0.92rem;
        color: var(--ink-2);
      }
      .gloss-d b {
        color: var(--ink);
        font-weight: 600;
      }
      @media (max-width: 560px) {
        .gloss-row {
          grid-template-columns: 1fr;
        }
        /* On a phone the five tabs genuinely do not fit on one line, so let
           them wrap again rather than push the bar sideways. */
        .menu {
          min-width: 0;
        }
      }

      /* section gauge — bare ticks in the right gutter, no panel */
      .rail-nav {
        position: fixed;
        right: 26px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 15;
        display: none;
      }
      .rail-nav::before {
        content: "";
        position: absolute;
        right: -4px;
        top: 3px;
        bottom: 3px;
        width: 1px;
        background: var(--line);
      }
      .rail-nav ol {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 11px;
      }
      .rail-nav a {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 9px;
        text-decoration: none;
        color: var(--ink-3);
        font-family: var(--f-mono);
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.13em;
        text-transform: uppercase;
        white-space: nowrap;
      }
      .rail-nav .l {
        opacity: 0.3;
        transform: none;
        transition:
          opacity 0.18s ease,
          transform 0.18s ease;
      }
      .rail-nav .d {
        display: block;
        width: 13px;
        height: 2px;
        border-radius: 1px;
        flex: none;
        background: var(--line);
        transition:
          width 0.18s ease,
          background 0.18s ease;
      }
      .rail-nav a.passed .d {
        background: var(--ink-3);
      }
      .rail-nav a:hover .l {
        opacity: 1;
        color: var(--ink);
      }
      .rail-nav a:hover .d {
        width: 22px;
        background: var(--ink-2);
      }
      .rail-nav a[aria-current="true"] .d {
        width: 30px;
        height: 3px;
        background: var(--accent);
      }
      .rail-nav a[aria-current="true"] .l {
        opacity: 1;
        color: var(--ink);
      }
      @media (prefers-reduced-motion: reduce) {
        .rail-nav .d,
        .rail-nav .l {
          transition: none;
        }
      }
      @media (min-width: 780px) {
        .rail-nav {
          display: block;
        }
        .rail-nav .l {
          display: none;
        }
      }
      @media (min-width: 1200px) {
        .rail-nav .l {
          display: inline;
        }
      }

      /* the menu shows one group; its pages stack and scroll */
      .wrap > .pane {
        display: none;
      }
      .wrap > .pane.on {
        display: flex;
        flex-direction: column;
      }
      .pane {
        scroll-margin-top: 7rem;
      }
      .seg {
        display: flex;
        border: 1px solid var(--line);
        border-radius: 5px;
        overflow: hidden;
      }
      .seg button {
        font-family: var(--f-mono);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        padding: 6px 11px;
        border: 0;
        background: var(--surface);
        color: var(--ink-3);
        cursor: pointer;
        border-left: 1px solid var(--line);
      }
      .seg button:first-child {
        border-left: 0;
      }
      .seg button[aria-pressed="true"] {
        background: var(--ink);
        color: var(--surface);
      }
      .seg-lang {
        margin-right: 4px;
      }
      :focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }

      /* Role filter. `data-only` is a space-separated list of the views an
         element belongs to, and "all" — the combined view — is one of them.
         So a SQE ENG card reads data-only="all pe", and something that should
         appear ONLY in the combined view reads data-only="all". An element
         with no data-only at all belongs everywhere. */
      :root[data-role="all"] [data-only]:not([data-only~="all"]),
      :root[data-role="pe"] [data-only]:not([data-only~="pe"]),
      :root[data-role="ci"] [data-only]:not([data-only~="ci"]) {
        display: none;
      }
      /* role-specific sentences: the combined one is the default */
      .r-pe,
      .r-ci {
        display: none;
      }
      :root[data-role="pe"] .r-all,
      :root[data-role="ci"] .r-all {
        display: none;
      }
      :root[data-role="pe"] .r-pe,
      :root[data-role="ci"] .r-ci {
        display: inline;
      }
      /* the SQE QA meets Date moved first, before any gate of their own comes due */
      :root[data-role="ci"] .rail-step[data-ci-first] {
        order: -1;
      }

      /* language switch — one language at a time */
      :root[data-lang="en"] .vi {
        display: none;
      }
      :root[data-lang="vi"] .en {
        display: none;
      }
      :root[data-lang="en"] .bi > *:nth-child(2) {
        display: none;
      }
      :root[data-lang="vi"] .bi > *:nth-child(1) {
        display: none;
      }
      :root[data-lang] .bi {
        grid-template-columns: 1fr;
        gap: 0;
      }
      :root[data-lang] .bi > * + * {
        border-left: 0;
        padding-left: 0;
        border-top: 0;
        padding-top: 0;
      }
      :root[data-lang] .lang {
        display: none;
      }

      /* red warning callout */
      .warn-note {
        display: block;
        margin-top: 11px;
        padding: 11px 13px;
        background: var(--bad-tint);
        border-left: 3px solid var(--bad);
        border-radius: 0 5px 5px 0;
        color: var(--bad-ink);
        font-size: 0.9rem;
      }
      .warn-note b {
        color: var(--bad-ink);
        font-weight: 700;
      }

      /* ── layout ── */
      .wrap {
        max-width: 58rem;
        margin: 0 auto;
        padding: 0 20px;
        padding-block: 40px calc(72px + env(safe-area-inset-bottom, 0px));
        display: flex;
        flex-direction: column;
        gap: 56px;
        /* A short group (Home, Learn) would fit without a scrollbar, and the
           bar appearing again on a long group shifts the whole layout
           sideways. A full viewport here sits *below* the nav, so the page is
           always a little taller than the frame and the scrollbar never goes
           away. The colophon is pushed to the foot of it, just out of view. */
        min-height: 100vh;
        min-height: 100dvh;
      }
      h1,
      h2,
      h3 {
        font-family: var(--f-display);
        text-wrap: balance;
        margin: 0;
      }
      h1 {
        font-size: clamp(1.95rem, 6vw, 2.7rem);
        font-weight: 800;
        letter-spacing: -0.025em;
        line-height: 1.08;
      }
      h2 {
        font-size: 1.3rem;
        font-weight: 700;
        letter-spacing: -0.012em;
      }
      h3 {
        font-size: 1.02rem;
        font-weight: 700;
      }
      p {
        margin: 0;
      }
      section {
        display: flex;
        flex-direction: column;
        gap: 18px;
      }
      .masthead {
        display: flex;
        flex-direction: column;
        gap: 13px;
      }
      .sec-head {
        display: flex;
        flex-direction: column;
        gap: 6px;
      }
      .eyebrow {
        font-family: var(--f-mono);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--ink-3);
      }

      /* bilingual */
      .bi {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 30px;
      }
      .bi > * + * {
        border-left: 1px solid var(--line-soft);
        padding-left: 30px;
      }
      .lang {
        display: none;
        font-family: var(--f-mono);
        font-size: 0.64rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        color: var(--ink-3);
        margin-bottom: 5px;
      }
      @media (max-width: 680px) {
        .bi {
          grid-template-columns: 1fr;
          gap: 16px;
        }
        .bi > * + * {
          border-left: 0;
          padding-left: 0;
          border-top: 1px dashed var(--line);
          padding-top: 14px;
        }
        .lang {
          display: block;
        }
      }

      .rule-box {
        border-left: 3px solid var(--accent);
        background: var(--surface);
        padding: 17px 19px;
      }
      .rule-box .k {
        font-family: var(--f-display);
        font-weight: 700;
        font-size: 1.02rem;
        display: block;
        margin-bottom: 5px;
      }
      .rule-box .v {
        color: var(--ink-2);
        font-size: 0.93rem;
      }

      .chip {
        display: inline-block;
        font-family: var(--f-mono);
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        padding: 3px 8px;
        border-radius: 3px;
        color: #ffffff;
        white-space: nowrap;
      }
      .chip-pe {
        background: var(--pe);
      }
      .chip-ci {
        background: var(--ci);
      }
      .chip-both {
        background: #4a5a6b;
      }
      .when {
        display: inline-block;
        font-family: var(--f-mono);
        font-size: 0.64rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        padding: 3px 8px;
        border: 1px solid var(--line);
        border-radius: 3px;
        color: var(--ink-3);
        background: var(--surface-2);
        white-space: nowrap;
      }

      /* timeline rail */
      .rail {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: stretch;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 14px;
      }
      .rail-step {
        flex: 1 1 8.5rem;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding: 9px 11px;
        border-radius: 5px;
        background: var(--surface-2);
        border-left: 3px solid var(--line);
      }
      .rail-step.s-pe {
        border-left-color: var(--pe);
      }
      .rail-step.s-ci {
        border-left-color: var(--ci);
      }
      .rail-step.s-both {
        border-left-color: #4a5a6b;
      }
      .rail-step .t {
        font-family: var(--f-mono);
        font-size: 0.62rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--ink-3);
      }
      .rail-step .c {
        font-size: 0.86rem;
        font-weight: 600;
        line-height: 1.3;
      }
      .rail-step .w {
        font-size: 0.75rem;
        color: var(--ink-3);
      }

      .block {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding-top: 6px;
      }
      .block + .block {
        border-top: 1px solid var(--line);
        padding-top: 30px;
      }
      .block-head {
        display: flex;
        align-items: center;
        gap: 11px;
        flex-wrap: wrap;
      }
      .block-sub {
        font-size: 0.93rem;
        color: var(--ink-2);
      }

      /* ── Adaptive Card replica, as Teams draws it (kept at Teams' real pixel sizes) ── */
      .ac {
        background: #ffffff;
        color: #242424;
        border: 1px solid #e1e1e1;
        border-radius: 8px;
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 14px;
        line-height: 1.45;
        overflow: hidden;
        max-width: 496px;
        width: 100%;
        box-shadow:
          0 1.6px 3.6px rgba(0, 0, 0, 0.1),
          0 0.3px 0.9px rgba(0, 0, 0, 0.07);
      }
      .ac-stage {
        display: flex;
        justify-content: center;
        padding: 2px 0;
      }
      .ac-body {
        padding: 15px 16px;
        display: flex;
        flex-direction: column;
        gap: 9px;
      }
      .ac-c {
        padding: 11px 16px;
        margin: 0 -16px;
        display: flex;
        flex-direction: column;
        gap: 5px;
      }
      .ac-c.rnd {
        margin: 0;
        border-radius: 6px;
      }
      .ac-c.top {
        margin-top: -15px;
      }
      .ac-good {
        background: #dff6dd;
      }
      .ac-warn {
        background: #fff4ce;
      }
      .ac-att {
        background: #fde7e9;
      }
      .ac-acc {
        background: #eff6fc;
      }
      .ac-emp {
        background: #f5f5f5;
      }
      .ac-lg {
        font-size: 21px;
        font-weight: 600;
      }
      .ac-md {
        font-size: 17px;
      }
      .ac-sm {
        font-size: 12px;
      }
      .ac-b {
        font-weight: 600;
      }
      .ac-sub {
        color: #616161;
      }
      .ac-ctr {
        text-align: center;
      }
      .ac-blue {
        color: #0f6cbd;
      }
      .ac-green {
        color: #0e700e;
      }
      .ac-red {
        color: #c4314b;
      }
      .ac-input {
        border: 1px solid #bdbdbd;
        border-radius: 4px;
        padding: 7px 10px;
        background: #ffffff;
        color: #242424;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        gap: 10px;
        font-variant-numeric: tabular-nums;
      }
      .ac-input.ph {
        color: #767676;
      }
      .ac-check {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 2px 0;
      }
      .ac-box {
        width: 15px;
        height: 15px;
        border: 1px solid #767676;
        border-radius: 3px;
        flex: none;
        background: #ffffff;
      }
      .ac-box.on {
        background: #5b5fc7;
        border-color: #5b5fc7;
        position: relative;
      }
      .ac-box.on::after {
        content: "";
        position: absolute;
        left: 4px;
        top: 1px;
        width: 4px;
        height: 8px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(42deg);
      }
      .ac-actions {
        display: flex;
        gap: 9px;
        flex-wrap: wrap;
        padding-top: 4px;
      }
      .ac-btn {
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.45;
        padding: 7px 18px;
        border: 0;
        border-radius: 4px;
        color: #ffffff;
      }
      button.ac-btn {
        cursor: pointer;
      }
      button.ac-btn[aria-expanded="true"] {
        box-shadow: inset 0 0 0 2px #242424;
      }
      .ac-btn-pass {
        background: #0e700e;
      }
      .ac-btn-fail {
        background: #c4314b;
      }
      .ac-btn-go {
        background: #5b5fc7;
      }
      .ac-sect {
        display: flex;
        flex-direction: column;
        gap: 9px;
      }
      .ac-facts {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 4px 16px;
        font-size: 14px;
      }
      .ac-facts dt {
        font-weight: 600;
      }
      .ac-facts dd {
        margin: 0;
        overflow-wrap: anywhere;
      }
      .ac-tbl {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
      }
      .ac-tbl th {
        text-align: left;
        font-weight: 600;
        padding: 4px 8px 4px 0;
        border-bottom: 1px solid #e1e1e1;
      }
      .ac-tbl td {
        padding: 4px 8px 4px 0;
        vertical-align: top;
      }
      .try {
        font-family: var(--f-mono);
        font-size: 0.74rem;
        color: var(--ink-3);
        text-align: center;
        margin-top: -4px;
      }

      .notes {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 9px;
      }
      .notes li {
        font-size: 0.91rem;
        color: var(--ink-2);
        padding-left: 15px;
        border-left: 2px solid var(--line);
      }
      .notes li b {
        color: var(--ink);
        font-weight: 600;
      }
      .notes code,
      .inl {
        font-family: var(--f-mono);
        font-size: 0.83em;
        background: var(--surface-2);
        border: 1px solid var(--line-soft);
        border-radius: 3px;
        padding: 1px 5px;
        overflow-wrap: anywhere;
      }

      /* confirmation colour legend */
      .cards {
        display: flex;
        flex-direction: column;
        gap: 14px;
      }
      .conf {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 8px;
        overflow: hidden;
      }
      .conf .banner {
        padding: 12px 16px;
        display: flex;
        align-items: baseline;
        gap: 12px;
        flex-wrap: wrap;
        border-bottom: 1px solid var(--line-soft);
      }
      .banner .swatch {
        font-family: var(--f-mono);
        font-size: 0.64rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        opacity: 0.75;
      }
      .banner .verdict {
        font-family: var(--f-display);
        font-weight: 700;
        font-size: 1.04rem;
      }
      .conf .split {
        padding: 16px;
      }
      .conf .says {
        font-size: 0.96rem;
      }
      .conf .does {
        display: block;
        margin-top: 9px;
        padding-top: 9px;
        border-top: 1px dashed var(--line);
        font-size: 0.9rem;
        color: var(--ink-2);
      }
      .does b {
        color: var(--ink);
        font-weight: 600;
      }
      .alsoseen {
        font-family: var(--f-mono);
        font-size: 0.73rem;
        color: var(--ink-3);
        padding: 0 16px 14px;
        overflow-wrap: anywhere;
      }
      .c-good {
        border-top: 3px solid var(--good);
      }
      .c-good .banner {
        background: var(--good-tint);
        color: var(--good-ink);
      }
      .c-warn {
        border-top: 3px solid var(--warn);
      }
      .c-warn .banner {
        background: var(--warn-tint);
        color: var(--warn-ink);
      }
      .c-bad {
        border-top: 3px solid var(--bad);
      }
      .c-bad .banner {
        background: var(--bad-tint);
        color: var(--bad-ink);
      }
      .c-info {
        border-top: 3px solid var(--info);
      }
      .c-info .banner {
        background: var(--info-tint);
        color: var(--info-ink);
      }
      .silence {
        border: 2px dashed var(--line);
        border-radius: 8px;
        padding: 16px;
      }
      .silence .verdict {
        font-family: var(--f-display);
        font-weight: 700;
        font-size: 1.04rem;
        color: var(--ink-2);
        display: block;
        margin-bottom: 12px;
      }

      .deadline {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 18px;
        display: flex;
        flex-direction: column;
        gap: 14px;
      }
      .stamp {
        font-family: var(--f-mono);
        font-size: 0.8rem;
        background: var(--surface-2);
        border: 1px solid var(--line-soft);
        border-radius: 5px;
        padding: 10px 12px;
        color: var(--ink-2);
        overflow-wrap: anywhere;
      }
      .stamp b {
        color: var(--ink);
        font-weight: 600;
      }

      /* gates */
      .gates {
        display: flex;
        flex-direction: column;
      }
      .gate {
        display: grid;
        grid-template-columns: 2rem 1fr auto auto;
        gap: 0 14px;
        align-items: baseline;
        padding: 11px 0;
        border-bottom: 1px solid var(--line-soft);
      }
      .gate:first-child {
        border-top: 1px solid var(--line-soft);
      }
      .gate .n {
        font-family: var(--f-mono);
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--ink-3);
        font-variant-numeric: tabular-nums;
      }
      .gate .nm {
        font-weight: 500;
      }
      .gate .off {
        font-family: var(--f-mono);
        font-size: 0.8rem;
        color: var(--ink-3);
        font-variant-numeric: tabular-nums;
        white-space: nowrap;
      }
      .gate .ow {
        font-family: var(--f-mono);
        font-size: 0.66rem;
        font-weight: 600;
        letter-spacing: 0.1em;
      }
      .ow-pe {
        color: var(--pe);
      }
      .ow-ci {
        color: var(--ci);
      }
      .gate.handoff {
        opacity: 0.55;
      }
      .gate.handoff .nm {
        font-style: italic;
      }

      /* q&a — colour-coded by topic */
      .qa {
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
      .qa-item {
        --k: var(--line);
        background: var(--surface);
        border: 1px solid var(--line-soft);
        border-left: 3px solid var(--k);
        border-radius: 0 6px 6px 0;
        padding: 15px 17px;
      }
      .qa-item[data-cat]::before {
        content: attr(data-cat);
        grid-column: 1 / -1;
        justify-self: start;
        font-family: var(--f-mono);
        font-size: 0.6rem;
        font-weight: 600;
        letter-spacing: 0.13em;
        text-transform: uppercase;
        color: #ffffff;
        background: var(--k);
        padding: 3px 8px;
        border-radius: 3px;
        margin-bottom: 11px;
      }
      .k-time {
        --k: #2b5fa8;
      }
      .k-data {
        --k: #6b3fa0;
      }
      .k-edit {
        --k: #0f766e;
      }
      .k-disp {
        --k: #a8650a;
      }
      .k-err {
        --k: #b42318;
      }
      .k-fix {
        --k: #b4315e;
      }
      .qa-item .q {
        font-family: var(--f-display);
        font-weight: 700;
        font-size: 0.98rem;
        display: block;
        margin-bottom: 6px;
      }
      .qa-item .a {
        font-size: 0.93rem;
        color: var(--ink-2);
      }
      .qa-item .a b {
        color: var(--ink);
        font-weight: 600;
      }

      /* Outlook pane replica */
      .crumb {
        font-family: var(--f-mono);
        font-size: 0.78rem;
        color: var(--ink-2);
        background: var(--surface-2);
        border: 1px solid var(--line);
        border-radius: 6px;
        padding: 10px 13px;
        overflow-wrap: anywhere;
      }
      .crumb b {
        color: var(--ink);
      }
      .ol-split {
        display: grid;
        grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
        gap: 16px;
        align-items: start;
      }
      @media (max-width: 620px) {
        .ol-split {
          grid-template-columns: 1fr;
        }
      }
      .ol {
        background: #ffffff;
        color: #201f1e;
        border: 1px solid #e1dfdd;
        border-radius: 6px;
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 13px;
        padding: 8px 0;
        box-shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.08);
      }
      .ol-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 5px 12px;
      }
      .ol-grp {
        font-weight: 600;
      }
      .ol-ind {
        padding-left: 30px;
      }
      .ol-chev {
        color: #605e5c;
        font-size: 10px;
      }
      .ol-dot {
        width: 13px;
        height: 13px;
        border: 1px solid #8a8886;
        border-radius: 50%;
        flex: none;
      }
      .ol-dot.on {
        background: #107c10;
        border-color: #107c10;
        position: relative;
      }
      .ol-dot.on::after {
        content: "";
        position: absolute;
        left: 4px;
        top: 1px;
        width: 3px;
        height: 7px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(42deg);
      }
      .ol-on {
        background: #f3f2f1;
        font-weight: 600;
      }
      .ol-event {
        background: #dff6dd;
        border-left: 4px solid #107c10;
        border-radius: 4px;
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 12.5px;
        color: #201f1e;
        padding: 9px 11px;
        line-height: 1.35;
      }
      .ol-menu {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-top: 9px;
      }
      .ol-mi {
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 12.5px;
        color: #201f1e;
        background: #ffffff;
        border: 1px solid #c8c6c4;
        border-radius: 4px;
        padding: 5px 12px;
      }
      .steps {
        list-style: none;
        margin: 0;
        padding: 0;
        counter-reset: s;
        display: flex;
        flex-direction: column;
        gap: 11px;
      }
      .steps li {
        counter-increment: s;
        display: grid;
        grid-template-columns: 1.6rem 1fr;
        gap: 11px;
        font-size: 0.93rem;
        color: var(--ink-2);
      }
      .steps li::before {
        content: counter(s);
        font-family: var(--f-mono);
        font-size: 0.72rem;
        font-weight: 600;
        color: #ffffff;
        background: var(--ci);
        border-radius: 50%;
        width: 1.5rem;
        height: 1.5rem;
        display: grid;
        place-items: center;
      }
      .steps li b {
        color: var(--ink);
        font-weight: 600;
      }

      .help {
        background: var(--accent-deep);
        color: #ffffff;
        border-radius: 8px;
        padding: 22px;
        display: flex;
        flex-direction: column;
        gap: 14px;
      }
      .help h2 {
        font-size: 1.1rem;
        margin-bottom: 6px;
      }
      .help p {
        font-size: 0.93rem;
      }
      .help .mail {
        font-family: var(--f-mono);
        font-size: 0.92rem;
        font-weight: 600;
        overflow-wrap: anywhere;
      }
      .help .bi > * + * {
        border-left-color: rgba(255, 255, 255, 0.3);
      }
      @media (max-width: 680px) {
        .help .bi > * + * {
          border-top-color: rgba(255, 255, 255, 0.3);
        }
      }

      footer.colophon {
        margin-top: auto;
        font-family: var(--f-mono);
        font-size: 0.72rem;
        color: var(--ink-3);
        border-top: 1px solid var(--line);
        padding-top: 16px;
        line-height: 1.7;
      }

      @media (max-width: 430px) {
        .gate {
          grid-template-columns: 1.7rem 1fr auto;
        }
        .gate .ow {
          grid-column: 2 / -1;
        }
      }

      /* ── Learn: the quest ── */
      .qz {
        display: flex;
        flex-direction: column;
        gap: 22px;
      }
      /* One panel holds the whole quest, so it reads as a single surface
         rather than loose blocks drifting down the page. */
      .qz-panel {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow:
          0 1px 2px rgba(20, 28, 38, 0.04),
          0 10px 28px -20px rgba(20, 28, 38, 0.3);
      }
      /* The brief stays put while the learner works below it. */
      .qz-head {
        position: sticky;
        top: calc(env(safe-area-inset-top, 0px) + var(--navh, 5rem));
        z-index: 5;
        background: var(--surface);
        border-bottom: 1px solid var(--line-soft);
        border-radius: 13px 13px 0 0;
        padding: 15px 20px 14px;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }
      .qz-head .qz-task {
        background: transparent;
        border: 0;
        border-left: 3px solid var(--accent);
        border-radius: 0;
        padding: 0 0 0 13px;
      }
      .qz-body {
        display: flex;
        flex-direction: column;
        gap: 22px;
        padding: 20px;
      }
      .qz-step {
        display: flex;
        flex-direction: column;
        gap: 22px;
      }
      @media (max-width: 560px) {
        .qz-head {
          padding: 13px 15px 12px;
        }
        .qz-body {
          padding: 15px;
        }
      }
      .qz-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
      }
      .qz-pips {
        display: flex;
        gap: 4px;
        flex: 1;
        min-width: 120px;
      }
      .qz-pip {
        height: 5px;
        flex: 1;
        border-radius: 3px;
        background: var(--line);
        transition: background 0.25s ease;
      }
      .qz-pip.done {
        background: var(--good);
      }
      .qz-pip.now {
        background: var(--accent);
      }
      .qz-count {
        font-family: var(--f-mono);
        font-size: 0.7rem;
        color: var(--ink-3);
        flex: none;
      }
      .qz-who {
        font-family: var(--f-mono);
        font-size: 0.7rem;
        color: var(--ink-3);
        flex: none;
      }

      .qz-task {
        background: var(--surface);
        border: 1px solid var(--line);
        border-left: 3px solid var(--accent);
        border-radius: 0 8px 8px 0;
        padding: 17px 19px;
        display: flex;
        flex-direction: column;
        gap: 7px;
      }
      .qz-task .h {
        font-family: var(--f-mono);
        font-size: 0.64rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--accent-deep);
      }
      .qz-task .b {
        font-size: 1rem;
      }
      .qz-task .b b {
        font-weight: 600;
      }

      .qz-ask {
        display: flex;
        flex-direction: column;
        gap: 14px;
        max-width: 30rem;
      }
      .qz-ask label {
        font-weight: 600;
        font-size: 0.95rem;
      }
      .qz-input {
        font-family: var(--f-body);
        font-size: 1rem;
        color: var(--ink);
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 6px;
        padding: 11px 13px;
        width: 100%;
      }
      .qz-choice {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: left;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 15px 17px;
        cursor: pointer;
        font-family: var(--f-body);
        width: 100%;
      }
      .qz-choice:hover:not(:disabled) {
        border-color: var(--accent);
      }
      .qz-choice:disabled {
        opacity: 0.45;
        cursor: not-allowed;
      }
      .qz-choice .t {
        font-family: var(--f-display);
        font-weight: 700;
        font-size: 1.02rem;
        color: var(--ink);
      }
      .qz-choice .s {
        font-size: 0.9rem;
        color: var(--ink-2);
      }

      .qz-btn {
        font-family: var(--f-body);
        font-size: 0.95rem;
        font-weight: 600;
        background: var(--accent-deep);
        color: #ffffff;
        border: 0;
        border-radius: 6px;
        padding: 11px 22px;
        cursor: pointer;
        align-self: flex-start;
      }
      .qz-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
      }
      .qz-btn.ghost {
        background: transparent;
        color: var(--ink);
        border: 1px solid var(--line);
      }

      /* real inputs dressed as Teams controls */
      .ac-field {
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 14px;
        color: #242424;
        background: #ffffff;
        border: 1px solid #bdbdbd;
        border-radius: 4px;
        padding: 6px 9px;
        width: 100%;
        font-variant-numeric: tabular-nums;
      }
      .ac-field:focus {
        outline: 2px solid #5b5fc7;
        outline-offset: -1px;
      }
      .ac-pick {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 2px 0;
        font-size: 14px;
        cursor: pointer;
      }
      .ac-pick input {
        width: 15px;
        height: 15px;
        accent-color: #5b5fc7;
        margin: 0;
      }

      /* the system answering */
      .qz-working {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: var(--f-mono);
        font-size: 0.75rem;
        color: var(--ink-3);
      }
      .qz-dots {
        display: inline-flex;
        gap: 4px;
      }
      .qz-dots i {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--ink-3);
        animation: qzb 1s infinite ease-in-out;
      }
      .qz-dots i:nth-child(2) {
        animation-delay: 0.15s;
      }
      .qz-dots i:nth-child(3) {
        animation-delay: 0.3s;
      }
      @keyframes qzb {
        0%,
        80%,
        100% {
          opacity: 0.25;
          transform: translateY(0);
        }
        40% {
          opacity: 1;
          transform: translateY(-3px);
        }
      }
      .qz-in {
        animation: qzin 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) both;
      }
      @keyframes qzin {
        from {
          opacity: 0;
          transform: translateY(14px);
        }
        to {
          opacity: 1;
          transform: none;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .qz-in {
          animation: none;
        }
        .qz-dots i {
          animation: none;
          opacity: 0.6;
        }
      }

      .qz-verdict {
        border-radius: 0 8px 8px 0;
        padding: 15px 17px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        border-left: 3px solid var(--good);
        background: var(--good-tint);
        color: var(--good-ink);
      }
      .qz-verdict.miss {
        border-left-color: var(--bad);
        background: var(--bad-tint);
        color: var(--bad-ink);
      }
      .qz-verdict .t {
        font-family: var(--f-display);
        font-weight: 700;
        font-size: 1rem;
      }
      .qz-verdict .s {
        font-size: 0.92rem;
      }
      .qz-verdict .s b {
        font-weight: 700;
      }

      /* certificate */
      .cert {
        background: #ffffff;
        padding: 10px;
        border: 1px solid var(--line);
      }
      .cert-frame {
        position: relative;
        overflow: hidden;
        border: 7px solid #4a4a4a;
        padding: 30px 26px;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0 26px;
        align-items: start;
      }
      /* House mark, bled off the right edge — 60% inside the frame, the rest
         cropped by it. Decorative only, so it sits behind the award text. */
      .cert-logo {
        position: absolute;
        right: 0;
        top: 50%;
        height: 80%;
        width: auto;
        aspect-ratio: 554 / 279;
        /* 40% of its own width hangs past the right edge and is cropped. */
        transform: translate(40%, -50%);
        opacity: 0.09;
        pointer-events: none;
        z-index: 0;
        line-height: 0;
      }
      .cert-logo svg {
        width: 100%;
        height: auto;
        display: block;
      }
      .cert-rail,
      .cert-body {
        position: relative;
        z-index: 1;
      }
      .cert-rail {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-family: var(--f-display);
        font-weight: 800;
        font-size: clamp(1.4rem, 4.4vw, 2.1rem);
        line-height: 1.05;
        letter-spacing: 0.01em;
        color: var(--accent-deep);
        text-transform: uppercase;
        justify-self: start;
      }
      .cert-body {
        display: flex;
        flex-direction: column;
        gap: 14px;
        min-width: 0;
      }
      .cert-mark {
        display: flex;
        align-items: baseline;
        gap: 8px;
        justify-content: flex-end;
      }
      .cert-mark b {
        font-family: var(--f-display);
        font-weight: 800;
        font-size: 1rem;
        letter-spacing: -0.01em;
        color: var(--accent-deep);
      }
      .cert-mark span {
        font-family: var(--f-mono);
        font-size: 0.62rem;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--ink-3);
      }
      .cert-intro {
        margin: 0;
        font-size: 1.02rem;
        color: var(--ink);
        line-height: 1.45;
      }
      .cert-course {
        margin: 0;
        font-family: var(--f-display);
        font-weight: 700;
        font-size: 1.05rem;
        color: var(--ink);
      }
      .cert-name {
        margin: 0;
        font-family: var(--f-display);
        font-weight: 800;
        font-size: clamp(1.25rem, 4.2vw, 1.7rem);
        line-height: 1.2;
        letter-spacing: 0.01em;
        text-transform: uppercase;
        color: var(--accent-deep);
        overflow-wrap: anywhere;
      }
      .cert-line {
        margin: 0;
        font-size: 0.94rem;
        color: var(--ink-2);
        max-width: 30rem;
      }
      .cert-sign {
        margin-top: 26px;
      }
      .cert-script {
        font-family: "Pinyon Script", "Segoe Script", cursive;
        font-size: 1.7rem;
        line-height: 1.1;
        color: #1a3a6b;
      }
      .cert-signee {
        font-weight: 600;
        font-size: 0.92rem;
        margin-top: 2px;
      }
      .cert-team {
        font-size: 0.86rem;
        color: var(--ink-2);
      }
      .cert-foot {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        padding: 12px 6px 2px;
        font-family: var(--f-mono);
        font-size: 0.66rem;
        letter-spacing: 0.06em;
        color: var(--ink-3);
      }
      @media (max-width: 560px) {
        .cert-frame {
          grid-template-columns: 1fr;
          gap: 16px;
          border-width: 5px;
          padding: 22px 18px;
        }
        .cert-rail {
          writing-mode: horizontal-tb;
          transform: none;
          font-size: 1.3rem;
        }
        .cert-mark {
          justify-content: flex-start;
        }
      }

      @media print {
        body {
          background: #ffffff;
        }
        .nav,
        .rail-nav,
        .qz-bar,
        .qz-noprint,
        footer.colophon {
          display: none !important;
        }
        .wrap {
          max-width: none;
          padding-block: 0;
          /* the viewport floor is a screen device; on paper it is a blank page */
          min-height: 0;
        }
        .cert {
          border: 0;
          page-break-inside: avoid;
        }
        .cert-frame {
          border-color: #4a4a4a;
        }
        .qz-panel {
          border: 0;
          box-shadow: none;
        }
        .qz-head {
          position: static;
        }
        .qz-body {
          padding: 0;
        }
      }
      /* ══ Home: simulation of one group (same shape as the BudgetApproval
         walkthrough: frame, side panel, next bar, jump-to-step) ══ */
      .wrap > .pane.sm-pane.on {
        /* wider than the reading column; centred, never past the viewport */
        width: min(74rem, calc(100vw - 40px));
        align-self: center;
        gap: 44px;
      }
      .sm-intro {
        display: grid;
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        gap: 18px 40px;
        align-items: end;
      }
      @media (max-width: 860px) {
        .sm-intro {
          grid-template-columns: 1fr;
        }
      }
      .sm-intro h1 {
        margin: 8px 0 12px;
      }
      .sm-intro p {
        color: var(--ink-2);
        max-width: 40rem;
        font-size: 0.95rem;
      }
      .sm-rules {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
      }
      @media (max-width: 480px) {
        .sm-rules {
          grid-template-columns: 1fr;
        }
      }
      .sm-rule {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 12px 14px;
      }
      .sm-rule .k {
        font-family: var(--f-mono);
        font-size: 0.6rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ink-3);
      }
      .sm-rule .v {
        font-family: var(--f-display);
        font-weight: 800;
        font-size: 1.3rem;
        letter-spacing: -0.01em;
      }
      .sm-rule .d {
        font-size: 0.76rem;
        color: var(--ink-2);
        line-height: 1.4;
      }
      .sm-head {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 14px;
      }
      .sm-head p {
        color: var(--ink-2);
        font-size: 0.9rem;
      }

      .sm-sim {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 20rem;
        gap: 20px;
        align-items: start;
        scroll-margin-top: 90px;
      }
      @media (max-width: 1020px) {
        .sm-sim {
          grid-template-columns: minmax(0, 1fr);
        }
      }
      .sm-sim > * {
        min-width: 0;
      }
      .sm-sim.busy [data-sm]:not(.always),
      .sm-sim.busy [data-f] {
        pointer-events: none;
      }

      /* frame */
      .sm-frame {
        position: relative;
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 14px;
        overflow: hidden;
        box-shadow:
          0 1px 2px rgba(20, 28, 38, 0.05),
          0 22px 44px -30px rgba(20, 28, 38, 0.45);
      }
      .sm-fbar {
        display: flex;
        align-items: center;
        gap: 10px 14px;
        padding: 9px 14px;
        background: #f5f5f5;
        border-bottom: 1px solid #e6e6e6;
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 13px;
        flex-wrap: wrap;
      }
      .sm-dots {
        display: flex;
        align-items: center;
        gap: 7px;
      }
      .sm-dots button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 0;
        padding: 0;
        display: grid;
        place-items: center;
        box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.18);
      }
      /* red and yellow are decoration only */
      .sm-dots .d-r {
        background: #ff5f57;
      }
      .sm-dots .d-y {
        background: #febc2e;
      }
      .sm-dots button:disabled {
        filter: grayscale(1);
        opacity: 0.35;
        cursor: not-allowed;
        pointer-events: none;
      }
      .sm-dots .d-g {
        width: 16px;
        height: 16px;
        background: #28c840;
        cursor: pointer;
        box-shadow:
          inset 0 0 0 0.5px rgba(0, 0, 0, 0.18),
          0 0 0 2px #fff,
          0 0 0 3.5px #28c840;
      }
      .sm-dots .d-g svg {
        width: 9px;
        height: 9px;
      }
      /* pointer label next to the green button */
      .sm-dots .d-hint {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin-left: 4px;
        padding: 2px 8px 2px 6px;
        border-radius: 999px;
        background: #e3f7e6;
        color: #0b5a14;
        font-size: 11.5px;
        font-weight: 700;
        white-space: nowrap;
        cursor: pointer;
      }
      .sm-dots .d-hint .arr {
        display: inline-block;
        font-size: 13px;
        animation: smPoint 1s ease-in-out infinite;
      }
      @keyframes smPoint {
        0%,
        100% {
          transform: translateX(3px);
        }
        50% {
          transform: translateX(-3px);
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .sm-dots .d-hint .arr,
        .sm-dots .d-g.ping {
          animation: none;
        }
      }
      .sm-dots .d-g:hover {
        filter: brightness(0.94);
      }
      .sm-dots .d-g.ping {
        animation: smPing 1.6s ease-out infinite;
      }
      @keyframes smPing {
        0% {
          box-shadow:
            0 0 0 2px #fff,
            0 0 0 3.5px #28c840,
            0 0 0 3.5px rgba(40, 200, 64, 0.6);
        }
        70%,
        100% {
          box-shadow:
            0 0 0 2px #fff,
            0 0 0 3.5px #28c840,
            0 0 0 11px rgba(40, 200, 64, 0);
        }
      }

      /* full screen: the simulation fills the window */
      body.sm-focus {
        height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
      }
      body.sm-focus .nav,
      body.sm-focus .rail-nav,
      body.sm-focus footer.colophon,
      body.sm-focus .sm-pane > :not(.sm-sim) {
        display: none !important;
      }
      body.sm-focus .wrap {
        flex: 1;
        min-height: 0;
        max-width: none;
        width: 100%;
        padding: 12px 16px;
        gap: 0;
      }
      body.sm-focus .wrap > .pane.sm-pane.on {
        width: 100%;
        height: 100%;
        min-height: 0;
        gap: 0;
      }
      body.sm-focus .sm-sim {
        height: 100%;
        min-height: 0;
      }
      body.sm-focus .sm-sim > div:first-child {
        display: flex;
        flex-direction: column;
        min-height: 0;
        height: 100%;
      }
      body.sm-focus .sm-frame {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
      }
      body.sm-focus .sm-screen {
        flex: 1;
        height: auto;
        min-height: 0;
      }
      body.sm-focus .sm-side {
        position: static;
        height: 100%;
        overflow-y: auto;
      }
      body.sm-focus .sm-log {
        max-height: none;
      }
      @media (max-width: 1020px) {
        body.sm-focus .sm-side {
          display: none;
        }
      }
      .sm-tabs {
        display: flex;
        gap: 4px;
        margin-right: auto;
        flex-wrap: wrap;
        padding: 3px;
        background: #e4e4e4;
        border: 1px solid #d0d0d0;
        border-radius: 9px;
      }
      .sm-tab {
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        color: #424242;
        background: #fafafa;
        border: 1px solid #d0d0d0;
        border-radius: 6px;
        padding: 5px 12px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 7px;
        transition:
          background 0.12s,
          color 0.12s,
          box-shadow 0.12s;
      }
      .sm-tab:hover {
        background: #ffffff;
        color: #242424;
        border-color: var(--tc, #8a8a8a);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
      }
      .sm-tab:focus-visible {
        outline: 2px solid var(--tc, #242424);
        outline-offset: 2px;
      }
      .sm-tab[aria-current="true"] {
        background: var(--tc, #242424);
        border-color: var(--tc, #242424);
        color: #ffffff;
        font-weight: 700;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
        cursor: default;
      }
      .sm-tab .ico {
        width: 18px;
        height: 18px;
        border-radius: 4px;
        display: grid;
        place-items: center;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
      }
      .sm-tab[aria-current="true"] .ico {
        background: #ffffff !important;
        color: var(--tc, #242424);
      }
      .sm-tab .badge {
        background: #c4314b;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        border-radius: 8px;
        padding: 0 5px;
        line-height: 15px;
        animation: smBadge 1.4s ease-out infinite;
      }
      .sm-tab.nudge {
        border-color: var(--tc);
        color: var(--tc);
        background: #ffffff;
        animation: smTabNudge 1.3s ease-out infinite;
      }
      @keyframes smTabNudge {
        0% {
          box-shadow: 0 0 0 0 rgba(15, 108, 189, 0.55);
        }
        70%,
        100% {
          box-shadow: 0 0 0 7px rgba(15, 108, 189, 0);
        }
      }
      @keyframes smBadge {
        0% {
          box-shadow: 0 0 0 0 rgba(196, 49, 75, 0.55);
        }
        70%,
        100% {
          box-shadow: 0 0 0 6px rgba(196, 49, 75, 0);
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .sm-tab.nudge,
        .sm-tab .badge {
          animation: none;
        }
      }
      .sm-clock {
        position: relative;
        display: inline-flex;
        flex-direction: column;
        align-items: flex-end;
        padding: 2px 10px;
        border-radius: 8px;
        font-family: var(--f-mono);
        color: #242424;
        white-space: nowrap;
        line-height: 1.05;
      }
      .sm-clock .date {
        font-size: 16px;
        font-weight: 700;
        color: #424242;
        margin-bottom: 2px;
      }
      .sm-clock .date small {
        margin-left: 4px;
        font-size: 10.5px;
        font-weight: 400;
        color: #616161;
      }
      .sm-clock .time {
        font-size: 26px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
      }
      /* shapeshift: old and new text sit on top of each other; one melts away as the other forms.
         The #sm-morph filter thresholds the blur so the glyphs look like one shape changing.
         --md = duration, --mw = delay (a time skip waits so the old value is seen first) */
      .sm-clock {
        --md: 0.7s;
        --mw: 0s;
      }
      .sm-clock.jump {
        --md: 1.5s;
        --mw: 0.45s;
      }
      .mw {
        display: inline-grid;
      }
      .mw > span {
        grid-area: 1 / 1;
      }
      .mw > .o {
        opacity: 0;
      }
      .sm-clock.tick .mw,
      .sm-clock.jump .mw {
        animation: smMorphGoo calc(var(--md) + var(--mw)) linear;
      }
      .sm-clock.tick .mw > .o,
      .sm-clock.jump .mw > .o {
        animation: smMorphOut var(--md) ease-in var(--mw) both;
      }
      .sm-clock.tick .mw > .n,
      .sm-clock.jump .mw > .n {
        animation: smMorphIn var(--md) ease-out var(--mw) both;
      }
      .sm-clock.sm-clock-ghost {
        position: fixed;
        z-index: 10000;
        box-sizing: border-box;
        margin: 0;
        transform-origin: 50% 50%;
        pointer-events: none;
        color: #fff;
      }
      .sm-clock.sm-clock-ghost .date,
      .sm-clock.sm-clock-ghost .date small {
        color: inherit;
      }
      @keyframes smMorphGoo {
        0%,
        99% {
          filter: url(#sm-morph);
        }
        100% {
          filter: none;
        }
      }
      @keyframes smMorphOut {
        0% {
          opacity: 1;
          filter: blur(0);
        }
        100% {
          opacity: 0;
          filter: blur(0.35em);
        }
      }
      @keyframes smMorphIn {
        0% {
          opacity: 0;
          filter: blur(0.35em);
          color: #0f6cbd;
        }
        70% {
          color: #0f6cbd;
        }
        100% {
          opacity: 1;
          filter: blur(0);
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .sm-clock .mw,
        .sm-clock .mw > .n {
          animation: none;
        }
        .sm-clock .mw > .o {
          display: none;
        }
      }
      .sm-who {
        display: flex;
        align-items: center;
        gap: 7px;
        font-size: 12px;
        color: #242424;
        line-height: 1.2;
      }
      .sm-who small {
        display: block;
        color: #616161;
        font-size: 10.5px;
      }
      .sm-av {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--dev);
        color: #fff;
        display: grid;
        place-items: center;
        font-size: 10px;
        font-weight: 700;
        flex: none;
      }
      .sm-url {
        padding: 6px 14px;
        border-bottom: 1px solid #ededed;
        background: #fbfbfb;
        font-family: var(--f-mono);
        font-size: 11px;
        color: #616161;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .sm-url b {
        color: var(--good);
        font-weight: 400;
      }
      .sm-screen {
        position: relative;
        height: min(74vh, 740px);
        min-height: 480px;
        overflow-y: auto;
        overflow-x: hidden;
        background: #f5f5f5;
      }
      @media (max-width: 560px) {
        .sm-screen {
          height: 72vh;
          min-height: 440px;
        }
      }

      /* Teams chat */
      .sm-chat-h {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 16px;
        background: #ffffff;
        border-bottom: 1px solid #e6e6e6;
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 14px;
      }
      .sm-chat-h small {
        display: block;
        color: #616161;
        font-size: 11px;
      }
      .sm-bot {
        width: 30px;
        height: 30px;
        border-radius: 6px;
        background: #5b5fc7;
        color: #fff;
        display: grid;
        place-items: center;
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 11px;
        font-weight: 700;
        flex: none;
      }
      .sm-chat {
        display: flex;
        flex-direction: column;
        gap: 18px;
        padding: 16px 16px 28px;
      }
      .sm-chat-empty {
        margin: 40px auto;
        max-width: 22rem;
        text-align: center;
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 13px;
        color: #616161;
      }
      .sm-msg {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
        font-family: "Segoe UI", system-ui, sans-serif;
      }
      .sm-msg.sm-in {
        animation: smIn 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
      }
      @keyframes smIn {
        from {
          opacity: 0;
          transform: translateY(12px);
        }
        to {
          opacity: 1;
          transform: none;
        }
      }
      .sm-mh {
        display: flex;
        gap: 10px;
        align-items: baseline;
        font-size: 12px;
        color: #616161;
        margin-bottom: 4px;
      }
      .sm-mh b {
        color: #242424;
        font-weight: 600;
      }
      .sm-mbody .ac {
        max-width: 496px;
      }
      .sm-cw.done .ac,
      .sm-cw.expired .ac {
        opacity: 0.62;
      }
      .sm-rib {
        display: inline-block;
        font-size: 11px;
        font-weight: 600;
        color: #0e700e;
        background: #dff6dd;
        border-radius: 4px;
        padding: 2px 8px;
        margin-bottom: 5px;
      }
      .sm-rib.x {
        color: #8a6100;
        background: #fff4ce;
      }
      .sm-err {
        color: #c4314b;
        font-size: 13px;
        font-weight: 600;
      }
      button.ac-btn:disabled {
        cursor: default;
      }
      .ac-field:disabled {
        background: #f5f5f5;
        color: #616161;
      }
      .sm-coach {
        position: relative;
      }
      .sm-coach::before {
        content: "";
        position: absolute;
        inset: -5px;
        border-radius: 7px;
        border: 2px solid var(--accent);
        animation: smRing 1.6s ease-out infinite;
        pointer-events: none;
      }
      @keyframes smRing {
        0% {
          opacity: 0.9;
          transform: scale(0.97);
        }
        100% {
          opacity: 0;
          transform: scale(1.08);
        }
      }

      /* shared mailbox email */
      .sm-mail {
        background: #ffffff;
        min-height: 100%;
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 14px;
        color: #242424;
      }
      .sm-mail-h {
        padding: 18px 22px 14px;
        border-bottom: 1px solid #ededed;
      }
      .sm-subj {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 12px;
      }
      .sm-from {
        display: flex;
        gap: 10px;
        font-size: 13px;
        line-height: 1.45;
      }
      .sm-from small {
        color: #616161;
        font-size: 12px;
      }
      .sm-from .sm-av {
        width: 34px;
        height: 34px;
        background: #8a6100;
        font-size: 12px;
      }
      .sm-mail-b {
        padding: 18px 22px 26px;
        line-height: 1.55;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }
      .sm-mail-b table {
        border-collapse: collapse;
        font-size: 13px;
      }
      .sm-mail-b th,
      .sm-mail-b td {
        border: 1px solid #d6d6d6;
        padding: 5px 12px;
        text-align: left;
      }
      .sm-mail-b th {
        background: #f5f5f5;
        font-weight: 600;
      }
      /* the GO notice, drawn like the real Outlook message */
      .gn-to {
        font-size: 12px;
        color: #424242;
        line-height: 1.5;
      }
      .gn-to b {
        font-weight: 600;
      }
      .gn-att {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin: 12px 0 0;
        padding: 6px 12px 6px 8px;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        font-size: 12px;
        line-height: 1.3;
      }
      .gn-att i {
        font-style: normal;
        font-weight: 700;
        font-size: 11px;
        color: #fff;
        background: #185abd;
        border-radius: 2px;
        padding: 3px 4px;
      }
      .gn-att small {
        color: #707070;
        font-size: 11px;
      }
      .gn-b {
        padding: 16px 22px 26px;
        font-family: Calibri, "Segoe UI", sans-serif;
        font-size: 13.5px;
        line-height: 1.35;
        color: #000;
      }
      .gn-b p {
        margin: 0 0 12px;
      }
      .gn-ext {
        background: #fbe2c9;
        border: 1px solid #555;
        border-left: 8px solid #e07c24;
        padding: 6px 10px;
        font-size: 11.5px;
        margin-bottom: 14px;
      }
      .gn-red {
        color: #e00000;
      }
      .gn-org {
        color: #e46c0a;
      }
      .gn-b table {
        border-collapse: collapse;
        margin: 0 0 14px;
      }
      .gn-b td,
      .gn-b th {
        border: 1px solid #000;
        padding: 1px 4px;
        text-align: left;
        vertical-align: top;
        font-weight: 400;
      }
      .gn-info td:first-child {
        width: 78px;
      }
      .gn-info td:last-child {
        width: 78px;
      }
      .gn-items th,
      .gn-items td {
        min-width: 76px;
      }
      .gn-disc {
        margin-top: 16px;
        padding-top: 10px;
        border-top: 1px dashed #d0d0d0;
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 11.5px;
        color: #707070;
      }
      .sm-hl {
        background: #fff1d6;
        border-radius: 3px;
        padding: 0 3px;
        box-shadow: inset 0 -2px 0 var(--accent);
      }
      .sm-hl[data-tag]::after {
        content: attr(data-tag);
        font-family: var(--f-mono);
        font-size: 9px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #fff;
        background: var(--accent-deep);
        border-radius: 3px;
        padding: 1px 4px;
        margin-left: 5px;
        vertical-align: 2px;
        white-space: nowrap;
      }

      /* Outlook calendar */
      .sm-ol {
        background: #ffffff;
        min-height: 100%;
        padding: 16px 18px 26px;
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 13px;
        color: #242424;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }
      .sm-ol-h {
        font-size: 16px;
        font-weight: 600;
      }
      .sm-ol-n {
        font-size: 12px;
        color: #616161;
      }
      .sm-ev {
        border-left: 4px solid #0f6cbd;
        background: #eff6fc;
        border-radius: 4px;
        padding: 11px 13px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        line-height: 1.4;
      }
      .sm-ev.done {
        border-left-color: #0e700e;
        background: #f1faf1;
      }
      .sm-ev.wait {
        border-left-color: #8a6100;
        background: #fffbeb;
      }
      .sm-ev-t {
        font-weight: 600;
        font-size: 13.5px;
        overflow-wrap: anywhere;
      }
      .sm-ev-s {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: #616161;
      }
      .sm-ev table {
        border-collapse: collapse;
        font-size: 12px;
        margin-top: 4px;
      }
      .sm-ev th,
      .sm-ev td {
        border: 1px solid #d6d6d6;
        padding: 3px 8px;
        text-align: left;
        background: #fff;
      }

      /* Outlook on the web: message list + reading pane */
      .ow {
        display: grid;
        grid-template-columns: minmax(200px, 270px) 1fr;
        min-height: 100%;
        background: #f5f5f5;
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 13px;
        color: #242424;
      }
      .ow-list {
        background: #ffffff;
        border-right: 1px solid #e0e0e0;
        display: flex;
        flex-direction: column;
        min-width: 0;
      }
      .ow-lh {
        font-size: 16px;
        font-weight: 600;
        padding: 14px 14px 6px;
      }
      .ow-tabs {
        display: flex;
        gap: 16px;
        padding: 0 14px;
        border-bottom: 1px solid #e0e0e0;
        font-size: 13px;
        color: #616161;
      }
      .ow-tabs span {
        padding: 6px 0 8px;
      }
      .ow-tabs .on {
        color: #242424;
        font-weight: 600;
        box-shadow: inset 0 -2px 0 #0f6cbd;
      }
      .ow-it {
        all: unset;
        box-sizing: border-box;
        display: grid;
        grid-template-columns: 32px 1fr auto;
        gap: 10px;
        padding: 10px 12px 10px 11px;
        border-left: 3px solid transparent;
        border-bottom: 1px solid #f0f0f0;
        cursor: pointer;
        font-family: inherit;
      }
      .ow-it:hover {
        background: #f5f5f5;
      }
      .ow-it:focus-visible {
        outline: 2px solid #0f6cbd;
        outline-offset: -2px;
      }
      .ow-it.on {
        background: #ebf3fc;
        border-left-color: #0f6cbd;
      }
      .ow-it.unread {
        border-left-color: #0f6cbd;
      }
      .ow-it.unread .ow-it-f,
      .ow-it.unread .ow-it-s {
        font-weight: 700;
        color: #0f6cbd;
      }
      .ow-it.unread .ow-it-f {
        color: #242424;
      }
      .ow-it-b {
        display: flex;
        flex-direction: column;
        gap: 1px;
        min-width: 0;
      }
      .ow-it-f,
      .ow-it-s,
      .ow-it-m {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .ow-it-f {
        font-size: 13px;
      }
      .ow-it-s {
        font-size: 12.5px;
      }
      .ow-it-m {
        font-size: 12px;
        color: #616161;
      }
      .ow-cal {
        color: #0f6cbd;
        margin-right: 4px;
      }
      .ow-it-t {
        font-size: 11.5px;
        color: #616161;
      }
      .ow-av {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #c19c00;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        display: grid;
        place-items: center;
        flex: none;
      }
      .ow-av.lg {
        width: 40px;
        height: 40px;
        font-size: 14px;
      }
      .ow-read {
        min-width: 0;
        margin: 10px;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        padding: 16px 20px 24px;
        display: flex;
        flex-direction: column;
        gap: 12px;
      }
      .ow-st {
        align-self: flex-start;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        padding: 2px 8px;
        border-radius: 4px;
        background: #ebf3fc;
        color: #0f6cbd;
      }
      .ow-st.done {
        background: #f1faf1;
        color: #0e700e;
      }
      .ow-st.wait {
        background: #fffbeb;
        color: #8a6100;
      }
      .ow-subj {
        font-size: 18px;
        font-weight: 600;
        line-height: 1.3;
        overflow-wrap: anywhere;
      }
      .ow-mt {
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        padding: 10px 12px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }
      .ow-mt-r {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        line-height: 1.4;
      }
      .ow-mt-r span {
        color: #616161;
      }
      .ow-ico {
        color: #0f6cbd;
        font-size: 18px;
        line-height: 1;
      }
      .ow-rsvp {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
      }
      .ow-rsvp span {
        border: 1px solid #d1d1d1;
        border-radius: 4px;
        padding: 4px 10px;
        font-size: 12.5px;
        font-weight: 600;
        background: #fff;
      }
      .ow-rsvp .ow-join {
        background: #5b5fc7;
        border-color: #5b5fc7;
        color: #fff;
      }
      .ow-from {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        line-height: 1.45;
        overflow-wrap: anywhere;
      }
      .ow-from small {
        color: #616161;
        font-size: 12px;
      }
      .ow-body {
        overflow-x: auto;
        padding-top: 4px;
        border-top: 1px solid #f0f0f0;
      }
      .ow-teams {
        max-width: 640px;
        margin: 22px auto 0;
        font-size: 13px;
        line-height: 1.6;
        color: #242424;
      }
      .ow-teams u {
        color: #5b5fc7;
        text-decoration: underline;
      }
      .ow-tj {
        color: #5b5fc7;
        font-size: 18px;
        font-weight: 600;
        text-decoration: underline;
        margin: 4px 0 6px;
      }
      .ow-rule {
        border-top: 1px solid #c8c8c8;
        margin: 10px 0;
      }
      /* intro screen before the walkthrough starts */
      .sm-welcome {
        position: absolute;
        inset: 0;
        overflow-y: auto;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 32px 16px;
        text-align: center;
        background: #ffffff;
        font-family: "Segoe UI", system-ui, sans-serif;
        color: #242424;
      }
      .sm-welcome-k {
        font-family: var(--f-mono);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--accent-deep);
      }
      .sm-welcome h3 {
        margin: 0;
        font-size: clamp(22px, 4vw, 30px);
        line-height: 1.2;
        text-wrap: balance;
      }
      .sm-welcome p {
        margin: 0 0 6px;
        max-width: 44ch;
        color: #616161;
        font-size: 14px;
        line-height: 1.55;
      }
      /* shared mailbox inbox: starts empty, the request lands live */
      .ow-empty {
        padding: 34px 16px;
        text-align: center;
        color: #616161;
        font-size: 12.5px;
        line-height: 1.5;
      }
      .ow-empty b {
        display: block;
        color: #242424;
        font-size: 14px;
        margin-bottom: 2px;
      }
      .ow-read.flush {
        padding: 0;
        gap: 0;
        overflow: hidden;
      }
      .ow-read.none {
        display: grid;
        place-items: center;
        color: #616161;
        min-height: 220px;
      }
      .ow-it-s.pv {
        font-weight: 400 !important;
        color: #616161 !important;
        font-size: 12px;
      }
      .ow-it.new {
        animation: owIn 0.85s ease-out both;
      }
      /* the Sample Request Notice, as the real email lays it out */
      .sr-page {
        background: #e3f4f4;
        padding: 16px 12px 28px;
      }
      .sr-card {
        max-width: 520px;
        margin: 0 auto;
        background: #f5fbfb;
        border: 1px solid #d8ecec;
        color: #1f3a5a;
        font-size: 12px;
        line-height: 1.5;
      }
      .sr-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        gap: 12px;
        padding: 20px 26px 10px;
        border-bottom: 2px solid #f28c28;
      }
      .sr-logo {
        display: block;
        width: 130px;
        height: auto;
      }
      .sr-kick {
        font-size: 9px;
        color: #5f6f7f;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-top: 4px;
      }
      .sr-top-r {
        text-align: right;
        display: flex;
        flex-direction: column;
      }
      .sr-top-r b {
        color: #102a43;
        font-size: 12px;
      }
      .sr-top-r span {
        color: #f28c28;
        font-size: 9px;
        text-transform: uppercase;
      }
      .sr-sec {
        padding: 16px 26px;
        border-top: 1px solid #e1eeee;
      }
      .sr-top + .sr-sec {
        border-top: 0;
      }
      .sr-dear {
        font-weight: 700;
        color: #102a43;
        margin-bottom: 4px;
      }
      .sr-h {
        font-size: 9px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #5f6f7f;
        margin-bottom: 8px;
      }
      .sr-gi {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 10px 6px 0;
        border-bottom: 1px dashed #d8e6e6;
        font-size: 11.5px;
      }
      .sr-gi span:first-child {
        font-size: 9.5px;
        text-transform: uppercase;
        color: #5f6f7f;
      }
      .sr-gi span:last-child {
        text-align: right;
        color: #102a43;
      }
      .sr-note {
        color: #f28c28;
        font-weight: 700;
      }
      .sr-tb {
        width: 100%;
        border-collapse: collapse;
        font-size: 11.5px;
      }
      .sr-tb th {
        background: #fde3c8;
        border-bottom: 2px solid #f28c28;
        font-size: 9px;
        text-transform: uppercase;
        text-align: left;
        padding: 8px 10px;
        color: #102a43;
      }
      .sr-tb td {
        padding: 8px 10px;
        border-bottom: 1px solid #e1eeee;
      }
      .sr-tb th:last-child,
      .sr-tb td:last-child {
        text-align: right;
      }
      .sr-tb tfoot td {
        border-top: 2px solid #f28c28;
        border-bottom: 0;
        font-size: 10px;
        color: #5f6f7f;
      }
      .sr-tb tfoot td:last-child {
        font-weight: 700;
        color: #102a43;
      }
      .sr-ul {
        margin: 0 0 12px;
        padding: 0;
        list-style: none;
      }
      .sr-ul li {
        position: relative;
        padding-left: 14px;
        margin-bottom: 6px;
        color: #102a43;
      }
      .sr-ul li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 5px;
        width: 6px;
        height: 6px;
        background: #f28c28;
      }
      .sr-sign {
        font-weight: 700;
        color: #102a43;
        margin-bottom: 10px;
      }
      .sr-sign span {
        color: #f28c28;
      }
      .sr-disc {
        font-size: 8.5px;
        line-height: 1.45;
        color: #b5c3c8;
      }
      /* a field AutoFill reads: plain, then highlighted as it is read */
      #sm-v-outlook mark.fx {
        background: none;
        color: inherit;
        border-radius: 3px;
        padding: 0 2px;
        transition: background 0.5s ease, box-shadow 0.5s ease;
      }
      #sm-v-outlook mark.fx.seen {
        background: #fff1d6;
        box-shadow: inset 0 -2px 0 #f28c28;
      }
      #sm-v-outlook mark.fx.now {
        background: #ffd9a8;
        box-shadow: 0 0 0 2px #f28c28;
        animation: fxPulse 1.4s ease-in-out infinite;
      }
      @keyframes fxPulse {
        50% {
          box-shadow: 0 0 0 5px rgba(242, 140, 40, 0.35);
        }
      }
      /* AutoFill pane under the inbox item: what it has read so far */
      .af-pane {
        position: sticky;
        top: 0;
        margin: 12px 10px;
        border: 1px solid #e0e0e0;
        border-left: 3px solid #6b3fa0;
        border-radius: 6px;
        background: #fbfaff;
        padding: 10px 12px;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
      .af-h {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
      }
      .af-h small {
        display: block;
        font-weight: 400;
        color: #616161;
        font-size: 11px;
      }
      .af-row {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 0 8px;
        padding-top: 6px;
        border-top: 1px solid #ecebf3;
        font-size: 12px;
      }
      .af-row.now {
        animation: afIn 0.7s ease-out both;
      }
      @keyframes afIn {
        0% {
          opacity: 0;
          transform: translateX(-10px);
          background: #fff1d6;
        }
        100% {
          opacity: 1;
          transform: none;
          background: transparent;
        }
      }
      .af-f {
        color: #616161;
      }
      .af-v {
        font-weight: 600;
        text-align: right;
        overflow-wrap: anywhere;
      }
      .af-s {
        grid-column: 1 / -1;
        font-size: 11px;
        color: #8a8a8a;
      }
      .af-done {
        padding-top: 6px;
        border-top: 1px solid #ecebf3;
        color: #0e700e;
        font-weight: 600;
        font-size: 12px;
      }
      @keyframes owIn {
        0% {
          opacity: 0;
          transform: translateY(-14px);
          background: #ebf3fc;
        }
        100% {
          opacity: 1;
          transform: none;
        }
      }
      .ow-toast {
        position: absolute;
        right: 14px;
        bottom: 14px;
        z-index: 5;
        display: flex;
        gap: 10px;
        align-items: center;
        max-width: min(320px, calc(100% - 28px));
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
        padding: 10px 14px;
        font-family: "Segoe UI", system-ui, sans-serif;
        font-size: 12.5px;
        color: #242424;
        line-height: 1.4;
        animation: owToast 4.2s ease both;
        pointer-events: none;
      }
      .ow-toast small {
        color: #616161;
      }
      @keyframes owToast {
        0% {
          opacity: 0;
          transform: translateY(12px);
        }
        12%,
        82% {
          opacity: 1;
          transform: none;
        }
        100% {
          opacity: 0;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .ow-it.new,
        .ow-toast,
        .af-row.now,
        #sm-v-outlook mark.fx.now {
          animation: none;
        }
      }
      @media (max-width: 760px) {
        .ow {
          grid-template-columns: 1fr;
        }
        .ow-list {
          border-right: 0;
          border-bottom: 1px solid #e0e0e0;
        }
        .ow-read {
          margin: 8px 0 0;
          border-radius: 0;
          padding: 14px 14px 20px;
        }
      }

      /* overlay: time skip */
      .sm-ov {
        position: absolute;
        inset: 0;
        z-index: 10;
        display: grid;
        place-items: center;
        background: rgba(20, 28, 38, 0.55);
        backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
      }
      .sm-ov.on {
        opacity: 1;
        pointer-events: auto;
      }
      .sm-ovc {
        background: #fff;
        border-radius: 16px;
        padding: 24px 30px;
        text-align: center;
        min-width: 250px;
        max-width: 86%;
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
        transform: translateY(16px) scale(0.96);
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.2);
      }
      .sm-ov.on .sm-ovc {
        transform: none;
      }
      /* time skip: no card, the flip clock itself is the panel (it flies in over .sm-ov-slot) */
      .sm-ov.bare .sm-ovc {
        background: none;
        box-shadow: none;
        transform: none;
        color: #fff;
      }
      .sm-ov.bare .sm-ovc .k {
        color: rgba(255, 255, 255, 0.8);
      }
      .sm-ov.bare .sm-ovc .d {
        color: #fff;
        margin-top: 0;
      }
      .sm-ov-slot {
        margin: 10px auto;
      }
      /* "Why +12 days?" chain: each step slides in after the one before */
      .lx {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 12px 0 10px;
      }
      .lx-s {
        min-width: 92px;
        padding: 9px 12px;
        border: 1px solid #e1dfdd;
        border-radius: 10px;
        background: #faf9f8;
      }
      .lx-s.last {
        border-color: #0f6cbd;
        background: #ebf3fc;
      }
      .lx-v {
        font-weight: 800;
        font-size: 1.05rem;
        color: #242424;
      }
      .lx-s.last .lx-v {
        color: #0f6cbd;
      }
      .lx-l {
        margin-top: 3px;
        font-size: 0.72rem;
        color: var(--ink-3);
      }
      .lx-hl {
        color: #0f6cbd;
        text-decoration: underline;
      }
      .lx-tb {
        display: inline-grid;
        grid-template-columns: auto auto;
        gap: 2px 10px;
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--ink-3);
        text-align: left;
      }
      .lx-tb b {
        padding: 1px 4px;
        border-radius: 3px;
        background: #fff4ce;
        color: #242424;
        font-size: 0.85rem;
      }
      .lx-a {
        font-size: 1.2rem;
        color: #0f6cbd;
      }
      .lx-s,
      .lx-a,
      .lx-r {
        animation: lxIn 0.45s ease-out both;
      }
      @keyframes lxIn {
        0% {
          opacity: 0;
          transform: translateY(8px) scale(0.92);
        }
        100% {
          opacity: 1;
          transform: none;
        }
      }
      .sm-ovc .k {
        font-family: var(--f-mono);
        font-size: 0.62rem;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--ink-3);
        font-weight: 600;
      }
      .sm-ovc .t {
        font-family: var(--f-display);
        font-weight: 800;
        font-size: 1.25rem;
        margin-top: 2px;
      }
      .sm-ovc .d {
        font-size: 0.85rem;
        color: var(--ink-2);
        margin-top: 4px;
      }
      .sm-clockface {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 3px solid var(--accent);
        margin: 0 auto 12px;
        position: relative;
      }
      .sm-clockface::before,
      .sm-clockface::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 50%;
        width: 3px;
        margin-left: -1.5px;
        border-radius: 2px;
        background: var(--ink);
        transform-origin: 50% 100%;
      }
      .sm-clockface::before {
        height: 17px;
        animation: smSpin 1.4s linear infinite;
      }
      .sm-clockface::after {
        height: 23px;
        background: var(--accent-deep);
        animation: smSpin 0.28s linear infinite;
      }
      @keyframes smSpin {
        to {
          transform: rotate(360deg);
        }
      }

      /* next bar */
      .sm-next {
        margin-bottom: 12px;
        min-height: 62px;
        display: flex;
        align-items: center;
        gap: 10px 12px;
        flex-wrap: wrap;
        background: var(--surface);
        border: 1px solid var(--line);
        border-left: 4px solid var(--accent);
        border-radius: 10px;
        padding: 12px 16px;
        scroll-margin-top: 84px;
      }
      .sm-next.pop {
        animation: smPop 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.2);
      }
      .sm-next.attn {
        animation: smAttn 1.3s ease-in-out infinite;
      }
      @keyframes smPop {
        from {
          opacity: 0.3;
          transform: translateY(-8px);
        }
        to {
          opacity: 1;
          transform: none;
        }
      }
      @keyframes smAttn {
        0%,
        100% {
          box-shadow: 0 0 0 0 rgba(247, 107, 8, 0);
        }
        45% {
          box-shadow: 0 0 0 5px rgba(247, 107, 8, 0.28);
          border-color: var(--accent);
        }
      }
      .sm-hint {
        font-size: 1rem;
        line-height: 1.45;
        color: var(--ink-2);
        flex: 1 1 14rem;
        min-width: 0;
      }
      .sm-hint b {
        color: var(--ink);
        font-weight: 600;
      }
      .sm-tag {
        font-family: var(--f-mono);
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        background: var(--accent-deep);
        color: #fff;
        border-radius: 4px;
        padding: 4px 9px;
        flex: none;
      }
      .sm-tag.ok {
        background: var(--good);
      }
      .sm-btns {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
      }
      .sm-btn {
        font-family: var(--f-body);
        background: var(--accent-deep);
        color: #fff;
        border: 0;
        border-radius: 7px;
        padding: 10px 18px;
        font-weight: 600;
        font-size: 0.92rem;
        cursor: pointer;
        white-space: nowrap;
      }
      .sm-btn:hover {
        background: var(--accent);
      }
      .sm-btn.sec {
        background: var(--surface);
        color: var(--ink);
        border: 1px solid var(--line);
      }
      .sm-btn.sec:hover {
        border-color: var(--accent);
      }
      .sm-nudge {
        color: var(--accent-deep);
        font-weight: 800;
        font-size: 1.2rem;
        display: inline-block;
        animation: smNudge 1s ease-in-out infinite;
      }
      @keyframes smNudge {
        0%,
        100% {
          transform: translateX(-2px);
        }
        50% {
          transform: translateX(5px);
        }
      }
      .sm-down {
        display: inline-block;
        color: var(--accent-deep);
        font-weight: 800;
        animation: smDown 1s ease-in-out infinite;
      }
      @keyframes smDown {
        0%,
        100% {
          transform: translateY(-2px);
        }
        50% {
          transform: translateY(3px);
        }
      }
      .sm-working {
        display: inline-flex;
        gap: 4px;
        margin-right: 8px;
        vertical-align: middle;
      }
      .sm-working i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--accent);
        animation: qzb 1s infinite ease-in-out;
      }
      .sm-working i:nth-child(2) {
        animation-delay: 0.15s;
      }
      .sm-working i:nth-child(3) {
        animation-delay: 0.3s;
      }

      /* side panel */
      .sm-side {
        display: flex;
        flex-direction: column;
        gap: 14px;
        position: sticky;
        top: calc(var(--navh, 4rem) + 12px);
      }
      @media (max-width: 1020px) {
        .sm-side {
          position: static;
        }
      }
      .sm-panel {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 15px 16px;
      }
      .sm-panel h3 {
        font-family: var(--f-mono);
        font-size: 0.62rem;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--ink-3);
        font-weight: 600;
        margin-bottom: 10px;
      }
      .sm-now {
        border-left: 3px solid var(--accent);
      }
      .sm-now .st {
        font-family: var(--f-mono);
        font-size: 0.62rem;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--accent-deep);
        font-weight: 600;
      }
      .sm-now .t {
        font-family: var(--f-display);
        font-weight: 800;
        font-size: 1.08rem;
        letter-spacing: -0.01em;
        margin: 2px 0 6px;
      }
      .sm-now .b {
        font-size: 0.84rem;
        color: var(--ink-2);
        line-height: 1.5;
      }
      .sm-now .b b {
        color: var(--ink);
        font-weight: 600;
      }
      .sm-now.swap {
        animation: smSwap 0.4s ease both;
      }
      @keyframes smSwap {
        from {
          opacity: 0.2;
          transform: translateX(8px);
        }
        to {
          opacity: 1;
          transform: none;
        }
      }
      .sm-tip {
        display: block;
        margin-top: 9px;
        padding: 8px 10px;
        background: var(--accent-tint);
        border-radius: 6px;
        color: var(--ink);
      }
      .sm-empty {
        font-size: 0.8rem;
        color: var(--ink-3);
      }
      .sm-meta {
        font-size: 0.72rem;
        color: var(--ink-3);
        margin: -4px 0 10px;
        line-height: 1.4;
      }
      .sm-row {
        padding: 8px 0;
        border-top: 1px solid var(--line-soft);
      }
      .sm-rid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        margin-bottom: 5px;
      }
      .sm-rdesc {
        font-size: 0.74rem;
        color: var(--ink-3);
      }
      .sm-mono {
        font-family: var(--f-mono);
        font-size: 0.76rem;
        font-weight: 600;
      }
      .sm-st {
        font-family: var(--f-mono);
        font-size: 0.58rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        padding: 2px 7px;
        border-radius: 4px;
        background: var(--warn-tint);
        color: var(--warn-ink);
        white-space: nowrap;
      }
      .sm-st.good {
        background: var(--good-tint);
        color: var(--good-ink);
      }
      .sm-st.bad {
        background: var(--bad-tint);
        color: var(--bad-ink);
      }
      .sm-gts {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
      }
      .sm-gt {
        border: 1px solid var(--line-soft);
        background: var(--surface-2);
        border-radius: 5px;
        padding: 3px 6px 4px;
        font-size: 0.7rem;
        line-height: 1.3;
        color: var(--ink-3);
        transition: background 0.4s;
      }
      .sm-gt span {
        display: block;
        font-family: var(--f-mono);
        font-size: 0.56rem;
        font-weight: 600;
        letter-spacing: 0.08em;
      }
      .sm-gt b {
        font-weight: 600;
        color: var(--ink-2);
        font-variant-numeric: tabular-nums;
      }
      .sm-gt.cur {
        border-color: var(--warn);
        background: var(--warn-tint);
      }
      .sm-gt.cur b {
        color: var(--warn-ink);
      }
      .sm-gt.late {
        border-color: var(--bad);
        background: var(--bad-tint);
      }
      .sm-gt.late b {
        color: var(--bad-ink);
      }
      .sm-gt.ok {
        border-color: #b9dcc7;
        background: var(--good-tint);
      }
      .sm-gt.ok b {
        color: var(--good-ink);
      }
      .sm-gt.flash {
        animation: smFlash 1.6s ease;
      }
      @keyframes smFlash {
        0%,
        30% {
          box-shadow: 0 0 0 3px rgba(247, 107, 8, 0.45);
        }
        100% {
          box-shadow: 0 0 0 0 rgba(247, 107, 8, 0);
        }
      }
      .sm-key {
        font-size: 0.66rem;
        color: var(--ink-3);
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px dashed var(--line);
      }
      .sm-log {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        max-height: 280px;
        overflow-y: auto;
      }
      .sm-log li {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 1px 8px;
        font-size: 0.74rem;
        line-height: 1.38;
        color: var(--ink-2);
      }
      .sm-log li.fresh {
        animation: smLog 0.35s ease both;
      }
      @keyframes smLog {
        from {
          opacity: 0;
          transform: translateY(-8px);
        }
        to {
          opacity: 1;
          transform: none;
        }
      }
      .sm-log .tm {
        grid-column: 2;
        font-family: var(--f-mono);
        font-size: 0.6rem;
        color: var(--ink-3);
      }
      .sm-fl {
        font-family: var(--f-mono);
        font-size: 0.56rem;
        font-weight: 600;
        color: #fff;
        border-radius: 3px;
        padding: 1px 5px;
        align-self: start;
        margin-top: 2px;
        letter-spacing: 0.06em;
        display: inline-block;
      }
      .sm-ref .sm-fl {
        margin-right: 6px;
        vertical-align: 1px;
      }
      .sm-fl-AF {
        background: #6b3fa0;
      }
      .sm-fl-SC {
        background: #2b5fa8;
      }
      .sm-fl-RM {
        background: #0f766e;
      }
      .sm-fl-MT {
        background: #c2410c;
      }
      .sm-fl-FU {
        background: #157f4a;
      }
      .sm-fl-OD {
        background: #b42318;
      }
      .sm-legend {
        display: flex;
        flex-wrap: wrap;
        gap: 5px 10px;
        font-size: 0.64rem;
        color: var(--ink-3);
        margin-top: 10px;
        padding-top: 8px;
        border-top: 1px dashed var(--line);
      }
      .sm-legend > span {
        display: inline-flex;
        gap: 4px;
        align-items: center;
      }

      /* jump to a step + reference */
      .sm-steps {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 8px;
      }
      @media (max-width: 1020px) {
        .sm-steps {
          grid-template-columns: repeat(4, minmax(0, 1fr));
        }
      }
      @media (max-width: 600px) {
        .sm-steps {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }
      .sm-stp {
        width: 100%;
        height: 100%;
        text-align: left;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 10px;
        padding: 11px 12px 12px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 3px;
        font-family: var(--f-body);
        transition:
          border-color 0.15s,
          transform 0.15s;
      }
      .sm-stp:hover {
        border-color: var(--accent);
        transform: translateY(-2px);
      }
      .sm-stp .n {
        font-family: var(--f-mono);
        font-size: 0.62rem;
        font-weight: 600;
        color: var(--ink-3);
        letter-spacing: 0.1em;
      }
      .sm-stp .t {
        font-family: var(--f-display);
        font-weight: 700;
        font-size: 0.9rem;
        line-height: 1.2;
        color: var(--ink);
      }
      .sm-stp .w {
        font-size: 0.72rem;
        color: var(--ink-3);
      }
      .sm-stp.done {
        border-color: #b9dcc7;
        background: #f6fbf8;
      }
      .sm-stp.done .n::after {
        content: " ✓";
        color: var(--good);
      }
      .sm-stp.cur {
        border-color: var(--accent);
        box-shadow: inset 0 3px 0 var(--accent);
      }
      .sm-branches {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        margin-top: 12px;
        font-size: 0.8rem;
        color: var(--ink-2);
      }
      .sm-chipb {
        font-family: var(--f-body);
        font-size: 0.8rem;
        color: var(--ink-2);
        background: var(--surface);
        border: 1px solid var(--line-soft);
        border-radius: 20px;
        padding: 4px 12px;
        cursor: pointer;
      }
      .sm-chipb:hover {
        border-color: var(--accent);
        color: var(--ink);
      }
      .sm-refw {
        overflow-x: auto;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
      }
      .sm-ref {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.82rem;
        min-width: 680px;
      }
      .sm-ref th {
        text-align: left;
        font-family: var(--f-mono);
        font-size: 0.62rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--ink-3);
        font-weight: 600;
        padding: 11px 14px;
        border-bottom: 1px solid var(--line);
        background: var(--surface-2);
      }
      .sm-ref td {
        padding: 10px 14px;
        border-bottom: 1px solid var(--line-soft);
        vertical-align: top;
      }
      .sm-ref tr:last-child td {
        border-bottom: 0;
      }
      @media (prefers-reduced-motion: reduce) {
        .sm-pane *,
        .sm-pane *::before,
        .sm-pane *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
        }
      }

      /* ── STM: one group, seven gates, three roles ── */
      .sm-pane {
        --dev: var(--accent-deep);
      }
      .ac-amber {
        color: #8a6100;
      }
      .ac-ttl {
        font-weight: 600;
        margin-top: 4px;
      }
      textarea.ac-field {
        min-height: 54px;
        resize: vertical;
        font-family: inherit;
      }
      .sm-steps {
        grid-template-columns: repeat(7, minmax(0, 1fr));
      }
      @media (max-width: 1020px) {
        .sm-steps {
          grid-template-columns: repeat(4, minmax(0, 1fr));
        }
      }
      @media (max-width: 600px) {
        .sm-steps {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }
      .sm-gts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
      .sm-to {
        font-size: 11px;
        font-weight: 600;
        color: #ffffff;
        border-radius: 4px;
        padding: 1px 7px;
        background: #4a5a6b;
      }
      .sm-to.to-pe {
        background: var(--pe);
      }
      .sm-to.to-ci {
        background: var(--ci);
      }
      .sm-fl-KR {
        background: #1d6f7a;
      }
.sm-fl-LS {
        background: #4a5a6b;
      }
      .sm-fl-XP {
        background: #7a3e6b;
      }
      .sm-fl-KN {
        background: #9a4a0c;
      }

      /* ── home: scenario picker first, the full walkthrough after it (2026-11-12) ── */
      .scn-head {
        display: flex;
        flex-direction: column;
        gap: 6px;
        max-width: 46rem;
      }
      .scn-head p {
        margin: 0;
        color: var(--ink-2);
        font-size: 0.95rem;
      }
      .scn {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-top: 18px;
      }
      @media (max-width: 900px) {
        .scn {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }
      @media (max-width: 560px) {
        .scn {
          grid-template-columns: 1fr;
        }
      }
      .scn-t {
        font: inherit;
        text-align: left;
        cursor: pointer;
        color: var(--ink);
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 14px 16px 13px;
        display: flex;
        flex-direction: column;
        gap: 6px;
        transition:
          border-color 0.15s ease,
          box-shadow 0.15s ease;
      }
      .scn-t:hover {
        border-color: var(--accent);
        box-shadow: 0 12px 26px -20px rgba(20, 28, 38, 0.55);
      }
      .scn-t:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
      }
      .scn-t .who {
        display: flex;
        gap: 6px;
        align-items: center;
        flex-wrap: wrap;
      }
      .scn-t .q {
        font-family: var(--f-display);
        font-weight: 700;
        font-size: 0.98rem;
        letter-spacing: -0.01em;
        line-height: 1.3;
      }
      .scn-t .a {
        font-size: 0.85rem;
        color: var(--ink-2);
        line-height: 1.45;
      }
      .scn-t .go {
        margin-top: auto;
        padding-top: 4px;
        font-family: var(--f-mono);
        font-size: 0.66rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--accent-deep);
      }
      .scn-t.new {
        border-color: var(--accent);
        background: linear-gradient(var(--accent-tint), var(--surface) 75%);
      }
      .tag-new {
        display: inline-block;
        font-family: var(--f-mono);
        font-size: 0.6rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        padding: 3px 7px;
        border-radius: 3px;
        background: var(--accent-deep);
        color: #ffffff;
      }
      /* KOM notes page inside the walkthrough frame */
      #sm-v-notes {
        position: absolute;
        inset: 0;
        background: #ffffff;
      }
      #sm-v-notes iframe {
        display: block;
        width: 100%;
        height: 100%;
        border: 0;
      }
      .ow-mailframe {
        display: block;
        width: 100%;
        min-height: 900px;
        border: 0;
        background: #ffffff;
      }
      .ow-att {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        margin: 4px 0 10px;
      }
      .ow-att span {
        font-size: 12px;
        border: 1px solid #d1d1d1;
        border-radius: 4px;
        padding: 3px 8px;
        background: #fafafa;
        color: #242424;
      }
      .sm-divider-wrap {
        border-top: 1px solid var(--line);
        padding-top: 34px;
      }
      .sm-intro h2.sm-title {
        margin: 8px 0 12px;
        font-size: clamp(1.55rem, 4.6vw, 2.1rem);
        font-weight: 800;
        letter-spacing: -0.022em;
        line-height: 1.1;
      }

      /* ── KOM notes tab (2026-11-12) ── */
      .kom-lede {
        margin: 0;
        max-width: 46rem;
        font-size: 1rem;
        color: var(--ink-2);
      }
      .kom-lede b {
        color: var(--ink);
        font-weight: 600;
      }
      .kom-flow {
        list-style: none;
        margin: 0;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
        counter-reset: k;
      }
      @media (max-width: 820px) {
        .kom-flow {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }
      }
      @media (max-width: 520px) {
        .kom-flow {
          grid-template-columns: 1fr;
        }
      }
      .kom-flow li {
        counter-increment: k;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 14px 16px;
        display: flex;
        flex-direction: column;
        gap: 5px;
      }
      .kom-flow li::before {
        content: counter(k, decimal-leading-zero);
        font-family: var(--f-mono);
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        color: var(--accent-deep);
      }
      .kom-flow .t {
        font-family: var(--f-display);
        font-weight: 700;
        font-size: 0.95rem;
        line-height: 1.3;
      }
      .kom-flow .d {
        font-size: 0.86rem;
        color: var(--ink-2);
        line-height: 1.45;
      }
      .kshots {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
      }
      @media (max-width: 820px) {
        .kshots {
          grid-template-columns: 1fr;
        }
      }
      .kshot {
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
      .kshot a {
        display: block;
        border: 1px solid var(--line);
        border-radius: 10px;
        overflow: hidden;
        background: #ffffff;
      }
      .kshot a:hover {
        border-color: var(--accent);
      }
      .kshot img {
        display: block;
        width: 100%;
        height: 420px;
        object-fit: cover;
        object-position: top;
      }
      .kshot figcaption {
        font-size: 0.84rem;
        line-height: 1.45;
        color: var(--ink-2);
      }
      .kshot figcaption b {
        color: var(--ink);
        font-weight: 600;
      }
      .kom-note {
        background: var(--accent-tint);
        border: 1px solid #f3c79f;
        border-radius: 10px;
        padding: 12px 16px;
        font-size: 0.92rem;
        color: var(--ink);
      }
      .linkbtn {
        font: inherit;
        font-weight: 600;
        color: var(--accent-deep);
        background: none;
        border: 0;
        padding: 0;
        cursor: pointer;
        text-decoration: underline;
        text-underline-offset: 3px;
      }
      .kom-links {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
      }
      .kom-links a {
        font-family: var(--f-display);
        font-weight: 700;
        font-size: 0.9rem;
        text-decoration: none;
        color: #ffffff;
        background: var(--accent-deep);
        border-radius: 8px;
        padding: 9px 16px;
      }
      .kom-links a.sec {
        color: var(--accent-deep);
        background: var(--surface);
        border: 1px solid var(--line);
      }
