/* ==========================================================================
   landing-sim.css — simulasi fitur di halaman depan (site/sim/*.php, mesin landing-sim.js). Prefiks: sim- (bagian bersama),
   day- (pembuka satu hari kerja), lalu per adegan (ab-, jd-, ct-, pr-, rk-, lp-rep-, pt-, wa-, db-).
   Panggung = tiruan antarmuka Haris yang diskalakan seperti gambar: .sim-stage adalah container query, semua ukuran di dalam
   .sim-canvas memakai em (1em = 1/64 lebar panggung; layar sempit ≤ 560px: 1/36 dengan tata letak sendiri).
   Keadaan: tanpa JS = keadaan akhir; dengan JS = .is-in / .is-out per langkah (lihat landing-sim.js). Gerak dimatikan oleh
   prefers-reduced-motion (base.css) — simulasi tetap bisa dilihat per langkah.
   ========================================================================== */

/* --- Panggung ------------------------------------------------------------------------------------------------------ */

.sim { position: relative; }
.sim-stage {
    position: relative; isolation: isolate; overflow: hidden; container-type: inline-size; border-radius: 22px;
    background: linear-gradient(160deg, #E8EFEC 0%, #F3F0E8 52%, #F7EEE5 100%);
    box-shadow: inset 0 0 0 1px rgba(27, 35, 41, .06);
}
.sim-canvas {
    position: relative; aspect-ratio: 64 / 44; font-size: calc(100cqw / 64); line-height: 1.35; color: var(--ink); letter-spacing: -.003em;
    transition: opacity .5s var(--ease-out);
}
.sim.is-rewind .sim-canvas { opacity: 0; }
.sim-canvas .icon { width: 1.2em; height: 1.2em; stroke-width: 2; }
.sim-canvas b { font-weight: 650; }
.sim-canvas small { font-size: .88em; }
@container (max-width: 560px) {
    .sim-canvas { aspect-ratio: 36 / 48; font-size: calc(100cqw / 36); }
}

/* --- Keadaan per langkah (lihat kontrak di landing-sim.js) ------------------------------------------------------------ */

.js .sim [data-in]:not(.is-in), .js .sim .is-out { opacity: 0; visibility: hidden; transform: var(--from, translateY(.7em)); }
.sim.is-ready [data-in], .sim.is-ready [data-out] {
    transition: opacity .42s var(--ease-out), transform .62s var(--ease-spring), visibility 0s linear 0s;
}
.sim.is-ready [data-in]:not(.is-in), .sim.is-ready .is-out {
    transition: opacity .28s var(--ease-out), transform .4s var(--ease-out), visibility 0s linear .3s;
}
.no-js .sim [data-out] { display: none !important; }
/* JavaScript gagal dimuat: setelah 3 detik semua elemen ditampilkan (lebih baik ramai daripada kosong). */
.js .sim:not(.is-ready) [data-in] { animation: sim-fallback .01s 3s forwards; }
@keyframes sim-fallback { to { opacity: 1; visibility: visible; transform: none; } }
.sim-instant, .sim-instant * { transition: none !important; }

.fx-pop { --from: scale(.8); }
.fx-l { --from: translateX(-1.4em); }
.fx-r { --from: translateX(1.6em); }
.fx-d { --from: translateY(-.9em); }
.fx-u { --from: translateY(1.4em); }
.fx-f { --from: none; }
.fx-z { --from: scale(1.18); }
.fx-x { --from: scaleX(0); transform-origin: 0 50%; }
.fx-y { --from: scaleY(0); transform-origin: 50% 100%; }

.sim-swap { display: inline-grid; align-items: center; justify-items: start; }
.sim-swap > * { grid-area: 1 / 1; }

/* --- Kursor (layar sempit: titik ketukan) --------------------------------------------------------------------------- */

.sim-cursor {
    --cx: 56em; --cy: 40em;
    position: absolute; left: 0; top: 0; z-index: 40; width: 0; height: 0; pointer-events: none; opacity: 0;
    transform: translate(var(--cx), var(--cy));
    transition: transform .6s cubic-bezier(.45, .05, .2, 1), opacity .25s var(--ease-out);
}
.sim-cursor.is-on { opacity: 1; }
.sim-arrow {
    position: absolute; left: -.5em; top: -.3em; width: 2.2em; height: 2.2em; fill: #1B2329; stroke: #FFFFFF; stroke-width: 1.5;
    stroke-linejoin: round; filter: drop-shadow(0 .15em .25em rgba(0, 0, 0, .28));
}
.sim-cursor::after {
    content: ""; position: absolute; left: -1.4em; top: -1.4em; width: 2.8em; height: 2.8em; border-radius: 50%;
    background: rgba(254, 127, 45, .38); opacity: 0; transform: scale(.2);
}
.sim-cursor.is-click::after { animation: sim-ripple .52s var(--ease-out); }
@keyframes sim-ripple { 0% { opacity: .95; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.6); } }
.is-pressed { transform: scale(.93) !important; filter: brightness(.93); }
@container (max-width: 560px) {
    .sim-arrow { display: none; }
    .sim-cursor::before {
        content: ""; position: absolute; left: -1.15em; top: -1.15em; width: 2.3em; height: 2.3em; border-radius: 50%;
        background: rgba(27, 35, 41, .2); box-shadow: 0 0 0 .2em rgba(255, 255, 255, .75);
    }
}

/* --- Bagian tiruan UI ------------------------------------------------------------------------------------------------ */

.sim-win {
    position: absolute; display: flex; flex-direction: column; overflow: hidden; border-radius: 1.1em; background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(27, 35, 41, .07), 0 .3em .8em -.3em rgba(27, 35, 41, .14), 0 2.4em 4.6em -2em rgba(27, 35, 41, .34);
}
.sim-win-bar {
    display: flex; align-items: center; gap: .7em; flex: none; height: 3.6em; padding: 0 1.3em; border-bottom: 1px solid #EEEDE7; background: #FCFBF8;
}
.sim-win-title { font-size: 1.12em; font-weight: 700; letter-spacing: -.012em; white-space: nowrap; }
.sim-win-body { position: relative; flex: 1; min-height: 0; padding: 1.3em; }
.sim-logo {
    display: inline-grid; place-items: center; flex: none; width: 2.2em; height: 2.2em; border-radius: .6em; background: var(--grad-primary);
    color: #FFFFFF; font-size: .9em; font-weight: 750; letter-spacing: .02em;
}
.sim-chip {
    display: inline-flex; align-items: center; gap: .35em; height: 2em; padding: 0 .75em; border-radius: 1em; background: #F3F2ED; color: var(--ink-2);
    font-size: .92em; font-weight: 600; white-space: nowrap;
}
.sim-who { display: inline-flex; align-items: center; gap: .55em; margin-left: auto; font-size: .92em; line-height: 1.2; }
.sim-who small { display: block; color: var(--ink-3); font-size: .9em; }

.sim-phone {
    position: absolute; width: 19em; height: 39em; padding: 1.5em .6em .6em; border-radius: 3em; background: #0F1B22;
    box-shadow: inset 0 0 0 .12em rgba(255, 255, 255, .09), 0 .4em 1em -.3em rgba(15, 27, 34, .35), 0 2.6em 5em -2em rgba(15, 27, 34, .55);
}
.sim-phone::before { content: ""; position: absolute; top: .5em; left: 50%; width: 5.5em; height: .55em; margin-left: -2.75em; border-radius: 1em; background: #26343D; }
.sim-screen { position: relative; height: 100%; overflow: hidden; border-radius: 2.45em; background: #F7F6F2; }
.sim-status { display: flex; align-items: center; justify-content: space-between; height: 2.4em; padding: .2em 1.5em 0; font-size: .9em; font-weight: 700; font-variant-numeric: tabular-nums; }
.sim-signal { display: inline-flex; align-items: flex-end; gap: .15em; height: .9em; }
.sim-signal i { display: block; width: .22em; border-radius: .1em; background: var(--ink); }
.sim-signal i:nth-child(1) { height: 40%; }
.sim-signal i:nth-child(2) { height: 70%; }
.sim-signal i:nth-child(3) { height: 100%; }
.sim-signal b { display: block; width: 1.5em; height: .8em; margin-left: .35em; border-radius: .22em; box-shadow: inset 0 0 0 .12em var(--ink); background: linear-gradient(90deg, var(--ink) 70%, transparent 70%) .2em 50% / 1.1em .4em no-repeat; }
.sim-scr { position: absolute; inset: 2.4em 0 0; display: flex; flex-direction: column; gap: .75em; padding: .5em 1.15em 1.2em; }
.scr-title { font-size: 1.28em; font-weight: 720; letter-spacing: -.018em; line-height: 1.2; }
.scr-sub { margin-top: -.45em; color: var(--ink-3); font-size: .95em; }
.scr-sub b { color: var(--ink); }

.sim-card { position: relative; border-radius: .9em; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(27, 35, 41, .07), 0 .15em .45em -.1em rgba(27, 35, 41, .08); }
.sim-card-title { display: flex; align-items: center; gap: .6em; padding: .9em 1em .35em; font-size: 1.02em; font-weight: 700; }
.sim-card-title small { overflow: hidden; color: var(--ink-3); font-size: .82em; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.sim-card-title > .sim-badge, .sim-card-title > .sim-swap { margin-left: auto; }
.sim-row { display: flex; align-items: center; gap: .75em; padding: .7em 1em; }
.sim-row + .sim-row { box-shadow: inset 0 1px 0 #F0EFEA; }
.sim-grow { flex: 1; min-width: 0; font-size: .98em; line-height: 1.3; }
.sim-grow small { display: block; overflow: hidden; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.sim-time { flex: none; width: 3.6em; color: var(--ink-3); font-size: .9em; font-weight: 600; font-variant-numeric: tabular-nums; }
.sim-av {
    display: inline-grid; place-items: center; flex: none; width: 2.5em; height: 2.5em; border-radius: 50%; background: var(--primary); color: #FFFFFF;
    font-size: .86em; font-weight: 700; letter-spacing: .02em;
}
.sim-ico { display: inline-grid; place-items: center; flex: none; width: 2.15em; height: 2.15em; border-radius: .65em; background: var(--primary); color: #FFFFFF; }
.sim-ico .icon { width: 1.1em; height: 1.1em; }
.c-or { background: var(--orange); }
.c-te { background: var(--teal); }
.c-sa { background: var(--sage); color: #233517; }
.c-ye { background: var(--yellow); color: #4B3600; }
.c-ink { background: #5A656E; }
.c-pr { background: var(--primary); }
.sim-badge {
    display: inline-flex; align-items: center; gap: .3em; height: 1.95em; padding: 0 .7em; border-radius: 1em; background: #F2F3F1; color: #5A656E;
    font-size: .88em; font-weight: 650; white-space: nowrap;
}
.sim-badge .icon { width: 1.05em; height: 1.05em; stroke-width: 2.4; }
.sim-badge.ok { background: var(--st-cool-bg); color: var(--st-cool); }
.sim-badge.warn { background: var(--st-warm-bg); color: var(--st-warm); }
.sim-badge.info { background: var(--st-info-bg); color: var(--st-info); }
.sim-badge.accent { background: var(--st-accent-bg); color: var(--st-accent); }
.sim-badge.hot { background: var(--st-hot-bg); color: var(--st-hot); }
.sim-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45em; flex: none; height: 2.8em; padding: 0 1.1em; border-radius: .8em;
    background: #FFFFFF; box-shadow: inset 0 0 0 1px #E2E0D8; color: var(--ink); font-size: 1em; font-weight: 650; white-space: nowrap;
    transition: transform .16s var(--ease), filter .16s var(--ease);
}
.sim-btn.sm { height: 2.3em; padding: 0 .85em; border-radius: .65em; font-size: .9em; }
.sim-btn.primary { background: var(--grad-primary); box-shadow: 0 .1em .25em rgba(23, 42, 53, .3); color: #FFFFFF; }
.sim-btn.accent { background: var(--grad-accent); box-shadow: 0 .1em .25em rgba(163, 72, 15, .3); color: #2A1406; }
.sim-btn.block { display: flex; width: 100%; }
.sim-acts { display: inline-flex; gap: .4em; }

.sim-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8em; }
.sim-kpi { display: grid; gap: .3em; padding: .85em 1em; border-radius: .9em; background: var(--grad-metric); box-shadow: 0 0 0 1px rgba(27, 35, 41, .07); }
.sim-kpi > span { overflow: hidden; color: var(--ink-3); font-size: .86em; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.sim-kpi b { font-size: 1.85em; font-weight: 740; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.sim-kpi b small { margin-left: .1em; color: var(--ink-3); font-size: .5em; font-weight: 600; letter-spacing: 0; }
.sim-kpi.is-accent { background: var(--st-accent-bg); box-shadow: inset 0 0 0 1px var(--st-accent-ln); }
.sim-kpi.is-accent b { color: var(--st-accent); }

/* Toast & pesan WhatsApp */
.sim-toast {
    position: relative; padding: .8em .95em .85em; border-radius: 1em; background: #FFFFFF; font-size: .9em; line-height: 1.38;
    box-shadow: 0 0 0 1px rgba(27, 35, 41, .07), 0 .8em 1.8em -.8em rgba(15, 27, 34, .45);
}
.wa-head { display: flex; align-items: center; gap: .45em; margin-bottom: .3em; font-size: .92em; }
.wa-head .icon { width: 1.15em; height: 1.15em; color: #1C9C4F; }
.wa-head b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wa-head time { margin-left: auto; color: var(--ink-3); font-size: .9em; font-variant-numeric: tabular-nums; }
.wa-text { color: var(--ink-2); overflow-wrap: anywhere; }

/* Isi HP: kolom isian, status, notifikasi */
.scr-field { display: grid; gap: .1em; padding: .6em .8em; border-radius: .75em; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(27, 35, 41, .08); font-size: .98em; }
.scr-field small { color: var(--ink-3); font-size: .82em; font-weight: 600; }
.scr-pill { display: flex; align-items: center; justify-content: center; gap: .45em; height: 2.8em; border-radius: .8em; font-size: .95em; font-weight: 650; }
.scr-pill.warn { background: var(--st-warm-bg); color: var(--st-warm); box-shadow: inset 0 0 0 1px var(--st-warm-ln); }
.scr-pill.ok { background: var(--st-cool-bg); color: var(--st-cool); box-shadow: inset 0 0 0 1px var(--st-cool-ln); }
.scr-state { display: grid; width: 100%; }
.scr-state > * { width: 100%; }
.scr-ok { display: inline-flex; align-items: center; gap: .3em; color: var(--st-cool); font-size: .95em; font-weight: 650; }

/* Peta absen: zona radius, titik lokasi, posisi karyawan (bergerak masuk zona) */
.sim-map {
    position: relative; height: 10.5em; flex: none; overflow: hidden; border-radius: .9em;
    background:
        linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, .95) 47% 53%, transparent 53%) 0 0 / 100% 100%,
        linear-gradient(0deg, transparent 60%, rgba(255, 255, 255, .9) 60% 65%, transparent 65%) 0 0 / 100% 100%,
        linear-gradient(28deg, transparent 30%, rgba(255, 255, 255, .7) 30% 33%, transparent 33%) 0 0 / 100% 100%,
        linear-gradient(160deg, #DDE9E2, #E9E4D6);
    box-shadow: inset 0 0 0 1px rgba(27, 35, 41, .06);
}
.map-zone {
    position: absolute; left: 50%; top: 50%; width: 7.6em; height: 7.6em; margin: -3.8em 0 0 -3.8em; border-radius: 50%;
    background: rgba(97, 155, 138, .2); box-shadow: inset 0 0 0 .14em rgba(43, 100, 85, .55);
}
.sim.is-playing .map-zone { animation: sim-breathe 2.4s ease-in-out infinite; }
@keyframes sim-breathe { 50% { box-shadow: inset 0 0 0 .14em rgba(43, 100, 85, .55), 0 0 0 .6em rgba(97, 155, 138, .12); } }
.map-site { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 2.2em; height: 2.2em; margin: -1.1em 0 0 -1.1em; border-radius: .65em; background: var(--primary); color: #FFFFFF; }
.map-site .icon { width: 1.1em; height: 1.1em; }
.map-me {
    --from: translate(6.4em, -3.6em);
    position: absolute; left: 50%; top: 50%; width: 1.25em; height: 1.25em; margin: .6em 0 0 1.6em; border-radius: 50%; background: #2F7BF6;
    box-shadow: 0 0 0 .3em rgba(47, 123, 246, .25), 0 0 0 .14em #FFFFFF inset;
}
.js .sim .map-me:not(.is-in) { opacity: 1; visibility: visible; }
.sim.is-ready .map-me { transition: transform 1.3s cubic-bezier(.4, .1, .2, 1); }

/* Selfie */
.scr-selfie { display: flex; align-items: center; gap: .8em; }
.selfie {
    position: relative; display: grid; place-items: center; flex: none; width: 3.6em; height: 3.6em; overflow: hidden; border-radius: 50%;
    background: #E9E7E0; color: var(--ink-3); box-shadow: inset 0 0 0 .14em rgba(27, 35, 41, .1);
}
.selfie-photo { position: absolute; inset: 0; background: linear-gradient(170deg, #C9D8D2, #9DB5AC); }
.selfie-photo i, .selfie-photo::before { content: ""; position: absolute; left: 50%; border-radius: 50%; background: #F4E3D3; }
.selfie-photo::before { top: 22%; width: 38%; height: 38%; margin-left: -19%; }
.selfie-photo i { bottom: -26%; width: 76%; height: 56%; margin-left: -38%; background: #233D4D; }
.selfie-flash { position: absolute; inset: 0; border-radius: 50%; background: #FFFFFF; opacity: 0; }
.sim .selfie-flash.is-in { animation: sim-flash .55s ease-out forwards; }
@keyframes sim-flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.js .sim .selfie-flash.is-in { opacity: 0; }

.scr-kind { display: grid; grid-template-columns: 1fr 1fr; gap: .3em; padding: .25em; border-radius: .8em; background: #ECEAE3; font-size: .92em; font-weight: 650; }
.scr-kind span { display: inline-flex; align-items: center; justify-content: center; gap: .35em; height: 2.2em; border-radius: .6em; color: var(--ink-3); }
.scr-kind .is-on { background: #FFFFFF; color: var(--ink); box-shadow: 0 .1em .25em rgba(27, 35, 41, .12); }
.scr-loc { min-height: 1.95em; }
.scr-done {
    position: absolute; left: .7em; right: .7em; bottom: .7em; display: grid; justify-items: center; gap: .25em; padding: 1.2em 1em 1.1em;
    border-radius: 1.3em; background: #FFFFFF; text-align: center; box-shadow: 0 0 0 1px rgba(27, 35, 41, .06), 0 -1em 2.4em -1em rgba(15, 27, 34, .35);
}
.scr-done b { font-size: 1.12em; }
.scr-done span { color: var(--ink-3); font-size: .92em; }
.done-mark { display: grid; place-items: center; width: 3em; height: 3em; margin-bottom: .2em; border-radius: 50%; background: var(--st-cool-bg); color: var(--st-cool); box-shadow: inset 0 0 0 .14em var(--st-cool-ln); }
.done-mark .icon { width: 1.6em; height: 1.6em; stroke-width: 2.6; }

/* Jadwal mingguan di HP */
.scr-week { display: grid; gap: .38em; }
.scr-week li { display: flex; align-items: center; justify-content: space-between; gap: .5em; padding: .5em .7em; border-radius: .7em; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(27, 35, 41, .06); font-size: .92em; }
.scr-week li > span:first-child { color: var(--ink-3); font-weight: 600; }
.scr-week li b { color: var(--ink); }
.shift { display: inline-flex; align-items: center; height: 1.85em; padding: 0 .65em; border-radius: .55em; font-size: .9em; font-weight: 650; white-space: nowrap; }
.shift.is-pagi { background: #E6EEF2; color: #233D4D; }
.shift.is-siang { background: var(--st-info-bg); color: var(--st-info); }
.shift.is-malam { background: #233D4D; color: #FFFFFF; }
.shift.is-cuti { background: var(--st-accent-bg); color: var(--st-accent); }
.shift.is-libur { background: #F2F3F1; color: #5A656E; }

/* Slip gaji di HP */
.slip-net { display: grid; gap: .15em; padding: .9em 1em; border-radius: .9em; background: var(--grad-dark); color: #FFFFFF; }
.slip-net small { color: rgba(255, 255, 255, .72); font-weight: 600; }
.slip-net b { font-size: 1.55em; font-weight: 740; letter-spacing: -.025em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-phone .slip-net b { font-size: 1.32em; }
.slip-lines { display: grid; gap: .1em; padding: .4em .9em; border-radius: .9em; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(27, 35, 41, .07); font-size: .92em; }
.slip-lines div { display: flex; justify-content: space-between; gap: .6em; padding: .42em 0; }
.slip-lines div + div { box-shadow: inset 0 1px 0 #F0EFEA; }
.slip-lines dt { color: var(--ink-2); }
.slip-lines dd { font-weight: 650; font-variant-numeric: tabular-nums; }
.slip-paid { display: inline-flex; align-items: center; gap: .35em; color: var(--st-cool); font-size: .92em; font-weight: 650; }
.day-s4 .sim-btn { margin-top: auto; }

/* --- Daftar langkah & tombol jeda ------------------------------------------------------------------------------------ */

.sim-steps { display: grid; gap: 4px; }
.sim-step {
    position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 6px 12px; width: 100%; padding: 11px 14px 12px 10px;
    border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font: inherit; font-size: 15px; line-height: 1.5; text-align: left; cursor: pointer;
    transition: background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast);
}
.sim-step:hover { background: rgba(35, 61, 77, .045); color: var(--ink); }
.sim-step[aria-current="step"] { background: var(--surface); color: var(--ink); box-shadow: var(--lp-ring), 0 6px 18px -10px rgba(16, 24, 40, .28); }
.sim-step-no {
    display: inline-grid; place-items: center; width: 26px; height: 26px; margin-top: -1px; border-radius: 50%; background: var(--surface);
    box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-3); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
    transition: background-color var(--dur), color var(--dur), box-shadow var(--dur);
}
.sim-step.is-done .sim-step-no { background: var(--st-cool-bg); box-shadow: inset 0 0 0 1.5px var(--st-cool-ln); color: var(--st-cool); }
.sim-step[aria-current="step"] .sim-step-no { background: var(--primary); box-shadow: none; color: #FFFFFF; }
.sim-step-bar { grid-column: 2; height: 3px; overflow: hidden; border-radius: 3px; background: var(--line-soft); opacity: 0; }
.sim-step[aria-current="step"] .sim-step-bar { opacity: 1; }
.sim-step-bar::after { content: ""; display: block; height: 100%; border-radius: 3px; background: var(--orange); transform-origin: 0 50%; }
.sim-steps.is-playing [aria-current="step"] .sim-step-bar::after { animation: sim-progress var(--sim-dur, 3s) linear both; }
@keyframes sim-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.sim-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sim-ctl {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent;
    box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
    transition: background-color var(--dur-fast), color var(--dur-fast);
}
.sim-ctl:hover { background: var(--surface); color: var(--ink); }
.sim-ctl .icon { width: 14px; height: 14px; }
.sim-ctl .i-play, .sim-ctl.is-paused .i-pause { display: none; }
.sim-ctl.is-paused .i-play { display: inline-block; }

/* ==========================================================================
   Pembuka: satu hari kerja (site/sim/day.php). Panggung gelap, kanvas 100 × 47 em (layar sempit 36 × 56 em).
   ========================================================================== */

.lp-day {
    position: relative; overflow: hidden; margin-top: 44px; border-radius: 28px; color: #FFFFFF;
    background:
        radial-gradient(900px 420px at 8% 0%, rgba(97, 155, 138, .30), transparent 62%),
        radial-gradient(700px 380px at 100% 100%, rgba(254, 127, 45, .20), transparent 60%),
        var(--grad-dark);
    box-shadow: 0 30px 70px -36px rgba(23, 42, 53, .75);
}
.day-stage { border-radius: 0; background: transparent; box-shadow: none; }
.day-stage::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 6.25%);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.day-canvas { aspect-ratio: 100 / 46; font-size: calc(100cqw / 100); color: var(--ink); }
.day-win { left: 30em; top: 3.4em; width: 64em; height: 40.4em; }
.day-win .sim-win-body { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1em; }
.day-cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1em; min-height: 0; }
.day-feed { overflow: hidden; }
.day-feed .sim-row { padding-block: .62em; }
.day-side { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1em; min-height: 0; }
.day-chart { padding-bottom: .9em; }
.day-bars { display: flex; align-items: flex-end; gap: .7em; height: 8.5em; padding: .4em 1em 0; }
.day-bars i { position: relative; flex: 1; border-radius: .35em .35em .15em .15em; background: #D9E3E8; }
.day-bars i.is-today { background: var(--primary); }
.day-bars i b { position: absolute; left: 0; right: 0; bottom: 100%; height: 1.2em; border-radius: .35em .35em 0 0; background: var(--orange); }
.day-bars-x { display: flex; gap: .7em; padding: .45em 1em 0; }
.day-bars-x span { flex: 1; overflow: hidden; color: var(--ink-3); font-size: .78em; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.day-bars-x .is-today { color: var(--ink); font-weight: 700; }
.day-shifts { padding-bottom: .6em; }
.day-shift { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35em .6em; padding: .45em 1em; font-size: .92em; }
.day-shift > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.day-shift small { color: var(--ink-3); font-weight: 500; }
.day-shift > b { font-variant-numeric: tabular-nums; }
.day-shift > i { position: relative; grid-column: 1 / -1; display: block; height: .45em; border-radius: .3em; background: var(--ch-track); }
.day-shift > i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); border-radius: inherit; background: var(--teal); }
.day-shift > i b { position: absolute; top: 0; bottom: 0; left: var(--w, 0%); width: 5.3%; border-radius: 0 .3em .3em 0; background: var(--orange); }
.day-phone { left: 6em; top: 3.4em; width: 19.5em; height: 40.4em; }
.day-s1 .sim-btn { margin-top: auto; }
.day-s1 .scr-done { z-index: 2; }

.day-bar { display: grid; gap: 6px; padding: 4px 28px 22px; }
.day-ruler { position: relative; height: 62px; }
.day-track { position: absolute; left: 0; right: 0; top: 28px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.day-hours { position: absolute; left: 0; width: 84%; bottom: 8px; display: flex; justify-content: space-between; }
.day-hours i { color: rgba(255, 255, 255, .42); font-size: 11px; font-style: normal; font-variant-numeric: tabular-nums; transform: translateX(-50%); }
.day-hours i:first-child { transform: none; }
.day-gap { position: absolute; left: 86%; width: 3%; top: -2px; height: 6px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .5) 0 3px, transparent 3px 6px); background-color: #1E3542; }
.day-head {
    position: absolute; top: -9px; left: 0; width: 2px; height: 20px; margin-left: -1px; border-radius: 2px; background: var(--orange);
    box-shadow: 0 0 0 4px rgba(254, 127, 45, .18), 0 0 18px rgba(254, 127, 45, .6); transition: left .9s var(--ease-out);
}
.lp-day[data-step="0"] .day-head { left: 0; }
.lp-day[data-step="1"] .day-head { left: 10.4%; }
.lp-day[data-step="2"] .day-head { left: 16.8%; }
.lp-day[data-step="3"] .day-head { left: 54.2%; }
.lp-day:not([data-step]) .day-head, .lp-day[data-step="4"] .day-head { left: 93%; }
.day-marks { position: absolute; inset: 0; }
.day-marks li { position: absolute; top: 0; }
.day-marks li:nth-child(1) { left: 10.4%; }
.day-marks li:nth-child(2) { left: 16.8%; }
.day-marks li:nth-child(3) { left: 54.2%; }
.day-marks li:nth-child(4) { left: 93%; }
.day-mark {
    position: relative; display: grid; justify-items: center; gap: 6px; width: 64px; margin-left: -32px; padding: 22px 0 4px; border: 0; border-radius: 10px;
    background: transparent; color: rgba(255, 255, 255, .78); font: inherit; cursor: pointer;
}
.day-mark:hover { color: #FFFFFF; }
.day-mark:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.day-dot { width: 14px; height: 14px; border-radius: 50%; background: #1E3542; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); transition: background-color var(--dur), box-shadow var(--dur), transform var(--dur); }
.day-mark.is-done .day-dot { background: var(--sage); box-shadow: inset 0 0 0 2px var(--sage); }
.day-mark[aria-current="step"] .day-dot { background: var(--orange); box-shadow: 0 0 0 5px rgba(254, 127, 45, .25); transform: scale(1.15); }
.day-mark-time { font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.day-mark[aria-current="step"] .day-mark-time { color: #FFFFFF; }

.day-now { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; }
.day-caps { display: grid; flex: 1; min-width: 0; }
.day-cap { grid-area: 1 / 1; display: flex; align-items: center; gap: 22px; }
.day-cap-time { flex: none; min-width: 3.3ch; font-size: 40px; font-weight: 740; line-height: 1; letter-spacing: -.04em; color: #FFFFFF; font-variant-numeric: tabular-nums; white-space: nowrap; }
.day-cap-title { font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.day-cap-text { max-width: 64ch; margin-top: 2px; color: rgba(255, 255, 255, .74); font-size: 15px; line-height: 1.5; }
.day-controls { flex: none; margin-top: 0; }
.day-controls .sim-ctl { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); color: rgba(255, 255, 255, .86); }
.day-controls .sim-ctl:hover { background: rgba(255, 255, 255, .1); color: #FFFFFF; }
.day-controls .sim-ctl:focus-visible { outline-color: #FFFFFF; }

/* Notifikasi WhatsApp di layar HP */
.wa-banner {
    position: absolute; left: .55em; right: .55em; top: .5em; z-index: 6; padding: .7em .85em .8em; border-radius: 1.15em;
    background: rgba(255, 255, 255, .97); box-shadow: 0 0 0 1px rgba(27, 35, 41, .06), 0 1em 2em -.8em rgba(15, 27, 34, .55);
    font-size: .9em; line-height: 1.35;
}
.wa-banner .wa-head { margin-bottom: .2em; color: var(--ink-3); font-size: .88em; font-weight: 600; }
.wa-from { font-weight: 700; }
.wa-banner .wa-text { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }

/* Tinggi/lebar batang & garis (CSP melarang style inline: nilai lewat kelas; tinggi langkah 2%, lebar langkah 5%) */
.h-0 { height: 0%; } .h-2 { height: 2%; } .h-4 { height: 4%; } .h-6 { height: 6%; } .h-8 { height: 8%; } .h-10 { height: 10%; } .h-12 { height: 12%; } .h-14 { height: 14%; } .h-16 { height: 16%; } .h-18 { height: 18%; }
.h-20 { height: 20%; } .h-22 { height: 22%; } .h-24 { height: 24%; } .h-26 { height: 26%; } .h-28 { height: 28%; } .h-30 { height: 30%; } .h-32 { height: 32%; } .h-34 { height: 34%; } .h-36 { height: 36%; } .h-38 { height: 38%; }
.h-40 { height: 40%; } .h-42 { height: 42%; } .h-44 { height: 44%; } .h-46 { height: 46%; } .h-48 { height: 48%; } .h-50 { height: 50%; } .h-52 { height: 52%; } .h-54 { height: 54%; } .h-56 { height: 56%; } .h-58 { height: 58%; }
.h-60 { height: 60%; } .h-62 { height: 62%; } .h-64 { height: 64%; } .h-66 { height: 66%; } .h-68 { height: 68%; } .h-70 { height: 70%; } .h-72 { height: 72%; } .h-74 { height: 74%; } .h-76 { height: 76%; } .h-78 { height: 78%; }
.h-80 { height: 80%; } .h-82 { height: 82%; } .h-84 { height: 84%; } .h-86 { height: 86%; } .h-88 { height: 88%; } .h-90 { height: 90%; } .h-92 { height: 92%; } .h-94 { height: 94%; } .h-96 { height: 96%; } .h-98 { height: 98%; }
.h-100 { height: 100%; }
.w-0 { --w: 0%; } .w-5 { --w: 5%; } .w-10 { --w: 10%; } .w-15 { --w: 15%; } .w-20 { --w: 20%; } .w-25 { --w: 25%; } .w-30 { --w: 30%; } .w-35 { --w: 35%; } .w-40 { --w: 40%; } .w-45 { --w: 45%; } .w-50 { --w: 50%; } .w-55 { --w: 55%; } .w-60 { --w: 60%; } .w-65 { --w: 65%; } .w-70 { --w: 70%; } .w-75 { --w: 75%; } .w-80 { --w: 80%; } .w-85 { --w: 85%; } .w-90 { --w: 90%; } .w-95 { --w: 95%; } .w-100 { --w: 100%; }
.w-89 { --w: 89.5%; }

@container (max-width: 560px) {
    .day-canvas { aspect-ratio: 36 / 43; font-size: calc(100cqw / 36); }
    .day-phone { left: 1.2em; top: 2em; width: 18.2em; height: 39.4em; }
    .day-win { left: 20.2em; top: 2em; width: 14.6em; height: auto; }
    .day-win .sim-win-bar { height: 3em; padding: 0 .8em; }
    .day-win .sim-win-title, .day-win .sim-who, .day-cols { display: none; }
    .day-win .sim-win-body { display: block; padding: .75em; }
    .day-win .sim-kpis { grid-template-columns: minmax(0, 1fr); gap: .55em; }
    .day-win .sim-kpi { padding: .65em .75em; }
    .day-win .sim-kpi > span { white-space: normal; }
    .day-win .sim-kpi b { font-size: 1.6em; }
}
@media (max-width: 680px) {
    .lp-day { margin-top: 32px; border-radius: 22px; }
    .day-bar { gap: 2px; padding: 0 16px 18px; }
    .day-hours, .day-gap { display: none; }
    .day-marks li:nth-child(1), .lp-day[data-step="1"] .day-head { left: 12.5%; }
    .day-marks li:nth-child(2), .lp-day[data-step="2"] .day-head { left: 37.5%; }
    .day-marks li:nth-child(3), .lp-day[data-step="3"] .day-head { left: 62.5%; }
    .day-marks li:nth-child(4), .lp-day[data-step="4"] .day-head, .lp-day:not([data-step]) .day-head { left: 87.5%; }
    .day-now { display: grid; gap: 14px; }
    .day-cap { align-items: flex-start; gap: 14px; }
    .day-cap-time { min-width: 0; font-size: 28px; }
    .day-cap-title { font-size: 17px; }
    .day-cap-text { font-size: 14.5px; }
}

/* ==========================================================================
   Adegan tur fitur — kanvas 64 × 44 em (layar sempit 36 × 48 em). Elemen lain di adegan memakai bagian bersama di atas.
   ========================================================================== */

.sim-win .sim-chip .icon { width: 1em; height: 1em; }
.jd-acts { display: inline-flex; gap: .5em; margin-left: auto; }
.ct-ph { color: var(--ink-4); }

/* Dashboard */
.db-win { left: 2em; top: 2em; width: 60em; height: 40em; }
.db-body { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1em; }
.db-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1em; min-height: 0; }
.db-chart { display: flex; flex-direction: column; padding-bottom: .8em; }
.db-svg { display: block; width: calc(100% - 2em); height: auto; margin: .5em 1em 0; overflow: visible; }
.db-grid { fill: none; stroke: #EEEDE7; stroke-width: 1; }
.db-area { fill: rgba(97, 155, 138, .16); }
.db-line { fill: none; stroke: var(--teal); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .sim .db-line:not(.is-in) { transform: none; stroke-dashoffset: 1; }
.sim.is-ready .db-line { transition: stroke-dashoffset 1.7s cubic-bezier(.35, .6, .2, 1); }
.db-dot { fill: var(--orange); stroke: #FFFFFF; stroke-width: 2.4; transform-box: fill-box; transform-origin: center; }
.db-axis { display: flex; justify-content: space-between; margin: .5em 1em 0; color: var(--ink-3); font-size: .8em; }
.db-side { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1em; min-height: 0; }
.db-appr .sim-row { padding-block: .62em; }
.db-leave .sim-row { padding-block: .55em; }
.db-leave .sim-av { width: 2.2em; height: 2.2em; font-size: .78em; }
.db-n { font-size: 1.3em; font-variant-numeric: tabular-nums; }
.db-list {
    position: absolute; top: 9.4em; right: 1.3em; bottom: 1.3em; z-index: 3; width: 35em; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(27, 35, 41, .08), 0 1.6em 3.4em -1.2em rgba(15, 27, 34, .5);
}
.db-list-head { display: flex; align-items: center; justify-content: space-between; padding: .9em 1em .55em; font-size: 1.02em; }
.db-list .sim-row { padding-block: .6em; }
.sim[data-step="3"] .db-pending { box-shadow: inset 0 0 0 .14em var(--orange); }

/* Absensi */
.ab-phone { left: 4em; top: 2.3em; width: 19em; height: 39.4em; }
.ab-phone .sim-btn { margin-top: auto; }
.ab-today { position: absolute; left: 27em; top: 2.8em; width: 34em; }
.ab-today .sim-row { padding-block: .6em; }
.ab-new { background: #FFFAF4; }
.ab-review { position: absolute; left: 29.5em; top: 20.4em; width: 32em; box-shadow: 0 0 0 1px rgba(27, 35, 41, .08), 0 1.6em 3.4em -1.2em rgba(15, 27, 34, .45); }
.ab-review .sim-row { padding-block: .62em; }
.map-radius { position: absolute; right: .6em; bottom: .5em; padding: .15em .55em; border-radius: .5em; background: rgba(255, 255, 255, .88); color: var(--st-info); font-size: .78em; font-weight: 650; }

/* Jadwal & roster */
.jd-win { left: 2em; top: 2em; width: 60em; height: 40em; }
.jd-grid { display: grid; grid-template-columns: 9.5em repeat(7, minmax(0, 1fr)); gap: .35em; }
.jd-corner, .jd-day { padding: .2em .2em .45em; color: var(--ink-3); font-size: .85em; font-weight: 650; white-space: nowrap; }
.jd-day { text-align: center; }
.jd-day b { color: var(--ink); }
.jd-name { display: flex; align-items: center; gap: .55em; min-width: 0; font-size: .95em; }
.jd-name .sim-av { width: 2.5em; height: 2.5em; font-size: .78em; }
.jd-cell { position: relative; display: grid; place-items: center; height: 5.2em; border-radius: .7em; background: #FAF9F6; box-shadow: inset 0 0 0 1px #EEEDE7; transition: box-shadow .3s var(--ease-out); }
.jd-cell .shift { justify-content: center; width: calc(100% - .7em); height: 2.5em; overflow: hidden; text-overflow: ellipsis; }
.sim[data-step="3"] .jd-cell.is-conflict, .sim[data-step="4"] .jd-cell.is-conflict, .sim:not([data-step]) .jd-cell.is-conflict { box-shadow: inset 0 0 0 .16em var(--orange); }
.jd-flag { position: absolute; top: -.55em; right: -.45em; display: grid; place-items: center; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--orange); color: #FFFFFF; box-shadow: 0 0 0 .15em #FFFFFF; }
.jd-flag .icon { width: 1em; height: 1em; stroke-width: 2.4; }
.jd-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; margin-top: 1.1em; color: var(--ink-3); font-size: .85em; }
.jd-legend .shift + * { margin-right: .9em; }
.jd-legend .shift { height: 1.8em; }
.jd-pop {
    position: absolute; left: 11.2em; top: 9.4em; z-index: 4; display: grid; gap: .2em; width: 15em; padding: .45em; border-radius: .9em; background: #FFFFFF;
    box-shadow: 0 0 0 1px rgba(27, 35, 41, .08), 0 1.2em 2.6em -1em rgba(15, 27, 34, .45);
}
.jd-opt { display: flex; align-items: center; gap: .6em; padding: .4em .5em; border-radius: .6em; color: var(--ink-3); font-size: .88em; }
.jd-opt:first-child { background: #F3F2ED; color: var(--ink); }
.jd-opt .shift { min-width: 4.6em; justify-content: center; }
.jd-tip {
    position: absolute; left: 26.5em; top: 21.6em; z-index: 4; display: flex; align-items: center; gap: .45em; padding: .55em .85em; border-radius: .7em;
    background: var(--ink); color: #FFFFFF; font-size: .88em; font-weight: 600; white-space: nowrap; box-shadow: 0 1em 2em -.8em rgba(15, 27, 34, .6);
}
.jd-tip .icon { color: var(--yellow); }
.jd-toast { position: absolute; left: 4em; bottom: 3em; z-index: 5; width: 24em; }
.jd-toast-t { display: flex; align-items: center; gap: .45em; margin-bottom: .15em; }
.jd-toast-t .icon { color: var(--st-cool); }
.jd-toast p:last-child { color: var(--ink-3); }
.wa-banner.jd-wa { left: auto; right: 3em; top: auto; bottom: 3em; width: 23em; }

/* Cuti & kalender */
.ct-phone { left: 4em; top: 2.3em; width: 19em; height: 39.4em; }
.ct-phone .scr-state { margin-top: auto; }
.ct-balance b { transition: color .4s var(--ease-out); }
.sim[data-step="3"] .ct-balance b { color: var(--st-accent); }
.ct-appr { position: absolute; left: 26.5em; top: 2.4em; width: 35em; }
.ct-appr .sim-row { padding-block: .65em; }
.ct-note { display: flex; align-items: center; gap: .45em; padding: .4em 1em .9em; color: var(--st-cool); font-size: .9em; font-weight: 650; }
.ct-cal { position: absolute; left: 26.5em; top: 18.2em; width: 35em; padding-bottom: .8em; }
.ct-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25em; padding: 0 .8em; }
.ct-dn { padding-bottom: .15em; color: var(--ink-3); font-size: .76em; font-weight: 650; text-align: center; }
.ct-day { position: relative; display: grid; align-content: start; gap: .1em; height: 3.25em; padding: .2em .3em; border-radius: .45em; background: #FAF9F6; font-size: .8em; }
.ct-day b { color: var(--ink-2); font-weight: 600; }
.ct-day.is-out { opacity: .38; }
.ct-day.is-today b { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; margin: -.1em 0 0 -.2em; border-radius: 50%; background: var(--primary); color: #FFFFFF; }
.ct-ev { display: block; overflow: hidden; padding: .05em .3em; border-radius: .3em; font-size: .8em; font-style: normal; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; }
.ct-ev.is-leave { background: var(--st-accent-bg); color: var(--st-accent); box-shadow: inset 0 0 0 1px var(--st-accent-ln); }
.ct-ev.is-sick { background: var(--st-info-bg); color: var(--st-info); }
.ct-ev.is-pay { background: #E6EEF2; color: var(--primary); }

/* Payroll */
.pr-win { left: 2em; top: 2.3em; width: 43.6em; height: 39.4em; }
.pr-body { display: flex; flex-direction: column; gap: 1em; }
.pr-table { display: grid; grid-template-columns: minmax(0, 1fr) 5em 5em 8.2em; align-items: center; column-gap: 1em; }
.pr-th { padding-bottom: .6em; border-bottom: 1px solid #EEEDE7; color: var(--ink-3); font-size: .82em; font-weight: 650; }
.pr-td { padding: .78em 0; border-bottom: 1px solid #F3F2ED; font-size: .95em; }
.pr-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-name { display: flex; align-items: center; gap: .6em; min-width: 0; }
.pr-name b { overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.pr-name .sim-av { width: 2.2em; height: 2.2em; font-size: .78em; }
.pr-tf { padding-top: .75em; font-weight: 720; }
.pr-tf:not(.pr-num) { grid-column: 1 / 4; }
.pr-approve { display: grid; gap: .45em; padding: .75em 1em; border-radius: .9em; background: #FAF9F6; box-shadow: inset 0 0 0 1px #EEEDE7; }
.pr-approve p { display: flex; align-items: center; gap: .7em; font-size: .95em; }
.pr-approve small { display: block; color: var(--ink-3); font-size: .86em; }
.pr-check { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--st-cool-bg); color: var(--st-cool); }
.pr-check.is-wait { background: var(--st-warm-bg); color: var(--st-warm); }
.pr-check .icon { width: 1.05em; height: 1.05em; stroke-width: 2.4; }
.pr-ok { margin-left: auto; }
.pr-file { display: flex; align-items: center; gap: .7em; margin-top: auto; }
.pr-file > .icon { color: var(--st-cool); }
.pr-phone { left: 46.4em; top: 4.6em; width: 16.2em; height: 35.6em; }

/* Rekrutmen */
.rk-career { position: absolute; left: 2em; top: 2.3em; display: flex; flex-direction: column; width: 21em; height: 39.4em; overflow: hidden; }
.rk-band { display: flex; align-items: center; gap: .6em; padding: 1em; background: var(--grad-primary); color: #FFFFFF; }
.rk-band small { display: block; opacity: .75; }
.rk-band .sim-logo { background: #FFFFFF; color: var(--primary); }
.rk-career-body { position: relative; flex: 1; display: grid; align-content: start; gap: .6em; padding: .9em; }
.rk-search { display: flex; align-items: center; gap: .5em; height: 2.6em; padding: 0 .8em; border-radius: .7em; background: #F3F2ED; color: var(--ink-3); font-size: .9em; }
.rk-job { position: relative; display: grid; gap: .25em; padding: .8em .9em; border-radius: .8em; box-shadow: inset 0 0 0 1px #E8E6DF; }
.rk-job small { display: inline-flex; align-items: center; gap: .3em; color: var(--ink-3); font-size: .85em; }
.rk-job small .icon { width: 1em; height: 1em; }
.rk-job .sim-btn { position: absolute; right: .8em; top: 50%; margin-top: -1.15em; }
.rk-job.is-dim { opacity: .55; }
.rk-form { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .6em; padding: .9em; background: #FFFFFF; }
.rk-form-t { font-size: 1.05em; font-weight: 700; }
.rk-file { display: flex; align-items: center; gap: .5em; padding: .6em .8em; border-radius: .7em; background: var(--st-info-bg); color: var(--st-info); font-size: .9em; font-weight: 600; }
.rk-file span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rk-form .scr-state { margin-top: auto; }
.rk-cv {
    position: absolute; left: 25em; top: 3.4em; display: grid; align-content: start; gap: .55em; width: 14.5em; height: 19.5em; padding: 1.3em 1.2em; overflow: hidden;
    border-radius: .5em; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(27, 35, 41, .08), 0 1.2em 2.4em -1em rgba(15, 27, 34, .4);
}
.rk-cv-name { font-size: .9em; font-weight: 800; letter-spacing: .04em; }
.rk-cv > i, .pt-text i { display: block; width: var(--w, 100%); height: .5em; border-radius: .25em; background: #E9E7E0; }
.rk-cv-nik { position: relative; color: var(--ink-2); font-size: .7em; white-space: nowrap; }
.rk-cv-nik b { position: absolute; inset: -.15em -.3em; display: flex; align-items: center; padding: 0 .45em; border-radius: .3em; background: var(--ink); color: #FFFFFF; font-weight: 650; }
.rk-scan { position: absolute; left: 0; right: 0; top: 0; height: 2.6em; border-bottom: .15em solid var(--teal); background: linear-gradient(180deg, transparent, rgba(97, 155, 138, .35)); }
.sim.is-playing .rk-scan.is-in { animation: rk-scan 1.5s ease-in-out 2 alternate; }
@keyframes rk-scan { from { transform: translateY(-2.4em); } to { transform: translateY(17.5em); } }
.rk-ocr { position: absolute; right: .6em; bottom: .6em; }
.rk-redact { position: absolute; left: 25em; top: 23.6em; }
.rk-profile { position: absolute; left: 41.4em; top: 2.3em; width: 20.6em; padding-bottom: 1em; }
.rk-who { display: flex; align-items: center; gap: .7em; padding: 1em 1em .6em; }
.rk-who small { display: block; color: var(--ink-3); }
.rk-label { padding: .2em 1em .45em; color: var(--ink-3); font-size: .82em; font-weight: 650; }
.rk-skills { display: flex; flex-wrap: wrap; gap: .4em; padding: 0 1em; }
.rk-quote { margin: .9em 1em 0; padding: .7em .8em; border-left: .25em solid var(--orange); border-radius: .3em .7em .7em .3em; background: #FFF8F2; color: var(--ink-2); font-size: .9em; font-style: italic; }
.rk-quote small { display: block; margin-top: .3em; color: var(--ink-3); font-style: normal; }
.rk-rank { position: absolute; left: 25em; top: 26.6em; width: 37em; }
.rk-rank .sim-row { padding-block: .5em; }
.rk-rank .sim-row.is-top { background: #FFFAF5; }
.rk-ring { position: relative; display: grid; place-items: center; flex: none; width: 3em; height: 3em; }
.rk-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.rk-track { fill: none; stroke: #ECEAE3; stroke-width: 3.6; }
.rk-arc { fill: none; stroke: var(--orange); stroke-width: 3.6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: var(--off, 0); }
.rk-rank .sim-row:not(.is-top) .rk-arc { stroke: var(--teal); }
.rk-arc.p-86 { --off: 14; }
.rk-arc.p-74 { --off: 26; }
.rk-arc.p-61 { --off: 39; }
.js .sim .rk-arc:not(.is-in) { opacity: 1; visibility: visible; transform: none; stroke-dashoffset: 100; }
.sim.is-ready .rk-arc { transition: stroke-dashoffset 1.1s var(--ease-out); }
.rk-ring b { position: relative; font-size: .95em; font-variant-numeric: tabular-nums; }
.rk-why { display: flex; flex-wrap: wrap; gap: .35em; padding: 0 1em .65em 4.75em; }
.rk-why .sim-chip { height: 1.8em; font-size: .82em; }

/* Laporan */
.lr-win { left: 2em; top: 2em; width: 60em; height: 40em; }
.lr-body { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1em; }
.lr-chart { display: flex; flex-direction: column; padding-bottom: 1em; }
.lr-bars { position: relative; flex: 1; min-height: 0; margin: .5em 1em 0; }
.lr-set { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: .45em; }
.lr-set i { flex: 1; border-radius: .3em .3em .1em .1em; background: var(--primary); }
.lr-set.is-one i { background: var(--teal); }
.lr-menu {
    position: absolute; z-index: 4; display: grid; gap: .15em; width: 15em; padding: .45em; border-radius: .9em; background: #FFFFFF; font-size: .9em;
    box-shadow: 0 0 0 1px rgba(27, 35, 41, .08), 0 1.2em 2.6em -1em rgba(15, 27, 34, .45);
}
.lr-menu span { display: flex; align-items: center; gap: .5em; padding: .5em .6em; border-radius: .55em; color: var(--ink-2); }
.lr-menu .is-pick { background: #F3F2ED; color: var(--ink); font-weight: 650; }
.lr-loc { left: 20.5em; top: -.2em; }
.lr-exp { right: 1.3em; top: -.2em; width: 11em; }
.lr-toast { position: absolute; right: 3em; bottom: 3em; z-index: 5; display: flex; align-items: center; gap: .7em; width: 28em; }
.lr-toast > .icon, .pr-file > .icon { color: var(--st-cool); }

/* Portal */
.pt-compose { position: absolute; left: 2em; top: 2.3em; width: 34em; }
.pt-body { display: grid; gap: .75em; padding: .3em 1em 1em; }
.pt-text { display: grid; gap: .45em; padding: .75em .8em; border-radius: .75em; background: #FAF9F6; box-shadow: inset 0 0 0 1px #EEEDE7; }
.pt-line { display: flex; align-items: center; justify-content: space-between; gap: .6em; color: var(--ink-2); font-size: .92em; }
.pt-switch { position: relative; display: inline-block; flex: none; width: 2.8em; height: 1.6em; border-radius: 1em; background: #D8D6CE; }
.pt-switch i { position: absolute; inset: 0; border-radius: inherit; background: var(--teal); }
.pt-switch::after { content: ""; position: absolute; top: .2em; left: .2em; width: 1.2em; height: 1.2em; border-radius: 50%; background: #FFFFFF; box-shadow: 0 .1em .2em rgba(0, 0, 0, .22); transition: transform .3s var(--ease-out); }
.pt-switch:has(i.is-in)::after, .no-js .pt-switch::after { transform: translateX(1.2em); }
.pt-send { justify-self: end; }
.pt-report { position: absolute; left: 2em; top: 29.6em; width: 34em; padding-bottom: 1em; }
.pt-stat { display: flex; align-items: center; gap: 1em; padding: 0 1em; }
.pt-stat > b { font-size: 2em; font-weight: 740; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pt-stat small { color: var(--ink-3); font-size: .5em; }
.pt-bar { position: relative; flex: 1; height: .6em; overflow: hidden; border-radius: .4em; background: var(--ch-track); }
.pt-bar i { position: absolute; inset: 0 auto 0 0; width: 83%; border-radius: inherit; background: var(--teal); transition: width 1s var(--ease-out) .3s; }
.js .sim[data-step="0"] .pt-bar i, .js .sim[data-step="1"] .pt-bar i { width: 0; }
.js .sim[data-step="2"] .pt-bar i { width: 5.6%; transition-delay: 2.1s; }
.pt-readers { display: flex; align-items: center; gap: .3em; padding: .8em 1em 0; }
.pt-readers .sim-av { width: 2.6em; height: 2.6em; margin-right: -.5em; font-size: .8em; box-shadow: 0 0 0 .15em #FFFFFF; }
.pt-more { margin-left: .9em; color: var(--ink-3); font-size: .85em; font-weight: 650; }
.pt-readers .sim-badge { margin-left: auto; }
.pt-phone { left: 41em; top: 2.3em; width: 19.5em; height: 39.4em; }
.pt-item { display: grid; gap: .15em; padding: .7em .8em; border-radius: .8em; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(27, 35, 41, .06); font-size: .92em; }
.pt-item small { color: var(--ink-3); }
.pt-read { z-index: 2; background: #F7F6F2; }
.pt-read .scr-state { margin-top: auto; }
.pt-read .sim-badge { justify-self: start; }

/* WhatsApp */
.wa-set { position: absolute; left: 2em; top: 2.3em; width: 33em; height: 39.4em; }
.wa-link { display: grid; justify-items: stretch; width: 100%; padding: .4em 1em 0; }
.wa-foot { display: flex; align-items: center; gap: .8em; margin: auto 1em 0; padding-top: 1em; color: var(--ink-3); font-size: .86em; }
.wa-set { display: flex; flex-direction: column; padding-bottom: 1em; }
.wa-qr { position: relative; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); align-items: center; gap: 1.1em; }
.wa-qr svg { display: block; width: 9.5em; height: 9.5em; border-radius: .6em; box-shadow: 0 0 0 1px rgba(27, 35, 41, .1); fill: #1B2329; }
.wa-scan { position: absolute; left: 0; top: 0; width: 9.5em; height: .2em; border-radius: .1em; background: var(--teal); box-shadow: 0 0 .8em var(--teal); }
.sim.is-playing .wa-scan { animation: wa-scan 1.3s ease-in-out infinite alternate; }
@keyframes wa-scan { from { transform: translateY(.5em); } to { transform: translateY(9em); } }
.wa-qr small { color: var(--ink-3); font-size: .86em; line-height: 1.45; }
.wa-done { display: grid; justify-items: center; gap: .3em; padding: 1em 0; text-align: center; }
.wa-done b { font-size: 1.2em; font-variant-numeric: tabular-nums; }
.wa-done small { color: var(--ink-3); }
.wa-types-t { padding: 1.3em 1em .4em; color: var(--ink-3); font-size: .85em; font-weight: 650; }
.wa-type { display: flex; align-items: center; justify-content: space-between; gap: .6em; padding: .6em 1em; box-shadow: inset 0 1px 0 #F0EFEA; font-size: .92em; }
.wa-phone { left: 39.5em; top: 2em; width: 20.5em; height: 40em; }
.wa-screen { background: #EFEAE2; }
.wa-chat-head { display: flex; align-items: center; gap: .6em; padding: .5em 1em .7em; background: #FFFFFF; box-shadow: 0 1px 0 rgba(27, 35, 41, .08); font-size: .95em; }
.wa-chat-head small { display: block; color: var(--ink-3); font-size: .82em; }
.wa-chat { display: grid; align-content: start; gap: .6em; padding: .9em .8em; }
.wa-day { justify-self: center; padding: .2em .7em; border-radius: .5em; background: rgba(255, 255, 255, .85); color: var(--ink-3); font-size: .78em; font-weight: 650; }
.wa-slot { display: grid; width: 100%; }
.wa-bubble {
    position: relative; max-width: 92%; padding: .55em .7em 1.45em; border-radius: .2em .9em .9em .9em; background: #FFFFFF; font-size: .84em; line-height: 1.38;
    overflow-wrap: anywhere; box-shadow: 0 .08em .15em rgba(0, 0, 0, .12);
}
.wa-bubble time { position: absolute; right: .7em; bottom: .35em; color: var(--ink-3); font-size: .85em; }
.wa-typing { display: inline-flex; gap: .25em; align-self: start; padding: .75em .85em; border-radius: .2em .9em .9em .9em; background: #FFFFFF; }
.wa-typing i { width: .45em; height: .45em; border-radius: 50%; background: #9AA3A9; }
.sim.is-playing .wa-typing.is-in i { animation: wa-dot 1s infinite; }
.wa-typing i:nth-child(2) { animation-delay: .15s !important; }
.wa-typing i:nth-child(3) { animation-delay: .3s !important; }
@keyframes wa-dot { 0%, 60%, 100% { opacity: .45; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-.3em); } }

/* --- Layar sempit (panggung ≤ 560px): satu perangkat utama, kartu lain muncul menumpuk di langkahnya ---------------------- */

@container (max-width: 560px) {
    .sim-kpis { grid-template-columns: 1fr 1fr; gap: .55em; }
    .sim-kpi { padding: .6em .75em; }
    .sim-kpi b { font-size: 1.5em; }
    .sim-win-bar { gap: .5em; padding: 0 .9em; }
    .sim-win-bar .sim-who > span:last-child, .sim-win-bar .sim-chip + .sim-chip { display: none; }
    .jd-acts .sim-btn > span { display: none; }
    .jd-acts .sim-btn { padding: 0 .6em; }
    .sim-win-body { padding: 1em; }

    .db-win, .jd-win, .lr-win { left: 1em; top: 1em; width: 34em; height: 46em; }
    .db-cols { grid-template-columns: minmax(0, 1fr); }
    .db-appr { display: none; }
    .db-list { top: 11.5em; left: 1em; right: 1em; width: auto; }
    .db-list .sim-btn { display: none; }
    .db-win .sim-chip { display: none; }

    .ab-phone, .ct-phone { left: 8.75em; top: 2em; width: 18.5em; height: 40em; }
    .ab-today { display: none; }
    .ab-review { left: 1.2em; top: 27em; width: 33.6em; }

    .jd-grid { grid-template-columns: 3em repeat(7, minmax(0, 1fr)); gap: .25em; }
    .jd-name b, .jd-corner { visibility: hidden; }
    .jd-day { font-size: .72em; }
    .jd-cell { height: 4.8em; border-radius: .5em; }
    .jd-cell .shift { width: calc(100% - .3em); height: 2.6em; padding: 0 .15em; font-size: .68em; }
    .jd-legend { display: none; }
    .jd-pop { left: 4.2em; top: 7.6em; }
    .jd-tip { left: 3em; top: 19.4em; }
    .jd-toast, .wa-banner.jd-wa { left: 1.5em; right: 1.5em; width: auto; }
    .jd-toast { bottom: 12em; }
    .wa-banner.jd-wa { bottom: 2em; }

    .ct-appr { left: 1.2em; top: 25em; width: 33.6em; }
    .ct-cal { left: 1.2em; top: 20em; width: 33.6em; }
    .ct-appr, .ct-cal { transition: opacity .4s var(--ease-out), transform .6s var(--ease-spring), visibility 0s; }
    .js .sim[data-step="0"] .ct-appr, .js .sim[data-step="1"] .ct-appr, .js .sim[data-step="4"] .ct-appr,
    .js .sim:not([data-step="4"]) .ct-cal { opacity: 0; visibility: hidden; transform: translateY(1.5em); }

    .pr-win { left: 1em; top: 1em; width: 34em; height: 46em; }
    .pr-table { grid-template-columns: minmax(0, 1fr) 8.4em; }
    .pr-x { display: none; }
    .pr-tf:not(.pr-num) { grid-column: 1; }
    .pr-phone { left: 9.5em; top: 7em; width: 17em; height: 35.5em; }

    .rk-career { left: 1.2em; top: 1.2em; width: 20.5em; height: 31em; }
    .rk-cv { left: 19.5em; top: 3.6em; width: 15em; height: 17.6em; }
    .rk-redact { left: 19.5em; top: 21.8em; }
    .rk-profile { left: 1.2em; top: 18em; width: 22em; }
    .rk-rank { left: 1.2em; top: 27.5em; width: 33.6em; }
    .rk-why { padding-left: 1em; }

    .lr-loc { left: 4em; }
    .lr-set { gap: .3em; }
    .lr-toast { left: 1.5em; right: 1.5em; width: auto; }

    .pt-compose { left: 1.2em; width: 33.6em; }
    .pt-report { left: 1.2em; top: 33em; width: 33.6em; }
    .pt-phone { left: 8.25em; top: 3em; width: 19.5em; height: 40em; }
    .pt-phone, .wa-phone { transition: opacity .4s var(--ease-out), transform .6s var(--ease-spring), visibility 0s; }
    .js .sim[data-step="0"] .pt-phone, .js .sim[data-step="1"] .pt-phone { opacity: 0; visibility: hidden; transform: translateY(2em); }

    .wa-set { left: 1.2em; width: 33.6em; height: 44.6em; }
    .wa-phone { left: 7.75em; top: 3em; width: 20.5em; height: 42em; }
    .js .sim[data-step="0"] .wa-phone, .js .sim[data-step="1"] .wa-phone, .js .sim[data-step="2"] .wa-phone { opacity: 0; visibility: hidden; transform: translateY(2em); }
}
