/* Tata letak: sidebar kiri + area kerja di desktop; bilah tab bawah di ponsel. Warna diturunkan dari logo (jingga → merah muda), netral hangat. */
:root {
  --bg: #fbf7f3; --surface: #ffffff; --surface-2: #f5eee8; --line: #eadfd6;
  --fg: #1b1612; --muted: #75695f; --faint: #a3978c;
  --brand: #f5841c; --brand-2: #f25f31; --brand-3: #d7437a; --brand-ink: #b8530a; --brand-soft: #fff0e1;
  --grad: linear-gradient(135deg, #f5ab1e 0%, #f5841c 35%, #f25f31 70%, #d7437a 100%);
  --ok: #1f9d61; --ok-soft: #e2f6ec; --warn: #c27a00; --warn-soft: #fff3d6; --bad: #d63a3a; --bad-soft: #fde8e6; --info: #2f6fde; --info-soft: #e6eefd;
  --shadow: 0 1px 2px rgba(60, 30, 5, .05), 0 8px 24px -12px rgba(60, 30, 5, .18);
  --shadow-lg: 0 24px 60px -20px rgba(60, 30, 5, .35);
  --r: 16px; --r-sm: 10px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #14110e; --surface: #1e1a16; --surface-2: #29231e; --line: #382f28;
  --fg: #f6efe8; --muted: #b3a599; --faint: #7d7168;
  --brand-ink: #ffb35c; --brand-soft: #3a2614;
  --ok: #4fd296; --ok-soft: #14301f; --warn: #f0b441; --warn-soft: #3a2c0c; --bad: #ff7b72; --bad-soft: #3d1a18; --info: #7fa9ff; --info-soft: #18263f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #14110e; --surface: #1e1a16; --surface-2: #29231e; --line: #382f28;
  --fg: #f6efe8; --muted: #b3a599; --faint: #7d7168;
  --brand-ink: #ffb35c; --brand-soft: #3a2614;
  --ok: #4fd296; --ok-soft: #14301f; --warn: #f0b441; --warn-soft: #3a2c0c; --bad: #ff7b72; --bad-soft: #3d1a18; --info: #7fa9ff; --info-soft: #18263f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
a { color: var(--brand-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .right { text-align: right; }
.logo-svg .cls-3, .splash-logo .cls-3 { fill: var(--fg) !important; }
.logo-svg svg { display: block; width: 100%; height: auto; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Splash ---------- */
#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg); overflow: hidden; clip-path: circle(150% at 50% 42%); transition: clip-path .75s cubic-bezier(.7, 0, .2, 1), opacity .75s ease; }
#splash.out { clip-path: circle(0% at 50% 42%); opacity: .4; pointer-events: none; }
.splash-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 9s ease-in-out infinite alternate; }
.splash-blob.b1 { width: 46vmax; height: 46vmax; background: #f5ab1e; top: -18vmax; left: -12vmax; }
.splash-blob.b2 { width: 40vmax; height: 40vmax; background: #d7437a; bottom: -18vmax; right: -10vmax; animation-delay: -3s; opacity: .35; }
.splash-blob.b3 { width: 26vmax; height: 26vmax; background: #f25f31; bottom: 8vmax; left: 12vmax; animation-delay: -6s; opacity: .25; }
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.15); } }
.splash-inner { position: relative; display: grid; justify-items: center; gap: 28px; }
.splash-logo { width: min(240px, 52vw); aspect-ratio: 539 / 639; }
.splash-logo svg { width: 100%; height: 100%; overflow: visible; }
.splash-logo svg :not([transform]) { transform-box: fill-box; transform-origin: center; }
.splash-logo .sp-dot { animation: sp-drop 1s cubic-bezier(.28, 1.5, .5, 1) both; }
.splash-logo .sp-bowl { animation: sp-bowl .8s cubic-bezier(.2, 1.3, .4, 1) .45s both; transform-origin: 50% 0%; }
.splash-logo .sp-bowl2 { animation: sp-bowl .8s cubic-bezier(.2, 1.3, .4, 1) .6s both; transform-origin: 50% 0%; }
.splash-logo .sp-letter { animation: sp-rise .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.splash-logo .sp-tag { animation: sp-fade .5s ease both; }
/* Huruf yang sudah punya atribut transform (huruf I pada tagline) hanya boleh dianimasikan opacity-nya. */
.splash-logo .sp-tag[transform], .splash-logo .sp-letter[transform] { animation-name: sp-opacity; }
@keyframes sp-opacity { from { opacity: 0; } to { opacity: 1; } }
.splash-logo.live .sp-dot { animation: sp-drop 1s cubic-bezier(.28, 1.5, .5, 1) both, sp-pulse 1.6s ease-in-out 1.6s infinite; }
@keyframes sp-drop { 0% { transform: translateY(-260%) scale(.3); opacity: 0; } 55% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes sp-bowl { 0% { transform: scale(0) rotate(-35deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes sp-rise { 0% { transform: translateY(40%) scale(.8); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes sp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes sp-pulse { 50% { transform: scale(1.08); } }
.splash-bar { width: 150px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.splash-bar span { display: block; height: 100%; width: 40%; border-radius: 4px; background: var(--grad); animation: sp-load 1.2s ease-in-out infinite; }
@keyframes sp-load { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
.splash-text { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }

/* ---------- Kontrol dasar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; font-size: .92rem; cursor: pointer; text-decoration: none; color: var(--fg); transition: transform .12s, box-shadow .2s, background .2s, border-color .2s; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .btn:hover { border-color: var(--faint); } }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -8px rgba(242, 95, 49, .7); text-shadow: 0 1px 0 rgba(120, 40, 0, .25); }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .btn.primary:hover { box-shadow: 0 12px 26px -8px rgba(242, 95, 49, .85); } }
.btn.danger { color: var(--bad); } .btn.ok { color: var(--ok); }
.btn.ghost { background: transparent; border-color: transparent; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .btn.ghost:hover { background: var(--surface-2); } }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: .84rem; border-radius: 10px; }
.btn.icon { width: 40px; padding: 0; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: .82rem; font-weight: 700; color: var(--muted); }
.field small { color: var(--faint); font-size: .78rem; }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
textarea.input { min-height: 88px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.pick { position: relative; min-width: 0; }
.pick-btn { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; font-weight: 600; }
.pick-btn span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-btn .ic { width: 18px; height: 18px; color: var(--brand); } .pick-btn .ic:last-child { color: var(--faint); transition: transform .2s; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .pick-btn:hover { border-color: var(--faint); } }
.pick-btn[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.pick-btn[aria-expanded="true"] .ic:last-child { transform: rotate(180deg); }
.page-head .pick-btn { min-width: 210px; }
.pick.grow { min-width: 170px; }
.pop { position: absolute; z-index: 60; width: 308px; max-width: calc(100vw - 24px); padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); animation: pop .18s ease both; }
.pop button { border: 0; background: transparent; cursor: pointer; font-weight: 700; color: var(--fg); border-radius: 12px; transition: background .15s, color .15s, transform .1s; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .pop button:hover:not(:disabled):not(.sel) { background: var(--surface-2); } }
.pop button:active:not(:disabled) { transform: scale(.94); }
.pop button:disabled { opacity: .3; cursor: not-allowed; }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.pop-head button { width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); }
.pop-head .pop-title { width: auto; flex: 1; font-size: 1rem; font-weight: 800; color: var(--fg); letter-spacing: -.01em; }
.pop-head .pop-title:disabled { opacity: 1; cursor: default; }
.pop-grid { display: grid; gap: 4px; }
.pop-grid.months { grid-template-columns: repeat(3, 1fr); gap: 6px; } .pop-grid.months button { height: 46px; font-size: .92rem; }
.pop-grid.dgrid { grid-template-columns: repeat(7, 1fr); } .pop-grid.dgrid button { aspect-ratio: 1; border-radius: 50%; font-size: .88rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.pop-grid.dgrid span { text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); padding: 4px 0 6px; }
.pop .now { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 70%, transparent); color: var(--brand-ink); }
.pop .sel, .pop .sel.now { background: var(--grad); color: #fff; box-shadow: 0 6px 14px -6px rgba(242, 95, 49, .8); }
.pop.list { padding: 6px; border-radius: 16px; }
.pop-list { display: grid; gap: 2px; max-height: min(320px, 50dvh); overflow-y: auto; }
.pop-list button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 8px 12px; text-align: left; font-weight: 600; font-size: .93rem; }
.pop-list button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-list button .ic { width: 18px; height: 18px; }
.pop .pop-list .sel { background: var(--brand-soft); color: var(--brand-ink); box-shadow: none; font-weight: 700; }
.pop-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pop-foot button { padding: 8px 12px; font-size: .86rem; color: var(--brand-ink); } .pop-foot button[data-pk="clear"] { color: var(--muted); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stack { display: grid; gap: 14px; } .stack.lg { gap: 22px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .row.between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { flex: none; width: 44px; height: 26px; border-radius: 26px; background: var(--line); position: relative; transition: background .2s; margin-top: 1px; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + i { background: var(--brand); } .switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.switch b { display: block; font-size: .92rem; } .switch small { color: var(--muted); font-size: .82rem; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 460px; }
.days label { cursor: pointer; position: relative; min-width: 0; }
.days input { position: absolute; opacity: 0; }
.days span { display: grid; place-items: center; height: 44px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; font-size: .82rem; color: var(--faint); background: var(--surface); transition: background .15s, color .15s, border-color .15s; }
.days input:checked + span, .days span.on { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 12px -8px rgba(242, 95, 49, .9); }
/* Kartu Perusahaan & jam kerja: kelompok isian berjudul */
.fgroup { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); min-width: 0; }
.gl { display: flex; align-items: center; gap: 10px; min-width: 0; } .gl b { flex: 1; min-width: 0; font-size: .95rem; } .gl .pill { flex: none; }
.shiftbox { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; max-width: 460px; }
.shiftbox .pick-btn { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; width: 100%; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: inherit; text-align: left; transition: border-color .15s, box-shadow .15s; }
.shiftbox .pick-btn small { grid-column: 1 / -1; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.shiftbox .pick-btn span { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.shiftbox .pick-btn .ic:last-child { width: 20px; height: 20px; color: var(--faint); transform: none; } .shiftbox .pick-btn[aria-expanded="true"] .ic:last-child { color: var(--brand); }
.pop-time { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.pop-time > b { margin-top: 22px; font-size: 1.3rem; color: var(--faint); }
.pop-time small { display: block; margin-bottom: 6px; text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.tcol { position: relative; display: grid; gap: 4px; height: 212px; padding: 4px; overflow-y: auto; overscroll-behavior: contain; border-radius: 14px; background: var(--surface-2); scrollbar-width: none; } .tcol::-webkit-scrollbar { display: none; }
.pop .tcol button { height: 40px; flex: none; font-size: 1.02rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); border-radius: 10px; }
.pop .tcol button.sel { color: #fff; }
.pop-foot button[data-pk="done"] { padding: 8px 18px; border-radius: 10px; background: var(--brand-soft); }
.shiftbox > i { display: grid; place-items: center; color: var(--faint); } .shiftbox > i .ic { width: 18px; height: 18px; }
.unit { position: relative; max-width: 460px; } .unit .input { padding-right: 70px; } .unit em { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .85rem; font-weight: 600; color: var(--muted); pointer-events: none; }
.hols { display: grid; gap: 8px; }
.hol { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 14px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.hol b { display: block; font-size: .92rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hol small { color: var(--muted); font-size: .8rem; } .hol .grow { min-width: 0; } .hol .btn { flex: none; color: var(--muted); }
.hol-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
@media (max-width: 520px) { .hol-add { grid-template-columns: minmax(0, 1fr) auto; } .hol-add .pick { grid-column: 1 / -1; } }
.days input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card > h2 + p { margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.info { background: var(--info-soft); color: var(--info); }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: var(--grad); }
.file-btn { position: relative; cursor: pointer; }
.file-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-btn:focus-within { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.proof { display: grid; gap: 10px; justify-items: start; }
.proof img { max-width: 100%; max-height: 220px; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; display: block; }
.thumb { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); cursor: zoom-in; display: block; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 36px 16px; text-align: center; color: var(--muted); }
.empty .ic { width: 34px; height: 34px; color: var(--faint); }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: .9rem; }
.banner.info { background: var(--info-soft); color: var(--info); } .banner.bad { background: var(--bad-soft); color: var(--bad); } .banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner .grow { color: var(--fg); font-weight: 500; } .banner b { display: block; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--surface-2); max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-weight: 700; font-size: .86rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.tbl-wrap { overflow-x: auto; margin: 0 -20px -20px; border-top: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 14px; white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl th:first-child, .tbl td:first-child { padding-left: 20px; } .tbl th:last-child, .tbl td:last-child { padding-right: 20px; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .tbl tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); } }
.tbl .who { display: flex; align-items: center; gap: 10px; min-width: 150px; } .tbl .who b { display: block; line-height: 1.2; }
.nowrap { white-space: nowrap; }

/* ---------- Autentikasi ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth-art { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.auth-art::before, .auth-art::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.16); }
.auth-art::before { width: 420px; height: 420px; top: -120px; right: -100px; animation: drift 10s ease-in-out infinite alternate; }
.auth-art::after { width: 220px; height: 220px; top: 34%; left: -60px; background: rgba(255,255,255,.1); animation: drift 12s ease-in-out -4s infinite alternate; }
.auth-art h1 { position: relative; font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.1; max-width: 14ch; }
.auth-art p { position: relative; max-width: 42ch; opacity: .92; }
.auth-art ul { position: relative; list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.auth-art li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.auth-form { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 32px max(20px, env(safe-area-inset-right, 0px)) 32px max(20px, env(safe-area-inset-left, 0px)); }
/* Latar bercahaya yang sama dengan animasi pembuka */
.auth-bg { position: absolute; inset: 0; pointer-events: none; }
.auth-bg i { position: absolute; border-radius: 50%; filter: blur(70px); animation: drift 10s ease-in-out infinite alternate; }
.auth-bg i:nth-child(1) { width: 46vmax; height: 46vmax; background: #f5ab1e; top: -20vmax; left: -16vmax; opacity: .5; }
.auth-bg i:nth-child(2) { width: 40vmax; height: 40vmax; background: #d7437a; bottom: -20vmax; right: -14vmax; opacity: .34; animation-delay: -4s; }
.auth-bg i:nth-child(3) { width: 24vmax; height: 24vmax; background: #f25f31; top: 34%; right: -12vmax; opacity: .2; animation-delay: -7s; }
.auth-box { position: relative; width: min(400px, 100%); display: grid; gap: 22px; justify-items: center; text-align: center; }
.auth-box > * { animation: pop .6s cubic-bezier(.2, .9, .3, 1.1) both; }
.auth-box > :nth-child(2) { animation-delay: .08s; } .auth-box > :nth-child(3) { animation-delay: .16s; } .auth-box > :nth-child(4) { animation-delay: .26s; }
.auth-logo { width: 108px; filter: drop-shadow(0 16px 26px rgba(242, 95, 49, .28)); }
.auth-logo .logo-svg { width: 100%; }
.auth-title { display: grid; gap: 6px; } .auth-title h1 { font-size: 1.75rem; } .auth-title p { color: var(--muted); max-width: 32ch; margin: 0 auto; }
.auth-card { width: 100%; text-align: left; padding: 22px; border-radius: 26px; background: color-mix(in srgb, var(--surface) 80%, transparent); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid color-mix(in srgb, var(--surface) 55%, var(--line)); box-shadow: var(--shadow-lg); }
.inp { position: relative; }
.inp > .ic { position: absolute; left: 15px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: var(--faint); pointer-events: none; transition: color .2s; }
.inp:focus-within > .ic { color: var(--brand); }
.inp .input { min-height: 54px; padding-left: 46px; border-radius: 16px; font-weight: 600; font-size: 16px; }
.inp .input::placeholder { font-weight: 500; color: var(--faint); }
.inp .eye, .pwf .eye { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--faint); cursor: pointer; }
.inp .eye.on, .pwf .eye.on { color: var(--brand); } .inp:has(.eye) .input { padding-right: 52px; }
/* Teks hasil isi otomatis browser digambar dengan font bawaan browser sampai kolomnya disentuh;
   ::first-line memaksa font dan ukuran aplikasi dipakai sejak awal. */
.input:-webkit-autofill::first-line { font-family: var(--font); font-size: 15px; font-weight: 500; }
.inp .input:-webkit-autofill::first-line { font-size: 16px; font-weight: 600; }
@media (max-width: 860px) { .input:-webkit-autofill::first-line { font-size: 16px; } }
/* Isi otomatis browser tidak lagi mengubah kolom menjadi biru */
.input:-webkit-autofill, .input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; -webkit-text-fill-color: var(--fg); caret-color: var(--fg); transition: background-color 9999s; }
.input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset, 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.btn.lg { min-height: 56px; font-size: 1.02rem; border-radius: 16px; margin-top: 4px; }
.btn.lg .ic { transition: transform .2s; }
.auth-note { font-size: .84rem; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Kerangka aplikasi ---------- */
.shell { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 6px; padding: 22px 14px; background: var(--surface); border-right: 1px solid var(--line); }
.side .brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 18px; }
.side .brand img { width: 44px; height: 38px; object-fit: contain; }
.side .brand b { display: block; line-height: 1.15; font-weight: 800; } .side .brand small { color: var(--muted); font-size: .76rem; }
.nav { display: grid; gap: 4px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--muted); font-weight: 700; font-size: .93rem; text-decoration: none; transition: background .2s, color .2s; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .nav a:hover { background: var(--surface-2); color: var(--fg); } }
.nav a.on { background: var(--brand-soft); color: var(--brand-ink); }
.nav a .badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand-2); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.side .foot { margin-top: auto; display: grid; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.me b { display: block; font-size: .9rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .me small { color: var(--muted); font-size: .76rem; }
.topbar { display: none; }
.main { padding: 28px clamp(16px, 3vw, 40px) 48px; min-width: 0; }
.page { max-width: 1180px; margin: 0 auto; display: grid; gap: 22px; animation: pop .35s ease both; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.page-head p { color: var(--muted); }
.page-head h1:has(.tic) { display: flex; align-items: center; gap: 10px; } .page-head h1 .tic { width: auto; height: auto; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--brand); } .page-head h1 .tic .ic { width: 24px; height: 24px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 2px; }
.tile span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.tile b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tile small { color: var(--faint); font-size: .78rem; }
.tile.ok b { color: var(--ok); } .tile.warn b { color: var(--warn); } .tile.bad b { color: var(--bad); }
.tabbar { display: none; }

/* ---------- Beranda karyawan ---------- */
.hero { position: relative; overflow: hidden; border-radius: 24px; padding: 26px; color: #fff; background: var(--grad); box-shadow: 0 20px 44px -22px rgba(242, 95, 49, .8); display: grid; gap: 20px; }
.hero::before { content: ""; position: absolute; width: 300px; height: 300px; right: -90px; top: -130px; border-radius: 50%; background: rgba(255,255,255,.16); }
.hero::after { content: ""; position: absolute; width: 150px; height: 150px; right: 70px; bottom: -90px; border-radius: 50%; background: rgba(255,255,255,.1); }
/* Lingkaran hiasan tidak boleh menutupi atau menangkap klik tombol di atasnya */
.hero::before, .hero::after { pointer-events: none; z-index: 0; }
/* Ringkasan lembur karyawan */
.othero { gap: 18px; padding: 22px; }
.ot-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ot-main > i { flex: none; width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; background: rgba(255, 255, 255, .22); } .ot-main > i .ic { width: 26px; height: 26px; }
.ot-main > div { display: grid; gap: 1px; min-width: 0; } .ot-main small { font-size: .78rem; font-weight: 700; opacity: .9; }
.ot-main b { font-size: 2.1rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; } .ot-main span { font-size: .8rem; font-weight: 600; opacity: .9; }
.ot-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.ot-stats.two { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ot-stats > div { display: grid; gap: 1px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .18); min-width: 0; }
.ot-stats small { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; opacity: .9; }
.ot-stats b { font-size: 1.05rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ot-stats span { font-size: .74rem; font-weight: 600; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero > * { position: relative; z-index: 1; }
.hero .hello { font-weight: 600; opacity: .95; }
.hero .clock { font-size: clamp(2.8rem, 9vw, 4.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero .clock small { font-size: .42em; opacity: .8; margin-left: 4px; }
.hero .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.hero .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.2); font-size: .82rem; font-weight: 700; backdrop-filter: blur(6px); }
.hero .chip .ic { width: 15px; height: 15px; }
.punch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.punch div { background: rgba(255,255,255,.18); border-radius: 16px; padding: 12px 14px; backdrop-filter: blur(6px); }
.punch span { display: block; font-size: .76rem; font-weight: 700; opacity: .9; } .punch b { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; } .punch small { display: block; font-size: .76rem; opacity: .9; }
.cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 62px; border: 0; border-radius: 18px; background: #fff; color: #c9480a; font-weight: 800; font-size: 1.08rem; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(80, 20, 0, .6); transition: transform .15s; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .cta:hover { transform: translateY(-2px); } } .cta:active { transform: scale(.98); }
.cta::after { content: ""; position: absolute; inset: 0; border-radius: 18px; border: 2px solid #fff; animation: ring 2s ease-out infinite; pointer-events: none; }
@keyframes ring { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(1.06, 1.35); } }
.cta.done { background: rgba(255,255,255,.2); color: #fff; cursor: default; box-shadow: none; } .cta.done::after { display: none; } @media (hover: hover) and (pointer: fine) and (min-width: 861px) { .cta.done:hover { transform: none; } }
.list { display: grid; }
.list .item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.list .item:first-child { border-top: 0; padding-top: 0; } .list .item:last-child { padding-bottom: 0; }
.list .item b { display: block; line-height: 1.25; } .list .item small { color: var(--muted); }
.datebox { flex: none; width: 46px; height: 50px; border-radius: 12px; background: var(--surface-2); display: grid; place-content: center; text-align: center; line-height: 1.05; }
.datebox b { font-size: 1.1rem; font-weight: 800; } .datebox small { font-size: .66rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 150px; padding-top: 22px; }
.bars .bar { display: grid; grid-template-rows: 1fr auto; gap: 8px; height: 100%; min-width: 0; text-align: center; font-size: .68rem; color: var(--muted); font-weight: 700; }
.bars .bar span { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.bars .bar i { align-self: end; display: block; position: relative; min-height: 4px; overflow: visible; border-radius: 9px 9px 4px 4px; background: color-mix(in srgb, var(--brand) 78%, var(--surface)); animation: grow .7s cubic-bezier(.2, .9, .3, 1) both; transform-origin: bottom; }
.bars .bar i u { position: absolute; top: 0; left: 0; right: 0; border-radius: 9px 9px 0 0; background: var(--warn); }
.bars .bar i em { position: absolute; top: -20px; left: 0; right: 0; font-style: normal; font-size: .8rem; font-weight: 800; color: var(--fg); font-variant-numeric: tabular-nums; }
.bars .bar.now i { background: var(--grad); box-shadow: 0 8px 16px -8px rgba(242, 95, 49, .8); } .bars .bar.now span { color: var(--brand-ink); }
@keyframes grow { from { transform: scaleY(0); } }
.rule { display: flex; gap: 12px; align-items: flex-start; } .rule .ic { color: var(--brand); margin-top: 2px; }

/* ---------- Tampilan karyawan ---------- */
.role-employee .main { background: radial-gradient(60rem 22rem at 100% -6rem, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%), radial-gradient(42rem 20rem at -10% 5rem, color-mix(in srgb, var(--brand-3) 9%, transparent), transparent 70%); background-repeat: no-repeat; }
.tic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-style: normal; }
.tic.sakit { background: var(--bad-soft); color: var(--bad); } .tic.cuti { background: var(--info-soft); color: var(--info); } .tic.izin { background: var(--warn-soft); color: var(--warn); }
.tile .tic { margin-bottom: 10px; }
.tile.ok .tic { background: var(--ok-soft); color: var(--ok); } .tile.warn .tic { background: var(--warn-soft); color: var(--warn); } .tile.bad .tic { background: var(--bad-soft); color: var(--bad); }
.role-employee .tile { box-shadow: var(--shadow); transition: transform .18s, box-shadow .2s; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .role-employee .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.22); font-weight: 700; font-size: .8rem; backdrop-filter: blur(6px); white-space: nowrap; }
.hero-badge i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.hero-badge.live i { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; transform: scale(.8); } }
.punch div { position: relative; }
.punch .ic { position: absolute; right: 12px; top: 12px; width: 18px; height: 18px; opacity: .75; }
.shift { display: grid; gap: 7px; }
.shift-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.28); overflow: hidden; }
.shift-bar i { display: block; height: 100%; width: 2%; border-radius: 8px; background: #fff; transition: width .8s cubic-bezier(.2, .9, .3, 1); }
.shift-txt { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; font-weight: 700; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick a { display: grid; justify-items: center; gap: 8px; padding: 14px 8px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--fg); font-weight: 700; font-size: .86rem; text-align: center; transition: transform .18s, border-color .2s, box-shadow .2s; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .quick a:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-lg); } }
.quick a:active { transform: scale(.97); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wd { display: grid; justify-items: center; gap: 4px; padding: 10px 0 9px; border-radius: 14px; background: var(--surface-2); border: 1px solid transparent; }
.wd small { font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.wd b { font-size: 1rem; font-weight: 800; line-height: 1.1; }
.wd i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.wd.hadir { background: var(--ok-soft); } .wd.hadir i { background: var(--ok); }
.wd.terlambat { background: var(--warn-soft); } .wd.terlambat i { background: var(--warn); }
.wd.izin { background: var(--info-soft); } .wd.izin i { background: var(--info); }
.wd.absen { background: var(--bad-soft); } .wd.absen i { background: var(--bad); }
.wd.libur, .wd.kosong { background: transparent; border: 1px dashed var(--line); } .wd.libur b, .wd.kosong b { color: var(--faint); }
.wd.today { border: 2px solid var(--brand); } .wd.today small { color: var(--brand-ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend i { width: 8px; height: 8px; border-radius: 50%; }
.day-list { display: grid; }
.day { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; column-gap: 14px; padding: 14px 0; cursor: pointer; min-width: 0; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; padding-top: 4px; } .day:last-child { padding-bottom: 4px; }
.day .datebox { width: 48px; height: 52px; }
.day > .ic { color: var(--faint); width: 18px; height: 18px; transition: transform .15s, color .15s; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .day:hover > .ic { transform: translateX(3px); color: var(--brand); } } @media (hover: hover) and (pointer: fine) and (min-width: 861px) { .day:hover .day-times { color: var(--brand-ink); } }
.day:active { opacity: .7; }
.day-body { display: grid; gap: 7px; min-width: 0; }
.day-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.day-times { display: flex; align-items: baseline; gap: 7px; font-weight: 800; font-size: 1.02rem; line-height: 1.2; white-space: nowrap; letter-spacing: -.01em; transition: color .15s; }
.day-times em { font-style: normal; color: var(--faint); font-weight: 500; }
.day-dur { flex: none; font-size: .82rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.day-pills { display: flex; flex-wrap: wrap; gap: 5px; } .list .item .day-pills { margin-top: 6px; }
.day .pill { font-size: .7rem; padding: 2px 9px; gap: 5px; } .day .pill::before { width: 5px; height: 5px; }
.day-side { flex: none; text-align: right; } .day-side b { display: block; font-size: .9rem; white-space: nowrap; } .day-side small { color: var(--muted); font-size: .72rem; }
.day-photos { display: flex; flex: none; }
.mini { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); background: var(--surface-2); } .mini + .mini { margin-left: -10px; }
.datebox.off { background: var(--info-soft); } .datebox.off small { color: var(--info); }
.lv-list { display: grid; }
.lv { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.lv:first-child { border-top: 0; padding-top: 4px; } .lv:last-child { padding-bottom: 4px; }
.lv > .tic { width: 44px; height: 44px; border-radius: 14px; }
.lv-body { display: grid; gap: 6px; min-width: 0; }
.lv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.lv-top b { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.lv .pill { font-size: .7rem; padding: 2px 9px; }
.lv-date { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; font-size: .84rem; font-weight: 700; line-height: 1.3; }
.lv-date .ic { width: 15px; height: 15px; color: var(--brand); }
.lv-date em { font-style: normal; font-weight: 600; font-size: .74rem; color: var(--muted); padding: 1px 8px; border-radius: 999px; background: var(--surface-2); }
.lv-reason { font-size: .86rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.lv-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.lv-proof { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); font-weight: 700; font-size: .8rem; cursor: pointer; transition: border-color .2s; }
@media (hover: hover) and (pointer: fine) and (min-width: 861px) { .lv-proof:hover { border-color: var(--brand); } }
.lv-proof img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; display: block; background: var(--surface-2); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.profile-body { display: grid; gap: 18px; }
/* Profil karyawan */
.pcard { display: grid; justify-items: center; gap: 12px; text-align: center; padding-top: 28px; padding-bottom: 24px; background: linear-gradient(180deg, var(--brand-soft), var(--surface) 62%); }
.pcard .avatar.xl { width: 96px; height: 96px; border-radius: 30px; font-size: 1.8rem; border: 4px solid var(--surface); box-shadow: var(--shadow); }
.pname { display: grid; gap: 2px; min-width: 0; } .pname h2 { font-size: 1.3rem; line-height: 1.25; overflow-wrap: anywhere; } .pname p { font-size: .9rem; }
.ptags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pshift { display: grid; gap: 2px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); min-width: 0; }
.pshift small { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } .pshift b { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.pfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pfact { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); min-width: 0; } .pfact.full { grid-column: 1 / -1; }
.pfact .tic { margin-bottom: 6px; background: var(--surface); } .pfact small { font-size: .74rem; font-weight: 700; color: var(--muted); } .pfact b { font-size: .95rem; overflow-wrap: anywhere; }
.pnote { text-align: center; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.profile-head { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-head h2 { font-size: 1.25rem; line-height: 1.25; overflow-wrap: anywhere; } .profile-head .grow { min-width: 0; }
.avatar.xl { width: 84px; height: 84px; border-radius: 26px; font-size: 1.6rem; box-shadow: var(--shadow); }
.avatar.lg { width: 60px; height: 60px; border-radius: 18px; font-size: 1.15rem; }
img.avatar { object-fit: cover; display: block; background: var(--surface-2); }
.tabbar a .ic { transition: transform .2s cubic-bezier(.2, .9, .3, 1.4); } .tabbar a.on .ic { transform: translateY(-1px) scale(1.12); }
@media (max-width: 520px) { .day-photos { display: none; } .quick a { padding: 12px 4px; font-size: .8rem; } .hero-badge { font-size: .74rem; padding: 5px 10px; } }

/* Rasa aplikasi di ponsel (dipakai juga saat dibungkus menjadi APK) */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { overscroll-behavior-y: none; }
button, a, .day, .switch, label.btn { touch-action: manipulation; }
.btn, .nav a, .tabbar, .seg button, .pick-btn, .cta, .quick a, .pill, .hero-badge, .chip { -webkit-user-select: none; user-select: none; }
.topbar .btn.on { background: var(--brand-soft); color: var(--brand-ink); }
#top-avatar.on .avatar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand); }
#top-avatar { display: block; text-decoration: none; border-radius: 12px; } #top-avatar .avatar { width: 36px; height: 36px; border-radius: 12px; font-size: .78rem; }
.fab-slot { display: none; }
@media (max-width: 860px) {
  /* Di ponsel: tanpa cincin jingga pada tombol pilihan, tanpa latar pada opsi terpilih */
  .pick-btn:focus, .pick-btn[aria-expanded="true"] { border-color: var(--line); box-shadow: none; outline: none; }
  .pop .pop-list .sel { background: transparent; }
  .input, select.input, textarea.input { font-size: 16px; } /* cegah zoom otomatis saat mengetik di iOS/Android */
  .tabbar { align-items: flex-end; }
  .fab-slot { flex: 1; display: grid; justify-items: center; gap: 2px; padding-bottom: 7px; font-size: .66rem; font-weight: 800; color: var(--brand-ink); }
  .fab { width: 58px; height: 58px; margin-top: -30px; border-radius: 50%; border: 4px solid var(--surface); background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 24px -8px rgba(242, 95, 49, .85); transition: transform .15s; position: relative; }
  .fab .ic { width: 24px; height: 24px; }
  .fab:active { transform: scale(.92); }
  .fab::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--brand); animation: fab-ring 2.4s ease-out infinite; pointer-events: none; }
  @keyframes fab-ring { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
  .tabbar a { padding: 8px 2px; min-height: 52px; align-content: center; }
  .day { grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; } .day > .ic, .day .day-photos { display: none; }
  .tiles.t3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .tiles.t3 .tile { padding: 12px 10px; align-content: start; } .tiles.t3 .tile b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tiles.t3 .tile small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tiles.t3 .tile b { font-size: 1.05rem; letter-spacing: -.01em; overflow-wrap: anywhere; } .tiles.t3 .tile span { font-size: .72rem; } .tiles.t3 .tile small { font-size: .68rem; }
  .tiles.t3 .tic { width: 32px; height: 32px; border-radius: 10px; margin-bottom: 8px; } .tiles.t3 .tic .ic { width: 17px; height: 17px; }
  .list .item { align-items: flex-start; } .list .item .day-pills { margin-top: 6px; } .list .item .pill, .list .item .btn { margin-top: 2px; }
  .page { gap: 18px; } .stack.lg { gap: 18px; }
  .card { padding: 16px; } .tbl-wrap { margin: 0 -16px -16px; }
}

/* ---------- Admin di ponsel ---------- */
.m-only { display: none; }
.card-note { display: flex; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.4; color: var(--muted); min-width: 0; }
.card-note .ic { width: 15px; height: 15px; color: var(--faint); }
.card-note span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-head { display: grid; gap: 6px; } .head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .head-row h2 { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .head-row .btn.icon { width: 34px; } .head-row .btn { flex: none; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; align-items: end; }
a.tile.link { text-decoration: none; color: var(--fg); cursor: pointer; }
.arow-name { font-size: .98rem; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arow-time { display: flex; align-items: baseline; gap: 6px; font-size: .88rem; font-weight: 700; }
.arow-time em { font-style: normal; color: var(--faint); font-weight: 500; } .arow-time small { margin-left: 4px; color: var(--muted); font-weight: 600; }
.rlist { gap: 12px; }
.rcard { display: grid; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.rc-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rc-head .avatar { width: 42px; height: 42px; border-radius: 13px; }
.rc-head .grow b { display: block; font-size: .98rem; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-head small { display: block; font-size: .76rem; color: var(--muted); }
.rc-head small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rc-head .btn { flex: none; }
.rcard .pill { font-size: .7rem; padding: 2px 9px; } .rcard .pill::before { width: 5px; height: 5px; }
.rc-head > .pill { flex: none; align-self: flex-start; }
.rc-acts { display: flex; align-items: center; gap: 8px; } .rc-acts .btn { flex: 1; } .rc-acts .lv-proof { flex: none; }
.dstats.four.three { grid-template-columns: minmax(0, 1.1fr) minmax(0, .75fr) minmax(0, 1.35fr); } .dstats.four.three b { font-size: .9rem; letter-spacing: -.01em; }
.tic.mini { width: 26px; height: 26px; border-radius: 8px; } .tic.mini .ic { width: 14px; height: 14px; }
.rcard .lv-date { gap: 6px 8px; } .rcard .lv-reason { margin-top: -4px; }
.rc-pay { flex: none; text-align: right; } .rc-pay b { display: block; font-size: .98rem; font-weight: 800; color: var(--ok); white-space: nowrap; }
.dstats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface-2); border-color: transparent; }
.dstats.four div { padding: 9px 10px; } .dstats.four div + div { border-left-color: var(--surface); border-left-width: 2px; }
.dstats.four small { font-size: .64rem; letter-spacing: .02em; white-space: nowrap; }
.dstats.four b { font-size: 1.05rem; font-weight: 800; } .dstats.four b i { margin-left: 2px; font-style: normal; font-size: .68rem; font-weight: 600; color: var(--muted); }
.lv .pair { margin-top: 6px; }
.lv.slim { align-items: center; padding: 12px 0; } .lv.slim .avatar { width: 44px; height: 44px; border-radius: 14px; } .lv.slim .lv-body { gap: 2px; } .lv.slim .lv-top b { font-size: .96rem; }
.lv-when { flex: none; font-size: .74rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.lv .day-pills .pill { white-space: normal; text-align: left; border-radius: 10px; line-height: 1.35; }
.head-row .pill { flex: none; } .head-row .pick { flex: none; } .head-row .pick-btn { min-height: 40px; min-width: 0; padding: 6px 12px; font-size: .9rem; }
@media (max-width: 860px) {
  .m-hide { display: none; } .m-only { display: grid; }
  /* Tombol di kaki jendela pop-up sama lebar dan memenuhi baris */
  .modal-foot { flex-wrap: nowrap; gap: 10px; } .modal-foot .btn { flex: 1 1 0; min-width: 0; padding: 0 10px; } .modal-foot > .grow { display: none; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .filters .csv { grid-column: 1 / -1; }
  .filters .pick-btn { padding-left: 12px; padding-right: 10px; gap: 8px; } .filters .pick[data-type="date"] .pick-btn .ic:last-child { display: none; }
  .day .avatar { width: 44px; height: 44px; border-radius: 14px; }
  .page-head { align-items: flex-start; } .page-head > .row { width: 100%; } .page-head > .row:empty { display: none; }
  .page-head > .row > .btn, .page-head > .row > .seg, .page-head > .row > .pick { flex: 1; } .seg button { flex: 1; }
  /* Tabel menjadi kartu bertumpuk: sel pertama judul kartu, sel lain berlabel, tombol aksi di bawah */
  .tbl-wrap:has(.tbl.stack) { overflow: visible; margin: 0 !important; border-top: 0 !important; }
  .tbl.stack { display: block; } .tbl.stack thead { display: none; }
  .tbl.stack tbody { display: grid; gap: 12px; }
  /* Tiap baris menjadi kartu sendiri; kartu pembungkusnya dilebur ke latar halaman */
  .card:has(.tbl.stack), .card:has(.rlist) { background: transparent; border: 0; box-shadow: none; padding: 0; }
  .tbl.stack tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
  .tbl.stack td { display: block; padding: 0 !important; border: 0; min-width: 0 !important; font-size: .9rem; font-weight: 600; white-space: normal; }
  .tbl.stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .tbl.stack td[data-full], .tbl.stack td[data-wide], .tbl.stack td[data-acts] { grid-column: 1 / -1; }
  .tbl.stack td[data-full] .who { min-width: 0; } .tbl.stack td[data-full] .avatar { width: 44px; height: 44px; border-radius: 14px; }
  .tbl.stack td[data-acts] { display: flex; flex-wrap: wrap; gap: 8px; text-align: left; } .tbl.stack td[data-acts] .btn { flex: 1; } .tbl.stack td[data-acts]:empty { display: none; }
  .tbl.stack td br + small { display: block; font-weight: 500; }
  .tbl.stack td .pill { display: inline-flex; width: auto; max-width: 100%; white-space: normal; }
  .card > .row.between > .btn { flex: none; }
}

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(20, 12, 6, .55); backdrop-filter: blur(4px); animation: fade .2s ease both; overflow-y: auto; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); --mt: 24px; --mr: 24px; --ml: 24px; padding: 0 24px 24px; display: grid; grid-auto-rows: max-content; gap: 18px; animation: pop .3s cubic-bezier(.2, .9, .3, 1.1) both; }
.modal.wide { width: min(760px, 100%); }
/* Judul jendela menempel di atas saat isinya digulir */
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 3; margin: 0 calc(-1 * var(--mr)) 0 calc(-1 * var(--ml)); padding: var(--mt) var(--mr) 14px var(--ml); background: var(--surface); box-shadow: 0 1px 0 var(--line); }
.modal-head p { color: var(--muted); font-size: .9rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.photo-view { width: 100%; border-radius: 14px; display: block; background: var(--surface-2); }
.photos2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shot { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 26px 12px 10px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.shot figcaption span { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; } .shot figcaption b { font-size: 1.05rem; font-weight: 800; }
.shot.empty { display: grid; place-content: center; justify-items: center; gap: 8px; padding: 12px; text-align: center; cursor: default; background: transparent; border: 1px dashed var(--line); color: var(--faint); font-size: .82rem; font-weight: 600; }
.shot.empty .ic { width: 26px; height: 26px; }
.dstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dstats div { display: grid; gap: 2px; padding: 10px 12px; min-width: 0; } .dstats div + div { border-left: 1px solid var(--line); }
.dstats small { font-size: .7rem; font-weight: 700; color: var(--muted); } .dstats b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsecs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.dsec { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.dsec .kv { grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 8px 14px; } .dsec .kv dd { overflow-wrap: anywhere; }
.dsec .flags li { align-items: center; } .dsec .flags li span:first-child { min-width: 0; }
@media (max-width: 620px) { .dsecs { grid-template-columns: minmax(0, 1fr); } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .9rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; text-align: right; }
.flags { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .86rem; }
.flags li { display: flex; gap: 8px; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-weight: 600; }

/* ---------- Alur absen ---------- */
.steps { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--faint); }
.steps span { display: flex; align-items: center; gap: 6px; } .steps span i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-style: normal; }
.steps span.on { color: var(--fg); } .steps span.on i { background: var(--grad); color: #fff; } .steps span.done i { background: var(--ok); color: #fff; }
.steps hr { flex: 1; border: 0; border-top: 2px dashed var(--line); margin: 0; }
.radar { position: relative; border-radius: 18px; background: var(--surface-2); overflow: hidden; aspect-ratio: 16 / 11; }
.radar canvas { width: 100%; height: 100%; display: block; }
.radar .tag { position: absolute; left: 12px; top: 12px; }
.loc-status { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.loc-status .dot { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.loc-status.ok .dot { background: var(--ok-soft); color: var(--ok); } .loc-status.bad .dot { background: var(--bad-soft); color: var(--bad); }
.loc-status b { display: block; line-height: 1.25; } .loc-status small { color: var(--muted); }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 3px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--grad); border-radius: 6px; transition: width .4s ease; }
.cam { position: relative; border-radius: 18px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: max(180px, min(56dvh, calc(94dvh - 296px))); margin: 0 auto; width: 100%; }
.cam video, .cam img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam video { transform: scaleX(-1); }
.cam.shot { aspect-ratio: auto; max-height: none; } .cam.shot img { height: auto; max-height: max(160px, min(56dvh, calc(94dvh - 304px))); object-fit: contain; }
.cam .guide { position: absolute; inset: 9% 17% 22%; border: 3px dashed rgba(255,255,255,.75); border-radius: 50%; pointer-events: none; }
.cam .code { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .1em; }
.shutter { width: 68px; height: 68px; border-radius: 50%; border: 4px solid var(--line); background: var(--grad); cursor: pointer; margin: 0 auto; display: block; transition: transform .12s; } .shutter:active { transform: scale(.9); } .shutter:disabled { opacity: .4; }
.result { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 8px 0; }
.check { width: 92px; height: 92px; }
.check circle { fill: none; stroke: var(--ok); stroke-width: 5; stroke-dasharray: 265; stroke-dashoffset: 265; animation: draw .6s ease forwards; transform: rotate(-90deg); transform-origin: center; }
.check path { fill: none; stroke: var(--ok); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .4s ease .5s forwards; }
.check.bad circle, .check.bad path { stroke: var(--bad); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.result .big { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }

/* ---------- Toast ---------- */
#toasts { pointer-events: none; position: fixed; z-index: 120; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); animation: toast-in .3s cubic-bezier(.2, .9, .3, 1.2) both; }
.toast.err { background: var(--bad); color: #fff; } .toast.good { background: var(--ok); color: #fff; }
:root[data-theme="dark"] .toast.err, :root[data-theme="dark"] .toast.good { color: #14110e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast.err, :root:not([data-theme="light"]) .toast.good { color: #14110e; } }
.toast.bye { opacity: 0; transform: translateY(10px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }

/* ---------- Responsif ---------- */
@media (max-width: 1180px) { .cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .auth { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .topbar img { width: 38px; height: 32px; object-fit: contain; } .topbar b { flex: 1; font-weight: 800; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main { padding: 18px max(16px, env(safe-area-inset-right, 0px)) calc(96px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .tabbar { display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabbar a { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 2px; padding: 7px 2px; border-radius: 12px; font-size: .66rem; font-weight: 700; color: var(--muted); text-decoration: none; position: relative; }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar a.on { color: var(--brand-ink); background: var(--brand-soft); }
  .tabbar a .badge { position: absolute; top: 3px; left: 54%; min-width: 16px; height: 16px; border-radius: 8px; background: var(--brand-2); color: #fff; font-size: .62rem; display: grid; place-items: center; padding: 0 4px; }
  #toasts { right: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  h1 { font-size: 1.35rem; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-back { place-items: end center; padding: 0; }
  .modal, .modal.wide { width: 100%; border-radius: 22px 22px 0 0; max-height: 94dvh; --mt: 18px; --mr: max(16px, env(safe-area-inset-right, 0px)); --ml: max(16px, env(safe-area-inset-left, 0px)); padding: 0 var(--mr) calc(20px + env(safe-area-inset-bottom, 0px)) var(--ml); animation: sheet .3s cubic-bezier(.2, .9, .3, 1) both; }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
}
@media (max-width: 520px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } .photos2 { grid-template-columns: 1fr 1fr; } .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero { padding: 20px; border-radius: 20px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* ---------- Tambahan: aplikasi Android, akses dari HP, lupa absen pulang ---------- */
.linkbtn { background: none; border: 0; padding: 6px 8px; font: inherit; font-weight: 700; color: var(--brand); text-decoration: underline; cursor: pointer; }
.splash-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.splash-text { max-width: min(320px, 82vw); text-align: center; }
.photo-wrap { overflow: auto; max-height: 72dvh; border-radius: 14px; cursor: zoom-in; overscroll-behavior: contain; }
.photo-wrap.zoomed { cursor: zoom-out; } .photo-wrap.zoomed .photo-view { width: 220%; max-width: none; border-radius: 0; }
.fp { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.fp.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .84rem; letter-spacing: .03em; }
.shiftbox.one { grid-template-columns: minmax(0, 1fr); max-width: 220px; }
.fold > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; } .fold > summary::-webkit-details-marker { display: none; }
.fold > summary .ic { width: 18px; height: 18px; flex: none; color: var(--brand); } .fold[open] > summary { margin-bottom: 12px; }
.perm-btn { display: block; margin-top: 8px; }
.banner > .btn { flex: none; align-self: center; }
/* Di dalam aplikasi Android: terasa seperti aplikasi, bukan halaman web (teks antarmuka tidak ikut terblok saat ditekan lama). */
html.native { -webkit-tap-highlight-color: transparent; } html.native body { -webkit-user-select: none; user-select: none; }
html.native input, html.native textarea, html.native .fp, html.native .lv-reason, html.native .kv dd { -webkit-user-select: text; user-select: text; }
@media (max-width: 860px) { .rc-acts .btn.sm, .lv-foot .btn.sm, .modal-foot .btn { min-height: 40px; } .pop-head button { width: 42px; height: 42px; } }

/* Kolom kata sandi dengan tombol mata di kanan (formulir Ganti kata sandi) */
.pwf { position: relative; display: block; } .pwf .input { padding-right: 52px; }
