/* ============================================================
   KIWA /next/ — "Built by KIWA": real systems, live on screens
   Device scenes are rendered stills; each .screen sits exactly over
   the keyed screen area (percent box from the render) and holds a
   recreation drawn at a fixed virtual size (data-w × data-h), scaled
   to fit by next-systems.js. Tokens below are each app's own.
   ============================================================ */

.sys{background:#0B0A09;color:var(--paper);padding:clamp(100px,16vh,160px) 0 clamp(80px,12vh,130px)}
.sys-head{margin-bottom:clamp(30px,6vh,60px)}
.sys-h{font:900 clamp(38px,5vw,72px)/.92 var(--sans);font-stretch:125%;letter-spacing:-.03em;text-transform:uppercase;max-width:14ch}
.sys-h em{display:block;font-style:italic;font-weight:300;font-stretch:100%;text-transform:none;font-size:.5em;letter-spacing:-.02em;color:#9C978E;margin-top:.25em}
.sys-note{margin-top:18px;font:400 10.5px/1.6 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:#8A857C;max-width:60ch}
.sys-grid{display:grid;grid-template-columns:1fr;gap:clamp(14px,2vw,26px)}
.sys-full{grid-column:1/-1}
.sys-scene{margin:0}
.scene{position:relative;overflow:hidden;background:#111}
.scene>img{display:block;width:100%;height:auto}
.sys-scene figcaption{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;padding-top:14px}
/* each system is named above its scene, large, like a product launch */
.sys-scene .sys-cap{display:grid;grid-template-columns:auto 1fr;align-items:end;gap:6px clamp(20px,3vw,48px);padding:0 0 clamp(16px,2.4vw,28px)}
.sys-k{grid-column:1/-1;font:400 11px/1.4 var(--mono);letter-spacing:.18em;text-transform:uppercase;color:var(--red-hi)}
.sys-t{margin:0;font:900 clamp(34px,5.4vw,84px)/.9 var(--sans);font-stretch:125%;letter-spacing:-.03em;text-transform:uppercase;color:var(--paper)}
.sys-scene .sys-cap b{justify-self:end;max-width:30ch;text-align:right;color:rgba(246,241,231,.78);padding-bottom:.35em}
.sys-full+.sys-full{margin-top:clamp(40px,8vh,90px)}
@media (max-width:700px){.sys-scene .sys-cap{grid-template-columns:1fr}.sys-scene .sys-cap b{justify-self:start;text-align:left;padding-bottom:0}}
.sys-scene figcaption b{font:700 clamp(15px,1.3vw,19px)/1.3 var(--sans);font-stretch:108%;color:rgba(246,241,231,.9)}
.sys-scene figcaption .tag{background:rgba(246,241,231,.1)}

/* the live screen: a fixed-size canvas scaled into the render's screen box */
.screen{position:absolute;overflow:hidden;background:#0e0e10;border-radius:.4%}
.screen>div{--vw:1280;--vh:790;position:absolute;left:0;top:0;transform-origin:0 0;width:calc(var(--vw) * 1px);height:calc(var(--vh) * 1px);transform:scale(var(--s,0.5))}
.screen.phone{border-radius:14% / 6.6%}

/* ---------- DealerPro recreation (light theme tokens) ---------- */
.dp{display:flex;background:#f8f9fa;color:#1a1d2e;font:400 14px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif}
.dp-side{width:220px;flex:none;background:#1e293b;color:#e2e8f0;padding:0 12px}
.dp-side b{display:block;padding:20px 8px 18px;border-bottom:1px solid #334155;font:600 15px/1.2 system-ui,sans-serif;letter-spacing:.02em}
.dp-side ul{list-style:none;padding-top:12px;display:grid;gap:4px}
.dp-side li{display:flex;align-items:center;gap:10px;height:36px;padding:0 10px;border-radius:8px;font-size:13.5px;color:#cbd5e1}
.dp-side li i{width:16px;height:16px;border-radius:4px;border:1.6px solid currentColor;opacity:.75}
.dp-side li.on{background:#2563eb;color:#fff}
.dp-main{flex:1;display:flex;flex-direction:column;min-width:0}
.dp-top{height:60px;background:#fff;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;gap:10px;padding:0 20px}
.dp-search{flex:1;height:36px;border:1px solid #e2e8f0;border-radius:8px;display:flex;align-items:center;padding:0 14px;color:#94a3b8;font-size:13px}
.dp-btn{height:34px;display:inline-flex;align-items:center;padding:0 14px;border-radius:8px;background:#2563eb;color:#fff;font:500 13px system-ui,sans-serif;white-space:nowrap}
.dp-btn.ghost{background:#f1f5f9;color:#1a1d2e}
.dp-bell{width:28px;height:28px;border-radius:50%;background:#f1f5f9;display:grid;place-items:center;font:600 11px system-ui,sans-serif;color:#dc2626}
.dp-body{position:relative;padding:20px 24px;display:flex;flex-direction:column;gap:16px}
.dp-h{display:flex;align-items:center;gap:12px}
.dp-h h4{flex:1;font:600 26px/1 system-ui,sans-serif;letter-spacing:-.01em}
.dp-seg{display:inline-flex;background:#f1f5f9;border-radius:8px;padding:3px;font-size:12px}
.dp-seg b,.dp-seg i{font-style:normal;font-weight:500;padding:6px 10px;border-radius:6px;color:#64748b}
.dp-seg b{background:#2563eb;color:#fff}
.dp-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.dp-kpi{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:16px 18px;display:flex;flex-direction:column;gap:6px;position:relative}
.dp-kpi::after{content:"";position:absolute;right:16px;top:16px;width:36px;height:36px;border-radius:10px;background:var(--t)}
.dp-kpi span{font-size:12.5px;color:#64748b}
.dp-kpi b{font:600 26px/1 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.dp-kpi em{font-style:normal;font-size:11.5px;color:#64748b}
.dp-kpi.g{--t:rgba(16,185,129,.12)}.dp-kpi.g em{color:#10b981}
.dp-kpi.r{--t:rgba(220,38,38,.1)}
.dp-kpi.a{--t:rgba(245,158,11,.12)}
.dp-kpi.b{--t:rgba(37,99,235,.1)}
.dp-sec{font:600 12px system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#64748b}
.dp-row{display:grid;grid-template-columns:3fr 2fr;gap:14px}
.dp-card{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:14px 16px}
.dp-card>span{display:block;font:500 14px system-ui,sans-serif;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #e2e8f0}
.dp-bars{height:170px;display:flex;align-items:flex-end;gap:10px;border-bottom:1px solid #e2e8f0}
.dp-bars i{flex:1;height:var(--h);background:#10b981;border-radius:4px 4px 0 0;transform-origin:bottom}
.dp-list p{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f1f5f9;font-size:13px}
.dp-list p b{flex:1;font-weight:500}
.dp-list p em{font-style:normal;font-variant-numeric:tabular-nums}
.dp-list p i{font-style:normal;font-size:11.5px;color:#dc2626;background:rgba(220,38,38,.1);border:1px solid rgba(220,38,38,.2);border-radius:999px;padding:2px 8px}
.dp-toast{position:absolute;right:24px;bottom:18px;background:#1a1d2e;color:#fff;font:500 13px system-ui,sans-serif;padding:12px 16px;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.2);opacity:0;transform:translateY(10px)}
.dp-toast::before{content:"✓";display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#10b981;margin-right:10px;font-size:11px}

/* ---------- Employee Hub recreation ("Pine & Paper" tokens) ---------- */
.eh{display:flex;background:#f4f0e6;color:#1c1b18;font:400 14px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif}
.eh-side{width:220px;flex:none;background:#152f26;color:#cfc8b6;padding:18px 12px}
.eh-side b{display:flex;align-items:center;gap:8px;padding:2px 8px 20px;font:700 19px/1 var(--sans);font-stretch:105%;color:#fff}
.eh-side b i{width:18px;height:14px;border-radius:3px;background:linear-gradient(#fff 0 2px,transparent 2px 6px,#fff 6px 8px,transparent 8px 12px,#fff 12px 14px);position:relative}
.eh-side b i::after{content:"";position:absolute;right:-4px;top:5px;width:5px;height:5px;border-radius:50%;background:#e0a22c}
.eh-side b span{font-weight:400;opacity:.85}
.eh-side ul{list-style:none;display:grid;gap:3px}
.eh-side li{padding:9px 12px;border-radius:7px;font-size:13.5px;position:relative}
.eh-side li.on{background:rgba(255,255,255,.1);color:#fff}
.eh-side li.on::before{content:"";position:absolute;left:0;top:7px;bottom:7px;width:3px;border-radius:2px;background:#e0a22c}
.eh-main{flex:1;display:flex;flex-direction:column;min-width:0}
.eh-top{height:58px;background:#fffdf9;border-bottom:1px solid #e2dccd;display:flex;align-items:center;justify-content:space-between;padding:0 22px}
.eh-top h4{font:650 19px/1 var(--sans);font-stretch:105%}
.eh-co{font-size:12px;border:1px solid #e2dccd;border-radius:20px;padding:5px 12px;color:#4a4943}
.eh-body{padding:18px 22px;display:grid;grid-template-columns:3fr 2fr;gap:14px;align-content:start}
.eh-card{background:#fffdf9;border:1px solid #e2dccd;border-radius:10px;padding:14px 16px}
.eh-status{grid-row:span 2}
.eh-tabs{display:flex;gap:18px;border-bottom:1px solid #efeadf;margin-bottom:6px;font-size:13px}
.eh-tabs b,.eh-tabs i{font-style:normal;padding:4px 0 10px}
.eh-tabs b{color:#1f4a3a;border-bottom:2px solid #1f4a3a}
.eh-tabs i{color:#6f6e67}
.eh table{width:100%;border-collapse:collapse;font-size:13px}
.eh th{text-align:left;font:600 10.5px system-ui,sans-serif;letter-spacing:.07em;text-transform:uppercase;color:#6f6e67;padding:8px 6px}
.eh td{padding:10px 6px;border-top:1px solid #efeadf;font-variant-numeric:tabular-nums}
.eh td em{display:block;font-style:normal;font-size:11px;color:#6f6e67;margin-left:34px}
.av{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#2a5f4b;color:#fff;font-style:normal;font-size:11px;font-weight:700;margin-right:8px;vertical-align:middle}
.eh-new{background:#e2f1e8;opacity:0}
.eh-tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.eh-tile{background:#fffdf9;border:1px solid #e2dccd;border-radius:10px;padding:12px 14px;border-left:3px solid #cfc8b6;display:flex;flex-direction:column;gap:6px}
.eh-tile span{font-size:12px;color:#6f6e67}
.eh-tile b{font:700 26px/1 var(--sans);font-variant-numeric:tabular-nums}
.eh-tile.warn{border-left-color:#e0a22c}.eh-tile.warn b{color:#8a5a00}
.eh-tile.bad{border-left-color:#b02a21}.eh-tile.bad b{color:#b02a21}
.eh-hours>span{display:block;font-size:13px;font-weight:600;margin-bottom:10px}
.eh-bars{height:90px;display:flex;align-items:flex-end;gap:5px}
.eh-bars i{flex:1;height:var(--h);background:#1f4a3a;border-radius:3px 3px 0 0;transform-origin:bottom}

/* ---------- Employee Hub phone: the clock screen ---------- */
.clk{background:#f4f6fa;color:#111a28;font:400 15px/1.35 system-ui,-apple-system,sans-serif;padding:70px 22px 0;display:flex;flex-direction:column}
.clk h5{font:800 30px/1 system-ui,sans-serif}
.clk-co{font:800 12px system-ui,sans-serif;letter-spacing:.08em;color:#67728a;margin:6px 0 18px}
.clk-pill{align-self:flex-start;font:700 13px system-ui,sans-serif;padding:7px 12px;border-radius:999px;background:#dfe4ec;color:#67728a}
.clk-pill.on{background:#e2f2f0;color:#0f766e}
.clk-timer{font:800 52px/1 system-ui,sans-serif;margin-top:34px;font-variant-numeric:tabular-nums}
.clk-sub{font-size:13px;color:#67728a;margin-top:6px}
.clk-btn{margin-top:40px;height:76px;border-radius:14px;background:#0f766e;color:#fff;display:grid;place-items:center;font:800 21px system-ui,sans-serif;letter-spacing:.02em}
.clk-btn.out{background:#9f1239}
.clk-loc{margin-top:14px;font-size:12.5px;color:#67728a}
.clk-tabs{position:absolute;left:14px;right:14px;bottom:26px;height:62px;border-radius:999px;background:rgba(255,255,255,.85);border:1px solid #dfe4ec;box-shadow:0 8px 24px rgba(31,74,58,.12);display:flex;justify-content:space-around;align-items:center}
.clk-tabs i{width:22px;height:22px;border-radius:6px;border:2px solid #67728a}
.clk-tabs i.on{width:44px;height:44px;border-radius:50%;border:none;background:#1f4a3a}

@media (max-width:1000px){
  .sys-grid{grid-template-columns:1fr}
}
