@import '_content/qNet.Web.Shell/qNet.Web.Shell.c9elhm9jik.bundle.scp.css';

/* /Components/Pages/Gallery.razor.rz.scp.css */
/* ===== qNet UI — component gallery (scoped) =====
 * Premium "Dark Court" styling, built entirely from shell tokens (qnet-shell.css) so it themes
 * with Court / Ember / Frost automatically. The shell components shown here are never restyled —
 * only the gallery's own chrome (panels, grids, captions) lives in this file.
 */

.gallery[b-boeh6fyaw4] {
    max-width: 1000px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem) 4rem;
}

/* ---------- intro hero ---------- */
.gallery-hero[b-boeh6fyaw4] {
    text-align: center;
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: clamp(2rem, 5vw, 3rem);
    border-bottom: 1px solid var(--line);
}
.gallery-eyebrow[b-boeh6fyaw4] {
    font-family: var(--mono); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
    color: var(--accent); opacity: .75; margin: 0 0 .8rem;
}
.gallery-title[b-boeh6fyaw4] {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; letter-spacing: -.01em;
    margin: 0 0 1rem;
    background: linear-gradient(160deg, #fff 15%, var(--accent-bright) 55%, var(--accent-2-bright) 115%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gallery-lede[b-boeh6fyaw4] {
    max-width: 60ch; margin: 0 auto 1.6rem;
    color: var(--ink-dim); font-size: clamp(.95rem, 1.8vw, 1.08rem); line-height: 1.65;
}
.gallery-hero-meta[b-boeh6fyaw4] {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .7rem;
}
.hero-kbd[b-boeh6fyaw4] {
    font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
    color: var(--ink-faint); display: inline-flex; align-items: center; gap: .35rem;
}

kbd[b-boeh6fyaw4] {
    font-family: var(--mono); font-size: .72em; line-height: 1;
    color: var(--ink); background: var(--void-3);
    border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px;
    padding: .2em .45em; min-width: 1.3em; text-align: center;
}

/* ---------- section scaffolding ---------- */
.gallery-section[b-boeh6fyaw4] { margin-top: clamp(2.5rem, 6vw, 4rem); }

.section-head[b-boeh6fyaw4] {
    display: flex; align-items: flex-start; gap: 1rem;
    margin-bottom: 1.4rem;
}
.section-index[b-boeh6fyaw4] {
    flex: 0 0 auto;
    width: 2.1rem; height: 2.1rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 1.05rem; color: var(--accent);
    background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 14%, transparent), transparent 72%);
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.section-eyebrow[b-boeh6fyaw4] {
    font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--ink-faint); margin: .25rem 0 .15rem;
}
.section-title[b-boeh6fyaw4] {
    font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.1; margin: 0 0 .5rem; color: var(--ink);
}
.section-blurb[b-boeh6fyaw4] {
    margin: 0; max-width: 68ch; color: var(--ink-dim);
    font-size: .95rem; line-height: 1.6;
}
.section-blurb em[b-boeh6fyaw4] { color: var(--accent-2-bright); font-style: normal; }
.section-blurb strong[b-boeh6fyaw4] { color: var(--ink); font-weight: 600; }

/* ---------- demo panels ---------- */
.demo-panel[b-boeh6fyaw4] {
    background: linear-gradient(160deg, var(--void-2), var(--void-1));
    border: 1px solid var(--line); border-radius: 18px;
    padding: clamp(1.2rem, 3vw, 1.8rem);
    display: flex; flex-direction: column; gap: 1.5rem;
}

/* ---------- knobs (shared) ---------- */
.knobs[b-boeh6fyaw4] { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; }
.knob-group[b-boeh6fyaw4] { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.knob-label[b-boeh6fyaw4], .mini-label[b-boeh6fyaw4] {
    font-family: var(--mono); text-transform: uppercase; color: var(--ink-faint);
}
.knob-label[b-boeh6fyaw4] { font-size: .64rem; letter-spacing: .16em; }
.mini-label[b-boeh6fyaw4] { font-size: .58rem; letter-spacing: .12em; }
.chip-row[b-boeh6fyaw4] { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Wide segmented controls stay usable on narrow screens without restyling the shell control. */
.seg-scroll[b-boeh6fyaw4] { max-width: 100%; overflow-x: auto; padding-bottom: 2px; }
.seg-scroll[b-boeh6fyaw4]::-webkit-scrollbar { height: 4px; }
.seg-scroll[b-boeh6fyaw4]::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

/* ---------- toast matrix ---------- */
.toast-matrix[b-boeh6fyaw4] {
    display: grid;
    grid-template-columns: minmax(5rem, auto) repeat(3, minmax(0, 1fr));
    gap: .5rem;
    align-items: center;
}
.matrix-col[b-boeh6fyaw4] {
    font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-faint); text-align: center;
}
.matrix-row[b-boeh6fyaw4] {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .82rem; color: var(--ink-dim); white-space: nowrap;
}
.sev-dot[b-boeh6fyaw4] { width: .55rem; height: .55rem; border-radius: 50%; flex: 0 0 auto; }
.sev--info[b-boeh6fyaw4]    { background: var(--accent-2); }
.sev--success[b-boeh6fyaw4] { background: var(--good); }
.sev--warning[b-boeh6fyaw4] { background: var(--warn); }
.sev--danger[b-boeh6fyaw4]  { background: var(--ember); }
.sev--trace[b-boeh6fyaw4]   { background: var(--ink-faint); }

.toast-matrix[b-boeh6fyaw4]  .q-btn { width: 100%; }

/* ---------- set-piece + playground ---------- */
.demo-actions[b-boeh6fyaw4] { display: flex; flex-wrap: wrap; gap: .7rem; }

.playground[b-boeh6fyaw4] { display: flex; flex-direction: column; gap: .55rem; }
.playground-row[b-boeh6fyaw4] { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.playground-row .seg-scroll[b-boeh6fyaw4] { flex: 1 1 12rem; }

.q-input[b-boeh6fyaw4] {
    flex: 2 1 16rem; min-width: 0;
    font: inherit; font-size: .9rem; color: var(--ink);
    background: var(--void-0); border: 1px solid var(--line-strong); border-radius: 8px;
    padding: .5rem .75rem;
    transition: border-color var(--motion) var(--ease), box-shadow var(--motion) var(--ease);
}
.q-input[b-boeh6fyaw4]::placeholder { color: var(--ink-faint); }
.q-input:focus-visible[b-boeh6fyaw4] {
    outline: none; border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* custom Content fragment rendered inside a rich toast (authored in Gallery → scope reaches it) */
.toast-rich-content[b-boeh6fyaw4] { display: flex; flex-direction: column; gap: .3rem; }
.trc-line[b-boeh6fyaw4] { display: flex; justify-content: space-between; gap: 1.5rem; margin: 0; font-size: .85rem; }
.trc-k[b-boeh6fyaw4] { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.trc-v[b-boeh6fyaw4] { color: var(--ink); }
.trc-note[b-boeh6fyaw4] { margin: .3rem 0 0; font-size: .78rem; color: var(--ink-dim); }
.trc-note code[b-boeh6fyaw4], .value-readout code[b-boeh6fyaw4], .section-blurb code[b-boeh6fyaw4], .gallery-lede code[b-boeh6fyaw4], .gallery-foot code[b-boeh6fyaw4] {
    font-family: var(--mono); font-size: .85em;
    background: color-mix(in srgb, var(--accent-2) 12%, transparent);
    color: var(--accent-2-bright); border-radius: 4px; padding: .05em .35em;
}

/* ---------- editable-label grid ---------- */
.editable-grid[b-boeh6fyaw4] {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem;
}
.editable-item[b-boeh6fyaw4] { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.editable-item--wide[b-boeh6fyaw4] { grid-column: 1 / -1; }

.value-readout[b-boeh6fyaw4] { margin: 0; font-size: .8rem; color: var(--ink-faint); line-height: 1.5; }

.demo-title[b-boeh6fyaw4] { font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2rem); color: var(--ink); font-weight: 500; }
.demo-desc[b-boeh6fyaw4] { display: block; max-width: 54ch; color: var(--ink-dim); line-height: 1.6; font-size: .98rem; }
.demo-slug[b-boeh6fyaw4] { font-family: var(--mono); font-size: 1rem; color: var(--accent-2-bright); letter-spacing: .01em; }
.demo-readonly[b-boeh6fyaw4] { color: var(--ink-dim); font-style: italic; }
.demo-sample[b-boeh6fyaw4] { display: block; width: 100%; font-size: 1.15rem; color: var(--ink); }

.pencil-controls[b-boeh6fyaw4] { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.4rem; }

/* A WIDE, full-width stage (FIX 3): the pencil-position demo needs room, because FarLeft/FarRight
   stretch the label's wrapper to width:100% and pin the pencil to this container's far edges, and
   the floating positions sit just outside the text — none of which read on a shrink-to-content box.
   background-color (NOT the `background` shorthand) so the guide's background-image layers on top
   cleanly and toggles without being reset. */
.qel-stage[b-boeh6fyaw4] {
    width: 100%;
    padding: 1.1rem 1.4rem; border-radius: 12px;
    background-color: var(--void-0); border: 1px solid var(--line);
}
/* Baseline guide: a faint stage tint for an obvious on-state. The actual baseline RULE is drawn as an
   underline on the label's own text node (.qel) — see the `.qel.demo-baseline` rule in the global
   app.css. It has to be global, not here: this scoped sheet can't reach a child component's element, and
   the rule must sit on the text node itself because the component's inline-block field blocks an
   ancestor's text-decoration from painting through (which is why the old `.demo-sample` underline never
   showed). Themes across Court / Ember / Frost via --ember. */
.qel-stage--guide[b-boeh6fyaw4] {
    background-image: linear-gradient(
        color-mix(in srgb, var(--ember) 6%, transparent),
        color-mix(in srgb, var(--ember) 6%, transparent));
}

/* ---------- command palette section ---------- */
.palette-panel[b-boeh6fyaw4] { gap: 1.6rem; }
.palette-cta[b-boeh6fyaw4] {
    display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center;
    padding: 1.4rem; border-radius: 14px;
    background: radial-gradient(120% 120% at 50% -10%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%);
    border: 1px solid var(--line);
}
.palette-kbd[b-boeh6fyaw4] { display: inline-flex; align-items: center; gap: .4rem; }
.palette-kbd kbd[b-boeh6fyaw4] { font-size: 1rem; padding: .35em .6em; }
.palette-or[b-boeh6fyaw4] {
    font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--ink-faint); margin: 0 .3rem;
}
.palette-hint[b-boeh6fyaw4] { margin: 0; color: var(--ink-dim); font-size: .95rem; }

/* live ShortcutLabel editor (FIX 4): retitle the palette's footer hint and see it update on open */
.palette-label-field[b-boeh6fyaw4] {
    display: flex; flex-direction: column; gap: .5rem;
    width: 100%; max-width: 22rem; text-align: left;
}
.palette-label-field .q-input[b-boeh6fyaw4] { flex: none; width: 100%; }
.palette-label-preview[b-boeh6fyaw4] {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem;
    font-size: .8rem; color: var(--ink-faint);
}
.palette-label-preview em[b-boeh6fyaw4] { color: var(--ink-dim); font-style: italic; }

.command-list[b-boeh6fyaw4] { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.command-row[b-boeh6fyaw4] {
    display: flex; align-items: center; gap: .8rem;
    padding: .7rem .4rem;
    border-top: 1px solid var(--line);
}
.command-row:first-child[b-boeh6fyaw4] { border-top: none; }
.command-icon[b-boeh6fyaw4] { flex: 0 0 auto; width: 1.4rem; text-align: center; font-size: 1rem; }
.command-title[b-boeh6fyaw4] { color: var(--ink); font-size: .92rem; }
.command-group[b-boeh6fyaw4] {
    margin-left: auto;
    font-family: var(--mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-faint);
    border: 1px solid var(--line); border-radius: 999px; padding: .18rem .6rem;
}
.command-shortcut[b-boeh6fyaw4] { flex: 0 0 auto; }

/* ---------- foot ---------- */
.gallery-foot[b-boeh6fyaw4] {
    margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
    text-align: center;
}
.gallery-foot p[b-boeh6fyaw4] { margin: 0; color: var(--ink-faint); font-size: .82rem; line-height: 1.6; max-width: 60ch; margin-inline: auto; }

/* ---------- responsive ---------- */
@media (max-width: 680px) {
    .editable-grid[b-boeh6fyaw4] { grid-template-columns: 1fr; }
    .toast-matrix[b-boeh6fyaw4] { grid-template-columns: minmax(4rem, auto) repeat(3, minmax(0, 1fr)); }
    .section-blurb[b-boeh6fyaw4] { font-size: .9rem; }
}
