/* ============================================================
   MANGO LAKE — brand foundations and the two-world shell.
   Tokens and shell styles are lifted from the blessed exemplar
   (docs/working/visuals/lake-ui-redesign.html). One Swiss-modern
   system, two registers: the white consumer catalogue topline and
   the navy-banded /platform operations worksheet. Square corners,
   hairline rules, no decoration.
   Brand palette (Mango Ignite, verified):
     navy #010542 · wordmark ink #0d1f75 · flame deep #1b45b5
     ignite blue #2e6cf6 · flame bright #5c91f8 · slate grey #9b9b9b
     white #ffffff
   ============================================================ */

:root {
    --blue: #1b45b5;
    --live: #2e6cf6;
    --bright: #5c91f8;
    --hot: #2e6cf6;
    --slate: #9b9b9b;
    --ink: #010542;
    --ink-word: #0d1f75;

    --bg: #ffffff;
    --bg-tint: #f7f8fa;
    --hair: #e2e4ea;
    --hair-2: #c6cad5;
    --body: #131c52;
    --soft: #545f8c;
    --faint: #8d96b8;

    --ops-bg: #f4f5f8;
    --ops-hair: #dcdfe8;

    --wash-blue: #e8f0fe;
    --wash-live: #e8f0fd;
    --wash-bright: #eff5fe;
    --wash-hot: #e6e9f7;
    --wash-slate: #ededf1;
    --hot-deep: #1b45b5;
    --live-deep: #1b45b5;
    --bright-deep: #2e63d6;
    --slate-deep: #565b74;
    --blue-deep: #142e86;

    --lake-sans: "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
    --lake-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

/* ============================================================
   Shell frame
   ============================================================ */
.lake-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--lake-sans);
    background: var(--bg);
}

.lake-app .frame {
    max-width: 1220px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

main.lake-main {
    flex: 1;
    margin-left: 0;
    min-height: 0;
    background: var(--bg);
}

main.lake-main.lake-main-ops {
    background: var(--ops-bg);
}

.lake-gate-hold {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    font-family: var(--lake-mono);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--faint);
}

/* ============================================================
   Consumer topline
   ============================================================ */
.topline {
    border-bottom: 1px solid var(--body);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topline-in {
    display: flex;
    align-items: stretch;
    gap: 0;
    height: 58px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 28px;
    border-right: 1px solid var(--hair);
    cursor: pointer;
    user-select: none;
    color: inherit;
    text-decoration: none;
}

.brand .mango-mark {
    width: 30px;
    height: 30px;
}

.brand .b-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--ink);
}

.brand .b-name span {
    color: var(--hot);
}

.brand .b-sub {
    font-family: var(--lake-mono);
    font-size: 9.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--faint);
}

.top-tabs {
    display: flex;
}

.top-tabs a {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    border-right: 1px solid var(--hair);
    padding: 0 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--soft);
    height: 100%;
    text-decoration: none;
}

.top-tabs a:hover {
    color: var(--ink);
    background: var(--bg-tint);
}

.top-tabs a.on {
    color: var(--ink);
    font-weight: 700;
    box-shadow: inset 0 -3px 0 var(--hot);
}

.top-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.acct-chip {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 1px solid var(--hair-2);
    color: var(--soft);
    font-size: 12.5px;
    padding: 8px 14px;
    font-family: var(--lake-mono);
    text-decoration: none;
    cursor: pointer;
}

.acct-chip:hover {
    border-color: var(--body);
    color: var(--ink);
}

.ops-door {
    display: inline-flex;
    align-items: center;
    background: var(--ink);
    color: #fff;
    border: none;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 9px 18px;
    text-decoration: none;
    cursor: pointer;
}

.ops-door:hover {
    background: var(--ink-word);
    color: #fff;
}

.ops-door small {
    color: var(--slate);
    font-weight: 700;
    margin-right: 7px;
}

/* ============================================================
   /platform — the operations worksheet chrome
   ============================================================ */
.works-band {
    background: var(--ink);
    border-bottom: 1px solid var(--ink);
}

.works-band-in {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 32px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.works-band .wb-stripe {
    width: 22px;
    height: 22px;
    background: repeating-linear-gradient(-45deg, var(--bright) 0 4px, var(--ink) 4px 8px);
    flex: none;
}

.works-band .wb-t {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #ffffff;
}

.works-band .wb-r {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--lake-mono);
    font-size: 11px;
    color: var(--slate);
}

.wb-exit {
    background: var(--hot);
    color: #fff;
    border: none;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 13px;
    text-decoration: none;
    cursor: pointer;
}

.wb-exit:hover {
    background: var(--blue);
    color: #fff;
}

.ops-top {
    background: #fff;
    border-bottom: 1px solid var(--ops-hair);
}

.ops-top-in {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: flex-end;
    gap: 0;
}

.ops-title {
    padding: 18px 28px 18px 0;
    display: flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.ops-title .mango-mark {
    width: 26px;
    height: 26px;
}

.ops-title b {
    font-size: 16px;
    color: var(--ink);
    letter-spacing: -.01em;
}

.ops-title span {
    font-family: var(--lake-mono);
    font-size: 11px;
    color: var(--faint);
}

.ops-tabs {
    display: flex;
    margin-left: 12px;
    flex-wrap: wrap;
}

.ops-tabs a {
    background: none;
    border: none;
    padding: 20px 20px 16px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--soft);
    border-bottom: 3px solid transparent;
    text-decoration: none;
}

.ops-tabs a:hover {
    color: var(--ink);
}

.ops-tabs a.on {
    color: var(--ink);
    font-weight: 700;
    border-bottom-color: var(--hot);
}

/* ============================================================
   Responsive — the topline wraps to a brand row plus tab strip
   ============================================================ */
@media (max-width: 720px) {
    .lake-app .frame,
    .works-band-in,
    .ops-top-in {
        padding-left: 16px;
        padding-right: 16px;
    }

    .topline-in {
        height: auto;
        flex-wrap: wrap;
        padding: 10px 0 0;
        row-gap: 0;
        align-items: center;
    }

    .brand {
        border-right: none;
        padding: 0 0 10px;
    }

    .top-tabs {
        order: 3;
        width: 100%;
        overflow-x: auto;
        border-top: 1px solid var(--hair);
    }

    .top-tabs a {
        padding: 12px 16px;
        white-space: nowrap;
    }

    .top-right {
        padding-bottom: 10px;
    }

    .works-band-in {
        height: auto;
        flex-wrap: wrap;
        padding-top: 8px;
        padding-bottom: 8px;
        row-gap: 4px;
    }

    .works-band .wb-r {
        flex-wrap: wrap;
        row-gap: 4px;
    }

    .ops-top-in {
        flex-wrap: wrap;
    }
}

/* ============================================================
   SIGN-IN — the split gate (and accept-invite in the same
   register). Ported from the blessed exemplar's gate block
   (search `viewAccess` / `.gate` in docs/working/visuals/
   lake-ui-redesign.html), kept in the exemplar's compact
   notation for line-by-line traceability. Adaptations only:
   `--mono` → `--lake-mono`; the primary action is an anchor to
   the real OIDC round-trip; the entrance fade sits behind
   prefers-reduced-motion. Unauthenticated sign-in is a
   full-height 45/55 split: the real boundary-glow image left
   (scrimmed navy like the landing hero) carrying the
   "Invitation only." statement, the functional column right,
   vertically centred. Primary action is unmistakable; invite
   redemption is a ruled secondary block in the same column; the
   API-key path stays a quiet tertiary disclosure. Square
   corners, hairlines, Swiss register.
   ============================================================ */
.gate-page { display: flex; flex-direction: column; min-height: 100dvh; background: var(--bg); font-family: var(--lake-sans); }
.gate-page a { color: inherit; }
.gate { flex: 1; display: grid; grid-template-columns: minmax(320px, 45fr) minmax(0, 55fr); }
.gate-visual { position: relative; background-color: var(--ink); background-size: cover; background-position: 72% 62%; overflow: hidden; }
.gate-visual::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(168deg, rgba(1,5,66,.92) 0%, rgba(1,5,66,.55) 45%, rgba(1,5,66,.12) 100%),
  linear-gradient(to top, rgba(1,5,66,.6) 0%, rgba(1,5,66,0) 40%); }
.gate-visual .gv-copy { position: absolute; inset: 0; z-index: 1; padding: 34px 38px 36px; display: flex; flex-direction: column; justify-content: space-between; }
.gate-visual .gv-kick { font-family: var(--lake-mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--bright); font-weight: 700; }
.gate-visual .gv-line { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -.03em; font-weight: 700; color: #fff; max-width: 7em; }
.gate-visual .gv-line .alt { color: var(--bright); }
.gate-form { display: flex; align-items: center; justify-content: center; padding: 48px 7vw; background: var(--bg); }
.gate-form-in { width: 100%; max-width: 400px; }
.gate-crumbs { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.gate-form-in h4 { margin: 0; font-size: clamp(28px, 2.6vw, 34px); font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.05; }
.gate-lede { font-size: 14px; line-height: 1.6; color: var(--soft); margin: 12px 0 0; }
.signin-big { display: block; width: 100%; text-align: center; text-decoration: none; background: var(--live); color: #fff; border: none; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 17px 26px; margin-top: 26px; box-shadow: 0 14px 30px -12px rgba(46,108,246,.55); transition: background .12s ease, transform .12s ease, box-shadow .12s ease; }
.signin-big:hover { background: var(--bright); color: #fff; transform: translateY(-1px); box-shadow: 0 18px 36px -12px rgba(46,108,246,.6); }
.signin-big:active { transform: none; box-shadow: 0 10px 22px -12px rgba(46,108,246,.55); }
.gate-invite { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--hair); }
.gate-invite h5 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.gate-invite p { font-size: 13px; line-height: 1.6; color: var(--soft); margin: 6px 0 0; }
.gate-invite p b { color: var(--ink); }
.gate-invite .inv-row { display: flex; gap: 10px; margin-top: 14px; }
.gate-invite input, .gate-advanced input { font-family: var(--lake-mono); font-size: 12.5px; padding: 10px 12px; border: 1px solid var(--hair-2); border-radius: 0; flex: 1; min-width: 0; background: var(--bg); color: var(--body); }
.gate-invite input:focus, .gate-advanced input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.gate-advanced { margin-top: 22px; border-top: 1px solid var(--hair); }
.gate-advanced summary { cursor: pointer; font-size: 12.5px; color: var(--faint); font-weight: 600; padding: 12px 0; list-style: none; }
.gate-advanced summary::-webkit-details-marker { display: none; }
.gate-advanced summary:hover { color: var(--ink); }
.gate-advanced summary .arr { color: var(--hot); }
.gate-advanced .adv-body { border: 1px dashed var(--hair-2); padding: 18px 20px; background: var(--bg-tint); }
.gate-advanced .adv-body p { margin: 0; font-size: 13px; color: var(--soft); }
.gate-advanced .adv-body p b { color: var(--ink); }
.gate-advanced .adv-row { display: flex; gap: 10px; margin-top: 14px; }
@media (max-width: 860px) { .gate { grid-template-columns: 1fr; } .gate-visual { min-height: 230px; } .gate-visual .gv-copy { justify-content: flex-end; gap: 10px; } .gate-form { padding: 36px 26px 44px; } }

/* supporting register pieces the gate leans on (exemplar `.rl`,
   `.crumbs`, `.acc-btn`) — scoped here for the gate pages */
.rl { display: inline-flex; align-items: center; gap: 6px; font-family: var(--lake-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; font-weight: 700; vertical-align: middle; }
.rl .dot { width: 7px; height: 7px; flex: none; }
.rl-live { background: var(--wash-live); color: var(--live-deep); }
.rl-live .dot { background: var(--live); }
.crumbs { font-family: var(--lake-mono); font-size: 11.5px; color: var(--faint); }
.crumbs a { color: var(--blue-deep); cursor: pointer; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.acc-btn { background: var(--ink); color: #fff; border: none; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 10px 18px; cursor: pointer; }
.acc-btn:hover { background: #0d1f75; }
.acc-btn.alt { background: #fff; color: var(--ink); border: 1px solid var(--body); }
.acc-btn.alt:hover { background: var(--bg-tint); }
.acc-btn:disabled { opacity: .55; cursor: default; }
.gate-invite .acc-btn, .gate-advanced .acc-btn { flex: none; width: auto; }

/* adaptations for the live implementation: inline mono spans and the
   honest error strip under a failed redemption or key check */
.gate-mono { font-family: var(--lake-mono); }
.gate-error { margin-top: 12px; padding: 10px 12px; border: 1px solid #c4302b; background: #fdf1f0; color: #8f1d19; font-size: 13px; line-height: 1.5; }

/* the exemplar's `.gate` fadein entrance, behind reduced motion */
@media (prefers-reduced-motion: no-preference) {
  @keyframes gateFadein { from { opacity: 0; } to { opacity: 1; } }
  .gate { animation: gateFadein .16s ease-out; }
   S4 · CATALOGUE HOME — appended as a distinct block (S3 also
   appends to this file; keep this comment fence intact).
   Ported from the blessed exemplar's viewHome: hero strip with
   real stats, "The catalogue" section head, live search bar,
   shelf filter chips and the dataset card grid. All selectors
   are scoped under .lake-cat so they cannot leak into the
   landing page, the sign-in gate or /platform.
   ============================================================ */

.lake-cat { display: flex; flex-direction: column; min-height: 100%; }
.lake-cat .lake-cat-body { flex: 1; }
.lake-cat .lake-cat-error { margin: 26px 0 80px; font-size: 14.5px; color: var(--soft); max-width: 560px; line-height: 1.6; }

/* hero strip — headline left, stat cells right */
.lake-cat .hero { border-bottom: 1px solid var(--body); }
.lake-cat .hero-grid { display: grid; grid-template-columns: 1fr 320px; }
.lake-cat .hero-main { padding: 72px 32px 56px 0; }
.lake-cat .hero .kick { font-family: var(--lake-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--hot); margin-bottom: 20px; }
.lake-cat .hero h1 { font-size: 66px; line-height: .98; letter-spacing: -.03em; font-weight: 700; color: var(--ink); max-width: 720px; margin: 0; }
.lake-cat .hero h1 .alt { color: var(--blue); }
.lake-cat .hero p { margin: 22px 0 0; font-size: 17px; color: var(--soft); max-width: 560px; line-height: 1.6; }
.lake-cat .hero-side { border-left: 1px solid var(--hair); display: flex; flex-direction: column; }
.lake-cat .hs-cell { flex: 1; padding: 22px 26px; border-bottom: 1px solid var(--hair); }
.lake-cat .hs-cell:last-child { border-bottom: none; }
.lake-cat .hs-cell .n { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.lake-cat .hs-cell .l { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }
.lake-cat .hs-cell .accent { width: 26px; height: 4px; margin-bottom: 12px; }

/* section head */
.lake-cat .sec-head { display: flex; align-items: baseline; gap: 16px; padding: 40px 0 0; }
.lake-cat .sec-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); margin: 0; }
.lake-cat .sec-head .cnt { font-family: var(--lake-mono); font-size: 11.5px; color: var(--faint); }

/* search bar — icon cell, input, honest shown count */
.lake-cat .cat-search { display: flex; align-items: center; gap: 0; border: 1px solid var(--body); margin-top: 22px; background: var(--bg); }
.lake-cat .cat-search .cs-icon { flex: none; width: 52px; text-align: center; font-size: 19px; color: var(--faint); border-right: 1px solid var(--hair); align-self: stretch; display: flex; align-items: center; justify-content: center; }
.lake-cat .cat-search input { flex: 1; border: none; background: none; font: inherit; font-size: 15px; color: var(--body); padding: 15px 18px; border-radius: 0; min-width: 0; }
.lake-cat .cat-search input:focus { outline: none; }
.lake-cat .cat-search:focus-within { outline: 2px solid var(--blue); outline-offset: -1px; }
.lake-cat .cat-search input::placeholder { color: var(--faint); }
.lake-cat .cat-search .cs-count { flex: none; font-family: var(--lake-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 0 18px; border-left: 1px solid var(--hair); align-self: stretch; display: flex; align-items: center; white-space: nowrap; }

/* shelf filter chips */
.lake-cat .legend-bar { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.lake-cat .legend-bar .lg-h { font-family: var(--lake-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.lake-cat .lg-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--soft); background: none; border: 1px solid transparent; padding: 4px 10px; font-family: inherit; cursor: pointer; }
.lake-cat .lg-item .sq { width: 10px; height: 10px; }
.lake-cat .lg-item:hover { border-color: var(--hair-2); }
.lake-cat .lg-item.on { border-color: var(--body); color: var(--ink); font-weight: 700; }

/* dataset card grid */
.lake-cat .card-grid { display: grid; grid-template-columns: 1fr 1fr; border-left: 1px solid var(--hair); border-top: 1px solid var(--hair); margin: 40px 0 80px; }
.lake-cat .dcard { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 26px 28px 24px; position: relative; background: var(--bg); }
.lake-cat .dcard:hover { background: var(--bg-tint); }
.lake-cat .dcard .cbar { position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.lake-cat .dcard .c-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.lake-cat .dcard .c-cat { font-family: var(--lake-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.lake-cat .dcard .c-status { margin-left: auto; font-family: var(--lake-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; }
.lake-cat .c-status.live { background: var(--wash-live); color: var(--live-deep); }
.lake-cat .c-status.pending { background: var(--wash-slate); color: var(--slate-deep); outline: 1px dashed #b2b8c8; }
.lake-cat .dcard h3 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.lake-cat .dcard p { font-size: 13.5px; color: var(--soft); margin: 8px 0 0; min-height: 40px; }
.lake-cat .dcard .c-foot { display: flex; gap: 22px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hair); }
.lake-cat .cf { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.lake-cat .cf b { display: block; font-size: 16px; color: var(--body); font-weight: 700; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.lake-cat .cat-empty { padding: 40px; color: var(--faint); grid-column: 1 / -1; }

/* quiet hover motion, honoured only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
    .lake-cat .dcard { transition: background .18s ease; }
    .lake-cat .lg-item { transition: border-color .18s ease, color .18s ease; }
}

/* responsive — mirrors the exemplar's breakpoints */
@media (max-width: 880px) {
    .lake-cat .card-grid { grid-template-columns: 1fr; }
    .lake-cat .hero-grid { grid-template-columns: 1fr; }
    .lake-cat .hero-side { border-left: none; border-top: 1px solid var(--hair); flex-direction: row; flex-wrap: wrap; }
    .lake-cat .hero h1 { font-size: 44px; }
}

@media (max-width: 640px) {
    .lake-cat .hero-main { padding: 40px 0 32px; }
    .lake-cat .hero h1 { font-size: 34px; }
    .lake-cat .hero p { font-size: 15px; }
    .lake-cat .sec-head h2 { font-size: 22px; }
}

/* ============================================================
   S6 — ACCESS AREA (My API keys + Session & grants).
   Ported from the blessed exemplar's access block (det-head,
   acc-grid/acc-nav, kv sheet, ops table + callouts — sections
   "index detail head", "access", "ops sheets" of
   docs/working/visuals/lake-ui-redesign.html), kept in the
   exemplar's compact notation for line-by-line traceability.
   Adaptations only: --mono becomes --lake-mono; the exemplar's
   inline-styled nav heading becomes .acc-nav-h; .blk-h.bare
   replaces the exemplar's inline border-stripping; the sticky
   nav respects the real topline height. Appended as one block
   so parallel slices merge trivially.
   ============================================================ */
.det-head { border-bottom: 1px solid var(--body); padding: 44px 0 34px; }
.det-head .crumbs { margin-bottom: 20px; }
.det-head h1 { font-size: 44px; font-weight: 700; letter-spacing: -.025em; color: var(--ink); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.det-head .sub { margin-top: 12px; color: var(--soft); font-size: 16px; max-width: 680px; }

.acc-grid { display: grid; grid-template-columns: 230px 1fr; gap: 52px; padding: 44px 0 80px; flex: 1; }
@media (max-width: 800px) { .acc-grid { grid-template-columns: minmax(0,1fr); } }
.acc-nav { position: sticky; top: 96px; align-self: start; background: var(--bg); }
@media (max-width: 800px) { .acc-nav { position: static; padding-bottom: 12px; border-bottom: 1px solid var(--hair); } }
.acc-nav a { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--soft); text-decoration: none; padding: 7px 0 7px 14px; border-left: 2px solid var(--hair); cursor: pointer; }
.acc-nav a:hover { color: var(--ink); border-left-color: var(--hot); }
.acc-nav a.on { color: var(--ink); font-weight: 700; border-left-color: var(--hot); }
.acc-nav-h { font-family: var(--lake-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin: 4px 0 8px; font-weight: 700; }

.blk-h { font-family: var(--lake-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--body); padding-bottom: 8px; font-weight: 700; }
.blk-h.bare { border: none; padding: 0; margin: 0; }
.acc-body-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

/* the key/value session sheet */
.kv { border: 1px solid var(--hair); max-width: 720px; }
.kv .kv-row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--hair); }
.kv .kv-row:last-child { border-bottom: none; }
.kv .k { padding: 12px 18px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); background: var(--bg-tint); border-right: 1px solid var(--hair); font-weight: 700; }
.kv .v { padding: 12px 18px; font-size: 13.5px; color: var(--body); }
.kv-aside { font-size: 12px; color: var(--faint); margin-left: 10px; }
@media (max-width: 640px) { .kv .kv-row { grid-template-columns: minmax(0,1fr); } .kv .k { border-right: none; } }
.scope-pill { display: inline-block; font-family: var(--lake-mono); font-size: 11px; background: var(--wash-blue); color: var(--blue-deep); padding: 3px 9px; margin: 2px 6px 2px 0; }
.authority-list { list-style: none; margin: 0; padding: 0; display: inline-block; vertical-align: top; }
.authority-list li { padding: 1px 0; }

.mono { font-family: var(--lake-mono); font-size: 11.5px; }
.strong { color: var(--ink); font-weight: 700; }
.dim { color: var(--faint); }

.acc-note { margin-top: 16px; font-size: 13px; color: var(--soft); max-width: 640px; line-height: 1.6; }
.acc-note b { color: var(--ink); }
.acc-signout { margin-top: 20px; }
.acc-loading { color: var(--faint); font-size: 13px; }

/* the ops sheet + table, in the consumer register (hairline borders) */
.sheet { background: #fff; border: 1px solid var(--hair); margin-bottom: 20px; }
.sheet-h { padding: 10px 16px; border-bottom: 1px solid var(--hair); display: flex; align-items: center; gap: 12px; }
.sheet-h h4 { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); font-weight: 700; margin: 0; }
.sheet-h-action { margin-left: auto; }

table.ot { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.ot th { text-align: left; padding: 7px 16px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--hair); font-weight: 700; background: var(--bg-tint); }
table.ot td { padding: 9px 16px; border-bottom: 1px solid #eef0f5; color: var(--soft); vertical-align: middle; }
table.ot tr:last-child td { border-bottom: none; }
table.ot .empty { padding: 34px 24px; text-align: center; color: var(--faint); font-size: 12.5px; }
.ot-actions { text-align: right; white-space: nowrap; }
.ot-actions .obtn + .obtn { margin-left: 8px; }
.key-name { display: block; margin-top: 4px; font-size: 11px; color: var(--faint); }

.keycode { font-family: var(--lake-mono); background: var(--ops-bg); border: 1px solid var(--ops-hair); padding: 3px 8px; font-size: 11px; color: var(--ink); }

.obtn { font-size: 11.5px; font-weight: 700; background: #fff; border: 1px solid var(--hair-2); color: var(--body); padding: 6px 13px; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.obtn:hover { border-color: var(--blue); color: var(--blue-deep); }
.obtn.primary { background: var(--hot); border-color: var(--hot); color: #fff; }
.obtn.primary:hover { background: var(--hot-deep); }
.obtn.danger:hover { border-color: var(--hot); color: var(--hot-deep); }
.obtn[disabled] { opacity: .45; cursor: not-allowed; }

.callout { background: var(--wash-slate); border: 1px solid #c9cedd; border-left: 5px solid var(--slate); padding: 12px 15px; font-size: 12.5px; color: #50556a; margin: 14px 16px 16px; line-height: 1.6; }
.callout b { color: var(--ink); }
.callout.blue { background: var(--wash-blue); border-color: #b9cdf4; border-left-color: var(--blue); color: #33437c; }

.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; }
.tag .sq { width: 8px; height: 8px; flex: none; }
.tag.live { background: var(--wash-live); color: var(--live-deep); }
.tag.live .sq { background: var(--live); }
.tag.off { background: var(--wash-slate); color: var(--slate-deep); }
.tag.off .sq { background: var(--slate); }

/* narrow viewports: the key table scrolls inside its sheet instead of
   pushing the whole column wide */
.sheet { overflow-x: auto; }
table.ot { min-width: 560px; }
.acc-grid > div { min-width: 0; }
   S5 · DATASET DETAIL + TRY-IT CONSOLE — appended as a distinct
   block (S3/S4 also append to this file; keep this comment
   fence intact). Ported from the blessed exemplar's viewDataset:
   crumbs, shelf-coloured detail head with the live/schema-only
   badge, fact strip, schema table, SDK operations list, endpoint
   codeblock and the try-it console with its navy response block
   (success and error outcomes share the block; the status code
   carries the weight). All selectors are scoped under .lake-det
   so they cannot collide with parallel slices — the only
   exception is the card-grid hover arrow, scoped under the
   S4-owned .lake-cat root because the affordance belongs to the
   catalogue cards that link here.
   ============================================================ */

/* catalogue cards now link through — the exemplar's hover arrow */
.lake-det { display: block; }
.lake-cat a.dcard { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.lake-cat .dcard h3 .go { opacity: 0; margin-left: 8px; color: var(--hot); font-weight: 400; }
.lake-cat .dcard:hover .go, .lake-cat .dcard:focus-visible .go { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .lake-cat .dcard h3 .go { transition: opacity .12s ease; }
}

/* detail head */
.lake-det .det-head { border-bottom: 1px solid var(--body); padding: 44px 0 34px; }
.lake-det .crumbs { margin-bottom: 20px; }
.lake-det .det-head h1 { font-size: 44px; font-weight: 700; letter-spacing: -.025em; color: var(--ink); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0; }
.lake-det .det-head .sub { margin: 12px 0 0; color: var(--soft); font-size: 16px; max-width: 680px; line-height: 1.6; }
.lake-det .c-status { font-family: var(--lake-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; }
.lake-det .c-status.live { background: var(--wash-live); color: var(--live-deep); }
.lake-det .c-status.pending { background: var(--wash-slate); color: var(--slate-deep); outline: 1px dashed #b2b8c8; }
.lake-det .det-facts { display: flex; margin-top: 26px; border: 1px solid var(--hair); border-right: none; flex-wrap: wrap; }
.lake-det .det-facts .f { padding: 12px 22px; border-right: 1px solid var(--hair); font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; flex: 1 1 auto; }
.lake-det .det-facts .f b { display: block; font-size: 14px; color: var(--body); font-weight: 700; text-transform: none; letter-spacing: 0; margin-top: 1px; font-variant-numeric: tabular-nums; }
.lake-det .det-mono { font-family: var(--lake-mono); font-size: .92em; }

/* two-column body */
.lake-det .det-cols { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 44px; padding: 36px 0 80px; align-items: start; }
.lake-det .blk-h { font-family: var(--lake-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--body); padding-bottom: 8px; margin-bottom: 2px; font-weight: 700; }
.lake-det .blk-h.ops-h { margin: 32px 0 2px; }
.lake-det .blk-h.ep-h { margin: 32px 0 14px; }
.lake-det .blk-h.tryit-h { margin-bottom: 14px; }

/* schema table */
.lake-det .schema { border-bottom: 1px solid var(--hair); }
.lake-det .schema-row { display: grid; grid-template-columns: 165px 115px 1fr; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--hair); font-size: 13.5px; align-items: baseline; }
.lake-det .schema-row:last-child { border-bottom: none; }
.lake-det .f-name { font-family: var(--lake-mono); font-weight: 700; font-size: 12.5px; color: var(--ink); }
.lake-det .f-type { font-family: var(--lake-mono); font-size: 11px; color: var(--blue-deep); background: var(--wash-blue); padding: 2px 7px; justify-self: start; }
.lake-det .f-type.enum { color: var(--hot-deep); background: var(--wash-hot); }
.lake-det .f-note { color: var(--soft); font-size: 13px; }
.lake-det .f-note .vals { font-family: var(--lake-mono); font-size: 10.5px; color: var(--faint); display: block; margin-top: 2px; }
.lake-det .nullable { font-family: var(--lake-mono); font-size: 9.5px; color: var(--faint); border: 1px dashed var(--hair-2); padding: 1px 5px; margin-left: 6px; white-space: nowrap; }

/* SDK operations list */
.lake-det .oplist { border-bottom: 1px solid var(--hair); }
.lake-det .op-row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--hair); align-items: baseline; }
.lake-det .op-row:last-child { border-bottom: none; }
.lake-det .op-verb { font-family: var(--lake-mono); font-size: 10px; font-weight: 700; color: var(--ink); background: var(--wash-bright); padding: 2px 0; text-align: center; }
.lake-det .op-name { font-family: var(--lake-mono); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.lake-det .op-note { font-size: 12.5px; color: var(--soft); margin-top: 1px; }

/* endpoint codeblock */
.lake-det .codeblock { background: var(--ink); color: #dde6f9; font-family: var(--lake-mono); font-size: 12.5px; padding: 16px 18px; overflow-x: auto; margin: 0; line-height: 1.6; white-space: pre; }
.lake-det .codeblock .hl { color: var(--bright); }
.lake-det .codeblock .c { color: #7c90c6; }

/* try-it console */
.lake-det .tryit { border: 1px solid var(--body); }
.lake-det .tryit-bar { background: var(--ink); color: #fff; padding: 11px 16px; display: flex; align-items: center; gap: 10px; font-family: var(--lake-mono); font-size: 12px; }
.lake-det .tryit-bar .verb { background: var(--bright); color: var(--ink); padding: 2px 8px; font-weight: 700; font-size: 11px; flex: none; }
.lake-det .tryit-bar .path { opacity: .92; overflow-x: auto; white-space: nowrap; }
.lake-det .tryit-body { padding: 20px; }
.lake-det .param { display: grid; grid-template-columns: 125px 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.lake-det .param label { font-family: var(--lake-mono); font-size: 11.5px; color: var(--soft); }
.lake-det .param input { font-family: var(--lake-mono); font-size: 13px; padding: 8px 10px; border: 1px solid var(--hair-2); background: var(--bg); color: var(--body); width: 100%; border-radius: 0; }
.lake-det .param input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.lake-det .run-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
.lake-det .run-btn { display: inline-block; background: var(--hot); border: none; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 11px 24px; cursor: pointer; text-decoration: none; font-family: inherit; }
.lake-det .run-btn:hover { background: var(--hot-deep); }
.lake-det .run-btn[disabled] { background: var(--hair-2); cursor: not-allowed; }
.lake-det .run-btn.route { background: var(--ink); }
.lake-det .run-btn.route:hover { background: #0d1f75; }
.lake-det .latency { font-family: var(--lake-mono); font-size: 11px; color: var(--faint); }
.lake-det .try-input-error { margin: 12px 0 0; font-size: 13px; color: var(--hot-deep); }

/* response block — success and error share it; the status code carries
   the weight in the existing deep-blue accent. No new colour language. */
.lake-det .resp { margin-top: 18px; background: var(--ink); color: #dde6f9; font-family: var(--lake-mono); font-size: 12px; line-height: 1.55; max-height: 420px; overflow: auto; }
.lake-det .resp .resp-head { position: sticky; top: 0; background: #0d1f75; color: #c5d3f4; padding: 7px 14px; font-size: 11px; display: flex; gap: 14px; flex-wrap: wrap; }
.lake-det .resp .resp-head .code { color: var(--bright); font-weight: 700; }
.lake-det .resp .resp-head .code.err { color: #fff; background: var(--hot-deep); padding: 0 8px; }
.lake-det .resp pre { padding: 14px; white-space: pre; margin: 0; font-family: inherit; }
.lake-det .resp .resp-hint { padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.14); color: #aec0ea; font-size: 11px; }
.lake-det .resp .resp-hint a { color: var(--bright); text-decoration: underline; }

/* in-flight spinner — static under reduced motion */
.lake-det .spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; vertical-align: -2px; margin-right: 7px; }
@media (prefers-reduced-motion: no-preference) {
    .lake-det .spinner { animation: lakeDetSpin .7s linear infinite; }
    @keyframes lakeDetSpin { to { transform: rotate(360deg); } }
}
@media (prefers-reduced-motion: reduce) {
    .lake-det .spinner { border-top-color: #fff; opacity: .55; }
}

/* the honest no-console panels (schema-only, resolver-routed, unwired) */
.lake-det .notlive { border: 1px dashed #b2b8c8; padding: 26px; background: var(--wash-slate); }
.lake-det .notlive h5 { font-size: 16px; margin: 0 0 8px; color: var(--ink); }
.lake-det .notlive p { color: #4d5266; font-size: 13.5px; max-width: 480px; margin: 0; line-height: 1.6; }
.lake-det .notlive .rc { font-family: var(--lake-mono); font-size: 12.5px; margin-top: 14px; color: var(--body); }
.lake-det .notlive .rc b { color: var(--hot-deep); font-size: 15px; }
.lake-det .notlive .notlive-run { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* responsive — mirrors the exemplar's breakpoints */
@media (max-width: 900px) {
    .lake-det .det-cols { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 640px) {
    .lake-det .det-head { padding: 26px 0 22px; }
    .lake-det .det-head h1 { font-size: 29px; }
    .lake-det .schema-row { grid-template-columns: minmax(0,1fr); gap: 4px; }
}

/* ============================================================
   S7 — /PLATFORM OPERATIONS WORKSHEET KIT (this block is owned
   by the S7 slice; keep the ops kit blocks — S7 then S8 —
   last in the file). Ported from the
   blessed exemplar's ops styles (docs/working/visuals/
   lake-ui-redesign.html, search "/platform — THE OPERATIONS
   WORKSHEET"), kept in the exemplar's compact notation for
   line-by-line traceability. Adaptations only: `--mono` →
   `--lake-mono`; buttons/links normalised for Blazor anchors;
   a sanctioned error register (.tag.bad) added for Failed /
   EndedWithErrors rows in the same key as .gate-error; square
   form controls (.olab/.oinput) for the operator worksheets.
   ============================================================ */

/* grouped sub-tab strip under the ops tabs */
.ops-subtabs { background: #fff; border-bottom: 1px solid var(--ops-hair); }
.ops-subtabs-in { max-width: 1220px; margin: 0 auto; padding: 0 32px; display: flex; gap: 2px; }
.ops-subtabs a { background: none; border: none; padding: 10px 16px; font-size: 12.5px; color: var(--soft); font-family: var(--lake-mono); text-decoration: none; }
.ops-subtabs a:hover { color: var(--ink); background: var(--bg-tint); }
.ops-subtabs a.on { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
.ops-subtabs .st-new { font-size: 8.5px; color: var(--hot-deep); background: var(--wash-hot); padding: 1px 5px; margin-left: 6px; letter-spacing: .08em; }
.ops-tabs .tb-badge { font-family: var(--lake-mono); font-size: 10px; background: var(--ops-bg); padding: 1px 7px; margin-left: 7px; color: var(--soft); }

/* worksheet frame + page header */
.ops-main { max-width: 1220px; margin: 0 auto; padding: 28px 32px 70px; }
.ops-h { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; flex-wrap: wrap; }
.ops-h h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.ops-h .pth { font-family: var(--lake-mono); font-size: 11px; color: var(--faint); }
.ops-sub { color: var(--soft); font-size: 13px; margin: 0 0 22px; max-width: 760px; }
.ops-sub .mono, .ops-sub b { color: var(--ink); }

/* counter strip */
.counter-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border: 1px solid var(--ops-hair); border-right: none; background: #fff; margin-bottom: 24px; }
.counter { border-right: 1px solid var(--ops-hair); padding: 16px 20px; }
.counter .cl { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; display: flex; align-items: center; gap: 7px; }
.counter .cl .sq { width: 9px; height: 9px; flex: none; background: var(--blue); }
.counter .cn { font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.counter .cn.zero { color: var(--faint); }
.counter .cs { font-size: 11.5px; color: var(--soft); margin-top: 2px; }

/* sheets — the worksheet's card unit */
.sheet { background: #fff; border: 1px solid var(--ops-hair); margin-bottom: 20px; }
.sheet-h { padding: 10px 16px; border-bottom: 1px solid var(--ops-hair); display: flex; align-items: center; gap: 12px; }
.sheet-h h4 { margin: 0; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); font-weight: 700; }
.sheet-h .sh-r { margin-left: auto; font-family: var(--lake-mono); font-size: 10.5px; color: var(--faint); }
.sheet-body { padding: 16px; }

/* operator tables */
table.ot { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.ot th { text-align: left; padding: 7px 16px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--ops-hair); font-weight: 700; background: var(--bg-tint); }
table.ot td { padding: 9px 16px; border-bottom: 1px solid #eef0f5; color: var(--soft); vertical-align: middle; }
table.ot tr:last-child td { border-bottom: none; }
table.ot tr.clickable { cursor: pointer; }
table.ot tr.clickable:hover td { background: var(--wash-blue); }
.ot-scroll { overflow-x: auto; }
.strong { color: var(--ink); font-weight: 700; }
.dim { color: var(--faint); }
.mono { font-family: var(--lake-mono); font-size: 11.5px; }
.num { font-variant-numeric: tabular-nums; text-align: right; color: var(--body); font-weight: 600; }

/* status chips — real vocabulary only. live=Running, pending=Queued/Paused,
   done=Ended/Closed, drain=in-flight activity, stopped=controlled stops,
   off=disabled/archived, bad=Failed/EndedWithErrors/Open breaker (the
   sanctioned error key, matching .gate-error). */
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; white-space: nowrap; }
.tag .sq { width: 8px; height: 8px; flex: none; }
.tag.live    { background: var(--wash-live);  color: var(--live-deep); }  .tag.live .sq    { background: var(--live); }
.tag.done    { background: var(--wash-live);  color: var(--live-deep); }  .tag.done .sq    { background: var(--live); }
.tag.drain   { background: var(--wash-bright); color: var(--bright-deep); } .tag.drain .sq  { background: var(--bright); }
.tag.stopped { background: #edeff5; color: #5f6579; }                      .tag.stopped .sq { background: #979db0; }
.tag.pending { background: var(--wash-slate); color: var(--slate-deep); }  .tag.pending .sq { background: var(--slate); }
.tag.off     { background: var(--wash-slate); color: var(--slate-deep); }  .tag.off .sq     { background: var(--slate); }
.tag.bad     { background: #fdf1f0; color: #8f1d19; }                      .tag.bad .sq     { background: #c4302b; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes opsPulse { 50% { opacity: .35; } }
  .tag.drain .sq, .tag.live.pulse .sq { animation: opsPulse 1.6s infinite; }
}

/* progress bars */
.bar { background: #e8eaf2; height: 8px; width: 100%; max-width: 210px; }
.bar .fill { height: 100%; background: var(--live); }
.bar .fill.drain { background: var(--bright); }
.bar-line { display: flex; align-items: center; gap: 12px; }
.bar-line .bn { font-family: var(--lake-mono); font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.ingbar { background: #e8eaf2; height: 10px; width: 100%; max-width: 320px; }
.ingbar .fill { height: 100%; background: var(--live); }

/* designed empty state — state the fact, one next action only */
.empty { padding: 34px 24px; text-align: center; color: var(--faint); font-size: 12.5px; }
.empty .note { display: inline-block; margin-top: 8px; background: var(--wash-blue); color: var(--blue-deep); font-weight: 600; padding: 5px 12px; font-size: 11.5px; }

/* worksheet buttons */
.obtn { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; background: #fff; border: 1px solid var(--hair-2); color: var(--body); padding: 6px 13px; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; text-decoration: none; font-family: var(--lake-sans); }
.obtn:hover { border-color: var(--blue); color: var(--blue-deep); }
.obtn.primary { background: var(--hot); border-color: var(--hot); color: #fff; }
.obtn.primary:hover { background: var(--hot-deep); color: #fff; }
.obtn.danger:hover { border-color: #c4302b; color: #8f1d19; }
.obtn[disabled], .obtn:disabled { opacity: .45; cursor: not-allowed; }

.keycode { font-family: var(--lake-mono); background: var(--ops-bg); border: 1px solid var(--ops-hair); padding: 3px 8px; font-size: 11px; color: var(--ink); }

/* callouts */
.callout { background: var(--wash-slate); border: 1px solid #c9cedd; border-left: 5px solid var(--slate); padding: 12px 15px; font-size: 12.5px; color: #50556a; margin: 14px 16px 16px; line-height: 1.6; }
.callout b { color: var(--ink); }
.callout.blue { background: var(--wash-blue); border-color: #b9cdf4; border-left-color: var(--blue); color: #33437c; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }

/* narrative feed */
.feed .fr { display: grid; grid-template-columns: 70px 14px 1fr; gap: 12px; padding: 8px 16px; font-size: 12.5px; border-bottom: 1px solid #eef0f5; align-items: baseline; }
.feed .fr:last-child { border-bottom: none; }
.feed .t { font-family: var(--lake-mono); font-size: 10.5px; color: var(--faint); }
.feed .m b { color: var(--ink); font-weight: 700; }
.feed .g { font-size: 9px; text-align: center; }
.fr.ok .g { color: var(--live); } .fr.warn .g { color: #6e7590; } .fr.info .g { color: var(--blue); } .fr.stop .g { color: #979db0; }

/* key/value ledger + pills */
.kv { border: 1px solid var(--hair); max-width: 720px; }
.kv .kv-row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--hair); }
.kv .kv-row:last-child { border-bottom: none; }
.kv .k { padding: 12px 18px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); background: var(--bg-tint); border-right: 1px solid var(--hair); font-weight: 700; }
.kv .v { padding: 12px 18px; font-size: 13.5px; color: var(--body); }
.scope-pill { display: inline-block; font-family: var(--lake-mono); font-size: 11px; background: var(--wash-blue); color: var(--blue-deep); padding: 3px 9px; margin: 2px 6px 2px 0; }

/* square worksheet form controls */
.olab { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin: 0 0 5px; }
.oinput, select.oinput, input.oinput, textarea.oinput { width: 100%; font-family: var(--lake-mono); font-size: 12.5px; padding: 9px 12px; border: 1px solid var(--hair-2); border-radius: 0; background: var(--bg); color: var(--body); box-sizing: border-box; }
.oinput:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.oinput:disabled { background: var(--bg-tint); color: var(--faint); }
.ocheck { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--soft); cursor: pointer; }
.ofield { margin-bottom: 14px; min-width: 0; }
.ofield-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.oactions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }

/* honest inline notices — real status, one next action */
.ops-alert { border: 1px solid #c4302b; background: #fdf1f0; color: #8f1d19; font-size: 13px; line-height: 1.5; padding: 10px 12px; margin-bottom: 16px; }
.ops-alert a { color: #8f1d19; text-decoration: underline; }
.ops-note { border: 1px solid var(--ops-hair); background: #fff; border-left: 5px solid var(--blue); color: var(--soft); font-size: 12.5px; padding: 10px 12px; margin-bottom: 16px; }
.ops-note a { color: var(--blue-deep); }

/* secret reveal strip (key mint / rotate) */
.secret-strip { border: 1px solid var(--blue); background: var(--wash-blue); padding: 14px 16px; margin-bottom: 16px; }
.secret-strip .ss-t { font-size: 12.5px; color: var(--blue-deep); margin-bottom: 8px; }
.secret-strip .ss-t b { color: var(--ink); }
.secret-strip code { display: block; font-family: var(--lake-mono); font-size: 12px; background: #fff; border: 1px solid var(--hair-2); padding: 9px 12px; margin-bottom: 10px; word-break: break-all; color: var(--ink); }

/* responsive */
@media (max-width: 720px) {
  .ops-main { padding-left: 16px; padding-right: 16px; }
  .ops-subtabs-in { padding: 0 16px; overflow-x: auto; }
  .ops-subtabs a { white-space: nowrap; }
  .sheet-h { flex-wrap: wrap; row-gap: 6px; }
  .ofield-row, .kv .kv-row { grid-template-columns: 1fr; }
  .kv .k { border-right: none; border-bottom: 1px solid var(--hair); }
  table.ot { min-width: 640px; }
  .sheet { overflow-x: auto; }
}

/* ============================================================
   S8 — RECONCILER CONTROL (/platform/reconcilers). Appended by
   the S8 slice, extending the S7 ops kit above (sheets, tags,
   bars, .oinput, .obtn, callouts are reused from S7). Ported
   from the blessed exemplar's "reconciler control" styles
   (docs/working/visuals/lake-ui-redesign.html, search
   ".rec-card"), kept in the exemplar's compact notation for
   line-by-line traceability. Adaptations only: `--mono` →
   `--lake-mono`; the confirm-strip input leans on .oinput.
   ============================================================ */

/* per-reconciler card */
.rec-card { background: #fff; border: 1px solid var(--ops-hair); margin-bottom: 20px; }
.rec-head { padding: 14px 18px; border-bottom: 1px solid var(--ops-hair); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rec-head h4 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.rec-head .rh-id { font-family: var(--lake-mono); font-size: 11px; color: var(--faint); }
.rec-body { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .rec-body { grid-template-columns: minmax(0,1fr); }
    .rec-col + .rec-col { border-left: none; border-top: 1px solid var(--ops-hair); } }
.rec-col { padding: 18px; }
.rec-col + .rec-col { border-left: 1px solid var(--ops-hair); }
.rec-col .rc-h { font-family: var(--lake-mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 12px; }
.state-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eef0f5; font-size: 12.5px; align-items: center; }
.state-row:last-child { border-bottom: none; }
.state-row .sk { font-family: var(--lake-mono); font-size: 11px; color: var(--faint); }
.state-row .sv { color: var(--body); font-weight: 600; }

/* current-vs-requested gate diff */
.diff { font-family: var(--lake-mono); font-size: 11.5px; border: 1px solid var(--ops-hair); margin-top: 14px; }
.diff .dr { display: grid; grid-template-columns: 130px 1fr 24px 1fr; gap: 8px; padding: 7px 12px; border-bottom: 1px solid #eef0f5; align-items: center; }
.diff .dr:last-child { border-bottom: none; }
.diff .dk { color: var(--faint); }
.diff .old { color: var(--slate-deep); }
.diff .arr { color: var(--faint); text-align: center; }
.diff .new { color: var(--hot-deep); font-weight: 700; }
.diff .same { color: var(--faint); }

/* typed-confirmation commit strip */
.confirm-strip { border-top: 1px solid var(--ops-hair); background: var(--bg-tint); padding: 14px 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.confirm-strip label { font-family: var(--lake-mono); font-size: 11px; color: var(--soft); }

/* gate pills */
.gate-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--lake-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 4px 10px; border: 1px solid var(--hair-2); }
.gate-pill .dot { width: 8px; height: 8px; }
.gate-pill.off { color: var(--slate-deep); } .gate-pill.off .dot { background: var(--slate); }
.gate-pill.on { color: var(--live-deep); border-color: var(--live); } .gate-pill.on .dot { background: var(--live); }

/* responsive */
@media (max-width: 720px) {
  .diff { overflow-x: auto; }
  .diff .dr { min-width: 480px; }
  .confirm-strip input { width: 100% !important; max-width: 260px; }
  .state-row { grid-template-columns: 1fr; gap: 3px; }
}
   S9 — STATES AND MOTION.
   The final sweep: loading skeletons for the descriptor-driven
   catalogue surfaces, the session-expiry band, the designed
   empty state shared by the operator tables, the landing's
   scroll reveals and stat count-up, and the 375px corrections.
   Ported from the blessed exemplar (docs/working/visuals/
   lake-ui-redesign.html — `.sk-b` / `.expired-band` / `.empty`
   / `ldEnhance`). Every animation added here sits behind
   prefers-reduced-motion: no-preference.
   ============================================================ */

/* skeleton placeholders — hairline grey blocks; the pulse sits behind
   prefers-reduced-motion so reduced users get static placeholders */
.sk-b { background: var(--hair); height: 12px; margin-bottom: 10px; }
.sk-card { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 26px 28px 24px; background: var(--bg); }
/* The skeleton borrows the real grids — `.lake-cat .card-grid` and
   `.lake-det .det-cols`, responsive rules and all — so the placeholder sits
   exactly where the content will, and there is one grid to maintain. Only the
   section's own top offset differs, because the skeleton has no hero above it. */
.lake-cat .lake-sk { padding-top: 44px; }

@media (prefers-reduced-motion: no-preference) {
    @keyframes skpulse { 50% { opacity: .45; } }
    .sk-b { animation: skpulse 1.2s ease-in-out infinite; }
}

/* session-expiry band — slim, full-width, top of the shell. States the
   fact once and carries the single next action. */
.expired-band { background: var(--ink); color: #fff; }
.expired-in { max-width: 1220px; margin: 0 auto; padding: 9px 32px; display: flex; align-items: center; gap: 13px; font-family: var(--lake-mono); font-size: 11.5px; letter-spacing: .03em; flex-wrap: wrap; }
.expired-in .dot { width: 8px; height: 8px; background: var(--slate); flex: none; }
.expired-in .wb-exit { margin-left: auto; }

/* designed empty state for data-driven tables — state the fact, no
   apology, one real next action where one exists */
td.empty-cell { padding: 0; }
.empty .note { display: inline-block; margin-top: 8px; background: var(--wash-blue); color: var(--blue-deep); font-weight: 600; padding: 5px 12px; font-size: 11.5px; }
.empty .note a { color: var(--blue-deep); text-decoration: underline; }

/* landing scroll reveals. The hero cascade above is CSS-only; these need
   an IntersectionObserver, so they hang off the .js-reveal root class set
   by js/lake-landing.js. Without JS, or under reduced motion, the
   sections render fully visible and static. */
@media (prefers-reduced-motion: no-preference) {
    .js-reveal .ld [data-reveal] { opacity: 0; transform: translateY(16px); }
    .js-reveal .ld [data-reveal].in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
    .js-reveal .ld [data-reveal-kids] > * { opacity: 0; transform: translateY(18px); }
    .js-reveal .ld [data-reveal-kids].in > * { opacity: 1; transform: none; transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1); }
    .js-reveal .ld [data-reveal-kids].in > :nth-child(2) { transition-delay: .08s; }
    .js-reveal .ld [data-reveal-kids].in > :nth-child(3) { transition-delay: .16s; }
    .js-reveal .ld [data-reveal-kids].in > :nth-child(4) { transition-delay: .24s; }
    .js-reveal .ld [data-reveal-kids].in > :nth-child(5) { transition-delay: .32s; }
    .js-reveal .ld [data-reveal-kids].in > :nth-child(6) { transition-delay: .4s; }
    .js-reveal .ld [data-reveal-kids].in > :nth-child(7) { transition-delay: .48s; }
    .js-reveal .ld [data-reveal-kids].in > :nth-child(8) { transition-delay: .56s; }

    /* the eyebrow hairline draws itself once its section arrives */
    .js-reveal .ld [data-reveal] .eyebrow::before,
    .js-reveal .ld [data-reveal-kids] .eyebrow::before { transform: scaleX(0); transform-origin: 0 50%; }
    .js-reveal .ld [data-reveal].in .eyebrow::before,
    .js-reveal .ld [data-reveal-kids].in .eyebrow::before { transform: scaleX(1); transition: transform .7s cubic-bezier(.22,.61,.36,1) .3s; }
}

/* 375px corrections — the narrow sweep. Tables scroll inside their own
   container, never the viewport; tab strips scroll horizontally; the
   shell frame tightens its gutters. */
@media (max-width: 520px) {
    .lake-app .frame { padding: 0 16px; }
    .expired-in { padding: 9px 16px; gap: 9px; }
    .expired-in .wb-exit { margin-left: 0; }
    .ops-top-in, .works-band-in { padding-left: 16px; padding-right: 16px; }
    .ops-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .ops-tabs a { white-space: nowrap; }
    .top-tabs { overflow-x: auto; }
    .top-tabs a { white-space: nowrap; }
    .lake-cat .lake-sk { padding-top: 28px; }
    .topline-in { flex-wrap: wrap; row-gap: 8px; }
    .top-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
    .top-right .acct-chip, .top-right button { white-space: nowrap; }
}


/* ── Docs ──────────────────────────────────────────────────────────────────
   Ported from the blessed exemplar (viewDocs). The .codeblock rules already
   existed; these are the shell, the sticky section nav and one addition —
   .doc-note, for stating plainly where a documented step does not yet work.
   The site prints the EPC zero rather than stubbing it, and a documented flow
   that cannot be followed deserves the same treatment. */
.lake-app .docs { display: grid; grid-template-columns: 230px 1fr; gap: 52px; padding: 44px 0 80px; }
.lake-app .docs-nav { position: sticky; top: 96px; align-self: start; }
.lake-app .docs-nav .dn-h { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin: 20px 0 8px; }
.lake-app .docs-nav .dn-h:first-child { margin-top: 0; }
.lake-app .docs-nav a { display: block; font-size: 13.5px; color: var(--soft); text-decoration: none; padding: 4px 0 4px 14px; border-left: 2px solid var(--hairline); }
.lake-app .docs-nav a:hover { color: var(--ink); border-left-color: var(--hot); }
.lake-app .docs-body h3 { font-size: 24px; margin: 36px 0 12px; font-weight: 700; letter-spacing: -.015em; color: var(--ink); }
.lake-app .docs-body h3:first-child { margin-top: 0; }
.lake-app .docs-body p { color: var(--soft); max-width: 640px; margin-bottom: 12px; font-size: 14.5px; }
.lake-app .docs-body code { font-family: var(--mono); font-size: 13px; }
.lake-app .doc-note { max-width: 640px; margin: 16px 0 4px; padding: 14px 16px; border-left: 3px solid var(--hot); background: rgba(0,0,0,.03); color: var(--soft); font-size: 14px; }

@media (max-width: 860px) {
    .lake-app .docs { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .lake-app .docs-nav { position: static; }
}
