/* ============================================================================
   ACCOUNTANT SUPERIOR LINEUP — THE GUIDE (/guide/ASL · public/guides/asl/)
   ----------------------------------------------------------------------------
   The third member of the guides family (guides/logbooks/, guides/dentalbooks/),
   and a deliberate sibling: SAME schema, SAME tokens, SAME white vibe — one
   white sheet on the cosmos, the family's black-metal bar, the machined-silver
   trim, navy ink, gold only where it carries meaning. The chrome (everything
   before "THE APP, COPIED") is the family's. Do not re-pick by eye.

   What is specific here: the exhibits depict the Lineup desktop client — the
   "SkyRock White" system of Dev\Accountant Superior Lineup front/styles/{tokens,
   app,board,workspace,letterhead}.css: the tab row, the Logbooks plane with its
   module cards and its drawer, the Consolidator board with its chips, towers and
   wizards, the Letterhead page, the loading page and the night theme. Every app
   class is transcribed VERBATIM under .gd-app (the owner's exact-copy rule,
   2026-08-27): the Consolidator plane's rules first (the plane the Lineup carries
   unchanged), then the desk's own at the end of the file.
   ========================================================================== */

:root {
    /* ground */
    --gd-cosmos: #0b0e1a;
    --gd-sheet: #ffffff;
    --gd-tray: #f7f7f7;
    --gd-tray-2: #ebebeb;
    --gd-line: #e4e4e4;
    --gd-line-strong: #d2d2d2;

    /* ink ladder (measured on the tray — see landing styles for the ratios) */
    --gd-text: #232731;
    --gd-muted: #3f454f;
    --gd-subtle: #545a63;
    --gd-gold-ink: #7a5e17;
    --gd-gold-ink-ws: #695114;   /* the canvas-scoped harder gold-ink */
    --gd-green-ink: #21714d;

    /* on the cosmos */
    --gd-on-dark: #FFF6F6;
    --gd-on-dark-muted: rgba(255,255,255,0.76);
    --gd-on-dark-faint: rgba(255,255,255,0.55);
    --gd-gold-light: #d9c08a;

    /* brand */
    --gd-accent: #3C486B;
    --gd-accent-hover: #2e3a56;
    --gd-accent-soft: #eef1f7;
    --gd-gold: #c2a35a;
    --gd-gold-soft: rgba(194,163,90,0.40);
    --gd-green: #2e9e6b;
    --gd-danger-ink: #b3372f;
    --gd-steel-grad: linear-gradient(-145deg, #2e3a56, #3C486B, #283350, #46557e, #2e3a56);
    --gd-silver-grad: linear-gradient(-145deg, #f4f4f4, #e0e0e0, #fcfcfc, #d8d8d8, #eeeeee);
    --gd-plate: linear-gradient(145deg, #5a6068 0%, #34383f 38%, #23272d 55%, #444a52 78%, #2b2f35 100%);
    --gd-check-hi: #d9bc72;
    --gd-check-lo: #ab8a3c;

    /* canvas kind stripes (the app's exact hues) */
    --gd-k-in: #8b97b5;
    --gd-k-roll: #2e9e6b;

    /* type */
    --gd-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --gd-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --fs-xs: 0.72rem; --fs-sm: 0.84rem; --fs-md: 0.95rem; --fs-lg: 1.12rem;
    --fs-h2: clamp(1.55rem, 3.6vw, 2.35rem);
    --fs-hero: clamp(2.4rem, 7vw, 4.4rem);

    /* space · radius · depth · focus · motion */
    --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
    --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-pill: 999px;
    --sh-rest: 0 1px 2px rgba(8,12,24,0.06);
    --sh-sheet: 0 2px 6px rgba(8,12,24,0.20), 0 22px 60px rgba(8,12,24,0.40);
    --sh-pop: 0 4px 14px rgba(8,12,24,0.28);
    --gd-ring: 0 0 0 3px rgba(60,72,107,0.70);
    --gd-ring-dark: 0 0 0 3px rgba(244,244,244,0.85);
    --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
    --dur: 160ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
figure { margin: 0; }

/* The ground is Webb's Centaurus A (owner pick, 2026-09-15): the same galaxy that
   greets the user at Consolidator's own login door, so the guide and the product
   share one sky. The file is the site's centaurus-a.jpg (already shipped for the
   hub and the Logbooks cosmos set) under the family scrim; its visible credit
   rides .gd-sky-credit (the owner's rule: Webb imagery always carries its credit). */
body {
    font-family: var(--gd-font);
    color: var(--gd-text);
    background-color: var(--gd-cosmos);
    background-image: linear-gradient(180deg, rgba(8,11,22,0.55), rgba(8,11,22,0.74)), url('/components/files/images/centaurus-a.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

.gd-sky-credit {
    position: fixed; left: 10px; bottom: 6px; z-index: 5;
    font-size: 0.62rem; color: rgba(255,255,255,0.45);
    pointer-events: none;
}

.mono { font-family: var(--gd-mono); font-variant-numeric: tabular-nums; }

a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--gd-ring-dark); border-radius: var(--r-sm); }
.gd-sheet a:focus-visible { box-shadow: var(--gd-ring); }

/* =========================== Top bar ======================================= */
/* The SkyRock Superior WHITE VIBE (owner, 2026-08-26; the 15f verdict): white
   porcelain surfaces, the machined-silver gradient as the ONE trim, navy ink.
   The guide's chrome wears it — a white rail with the brand on its brushed-
   metal placard and links as quiet navy pills; silver marks the call to
   action. Gold remains only where it carries meaning (the canvas vocabulary,
   derived/locked marks, the attention rule on notes). */
/* The guides' header is BLACK (owner, 2026-08-27): the landings' black-metal
   family bar, not the white rail — one family bar across every public door. */
.gd-top {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
    padding: 0.55rem clamp(1rem, 4vw, 2.4rem);
    background: linear-gradient(-145deg, #1c1c1c, #2a2a2a, #141414, #333333, #1c1c1c);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.gd-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.gd-brand-plate {
    width: 3.6rem; height: 1.8rem; border-radius: 8px;
    background-image: url('/components/files/icons/OfficialSkyRockWhiteLogo.svg'), var(--gd-plate);
    background-repeat: no-repeat; background-position: center; background-size: auto 1.46rem, cover;
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -1px 0 rgba(0,0,0,0.4);
}
.gd-brand-text {
    color: var(--gd-on-dark); font-weight: 800; letter-spacing: 0.08em; font-size: 1.02rem;
    display: flex; flex-direction: column; line-height: 1.05;
}
.gd-brand-sub {
    font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5); font-weight: 700;
}
.gd-nav { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.gd-nav a {
    color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.9rem; font-weight: 600;
    padding: 0.42rem 0.8rem; border-radius: var(--r-pill); border: 1px solid transparent;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.gd-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.gd-nav a.is-cta { background: var(--gd-silver-grad); color: var(--gd-accent); border-color: var(--gd-line-strong); box-shadow: var(--sh-rest); }
.gd-nav a.is-cta:hover { filter: brightness(1.04); color: var(--gd-accent); }
.gd-lang { display: inline-flex; align-items: center; }

/* =========================== Hero ========================================= */
.gd-hero {
    max-width: 76rem; margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) var(--s-5) var(--s-7);
    text-align: center;
}
.gd-hero-badge {
    display: inline-block; padding: 0.35rem 0.9rem; border-radius: var(--r-pill);
    font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--gd-on-dark); background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.45);
}
.gd-hero-title {
    margin-top: var(--s-4); font-size: var(--fs-hero); font-weight: 800;
    letter-spacing: -0.03em; line-height: 0.98; text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.gd-hero-t1 { display: block; color: var(--gd-on-dark); }
.gd-hero-t2 {
    display: block;
    background: linear-gradient(180deg, #ffffff 0%, #e6e6e6 45%, #c2c2c2 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gd-hero-lead {
    max-width: 46rem; margin: var(--s-5) auto 0; color: var(--gd-on-dark-muted);
    font-size: var(--fs-lg); line-height: 1.6;
}
.gd-hero-cta { margin-top: var(--s-6); display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }

/* buttons — silver on the cosmos, steel on the sheet */
.gd-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0.65rem 1.35rem; border-radius: var(--r-md);
    font-weight: 700; font-size: var(--fs-md); text-decoration: none; border: 1px solid transparent;
    transition: filter var(--dur) var(--ease), background var(--dur) var(--ease), transform 80ms var(--ease);
}
.gd-btn:active { transform: translateY(1px); }
.gd-btn--silver { background: var(--gd-silver-grad); color: var(--gd-accent); box-shadow: var(--sh-pop); }
.gd-btn--silver:hover { filter: brightness(1.04); }
.gd-btn--ghost { background: rgba(255,255,255,0.08); color: var(--gd-on-dark); border-color: rgba(255,255,255,0.42); }
.gd-btn--ghost:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.62); }

/* =========================== The sheet ==================================== */
.gd-sheet {
    max-width: 76rem; margin: 0 auto; background: var(--gd-sheet);
    border-radius: var(--r-lg); box-shadow: var(--sh-sheet); overflow: hidden;
}
.gd-band { padding: clamp(2rem, 5vw, 3.4rem) clamp(1.1rem, 4vw, 3rem); background: var(--gd-sheet); scroll-margin-top: 4.6rem; }
.gd-band + .gd-band { border-top: 1px solid var(--gd-line); }
.gd-band--tray { background: var(--gd-tray); }
.gd-band--head { padding-top: clamp(1.6rem, 4vw, 2.6rem); }

.gd-bandhead { margin-bottom: var(--s-5); }
.gd-bandhead--split {
    display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-6); align-items: start;
}
.gd-eyebrow {
    display: flex; align-items: center; gap: 0.55rem;
    color: var(--gd-accent); font-size: var(--fs-xs); font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: var(--s-3);
}
.gd-ch {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 1.7rem; height: 1.7rem; padding: 0 0.3rem; border-radius: var(--r-sm);
    background: var(--gd-accent); color: #fff;
    font-family: var(--gd-mono); font-size: 0.78rem; letter-spacing: 0.04em;
}
.gd-h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; max-width: 34ch; }
.gd-h3 { font-size: var(--fs-lg); font-weight: 700; margin: var(--s-6) 0 var(--s-3); }
.gd-lead { margin-top: var(--s-3); max-width: 60ch; color: var(--gd-muted); font-size: var(--fs-md); line-height: 1.65; }
.gd-p { max-width: 66ch; color: var(--gd-muted); font-size: var(--fs-md); line-height: 1.65; margin-bottom: var(--s-3); }
.gd-p--fine { font-size: var(--fs-sm); color: var(--gd-subtle); max-width: none; }

/* the formula chip — the family's typographic signature */
.gd-formula {
    justify-self: end; align-self: start;
    font-family: var(--gd-mono); font-size: var(--fs-md); color: var(--gd-text);
    background: var(--gd-tray-2); border: 1px solid var(--gd-line-strong);
    border-left: 3px solid #c2c2c2; border-radius: var(--r-sm);
    padding: var(--s-3) var(--s-4); display: flex; flex-direction: column; gap: 0.3rem;
    max-width: 100%; overflow-x: auto; white-space: nowrap;
}
.gd-formula-c { color: var(--gd-subtle); font-size: var(--fs-sm); white-space: normal; }

/* chips row (reserved words) */
.gd-chips {
    font-size: var(--fs-md); color: var(--gd-accent);
    background: var(--gd-tray-2); border: 1px solid var(--gd-line-strong); border-radius: var(--r-sm);
    padding: var(--s-3) var(--s-4); display: inline-block; margin-bottom: var(--s-3);
}

/* =========================== TOC ========================================== */
.gd-toc {
    list-style: none; margin-top: var(--s-5);
    display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0.5rem;
    counter-reset: none;
}
.gd-toc a {
    display: flex; align-items: baseline; gap: 0.7rem; text-decoration: none;
    color: var(--gd-text); font-weight: 600; font-size: var(--fs-md);
    padding: 0.55rem 0.7rem; border-radius: var(--r-sm); border: 1px solid transparent;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gd-toc a:hover { background: var(--gd-tray); border-color: var(--gd-line-strong); }
.gd-toc-n { font-family: var(--gd-mono); font-size: var(--fs-xs); color: var(--gd-accent); }

/* =========================== Cards & grids ================================= */
.gd-grid { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.gd-grid--2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.gd-grid--3 { grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.gd-grid--4 { grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); }
.gd-grid--top { align-items: start; }
.gd-card {
    background: var(--gd-sheet); border: 1px solid var(--gd-line); border-radius: var(--r-md);
    box-shadow: var(--sh-rest); padding: var(--s-4) var(--s-4) var(--s-4);
}
.gd-band--tray .gd-card { border-color: var(--gd-line-strong); }
.gd-card h3 { font-size: var(--fs-md); font-weight: 700; margin-bottom: 0.45rem; }
.gd-card p { font-size: var(--fs-sm); color: var(--gd-muted); line-height: 1.6; }
.gd-card p + p { margin-top: 0.4rem; }
.gd-card--do { border-left: 3px solid var(--gd-green); }
.gd-card--dont { border-left: 3px solid var(--gd-danger-ink); }
.gd-card--pm { display: flex; flex-direction: column; gap: 0.5rem; }

/* premade trees */
.gd-tree { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; margin-top: 0.3rem; }
.gd-tree li { display: flex; flex-direction: column; gap: 0.25rem; }
.gd-tree li + li { border-left: 3px solid var(--gd-gold-soft); padding-left: 0.7rem; margin-left: 0.35rem; }
.gd-tree i { font-style: normal; font-size: var(--fs-sm); color: var(--gd-muted); line-height: 1.55; }
.gd-pill {
    align-self: flex-start; display: inline-block; padding: 0.14rem 0.6rem; border-radius: var(--r-pill);
    font-family: var(--gd-mono); font-size: var(--fs-xs); font-weight: 700;
    color: var(--gd-accent); background: var(--gd-accent-soft); border: 1px solid rgba(60,72,107,0.25);
}
.gd-pill--navy { color: #fff; background: var(--gd-accent); border-color: var(--gd-accent); }
.gd-pill--gold { color: var(--gd-gold-ink); background: rgba(194,163,90,0.14); border-color: var(--gd-gold-soft); }

/* steps */
.gd-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: var(--s-4); margin-top: var(--s-4); }
.gd-step {
    position: relative; background: var(--gd-sheet); border: 1px solid var(--gd-line-strong);
    border-radius: var(--r-md); box-shadow: var(--sh-rest); padding: var(--s-4);
}
.gd-step-n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: var(--gd-steel-grad); color: #fff; font-weight: 800; font-size: var(--fs-sm);
    margin-bottom: 0.6rem;
}
.gd-step h4 { font-size: var(--fs-md); margin-bottom: 0.35rem; }
.gd-step p { font-size: var(--fs-sm); color: var(--gd-muted); line-height: 1.6; }

/* notes — read, don't shout */
.gd-note {
    margin-top: var(--s-4); padding: var(--s-4);
    background: var(--gd-tray); border: 1px solid var(--gd-line-strong);
    border-left: 3px solid var(--gd-gold); border-radius: var(--r-sm);
    font-size: var(--fs-sm); color: var(--gd-muted); line-height: 1.6;
}
.gd-band--tray .gd-note { background: var(--gd-sheet); }
.gd-note b { color: var(--gd-text); display: block; margin-bottom: 0.25rem; }
.gd-note--warn { border-left-color: var(--gd-danger-ink); }

/* =========================== Tables ======================================= */
.gd-tablewrap { overflow-x: auto; margin-top: var(--s-4); border: 1px solid var(--gd-line-strong); border-radius: var(--r-md); background: var(--gd-sheet); }
.gd-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 34rem; }
.gd-table thead th {
    text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--gd-subtle); background: var(--gd-tray); padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--gd-line-strong); white-space: nowrap;
}
.gd-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--gd-line); color: var(--gd-muted); vertical-align: top; line-height: 1.5; }
.gd-table tbody tr:last-child td { border-bottom: none; }
.gd-table td:first-child { color: var(--gd-text); font-weight: 600; white-space: nowrap; }
.gd-table--mods td:first-child, .gd-table td.mono { font-family: var(--gd-mono); font-weight: 600; }
.gd-table .num { text-align: right; font-family: var(--gd-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gd-table .ok { color: var(--gd-green-ink); font-weight: 600; white-space: normal; }
.gd-table .mid { color: var(--gd-gold-ink); font-weight: 600; white-space: normal; }
.gd-table .no { color: var(--gd-danger-ink); font-weight: 600; white-space: normal; }
.gd-table--sheet td { white-space: nowrap; }
.gd-th--derived { color: var(--gd-gold-ink) !important; }
.gd-tr--derived td { background: rgba(194,163,90,0.05); }
.gd-tchip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.5rem; height: 1.5rem; border-radius: 7px; margin-right: 0.5rem;
    font-family: var(--gd-mono); font-size: 0.8rem; font-weight: 800;
    color: var(--gd-accent); background: var(--gd-accent-soft);
}
.gd-tchip--res { background: rgba(60,72,107,0.10); border: 1px solid rgba(60,72,107,0.35); }
.gd-tchip--roll { color: var(--gd-green-ink); background: rgba(46,158,107,0.12); border: 1px solid rgba(46,158,107,0.4); }
.gd-tchip--up { background: rgba(60,72,107,0.10); border: 1px solid rgba(60,72,107,0.35); }
.gd-tchip--op { color: var(--gd-gold-ink); background: rgba(194,163,90,0.16); border: 1px solid var(--gd-gold-soft); }

/* =========================== Figures ====================================== */
.gd-fig { margin-top: var(--s-4); }
.gd-cap {
    margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--gd-subtle); line-height: 1.6; max-width: 72ch;
}
.gd-cap b { color: var(--gd-text); }
.gd-cap--list { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0.4rem 1.2rem; max-width: none; }
.gd-cap--list > span { display: flex; gap: 0.5rem; }
.gd-cap--list b {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--gd-accent); color: #fff;
    font-size: var(--fs-xs);
}

/* =========================== Closing & footer ============================= */
/* The closing panel wears the white vibe as well: a porcelain card echoing the
   sheet, navy ink, and — the landing's own law: silver on white is invisible —
   a STEEL primary with a quiet porcelain secondary. */
.gd-close { max-width: 76rem; margin: var(--s-7) auto 0; padding: 0 var(--s-5); }
.gd-close-panel {
    background: var(--gd-sheet); border: 1px solid var(--gd-line-strong); border-radius: var(--r-lg);
    box-shadow: var(--sh-sheet); padding: clamp(2rem, 5vw, 3rem); text-align: center; color: var(--gd-text);
}
.gd-close-panel h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.02em; }
.gd-close-panel p { max-width: 46rem; margin: var(--s-4) auto 0; color: var(--gd-muted); font-size: var(--fs-md); line-height: 1.65; }
.gd-close-cta { margin-top: var(--s-5); display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }
.gd-close-panel .gd-btn--silver { background: var(--gd-steel-grad); color: #ffffff; box-shadow: var(--sh-rest); }
.gd-close-panel .gd-btn--silver:hover { filter: brightness(1.12); }
.gd-close-panel .gd-btn--ghost { background: var(--gd-sheet); color: var(--gd-accent); border-color: var(--gd-line-strong); }
.gd-close-panel .gd-btn--ghost:hover { background: var(--gd-tray); border-color: var(--gd-accent); }
.gd-close-panel a:focus-visible { box-shadow: var(--gd-ring); }

.gd-foot {
    max-width: 76rem; margin: 0 auto; padding: var(--s-6) var(--s-5) var(--s-7);
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.5rem;
    color: var(--gd-on-dark-faint); font-size: var(--fs-sm); text-align: center;
}
.gd-foot a { color: var(--gd-on-dark-muted); text-decoration: none; }
.gd-foot a:hover { color: #fff; text-decoration: underline; }
.gd-foot-dot { opacity: 0.5; }

/* =========================== Responsive =================================== */
@media (max-width: 60rem) {
    .gd-sheet { border-radius: 0; }
    .gd-close { padding: 0 var(--s-3); }
}
@media (max-width: 56rem) {
    .gd-bandhead--split { grid-template-columns: 1fr; }
    .gd-formula, .gd-diamond-states { justify-self: start; }
}
@media (max-width: 38rem) {
    .gd-top { flex-direction: column; align-items: center; gap: 0.5rem; }
    .gd-nav { justify-content: center; }
    .gd-hero-cta .gd-btn, .gd-close-cta .gd-btn { width: 100%; }
    .gd-table { min-width: 30rem; }
}
@media (max-width: 30rem) {
    .gd-ly-box--in { margin-left: 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .gd-btn, .gd-nav a, .gd-toc a { transition: none; }
}



/* ============================================================================
   THE APP, COPIED — .gd-app scoped component library
   ----------------------------------------------------------------------------
   Owner rule (2026-08-27): the exhibits must copy EXACTLY the product's menus
   and images. Everything below is transcribed from the Consolidator client's
   own stylesheets — Dev\Consolidator front/styles/tokens.css, base.css, app.css
   and board.css — with the app's REAL class names, scoped under .gd-app so the
   guide's chrome and the app's chrome never mix. Static exhibits drop the
   hover/focus states, the transitions and the fixed positioning (a bubble, a
   toast, a modal overlay or the loading page sits inside its figure here); the
   values themselves are the app's. The logo is the app's own file, copied into
   /guides/asl/img/. Do not restyle by eye: when the client moves,
   re-transcribe.
   ========================================================================== */

.gd-app {
    /* the client's design tokens, verbatim (tokens.css :root) */
    --bg: #eef2f8; --surface: #ffffff; --surface-2: #f7f9fc; --surface-3: #eef2f8;
    --line: #e3e8f0; --line-strong: #d3dae6;
    --text: #2a2f3a; --muted: #5b6473; --subtle: #8a93a3; --on-accent: #ffffff;
    --accent: #3C486B; --accent-hover: #2e3a56; --accent-press: #283350;
    --accent-soft: #eef1f7; --accent-ring: rgba(60, 72, 107, 0.22);
    --gold: #c2a35a; --gold-soft: rgba(194, 163, 90, 0.40);
    --silver-grad: linear-gradient(-145deg, #f2f4f8, #dfe4ec, #fbfcfe, #d7dde7, #eef1f6);
    --steel-grad: linear-gradient(-145deg, #2e3a56, #3C486B, #283350, #46557e, #2e3a56);
    --success: #2e9e6b; --success-soft: #e6f4ee;
    --warning: #e3a93c; --warning-soft: #fbf1dd;
    --danger: #d9534f; --danger-hover: #c33b37; --danger-soft: #fbe9e8;
    --info: #3C486B; --info-soft: #eef1f7;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --fs-12: 0.75rem; --fs-14: 0.875rem; --fs-16: 1rem; --fs-20: 1.25rem; --fs-24: 1.5rem; --fs-32: 2rem; --fs-40: 2.5rem;
    --fw-regular: 400; --fw-medium: 600; --fw-bold: 700; --lh: 1.5;
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
    --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-pill: 999px;
    --sh-sm: 0 1px 2px rgba(20, 30, 50, 0.06), 0 2px 6px rgba(20, 30, 50, 0.06);
    --sh-md: 0 1px 3px rgba(20, 30, 50, 0.08), 0 6px 16px rgba(20, 30, 50, 0.08);
    --sh-lg: 0 12px 32px rgba(20, 30, 50, 0.16);
    --topbar-h: 60px;
    --ease: cubic-bezier(0.2, 0.6, 0.2, 1); --dur: 160ms;
    --scroll-hover: #b9c2d1;
    --bar: var(--surface); --silver: #c9cdd6; --silver-ink: #2a2f3a; --gold-ink: #94772f; --warning-ink: #9a6b12;

    /* the app canvas: body{background: var(--bg)} in the "Fondo: Ninguno" state */
    font-family: var(--font);
    font-size: var(--fs-14);
    line-height: var(--lh);
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--gd-line-strong);
    border-radius: var(--r-md);
    overflow: hidden;
    text-align: left;
}
/* The night theme (tokens.css body[data-theme="dark"], verbatim) */
.gd-app--dark {
    --bg: #0b0d12; --surface: #15171d; --surface-2: #1c1f27; --surface-3: #242832;
    --line: #272b34; --line-strong: #363c48;
    --text: #e6e8ee; --muted: #a7afbc; --subtle: #7e8797; --on-accent: #ffffff;
    --accent: #9fb0dc; --accent-hover: #b3c2ea; --accent-press: #8fa0cf;
    --accent-soft: rgba(159, 176, 220, 0.14); --accent-ring: rgba(159, 176, 220, 0.30);
    --success: #4cc38a; --success-soft: rgba(46, 158, 107, 0.18);
    --warning: #e8b45b; --warning-soft: rgba(227, 169, 60, 0.16);
    --danger: #e8706c; --danger-hover: #f08682; --danger-soft: rgba(217, 83, 79, 0.18);
    --info: #9fb0dc; --info-soft: rgba(159, 176, 220, 0.14);
    --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.30);
    --sh-md: 0 1px 3px rgba(0, 0, 0, 0.40), 0 6px 16px rgba(0, 0, 0, 0.40);
    --sh-lg: 0 12px 32px rgba(0, 0, 0, 0.60);
    --scroll-hover: #4a5262; --bar: #121316; --gold-ink: #d6bc7d; --warning-ink: #e8b45b;
    border-color: #363c48;
}
.gd-app h1, .gd-app h2, .gd-app h3, .gd-app h4, .gd-app p, .gd-app dl, .gd-app dd { margin: 0; }
.gd-app--pad { padding: var(--s-5); }
.gd-app--center { display: flex; justify-content: center; }
.gd-app--col { display: flex; flex-direction: column; gap: var(--s-4); }
.gd-app .icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.gd-app .icon svg { display: block; }
.gd-app img { user-select: none; }

/* ---- helpers (app.css) ---- */
.gd-app .row { display: flex; align-items: center; gap: var(--s-3); }
.gd-app .stack { display: flex; flex-direction: column; gap: var(--s-4); }
.gd-app .spacer { flex: 1 1 auto; }
.gd-app .muted { color: var(--muted); }
.gd-app .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.gd-app .num { font-variant-numeric: tabular-nums; }
.gd-app .grid { display: grid; gap: var(--s-4); }
.gd-app .grid--cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gd-app .toolbar { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }

/* ---- top navigation bar (app.css, verbatim) ---- */
.gd-app .topnav {
    display: flex; align-items: center; gap: var(--s-6); height: var(--topbar-h); flex: 0 0 auto;
    padding: 0 var(--s-6);
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--sh-sm);
    overflow-x: auto;
}
.gd-app .topnav__brand { display: flex; align-items: center; gap: var(--s-3); flex: 0 0 auto; padding-right: var(--s-3); border-right: 1px solid var(--line); height: 80%; }
.gd-app .topnav__logo-plate {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 4px 11px; border-radius: 10px;
    background: linear-gradient(145deg, #5a6068 0%, #34383f 38%, #23272d 55%, #444a52 78%, #2b2f35 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 1px 3px rgba(10, 12, 16, 0.40), inset 0 -1px 0 rgba(255, 255, 255, 0.30), inset 0 1px 1px rgba(0, 0, 0, 0.35);
}
.gd-app .topnav__logo { height: 34px; width: auto; display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)); }
.gd-app .topnav__brand-text { font-weight: var(--fw-bold); letter-spacing: 0.02em; line-height: 1.1; white-space: nowrap; color: var(--text); }
.gd-app .topnav__brand-text small { display: block; font-weight: var(--fw-regular); font-size: 0.64rem; color: var(--subtle); letter-spacing: 0.14em; text-transform: uppercase; }
.gd-app .topnav__nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; }
.gd-app .nav-item {
    display: inline-flex; align-items: center; gap: var(--s-2);
    padding: 0.5rem 0.85rem; border-radius: var(--r-md);
    color: var(--muted); font-weight: var(--fw-medium); white-space: nowrap;
    border: none; background: transparent; font: inherit; font-weight: var(--fw-medium);
}
.gd-app .nav-item .icon { color: var(--subtle); }
.gd-app .nav-item.is-active { background: var(--accent-soft); color: var(--accent); }
.gd-app .nav-item.is-active .icon { color: var(--accent); }
.gd-app .topnav__right { display: flex; align-items: center; gap: var(--s-3); flex: 0 0 auto; }
.gd-app .topnav__settings { position: relative; }
.gd-app .userchip { display: flex; align-items: center; gap: var(--s-3); }
.gd-app .userchip__avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--steel-grad); color: #fff; font-weight: var(--fw-bold); font-size: var(--fs-14); flex: 0 0 auto;
}
.gd-app .userchip__meta { display: flex; flex-direction: column; line-height: 1.2; max-width: 16rem; }
.gd-app .userchip__name { font-weight: var(--fw-medium); white-space: nowrap; }
.gd-app .userchip__email { font-size: var(--fs-12); color: var(--subtle); white-space: nowrap; }

/* ---- the gear menu (app.css .settings-pop, verbatim; drawn OPEN and in flow here) ---- */
.gd-app .settings-pop { width: 280px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: var(--s-4); }
.gd-app .settings-pop__sec + .settings-pop__sec { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.gd-app .settings-pop__label { display: flex; align-items: center; gap: 8px; font-size: var(--fs-12); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: var(--s-3); }
.gd-app .settings-pop__opts { display: flex; gap: 6px; }
.gd-app .settings-pop__opt { flex: 1 1 0; padding: 0.4rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); font-size: var(--fs-12); color: var(--text); text-align: center; }
.gd-app .settings-pop__opt.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: var(--fw-medium); }
.gd-app .settings-pop__bgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gd-app .settings-pop__bg { display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.gd-app .settings-pop__bg img { width: 100%; height: 46px; object-fit: cover; border-radius: var(--r-sm); }
.gd-app .settings-pop__bgnone { height: 46px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: var(--r-sm); color: var(--subtle); }
.gd-app .settings-pop__bgcap { font-size: var(--fs-12); color: var(--muted); text-align: center; }
.gd-app .settings-pop__bg.is-active { border-color: var(--accent); }
.gd-app .settings-pop__bg.is-active .settings-pop__bgcap { color: var(--accent); font-weight: var(--fw-medium); }
.gd-app .settings-pop__switch { display: flex; align-items: center; gap: var(--s-3); width: 100%; padding: 0.4rem 0.5rem; border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); font-size: var(--fs-12); color: var(--text); text-align: left; }
.gd-app .settings-pop__switch-text { flex: 1 1 auto; }
.gd-app .settings-pop__switch-track { flex: 0 0 auto; width: 34px; height: 18px; border-radius: 999px; background: var(--line-strong); position: relative; }
.gd-app .settings-pop__switch-thumb { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); box-shadow: var(--sh-sm); }
.gd-app .settings-pop__switch.is-on .settings-pop__switch-track { background: var(--accent); }
.gd-app .settings-pop__switch.is-on .settings-pop__switch-thumb { transform: translateX(16px); }

/* ---- context bar (app.css, verbatim) ---- */
.gd-app .contextbar { display: flex; align-items: center; min-height: 40px; padding: 8px var(--s-6); flex: 0 0 auto; }
.gd-app .breadcrumb { display: flex; align-items: center; gap: var(--s-2); color: var(--muted); font-size: var(--fs-14); min-width: 0; }
.gd-app .breadcrumb__item { white-space: nowrap; color: var(--text); background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.5); padding: 3px 10px; border-radius: var(--r-pill); }
.gd-app .breadcrumb__sep { color: var(--subtle); }

/* ---- page scaffold (app.css, verbatim) ---- */
.gd-app .page {
    max-width: 1200px; width: 100%; margin: 0 auto; padding: var(--s-6);
    background: rgba(255, 255, 255, 0.60);
    border: 1px solid rgba(255, 255, 255, 0.55); border-radius: var(--r-lg); box-shadow: var(--sh-md);
}
.gd-app .page__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap; }
.gd-app .page__title { font-size: var(--fs-24); font-weight: var(--fw-bold); }
.gd-app .page__subtitle { color: var(--muted); margin-top: 2px; }
.gd-app .page__actions { display: flex; gap: var(--s-2); align-items: center; }

/* ---- buttons (app.css, verbatim; static mocks drop the transitions) ---- */
.gd-app .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    height: 38px; padding: 0 var(--s-4);
    border-radius: var(--r-md); border: 1px solid transparent;
    font-size: var(--fs-14); font-weight: var(--fw-medium); white-space: nowrap; font-family: inherit;
}
.gd-app .btn--primary { background: var(--accent); color: var(--on-accent); }
.gd-app .btn--secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.gd-app .btn--ghost { background: transparent; color: var(--muted); }
.gd-app .btn--danger { background: var(--danger); color: #fff; }
.gd-app .btn--danger-ghost { background: transparent; color: var(--danger); border-color: var(--danger-soft); }
.gd-app .btn--sm { height: 30px; padding: 0 var(--s-3); font-size: var(--fs-12); }
.gd-app .btn[disabled] { opacity: 0.6; }
.gd-app .btn--icon { width: 34px; height: 34px; padding: 0; border-radius: var(--r-md); background: transparent; color: var(--muted); border: none; }

/* ---- forms (app.css, verbatim) ---- */
.gd-app .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.gd-app .field__label { font-size: var(--fs-12); font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.gd-app .field__help { font-size: var(--fs-12); color: var(--subtle); }
.gd-app .input, .gd-app .select__btn {
    width: 100%; min-height: 38px; padding: 0.5rem 0.75rem;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--line-strong); border-radius: var(--r-md); font: inherit; text-align: left;
}
.gd-app .input::placeholder { color: var(--subtle); }
.gd-app .checkbox { display: inline-flex; align-items: center; gap: var(--s-2); }
.gd-app .checkbox input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.gd-app .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-5); }
.gd-app .form-grid .col-span-2 { grid-column: 1 / -1; }
.gd-app .select { position: relative; }
.gd-app .select__btn { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.gd-app .select__btn .icon { color: var(--subtle); }
.gd-app .select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-app .select__value.is-placeholder { color: var(--subtle); }
.gd-app .select__menu { margin-top: 4px; max-height: 16rem; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 4px; }
.gd-app .select__option { padding: 0.5rem 0.6rem; border-radius: var(--r-sm); }
.gd-app .select__option.is-selected { background: var(--accent-soft); color: var(--accent); font-weight: var(--fw-medium); }

/* ---- cards (app.css, verbatim) ---- */
.gd-app .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.gd-app .card__body { padding: var(--s-4); }
.gd-app .card__title { font-weight: var(--fw-bold); font-size: var(--fs-16); }
.gd-app .card__meta { color: var(--muted); font-size: var(--fs-12); margin-top: 2px; }

/* ---- table (app.css, verbatim) ---- */
.gd-app .table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: auto; box-shadow: var(--sh-sm); }
.gd-app .table { width: 100%; border-collapse: collapse; }
.gd-app .table th {
    text-align: left; font-size: var(--fs-12); text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--muted); font-weight: var(--fw-bold); padding: var(--s-3) var(--s-4);
    background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.gd-app .table td { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); color: var(--text); }
.gd-app .table tr:last-child td { border-bottom: none; }
.gd-app .table tbody tr.is-clickable { cursor: pointer; }
.gd-app .table--dense th, .gd-app .table--dense td { padding: 6px 10px; font-size: var(--fs-12); white-space: nowrap; }
.gd-app .table td.num, .gd-app .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- tabs (app.css, verbatim: the gold underline) ---- */
.gd-app .tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); }
.gd-app .tab { padding: 0.7rem var(--s-4); border: none; background: transparent; color: var(--muted); font-weight: var(--fw-medium); border-bottom: 2px solid transparent; margin-bottom: -1px; font: inherit; font-weight: var(--fw-medium); }
.gd-app .tab.is-active { color: var(--accent); border-bottom-color: var(--gold); }

/* ---- badges (app.css, verbatim) ---- */
.gd-app .badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: var(--r-pill); font-size: var(--fs-12); font-weight: var(--fw-medium); }
.gd-app .badge--neutral { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.gd-app .badge--accent { background: var(--accent-soft); color: var(--accent); }
.gd-app .badge--success { background: var(--success-soft); color: var(--success); }
.gd-app .badge--warning { background: var(--warning-soft); color: var(--warning-ink); }
.gd-app .badge--danger { background: var(--danger-soft); color: var(--danger); }
.gd-app .badge--gold { background: rgba(194,163,90,0.15); color: var(--gold-ink); }

/* ---- states (app.css, verbatim) ---- */
.gd-app .state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--s-3); padding: var(--s-8) var(--s-5); color: var(--muted); }
.gd-app .state__icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--subtle); border: 1px solid var(--line); }
.gd-app .state__title { font-size: var(--fs-20); font-weight: var(--fw-bold); color: var(--text); }
.gd-app .state__text { max-width: 28rem; }

/* ---- modal (app.css, verbatim; the overlay is drawn in flow, over its own dim) ---- */
.gd-app .modal-overlay { display: flex; align-items: center; justify-content: center; background: rgba(20, 30, 50, 0.45); padding: var(--s-5); }
.gd-app .modal { width: min(560px, 100%); max-height: none; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }
.gd-app .modal--lg { width: min(880px, 100%); }
.gd-app .modal--wide { width: min(1320px, 100%); }
.gd-app .modal--alert { width: min(440px, 100%); }
.gd-app .modal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.gd-app .modal__title { font-size: var(--fs-20); font-weight: var(--fw-bold); }
.gd-app .modal__body { padding: var(--s-5); }
.gd-app .modal--alert .modal__body { padding: var(--s-6) var(--s-5) var(--s-5); }
.gd-app .modal__foot { display: flex; justify-content: flex-end; gap: var(--s-2); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--line); background: var(--surface-2); }

/* ---- toasts (app.css, verbatim; in flow) ---- */
.gd-app .toast-region { display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-end; }
.gd-app .toast { display: flex; align-items: center; gap: var(--s-3); min-width: 280px; max-width: 420px; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-md); box-shadow: var(--sh-lg); }
.gd-app .toast--success { border-left-color: var(--success); }
.gd-app .toast--error { border-left-color: var(--danger); }
.gd-app .toast--warning { border-left-color: var(--warning); }
.gd-app .toast--success .toast__icon { color: var(--success); }
.gd-app .toast--error .toast__icon { color: var(--danger); }
.gd-app .toast--warning .toast__icon { color: var(--warning); }
.gd-app .toast--info .toast__icon { color: var(--accent); }
.gd-app .toast__msg { flex: 1 1 auto; font-size: var(--fs-14); }

/* ---- the alert box (app.css, verbatim) ---- */
.gd-app .alert-box { display: flex; flex-direction: column; align-items: center; gap: var(--s-4); text-align: center; }
.gd-app .alert-box__icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--info-soft); color: var(--accent); border: 1px solid var(--line); }
.gd-app .alert-box--error .alert-box__icon { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); }
.gd-app .alert-box__lines { display: flex; flex-direction: column; gap: var(--s-2); max-width: 30rem; }
.gd-app .alert-box__line { color: var(--muted); line-height: 1.55; }
.gd-app .alert-box__line:first-child { color: var(--text); font-size: var(--fs-16); }

/* ---- the loading page (app.css .busy, verbatim; drawn in flow, the spinner and the sweep held still) ---- */
.gd-app .busy { display: flex; align-items: center; justify-content: center; padding: var(--s-5); background: rgba(238, 242, 248, 0.72); }
.gd-app .busy__card { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); width: min(26rem, 92vw); padding: var(--s-6) var(--s-6) var(--s-5); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }
.gd-app .busy__card::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.gd-app .busy__plate { display: inline-flex; align-items: center; justify-content: center; padding: 6px 16px; border-radius: 12px; background: linear-gradient(145deg, #5a6068 0%, #34383f 38%, #23272d 55%, #444a52 78%, #2b2f35 100%); border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: 0 1px 3px rgba(10, 12, 16, 0.40), inset 0 -1px 0 rgba(255, 255, 255, 0.30), inset 0 1px 1px rgba(0, 0, 0, 0.35); }
.gd-app .busy__logo { height: 40px; width: auto; display: block; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)); }
.gd-app .busy__spinner { width: 2.4rem; height: 2.4rem; margin-top: var(--s-2); border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--gold); }
.gd-app .busy__title { font-size: var(--fs-20); font-weight: var(--fw-bold); color: var(--text); }
.gd-app .busy__text { min-height: 1.3em; color: var(--muted); font-variant-numeric: tabular-nums; }
.gd-app .busy__file { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-12); color: var(--subtle); }
.gd-app .busy__bar { position: relative; width: 12rem; height: 3px; margin-top: var(--s-1); overflow: hidden; border-radius: var(--r-pill); background: var(--surface-3); }
.gd-app .busy__fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: inherit; background: var(--gold); }
.gd-app .busy__note { margin-top: var(--s-2); font-size: var(--fs-12); color: var(--subtle); }

/* ---- the board (board.css, verbatim) ---- */
.gd-app .board-page { display: flex; flex-direction: column; padding: var(--s-3) var(--s-5) var(--s-4); gap: var(--s-3); }
.gd-app .board-toolbar { margin-bottom: 0; }
.gd-app .board-toolbar__name { font-weight: var(--fw-medium); color: var(--muted); padding: 0 var(--s-2); }
.gd-app .board-sheet { --split: 50%; position: relative; display: grid; grid-template-rows: var(--split) 10px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-md); overflow: hidden; }
.gd-app .pane { display: flex; flex-direction: column; min-height: 0; }
.gd-app .pane__head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.gd-app .pane__title { font-size: var(--fs-14); font-weight: var(--fw-bold); letter-spacing: 0.02em; padding-left: 10px; border-left: 3px solid var(--gold); }
.gd-app .pane__counts { font-size: var(--fs-12); color: var(--text); }
.gd-app .pane__counts .ok { color: var(--success); font-weight: var(--fw-bold); }
.gd-app .pane__counts .bad { color: var(--danger); font-weight: var(--fw-bold); }
.gd-app .pane__body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: var(--s-3) var(--s-4); }
.gd-app .pane__body .state { padding: var(--s-5); }
.gd-app .pane__empty { padding: var(--s-4); }
.gd-app .divider { position: relative; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gd-app .divider__grip { color: var(--subtle); transform: rotate(90deg); display: inline-flex; }
.gd-app .divider__pct { position: absolute; right: var(--s-3); top: 50%; transform: translateY(-50%); z-index: 3; padding: 1px 8px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--sh-sm); font-size: 10px; line-height: 14px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; opacity: 0; }
.gd-app .divider.is-hovered { background: var(--accent-soft); }
.gd-app .divider.is-hovered .divider__pct { opacity: 1; }
.gd-app .split-ctl { display: inline-flex; align-items: center; gap: 2px; margin-left: var(--s-2); }
.gd-app .split-ctl__label { font-size: var(--fs-12); color: var(--muted); margin-right: 6px; }
.gd-app .split-ctl .btn { min-width: 0; padding: 0 8px; font-variant-numeric: tabular-nums; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.gd-app .split-ctl .btn.is-active { color: var(--text); box-shadow: inset 0 -2px 0 var(--gold); }

/* chips (board.css, verbatim) */
.gd-app .chips { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: var(--s-2); }
.gd-app .chip { position: relative; display: inline-flex; align-items: baseline; gap: var(--s-2); max-width: 340px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); box-shadow: var(--sh-sm); font-size: var(--fs-12); line-height: 1.3; }
.gd-app .chip--bank { border-left: 3px solid var(--accent); }
.gd-app .chip--ledger { border-left: 3px solid var(--line-strong); }
.gd-app .chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; color: var(--text); }
.gd-app .chip__value { font-variant-numeric: tabular-nums; font-weight: var(--fw-bold); white-space: nowrap; }
.gd-app .chip--neg .chip__value { color: var(--danger); }
.gd-app .chip__count { font-size: 10px; color: var(--subtle); }
.gd-app .chip__date { font-size: 10px; color: var(--subtle); white-space: nowrap; }
.gd-app .chip.is-dragging { opacity: 0.55; }
.gd-app .chip.is-drop-target { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.gd-app .chip__remove { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 2px; border: none; border-radius: 50%; background: transparent; color: var(--subtle); align-self: center; }

/* towers (board.css, verbatim) */
.gd-app .tower { display: flex; flex-direction: column; gap: 4px; min-width: 240px; max-width: 360px; padding: var(--s-2); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface-2); box-shadow: var(--sh-md); }
.gd-app .tower__top .chip { width: 100%; max-width: none; background: var(--surface); border-left-width: 3px; font-weight: var(--fw-medium); }
.gd-app .tower__floors { display: flex; flex-direction: column; gap: 3px; padding-left: var(--s-4); border-left: 2px solid var(--line-strong); margin-left: 6px; }
.gd-app .tower__floors .chip { width: 100%; max-width: none; border-radius: var(--r-md); }
.gd-app .tower__sum, .gd-app .tower__diff { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 2px 8px; font-size: var(--fs-12); }
.gd-app .tower__sum { color: var(--muted); border-top: 1px dashed var(--line-strong); margin-top: 2px; padding-top: 5px; }
.gd-app .tower__diff { font-weight: var(--fw-bold); }
.gd-app .tower__diffval { display: inline-flex; align-items: center; gap: 4px; }
.gd-app .tower.is-open .tower__diff { color: var(--danger); }
.gd-app .tower.is-balanced .tower__diff { color: var(--success); }
.gd-app .tower.is-balanced { border-color: rgba(46, 158, 107, 0.45); }

/* the bubble (board.css, verbatim; in flow) */
.gd-app .bubble { width: min(360px, 92vw); padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--sh-lg); font-size: var(--fs-12); }
.gd-app .bubble__name { font-weight: var(--fw-bold); font-size: var(--fs-14); margin-bottom: 6px; word-break: break-word; }
.gd-app .bubble__rows { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; }
.gd-app .bubble__rows dt { color: var(--muted); }
.gd-app .bubble__rows dd { margin: 0; word-break: break-word; }
.gd-app .bubble__members { margin-top: 8px; }
.gd-app .bubble__rule { margin-top: 6px; font-size: 10px; }

/* the totals page and the table views (board.css, verbatim) */
.gd-app .board-section__head { display: flex; align-items: center; gap: var(--s-3); }
.gd-app .stmt-row--repeated td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.gd-app .totals-row--name td { background: rgba(194, 163, 90, 0.14); font-weight: var(--fw-bold); }
.gd-app .totals-row--member td:first-child { box-shadow: inset 3px 0 0 var(--line-strong); }
.gd-app .totals-row--total td { border-top: 1px solid var(--line-strong); font-weight: var(--fw-medium); }
.gd-app .totals-row--top td, .gd-app .totals-row--floor td, .gd-app .totals-row--sum td, .gd-app .totals-row--diff td { background: var(--surface-3); }
.gd-app .totals-row--top td:first-child, .gd-app .totals-row--floor td:first-child, .gd-app .totals-row--sum td:first-child, .gd-app .totals-row--diff td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.gd-app .totals-row--top td { font-weight: var(--fw-medium); }
.gd-app .totals-row--sum td { border-top: 1px dashed var(--line-strong); color: var(--muted); }
.gd-app .totals-row--diff td { font-weight: var(--fw-bold); }
.gd-app .totals-row--diff .ok { color: var(--success); }
.gd-app .totals-row--diff .bad { color: var(--danger); }
.gd-app .stmt-summary { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.gd-app .stmt-summary__stat { display: flex; flex-direction: column; line-height: 1.15; padding-right: var(--s-4); border-right: 1px solid var(--line); }
.gd-app .stmt-summary__stat:last-of-type { border-right: none; }
.gd-app .stmt-summary__num { font-size: var(--fs-20); font-weight: var(--fw-bold); }
.gd-app .stmt-summary__stat.is-bad .stmt-summary__num { color: var(--danger); }
.gd-app .stmt-summary__file { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--subtle); font-size: var(--fs-12); }
.gd-app .stmt-row--balance td { background: rgba(194, 163, 90, 0.08); font-weight: var(--fw-medium); }
.gd-app .stmt-row.is-warn td:first-child { box-shadow: inset 3px 0 0 var(--warning); }
.gd-app .stmt-row.is-jumped td { background: rgba(194, 163, 90, 0.35); }

/* the Bitácora and the "Agregar a…" list (board.css, verbatim) */
.gd-app .log-list { display: flex; flex-direction: column; gap: 4px; }
.gd-app .log-item { display: flex; align-items: center; gap: var(--s-2); width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); text-align: left; font: inherit; color: var(--text); }

/* the wizards (board.css, verbatim) */
.gd-app .wiz { display: flex; flex-direction: column; gap: var(--s-4); }
.gd-app .wiz__head { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.gd-app .wiz__file { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: var(--fs-12); }
.gd-app .wiz__steps { display: flex; gap: 4px; margin-left: auto; }
.gd-app .wiz__step { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--muted); font: inherit; font-size: var(--fs-12); }
.gd-app .wiz__step.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.gd-app .wiz__step.is-done { border-bottom: 2px solid var(--gold); }
.gd-app .wiz__stepnum { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-3); font-weight: var(--fw-bold); font-size: 11px; }
.gd-app .wiz__step.is-active .wiz__stepnum { background: var(--accent); color: #fff; }
.gd-app .wiz__foot { display: flex; align-items: center; gap: var(--s-2); width: 100%; }
.gd-app .wiz__flags { display: flex; flex-direction: column; gap: 4px; }
.gd-app .wiz__flag { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--r-sm); font-size: var(--fs-12); background: var(--warning-soft); color: #7a5410; }
.gd-app .wiz__flag--high { background: var(--danger-soft); color: var(--danger); }
.gd-app .wiz__flag--low { background: var(--surface-2); color: var(--muted); }
.gd-app .wiz__preview { overflow: auto; }
.gd-app .wiz__row--header td { background: var(--surface-2); font-weight: var(--fw-bold); }
.gd-app .wiz__row--balance td { background: rgba(194, 163, 90, 0.08); }
.gd-app .wiz__row--meta td { color: var(--subtle); }
.gd-app .wiz__row--continuation td { color: var(--muted); font-style: italic; }
.gd-app .wiz__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-3); }
.gd-app .wiz__stat { padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.gd-app .wiz__stat.is-bad { border-color: var(--danger-soft); }
.gd-app .wiz__stat.is-bad .wiz__statnum { color: var(--danger); }
.gd-app .wiz__statnum { font-size: var(--fs-24); font-weight: var(--fw-bold); line-height: 1.1; }
.gd-app .wiz__summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.gd-app .wiz__summary > div { display: flex; flex-direction: column; gap: 2px; padding: var(--s-3); background: var(--surface-2); border-radius: var(--r-md); }
.gd-app .wiz__roles th { padding-top: 2px; padding-bottom: 6px; }
.gd-app .wiz__roles .select__btn { min-height: 28px; padding: 2px 6px; font-size: var(--fs-12); font-weight: var(--fw-regular); text-transform: none; letter-spacing: 0; }

/* the band strip (board.css, verbatim) */
.gd-app .bands { position: relative; height: 108px; border: 1px solid var(--line-strong); border-radius: var(--r-md); background: repeating-linear-gradient(90deg, var(--surface) 0 24px, var(--surface-2) 24px 25px); overflow: visible; }
.gd-app .band { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 4px; border-right: 1px solid var(--line); min-width: 0; }
.gd-app .band:last-child { border-right: none; }
.gd-app .band__label { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 14px; }
.gd-app .band .select__btn { min-height: 30px; padding: 2px 6px; font-size: var(--fs-12); }
.gd-app .band__coords { font-size: 10px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.gd-app .band__remove { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: transparent; color: var(--subtle); }
.gd-app .band--date { background: rgba(60, 72, 107, 0.06); }
.gd-app .band--amount, .gd-app .band--debit, .gd-app .band--credit { background: rgba(46, 158, 107, 0.07); }
.gd-app .band--balance { background: rgba(194, 163, 90, 0.10); }
.gd-app .band--ignore { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,0.03) 6px 12px); }
.gd-app .band--display { box-shadow: inset 0 -3px 0 var(--gold); }
.gd-app .wiz__preview th.is-display { box-shadow: inset 0 -2px 0 var(--gold); color: var(--text); }
.gd-app .wiz__preview td.is-display { font-weight: var(--fw-medium); }
.gd-app .band__handle { position: absolute; top: -6px; bottom: -6px; width: 10px; margin-left: -5px; z-index: 2; border-radius: 3px; }
.gd-app .band__handle::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--gold); border-radius: 2px; opacity: 0.85; }
.gd-app .pane__display { display: flex; align-items: center; gap: 6px; font-size: var(--fs-12); min-width: 0; }
.gd-app .pane__display .select { width: 200px; }
.gd-app .pane__display .select__btn { min-height: 28px; padding: 2px 8px; font-size: var(--fs-12); font-weight: var(--fw-regular); text-transform: none; letter-spacing: 0; }
.gd-app .pane__display .select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* "ver en el archivo" (board.css .sv-*, verbatim) */
.gd-app .sv { display: flex; flex-direction: column; gap: var(--s-3); }
.gd-app .sv-head { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.gd-app .sv-head__value { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; font-size: var(--fs-14); }
.gd-app .sv-head__value.is-neg { color: var(--danger); }
.gd-app .sv-head__meta { color: var(--muted); font-size: var(--fs-12); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.gd-app .sv-nav { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); }
.gd-app .sv-nav__count { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; font-size: var(--fs-12); color: var(--muted); }
.gd-app .sv-nav__zoom { min-width: 56px; padding: 2px 6px; border: none; background: transparent; font: inherit; font-size: var(--fs-12); color: var(--muted); font-variant-numeric: tabular-nums; }
.gd-app .sv-caption { color: var(--subtle); font-size: var(--fs-12); margin: 0; }
.gd-app .sv-doc { overflow: auto; background: var(--surface-3); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); }
.gd-app .sv-pages { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); min-width: max-content; }
.gd-app .sv-pagewrap { display: flex; flex-direction: column; gap: 4px; margin: 0 auto; }
.gd-app .sv-pagelabel { font-size: var(--fs-12); color: var(--muted); }
.gd-app .sv-page { position: relative; background: #fff; box-shadow: var(--sh-md); overflow: hidden; }
.gd-app .sv-text { position: absolute; inset: 0; line-height: 1; color: #15181f; }
.gd-app .sv-text span { position: absolute; white-space: pre; transform-origin: 0 0; }
.gd-app .sv-hl { position: absolute; border-radius: 2px; pointer-events: none; }
.gd-app .sv-hl--row { background: rgba(194, 163, 90, 0.18); }
.gd-app .sv-hl--row.is-current { background: rgba(194, 163, 90, 0.26); box-shadow: 0 0 0 2px var(--gold); }
.gd-app .sv-hl--strong { background: rgba(194, 163, 90, 0.45); box-shadow: 0 0 0 1px var(--gold); }
.gd-app .sv-sheetwrap { display: inline-block; min-width: 100%; }
.gd-app .sv-sheet { border-collapse: collapse; table-layout: fixed; background: #fff; font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: 11pt; color: #000; box-shadow: var(--sh-sm); }
.gd-app .sv-sheet th, .gd-app .sv-sheet td { border: 1px solid #d4d4d4; padding: 0 4px; height: 20px; line-height: 20px; overflow: hidden; white-space: nowrap; text-overflow: clip; }
.gd-app .sv-sheet thead th { background: #f2f2f2; color: #444; font-weight: normal; text-align: center; font-size: 10pt; }
.gd-app .sv-sheet tbody th { background: #f2f2f2; color: #444; font-weight: normal; text-align: center; font-size: 10pt; font-variant-numeric: tabular-nums; }
.gd-app .sv-sheet td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.gd-app .sv-sheet td.is-bold { font-weight: bold; }
.gd-app .sv-sheet tr.is-hl td { box-shadow: inset 0 0 0 400px rgba(194, 163, 90, 0.18); }
.gd-app .sv-sheet tr.is-hl th { box-shadow: inset 3px 0 0 var(--gold); }
.gd-app .sv-sheet tr.is-hl.is-current td { box-shadow: inset 0 0 0 400px rgba(194, 163, 90, 0.24); }
.gd-app .sv-sheet td.is-hl-strong, .gd-app .sv-sheet tr.is-hl.is-current td.is-hl-strong { box-shadow: inset 0 0 0 400px rgba(194, 163, 90, 0.45), inset 0 0 0 1px var(--gold); font-weight: bold; }

/* ---- the night (app.css + board.css body[data-theme="dark"] rules, verbatim under .gd-app--dark) ---- */
.gd-app--dark .topnav { background: var(--bar); border-bottom-color: rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 20px rgba(0, 0, 0, 0.35); }
.gd-app--dark .topnav__brand { border-right-color: rgba(255, 255, 255, 0.10); }
.gd-app--dark .nav-item.is-active { background: transparent; color: var(--silver); box-shadow: inset 0 -2px 0 var(--silver); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.gd-app--dark .nav-item.is-active .icon { color: var(--silver); }
.gd-app--dark .btn--primary { background: var(--silver-grad); color: var(--silver-ink); border-color: rgba(255, 255, 255, 0.28); }
.gd-app--dark .breadcrumb__item { background: rgba(21, 23, 29, 0.62); border-color: rgba(255, 255, 255, 0.12); }
.gd-app--dark .page { background: rgba(16, 19, 25, 0.66); border-color: rgba(255, 255, 255, 0.10); }
.gd-app--dark .modal-overlay { background: rgba(0, 0, 0, 0.62); }
.gd-app--dark .busy { background: rgba(11, 13, 18, 0.72); }
.gd-app--dark .settings-pop__switch-thumb { background: var(--text); }
.gd-app--dark .wiz__flag { color: var(--warning-ink); }
.gd-app--dark .wiz__step.is-active .wiz__stepnum { color: var(--bar); }
.gd-app--dark .band--ignore { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(255, 255, 255, 0.05) 6px 12px); }
.gd-app--dark .board-toolbar .btn--ghost { color: var(--muted); }

/* ---- exhibit-only layout shims (NOT app rules: how the copies sit in the page) ---- */
.gd-exrow { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: flex-start; justify-content: center; }
.gd-exlab { text-align: center; font-size: var(--fs-12, 0.75rem); color: var(--muted, #5b6473); margin-top: 2px; }
.gd-exstate { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gd-app .gd-h { height: 560px; }
.gd-app .board-sheet.gd-h { height: 520px; }
.gd-app .wiz__preview.gd-short { max-height: none; }
.gd-app .gd-w { width: 100%; }
.gd-app .sv-page.gd-page { width: 612px; height: 300px; font-size: 10px; }
.gd-app .sv-page.gd-page .sv-text span { font-size: 10px; }
.gd-scroll { overflow-x: auto; }
.gd-scroll > .gd-app { min-width: 56rem; }

@media (max-width: 760px) {
    .gd-app--pad { padding: var(--s-3); }
    .gd-app .form-grid { grid-template-columns: 1fr; }
    .gd-app .wiz__summary { grid-template-columns: 1fr; }
}

/* the reference table's value column (C18); the two role lists are long and may wrap */
.gd-table--ref td:nth-child(2) { white-space: nowrap; }
.gd-table--ref td.gd-wrap { white-space: normal; min-width: 20rem; }
/* exhibit-only: the totals page sits in a narrower figure than the app's pane, so its date column holds one line */
.gd-app .totals-row td:nth-child(2) { white-space: nowrap; }


/* ============================================================================
   THE LINEUP, COPIED — what the desk adds around the Consolidator plane
   ----------------------------------------------------------------------------
   Transcribed from Dev\Accountant Superior Lineup front/styles/app.css (the tab
   row, the gear's link row, the Home cards), front/styles/workspace.css (the
   Logbooks plane, the module card, the drawer, the menu, the session view's way
   back) and front/styles/letterhead.css (the Letterhead page), with the app's
   REAL class names under .gd-app. Static exhibits drop the transitions and the
   hover states; the values are the app's. Do not restyle by eye: when the client
   moves, re-transcribe.
   ========================================================================== */

/* ---- the tab row (app.css .nav-tab*, verbatim) ---- */
.gd-app .nav-tab { position: relative; gap: 4px; padding-right: 0.35rem; }
.gd-app .nav-tab__main { display: inline-flex; align-items: center; gap: var(--s-2); padding: 0; margin: 0; border: none; background: transparent; color: inherit; font: inherit; white-space: nowrap; }
.gd-app .nav-tab__label { display: inline-block; max-width: 13rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-app .nav-tab__menu { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: none; border-radius: var(--r-sm); background: transparent; color: var(--subtle); opacity: 0; }
.gd-app .nav-tab.is-active .nav-tab__menu { opacity: 1; color: inherit; }
.gd-app .nav-tab-add { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 30px; height: 30px; margin-left: 2px; padding: 0; border: 1px dashed var(--line-strong); border-radius: var(--r-md); background: transparent; color: var(--subtle); }
.gd-app .nav-tab-menu { min-width: 12rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--sh-lg); padding: 4px; display: flex; flex-direction: column; }
.gd-app .nav-tab-menu__item { display: flex; align-items: center; gap: var(--s-2); width: 100%; padding: 0.5rem 0.6rem; border: none; border-radius: var(--r-sm); background: transparent; color: var(--text); font: inherit; text-align: left; }
.gd-app .nav-tab-menu__item .icon { color: var(--subtle); }
.gd-app .nav-tab-menu__sep { height: 1px; margin: 4px 2px; background: var(--line); }
.gd-app .nav-tab-menu__item--danger { color: var(--danger-ink, #b3372f); }
.gd-app .nav-tab-menu__item--danger .icon { color: var(--danger-ink, #b3372f); }
.gd-app .nav-tab.is-unreadable .nav-tab__label { color: var(--danger-ink, #b3372f); font-style: italic; }

/* ---- the gear's last row: the door to Ajustes (app.css, verbatim) ---- */
.gd-app .settings-pop__sec--link { padding-top: var(--s-3); }
.gd-app .settings-pop__link { display: flex; align-items: center; gap: var(--s-3); width: 100%; padding: 0.45rem 0.5rem; border: 0; border-radius: var(--r-sm); background: transparent; font-size: var(--fs-14); color: var(--text); text-align: left; }
.gd-app .settings-pop__link-text { flex: 1 1 auto; }
.gd-app .settings-pop__link .icon { color: var(--muted); }
/* exhibit-only: the background thumbnails are drawn as swatches (the app shows <img> files) */
.gd-app .settings-pop__bgimg { display: block; width: 100%; height: 46px; border-radius: var(--r-sm); background-size: cover; background-position: center; }
.gd-app .gd-bg--centaurus { background-image: url('/components/files/images/centaurus-a.jpg'); }
.gd-app .gd-bg--sky { background-image: url('/components/files/images/sky.webp'); }
.gd-app .gd-bg--stars { background-color: #070a14; background-image: radial-gradient(circle at 12% 30%, rgba(255,255,255,0.9) 0.6px, transparent 1.2px), radial-gradient(circle at 48% 62%, rgba(255,255,255,0.8) 0.6px, transparent 1.2px), radial-gradient(circle at 80% 22%, rgba(255,255,255,0.9) 0.7px, transparent 1.3px), radial-gradient(circle at 66% 84%, rgba(255,255,255,0.7) 0.5px, transparent 1.1px), radial-gradient(circle at 28% 78%, rgba(255,255,255,0.8) 0.5px, transparent 1.1px); }

/* ---- Home: the app cards and the workspace cards (app.css, verbatim) ---- */
.gd-app .ws-card__name { font-weight: var(--fw-medium); }
.gd-app .ws-card__modules, .gd-app .ws-card__meta { color: var(--muted); font-size: var(--fs-12); }

/* ---- the canvas page takes the room it is given (workspace.css, verbatim) ---- */
.gd-app .page--canvas { max-width: none; width: 100%; margin: 0; display: flex; flex-direction: column; }
.gd-app .page--canvas .page__header { margin-bottom: var(--s-3); }

/* ---- the workspace: the Logbooks plane (workspace.css, verbatim) ---- */
.gd-app .ws-stage { position: relative; display: flex; flex-direction: column; gap: var(--s-3); }
.gd-app .ws-tools { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.gd-app .ws-icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; flex: 0 0 auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--muted); }
.gd-app .ws-icon[disabled] { opacity: 0.35; }
.gd-app .ws-icon--flat { border: none; background: none; width: 1.7rem; }
.gd-app .ws-zoom { display: inline-flex; align-items: center; gap: 2px; padding: 0 2px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); }
.gd-app .ws-zoom__btn { min-width: 3.4rem; padding: 2px 6px; border: none; background: transparent; font: inherit; font-size: var(--fs-12); color: var(--muted); font-variant-numeric: tabular-nums; display: inline-flex; justify-content: center; }
.gd-app .ws-view {
    position: relative; overflow: hidden;
    min-height: 18rem;
    border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--sh-md), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background-color: var(--surface-3);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(88, 88, 88, 0.20) 1px, transparent 0),
        linear-gradient(158deg, rgba(255, 255, 255, 0.96), rgba(236, 236, 236, 0.94));
    background-size: 22px 22px, auto;
    cursor: crosshair;
}
.gd-app .ws-view.is-dropping { cursor: copy; }
.gd-app .ws-plane { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.gd-app .ws-hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; pointer-events: none; text-align: center; padding: var(--s-5); }
.gd-app .ws-hint__t { margin: 0; font-size: var(--fs-16); font-weight: var(--fw-bold); color: var(--muted); }
.gd-app .ws-hint__m { margin: 0; font-size: var(--fs-12); color: var(--subtle); max-width: 26rem; line-height: 1.5; }
.gd-app .ws-lasso { position: absolute; z-index: 20; border: 1px solid var(--gold); background: rgba(194, 163, 90, 0.12); border-radius: 3px; }

/* the module: Logbooks' card, standing for an app session (workspace.css, verbatim) */
.gd-app .module {
    position: absolute; width: 14.5rem;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--line-strong); border-radius: 12px;
    box-shadow: 0 1px 2px rgba(8, 12, 24, 0.10), 0 10px 24px rgba(8, 12, 24, 0.14);
    display: flex; flex-direction: column;
}
.gd-app .module.is-selected { border-color: var(--gold); background: var(--surface-2); }
.gd-app .module.is-broken { border-color: var(--danger-soft); }
.gd-app .module__head { display: flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); border-radius: 11px 11px 0 0; background: linear-gradient(180deg, var(--surface), var(--surface-2)); position: relative; }
.gd-app .module__head::before { content: ""; position: absolute; left: 10px; right: 10px; top: 0; height: 2px; border-radius: 0 0 2px 2px; }
.gd-app .module--consolidator .module__head::before { background: linear-gradient(90deg, var(--accent), transparent); }
.gd-app .module--letterhead .module__head::before { background: linear-gradient(90deg, var(--gold), transparent); }
.gd-app .module--unknown .module__head::before { background: linear-gradient(90deg, var(--danger), transparent); }
.gd-app .module__kind { width: 1.4rem; height: 1.4rem; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--line-strong); }
.gd-app .module--letterhead .module__kind { background: rgba(194, 163, 90, 0.16); color: var(--gold-ink); border-color: var(--gold-soft); }
.gd-app .module__title { flex: 1 1 auto; min-width: 0; font-size: var(--fs-12); font-weight: var(--fw-bold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-app .module__app { flex: 0 0 auto; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.gd-app .module__menu { width: 1.3rem; height: 1.3rem; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: var(--r-sm); background: transparent; color: var(--subtle); opacity: 0; }
.gd-app .module.is-selected .module__menu, .gd-app .module__menu.is-shown { opacity: 1; }
.gd-app .module__body { display: flex; flex-direction: column; gap: 3px; padding: 0.5rem 0.6rem 0.55rem; }
.gd-app .module__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
.gd-app .module__line { margin: 0; font-size: var(--fs-12); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-app .module__line--dim { color: var(--muted); }
.gd-app .module__saved { margin: 2px 0 0; font-size: 10px; color: var(--subtle); }
.gd-app .module__open { align-self: stretch; justify-content: center; margin-top: 6px; }
.gd-app .module.is-selected .module__open { border-color: var(--gold-soft); }

/* the module's ··· menu (workspace.css, verbatim; in flow) */
.gd-app .ws-menu { min-width: 11rem; padding: 4px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); box-shadow: var(--sh-lg); display: flex; flex-direction: column; }
.gd-app .ws-menu__item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: none; border-radius: var(--r-sm); background: transparent; text-align: left; font: inherit; font-size: var(--fs-12); color: var(--text); }
.gd-app .ws-menu__item .icon { color: var(--subtle); }
.gd-app .ws-menu__sep { height: 1px; margin: 4px 2px; background: var(--line); }
.gd-app .ws-menu__item--danger { color: var(--danger-ink, #b3372f); }

/* the module drawer: Logbooks' own (workspace.css, verbatim) */
.gd-app .ws-pal { position: absolute; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; border-radius: var(--r-lg); }
.gd-app .ws-pal__tab { position: absolute; right: 0; top: 1.2rem; display: flex; align-items: center; padding: 0.7rem 0.34rem; pointer-events: auto; background: rgba(255, 255, 255, 0.92); color: var(--accent); border: 1px solid var(--line-strong); border-right: none; border-radius: 9px 0 0 9px; box-shadow: -2px 2px 10px rgba(8, 12, 24, 0.10); font: inherit; }
.gd-app .ws-pal__tablabel { writing-mode: vertical-rl; text-orientation: mixed; font-size: 0.7rem; font-weight: var(--fw-bold); letter-spacing: 0.1em; max-height: 12rem; overflow: hidden; }
.gd-app .ws-stage.is-palette-open .ws-pal__tab { transform: translateX(calc(-16.5rem - 0.6rem)); }
.gd-app .ws-pal__panel { position: absolute; right: 0.6rem; top: 0.6rem; bottom: 0.6rem; width: 16.5rem; max-width: calc(100% - 1.2rem); display: flex; flex-direction: column; gap: var(--s-2); pointer-events: auto; padding: var(--s-3); background: rgba(255, 255, 255, 0.93); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 13px; box-shadow: 0 1px 2px rgba(8, 12, 24, 0.10), 0 14px 34px rgba(8, 12, 24, 0.16); }
.gd-app .ws-pal__head { display: flex; align-items: center; gap: var(--s-2); }
.gd-app .ws-pal__title { margin: 0; font-size: var(--fs-14); font-weight: var(--fw-bold); flex: 1 1 auto; }
.gd-app .ws-pal__close { width: 1.6rem; height: 1.6rem; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: var(--r-sm); background: transparent; color: var(--subtle); }
.gd-app .ws-pal__body { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.gd-app .ws-pal__item { display: flex; align-items: center; gap: var(--s-2); width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); text-align: left; font: inherit; color: var(--text); }
.gd-app .ws-pal__item.is-dragging { border-color: var(--gold); background: var(--surface-2); }
.gd-app .ws-pal__ghost { position: absolute; left: 0; top: 0; z-index: 60; pointer-events: none; transform-origin: 0 0; display: flex; align-items: center; gap: 0.45rem; width: 14.5rem; padding: 0.5rem 0.6rem; border: 1px solid var(--gold); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 20px 44px rgba(8, 12, 24, 0.32); font-size: var(--fs-12); font-weight: var(--fw-bold); }
.gd-app .ws-pal__ghost-hint { margin-left: auto; font-size: 10px; font-weight: 400; color: var(--muted); white-space: nowrap; }
.gd-app .ws-pal__icon { display: inline-flex; color: var(--accent); flex: 0 0 auto; }
.gd-app .ws-pal__text { display: flex; flex-direction: column; min-width: 0; }
.gd-app .ws-pal__name { font-size: var(--fs-12); font-weight: var(--fw-bold); }
.gd-app .ws-pal__hint { font-size: 10px; color: var(--subtle); }

/* the operating view's way back (workspace.css, verbatim) */
.gd-app .session-view { display: flex; flex-direction: column; }
.gd-app .session-view__back { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-5) 0; }
.gd-app .session-view__space { font-size: var(--fs-12); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- the Letterhead page (letterhead.css, verbatim) ---- */
.gd-app .lh { display: flex; flex-direction: column; gap: var(--s-5); }
.gd-app .lh-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--s-4); align-items: start; }
.gd-app .lh-step { display: flex; gap: var(--s-3); align-items: flex-start; }
.gd-app .lh-step__n { flex: 0 0 auto; width: 1.75rem; height: 1.75rem; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--gold); color: var(--muted); font-size: var(--fs-12); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; background: var(--surface); }
.gd-app .lh-step__body { min-width: 0; flex: 1 1 auto; }
.gd-app .lh-step__title { margin: 0; font-size: var(--fs-16); font-weight: var(--fw-medium); color: var(--text); }
.gd-app .lh-step__desc { margin: 2px 0 var(--s-3); font-size: var(--fs-14); }
.gd-app .lh-step__row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.gd-app .lh-step__note { margin: var(--s-2) 0 0; font-size: var(--fs-12); }
.gd-app .lh-step__extra { margin-top: var(--s-3); }
.gd-app .lh-file { min-width: 0; flex: 1 1 8rem; font-size: var(--fs-14); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-app .lh-count { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin: 0 0 var(--s-2); font-size: var(--fs-12); }
.gd-app .lh-cols { display: flex; flex-wrap: wrap; gap: var(--s-1); max-height: 7.5rem; overflow: auto; }
.gd-app .lh-col { display: inline-flex; align-items: center; gap: var(--s-1); padding: 2px var(--s-2); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-2); font-size: var(--fs-12); color: var(--text); max-width: 14rem; }
.gd-app .lh-col__n { color: var(--subtle); font-variant-numeric: tabular-nums; }
.gd-app .lh-col__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-app .lh-section { margin: 0 0 var(--s-3); font-size: var(--fs-20); font-weight: var(--fw-medium); color: var(--text); }
.gd-app .lh-options { display: flex; flex-direction: column; gap: var(--s-3); }
.gd-app .lh-option { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.gd-app .lh-option.is-disabled .lh-option__label { color: var(--muted); }
.gd-app .lh-option__text { min-width: 0; }
.gd-app .lh-option__label { margin: 0; font-size: var(--fs-14); font-weight: var(--fw-medium); color: var(--text); }
.gd-app .lh-option__help, .gd-app .lh-option__reason { margin: 2px 0 0; font-size: var(--fs-12); }
.gd-app .lh-option__reason { color: var(--warning-ink); }
.gd-app .lh-group { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); display: flex; flex-direction: column; gap: var(--s-3); }
.gd-app .lh-group__title { margin: 0; font-size: var(--fs-14); font-weight: var(--fw-medium); color: var(--text); }
.gd-app .lh-grid { display: grid; grid-template-columns: 1fr 8rem; gap: var(--s-3); align-items: start; }
.gd-app .lh-grid--3 { grid-template-columns: 8rem 1fr 1fr; }
.gd-app .lh-grid .field { margin-bottom: 0; }
.gd-app .lh-hint { margin: 0; font-size: var(--fs-12); }
.gd-app .lh-last { margin: 0; font-size: var(--fs-12); }
.gd-app .busy__actions { margin-top: var(--s-4); display: flex; justify-content: center; }
.gd-app .alert-box--warning .alert-box__icon { background: var(--warning-soft); color: var(--warning-ink); border-color: var(--warning-soft); }

/* ---- the night, for the desk (workspace.css body[data-theme="dark"] rules, verbatim) ---- */
.gd-app--dark .ws-view {
    background-color: #12151c;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.10) 1px, transparent 0),
        linear-gradient(158deg, rgba(30, 34, 44, 0.96), rgba(20, 23, 30, 0.94));
}
.gd-app--dark .module__head { background: linear-gradient(180deg, var(--surface-2), var(--surface-3)); }
.gd-app--dark .ws-pal__tab { background: rgba(21, 23, 29, 0.94); border-color: var(--line-strong); }
.gd-app--dark .ws-pal__panel { background: rgba(21, 23, 29, 0.94); border-color: rgba(255, 255, 255, 0.10); }
.gd-app--dark .nav-tab-add { border-color: var(--line-strong); }

/* ---- exhibit-only layout shims for the desk (NOT app rules) ---- */
.gd-app .ws-view.gd-plane-h { height: 430px; min-height: 0; }
.gd-app .ws-view.gd-plane-s { height: 250px; min-height: 0; }
.gd-modrow { align-items: flex-start; }
.gd-modrow .module { position: static; }
.gd-exrow--top { align-items: flex-start; }
.gd-app .gd-busy-in { flex: 1 1 22rem; }
.gd-app .settings-pop { flex: 0 0 auto; }
@media (max-width: 760px) {
    .gd-app .lh-grid, .gd-app .lh-grid--3 { grid-template-columns: 1fr; }
    .gd-app .ws-view.gd-plane-h { height: 520px; }
}
