:root {
      color-scheme: light;
      font-size: 16px;
      --ink: #111827;
      --muted: #4b5563;
      --line: #e5e7eb;
      --paper: #fff;
      --wash: #fbfbfc;
      --green: #76c2f1;
      /* ~15% darker than the fills they outline, so the edge stays visible. The app is light-only. */
      --green-border: #64a5cd;
      --green-dark: #0a2540;
      --green-dark-border: #091f36;
      --mint: #eef9ff;
      /* Homepage light blue: soft-fade linear base (~y=200 center; #ecf5fe).
         Also solid fills for the bottom strip and How it works illustration
         washes. The multi-layer radial stack lives in --home-soft-fade and is
         painted once on .route-page:has(.home-hero) so hero + #home-panels
         share one continuous wash (panels stay transparent — a second paint
         would restart at the section edge and leave a seam). */
      --home-light-blue: #ecf5fe;
      --home-soft-fade:
        radial-gradient(ellipse 52% 38% at 50% 0%, rgb(118 194 241 / 16%), transparent 72%),
        radial-gradient(ellipse 36% 28% at 88% 6%, rgb(219 240 255 / 58%), transparent 68%),
        radial-gradient(ellipse 42% 34% at 8% 24%, rgb(238 249 255 / 70%), transparent 70%),
        linear-gradient(180deg, var(--home-light-blue) 0%, #f7faff 42%, #fbfcff 100%);
      /* Shared section title for How it works (.about-collab-head h2).
         How can we help you? uses a larger private size on #home-panels. */
      --home-section-title-size: clamp(1.2rem, 2.5vw, 1.5rem);
      --amber: #f5ead4;
      /* Publish-state pills. These match colours already used by visibility
         and default tags. --green is the brand blue, so it is not used here. */
      --status-published-bg: #e8f8ef;
      --status-published-ink: #1b6b3a;
      --status-draft-bg: #f3f4f6;
      --status-draft-ink: #4b5563;
      --status-historical-bg: #fff1d6;
      --status-historical-ink: #8a5a00;
      --status-scheduled-bg: #d9efff;
      --status-scheduled-ink: #0b5f8a;
      --shadow: 0 8px 24px rgb(15 23 42 / 6%);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-synthesis: none;
      text-rendering: optimizeLegibility;
      -webkit-tap-highlight-color: transparent;
    }
    *, *::before, *::after { box-sizing: border-box; }
    html { min-height: 100%; line-height: 1.5; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
    html { height: 100%; background-color: #fff; }
    body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; background-color: #fff; background-image: linear-gradient(to top, #f7faff 0%, #fbfcff 44%, #fff 100%); color: var(--ink); font: 400 15px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; touch-action: manipulation; }
    h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--ink); font: inherit; font-weight: 650; line-height: 1.2; }
    p, figure, blockquote, dl, dd { margin: 0; }
    ul, ol { margin: 0; padding: 0; }
    a { color: inherit; text-decoration: none; }
    button, input, textarea, select { min-width: 0; margin: 0; color: inherit; font: inherit; letter-spacing: inherit; }
    a, button, input, textarea, select, label, summary { touch-action: manipulation; }
    button { appearance: none; display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: .5rem; background: #fff; color: var(--ink); line-height: 1.3; text-align: center; text-decoration: none; cursor: pointer; -webkit-appearance: none; }
    button:hover { border-color: #ccd6e6; background: #eef2f7; }
    button:disabled, button[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
    input:not([type="checkbox"]):not([type="radio"]), textarea, select { appearance: none; display: block; width: 100%; min-height: 2.5rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: .5rem; background-color: #fff; color: var(--ink); font: inherit; font-size: .8125rem; line-height: 1.45; -webkit-appearance: none; }
    textarea { min-height: 4.25rem; resize: vertical; }
    select { padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%234b5563' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5'/%3E%3C/svg%3E"); background-position: right .75rem center; background-repeat: no-repeat; background-size: .75rem .5rem; cursor: pointer; }
    option { background: #fff; color: var(--ink); }
    input[type="checkbox"], input[type="radio"] { appearance: none; display: inline-grid; width: 1rem; height: 1rem; min-height: 0; flex: 0 0 1rem; place-content: center; padding: 0; border: 1px solid #9ca3af; border-radius: .25rem; background: #fff; cursor: pointer; -webkit-appearance: none; }
    input[type="checkbox"]::before { width: .58rem; height: .32rem; transform: translateY(-.05rem) rotate(-45deg) scale(0); border-bottom: 2px solid #fff; border-left: 2px solid #fff; content: ""; }
    input[type="checkbox"]:checked, input[type="radio"]:checked { border-color: #0b5f8a; background: #0b5f8a; }
    input[type="checkbox"]:checked::before { transform: translateY(-.05rem) rotate(-45deg) scale(1); }
    input[type="radio"] { border-radius: 50%; }
    input[type="radio"]::before { width: .4rem; height: .4rem; transform: scale(0); border-radius: 50%; background: #fff; content: ""; }
    input[type="radio"]:checked::before { transform: scale(1); }
    input::placeholder, textarea::placeholder { color: #6b7280; opacity: 1; }
    input:disabled, textarea:disabled, select:disabled { background-color: #f3f4f6; color: #6b7280; cursor: not-allowed; }
    input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline-offset: 2px; }
    input[type="file"]::file-selector-button { margin-inline-end: .75rem; padding: .4rem .65rem; border: 1px solid var(--line); border-radius: .375rem; background: #f3f4f6; color: var(--ink); font: inherit; cursor: pointer; }
    details > summary { display: list-item; list-style: none; }
    details > summary::-webkit-details-marker { display: none; }
    details:not(.user-menu) > summary::before { display: inline-block; width: .42rem; height: .42rem; margin-inline-end: .65rem; transform: rotate(-45deg); border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; vertical-align: .12em; transition: transform .15s ease; }
    details:not(.user-menu)[open] > summary::before { transform: rotate(45deg); }
    details:not(.user-menu) > summary { cursor: pointer; }
    /* Author display rules (forms, menus) must not override the closed state.
       Otherwise Assign, export links, and sign-out sit on top of nearby buttons. */
    details:not([open]) > :not(summary) { display: none; }
    pre, code, kbd, samp { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
    img, svg, video, canvas { max-width: 100%; }
    /* Intrinsic width/height attrs must not squash when max-width kicks in. */
    img { height: auto; }
    .connect-accordion-body img { display: block; width: 100%; height: auto; }
    fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
    legend { display: block; padding: 0; }
    hr { height: 0; margin: 1rem 0; border: 0; border-top: 1px solid var(--line); }
    table { width: 100%; border-collapse: collapse; border-spacing: 0; }
    th, td { padding: .5rem; text-align: left; vertical-align: top; }
    progress { display: block; width: 100%; height: .5rem; overflow: hidden; appearance: none; border: 0; border-radius: 999px; background: #e5e7eb; color: #0b5f8a; }
    progress::-webkit-progress-bar { border-radius: inherit; background: #e5e7eb; }
    progress::-webkit-progress-value { border-radius: inherit; background: #0b5f8a; }
    progress::-moz-progress-bar { border-radius: inherit; background: #0b5f8a; }
    dialog { position: fixed; inset: 0; width: min(92vw, 36rem); max-width: calc(100% - 2rem); max-height: calc(100% - 2rem); overflow: auto; margin: auto; padding: 1.25rem; border: 1px solid var(--line); border-radius: .75rem; background: #fff; color: var(--ink); }
    dialog:not([open]) { display: none; }
    dialog::backdrop { background: rgb(10 37 64 / 36%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
    :focus-visible { outline: 3px solid rgb(118 194 241 / 65%); outline-offset: 2px; }
    ::selection { background: #d9efff; color: #111827; }
    .topbar {
      min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
      padding: 0 2.5rem; background: rgb(255 255 255 / 92%); border-bottom: 1px solid var(--line);
    }
    .brand { display: flex; align-items: center; gap: 11px; font-size: 18px; font-weight: 750; letter-spacing: -.04em; }
    .header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
    .account { display: flex; align-items: center; gap: 14px; }
    .account-copy { text-align: right; font-size: 12px; line-height: 1.45; color: var(--muted); }
    .account-copy strong { display: block; color: var(--ink); font-size: 13px; font-weight: 650; }
    .button {
      display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
      min-height: 2.75rem; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink);
      padding: 0 10px; font-size: 13px; font-weight: 650; line-height: 1.3; text-decoration: none;
      transition: background .15s, border-color .15s;
    }
    .button:hover { background: #eef2f7; border-color: #ccd6e6; }
    .button.primary { border-color: var(--green-border); background: var(--green); color: #fff; }
    .button.primary:focus,
    .button.primary:focus-visible,
    .button.primary:active,
    .button.primary:disabled,
    .button.primary[aria-disabled="true"] { border-color: var(--green-border); }
    .button.primary:hover,
    .button.primary:hover:focus,
    .button.primary:hover:focus-visible,
    .button.primary:hover:active,
    .button.primary:disabled:hover,
    .button.primary[aria-disabled="true"]:hover {
      background: var(--green-dark); border-color: var(--green-dark-border);
    }
    .button.small { min-height: 2.5rem; padding: 8px 12px; }
    .button.danger { border-color: #efb2bd; background: #fff1f3; color: #9f1d12; }
    .button.danger:hover { border-color: #e88d9d; background: #ffe7ec; }
    main { width: min(1320px, 100%); margin: 0 auto; padding: 2.5rem; }
    .eyebrow { color: var(--green); text-transform: uppercase; font-size: 11px; font-weight: 750; letter-spacing: .11em; }
    h1 { margin: 7px 0 7px; font-size: clamp(27px, 4vw, 38px); letter-spacing: -.055em; line-height: 1.1; }
    .panel { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
    .section-title { margin: 0; font-size: 14px; font-weight: 750; }
    .artifact-list { list-style: none; padding: 0; margin: 0; }
    .artifact-list li + li { margin-top: 3px; }
    .artifact-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; color: var(--muted); font-size: 11px; }
    .tag { display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 8px; background: #f3f4f6; color: #4b5563; font-size: 10px; font-weight: 700; text-transform: capitalize; }
    .tag.green { background: var(--mint); color: var(--green-dark); }
    .tag.active-pulse {
      background: #d9efff; color: #0b5f8a;
      box-shadow: 0 0 0 0 rgb(118 194 241 / 55%);
      animation: tag-active-pulse 1.6s ease-out infinite;
    }
    @keyframes tag-active-pulse {
      0% { box-shadow: 0 0 0 0 rgb(118 194 241 / 55%); }
      70% { box-shadow: 0 0 0 8px rgb(118 194 241 / 0%); }
      100% { box-shadow: 0 0 0 0 rgb(118 194 241 / 0%); }
    }
    @media (prefers-reduced-motion: reduce) {.tag.active-pulse { animation: none; box-shadow: 0 0 0 2px rgb(118 194 241 / 45%); }}
    /* One pill, status variants. Published and draft text both clear WCAG AA
       (4.5:1) on these backgrounds. The app is light-only. */
    .tag.status-published { background: var(--status-published-bg); color: var(--status-published-ink); }
    .tag.status-draft { background: var(--status-draft-bg); color: var(--status-draft-ink); }
    .tag.status-historical,
    .tag.status-archived { background: var(--status-historical-bg); color: var(--status-historical-ink); }
    .tag.status-scheduled,
    .tag.status-active { background: var(--status-scheduled-bg); color: var(--status-scheduled-ink); }
    .create-fields { display: grid; gap: 10px; padding-top: 14px; }
    .utility-panel { display: grid; gap: 14px; max-width: 40rem; }
    .settings-plan { margin: -.45rem 0 .35rem; color: var(--ink); font-size: .95rem; }
    .settings-billing-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 0 .35rem; }
    .settings-usage { margin: 0 0 1.15rem; color: var(--muted); font-size: .875rem; line-height: 1.45; }
    .settings-usage.is-warn { color: #8a5a00; }
    .settings-usage.is-limit { color: #8e3027; }
    .settings-plan-link { margin-left: .15rem; color: #0b5f8a; font-size: .875rem; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
    .settings-plan-link:hover { color: var(--ink); }
    .settings-subsection { border: 1px solid var(--line); border-radius: .5rem; padding: 12px 14px; background: #fff; }
    .settings-subsection > summary { cursor: pointer; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
    .settings-subsection > .create-fields { padding-top: 12px; }
    .touch-form { display: grid; gap: 10px; }
    .member-identity { display: grid; gap: 4px; min-width: 0; }
    .member-name, .member-email { display: block; overflow-wrap: anywhere; }
    .member-email { color: var(--muted); font-size: 13px; line-height: 1.4; }
    .touch-form input:not([type="checkbox"]):not([type="radio"]),
    .touch-form select,
    .touch-form textarea { font-size: 16px; }
    .touch-form .button, .no-workspace .button { min-height: 44px; }
    .activity-item { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
    .activity-item strong, .history-who { overflow-wrap: anywhere; }
    .activity-item time { color: var(--muted, #5c6570); font-size: 13px; }
    .token-row { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .token-rename { display: grid; gap: 8px; }
    .token-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
    .token-actions .button { min-height: 44px; }
    .token-meta { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
    .history-page { display: grid; gap: 10px; max-width: 46rem; }
    .history-filters { display: grid; gap: 10px; }
    .history-filter-grid { display: grid; gap: 10px; }
    .history-filters label { color: var(--ink); font-size: 13px; font-weight: 650; }
    .history-exports { display: flex; flex-wrap: wrap; gap: 10px; }
    .history-exports .button, .history-filters .button, .history-page > .button { min-height: 44px; }
    .history-list { list-style: none; display: grid; gap: 0; margin: 0; padding: 0; }
    .history-item { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .history-who { font-size: 15px; }
    .history-object { color: var(--ink); font-size: 14px; }
    .history-item time { color: var(--muted); font-size: 13px; }
    .history-change { border: 1px solid var(--line); border-radius: 10px; background: var(--wash); }
    .history-change > summary { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; color: var(--ink); font-size: 14px; font-weight: 650; }
    .history-diff { display: grid; gap: 10px; margin: 0; padding: 0 12px 12px; }
    .history-diff div { display: grid; gap: 2px; }
    .history-diff dt { color: var(--muted); font-size: 12px; font-weight: 700; }
    .history-diff dd { margin: 0; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
    .history-before { color: #4b5563; }
    .history-arrow { color: var(--muted); }
    .history-meta { margin: 0; padding: 0 12px 12px; color: var(--muted); font-size: 13px; }
    .route-heading.history-heading { flex-wrap: wrap; gap: 10px; }
    .route-heading.history-heading .button { min-height: 44px; }
    @media (min-width: 720px) {.history-filter-grid { grid-template-columns: 1fr 1fr; }}
    .no-workspace { display: grid; gap: 10px; max-width: 40rem; margin-top: 16px; padding: 16px; }
    .no-workspace h2 { font-size: 18px; }
    .no-workspace p { margin: 0; }
    .sidebar-empty { padding: 8px 0; color: var(--muted); font-size: 13px; }
    .authoring-help { color: var(--muted); font-size: 12px; line-height: 1.45; margin: 0 0 8px; }
    .step-content { margin: 0; color: #4b5563; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
    .token-scopes { margin: 0; padding: 0; border: 0; }
    .token-scopes legend { margin: 0 0 6px; padding: 0; font-size: 13px; font-weight: 600; }
    .token-scopes label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
    .token-scopes input[type="checkbox"] { width: auto; margin: 0; }
    label { display: grid; gap: 6px; color: #4b5563; font-size: 11px; font-weight: 700; }
    .loading, .inline-error { padding: 26px 10px; text-align: center; color: var(--muted); font-size: 13px; }
    .inline-error { color: #a13d32; }
    .notice {
      display: flex; align-items: center; justify-content: space-between; gap: 8px;
      margin: 0 0 10px; border-radius: 8px; padding: 7px 10px; font-size: 12px; line-height: 1.35;
    }
    .notice-message { flex: 1; min-width: 0; }
    .notice-dismiss {
      flex: none; display: inline-flex; align-items: center; justify-content: center;
      width: auto; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
      background: transparent; color: #9ca3af; font-size: 14px; line-height: 1; cursor: pointer;
    }
    .notice-dismiss:hover { color: #6b7280; background: transparent; }
    .notice.error { border: 1px solid #f0c9c3; background: #fff5f3; color: #8e3027; }
    .notice.success { border: 1px solid #cde2d1; background: #f0f8f1; color: #285b3c; }
    .login-wrap {
      display: flex; flex-direction: column; align-items: center; width: 100%; max-width: none;
      min-height: calc(100vh - 74px); min-height: calc(100dvh - 74px); margin: 0;
      padding: 32px 1.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
    }
    .login-wrap > .login-card { margin-block: auto; }
    .login-wrap > .auth-legal { margin-inline: auto; justify-content: center; }
    .login-wrap > .auth-legal::before { left: 50%; transform: translateX(-50%); }
    .login-card { width: min(420px, 100%); padding: 30px; }
    .login-card h1 { margin-top: 7px; font-size: 29px; }
    .login-card > p { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 0 0 22px; }
    .login-card .login-lead { margin: 2px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
    .login-fields { display: grid; gap: 15px; }
    .login-fields .button { width: 100%; margin-top: 4px; padding: 11px; }
    .auth-switch { margin-top: 18px; color: var(--muted); font-size: 13px; text-align: center; }
    .auth-switch a { color: var(--green-dark); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
    .hidden { display: none !important; }
    .route-page { min-height: 0; }
    .route-heading { display: flex; min-width: 0; justify-content: space-between; align-items: flex-start; gap: 14px; margin: 0 0 1.35rem; }
    .route-heading > * { min-width: 0; }
    .route-heading h1 { margin: 3px 0 8px; }
    .route-heading p { margin: 0; color: var(--muted); }
    .home-hero {
      position: relative;
      display: grid;
      justify-items: start;
      align-content: start;
      gap: .85rem;
      width: min(72rem, 100%);
      margin: 0 auto 2.75rem;
      padding: clamp(1.5rem, 4vw, 2.75rem) 1rem 0;
      text-align: left;
    }
    /* Laptop and up: two columns (brand left, scratch right), filling the
       first screen under the topbar so the next section starts below the fold.
       DOM order stays title → tagline → aside → lead → points.
       Mobile keeps a single stacked column and content-sized height. */
    @media (min-width: 900px) {
      .home-hero {
        min-height: calc(100vh - 74px);
        min-height: calc(100svh - 74px);
        box-sizing: border-box;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
        column-gap: clamp(2.25rem, 5.5vw, 4.75rem);
        row-gap: clamp(.55rem, 1.25vh, 1rem);
        align-content: center;
        align-items: start;
        margin-bottom: 0;
        padding: clamp(2rem, 4.5vh, 3.5rem) clamp(1.25rem, 3vw, 2rem);
      }
      .home-hero-title {
        grid-column: 1;
        grid-row: 1;
        max-width: none;
      }
      .home-hero-tagline {
        grid-column: 1;
        grid-row: 2;
      }
      .home-hero-aside {
        grid-column: 1;
        grid-row: 3;
      }
      /* Lead shares the title row. Sit it at the bottom of that row so the
         gap down to the points is only row-gap (not the leftover title height). */
      .home-hero-lead {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
      }
      .home-hero-points {
        grid-column: 2;
        grid-row: 2 / 4;
        gap: clamp(.75rem, 1.4vh, 1.1rem);
        line-height: 1.5;
      }
    }
    .app-main:has(.home-hero) {
      padding-top: 0;
      /* Wash lives on .route-page (full content height), not here — a viewport-
         tall .app-main background scrolls away before #home-panels. */
      background: transparent;
    }
    /* Hero and #home-panels stay transparent so the route-page wash shows through. */
    /* Homepage How it works: white section at every width — kill About’s
       card gradient/shadow. Illustration light blues use --home-light-blue.
       Plain native scrolling only (no scroll-snap / idle settle). */
    .app-main:has(.home-hero) #home-how {
      margin: 0;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      background: #fff;
      background-image: none;
    }
    @media (min-width: 900px) {
      .app-main:has(.home-hero) {
        padding-inline: 0;
        padding-bottom: 0;
      }
      /* Full-viewport section heights stay so panels / How it works each read
         as one screen of content under native scroll (not snap targets). */
      .app-main:has(.home-hero) #home-panels,
      .app-main:has(.home-hero) #home-how {
        min-height: calc(100vh - 74px);
        min-height: calc(100svh - 74px);
        height: calc(100vh - 74px);
        height: calc(100svh - 74px);
        box-sizing: border-box;
      }
      .app-main:has(.home-hero) #home-how {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        max-width: none;
        /* White after the panels’ soft fade so neighboring sections differ. */
        padding-inline: var(--page-pad-x, 2.5rem);
      }
      .app-main:has(.home-hero) .home-hero {
        width: min(72rem, calc(100% - 2 * var(--page-pad-x, 2.5rem)));
        margin-inline: auto;
        padding-inline: clamp(1.25rem, 3vw, 2rem);
      }
    }
    .route-page:has(.home-hero) {
      min-height: 0;
      max-width: 100%;
      min-width: 0;
      /* One continuous soft fade across hero + #home-panels (content-tall, so
         it does not scroll away). Do not also paint --home-soft-fade on
         #home-panels — a second background restarts at the section edge.
         #home-how paints solid white over the lower part of this wash. */
      background: var(--home-soft-fade);
    }
    .home-hero-wordmark {
      display: inline-flex;
      align-items: center;
      gap: .45rem;
      margin: 0;
      color: #16324a;
      font-size: 1rem;
      font-weight: 650;
      letter-spacing: -.04em;
      line-height: 1;
    }
    .home-hero-mark {
      width: 1.5rem;
      height: 1.5rem;
      margin: 0;
      color: #76c2f1;
    }
    .home-hero-title {
      margin: 0;
      max-width: 12em;
      color: var(--ink);
      font-size: clamp(2.85rem, 8.5vw, 4.5rem);
      font-weight: 700;
      letter-spacing: -.03em;
      line-height: 1.02;
    }
    .home-hero-tagline {
      margin: .7rem 0 0;
      max-width: 22em;
      color: #16324a;
      font-size: clamp(1.3rem, 3.6vw, 1.9rem);
      font-weight: 560;
      letter-spacing: -.03em;
      line-height: 1.28;
      text-wrap: pretty;
    }
    .home-hero-lead {
      margin: .55rem 0 0;
      max-width: 28rem;
      color: #16324a;
      font-size: clamp(1.125rem, 2.5vw, 1.4rem);
      font-weight: 650;
      letter-spacing: -.025em;
      line-height: 1.35;
      text-wrap: pretty;
    }
    .home-hero-subhead {
      margin: .85rem 0 0;
      max-width: 38rem;
      color: #334155;
      font-size: 1.125rem;
      font-weight: 400;
      line-height: 1.55;
      letter-spacing: -.015em;
    }
    .home-hero-points {
      display: grid;
      gap: .7rem;
      margin: .35rem 0 0;
      padding: 0;
      max-width: 34rem;
      list-style: none;
      color: #334155;
      font-size: 1rem;
      font-weight: 400;
      line-height: 1.45;
      letter-spacing: -.01em;
    }
    .home-hero-points li {
      display: grid;
      grid-template-columns: .4rem minmax(0, 1fr);
      column-gap: .5rem;
      align-items: start;
      margin: 0;
      min-width: 0;
    }
    .home-hero-points li::before {
      content: "";
      width: .38rem;
      height: .38rem;
      margin-top: .32rem;
      justify-self: center;
      border-radius: 50%;
      background: var(--green);
    }
    .home-hero-points strong {
      display: block;
      grid-column: 2;
      margin: 0 0 .12rem;
      color: #16324a;
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: -.02em;
      line-height: 1.3;
    }
    .home-hero-point-key strong { color: var(--ink); }
    .home-hero-points span {
      display: block;
      grid-column: 2;
      font-size: .9375rem;
      font-weight: 400;
    }
    /* Sub-tagline mirrors the brand-mark bars (viewBox 512): left edges at
       x=326, 106, 26 → offsets from the leftmost bar of 300 / 80 / 0 (ratio 3.75 : 1 : 0).
       Keep each sentence on one line; shrink the step unit before wrapping. */
    .home-hero-aside {
      --aside-step: .35rem;
      display: grid;
      gap: .18em;
      margin: .55rem 0 0;
      max-width: 100%;
      color: var(--muted);
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
      font-size: clamp(.72rem, 2vw, .88rem);
      font-weight: 400;
      letter-spacing: -.025em;
      line-height: 1.35;
    }
    .home-hero-aside-line {
      display: block;
      max-width: 100%;
      white-space: nowrap;
    }
    .home-hero-aside-line:nth-child(1) { padding-left: calc(var(--aside-step) * 3.75); }
    .home-hero-aside-line:nth-child(2) { padding-left: var(--aside-step); }
    .home-hero-aside-line:nth-child(3) { padding-left: 0; }
    /* After the base margin shorthands so two-column spacing wins at ≥900px. */
    @media (min-width: 900px) {
      .home-hero-title { font-size: clamp(3.5rem, 7vw, 5.5rem); }
      .home-hero-tagline {
        /* Title→tagline only; leave row-gap alone so the right column stays put. */
        margin-top: 1rem;
        max-width: 14em;
        font-size: clamp(1.35rem, 2.45vw, 1.95rem);
      }
      .home-hero-aside {
        --aside-step: .75rem;
        margin-top: .35rem;
        font-size: clamp(.82rem, .95vw, .95rem);
      }
      .home-hero-lead {
        margin-top: 0;
        max-width: 34rem;
        font-size: clamp(1.2rem, 1.85vw, 1.55rem);
      }
      .home-hero-points {
        margin-top: 0;
        max-width: 40rem;
        font-size: 1.0625rem;
      }
      .home-hero-points strong { font-size: 1.0625rem; }
      /* Descriptions only — keep the bold titles at 1.0625rem. */
      .home-hero-points span { font-size: .975rem; }
    }
    .home-hero > * {
      animation: home-hero-in .65s cubic-bezier(.22, 1, .36, 1) both;
    }
    .home-hero-wordmark { animation-delay: .02s; }
    .home-hero-title { animation-delay: .02s; }
    .home-hero-tagline { animation-delay: .06s; }
    .home-hero-aside { animation-delay: .1s; }
    .home-hero-lead { animation-delay: .12s; }
    .home-hero-subhead,
    .home-hero-points { animation-delay: .16s; }
    @keyframes home-hero-in {
      from { opacity: 0; transform: translateY(.7rem); }
      to { opacity: 1; transform: none; }
    }
    @media (prefers-reduced-motion: reduce) {.home-hero > * { animation: none; }}
    .home-story {
      display: grid;
      gap: 4.5rem;
      width: min(72rem, 100%);
      max-width: 100%;
      min-width: 0;
      margin: 0 auto 3.25rem;
      padding: 0 1rem;
    }
    /* Four vertical panels: equal-width columns edge-to-edge on desktop;
       stack 1→2→3→4 on phone. Transparent so .route-page’s continuous soft
       fade shows through (no second --home-soft-fade paint / seam). */
    #home-panels {
      display: grid;
      gap: 0;
      width: 100%;
      max-width: none;
      min-width: 0;
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      border: 0;
      box-shadow: none;
      background: transparent;
      background-image: none;
    }
    /* Transparent so the continuous route-page wash shows through
       (panels 1/3 stay white). Title is larger than How it works. */
    #home-panels > .home-panels-head {
      grid-column: 1 / -1;
      margin: 0;
      padding: clamp(1rem, 2.2vw, 1.35rem) var(--page-pad-x, 1.25rem) .85rem;
      text-align: center;
      z-index: 1;
      background: transparent;
    }
    /* ~1.5× --home-section-title-size so How can we help you? outranks
       People guide. Your AI follows. How it works keeps the shared token. */
    #home-panels > .home-panels-head h2 {
      font-size: clamp(1.8rem, 3.75vw, 2.25rem);
    }
    .home-panel {
      display: flex;
      flex-direction: column;
      gap: .65rem;
      min-width: 0;
      min-height: 0;
      margin: 0;
      padding: 1.15rem 1.15rem 1.25rem;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      box-sizing: border-box;
      overflow-x: hidden;
      /* clip (not auto): overflow:auto made every column a scrollport that
         swallowed wheel/trackpad deltas even when content fit, so .app-main
         never moved. Only .is-scrollable panels become inner scrollers. */
      overflow-y: clip;
      overscroll-behavior: auto;
      background: #fff;
    }
    .home-panel.is-scrollable {
      overflow-y: auto;
      overscroll-behavior-y: auto;
    }
    /* Transparent so .route-page’s continuous soft fade shows through. */
    .home-panel-2,
    .home-panel-4 {
      background: transparent;
    }
    /* One benefit per panel: title + body. */
    .home-panel > h3 {
      margin: 0;
      color: #16324a;
      font-size: clamp(1.05rem, 2vw, 1.35rem);
      font-weight: 620;
      letter-spacing: -.04em;
      line-height: 1.15;
    }
    .home-panel > p {
      margin: 0;
      color: #334155;
      font-size: .875rem;
      line-height: 1.4;
    }
    @media (min-width: 900px) {
      #home-panels {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: auto minmax(0, 1fr);
        align-items: stretch;
      }
      #home-panels > .home-panel {
        grid-row: 2;
        height: 100%;
        min-height: 0;
        padding: clamp(.85rem, 1.4vw, 1.25rem) clamp(.75rem, 1.2vw, 1.15rem);
        gap: .55rem;
        /* Safe vertical centering: spacers share free space when content is
           short, and shrink to 0 when it overflows. */
      }
      #home-panels > .home-panel::before,
      #home-panels > .home-panel::after {
        content: "";
        flex: 1 1 0;
        min-height: 0;
        pointer-events: none;
      }
    }
    @media (max-width: 899px) {
      #home-panels {
        grid-template-columns: minmax(0, 1fr);
      }
      #home-panels > .home-panel {
        height: auto;
        min-height: 0;
        align-self: stretch;
        padding: 1.25rem 1.15rem 1.35rem;
      }
      #home-panels > .home-panel > h3 {
        font-size: clamp(1.2rem, 3vw, 1.35rem);
        font-weight: 640;
      }
      #home-panels > .home-panel > p {
        font-size: 1rem;
        line-height: 1.5;
      }
    }
    .home-story-section {
      display: grid;
      gap: .85rem;
      min-width: 0;
      max-width: 100%;
      animation: home-hero-in .7s cubic-bezier(.22, 1, .36, 1) both;
    }
    .home-story-section:nth-child(1) { animation-delay: .05s; }
    .home-story-section:nth-child(2) { animation-delay: .1s; }
    .home-story-section:nth-child(3) { animation-delay: .15s; }
    .home-story-section:nth-child(4) { animation-delay: .2s; }
    .home-story-section:nth-child(5) { animation-delay: .25s; }
    .home-story-section:nth-child(6) { animation-delay: .3s; }
    @media (prefers-reduced-motion: reduce) {
      .home-story-section { animation: none; }
    }
    .home-story-section > h2 {
      margin: 0;
      color: #16324a;
      font-size: clamp(1.45rem, 2.6vw, 1.85rem);
      font-weight: 640;
      letter-spacing: -.035em;
      line-height: 1.15;
    }
    .home-story-section > p,
    .home-story-list,
    .home-story-steps {
      margin: 0;
      max-width: min(46rem, 100%);
      min-width: 0;
      overflow-wrap: break-word;
      color: #334155;
      font-size: 1.125rem;
      line-height: 1.55;
    }
    .home-proof-cards,
    .home-point-grid {
      max-width: none;
    }
    /* Short strip under How it works. Compact padding — the old tall trailing
       pad existed only so proximity snap could release past the panels. */
    .home-bottom {
      display: grid;
      justify-items: center;
      align-content: start;
      gap: 1rem;
      width: 100%;
      max-width: none;
      margin: 0;
      padding: 1.35rem var(--page-pad-x, 2.5rem) calc(1.75rem + env(safe-area-inset-bottom, 0px));
      box-sizing: border-box;
      background: var(--home-light-blue);
      border-top: 1px solid #e4edf4;
    }
    .home-bottom-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
    }
    .home-bottom .legal-nav {
      margin: 0;
      justify-content: center;
    }
    .home-bottom .legal-nav::before {
      left: 50%;
      transform: translateX(-50%);
    }
    .home-bottom #required-workflows {
      width: min(72rem, 100%);
      margin: 0 0 .5rem;
      padding: 0;
    }
    @media (max-width: 899px) {
      .home-bottom {
        padding-inline: 1rem;
      }
      .home-bottom-actions {
        display: grid;
        width: 100%;
        max-width: 22rem;
      }
      .home-bottom-actions .button {
        width: 100%;
        min-height: 2.75rem;
      }
    }
    .home-point-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.35rem;
      max-width: 40rem;
      padding: 0;
      list-style: none;
    }
    .home-point-grid li {
      margin: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }
    .home-point-grid li strong {
      display: block;
      margin-bottom: .3rem;
      color: #0a2540;
    }
    @media (max-width: 800px) {
      .home-proof-cards,
      .home-point-grid { grid-template-columns: 1fr; }
    }
    @media (max-width: 800px) {
      .home-key-blocks { grid-template-columns: minmax(0, 1fr); }
    }
    .home-story-list,
    .home-story-steps {
      display: grid;
      gap: .55rem;
      padding-left: 1.15rem;
    }
    .home-story-list.home-point-grid {
      gap: 1.35rem;
      padding: 0;
      grid-template-columns: 1fr;
      max-width: 40rem;
    }
    .home-story-list li,
    .home-story-steps li { padding-left: .15rem; }
    .home-story-list.home-point-grid li { padding-left: 0; }
    .home-story-steps li p {
      margin: .4rem 0 0;
      max-width: 40rem;
      color: #334155;
      font-size: 1.0625rem;
      line-height: 1.5;
    }
    .home-story-meta {
      margin: 0;
      color: #667788;
      font-size: .95rem;
      line-height: 1.5;
    }
    .home-story-figure {
      margin: .15rem 0 0;
      max-width: 100%;
      min-width: 0;
      overflow: hidden;
      border: 1px solid #dbe4f0;
      border-radius: .85rem;
      background: #f8fbff;
    }
    .home-story-figure img {
      display: block;
      width: 100%;
      max-width: 100%;
      height: auto;
    }
    .home-story-figure figcaption {
      margin: 0;
      padding: .7rem .9rem .85rem;
      color: #667788;
      font-size: .9rem;
      border-top: 1px solid #e5eef7;
    }
    .home-story-code {
      margin: .55rem 0;
      max-width: 100%;
      padding: .85rem 1rem;
      overflow-x: hidden;
      overflow-wrap: anywhere;
      border: 1px solid #e1ebf4;
      border-radius: .65rem;
      background: #f4f8fb;
      color: #16324a;
      font-size: .82rem;
      line-height: 1.45;
      white-space: pre-wrap;
    }
    .home-story-config { padding: .85rem; }
    .home-story-config .home-story-code { margin-top: .55rem; }
    .home-story-link {
      color: #0b5f8a;
      font-weight: 650;
      text-decoration: underline;
      text-underline-offset: .18em;
    }
    /* Crawl articles are in the first HTML response for fetchers that do not
       run JavaScript. The boot script adds `js` before the body is parsed, so
       the rendered page replaces them without a flash or a second copy. */
    html.js .seo-crawl { display: none !important; }
    .seo-crawl {
      width: min(40rem, 100%);
      max-width: 40rem;
      margin: 2rem auto;
      padding: 0 1rem 2rem;
      color: #334155;
      line-height: 1.6;
      overflow-wrap: break-word;
    }
    /* Home crawl includes the shared .home-hero: widen to the same 72rem
       shell as the JS render so the two-column grid matches at laptop widths. */
    .seo-crawl:has(> .home-hero) {
      width: min(72rem, 100%);
      max-width: 72rem;
      margin-top: 0;
      padding-inline: 0;
    }
    .seo-crawl:has(> .home-hero) > :not(.home-hero) {
      width: min(40rem, calc(100% - 2rem));
      margin-inline: auto;
      padding-inline: 1rem;
    }
    /* Pricing crawl matches the JS pricing page width/grid. The default
       40rem reading column squeezes four cards (~100px each) and forces
       mid-word wraps. Same issue existed on main before this PR. */
    .seo-crawl:has(.pricing-plans),
    #pricing-crawl {
      /* Match JS pricing: full content width so 1440 stays four columns
         (the @container pricing max-width: 1180px breakpoint otherwise
         collapses a 72rem shell to two columns). */
      width: 100%;
      max-width: 100%;
      margin: 2rem auto;
      padding: 0 clamp(1rem, 2.5vw, 2.5rem) 2rem;
      box-sizing: border-box;
      container-type: inline-size;
      container-name: pricing;
      overflow-wrap: normal;
      word-break: normal;
      hyphens: none;
    }
    .seo-crawl:has(.pricing-plans) .pricing-card,
    .seo-crawl:has(.pricing-plans) .pricing-card li,
    .seo-crawl:has(.pricing-plans) .pricing-price-note,
    .seo-crawl:has(.pricing-plans) .route-heading p,
    #pricing-crawl .pricing-card,
    #pricing-crawl .pricing-card li,
    #pricing-crawl .pricing-price-note,
    #pricing-crawl .route-heading p {
      overflow-wrap: normal;
      word-break: normal;
      hyphens: none;
    }
    .seo-crawl h1, .agent-workflows-page h2 {
      color: #16324a;
      font-weight: 620;
      letter-spacing: -.03em;
    }
    .seo-crawl .home-hero {
      width: min(72rem, 100%);
      margin-inline: auto;
    }
    .seo-crawl .home-hero-title { margin: 0; }
    .seo-crawl .home-hero-tagline { margin: .7rem 0 0; }
    .seo-crawl .home-hero-aside { margin: .55rem 0 0; }
    .seo-crawl .home-hero-lead { margin: .55rem 0 0; }
    @media (min-width: 900px) {
      .seo-crawl .home-hero-aside,
      .seo-crawl .home-hero-lead,
      .seo-crawl .home-hero-points {
        margin-top: 0;
      }
      .seo-crawl .home-hero-tagline { margin-top: 1rem; }
    }
    /* Crawl HTML shares hero/panel classes but must stay fully visible without
       waiting for the JS fade-in (or for the animation to finish). */
    .seo-crawl .home-hero > *,
    .seo-crawl .home-story-section {
      animation: none;
      opacity: 1;
      transform: none;
    }
    .agent-workflows-page {
      width: min(40rem, 100%);
      max-width: 40rem;
      margin-inline: auto;
    }
    .agent-workflows-page .route-heading h1,
    .agent-workflows-page h2,
    .agent-workflows-page p { overflow-wrap: break-word; }
    .agent-workflows-page h2 { margin: 1.85rem 0 .45rem; font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.25; }
    .agent-workflows-page .route-heading p,
    .agent-workflows-page p { max-width: 38rem; color: #334155; font-size: 1.0625rem; line-height: 1.6; }
    .about-faq { margin-top: 2rem; }
    .about-faq > h2 { margin-bottom: .75rem; }
    .legal-nav,
    .auth-legal {
      position: relative;
      display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center;
      column-gap: .9rem; row-gap: 0;
      width: fit-content; max-width: 100%;
      margin-top: 1rem; padding-top: .55rem;
    }
    .legal-nav::before,
    .auth-legal::before {
      content: "";
      position: absolute; top: 0; left: 0;
      width: 2rem; height: 1px; background: var(--line);
    }
    .legal-nav a,
    .auth-legal a {
      color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.3;
      text-decoration: none;
    }
    .legal-nav a:hover,
    .legal-nav a:focus-visible,
    .auth-legal a:hover,
    .auth-legal a:focus-visible {
      color: var(--ink); text-decoration: underline; text-underline-offset: 2px;
    }
    .legal-nav a:focus-visible,
    .auth-legal a:focus-visible { outline: 2px solid #0b5f8a; outline-offset: 2px; border-radius: 2px; }
    .route-page:has(.home-hero) .legal-nav { margin-inline: auto; justify-content: center; }
    .route-page:has(.home-hero) .legal-nav::before { left: 50%; transform: translateX(-50%); }
    @media (max-width: 760px) {
      .legal-nav, .auth-legal { column-gap: .15rem; margin-top: .75rem; }
      .legal-nav a, .auth-legal a {
        display: inline-flex; align-items: center; min-height: 44px; padding: 0 .45rem;
      }
    }
    .app-main:has(.short-page),
    .app-main:has(.contact-page) { justify-content: center; }
    .short-page,
    .contact-page { width: min(100%, 36rem); margin-inline: auto; }
    .status-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .25rem; }
    .short-page { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .short-page .route-heading { width: 100%; }
    .short-page .route-heading,
    .contact-page .route-heading { justify-content: center; margin-bottom: .85rem; }
    .short-page .route-heading > div,
    .contact-page .route-heading > div,
    .short-page .route-heading h1,
    .short-page .route-heading p,
    .contact-page .route-heading h1,
    .contact-page .route-heading p { text-align: center; }
    .short-page .button { margin-inline: auto; }
    /* Split the address and icon only when the pair itself cannot fit. */
    @media (max-width: 340px) {
      .contact-address { flex-wrap: wrap; }
    }
    .hint-weight { font-weight: 400; }
    /* Shared How it works block (homepage #home-how + About). Styles live in
       core so the homepage can reuse them without the marketing chunk. */
    .about-kicker {
      margin: 0 0 .55rem;
      color: #0b5f8a;
      font-size: .72rem;
      font-weight: 750;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    .about-collab {
      margin: 0 0 2rem;
      padding: clamp(1.1rem, 2.5vw, 1.5rem);
      border: 1px solid #dbe4f0;
      border-radius: 1.35rem;
      background:
        radial-gradient(ellipse 50% 70% at 80% 20%, rgb(118 194 241 / 18%), transparent 60%),
        linear-gradient(180deg, #fff, #f7fbff);
      box-shadow: 0 14px 34px rgb(15 23 42 / 5%);
      animation: home-hero-in .65s cubic-bezier(.22, 1, .36, 1) both;
    }
    .about-collab-head {
      display: grid;
      gap: .35rem;
      margin: 0 0 1rem;
      text-align: center;
    }
    .about-collab-head h2 {
      margin: 0;
      font-size: var(--home-section-title-size);
      letter-spacing: -.03em;
    }
    .about-collab-head p {
      margin: 0 auto;
      max-width: 34rem;
      color: #526277;
      font-size: .92rem;
      line-height: 1.45;
    }
    /* Forced second-sentence break on home + About (every width). */
    .about-collab-head .about-collab-lede-line {
      display: block;
    }
    .about-collab-figure { margin: 0; }
    .about-collab-figure svg {
      display: block;
      width: 100%;
      height: auto;
    }
    .about-collab-caption {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: .75rem;
      margin: .9rem 0 0;
    }
    .about-collab-caption div {
      padding: .7rem .8rem;
      border: 1px solid #e6ebf4;
      border-radius: .75rem;
      background: #fff;
      text-align: center;
    }
    .about-collab-caption strong {
      display: block;
      margin-bottom: .2rem;
      color: #0b5f8a;
      font-size: .68rem;
      font-weight: 750;
      letter-spacing: .08em;
      text-transform: uppercase;
    }
    .about-collab-caption span {
      color: #445466;
      font-size: .8rem;
      line-height: 1.4;
    }
    .about-collab .agent-dash {
      stroke-dasharray: 5 6;
      stroke-linecap: butt;
      animation: about-agent-dash 1.1s linear infinite;
    }
    .about-collab .agent-join {
      stroke-dasharray: none;
      animation: none;
    }
    .about-collab .agent-burst {
      transform-origin: center;
      animation: about-agent-burst 1.6s ease-in-out infinite;
    }
    .agent-burst-a { animation-delay: .25s; }
    .agent-burst-b { animation-delay: .5s; }
    @media (prefers-reduced-motion: reduce) {
      .about-collab .agent-dash,
      .about-collab .agent-burst { animation: none; }
    }
    @media (max-width: 760px) {
      .about-collab-caption { grid-template-columns: 1fr; }
    }
    .seo-crawl .about-collab {
      animation: none;
      opacity: 1;
      transform: none;
    }
    @keyframes about-agent-dash {
      to { stroke-dashoffset: -22; }
    }
    @keyframes about-agent-burst {
      0%, 100% { opacity: .55; transform: scale(.92); }
      50% { opacity: 1; transform: scale(1); }
    }
    .api-reference {
      margin: 2.5rem 0 0;
      padding: clamp(1.25rem, 2.5vw, 1.75rem);
      border: 1px solid #dbe4f0;
      border-radius: 1.15rem;
      background: #fff;
    }
    .api-reference h2 {
      margin: 0 0 .55rem;
      font-size: 1.2rem;
      letter-spacing: -.02em;
    }
    .api-reference h2 + .route-note { margin: 0 0 1rem; }
    .api-reference pre.version-list {
      margin: 0 0 1.15rem;
      padding: 1rem 1.1rem;
      border-radius: .85rem;
      background: #0a2540;
      color: #e8f6ff;
      font-size: .78rem;
      line-height: 1.55;
      overflow-x: auto;
    }
    .route-section { margin: 0 0 2.15rem; }
    .route-section > h2 { margin: 0 0 .5rem; font-size: 1.5rem; }
    /* Keep the What's new subtitle's line box while its text swaps from loading to the feed. */
    #home-recent > .route-note { min-height: 1.5em; }
    /* Required stays on the homepage bottom strip. */
    .route-page:has(.home-hero) #required-workflows {
      width: min(72rem, 100%);
      margin-inline: auto;
      padding-inline: 1rem;
      box-sizing: border-box;
    }
    .about-page #home-recent {
      margin: 1.5rem 0 0;
    }
    @media (min-width: 1100px) {
      .home-hero-subhead { max-width: 34rem; }
    }
    .suite-empty {
      margin: 0; padding: 1.25rem; border: 1px dashed #c9d6e5; border-radius: 12px; background: #fbfcff;
      color: #667788; font-size: 13px; line-height: 1.5; text-align: center;
    }
    .add-workflow-dialog label { display: grid; gap: 6px; margin: 0 0 18px; color: var(--muted); font-size: 13px; }
    .add-workflow-dialog input,
    .add-workflow-dialog select,
    .add-workflow-dialog textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background-color: #fff; color: var(--ink); }
    .add-workflow-dialog select { padding-right: 2.4rem; }
    .route-section > .route-note { margin: 0 0 1.5rem; color: #666; }
    .route-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
    .route-card { display: block; min-width: 0; padding: 1.5rem; border: 1px solid #dbe4f0; border-radius: .875rem; background: linear-gradient(180deg, #fff, #f8fbff); color: inherit; text-decoration: none; overflow-wrap: anywhere; box-shadow: 0 1px 2px rgb(10 37 64 / 5%); }
    .route-card:hover { border-color: #bde8ff; box-shadow: 0 4px 12px rgb(10 37 64 / 8%); }
    .route-card.visibility-private { border-color: #f0b4b8; background: linear-gradient(180deg, #fff, #fff5f5); }
    .route-card.visibility-private:hover { border-color: #e07a82; box-shadow: 0 4px 12px rgb(130 30 40 / 10%); }
    .route-card.visibility-organization { border-color: #f0d9a8; background: linear-gradient(180deg, #fff, #fff8eb); }
    .route-card.visibility-organization:hover { border-color: #e0b85a; box-shadow: 0 4px 12px rgb(120 80 10 / 10%); }
    .route-card.visibility-public { border-color: #b7e4c7; background: linear-gradient(180deg, #fff, #f1faf4); }
    .route-card.visibility-public:hover { border-color: #74c69d; box-shadow: 0 4px 12px rgb(15 90 50 / 10%); }
    .tag.visibility-private { background: #ffe5e7; color: #9f1d32; }
    .tag.visibility-organization { background: #fff1d6; color: #8a5a00; }
    .tag.visibility-public { background: #e8f8ef; color: #1b6b3a; }
    .route-card h2, .route-card h3 { margin: 0 0 8px; font-size: 16px; }
    .route-card p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
    .route-meta { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 11px; }
    .workflow-catalog-card { position: relative; overflow: hidden; padding: 1.5rem; border-radius: 1.125rem; background: linear-gradient(180deg, #fff, #f8fbff); box-shadow: 0 12px 32px rgb(15 23 42 / 7%); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
    .workflow-catalog-card:hover { transform: translateY(-3px); border-color: #bde8ff; box-shadow: 0 20px 44px rgb(15 23 42 / 12%); }
    .workflow-catalog-card h2 { font-size: 18px; letter-spacing: -.02em; }
    .workflow-catalog-card > p { display: -webkit-box; min-height: 40px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
    .workflow-catalog-card .route-meta { align-items: center; margin-top: 1rem; }
    .suite-overview-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 3rem; padding: clamp(22px, 4vw, 42px); border: 1px solid #dbe4f0; border-radius: 18px; background: linear-gradient(180deg, #fff, #f8fbff); color: var(--ink); box-shadow: var(--shadow); }
    .suite-overview-heading h1 { max-width: 800px; margin: 8px 0 12px; color: var(--ink); font-size: clamp(30px, 5vw, 46px); }
    .suite-overview-heading .eyebrow { color: #76c2f1; }
    .suite-overview-heading p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.65; }
    .suite-overview-heading .button { flex: none; border-color: var(--line); background: white; color: var(--ink); }
    .suite-module-card { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.5rem; border: 1px solid #dbe4f0; border-radius: .875rem; background: linear-gradient(180deg, white, #f8fbff); box-shadow: var(--shadow); }
    .suite-module-number { display: grid; place-items: center; width: 52px; height: 52px; border-radius: .875rem; background: #eef9ff; color: #0b5f8a; font-size: 19px; font-weight: 800; }
    .suite-module-copy { min-width: 0; overflow-wrap: anywhere; }
    .suite-module-copy h3 { margin: 0 0 5px; font-size: 17px; }
    .suite-module-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
    .suite-module-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
    .suite-workflows { display: grid; gap: 1.5rem; }
    .workflow-view-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
    .workflow-view-heading h1 { margin: 0; min-width: 0; flex: 1 1 12rem; font-size: clamp(24px, 3.5vw, 34px); overflow-wrap: anywhere; }
    .workflow-progress { display: grid; grid-template-columns: auto minmax(110px, 1fr) auto; align-items: center; gap: 12px; min-width: 0; flex: 1; max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; }
    .workflow-progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e7edf2; }
    .workflow-progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0a2540, #76c2f1); transition: width .2s ease; }
    .workflow-view-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 16px; }
    .workflow-view-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-left: auto; max-width: 100%; }
    .workflow-view-heading .workflow-view-actions { flex: 0 1 auto; }
    .workflow-view-toolbar .workflow-view-actions { flex: 0 1 auto; }
    .workflow-view-heading .workflow-view-actions > .button,
    .workflow-view-heading .workflow-export > summary,
    .workflow-view-toolbar .workflow-view-actions > .button,
    .workflow-view-toolbar .workflow-export > summary { flex: none; min-height: 44px; }
    .workflow-view-toolbar.canvas-toolbar-bar { justify-content: flex-end; margin: 0 0 .5rem; }
    .workflow-export { position: relative; }
    .workflow-export > summary { display: inline-flex; align-items: center; gap: 7px; list-style: none; }
    .workflow-export > summary::-webkit-details-marker { display: none; }
    .workflow-export > summary::marker { content: none; }
    .workflow-export > summary::before,
    .workflow-export[open] > summary::before { content: none !important; display: none !important; border: 0 !important; }
    .workflow-export > summary::after {
      content: ""; flex: none; width: 0; height: 0; transform: none; transform-origin: 50% 50%;
      border-left: 5px solid transparent; border-right: 5px solid transparent;
      border-top: 6px solid currentColor; opacity: .7; transition: transform .15s ease;
    }
    .workflow-export[open] > summary::after,
    .workflow-more[open] > summary::after { transform: rotate(180deg); }
    .workflow-export-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 5; display: grid; min-width: 140px; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
    .workflow-export-menu a { white-space: nowrap; }
    /* The checklist label is wider than Export. On a narrow page the control
       sits at the left, so open the menu toward the content instead of off-screen. */
    @media (max-width: 760px) {
      .workflow-export:not(.workflow-more) > .workflow-export-menu { left: 0; right: auto; }
    }
    /* Same panel as Export. Fixed placement is applied when open so a card cannot clip it. */
    .workflow-more .workflow-export-menu {
      min-width: 12.5rem; max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto;
    }
    .workflow-more .workflow-export-menu a,
    .workflow-more .workflow-export-menu .button { white-space: normal; }
    .workflow-more .workflow-export-menu > .button.danger { margin-top: 6px; }
    .workflow-overview-shell { overflow: hidden; border: 1px solid #d8e1f0; border-radius: 17px; background: linear-gradient(180deg, #fff, #f9fbff); box-shadow: 0 16px 38px rgb(15 23 42 / 7%); }
    .workflow-overview-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
    .workflow-overview-toolbar strong { font-size: 13px; }
    .workflow-map-frame { position: relative; height: min(68vh, 720px); min-height: 440px; }
    .workflow-map-viewport { position: absolute; inset: 0; overflow: auto; background: radial-gradient(#d8dfef 1px, transparent 1px), #f8fbff; background-size: 22px 22px; cursor: grab; touch-action: none; overscroll-behavior: none; user-select: none; -webkit-user-select: none; }
    .workflow-map-viewport[data-panning="true"] { cursor: grabbing; }
    .workflow-map-stage { position: relative; min-width: 100%; min-height: 100%; transform-origin: top left; }
    .workflow-view-connections { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
    .workflow-view-connections path { fill: none; stroke: #7487c8; stroke-width: 2.5; }
    .workflow-view-connections path.is-branch { stroke: #c9a227; stroke-width: 2.75; }
    .workflow-view-edge-label {
      fill: #80500d; stroke: #fffdf5; stroke-width: 5px; paint-order: stroke;
      font-size: 11px; font-weight: 700; text-anchor: middle;
    }
    .workflow-view-step { position: absolute; z-index: 1; display: flex; width: 230px; min-height: 165px; flex-direction: column; overflow: hidden; border: 1px solid #d9e2ef; border-radius: 13px; background: white; color: inherit; text-decoration: none; box-shadow: 0 12px 28px rgb(15 23 42 / 9%); transition: transform .15s, box-shadow .15s, border-color .15s; touch-action: none; user-select: none; -webkit-user-select: none; }
    .workflow-view-step:hover { transform: translateY(-3px); border-color: #76c2f1; box-shadow: 0 18px 34px rgb(15 23 42 / 14%); }
    .workflow-view-step[data-viewed="true"] { border-color: #76bd96; }
    .workflow-view-step[data-remaining="true"] { outline: 3px solid rgb(245 158 11 / 28%); border-color: #d97706; }
    .workflow-view-step[data-kind="decision"] .workflow-view-thumb { background: linear-gradient(135deg, #f3e8d1, #e1caa0); }
    .workflow-view-thumb { position: relative; display: grid; height: 125px; flex: none; place-items: center; overflow: hidden; background: radial-gradient(circle at 20% 24%, rgb(255 255 255 / 30%), transparent 36px), linear-gradient(135deg, #10283d, #76c2f1 55%, #38bdf8); color: white; }
    /* Absolute fill: mobile Safari often fails to size <video height:100%> inside grid. */
    .workflow-view-thumb img, .workflow-view-thumb video {
      position: absolute; inset: 0; display: block; width: 100%; height: 100%;
      max-width: none; max-height: none; object-fit: cover; background: #10283d;
    }
    .workflow-view-thumb span { position: absolute; bottom: 9px; left: 10px; padding: 4px 8px; border-radius: 99px; background: rgb(15 23 42 / 60%); color: white; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
    .workflow-view-step[data-kind="decision"] .workflow-view-thumb span { color: #fff; }
    .workflow-view-step.is-no-media .workflow-view-thumb { height: 36px; }
    .workflow-view-step.is-no-media .workflow-view-thumb span { bottom: 6px; }
    .workflow-view-step-body { padding: 12px 14px 14px; }
    .workflow-view-step-body h2 { overflow: hidden; margin: 0; font-size: 14px; line-height: 1.35; text-overflow: ellipsis; }
    .workflow-view-step-body p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
    .workflow-view-step.is-no-media .workflow-view-step-body p {
      font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical;
      -webkit-line-clamp: 6; overflow: hidden;
    }
    .workflow-view-routes { display: grid; gap: 6px; margin-top: 10px; }
    .workflow-view-route { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; font-size: 10px; }
    .workflow-view-route span {
      display: block; padding: 4px 6px; border: 1px solid #f1d267; border-radius: 6px; background: #fff4cc;
      color: #8b6500; line-height: 1.35; overflow-wrap: anywhere; white-space: normal;
    }
    .workflow-view-route strong {
      display: block; color: #0b5f8a; line-height: 1.35; overflow-wrap: anywhere; white-space: normal; font-weight: 700;
    }
    .workflow-map-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 3px 12px rgb(20 32 59 / 15%); }
    .workflow-map-zoom button { width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: white; color: var(--ink); font-size: 20px; }
    .workflow-map-zoom button:last-child { border: 0; }
    .workflow-remaining { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; padding: 15px 17px; border: 1px solid #f6c453; border-radius: 12px; background: #fffbeb; }
    .workflow-remaining h2 { margin: 3px 0 0; font-size: 17px; }
    /* Step media fills the viewport row under the heading. Side-column notes scroll inside the card. */
    .workflow-reader {
      display: grid; grid-template-columns: minmax(0, 7fr) minmax(290px, 3fr); align-items: stretch; gap: 16px;
      min-width: 0; min-height: 0; height: 100%; overflow: hidden;
    }
    .workflow-reader, .reader-layout { transition: opacity .16s ease; }
    .workflow-reader.is-swapping, .reader-layout.is-swapping { opacity: .42; }
    .workflow-asset-card, .workflow-context-card { min-width: 0; min-height: 0; height: 100%; border: 1px solid #dbe4f0; border-radius: 16px; background: linear-gradient(180deg, #fff, #fcfdff); box-shadow: 0 12px 32px rgb(15 23 42 / 6%); }
    .workflow-asset-card { display: flex; flex-direction: column; padding: 14px; }
    .workflow-asset-stage { position: relative; display: grid; min-height: 0; flex: 1 1 auto; place-items: center; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 12px; background: #f6f8fb; }
    .workflow-asset-stage.has-pdf {
      display: flex; flex-direction: column; align-items: stretch; justify-content: stretch;
      min-height: 0; max-height: none; padding: 0; overflow: hidden; background: #fff;
    }
    .workflow-reader-media { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; }
    .workflow-pdf-viewer { display: flex; flex: 1; flex-direction: column; width: 100%; min-height: 0; }
    .workflow-pdf-viewer .workflow-reader-media.is-pdf,
    .workflow-reader-media.is-pdf {
      display: block; flex: 1 1 auto; width: 100%; height: 100%; min-height: 0; max-height: none;
      border: 0; background: #fff;
    }
    .workflow-pdf-tools {
      display: flex; flex: none; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px;
      padding: 8px 10px; border-top: 1px solid #e2e8f0; background: #f8fafc;
    }
    .workflow-pdf-tools .button { padding: 8px 12px; font-size: 12px; }
    .workflow-media-empty { display: grid; width: 100%; min-height: 240px; place-items: center; padding: 30px; color: #8391a0; text-align: center; }
    .workflow-media-empty span { display: grid; width: 62px; height: 62px; place-items: center; margin-bottom: 12px; border-radius: 20px; background: #eef9ff; color: #0b5f8a; font-size: 24px; }
    .workflow-frame-caption { margin: 12px 2px 2px; color: #53657a; font-size: 12px; line-height: 1.55; }
    .workflow-frame-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 12px; }
    .workflow-frame-nav .button:last-child { justify-self: end; }
    .workflow-frame-count { color: var(--muted); font-size: 11px; font-weight: 700; }
    .workflow-decision-choices { display: grid; width: min(520px, 100%); gap: 12px; padding: 28px; }
    .workflow-choice { padding: 15px 17px; border: 1px solid #dbe4f0; border-radius: 11px; background: white; color: #174a70; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: 0 5px 14px rgb(15 23 42 / 5%); }
    .workflow-choice:hover { border-color: #76c2f1; background: #f1f9ff; }
    .workflow-context-card { display: flex; flex-direction: column; overflow: auto; padding: 24px; }
    .workflow-context-card h2 { margin: 5px 0 10px; font-size: clamp(22px, 3vw, 29px); line-height: 1.2; letter-spacing: -.035em; }
    .workflow-context-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
    .workflow-context-copy { color: #53657a; font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
    .workflow-reader-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
    .workflow-reader-controls .button:first-child { justify-self: start; }
    .workflow-reader-controls .button:last-child { justify-self: end; }
    .workflow-reader-controls .button[aria-disabled="true"] { opacity: .42; pointer-events: none; }
    .workflow-reader-step-count { color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
    /* No-media step: one reading column instead of an empty grey media box. */
    .workflow-reader.is-text-only { grid-template-columns: minmax(0, 1fr); }
    .workflow-reader.is-text-only .workflow-context-card {
      width: 100%; max-width: 64rem; margin-inline: auto; height: 100%; overflow: auto;
    }
    .workflow-reader.is-text-only .workflow-context-copy {
      max-width: 72ch; font-size: 16px; line-height: 1.65;
      white-space: pre-wrap; overflow-wrap: anywhere;
    }
    .workflow-reader.is-text-only .workflow-context-card h2 {
      font-size: clamp(24px, 2.6vw, 34px);
    }
    .workflow-reader.is-text-only .workflow-decision-choices {
      width: 100%; max-width: none; margin: 0 0 4px; padding: 0;
    }
    .workflow-reader.is-text-only .workflow-reader-controls {
      margin-top: auto; position: sticky; bottom: 0; z-index: 1;
      /* Match the context card fill so sticky does not flash a flat white strip. */
      background: linear-gradient(180deg, #fff, #fcfdff);
      padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
    }
    @media (min-width: 1100px) {
      .workflow-reader.is-text-only .workflow-context-copy { font-size: 17px; }
    }
    .workflow-comments { margin-top: 18px; padding-top: 15px; padding-bottom: .25rem; border-top: 1px solid var(--line); }
    .workflow-comments h3 { margin: 0 0 10px; font-size: 14px; }
    .workflow-comments .route-form { padding: 13px; }
    .workflow-discussion-tools { display: grid; gap: 8px; margin: 0 0 12px; }
    .workflow-discussion-tools input[type="search"] {
      width: 100%; min-height: 2.25rem; padding: .55rem .7rem; border: 1px solid var(--line);
      border-radius: .5rem; background: #fff; font-size: .8125rem;
    }
    .workflow-discussion-threads { display: grid; gap: 8px; }
    .workflow-overview-discussion { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcff; }
    .workflow-overview-discussion > summary { padding: 14px 16px; cursor: pointer; font-size: 13px; font-weight: 750; }
    .version-list > summary, .workflow-overview-discussion > summary { overflow-wrap: anywhere; }
    .workflow-overview-discussion[open] > summary { border-bottom: 1px solid var(--line); }
    .workflow-overview-discussion > .workflow-discussion-body { padding: 12px 16px 16px; }
    .workflow-overview-discussion .route-section { padding: 0; }
    .workflow-overview-discussion .version-list[hidden] { display: none !important; }
    .workflow-discussion-matches { display: grid; gap: 8px; margin: 0 0 14px; }
    .workflow-discussion-match {
      padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff;
      font-size: 13px; line-height: 1.45;
    }
    .workflow-discussion-match strong { display: block; margin-bottom: 4px; color: #0b5f8a; font-size: 12px; }
    .workflow-discussion-match p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
    .route-form { display: grid; gap: 12px; max-width: 720px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
    .route-form .button { justify-self: start; }
    .route-note { color: var(--muted); font-size: 13px; line-height: 1.5; }
    .invite-accept-bullets {
      margin: 0;
      padding: 0 0 0 1.25rem;
      color: var(--ink);
      font-size: 1rem;
      line-height: 1.55;
      display: grid;
      gap: .55rem;
      max-width: 40rem;
    }
    .invite-accept-bullets li { margin: 0; }
    .invite-confirm-label {
      display: grid;
      grid-template-columns: 1rem minmax(0, 1fr);
      gap: .65rem;
      align-items: start;
      color: var(--ink);
      font-size: 1rem;
      line-height: 1.45;
      max-width: 40rem;
      cursor: pointer;
    }
    .invite-confirm-label input[type="checkbox"] { margin-top: .2rem; }
    .route-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
    .search-page-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 1.5rem; align-items: stretch; }
    .search-page-form input[type="search"] {
      flex: 1 1 240px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line);
      border-radius: 8px; background: #fff; color: var(--ink); font: inherit;
    }
    .search-type-dropdown {
      position: relative; flex: 0 1 220px; min-width: 168px;
    }
    /* Mobile: full-width query, then Type left and Search pinned to the right edge. */
    @media (max-width: 760px) {
      .search-page-form input[type="search"] { flex: 1 1 100%; }
      .search-type-dropdown { flex: 0 1 auto; min-width: min(168px, 100%); max-width: calc(100% - 6.5rem); }
      .search-page-form > .button { margin-left: auto; flex: 0 0 auto; }
    }
    .search-type-trigger {
      display: flex; align-items: center; gap: 10px; width: 100%; min-height: 2.5rem;
      padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
      background: #fff; color: var(--ink); font: inherit; font-size: .8125rem;
      line-height: 1.45; text-align: left; cursor: pointer;
    }
    .search-type-trigger:hover { border-color: #9eb6cc; }
    .search-type-dropdown.is-open .search-type-trigger,
    .search-type-trigger:focus-visible {
      border-color: #76c2f1; box-shadow: 0 0 0 3px rgb(118 194 241 / 28%); outline: none;
    }
    .search-type-trigger-label {
      flex: none; color: var(--muted); font-size: .7rem; font-weight: 700;
      letter-spacing: .04em; text-transform: uppercase;
    }
    .search-type-trigger-value {
      flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      font-weight: 600;
    }
    .search-type-chevron {
      flex: none; width: 0; height: 0;
      border-left: 5px solid transparent; border-right: 5px solid transparent;
      border-top: 6px solid #4b5563; transition: transform .15s ease;
    }
    .search-type-dropdown.is-open .search-type-chevron { transform: rotate(180deg); }
    .search-type-menu {
      position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0;
      min-width: 220px; margin: 0; padding: 6px 0;
      border: 1px solid #76c2f1; border-radius: .5rem; background: #fff;
      box-shadow: 0 10px 24px rgb(15 23 42 / 12%);
    }
    .search-type-menu[hidden] { display: none !important; }
    .search-type-option {
      display: flex; align-items: center; gap: 10px; width: 100%;
      padding: 9px 12px; cursor: pointer; font-size: 13px; font-weight: 500; line-height: 1.35;
    }
    .search-type-option:hover { background: #f3f4f6; }
    .search-type-option.is-select-all {
      border-bottom: 1px solid #e5e7eb; font-weight: 650; color: #0b5f8a;
    }
    .search-type-option input { margin: 0; }
    .search-level-section { margin: 0 0 2rem; }
    .search-level-section > h2 { margin: 0 0 .35rem; font-size: 1.15rem; letter-spacing: -.015em; }
    .search-level-section > .route-note { margin: 0 0 .85rem; }
    .search-level-list { display: grid; gap: .75rem; }
    .search-result-card { display: block; padding: 1rem 1.15rem; border: 1px solid #dbe4f0; border-radius: .75rem; background: linear-gradient(180deg, #fff, #f8fbff); color: inherit; text-decoration: none; overflow-wrap: anywhere; }
    .search-result-card:hover { border-color: #bde8ff; box-shadow: 0 4px 12px rgb(10 37 64 / 8%); }
    .search-result-card h3 { margin: 0 0 6px; font-size: 15px; }
    .search-result-card p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
    .search-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: .85rem; }
    .search-pagination .route-note { margin: 0; }
    .search-browse-suites { margin-top: .75rem; }
    .reader-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr); gap: 16px; }
    .reader-panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
    .reader-media { display: block; max-width: 100%; max-height: 58vh; margin: 14px auto; object-fit: contain; }
    .reader-progress { margin: 12px 0; color: var(--muted); font-size: 12px; }
    .route-comment { padding: 12px 0; border-top: 1px solid var(--line); font-size: 12px; }
    .route-comment p { margin: 6px 0; line-height: 1.5; white-space: pre-wrap; }
    .route-comment .actions { margin-top: 8px; }
    #token-once:not(:empty) { display: grid; gap: 10px; margin-top: 10px; }
    .route-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
    .route-map .step { cursor: pointer; }
    .route-map .step:hover { border-color: #76c2f1; }
    .canvas-draft-note {
      margin: 0 0 .65rem; padding: 8px 12px; border: 1px solid #d7dde5; border-radius: 10px;
      background: #f7f9fb; color: #445466;
    }
    .canvas-back { margin: 0; }
    .route-heading.canvas-heading { align-items: center; margin: 0 0 .65rem; gap: 12px; }
    .route-heading.canvas-heading h1 { margin: 0; font-size: clamp(20px, 2.8vw, 28px); }
    .route-heading.canvas-heading .canvas-heading-actions {
      display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; flex: none; margin-left: auto;
    }
    .route-heading.canvas-heading .canvas-heading-actions > .button,
    .route-heading.canvas-heading .canvas-heading-actions .workflow-export > summary,
    .route-heading.canvas-heading .canvas-back > .button {
      display: inline-flex; align-items: center; justify-content: center;
      min-height: 2.75rem; box-sizing: border-box; padding: 0 10px; line-height: 1.3;
    }
    .route-heading.canvas-heading .canvas-back { display: contents; }
    .canvas-save-all { gap: .45rem; }
    .canvas-save-all-icon {
      display: inline-grid; place-items: center; width: 1rem; height: 1rem; flex: none;
    }
    .canvas-save-all-icon svg { display: block; width: 1rem; height: 1rem; }
    .canvas-save-all.is-saving .canvas-save-all-icon svg {
      animation: canvas-save-spin .75s linear infinite;
    }
    .canvas-save-all.is-saved {
      border-color: #9ad4b0; background: #eefaf2; color: #1b6b3a;
    }
    @keyframes canvas-save-spin { to { transform: rotate(360deg); } }
    .route-page.canvas-page {
      display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden;
    }
    .app-main:has(.canvas-page) {
      display: flex; flex-direction: column; overflow: hidden; padding: 1.15rem 1rem .75rem;
    }
    @media (max-width: 900px) {.app-main:has(.canvas-page) {
        padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom, 0px));
      }}
    .canvas-controls { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.5fr); gap: 12px; margin: 14px 0; }
    .canvas-controls .route-form { max-width: none; padding: 14px; }
    .canvas-empty { display: grid; place-items: center; min-height: 100%; padding: 45px; color: var(--muted); text-align: center; }
    .version-list { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
    .brand { display: flex; align-items: center; gap: .5rem; color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.03em; text-decoration: none; }
    .brand-mark { display: block; width: 28px; height: 28px; object-fit: contain; }
    .site-header-link { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
    .site-header-link:hover { color: var(--ink); text-decoration: underline; }
    .site-header-link[aria-current="page"] { color: var(--ink); }
    #signin-link.button { flex: none; white-space: nowrap; }
    #app-view { display: grid; grid-template-columns: 252px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 0; align-items: stretch; width: 100%; max-width: none; height: calc(100vh - 74px); height: calc(100dvh - 74px); min-height: 0; overflow: hidden; margin: 0; padding: 0; }
    #sidebar-root { min-width: 0; min-height: 0; }
    .app-main {
      --page-pad-x: 2.5rem;
      --page-pad-b: calc(2.5rem + env(safe-area-inset-bottom, 0px));
      display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%;
      overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
      padding: 2.5rem var(--page-pad-x) var(--page-pad-b); -webkit-overflow-scrolling: touch;
    }
    .app-main > .route-page:not(.canvas-page) { flex: 1 0 auto; }
    .app-main:has(.workflow-view-heading) { padding-top: 1rem; }
    /* Diagram step view stays full height. A small inset keeps the columns just clear of the viewport edge. */
    .app-main:has(.workflow-reader) {
      display: flex; flex-direction: column; overflow: hidden;
      padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
    .app-main:has(.workflow-reader) > .route-page {
      display: grid; flex: 1 1 auto; grid-template-rows: auto minmax(0, 1fr);
      min-height: 0; padding-bottom: 0;
    }
    .app-main:has(.workflow-reader) > .route-page:has(> .workflow-view-toolbar) {
      grid-template-rows: auto auto minmax(0, 1fr);
    }
    .route-page:has(.workflow-reader) > .workflow-view-heading,
    .route-page:has(.workflow-reader) > .workflow-view-toolbar { flex: none; }
    .route-page:has(.workflow-reader) > .workflow-reader { margin-bottom: 0; min-height: 0; }
    #primary-nav { position: sticky; top: 0; display: flex; width: 100%; min-width: 0; height: 100%; flex-direction: column; overflow: auto; padding: 1rem .8rem; border-right: 1px solid #e5e7eb; background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 249, 255, .92)); }
    #primary-nav .sidebar-label { position: relative; margin: .75rem .375rem .35rem; color: #9ca3af; font-size: .62rem; font-weight: 700; letter-spacing: .08em; line-height: 1.6; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
    #primary-nav .sidebar-nav { display: flex; align-items: center; gap: .5rem; height: calc(1.6em + 1rem); padding: .5rem .625rem; border-radius: .5rem; color: #4b5563; font-size: 15px; line-height: 1.6; font-weight: 500; text-decoration: none; transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, opacity .22s ease, transform .22s ease; }
    #primary-nav .sidebar-nav-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    #primary-nav .sidebar-nav:hover { color: #111827; background: #f6f7fb; }
    #primary-nav .sidebar-nav--active { color: #111827; background: #eef9ff; font-weight: 650; }
    #primary-nav .sidebar-icon { display: flex; width: 1rem; height: 1rem; flex: 0 0 1rem; align-items: center; justify-content: center; opacity: .72; }
    #primary-nav .sidebar-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    #primary-nav .sidebar-nav--active .sidebar-icon { opacity: 1; }
    #primary-nav .sidebar-toggle { display: flex; width: 1.75rem; height: 1.75rem; min-height: 0; align-items: center; justify-content: center; margin: auto 0 0 auto; padding: 0; border: 1px solid #e5e7eb; border-radius: .4rem; background: white; color: #425466; font-size: .75rem; cursor: pointer; }
    #primary-nav .sidebar-toggle:hover { background: #f5f7fb; color: #344054; }
    [data-sb="0"] #app-view { grid-template-columns: 52px minmax(0, 1fr); }
    [data-sb="0"] #primary-nav { padding: 1rem .45rem; }
    /* Keep each heading's line box, and show a dash in it, so icons do not shift when the labels return. */
    [data-sb="0"] #primary-nav .sidebar-label { color: transparent; text-align: center; }
    [data-sb="0"] #primary-nav .sidebar-label::before { content: "-"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 1rem; font-weight: 500; letter-spacing: 0; line-height: 1; text-transform: none; }
    [data-sb="0"] #primary-nav .sidebar-nav-text { display: none; }
    [data-sb="0"] #primary-nav .sidebar-nav { justify-content: center; padding: .5rem .55rem; gap: 0; }
    [data-sb="0"] #primary-nav .sidebar-toggle { margin-left: auto; margin-right: auto; transform: rotate(180deg); }
    /* Desktop: collapsed rail keeps the icons, and hover or keyboard focus reveals the labels. */
    @media (min-width: 761px) {
      [data-sb="0"] #sidebar-root { position: relative; z-index: 40; }
      [data-sb="0"] #primary-nav {
        position: fixed; z-index: 40; top: 74px; right: auto; bottom: 0; left: 0; width: 52px; height: auto;
        overflow-x: hidden; overflow-y: auto;
        transition: width .18s ease, padding .18s ease, box-shadow .18s ease;
      }
      [data-sb="0"] #sidebar-root:hover #primary-nav,
      [data-sb="0"] #primary-nav:hover,
      [data-sb="0"] #primary-nav:has(:focus-visible) {
        width: 252px; padding: 1rem .8rem;
        box-shadow: 12px 0 28px rgb(15 23 42 / 12%);
      }
      [data-sb="0"] #sidebar-root:hover #primary-nav .sidebar-nav-text,
      [data-sb="0"] #primary-nav:hover .sidebar-nav-text,
      [data-sb="0"] #primary-nav:has(:focus-visible) .sidebar-nav-text { display: block; }
      [data-sb="0"] #sidebar-root:hover #primary-nav .sidebar-label,
      [data-sb="0"] #primary-nav:hover .sidebar-label,
      [data-sb="0"] #primary-nav:has(:focus-visible) .sidebar-label { color: #9ca3af; text-align: start; }
      [data-sb="0"] #sidebar-root:hover #primary-nav .sidebar-label::before,
      [data-sb="0"] #primary-nav:hover .sidebar-label::before,
      [data-sb="0"] #primary-nav:has(:focus-visible) .sidebar-label::before { content: none; }
      [data-sb="0"] #sidebar-root:hover #primary-nav .sidebar-nav,
      [data-sb="0"] #primary-nav:hover .sidebar-nav,
      [data-sb="0"] #primary-nav:has(:focus-visible) .sidebar-nav { justify-content: flex-start; gap: .5rem; padding: .5rem .625rem; }
      [data-sb="0"] #sidebar-root:hover #primary-nav .sidebar-toggle,
      [data-sb="0"] #primary-nav:hover .sidebar-toggle,
      [data-sb="0"] #primary-nav:has(:focus-visible) .sidebar-toggle { margin: auto 0 0 auto; }
      [data-sb="0"] #sidebar-root.sb-suppress:hover #primary-nav,
      [data-sb="0"] #sidebar-root.sb-suppress #primary-nav:hover,
      [data-sb="0"] #sidebar-root.sb-suppress #primary-nav:has(:focus-visible) {
        width: 52px; padding: 1rem .45rem; box-shadow: none;
      }
      [data-sb="0"] #sidebar-root.sb-suppress:hover #primary-nav .sidebar-nav-text,
      [data-sb="0"] #sidebar-root.sb-suppress #primary-nav:hover .sidebar-nav-text,
      [data-sb="0"] #sidebar-root.sb-suppress #primary-nav:has(:focus-visible) .sidebar-nav-text { display: none; }
      [data-sb="0"] #sidebar-root.sb-suppress:hover #primary-nav .sidebar-label,
      [data-sb="0"] #sidebar-root.sb-suppress #primary-nav:hover .sidebar-label,
      [data-sb="0"] #sidebar-root.sb-suppress #primary-nav:has(:focus-visible) .sidebar-label { color: transparent; text-align: center; }
      [data-sb="0"] #sidebar-root.sb-suppress:hover #primary-nav .sidebar-label::before,
      [data-sb="0"] #sidebar-root.sb-suppress #primary-nav:hover .sidebar-label::before,
      [data-sb="0"] #sidebar-root.sb-suppress #primary-nav:has(:focus-visible) .sidebar-label::before { content: "-"; }
      [data-sb="0"] #sidebar-root.sb-suppress:hover #primary-nav .sidebar-nav,
      [data-sb="0"] #sidebar-root.sb-suppress #primary-nav:hover .sidebar-nav,
      [data-sb="0"] #sidebar-root.sb-suppress #primary-nav:has(:focus-visible) .sidebar-nav { justify-content: center; gap: 0; padding: .5rem .55rem; }
      [data-sb="0"] #sidebar-root.sb-suppress:hover #primary-nav .sidebar-toggle,
      [data-sb="0"] #sidebar-root.sb-suppress #primary-nav:hover .sidebar-toggle,
      [data-sb="0"] #sidebar-root.sb-suppress #primary-nav:has(:focus-visible) .sidebar-toggle { margin-left: auto; margin-right: auto; }
    }
    @media (prefers-reduced-motion: reduce) {[data-sb="0"] #primary-nav { transition: none; }}
    .account { position: relative; }
    .user-menu { position: relative; }
    .user-menu > summary { list-style: none; }
    .user-menu > summary::-webkit-details-marker { display: none; }
    .user-menu-trigger { display: flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: #f8faff; color: #0b5f8a; font-weight: 800; cursor: pointer; }
    .user-menu-panel { position: absolute; top: calc(100% + .5rem); right: 0; z-index: 20; min-width: 180px; padding: .6rem; border: 1px solid var(--line); border-radius: .625rem; background: white; box-shadow: 0 8px 24px rgb(20 32 59 / 12%); }
    .user-menu-name { margin: 0; color: var(--ink); font-size: .875rem; font-weight: 650; overflow-wrap: anywhere; }
    .user-menu-email { margin: 0 0 .5rem; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
    /* 16px keeps iOS from zooming the field on focus. */
    #display-name, #signup-display-name { font-size: 16px; }
    .user-menu-link, .user-menu-signout { display: block; width: 100%; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: .5rem; background: white; color: var(--ink); font: inherit; font-weight: 700; text-align: left; text-decoration: none; cursor: pointer; }
    .user-menu-link { margin-bottom: .35rem; }
    .user-menu-signout { background: #f3f4f6; color: #475467; }
    .user-menu-link:hover, .user-menu-signout:hover { border-color: #bde8ff; background: #f8faff; color: var(--blue); }
    .user-menu-link--active { border-color: #bde8ff; background: #eef9ff; color: #111827; }
    .user-menu-signout { margin-bottom: 0; }
    .sign-out-dialog { width: min(92vw, 360px); padding: 22px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: 0 24px 70px rgb(20 32 59 / 24%); }
    .sign-out-dialog::backdrop { background: rgb(10 37 64 / 36%); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
    .sign-out-dialog h2 { margin: 0 0 6px; overflow-wrap: anywhere; }
    .sign-out-dialog p { margin: 0 0 18px; color: var(--muted); overflow-wrap: anywhere; }
    #confirm-action-dialog label { gap: 6px; margin: 0 0 18px; }
    #confirm-action-dialog input,
    #confirm-action-dialog textarea { min-height: 44px; }
    #confirm-action-dialog textarea { min-height: 5.5rem; }
    .sign-out-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
    .sign-out-dialog-actions > form { display: flex; margin: 0; }
    @media (max-width: 960px) {.workflow-reader {
        display: flex; flex-direction: column; grid-template-columns: none;
        height: 100%; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch;
      }
      .reader-layout { grid-template-columns: 1fr; }
      .workflow-asset-card, .workflow-context-card { height: auto; max-height: none; }
      .workflow-asset-card { flex: none; min-height: 100%; }
      .workflow-context-card { flex: none; overflow: visible; }
      .workflow-asset-stage { flex: 1 1 auto; min-height: 0; max-height: none; }
      .workflow-reader-media { height: 100%; max-height: none; }
      .workflow-asset-stage.has-pdf { min-height: 0; max-height: none; }
      .workflow-pdf-viewer .workflow-reader-media.is-pdf,
      .workflow-reader-media.is-pdf { height: 100%; min-height: 0; max-height: none; }
      .app-main:has(.workflow-reader.is-text-only) { overflow: auto; -webkit-overflow-scrolling: touch; }
      .app-main:has(.workflow-reader.is-text-only) > .route-page {
        display: flex; flex-direction: column; grid-template-rows: none; height: auto; min-height: 0;
      }
      .route-page:has(.workflow-reader.is-text-only) > .workflow-reader {
        flex: none; height: auto; min-height: 0;
      }
      .workflow-reader.is-text-only {
        height: auto; min-height: 0; overflow: visible;
      }
      .workflow-reader.is-text-only .workflow-context-card {
        height: auto; min-height: 0; overflow: visible; padding: 18px;
      }
      .workflow-reader.is-text-only .workflow-context-copy { font-size: 15px; line-height: 1.65; }
      .workflow-reader.is-text-only .workflow-context-card h2 {
        font-size: clamp(22px, 6vw, 28px);
      }
      .workflow-reader.is-text-only .workflow-reader-controls {
        position: sticky; bottom: 0;
        /* Keep the usual gap only; safe-area is already on .app-main. */
        padding-bottom: .5rem;
      }}
    @media (max-width: 760px) {main { padding-top: 2rem; }
      /* Keep a narrow grid slot; expanded labels overlay so the toggle can open the rail. */
      #app-view { grid-template-columns: 52px minmax(0, 1fr); height: calc(100vh - 74px); height: calc(100dvh - 74px); }
      html:not([data-sb="0"]) #sidebar-root { position: relative; z-index: 40; }
      html:not([data-sb="0"]) #primary-nav {
        position: fixed; z-index: 40; top: 74px; right: auto; bottom: 0; left: 0;
        width: min(252px, calc(100vw - 3rem)); height: auto;
        overflow-x: hidden; overflow-y: auto; padding: 1rem .8rem;
        box-shadow: 12px 0 28px rgb(15 23 42 / 18%);
      }
      html:not([data-sb="0"]) #sidebar-root::before {
        content: ""; position: fixed; z-index: 35; top: 74px; right: 0; bottom: 0; left: 0;
        background: rgb(10 37 64 / 28%);
      }
      .app-main { --page-pad-x: 1rem; --page-pad-b: calc(2.5rem + env(safe-area-inset-bottom, 0px)); padding: 2rem var(--page-pad-x) var(--page-pad-b); }
      .app-main:has(.workflow-view-heading) { padding-top: .75rem; }
      .app-main:has(.workflow-reader) {
        display: flex; flex-direction: column; overflow: hidden;
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
      }
      .route-heading { align-items: stretch; flex-direction: column; }
      .workflow-view-heading { align-items: flex-start; }
      .workflow-view-heading h1 { font-size: 27px; }
      .workflow-view-heading > h1,
      .workflow-overview-toolbar > strong {
        flex: 1 1 100%;
        min-width: 0;
      }
      .workflow-view-heading > .workflow-view-actions,
      .workflow-overview-toolbar > .actions {
        flex: 1 1 100%;
        margin-left: 0;
        justify-content: flex-start;
      }
      .workflow-progress { grid-template-columns: 1fr auto; }
      .workflow-progress > .eyebrow { grid-column: 1 / -1; }
      .workflow-map-frame { height: 58vh; min-height: 380px; }
      .suite-overview-heading { align-items: flex-start; flex-direction: column; }
      .suite-module-card { grid-template-columns: 46px minmax(0, 1fr); }
      .suite-module-number { width: 44px; height: 44px; }
      .suite-module-card > .button { grid-column: 2; justify-self: start; }
      .canvas-controls { grid-template-columns: 1fr; }}
    @media (max-width: 480px) {.topbar { min-height: 74px; padding-right: 12px; padding-left: 12px; gap: 8px; }
      .header-actions { flex-wrap: nowrap; gap: 8px; }
      .brand { gap: 8px; }
      .account { gap: 8px; }
      .account-copy { max-width: 145px; overflow-wrap: anywhere; }
      .account-copy strong { font-size: 12px; }
      .workflow-view-toolbar { align-items: center; flex-direction: row; flex-wrap: wrap; }
      .workflow-view-toolbar .workflow-progress { flex: 1 1 180px; max-width: none; }
      .workflow-asset-card { min-height: 100%; padding: 10px; }
      .workflow-context-card { padding: 18px; overflow: visible; }
      .workflow-remaining { align-items: flex-start; flex-direction: column; }
      .workflow-reader-controls .button { padding: 8px; font-size: 11px; }
      .workflow-map-frame { height: 55vh; min-height: 330px; }
      .app-main:has(.workflow-reader) { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
      .suite-overview-heading { margin: 0 0 2rem; padding: 22px; }
      .suite-module-card { gap: 12px; padding: 1rem; }
      .login-card { padding: 23px; }
      .brand { font-size: 19px; }
      .site-header-link#signup-link { display: none; }}
    @media (max-width: 360px) {.topbar { padding-right: 8px; padding-left: 8px; gap: 6px; }
      .header-actions { gap: 6px; }
      .brand { gap: 6px; }
      #signin-link.button { padding-inline: 8px; }}
    /* iOS focuses zoom the page when a control's font is under 16px. Desktop rules above stay put. */
    @media (max-width: 760px), ((hover: none) and (pointer: coarse)) {
      input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]),
      textarea,
      select,
      .search-page-form input[type="search"],
      .workflow-discussion-tools input[type="search"],
      .list-filter input[type="search"],
      .canvas-combobox-control input,
      .canvas-add-form input,
      .canvas-add-form select {
        font-size: 16px;
      }
    }
