/* ---------------------------------------------------------------------------
styles/wave51/kit.css — W51-T01, the wave-51 base kit.
The ONE confirm dialog's surface, plus the labelled switch row its bodies use.
⚠ IMPORTED FROM index.css, NOT FROM THE COMPONENT, and that breaks with the
convention every wave since 43 has followed. The reason is that this sheet is
consumed by three lanes on pages that have nothing else in common: a
per-component `import "../styles/wave51/kit.css"` lands the rules in whichever
lazy chunk happens to pull it first, so a dialog opened from any other chunk
paints an unstyled
over the app while tsc, the build and every source
check stay green. A globally imported sheet cannot fail that way.
⚠ EVERY SELECTOR IS TOP-LEVEL. The dialog renders through `BodyPortal`, so it
is a direct child of ; a descendant-scoped rule would simply never match
and would fail with no error at all (`.cg-pop` shipped transparent this way).
⛔ NO LITERAL `font-size` ANYWHERE IN THIS FILE. `--lp-fs-*` or nothing —
verify_ui.py goes red on a literal, and 32 accumulated sizes is how that rule
was earned (DESIGN.md section 5).
--------------------------------------------------------------------------- */
@import "../sdlc81/dialog-size.css";
/* The scrim. Covering everything is its whole job, so it also carries the layer:
`--cg-z-overlay` is the top of the --cg-z-* ladder declared in index.css. */
.lp-dialog-scrim {
position: fixed;
inset: 0;
z-index: var(--cg-z-overlay);
background: rgba(15, 23, 42, 0.32);
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
}
/* Two radii on this surface at most (DESIGN.md section 2): --lp-r-lg for the
dialog, --lp-r-md for the buttons inside it. */
.lp-dialog {
/* Shared geometry must beat legacy :has() rules and ordinary inline sizes. */
width: var(--lp-dialog-w) !important;
height: var(--lp-dialog-h) !important;
min-width: 0 !important;
max-width: none !important;
min-height: 0 !important;
max-height: none !important;
flex-shrink: 0;
overflow: hidden;
box-sizing: border-box;
background: var(--lp-surface);
border: 1px solid var(--lp-line);
border-radius: var(--lp-r-lg);
/* A tinted shadow, and shadows are allowed here because this IS an overlay
(DESIGN.md section 2: hairlines, not shadows; shadows only on overlays). */
box-shadow: 0 12px 34px rgba(20, 24, 40, 0.17);
padding: 16px;
font: inherit;
font-size: var(--lp-fs-sm);
line-height: var(--lp-lh);
color: var(--lp-ink);
display: flex;
flex-direction: column;
gap: 12px;
}
.lp-dialog-head {
flex-shrink: 0;
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
}
.lp-dialog-title {
margin: 0;
font-size: var(--lp-fs-md);
font-weight: 600;
line-height: var(--lp-lh-tight);
color: var(--lp-ink);
}
.lp-dialog-body {
flex: 1 1 auto;
min-width: 0;
min-height: 0;
overflow: auto;
overscroll-behavior: contain;
scrollbar-gutter: stable;
margin: 0;
color: var(--lp-muted);
}
/* ⛔ THE CHROME RESET. A native