/* Original blue/lilac design, extracted without layout changes. */
/* 01 / Tokens. Cool pearl, soft blue, a trace of muted green, and faint lavender. */
    :root {
      color-scheme: light;
      --page: #edf3fa;
      --ink: #2d3440;
      --muted: #5f6977;
      --soft: #697481;
      --accent: #607da8;
      --line: rgba(70, 92, 128, .15);
      --glass: rgba(255, 255, 255, .43);
      --glass-highlight: rgba(255, 255, 255, .25);
      --glass-edge: rgba(255, 255, 255, .85);
      --glass-solid: #edf3f9;
      --dialog-surface: rgba(245, 248, 253, .94);
      --input: rgba(255, 255, 255, .53);
      --input-edge: rgba(74, 94, 122, .22);
      --control: #405678;
      --control-hover: #344a69;
      --control-ink: #f7f9fc;
      --wash: rgba(82, 112, 158, .07);
      --mist: #e4ece9;
      --lavender: #d8dcf4;
      --ice: #cee2f7;
      --light: rgba(255, 255, 255, .58);
      --grid: rgba(74, 103, 146, .17);
      --shadow: 0 24px 64px -36px rgba(45, 69, 101, .22), 0 3px 10px -6px rgba(45, 69, 101, .06);
      --focus: #6789b5;
      --success: #647f79;
      --error: #994251;
      --selection: #d4e5f7;
      --sketch-surface: #edf3f9;
      --sketch-lavender: #e2e5f7;
      --sketch-ice: #dfeafa;
      --thumb: rgba(255, 255, 255, .82);
      --thumb-shadow: 0 6px 14px -8px rgba(45, 69, 101, .45), inset 0 1px 0 #fff;
      --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
      --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
      --ease: cubic-bezier(.22, 1, .36, 1);
    }
    [data-bs-theme="dark"] {
      color-scheme: dark;
      --page: #171d28;
      --ink: #edf2f7;
      --muted: #b3bdc9;
      --soft: #a7b2c0;
      --accent: #aec7ea;
      --line: rgba(190, 208, 230, .14);
      --glass: rgba(27, 34, 45, .56);
      --glass-highlight: rgba(210, 225, 242, .04);
      --glass-edge: rgba(207, 222, 239, .16);
      --glass-solid: #252d39;
      --dialog-surface: rgba(27, 34, 45, .96);
      --input: rgba(14, 20, 29, .46);
      --input-edge: rgba(181, 201, 224, .27);
      --control: #dbe5f0;
      --control-hover: #e7eef6;
      --control-ink: #263343;
      --wash: rgba(177, 200, 225, .07);
      --mist: #273331;
      --lavender: #343a59;
      --ice: #29415c;
      --light: rgba(69, 84, 103, .18);
      --grid: rgba(190, 210, 232, .18);
      --shadow: 0 28px 70px -36px rgba(8, 5, 16, .60), 0 3px 12px -6px rgba(0, 0, 0, .15);
      --focus: #b3cff0;
      --success: #aac8c0;
      --error: #f2b8c3;
      --selection: #425d7c;
      --sketch-surface: #29323f;
      --sketch-lavender: #333b57;
      --sketch-ice: #2a405b;
      --thumb: rgba(64, 78, 99, .72);
      --thumb-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(207, 222, 239, .18);
    }

    /* 02 / Foundation. No framework, external fonts, or runtime dependencies. */
    *, *::before, *::after { box-sizing: border-box; }
    [hidden] { display: none !important; }
    html { background: var(--page); min-width: 280px; scroll-behavior: smooth; scroll-padding-block: 32px; scrollbar-gutter: stable; }
    body { position: relative; margin: 0; min-height: 100vh; min-height: 100svh; background: var(--page); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; isolation: isolate; }
    h1, h2, h3, p { margin: 0; }
    h1, h2, h3 { text-wrap: balance; }
    a { color: inherit; text-decoration: none; }
    button, input { font: inherit; }
    button { color: inherit; cursor: pointer; }
    button, a, input { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
    button:disabled { cursor: not-allowed; opacity: .58; }
    :focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
    input:focus-visible { outline-offset: 2px; }
    ::selection { background: var(--selection); color: var(--ink); }
    .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
    .icon-sm { width: 16px; height: 16px; }
    .svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; border: 0; }
    .skip-link { position: fixed; top: 12px; left: 18px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--control); color: var(--control-ink); transform: translateY(-150%); }
    .skip-link:focus { transform: translateY(0); }

    /* 03 / Atmosphere. Static by default; a small, optional interaction shifts it.
       Broad CSS gradients stay sharp at any resolution. No image download. */
    .ambient { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--page); }
    .ambient-field { position: absolute; inset: -15%; background:
      radial-gradient(ellipse 47% 52% at 13% 82%, var(--mist) 0%, transparent 78%),
      radial-gradient(ellipse 49% 56% at 83% 15%, var(--lavender) 0%, transparent 80%),
      radial-gradient(ellipse 48% 44% at 65% 75%, var(--ice) 0%, transparent 82%),
      radial-gradient(ellipse 45% 39% at 34% 25%, var(--light) 0%, transparent 80%);
      transform: translate3d(0, 0, 0) scale(1); transition: transform 1.8s var(--ease);
    }
    .ambient[data-light="1"] .ambient-field { transform: translate3d(5%, -7%, 0) rotate(-14deg) scale(1.11); }
    .ambient[data-light="2"] .ambient-field { transform: translate3d(-4%, 3%, 0) rotate(18deg) scale(1.16); }
    .ambient-grid { position: absolute; inset: 0; background-image: radial-gradient(var(--grid) .7px, transparent .9px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(ellipse 49% 60% at 89% 49%, #000, transparent 84%); mask-image: radial-gradient(ellipse 49% 60% at 89% 49%, #000, transparent 84%); opacity: .40; }
    .ambient-grain { position: absolute; inset: 0; opacity: .026; background-image: url("grain.svg"); }
    .glass { background: linear-gradient(125deg, var(--glass-highlight), transparent 57%), var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--shadow), inset 0 1px 0 var(--glass-edge); -webkit-backdrop-filter: blur(24px) saturate(125%); backdrop-filter: blur(24px) saturate(125%); }

    /* 04 / Header. A light frame, rather than another large panel. */
    .site-shell { width: min(1184px, calc(100% - 88px)); margin-inline: auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: 30px; }
    .site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; padding: 10px 15px 10px 17px; border-radius: 19px; box-shadow: 0 5px 24px -20px rgba(71, 57, 87, .15), inset 0 1px 0 var(--glass-edge); }
    .brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; border-radius: 10px; }
    .brand-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; color: var(--control-ink); background: var(--control); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 3px 8px rgba(43, 31, 58, .08); }
    .brand-mark .icon { width: 21px; height: 21px; stroke-width: 1.5; }
    .brand-name { font-size: 14px; font-weight: 650; letter-spacing: -.3px; max-width: 230px; overflow-wrap: anywhere; }
    .brand-slash { color: var(--soft); opacity: .55; font-weight: 350; margin-left: 1px; }
    .brand-subtitle { color: var(--muted); font: 10px/1.4 var(--mono); letter-spacing: .15px; }
    .header-nav { display: flex; align-items: center; gap: 9px; }
    .nav-link-custom { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 0; padding: 10px 13px; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; transition: color .18s, background .18s; }
    .nav-link-custom:hover { color: var(--ink); background: var(--wash); }
    .contact-button { gap: 17px; padding-inline: 16px; border: 1px solid var(--line); color: var(--ink); font-weight: 550; }
    .contact-button .icon { transition: transform .22s var(--ease); }
    .contact-button:hover .icon { transform: translate(2px, -2px); }
    .nav-divider { width: 1px; height: 20px; margin-inline: 7px 3px; background: var(--line); }
    .icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 0; border-radius: 11px; background: transparent; color: var(--muted); transition: color .2s, background .2s; }
    .icon-button:hover { color: var(--ink); background: var(--wash); }
    #theme-toggle .icon { width: 18px; height: 18px; }

    /* 05 / Introduction. The negative space is part of the design. */
    .main-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 70px 0 48px; }
    .hero-row { display: grid; grid-template-columns: minmax(0, 1fr) 424px; align-items: center; gap: clamp(40px, 6vw, 100px); }
    .hero-copy { min-width: 0; padding-bottom: 5px; }
    .eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 10px/1.6 var(--mono); letter-spacing: 1.55px; text-transform: uppercase; }
    .eyebrow-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--wash); flex-shrink: 0; }
    .hero-copy h1 { margin: 26px 0 24px; font-size: clamp(65px, 6.6vw, 92px); line-height: 1.045; letter-spacing: -.065em; font-weight: 560; }
    .hero-copy h1 span { color: var(--accent); }
    .hero-description { max-width: 37ch; color: var(--muted); font-size: 17px; line-height: 1.85; letter-spacing: -.16px; text-wrap: pretty; }
    .hero-description em { font-style: normal; color: var(--ink); }
    .private-note { display: flex; align-items: center; gap: 8px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); max-width: 420px; color: var(--muted); font-size: 12px; letter-spacing: .1px; }
    .private-note .icon { width: 13px; height: 13px; }
    .hero-aside { margin-top: 14px; color: var(--muted); font-size: 12px; letter-spacing: .1px; }
    .about-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; margin-top: 23px; padding: 9px 0; border: 0; border-radius: 3px; background: none; font-size: 12px; font-weight: 600; }
    .about-link span { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .2s; }
    .about-link .icon { width: 17px; height: 17px; transition: transform .25s var(--ease); }
    .about-link:hover span { text-decoration-color: var(--line); }
    .about-link:hover .icon { transform: translateX(4px); }
    .play-note { display: flex; align-items: center; gap: 13px; margin-top: 33px; }
    .light-control { display: inline-flex; align-items: center; justify-content: center; gap: 0; min-width: 62px; min-height: 44px; border: 0; background: none; padding: 8px 5px 8px 0; border-radius: 8px; }
    .swatch { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 2px 4px rgba(66, 52, 82, .06); transition: transform .4s var(--ease); }
    .swatch + .swatch { margin-left: -6px; }
    .swatch-mist { background: #e4ece9; }
    .swatch-ice { background: #cee2f7; }
    .swatch-lavender { background: #d8dcf4; }
    .light-control:hover .swatch-mist { transform: translateX(-2px) rotate(-8deg); }
    .light-control:hover .swatch-lavender { transform: translateX(2px) rotate(8deg); }
    .play-note-copy { color: var(--muted); font: 10px/1.65 var(--mono); letter-spacing: -.2px; }
    .play-note-copy span { display: block; color: var(--soft); font: 10px/1.6 var(--sans); letter-spacing: .1px; }

    /* 06 / Private access. One translucent surface, restrained depth. */
    .access-column { position: relative; min-width: 0; isolation: isolate; scroll-margin-block: 30px; }
    .access-column::before { content: ""; position: absolute; inset: 14px -10px -10px 14px; z-index: -1; border-radius: 29px; border: 1px solid var(--glass-edge); background: var(--glass); transform: rotate(2deg); opacity: .65; }
    .access-panel { position: relative; padding: 27px 30px 24px; border-radius: 27px; overflow: hidden; }
    .access-panel::before { content: ""; position: absolute; top: 0; left: 14%; width: 66%; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-edge), transparent); pointer-events: none; }
    .access-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .panel-label { color: var(--muted); font: 10px/1.5 var(--mono); letter-spacing: 1.4px; text-transform: uppercase; }
    .private-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 10px; line-height: 1.5; }
    .private-tag .icon { width: 11px; height: 11px; }
    .access-emblem { position: relative; isolation: isolate; display: grid; place-items: center; width: 58px; height: 58px; margin: 28px 0 23px; color: var(--accent); }
    .emblem-back, .emblem-front { position: absolute; inset: 0; border-radius: 17px; border: 1px solid var(--glass-edge); }
    .emblem-back { background: linear-gradient(135deg, var(--mist), var(--ice)); opacity: .75; transform: translate(6px, -3px) rotate(12deg); transition: transform .45s var(--ease); }
    .emblem-front { background: linear-gradient(145deg, var(--glass-highlight), transparent), var(--glass); transform: rotate(-6deg); box-shadow: 0 8px 16px -9px rgba(73, 56, 98, .24), inset 0 1px 0 var(--glass-edge); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .45s var(--ease); }
    .access-emblem > .icon { position: relative; width: 25px; height: 25px; stroke-width: 1.45; }
    .access-panel:hover .emblem-back { transform: translate(7px, -4px) rotate(17deg); }
    .access-panel:hover .emblem-front { transform: rotate(-2deg); }
    .access-panel h2 { margin: 0 0 7px; font-size: 29px; line-height: 1.2; font-weight: 550; letter-spacing: -1px; }
    .access-description { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0 0 27px; }
    /* 06b / Code or sign-in. One sliding glass thumb; the app follows from the
       code prefix (PIV-...) or the username suffix (name@piv). */
    .mode-toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: -8px 0 22px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--wash); }
    .mode-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border: 1px solid var(--glass-edge); border-radius: 10px; background: var(--thumb); box-shadow: var(--thumb-shadow); transition: transform .5s var(--ease); pointer-events: none; }
    .mode-toggle[data-mode="login"] .mode-thumb { transform: translateX(100%); }
    .mode-tab { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; transition: color .3s; }
    .mode-tab .icon { width: 15px; height: 15px; }
    .mode-tab:hover { color: var(--ink); }
    .mode-tab[aria-selected="true"] { color: var(--ink); }
    .mode-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
    .pane-stage { position: relative; transition: height .45s var(--ease); }
    .access-pane { transition: opacity .28s, transform .45s var(--ease); }
    .access-pane.is-leaving { position: absolute; inset: 0 0 auto; opacity: 0; pointer-events: none; }
    .access-pane.is-entering { opacity: 0; transform: translateX(var(--enter-from, 16px)); }
    .field-label-spaced { margin-top: 14px; }
    .username-input { padding-right: 14px; }
    .passphrase-input.has-app { padding-right: 108px; }
    #passphrase.has-app { padding-right: 150px; }
    .app-badge { position: absolute; top: 50%; right: 9px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 8px; border-radius: 8px; background: var(--control); color: var(--control-ink); font-size: 11px; font-weight: 650; letter-spacing: .3px; pointer-events: none; opacity: 0; transform: translate(10px, -50%) scale(.9); transition: opacity .25s, transform .45s var(--ease); }
    .app-badge.with-toggle { right: 52px; }
    .app-badge .icon { width: 14px; height: 14px; }
    .app-badge.is-visible { opacity: 1; transform: translate(0, -50%) scale(1); }
    .field-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; margin-top: 7px; color: var(--muted); font-size: 11.5px; line-height: 1.5; overflow-wrap: anywhere; }
    .field-hint[data-tone="ok"] { color: var(--success); }
    .field-hint[data-tone="error"] { color: var(--error); }
    .suffix-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 8px; border: 1px dashed var(--input-edge); border-radius: 7px; background: transparent; color: var(--ink); font: 11px/1.5 var(--mono); transition: background .2s, border-color .2s; }
    .suffix-chip:hover { background: var(--wash); border-style: solid; }
    .access-emblem > .icon { transition: opacity .16s, transform .35s var(--ease); }
    .access-emblem.is-swapping > .icon { opacity: 0; transform: scale(.7) rotate(-10deg); }
    #login-button { width: 100%; margin-top: 11px; }

    .field-label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 8px; }
    .input-wrap { position: relative; }
    .passphrase-input { display: block; width: 100%; height: 50px; padding: 0 49px 0 14px; border: 1px solid var(--input-edge); border-radius: 11px; background: var(--input); color: var(--ink); font-size: 14px; transition: border-color .2s, box-shadow .2s; }
    .passphrase-input::placeholder { color: var(--muted); opacity: 1; }
    .passphrase-input:focus { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
    .passphrase-input[aria-invalid="true"] { border-color: var(--error); }
    .password-toggle { position: absolute; top: 3px; right: 3px; }
    .password-toggle .icon { width: 17px; height: 17px; }
    .primary-button { display: flex; align-items: center; justify-content: center; gap: 15px; min-height: 49px; padding: 12px 18px; border: 1px solid transparent; border-radius: 11px; background: var(--control); color: var(--control-ink); font-size: 12px; font-weight: 600; box-shadow: 0 5px 10px -6px rgba(37, 27, 52, .35), inset 0 1px 0 rgba(255, 255, 255, .1); transition: background .2s, transform .2s var(--ease), box-shadow .2s; }
    .primary-button:hover { background: var(--control-hover); transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(37, 27, 52, .28); }
    .primary-button:active { transform: none; }
    .primary-button .icon { width: 17px; height: 17px; }
    #continue-button { width: 100%; margin-top: 11px; }
    .spinner { width: 15px; height: 15px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
    .form-feedback { color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
    .form-feedback:not(:empty) { margin-top: 13px; }
    .form-feedback[data-tone="error"] { color: var(--error); }
    .form-feedback[data-tone="success"] { color: var(--success); }
    .session-actions { margin-top: 22px; }
    .session-actions .primary-button { width: 100%; }
    .text-button { min-height: 44px; border: 0; border-radius: 7px; background: transparent; padding: 10px 5px; color: var(--muted); font-size: 12px; }
    .text-button:hover { color: var(--ink); }
    #lock-button { display: block; margin: 4px auto -5px; }
    .access-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 23px; padding-top: 17px; color: var(--muted); font-size: 10px; }
    .access-bottom > span { display: inline-flex; align-items: center; gap: 6px; }
    .access-bottom .icon { width: 12px; height: 12px; }
    kbd { font: 10px/1.5 var(--mono); padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--glass); }
    .script-warning { margin-top: 14px; color: var(--error); font-size: 12px; line-height: 1.7; }

    /* 07 / Workbench. Editable local notes, not an application launcher.
       The drawer and card stack animate only on interaction. No autoplay. */
    .workbench-section { margin-top: 60px; scroll-margin-block: 30px; }
    .section-label { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 13px; }
    .section-label h2 { display: flex; align-items: center; gap: 11px; color: var(--muted); font: 10px/1.6 var(--mono); letter-spacing: 1.45px; text-transform: uppercase; font-weight: 400; }
    .section-index { color: var(--muted); font-size: 9px; letter-spacing: 0; }
    #workbench-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
    #workbench-status .icon { width: 12px; height: 12px; }
    .workbench-card { border-radius: 19px; transition: box-shadow .25s; }
    .workbench-card:hover { box-shadow: 0 24px 56px -36px rgba(64, 47, 86, .26), inset 0 1px 0 var(--glass-edge); }
    .workbench-summary { display: flex; align-items: center; gap: 20px; padding: 22px 26px; }
    .workbench-icon { position: relative; isolation: isolate; display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; color: var(--accent); }
    .workbench-icon::before, .workbench-icon::after { content: ""; position: absolute; inset: 3px; z-index: -1; border: 1px solid var(--glass-edge); border-radius: 12px; transition: transform .45s var(--ease); }
    .workbench-icon::before { background: var(--mist); opacity: .70; transform: translate(3px, -2px) rotate(8deg); }
    .workbench-icon::after { background: var(--glass-solid); box-shadow: 0 4px 9px -5px rgba(60, 46, 78, .20); transform: rotate(-5deg); }
    .workbench-card:hover .workbench-icon::before, .workbench-card:focus-within .workbench-icon::before { transform: translate(5px, -3px) rotate(14deg); }
    .workbench-card:hover .workbench-icon::after, .workbench-card:focus-within .workbench-icon::after { transform: rotate(-2deg); }
    .workbench-icon .icon { width: 22px; height: 22px; }
    .workbench-copy { flex: 1; min-width: 0; }
    .workbench-copy h3 { margin-bottom: 3px; font-size: 17px; font-weight: 580; line-height: 1.4; letter-spacing: -.4px; text-wrap: initial; }
    .workbench-copy p { color: var(--muted); font-size: 12px; line-height: 1.7; }
    .workbench-browse, .workbench-open { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 44px; padding: 8px 0 8px 12px; border: 0; border-radius: 8px; background: transparent; font-size: 12px; font-weight: 550; white-space: nowrap; }
    .workbench-browse .icon { width: 17px; height: 17px; transition: transform .4s var(--ease); }
    .workbench-browse:hover .icon { transform: translateY(3px); }
    .workbench-browse[aria-expanded="true"] .icon { transform: rotate(180deg); }
    .workbench-open { gap: 12px; }
    .workbench-open .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
    .workbench-open:hover .icon { transform: translate(2px, -2px); }
    .workbench-preview { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .3s ease; }
    .workbench-card[data-browsing="true"] .workbench-preview { grid-template-rows: 1fr; opacity: 1; }
    .preview-clip { position: relative; min-height: 0; overflow: hidden; }
    .preview-content { margin-inline: 26px; padding: 24px 0 20px; }
    .sketch-layout { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1fr) auto; gap: 30px; align-items: center; padding: 20px 12px 8px; }
    .deck-area { display: grid; justify-items: center; }
    .sketch-deck { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); width: 250px; max-width: 100%; min-height: 188px; padding: 24px 16px 22px; border: 0; border-radius: 16px; background: transparent; touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; }
    .sketch-deck:disabled { opacity: 1; cursor: default; }
    /* Shared grid cell: the longest note determines stack height, without clipping. */
    .sketch-card { position: relative; grid-area: 1 / 1; display: block; min-width: 0; min-height: 142px; width: 100%; overflow: hidden; border: 1px solid var(--glass-edge); border-radius: 13px; text-align: left; box-shadow: 0 9px 21px -13px rgba(60, 46, 79, .28), inset 0 1px 0 var(--glass-edge); transition: transform .55s var(--ease), opacity .4s ease; pointer-events: none; transform-origin: 50% 90%; }
    .sketch-card[data-layer="front"] { z-index: 3; opacity: 1; transform: translate(0, 3px) rotate(-3deg); }
    .sketch-card[data-layer="middle"] { z-index: 2; opacity: .87; transform: translate(10px, -6px) rotate(4deg); }
    .sketch-card[data-layer="back"] { z-index: 1; opacity: .65; transform: translate(-8px, -15px) rotate(-7deg); }
    .sketch-deck:not(:disabled):hover .sketch-card[data-layer="front"], .sketch-deck:focus-visible .sketch-card[data-layer="front"] { transform: translate(-5px, 1px) rotate(-5deg); }
    .sketch-deck:not(:disabled):hover .sketch-card[data-layer="middle"], .sketch-deck:focus-visible .sketch-card[data-layer="middle"] { transform: translate(18px, -10px) rotate(9deg); }
    .sketch-deck:not(:disabled):hover .sketch-card[data-layer="back"], .sketch-deck:focus-visible .sketch-card[data-layer="back"] { transform: translate(-13px, -21px) rotate(-10deg); }
    .sketch-card[data-layer="parked"] { z-index: 0; visibility: hidden; opacity: 0; transform: translateY(-18px) scale(.94); }
    .sketch-card[data-tone="mist"] { background: var(--sketch-surface); }
    .sketch-card[data-tone="lavender"] { background: var(--sketch-lavender); }
    .sketch-card[data-tone="ice"] { background: var(--sketch-ice); }
    .mini-chrome { display: flex; align-items: center; gap: 4px; min-height: 29px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font: 8px/1.4 var(--mono); }
    .mini-dot { width: 3px; height: 3px; flex: 0 0 3px; border-radius: 50%; background: currentColor; opacity: .5; }
    .mini-file { min-width: 0; margin-left: 6px; overflow-wrap: anywhere; }
    .mini-note { display: block; padding: 13px 16px 17px; }
    .mini-title { display: block; color: var(--ink); font: 580 14px/1.4 var(--sans); letter-spacing: -.3px; overflow-wrap: anywhere; white-space: pre-line; }
    .mini-text { display: block; margin-top: 7px; color: var(--muted); font: 11px/1.7 var(--sans); overflow-wrap: anywhere; white-space: pre-line; }
    .sketch-layout[data-empty="true"] { grid-template-columns: minmax(0, 1fr); }
    .sketch-empty { color: var(--muted); font-size: 12px; padding-block: 16px; }
    .deck-hint { color: var(--soft); font: 9px/1.5 var(--mono); }
    .sketch-panels { min-width: 0; }
    .sketch-panel { border-radius: 8px; overflow-wrap: anywhere; }
    .sketch-kicker { display: block; margin-bottom: 9px; color: var(--accent); font: 9px/1.5 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; }
    .sketch-panel h4 { margin: 0 0 10px; color: var(--ink); font-size: 24px; line-height: 1.25; letter-spacing: -.7px; font-weight: 550; text-wrap: balance; }
    .sketch-panel p { max-width: 44ch; color: var(--muted); font-size: 12px; line-height: 1.8; text-wrap: pretty; white-space: pre-line; }
    .sketch-controls { display: flex; flex-direction: column; align-items: center; gap: 6px; }
    .sketch-controls .icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; }
    .sketch-controls .icon { width: 15px; height: 15px; }
    .sketch-count { min-width: 44px; text-align: center; color: var(--muted); font: 9px/1.5 var(--mono); font-variant-numeric: tabular-nums; }
    .preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
    .preview-footer > p { display: flex; align-items: center; gap: 7px; }
    .preview-footer > p .icon { width: 12px; height: 12px; }
    .preview-footer .workbench-open { min-height: 36px; color: var(--ink); font-size: 11px; }
    #session-browse { width: 100%; }
    @media (max-width: 900px) {
      .sketch-layout { grid-template-columns: minmax(200px, .8fr) minmax(0, 1fr) auto; gap: 18px; padding-inline: 0; }
      .sketch-deck { width: 218px; }
      .sketch-panel h4 { font-size: 22px; }
    }

    /* 08 / Quiet supporting details. */
    .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 15px 0 18px; color: var(--muted); font-size: 10px; }
    .footer-owner { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
    .footer-dot { width: 2px; height: 2px; border-radius: 50%; background: var(--muted); }
    .footer-links { display: flex; align-items: center; gap: 23px; }
    .footer-link { min-height: 44px; border: 0; border-radius: 3px; padding: 10px 0; background: none; font: inherit; color: inherit; }
    .footer-link:hover { color: var(--ink); }

    /* 09 / Native dialogs: keyboard focus containment and Escape built in. */
    .modal-open { overflow: hidden; }
    .site-dialog { width: min(520px, calc(100% - 36px)); max-height: calc(100vh - 48px); max-height: calc(100svh - 48px); margin: auto; padding: 0; border-radius: 25px; color: var(--ink); background: var(--dialog-surface); overflow: auto; overscroll-behavior: contain; }
    .site-dialog:not([open]) { display: none; }
    .site-dialog::backdrop { background: rgba(38, 30, 49, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
    [data-bs-theme="dark"] .site-dialog::backdrop { background: rgba(11, 7, 19, .54); }
    .site-dialog[open] { animation: dialog-in .25s var(--ease); }
    .dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 0 30px; }
    .dialog-header .eyebrow { font-size: 9px; }
    .dialog-body { padding: 15px 30px 30px; }
    .dialog-body h2 { font-size: 32px; line-height: 1.2; font-weight: 550; letter-spacing: -1px; text-wrap: initial; overflow-wrap: anywhere; }
    .dialog-body h3 { margin: 23px 0 6px; font-size: 13px; font-weight: 650; }
    .dialog-role { display: block; color: var(--accent); font-size: 12px; margin-top: 6px; }
    .dialog-copy { margin: 21px 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
    .contact-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--wash); }
    .contact-row > a { display: inline-flex; align-items: center; min-height: 44px; min-width: 0; flex: 1; font-size: 13px; overflow-wrap: anywhere; }
    .contact-row > .icon { width: 17px; height: 17px; color: var(--muted); }
    .contact-row .icon-button { flex: 0 0 44px; }
    .copy-feedback { min-height: 18px; margin-top: 7px; color: var(--muted); font-size: 11px; }
    address { margin: 12px 0 20px; color: var(--muted); font-style: normal; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
    .legal-note { margin-top: 20px; padding: 13px 15px; border-radius: 11px; background: var(--wash); color: var(--muted); font-size: 11px; line-height: 1.8; }

    /* 10 / Responsive behavior and progressive enhancement. */
    .enter { animation: enter .7s var(--ease) both; }
    .enter-copy { animation-delay: .06s; }
    .enter-access { animation-delay: .12s; }
    @keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
    @keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
    @keyframes spin { to { transform: rotate(360deg); } }
    @media (min-width: 1500px) { .site-shell { width: min(1200px, calc(100% - 120px)); } .hero-copy h1 { font-size: 96px; } .main-content { padding-top: 84px; padding-bottom: 64px; } }
    @media (max-width: 1100px) {
      .site-shell { width: calc(100% - 64px); }
      .hero-row { grid-template-columns: minmax(0, 1fr) 385px; gap: 46px; }
      .hero-copy h1 { font-size: clamp(61px, 6.9vw, 76px); }
      .access-panel { padding: 25px 27px 23px; }
      .hero-description { font-size: 16px; }
      .brand-subtitle, .brand-slash { display: none; }
    }
    @media (max-width: 900px) and (min-width: 761px) {
      .hero-row { grid-template-columns: minmax(0, 1fr) 344px; gap: 34px; }
      .hero-copy h1 { font-size: 59px; }
      .hero-description { font-size: 15px; }
      .access-panel { padding-inline: 23px; }
      .access-panel h2 { font-size: 27px; }
      .header-nav { gap: 4px; }
      .workbench-copy p { max-width: 38ch; }
    }
    @media (max-width: 760px) {
      body { position: relative; }
      .ambient { position: absolute; }
      .site-shell { width: min(536px, calc(100% - 44px)); padding-top: 20px; }
      .site-header { min-height: 65px; padding: 9px 10px 9px 12px; gap: 12px; border-radius: 17px; }
      .brand-name { font-size: 13px; max-width: 165px; }
      .brand-mark { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
      .brand { gap: 9px; }
      .header-nav { gap: 5px; }
      .nav-workbench, .nav-about, .nav-divider { display: none; }
      .contact-button { padding-inline: 12px; min-height: 42px; gap: 10px; font-size: 11px; }
      .main-content { padding: 55px 0 36px; }
      .hero-row { grid-template-columns: minmax(0, 1fr); gap: 43px; }
      .hero-copy { padding: 0 2px; }
      .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
      .hero-copy h1 { margin-top: 25px; margin-bottom: 21px; font-size: clamp(57px, 11.8vw, 79px); }
      .hero-description { font-size: 16px; max-width: 37ch; }
      .hero-aside { margin-top: 12px; font-size: 11px; }
      .about-link { margin-top: 17px; }
      .play-note { margin-top: 21px; }
      .access-column::before { inset: 12px -5px -8px 12px; transform: rotate(1.4deg); }
      .access-panel { padding: 25px 27px 23px; border-radius: 24px; }
      .access-emblem { margin-top: 25px; margin-bottom: 21px; }
      .passphrase-input { font-size: 16px; }
      .keyboard-hint { display: none !important; }
      .workbench-section { margin-top: 42px; }
      .workbench-summary { align-items: flex-start; flex-wrap: wrap; column-gap: 15px; row-gap: 3px; padding: 21px; }
      .workbench-icon { width: 43px; height: 43px; flex-basis: 43px; }
      .workbench-copy { padding-top: 1px; flex-basis: calc(100% - 60px); }
      .workbench-copy h3 { font-size: 16px; }
      .workbench-copy p { margin-top: 4px; }
      .workbench-browse { padding-left: 0; margin-left: 58px; min-height: 44px; gap: 14px; }
      .preview-content { margin-inline: 21px; padding-top: 16px; }
      .sketch-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 12px 0 2px; }
      .sketch-deck { width: 250px; }
      .sketch-panel h4 { font-size: 23px; }
      .sketch-panels { min-height: 137px; padding-inline: 3px; }
      .sketch-controls { flex-direction: row; justify-content: center; gap: 14px; }
      .sketch-controls .icon-button { width: 44px; height: 44px; }
      .preview-footer { align-items: flex-start; flex-direction: column; gap: 0; padding-top: 15px; margin-top: 15px; line-height: 1.7; }
      .preview-footer .workbench-open { padding-left: 19px; min-height: 44px; }
      .site-footer { align-items: flex-start; flex-direction: column; gap: 2px; padding: 19px 2px 18px; }
      .footer-links { gap: 24px; }
      .footer-owner { font-size: 10px; }
      .ambient-grid { opacity: .28; }
    }
    @media (max-width: 380px) {
      .site-shell { width: calc(100% - 32px); padding-top: 16px; }
      .site-header { gap: 4px; padding-inline: 9px; }
      .brand-name { font-size: 12px; max-width: 100px; }
      .contact-button { padding-inline: 8px; gap: 7px; }
      .contact-button .icon { display: none; }
      .header-nav { gap: 2px; }
      .hero-copy h1 { font-size: 56px; }
      .access-panel { padding: 23px; }
      .access-panel h2 { font-size: 27px; }
      .dialog-body { padding-inline: 23px; }
      .dialog-header { padding-left: 23px; }
      .contact-row > .icon { display: none; }
    }
    @media (max-width: 320px) { .hero-copy h1 { font-size: 48px; } .brand { gap: 6px; } .brand-name { max-width: 77px; } .access-panel { padding-inline: 19px; } .workbench-summary { padding: 18px; } .preview-content { margin-inline: 18px; } }
    @media (hover: none) { .primary-button:hover, .access-panel:hover .emblem-front, .access-panel:hover .emblem-back { transform: none; } }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass, .emblem-front { background: var(--glass-solid); } .access-column::before { background: transparent; } }
    @media (prefers-reduced-transparency: reduce) { .glass, .emblem-front { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; } .site-dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; } }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
      .ambient-field, .ambient[data-light] .ambient-field { transform: none; }
      .ambient[data-light="1"] .ambient-field { background-position: 60px -80px; }
      .ambient[data-light="2"] .ambient-field { background-position: -80px 60px; }
      .primary-button:hover, .about-link:hover .icon, .workbench-open:hover .icon { transform: none; }
      .sketch-deck:not(:disabled):hover .sketch-card[data-layer="front"], .sketch-deck:focus-visible .sketch-card[data-layer="front"] { transform: translate(0, 3px) rotate(-3deg); }
      .sketch-deck:not(:disabled):hover .sketch-card[data-layer="middle"], .sketch-deck:focus-visible .sketch-card[data-layer="middle"] { transform: translate(10px, -6px) rotate(4deg); }
      .sketch-deck:not(:disabled):hover .sketch-card[data-layer="back"], .sketch-deck:focus-visible .sketch-card[data-layer="back"] { transform: translate(-8px, -15px) rotate(-7deg); }
    }
    @media (forced-colors: active) {
      .ambient, .access-column::before { display: none; }
      .glass, .emblem-front, .brand-mark, .primary-button, .workbench-icon, .private-tag { border: 1px solid ButtonText; box-shadow: none; }
      .swatch { forced-color-adjust: none; }
      .workbench-icon::before, .workbench-icon::after { border: 1px solid ButtonText; }
      .sketch-card, .sketch-controls .icon-button { border: 1px solid ButtonText; background: Canvas; }
    }
    @media print {
      body { background: white; color: black; }
      .ambient, .header-nav, .access-column, .workbench-section, .footer-links, .about-link, .play-note, .site-dialog { display: none !important; }
      .site-shell { min-height: 0; width: 100%; padding: 0; }
      .glass { border: 0; box-shadow: none; background: transparent; }
      .main-content { padding: 50px 0; }
      .hero-row { display: block; }
      .hero-copy h1 { font-size: 60px; }
    }
