/* ══════════════════════════════════════════════════════════════
   explore.css · "Explore the console" page (explore.html)
   One persistent simulated console with real navigation.
   Layers on top of theme/ui/v4/v6-skin — only page-scoped xp-*
   classes plus a few explore-only overrides on the shared console
   classes (always scoped under .xp-admin / .xp-frame).
   Revert: delete explore.html + site/explore.css + site/explore.js.
   ══════════════════════════════════════════════════════════════ */

/* ── page frame: wider than .wrap so the console gets room ── */
.xp-frame { max-width: 1240px; margin: 0 auto; padding: 0 30px; }

/* ── hero strip above the console ── */
.xp-hero { padding: 44px 0 26px; }
.xp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.xp-h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.03em; margin: 12px 0 0; }
.xp-lede { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.xp-lede b { color: var(--text); }
.xp-cta-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; padding-bottom: 4px; }
.xp-cta-sub { font-size: 12.5px; color: var(--text-3); }

/* ── console shell ── */
.xp-shell { padding: 0 0 72px; }
.xp-bframe { box-shadow: var(--shadow-card); }

/* Persistent demo badge in the browser-frame bar */
.xp-badge { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--pill-amber-tx); background: var(--pill-amber-bg); border: 1px solid var(--pill-amber-tx); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }

/* Console grid: full working height */
.xp-admin { min-height: 640px; }
.xp-admin .xp-side { display: flex; flex-direction: column; }

/* Sidebar items become real navigation on this page */
.xp-side .ad-nav[data-nav] { cursor: pointer; transition: background .15s ease, color .15s ease; }
.xp-side .ad-nav[data-nav]:hover { background: var(--surface-3); color: var(--text); }
.xp-side .ad-nav[data-nav]:hover svg { color: var(--text-2); }
.xp-side .ad-nav[data-nav]:focus-visible { outline: 2px solid var(--accent-text); outline-offset: -2px; border-radius: 8px; }
.xp-side .ad-nav[data-nav].on { background: var(--green-wash); color: var(--accent-text); }
.xp-side .ad-nav[data-nav].on svg { color: var(--accent-text); }
/* Items without a module stay visibly static */
.xp-side .ad-nav:not([data-nav]) { opacity: .62; }

/* Content area */
.xp-body { min-height: 540px; }
.xp-body .tabpanel { display: none; }
.xp-body .tabpanel.on { display: block; animation: panelIn .45s cubic-bezier(.2,.7,.2,1); }
/* Module captions inside the console body */
.xp-cap { text-align: left; margin: 18px 2px 4px; font-size: 13px; color: var(--text-3); max-width: none; }
.xp-cap b { color: var(--text-2); }

/* Overview hint chip reuse */
.xp-body .vw-goto-hint { display: inline-block; margin-left: 8px; font-family: var(--mono); font-size: 11px; color: var(--accent-text); }

/* ── mobile module switcher (sidebar is hidden < 760px by ui.css) ── */
.xp-tabsbar { display: none; }
@media (max-width: 760px) {
  .xp-tabsbar { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
  .xp-tabsbar::-webkit-scrollbar { display: none; }
  .xp-tab { flex: none; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; white-space: nowrap; font-family: inherit; }
  .xp-tab.on { background: var(--green); border-color: var(--green); color: var(--on-green); }
  /* ui.css hides .ad-side < 760px with a single-class rule; our
     .xp-admin .xp-side{display:flex} out-specifies it, so re-hide here. */
  .xp-admin .xp-side { display: none; }
  .xp-admin { min-height: 0; }
  .xp-body { min-height: 0; padding: 16px 14px; }
  .xp-hero { padding: 30px 0 18px; }
  .xp-cta-side { align-items: flex-start; }
  .xp-shell { padding-bottom: 52px; }
  .xp-frame { padding: 0 14px; }
  .xp-badge { display: none; }
  /* hint says "sidebar", which is hidden on mobile (tab bar instead) */
  .xp-body .vw-goto-hint { display: none; }
}

/* Footer note under the console */
.xp-foot-note { margin-top: 18px; text-align: center; font-size: 13px; color: var(--text-3); }
.xp-foot-note a { color: var(--accent-text); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .xp-body .tabpanel.on { animation: none; }
  .xp-side .ad-nav[data-nav] { transition: none; }
}

/* ═══ Console-authentic panel anatomy (request 18 — mirror vrs-ui page structure) ═══ */

/* Page head — mirrors vrs-ui PageHead: mono eyebrow, 22px title, muted meta */
.xp-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 2px 2px 14px; }
.xp-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.xp-ptitle { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; color: var(--text); line-height: 1; }
.xp-ptitle .n { font-family: var(--mono); font-weight: 500; color: var(--text-3); font-size: 15px; letter-spacing: -0.02em; margin-left: 2px; }
.xp-pmeta { font-size: 12px; color: var(--text-2); margin-top: 5px; }

/* Filter-bar chip (department picker stand-in) */
.ts-toolbar .seg.xp-chip { color: var(--text-2); background: var(--surface); }

/* Stat cards — mirrors vrs-ui StatCard: mono uppercase label + Geist Mono figure */
.xp-statgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 12px; }
.xp-stat { border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); padding: 13px 15px; }
.xp-stat .lbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.xp-stat .v { font-family: var(--mono); font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); margin-top: 7px; line-height: 1; }
.xp-stat .v.amber { color: var(--pill-amber-tx); }
.xp-stat .sub { font-size: 11px; color: var(--text-3); margin-top: 5px; }

/* Card container for the week grid */
.xp-card { border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); padding: 6px 14px 12px; }

/* ── Week grid — mirrors vrs-ui TimeWeekView: one row per worker × 7 day columns ── */
.wk-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wk-grid { width: 100%; border-collapse: collapse; }
.wk-grid th { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); text-align: center; padding: 9px 4px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.wk-grid th:first-child { text-align: left; padding-left: 4px; }
.wk-grid th .d { color: var(--text-3); font-weight: 500; letter-spacing: 0; }
.wk-grid th.wknd { color: var(--text-3); }
.wk-grid th.tdy { color: var(--accent-text); font-weight: 700; }
.wk-grid th.tot, .wk-grid td.wk-total { text-align: right; }
.wk-grid td { padding: 7px 4px; border-bottom: 1px solid var(--hairline); text-align: center; vertical-align: middle; }
.wk-grid tbody tr:last-child td { border-bottom: 1px solid var(--line); }
/* .rev-attn — 3px amber rail on the flagged row's first cell (vrs-ui ATTENTION_ROW) */
.wk-grid tr.attn td:first-child { box-shadow: inset 3px 0 0 #E89A2C; }
.wk-who { display: flex; align-items: center; gap: 8px; min-width: 150px; text-align: left; }
.wk-who .nm { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.wk-who .ro { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
/* Day cell: centred mono figure over a 4px status track; today ringed */
.wk-cell { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 52px; padding: 3px 6px; border-radius: 4px; }
.wk-cell.tdy { box-shadow: inset 0 0 0 1px var(--green); }
.wk-fig { font-family: var(--mono); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.wk-fig.mut { font-weight: 400; color: var(--text-3); }
.wk-bar { display: block; height: 4px; border-radius: 2px; background: var(--green); }
.wk-bar.rev { background: #E89A2C; }
.wk-bar.lv { background: color-mix(in oklab, var(--text-3) 40%, transparent); }
.wk-bar.fut { width: 14px; background: transparent; border: 1px dashed var(--line); }
.wk-total { font-family: var(--mono); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.wk-total.mut, .wk-grid td.mut { color: var(--text-3); font-weight: 400; }
.wk-grid tfoot td { font-family: var(--mono); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); border-bottom: none; padding-top: 9px; }
.wk-grid tfoot td:first-child { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; padding-left: 4px; }
/* Follow-up pip (vrs-ui StatusPip) */
.wk-pip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-2); white-space: nowrap; }
.wk-pip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
/* Legend — vrs-ui WeekLegend, only rails that can appear */
.wk-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 11px 4px 2px; font-size: 11px; color: var(--text-2); }
.wk-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.wk-legend .lvw { background: color-mix(in oklab, var(--text-3) 40%, transparent); }
.wk-legend .futw { background: transparent; border: 1px dashed var(--line); }

/* Overview "more" links now route into modules */
.panel-head .more.vw-goto { cursor: pointer; }
.panel-head .more.vw-goto:hover { color: var(--accent-text); }

@media (max-width: 760px) {
  .xp-statgrid { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .xp-stat { padding: 10px 11px; }
  .xp-stat .v { font-size: 20px; }
  .wk-grid { min-width: 640px; }
}

/* Planning/legacy ov-tiles inside console cards: figures in Geist Mono like the real StatCard */
.xp-body .ov-tile .v { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── ?play=1 arrival pulse (request 19): draws the eye to the panel's
   primary action for a few seconds, then stops. Motion-safe. ── */
@keyframes xp-pulse-ring {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--green) 45%, transparent); }
  70%  { box-shadow: 0 0 0 9px color-mix(in oklab, var(--green) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--green) 0%, transparent); }
}
.xp-pulse { animation: xp-pulse-ring 1.4s ease-out 3; border-radius: 9px; }
@media (prefers-reduced-motion: reduce) { .xp-pulse { animation: none; } }

/* tour entry chip in the explore hero (request 21) */
.xp-tour-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent-text); background: var(--green-wash); border: 1px solid color-mix(in oklab, var(--green) 30%, var(--line)); border-radius: 9px; padding: 7px 12px; text-decoration: none; white-space: nowrap; transition: border-color .2s; }
.xp-tour-btn:hover { border-color: var(--green); }

/* ── ?tour=1 guided tour (request 21) ─────────────────────────────
   Ribbon above the console frame: step label, progress dots, hint,
   Next / Skip. End-card replaces the bar after step 4 with the
   inline email form (the earned ask). */
.xp-tour { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-card); margin-bottom: 14px; overflow: hidden; }
.xp-tour-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; flex-wrap: wrap; }
.xt-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); background: var(--green-wash); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.xt-step { font-size: 13px; font-weight: 600; color: var(--text); min-width: 0; }
.xt-dots { display: inline-flex; gap: 5px; }
.xt-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .25s; }
.xt-dots i.on { background: var(--text-3); }
.xt-dots i.done { background: var(--green); }
.xt-hint { font-size: 12px; color: var(--text-3); margin-left: auto; }
.xt-next { border: 1px solid var(--line); background: var(--surface-2); color: var(--text-3); font: inherit; font-size: 12.5px; font-weight: 600; border-radius: 9px; padding: 7px 13px; cursor: pointer; transition: all .2s; }
.xt-next.y { background: var(--green); border-color: var(--green); color: #fff; }
.xt-skip { border: none; background: none; color: var(--text-3); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.xt-skip:hover { color: var(--text-2); }
.xp-tour-end { padding: 26px 22px 24px; text-align: center; }
.xp-tour-end h3 { font-size: 21px; letter-spacing: -.02em; margin: 10px 0 4px; }
.xp-tour-end p { font-size: 14.5px; color: var(--text-2); margin: 0 0 4px; }
.xp-tour-end .xt-sub { font-size: 12.5px; color: var(--text-3); margin-top: 10px; }
.xp-tour-end .xt-ok { color: var(--accent-text); font-weight: 600; margin-top: 10px; }

/* shared inline email form (tour end-card + wall) */
.xt-form { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.xt-form input[type="email"] { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 13.5px; padding: 9px 13px; min-width: 220px; }
.xt-form input[type="email"]:focus { outline: 2px solid color-mix(in oklab, var(--green) 45%, transparent); outline-offset: 1px; border-color: var(--green); }
.xt-form .xt-submit { padding: 9px 16px; font-size: 13.5px; }

/* ── hard email wall (request 23 — replaces the request-21 soft card) ── */
.xp-bframe { position: relative; }
.xp-bframe.xp-walled .xp-admin { filter: blur(5px) saturate(.85); pointer-events: none; user-select: none; }
.xp-wall { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; background: color-mix(in oklab, var(--surface) 42%, transparent); backdrop-filter: blur(2px); opacity: 0; transition: opacity .35s; }
.xp-wall.in { opacity: 1; }
.xp-wall-card { width: min(440px, 100%); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card), 0 18px 60px rgba(0,0,0,.22); padding: 26px 26px 20px; text-align: center; transform: translateY(10px); transition: transform .35s; }
.xp-wall.in .xp-wall-card { transform: translateY(0); }
.xp-wall-card .eyebrow { display: block; margin-bottom: 10px; }
.xp-wall-card b { display: block; font-family: var(--disp); font-weight: 600; font-size: 21px; letter-spacing: -.015em; margin-bottom: 6px; }
.xp-wall-card p { font-size: 13.5px; color: var(--text-2); margin: 0; line-height: 1.55; }
.xp-wall-card .xt-form { margin-top: 16px; }
.xp-wall-card .xt-form input[type="email"] { min-width: 0; flex: 1 1 170px; }
.xp-wall-card .xt-sub { font-size: 11.5px; color: var(--text-3); margin-top: 12px; }
.xw-alt { display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--accent-text); text-decoration: none; }
.xw-alt:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .xp-wall, .xp-wall-card { transition: opacity .35s; transform: none; } .xp-bframe.xp-walled .xp-admin { filter: none; opacity: .25; } }

@media (max-width: 640px) {
  .xt-hint { display: none; }
  .xp-tour-bar { gap: 9px; padding: 10px 13px; }
  .xt-step { font-size: 12px; flex: 1 1 100%; order: 5; }
}

/* ── request 33 · floating next-step pill (tour) ──
   Viewport-fixed companion to the tour bar: the bar sits above the
   console and disappears once the visitor scrolls into the demo or
   goes fullscreen. The pill lives INSIDE .xp-bframe so it also
   paints in native fullscreen (only descendants of the fullscreened
   element render). Shown via .on only while the bar is off-screen
   or fullscreen is active (tour.js pillVis()).
   Revert: delete this block + the pill code in tour.js. ── */
.xt-float { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(14px); z-index: 60; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-card), 0 12px 40px rgba(0,0,0,.22); padding: 8px 10px 8px 16px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.xt-float.on { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.xt-float-step { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xt-float-where { border: none; background: none; color: var(--accent-text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; white-space: nowrap; }
.xt-float-next { border: 1px solid var(--line); background: var(--surface-2); color: var(--text-3); font: inherit; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 7px 14px; cursor: pointer; white-space: nowrap; transition: all .2s; }
.xt-float-next.y { background: var(--green); border-color: var(--green); color: #fff; }
@media (max-width: 640px) {
  .xt-float { gap: 8px; padding: 7px 8px 7px 13px; bottom: 12px; }
  .xt-float-step { font-size: 11.5px; max-width: 34vw; }
  .xt-float-where { font-size: 11px; }
  .xt-float-next { font-size: 11.5px; padding: 6px 11px; }
}
@media (prefers-reduced-motion: reduce) { .xt-float { transition: opacity .25s; transform: translateX(-50%); } }

/* ── Stephan review (2026-08-24) · zeiterfassung LP start veil ──
   The campaign console starts hidden behind a "Jetzt ausprobieren"
   button (same idea as the homepage xdoor veil); one click removes
   it and the demo is live. Markup exists ONLY on
   zeiterfassung-software-demo/index.html (#xp-startveil).
   .xp-head--beside keeps the Book-a-demo CTA beside the text on
   desktop instead of bottom-aligned under it.
   Revert: delete this block + the veil markup + inline unlock JS. ── */
.xp-head--beside { align-items: center; flex-wrap: nowrap; }
.xp-head--beside > div:first-child { flex: 1 1 auto; min-width: 0; }
.xp-head--beside .xp-cta-side { flex: none; }
@media (max-width: 760px) { .xp-head--beside { flex-wrap: wrap; } }
.xp-startveil { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: clamp(120px, 24vh, 280px) 24px 24px; gap: 12px; background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 30%, transparent) 0%, color-mix(in oklab, var(--bg) 78%, transparent) 60%, var(--bg) 100%); backdrop-filter: blur(3px); border-radius: inherit; transition: opacity .35s; }
.xp-startveil.off { opacity: 0; pointer-events: none; }
.xp-bframe.xp-idle .bframe-bar, .xp-bframe.xp-idle .xp-admin { filter: blur(2.5px) saturate(.9); pointer-events: none; user-select: none; }
.xp-start-btn { font-size: 15px; padding: 12px 22px; display: inline-flex; align-items: center; gap: 8px; }
.xp-start-sub { font-family: var(--mono); font-size: 11px; color: var(--text-2); letter-spacing: .02em; text-align: center; }
@media (prefers-reduced-motion: reduce) { .xp-startveil { transition: none; } }

/* ── request 22 · accuracy pass ── */
/* panels fill the container like the overview does */
.xp-fill { width: 100%; }
/* disclaimer sentence in the hero lede */
.xp-note { color: var(--text-3); font-size: 0.92em; }
/* clickable sub-tabs (uicard, data-sub only) + timesheet view segments */
.xp-body .uicard-tab[data-sub], .xp-body .ts-toolbar .seg[data-tsview] { cursor: pointer; user-select: none; transition: color .15s, background .15s, border-color .15s; }
.xp-body .uicard-tab[data-sub]:hover { color: var(--text); }
.xp-body .ts-toolbar .seg[data-tsview]:hover { color: var(--text); border-color: var(--text-3); }
/* sub-tab content panes */
.xp-subpane { display: none; }
.xp-subpane.on { display: block; }
/* People (Folk) panel */
.fk-filters { display: flex; gap: 6px; flex-wrap: wrap; padding: 2px 2px 12px; }
.fk-filters .seg { font-family: var(--mono); font-size: 10.5px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--text-3); cursor: pointer; user-select: none; transition: color .15s, border-color .15s, background .15s; }
.fk-filters .seg:hover { color: var(--text); border-color: var(--text-3); }
.fk-filters .seg.on { background: var(--surface-3); color: var(--text); border-color: var(--text-3); }
.fk-grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fk-grid th { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.fk-grid td { padding: 9px 10px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.fk-grid tbody tr:last-child td { border-bottom: 0; }
.fk-grid .mono-v { font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.fk-role { display: inline-block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; color: var(--text-3); margin-right: 4px; }
/* AI chat (request 22-h) */
.xw-chat { display: flex; flex-direction: column; gap: 10px; }
.xw-q-row { display: flex; gap: 6px; flex-wrap: wrap; padding: 2px 0 4px; }
.xw-q { font-family: var(--mono); font-size: 10.5px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--text-2); cursor: pointer; user-select: none; background: var(--surface); transition: color .15s, border-color .15s, background .15s; }
.xw-q:hover { color: var(--text); border-color: var(--green); background: var(--green-wash); }
@media (max-width: 720px) {
  .fk-grid .fk-hide-m { display: none; }
}

/* ── request 24 · prototype visual timesheet views (v52 timeline · v52 heatmap · v55 KPI cards) ── */
/* per-view KPI cards (v55 ReviewCards) */
.xp-stat { position: relative; }
.xp-stat.acc { border-color: color-mix(in oklab, var(--pill-amber-tx) 45%, var(--hairline)); background: color-mix(in oklab, var(--pill-amber-bg) 45%, var(--surface)); }
.xp-stat .track { height: 4px; border-radius: 2px; background: color-mix(in oklab, var(--text-3) 18%, transparent); margin-top: 9px; overflow: hidden; }
.xp-stat .track .fill { display: block; height: 100%; border-radius: 2px; background: var(--green); }
.xp-stat .sub .okdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 5px; vertical-align: 0; }

/* day timeline (v52 DayTimeline) */
.dz-gantt { border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); overflow: hidden; margin-bottom: 12px; }
.dz-head { display: grid; grid-template-columns: 178px 1fr; border-bottom: 1px solid var(--hairline); background: color-mix(in oklab, var(--text-3) 5%, transparent); }
.dz-key { padding: 8px 12px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; }
.dz-ruler { display: grid; grid-template-columns: repeat(7, 1fr); padding: 8px 0; }
.dz-tick { font-family: var(--mono); font-size: 9px; color: var(--text-3); padding-left: 5px; border-left: 1px solid var(--hairline); font-variant-numeric: tabular-nums; }
.dz-body { position: relative; }
.dz-now { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid #E89A2C; z-index: 3; }
.dz-now::after { content: ""; position: absolute; top: 0; left: -3.5px; width: 6px; height: 6px; border-radius: 50%; background: #E89A2C; }
.dz-row { display: grid; grid-template-columns: 178px 1fr; border-bottom: 1px solid var(--hairline); }
.dz-row:last-child { border-bottom: none; }
.dz-worker { display: flex; align-items: center; gap: 9px; padding: 9px 12px; min-width: 0; }
.dz-worker .av { width: 26px; height: 26px; font-size: 10px; flex: none; }
.dz-worker .nm { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-worker .ro { font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-lane { position: relative; min-height: 48px; }
.dz-bar { position: absolute; top: 10px; bottom: 10px; border-radius: 5px; display: flex; align-items: center; padding: 0 8px; font-size: 10px; font-weight: 600; overflow: hidden; white-space: nowrap; font-family: var(--mono); letter-spacing: 0.01em; }
.dz-bar.ok { background: color-mix(in oklab, var(--green) 82%, var(--surface)); color: #08150c; }
.dz-bar.lv { background: color-mix(in oklab, var(--green) 82%, var(--surface)); color: #08150c; box-shadow: 0 0 0 2px color-mix(in oklab, var(--green) 35%, transparent); }
.dz-bar.gap { background: repeating-linear-gradient(45deg, color-mix(in oklab, #D83A2F 14%, transparent), color-mix(in oklab, #D83A2F 14%, transparent) 4px, color-mix(in oklab, #D83A2F 26%, transparent) 4px, color-mix(in oklab, #D83A2F 26%, transparent) 8px); color: #D83A2F; border: 1px solid color-mix(in oklab, #D83A2F 45%, transparent); }
.dz-bar.ghost { background: transparent; border: 1px dashed var(--line); color: var(--text-3); }
.dz-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 14px 11px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); border-top: 1px solid var(--hairline); }
.dz-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 5px; vertical-align: -1.5px; }
.dz-legend i.ok { background: color-mix(in oklab, var(--green) 82%, var(--surface)); }
.dz-legend i.lv { background: color-mix(in oklab, var(--green) 82%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in oklab, var(--green) 35%, transparent); }
.dz-legend i.gap { background: repeating-linear-gradient(45deg, color-mix(in oklab, #D83A2F 14%, transparent), color-mix(in oklab, #D83A2F 14%, transparent) 4px, color-mix(in oklab, #D83A2F 26%, transparent) 4px, color-mix(in oklab, #D83A2F 26%, transparent) 8px); }
.dz-legend i.ghost { background: transparent; border: 1px dashed var(--line); }

/* month heatmap (v52 MonthHeatmap) */
.hm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hm-wrap { min-width: 900px; padding: 4px 0 2px; }
.hm-row { display: grid; grid-template-columns: 158px repeat(31, 1fr) 62px; gap: 2px; align-items: center; padding: 3px 10px; }
.hm-row.hm-head { padding-top: 7px; padding-bottom: 6px; border-bottom: 1px solid var(--hairline); margin-bottom: 3px; }
.hm-name { display: flex; align-items: center; gap: 7px; font-size: 12px; overflow: hidden; }
.hm-name .av { width: 22px; height: 22px; font-size: 9px; flex: none; }
.hm-name .hn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: var(--text); }
.hm-cell { aspect-ratio: 1 / 1; border-radius: 3px; }
.hm-cell.b0 { background: color-mix(in oklab, var(--text-3) 8%, transparent); border: 1px solid var(--hairline); }
.hm-cell.b1 { background: color-mix(in oklab, var(--green) 28%, var(--surface)); }
.hm-cell.b2 { background: color-mix(in oklab, var(--green) 58%, var(--surface)); }
.hm-cell.b3 { background: color-mix(in oklab, var(--green) 88%, var(--surface)); }
.hm-cell.leave { background: color-mix(in oklab, var(--text-3) 45%, transparent); }
.hm-cell.future { background: transparent; border: 1px dashed var(--line); opacity: 0.45; }
.hm-cell.flag { box-shadow: 0 0 0 2px #E89A2C inset; }
.hm-hc { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; font-family: var(--mono); font-size: 8.5px; line-height: 1.35; color: var(--text-3); }
.hm-hc.we { color: var(--text-2); font-weight: 600; }
.hm-total { text-align: right; font-family: var(--mono); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); }
.hm-total.mut { color: var(--text-3); }
.hm-th { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.hm-th.r { text-align: right; }

/* section labels inside a view */
.xp-viewlbl { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin: 2px 2px 8px; }

@media (max-width: 720px) {
  .dz-head, .dz-row { grid-template-columns: 118px 1fr; }
  .dz-worker .ro { display: none; }
  .hm-row { grid-template-columns: 110px repeat(31, 1fr) 52px; }
}
/* heatmap legend swatches (reuse dz-legend layout) */
.dz-legend i.b0 { background: color-mix(in oklab, var(--text-3) 8%, transparent); border: 1px solid var(--hairline); }
.dz-legend i.b1 { background: color-mix(in oklab, var(--green) 28%, var(--surface)); }
.dz-legend i.b2 { background: color-mix(in oklab, var(--green) 58%, var(--surface)); }
.dz-legend i.b3 { background: color-mix(in oklab, var(--green) 88%, var(--surface)); }
.dz-legend i.leave { background: color-mix(in oklab, var(--text-3) 45%, transparent); }
.dz-legend i.flagsw { background: color-mix(in oklab, var(--green) 58%, var(--surface)); box-shadow: 0 0 0 2px #E89A2C inset; }
.dz-now { left: calc(178px + (100% - 178px) * var(--nowfrac, 0)); }
@media (max-width: 720px) { .dz-now { left: calc(118px + (100% - 118px) * var(--nowfrac, 0)); } }

/* ── avatar shape fix: console-demo avatars are circles, matching HR + the rest of the site ── */
.wk-who .av, .fk-grid .av, .dz-worker .av, .hm-name .av,
.live-row .av, .cap-row .av, .ov-tile .av {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff;
}
.dz-worker .av { width: 26px; height: 26px; font-size: 10px; }
.hm-name .av { width: 22px; height: 22px; font-size: 9px; }

/* ── request 27 · fullscreen toggle on the demo frame ── */
.xp-fsbtn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; margin-left: 10px; border: 1px solid var(--hairline); border-radius: 7px; background: var(--surface); color: var(--text-3); cursor: pointer; padding: 0; transition: color .15s, border-color .15s; }
.xp-fsbtn:hover { color: var(--text); border-color: var(--line); }
.xp-fsbtn svg { width: 14px; height: 14px; }
.xp-fsbtn .i-min { display: none; }
/* native Fullscreen API state */
.xp-bframe:fullscreen { border-radius: 0; overflow: auto; background: var(--surface); }
.xp-bframe:fullscreen .xp-fsbtn .i-max { display: none; }
.xp-bframe:fullscreen .xp-fsbtn .i-min { display: block; }
.xp-bframe:fullscreen .xp-admin { min-height: calc(100vh - 46px); }
/* CSS fallback (iOS Safari: no Fullscreen API on regular elements) */
.xp-bframe.xp-fs-fallback { position: fixed; inset: 0; z-index: 999; border-radius: 0; overflow: auto; background: var(--surface); }
.xp-bframe.xp-fs-fallback .xp-fsbtn .i-max { display: none; }
.xp-bframe.xp-fs-fallback .xp-fsbtn .i-min { display: block; }
.xp-bframe.xp-fs-fallback .xp-admin { min-height: calc(100vh - 46px); }
html.xp-fs-lock, html.xp-fs-lock body { overflow: hidden; }
@media (max-width: 720px) { .xp-fsbtn { display: none; } }
