/* =====================================================================
   V2.38 (Change Request Batch 22) — screen only (linked with media="screen"): prints, PDFs and Excel files do not change.
   1. Settings & Masters hub and Display settings (items 1–3)
   2. Tech-forward refresh of the VINCI design system (item 4), new look only (html[data-ui="3"]); the classic look is untouched
      Style guide: docs/batch22/STYLE-GUIDE.md
   ===================================================================== */

/* ---------- 1. Display: font size (all sizes are pixels, so the working area and windows are zoomed) */
html[data-fs]:not([data-zoom-off]) .content, html[data-fs] .modal { zoom: var(--kx-fs, 1); }

/* ---------- 1. the hub */
.hub-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 4px 0 14px; }
.hub-search input { flex: 1; height: 48px; padding: 0 16px 0 46px; font-size: 15px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.hub-sic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-3); pointer-events: none; }
.hub-sic svg, .hub-sic2 svg, .hub-ic svg, .hub-go svg { width: 100%; height: 100%; display: block; }
.hub-count { min-width: 70px; }
.hub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hub-chip { font: inherit; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.hub-chip .mono { opacity: .7; margin-left: 4px; font-size: 12px; }
.hub-chip:hover { border-color: var(--border-strong); color: var(--text); }
.hub-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.hub-sec { margin-bottom: 26px; }
.hub-sh { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.hub-sh h2 { margin: 0; font-size: 17px; }
.hub-sh p { margin: 2px 0 0; }
.hub-sic2 { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--primary-soft, rgba(37,99,235,.12)); color: var(--primary-ink, #2563eb); flex: none; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hub-card { all: unset; box-sizing: border-box; display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; min-height: 86px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease; }
.hub-card:hover { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--primary) 45%, transparent); transform: translateY(-2px); }
.hub-card:focus-visible { outline: 2px solid var(--focus, var(--primary)); outline-offset: 2px; }
.hub-card:active { transform: translateY(0) scale(.99); }
.hub-ic { width: 38px; height: 38px; padding: 9px; border-radius: 11px; flex: none; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary-ink, var(--primary)); }
.hub-card[data-g="my"] .hub-ic { background: color-mix(in srgb, #14b8a6 14%, transparent); color: #0f8a7e; }
.hub-card[data-g="org"] .hub-ic { background: color-mix(in srgb, #f59e0b 16%, transparent); color: #a15c07; }
.hub-card[data-g="admin"] .hub-ic { background: color-mix(in srgb, #8b5cf6 15%, transparent); color: #6d3fd6; }
:root[data-theme="dark"] .hub-card[data-g="my"] .hub-ic { color: #5eead4; } :root[data-theme="dark"] .hub-card[data-g="org"] .hub-ic { color: #fcd34d; } :root[data-theme="dark"] .hub-card[data-g="admin"] .hub-ic { color: #c4b5fd; }
.hub-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hub-t { font-weight: 700; font-size: 14px; line-height: 1.3; }
.hub-no { font-size: 11px; font-weight: 600; color: var(--text-3); margin-left: 4px; }
.hub-d { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
.hub-go { width: 18px; height: 18px; color: var(--text-3); flex: none; margin-top: 2px; opacity: .5; transition: transform .16s ease, opacity .16s ease; }
.hub-card:hover .hub-go { opacity: 1; transform: translateX(3px); color: var(--primary-ink, var(--primary)); }
.hub-card mark, .hub-t mark { background: color-mix(in srgb, var(--primary) 26%, transparent); color: inherit; border-radius: 3px; }
.kx-hubcrumb { font-size: 12.5px; color: var(--text-3); margin: 4px 0 8px; }
.kx-hubcrumb a { color: var(--text-2); text-decoration: none; } .kx-hubcrumb a:hover { text-decoration: underline; }
/* the gear in the header */
#settings-btn svg { width: 18px; height: 18px; } /* its turn on hover: the shared live icons, css/b23.css (V2.39) */
/* Display settings */
.disp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 16px; align-items: start; }
.disp-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); }
.disp-row:last-child { border-bottom: 0; }
.disp-l { min-width: 0; flex: 1 1 200px; } .disp-t { font-weight: 650; margin-bottom: 2px; }
.disp-c { flex: 0 1 auto; display: flex; justify-content: flex-end; }
.disp-c select { min-width: 240px; max-width: 320px; }
.disp-radios { display: flex; flex-direction: column; gap: 6px; }
.disp-radio { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.disp-sample { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); margin: 10px 0 4px; }
.kx-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border); flex-wrap: wrap; }
.kx-seg button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.kx-seg button:hover { color: var(--text); }
.kx-seg button.on { background: var(--surface); color: var(--primary-ink, var(--primary)); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent); }
.kx-seg button:focus-visible { outline: 2px solid var(--focus, var(--primary)); outline-offset: 1px; }
@media (max-width: 860px) { .disp-grid { grid-template-columns: minmax(0, 1fr); } .disp-row { flex-direction: column; align-items: stretch; } .disp-c { justify-content: flex-start; } .disp-c select { min-width: 0; width: 100%; max-width: none; } .hub-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- skeleton loaders */
.kx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.kx-skel { padding: 6px 0; }
.kx-sk { display: block; border-radius: 7px; background: linear-gradient(90deg, var(--surface-3) 0%, color-mix(in srgb, var(--surface-3) 55%, var(--surface)) 45%, var(--surface-3) 90%); background-size: 220% 100%; animation: kx22-shimmer 1.3s linear infinite; }
.kx-sk.mt { margin-top: 10px; }
.kx-sk-head { margin: 8px 0 22px; }
.kx-sk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kx-sk-card { padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.kx-sk-table { border-radius: 16px; border: 1px solid var(--border); background: var(--surface); padding: 12px; }
.kx-sk-th { margin-bottom: 8px; border-radius: 9px; }
.kx-sk-row { display: flex; gap: 18px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.kx-sk-row:last-child { border-bottom: 0; }
/* the start-up skeleton waits still behind the sign-in page (it is hidden there; the sign-in scene keeps the frame budget) */
html:has(#kx-gate) .kx-sk { animation: none; }
@keyframes kx22-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .kx-sk { animation: none; } }

/* =====================================================================
   2. Tech-forward refresh (item 4). Same structure as ui3.css; tokens first, then base, shell, components.
   Contrast (WCAG AA) is listed with every text colour: see STYLE-GUIDE.md for the measured ratios.
   ===================================================================== */
html[data-ui="3"] {
  --mono: ui-monospace, "Cascadia Code", "Cascadia Mono", "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  /* accents */
  --c-blue: #2563eb; --c-cyan: #0891b2; --c-green: #059669; --c-violet: #7c3aed; --c-amber: #b45309; --c-rose: #e11d48;
  --primary: #2563eb; --primary-hover: #1d4ed8; --primary-ink: #1d4ed8; --primary-soft: #e6eeff; --focus: #2563eb;
  --kx-green-aa: #2563eb; --secondary: #0f766e; --secondary-ink: #0f766e;
  --bg: #f3f5fa; --surface: #ffffff; --surface-2: #f7f9fc; --surface-3: #edf1f7;
  --glass: rgba(255, 255, 255, .78); --glass-strong: rgba(255, 255, 255, .92); --glass-line: rgba(15, 23, 42, .08); --glass-hi: rgba(255, 255, 255, .9);
  --text: #0b1220; --text-2: #334155; --text-3: #526075;       /* 18.7:1, 10.4:1, 6.4:1 on white (5.9:1 on --bg) */
  --border: #e2e8f0; --border-strong: #cbd5e1;
  --sidebar-bg: rgba(255, 255, 255, .82); --sidebar-text: #1e293b; --sidebar-muted: #526075; --sidebar-line: #e2e8f0;
  --glow: 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent), 0 8px 24px -6px color-mix(in srgb, var(--primary) 40%, transparent);
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -8px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 64px -12px rgba(15, 23, 42, .30);
  --radius-sm: 10px; --radius: 16px; --radius-lg: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html[data-ui="3"][data-theme="dark"] {
  --primary: #2563eb; --primary-hover: #3b76f6; --primary-ink: #93b4ff; --primary-soft: rgba(59, 118, 246, .16); --focus: #93b4ff;
  --kx-green-aa: #3b76f6; --secondary-ink: #5eead4;
  --c-blue: #60a5fa; --c-cyan: #22d3ee; --c-green: #34d399; --c-violet: #a78bfa; --c-amber: #fbbf24; --c-rose: #fb7185;
  --bg: #060a14; --surface: #0d1424; --surface-2: #111a2e; --surface-3: #18233b;
  --glass: rgba(13, 20, 36, .72); --glass-strong: rgba(13, 20, 36, .92); --glass-line: rgba(148, 163, 184, .13); --glass-hi: rgba(255, 255, 255, .05);
  --text: #e8edf7; --text-2: #c3ccdc; --text-3: #95a3bb;       /* 15.7:1, 11.4:1, 7.2:1 on --surface */
  --border: #1d2840; --border-strong: #2c3a5a;
  --sidebar-bg: rgba(8, 13, 25, .86); --sidebar-text: #d6deec; --sidebar-muted: #95a3bb; --sidebar-line: rgba(148, 163, 184, .12);
  --glow: 0 0 0 1px rgba(96, 165, 250, .35), 0 0 28px -4px rgba(59, 118, 246, .45);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px -12px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 80px -10px rgba(0, 0, 0, .8);
  --st-draft: #c3ccdc; --st-draft-bg: #1b2740; --info: #93b4ff; --info-bg: #14234a;
}

/* base */
html[data-ui="3"] body { background: var(--bg); text-rendering: optimizeLegibility; }
html[data-ui="3"][data-theme="dark"] body { background: radial-gradient(1200px 700px at 85% -10%, rgba(37, 99, 235, .10), transparent 60%), radial-gradient(900px 600px at -10% 110%, rgba(16, 185, 129, .07), transparent 60%), var(--bg); background-attachment: fixed; }
html[data-ui="3"] h1 { font-weight: 780; letter-spacing: -.03em; }
html[data-ui="3"] .page-head h1 { font-size: 28px; }
html[data-ui="3"] .page-head .sub, html[data-ui="3"] .page-head p { color: var(--text-3); }
html[data-ui="3"] .mono, html[data-ui="3"] code, html[data-ui="3"] kbd, html[data-ui="3"] td.kx-code, html[data-ui="3"] .kx-code, html[data-ui="3"] .hub-no { font-family: var(--mono); font-feature-settings: "zero" 1, "ss01" 1; letter-spacing: -.01em; }
html[data-ui="3"] td.kx-code { font-size: 12.5px; color: var(--primary-ink); white-space: nowrap; }
/* numeric columns: tabular figures in the body face (monospace would widen long tables and push columns off screen) */
html[data-ui="3"] table.t td.num { font-variant-numeric: tabular-nums; }
html[data-ui="3"] ::selection { background: color-mix(in srgb, var(--primary) 30%, transparent); }
html[data-ui="3"] :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
html[data-ui="3"] * { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
html[data-ui="3"] ::-webkit-scrollbar { width: 10px; height: 10px; }
html[data-ui="3"] ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
html[data-ui="3"] ::-webkit-scrollbar-track { background: transparent; }
/* consistent outline icons: one stroke weight, rounded ends */
html[data-ui="3"] .sidebar svg[stroke], html[data-ui="3"] .topbar svg[stroke], html[data-ui="3"] .btn svg[stroke], html[data-ui="3"] .kx-crumbs svg[stroke], html[data-ui="3"] .kx-qa svg[stroke], html[data-ui="3"] .tabs svg[stroke] { stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* shell: glass sidebar and header */
html[data-ui="3"] .sidebar { background: var(--sidebar-bg); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-right: 1px solid var(--sidebar-line); }
html[data-ui="3"][data-theme="dark"] .sidebar { box-shadow: inset -1px 0 0 rgba(96, 165, 250, .06); }
html[data-ui="3"] .topbar { background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--glass-line); }
html[data-ui="3"] .icon-btn, html[data-ui="3"] .user-chip, html[data-ui="3"] .topbar #project-select, html[data-ui="3"] .search-wrap input { background-color: var(--glass); border-color: var(--glass-line); transition: background-color .15s, border-color .15s, box-shadow .2s, transform .12s var(--ease); }
html[data-ui="3"] .icon-btn:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--glow); background: var(--glass-strong); }
html[data-ui="3"] .icon-btn:active { transform: scale(.94); }
html[data-ui="3"] .search-wrap input:focus { box-shadow: var(--glow); border-color: var(--primary); }
html[data-ui="3"] .nav a { transition: background-color .15s, color .15s, box-shadow .2s, transform .12s var(--ease); }
html[data-ui="3"] .nav a:hover { transform: translateX(2px); }
html[data-ui="3"] .nav a.active { background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: var(--glow); transform: none; }
html[data-ui="3"][data-theme="dark"] .nav a:hover { background: rgba(148, 163, 184, .08); }
html[data-ui="3"] .nav-sec .gi { font-family: var(--mono); font-size: 10.5px; }
html[data-ui="3"] .nav a .sn { font-family: var(--mono); font-size: 11px; letter-spacing: -.02em; }
html[data-ui="3"] .brand .product { font-family: var(--mono); letter-spacing: .32em; }
html[data-ui="3"] .sidebar-foot { font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; }

/* cards: glass panels with a top highlight; cards holding a table stay solid for reading and fast scrolling */
html[data-ui="3"] .card { background: var(--glass); backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%); border: 1px solid var(--glass-line); box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi); transition: box-shadow .2s var(--ease), border-color .2s; }
html[data-ui="3"] .card:has(table.t), html[data-ui="3"] .card:has(canvas), html[data-ui="3"] .modal .card { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
html[data-ui="3"] .card-h { border-bottom: 1px solid var(--glass-line); }
html[data-ui="3"] .card-h h3 { font-size: 14.5px; letter-spacing: -.01em; }

/* KPI cards: data-viz tiles — label, a large tabular figure, an accent rail and a soft glow on hover */
html[data-ui="3"] .kpi { position: relative; overflow: hidden; transition: transform .18s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
html[data-ui="3"] .kpi::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--kpi-a, var(--c-blue)), var(--kpi-b, var(--c-cyan))); opacity: .9; }
html[data-ui="3"] .grid > .kpi:nth-child(4n+2), html[data-ui="3"] .grid > .card.kpi:nth-child(4n+2) { --kpi-a: var(--c-green); --kpi-b: var(--c-cyan); }
html[data-ui="3"] .grid > .kpi:nth-child(4n+3) { --kpi-a: var(--c-amber); --kpi-b: var(--c-rose); }
html[data-ui="3"] .grid > .kpi:nth-child(4n+4) { --kpi-a: var(--c-violet); --kpi-b: var(--c-blue); }
html[data-ui="3"] .kpi:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--kpi-a, var(--primary)) 40%, var(--glass-line)); box-shadow: var(--shadow), 0 14px 34px -14px color-mix(in srgb, var(--kpi-a, var(--primary)) 55%, transparent); }
html[data-ui="3"] .kpi .lbl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); }
html[data-ui="3"] .kpi .val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.04em; }
html[data-ui="3"][data-theme="dark"] .kpi .val { text-shadow: 0 0 24px color-mix(in srgb, var(--kpi-a, var(--c-blue)) 35%, transparent); }
html[data-ui="3"] .kpi .sub, html[data-ui="3"] .kpi .small { color: var(--text-3); }

/* buttons */
html[data-ui="3"] .btn { transition: background-color .15s, border-color .15s, box-shadow .2s var(--ease), transform .1s var(--ease), color .15s; }
html[data-ui="3"] .btn:active { transform: translateY(1px) scale(.985); }
html[data-ui="3"] .btn:not(.btn-primary):not(.btn-danger) { background: var(--glass-strong); border-color: var(--border-strong); }
html[data-ui="3"] .btn:not(.btn-primary):not(.btn-danger):hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border-strong)); color: var(--primary-ink); }
html[data-ui="3"] .btn-primary { background: linear-gradient(180deg, #2f6df0, #2257d8); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 18px -6px rgba(37, 99, 235, .7); }
html[data-ui="3"] .btn-primary:hover { background: linear-gradient(180deg, #3b78f6, #2563eb); box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, var(--glow); }

/* tabs */
html[data-ui="3"] .tabs { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html[data-ui="3"] .tabs button { transition: background-color .15s, color .15s, box-shadow .2s; }
html[data-ui="3"] .tabs button.active { background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 0 0 1px color-mix(in srgb, var(--primary) 28%, transparent); }
html[data-ui="3"][data-theme="dark"] .tabs button.active { background: var(--surface-3); color: #fff; box-shadow: var(--glow); }

/* tables: quiet header in small caps, hairline rows, an accent line on the row under the pointer */
html[data-ui="3"] table.t th { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; color: var(--text-3); background: var(--surface-2); }
html[data-ui="3"] table.t td { border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent); }
html[data-ui="3"] table.t tbody tr { transition: background-color .12s; }
html[data-ui="3"] table.t tbody tr:hover td { background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
html[data-ui="3"] table.t tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--primary); }
html[data-ui="3"][data-theme="dark"] table.t tbody tr:hover td { background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
html[data-ui="3"] .tbl-wrap { border-radius: 0 0 var(--radius) var(--radius); }

/* forms */
html[data-ui="3"] input, html[data-ui="3"] select, html[data-ui="3"] textarea { transition: border-color .15s, box-shadow .2s var(--ease), background-color .15s; }
html[data-ui="3"][data-theme="dark"] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), html[data-ui="3"][data-theme="dark"] select, html[data-ui="3"][data-theme="dark"] textarea { background-color: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
html[data-ui="3"] input:hover:not(:focus):not([type=checkbox]):not([type=radio]), html[data-ui="3"] select:hover:not(:focus), html[data-ui="3"] textarea:hover:not(:focus) { border-color: color-mix(in srgb, var(--primary) 35%, var(--border-strong)); }
html[data-ui="3"] input:focus, html[data-ui="3"] select:focus, html[data-ui="3"] textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 24%, transparent), 0 0 20px -4px color-mix(in srgb, var(--primary) 45%, transparent); }
html[data-ui="3"] label.f { font-size: 12.5px; letter-spacing: .01em; }

/* badges and status */
html[data-ui="3"] .badge { border-radius: 999px; font-weight: 650; letter-spacing: .01em; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 18%, transparent); }

/* windows, popovers, toasts: stronger glass, a short entrance */
html[data-ui="3"] .modal { background: var(--glass-strong); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); animation: kx22-pop .22s var(--ease) both; }
html[data-ui="3"] .modal-bg { background: rgba(6, 10, 20, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
html[data-ui="3"] .popover, html[data-ui="3"] .search-results { background: var(--glass-strong); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); animation: kx22-drop .16s var(--ease) both; }
html[data-ui="3"] .toast { background: var(--glass-strong); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg); animation: kx22-drop .2s var(--ease) both; }
@keyframes kx22-pop { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes kx22-drop { from { opacity: 0; transform: translateY(-4px); } }

/* screens arrive with a short rise (the first few blocks, one after the other) */
html[data-ui="3"] #view.kx22-enter > * { animation: kx22-rise .32s var(--ease) both; }
html[data-ui="3"] #view.kx22-enter > *:nth-child(2) { animation-delay: 30ms; }
html[data-ui="3"] #view.kx22-enter > *:nth-child(3) { animation-delay: 60ms; }
html[data-ui="3"] #view.kx22-enter > *:nth-child(4) { animation-delay: 90ms; }
html[data-ui="3"] #view.kx22-enter > *:nth-child(n+5) { animation-delay: 110ms; }
@keyframes kx22-rise { from { opacity: 0; transform: translateY(6px); } }

/* breadcrumbs */
html[data-ui="3"] .kx-crumbs ol { font-size: 12.5px; }
html[data-ui="3"] .kx-crumb-btn { background: var(--glass); border-color: var(--glass-line); }

/* sign-in (Batch 21 concepts): the card follows the same glass, type and accent */
html[data-ui="3"] #kx-gate .kx-gate-title { font-family: var(--mono); }
html[data-ui="3"] #kx-gate [data-release] { font-family: var(--mono); letter-spacing: .02em; }
html[data-ui="3"] #kx-gate.l21 .kx-gate-btn.btn-primary { background-image: linear-gradient(120deg, #2563eb, #2f7fe0 55%, #0f9f74); }

/* hub cards and the display panel take the glass too */
html[data-ui="3"] .hub-card, html[data-ui="3"] .hub-search input, html[data-ui="3"] .hub-chip:not(.on) { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--glass-line); }
html[data-ui="3"][data-theme="dark"] .hub-card:hover { background: var(--glass-strong); box-shadow: var(--glow); }
html[data-ui="3"] .hub-search input:focus { box-shadow: var(--glow); border-color: var(--primary); }

/* motion off when the computer asks for it */
@media (prefers-reduced-motion: reduce) {
  html[data-ui="3"] #view.kx22-enter > *, html[data-ui="3"] .modal, html[data-ui="3"] .popover, html[data-ui="3"] .toast, html[data-ui="3"] .search-results { animation: none !important; }
  html[data-ui="3"] .kpi:hover, html[data-ui="3"] .hub-card:hover, html[data-ui="3"] .nav a:hover { transform: none; }
}
/* phones: no blur behind long lists (battery), same colours */
@media (max-width: 860px) {
  html[data-ui="3"] .card, html[data-ui="3"] .hub-card, html[data-ui="3"] .tabs { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
}
