/* Approver PWA: M1 sampai M8. Ukuran mengikuti PhoneScreen.dc.html. */
body { min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }

.bar { flex: none; height: 56px; padding: 0 8px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 800; white-space: nowrap; }
.back { width: 48px; height: 48px; margin-left: -12px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 24px; background: none; }
.who { padding-right: 8px; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

main { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 8px 16px 24px; }
.screen { display: flex; flex-direction: column; gap: 24px; }
.fill { flex: 1; }
.head { display: grid; gap: 8px; }
.narrow { max-width: 320px; }
h1 { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 17px; font-weight: 600; }
.sub { font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.sub strong { color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-2); }
.bottom-actions { margin-top: auto; width: 100%; display: grid; gap: 8px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form .inline-error { margin-top: -4px; }
.pin-input { letter-spacing: .3em; }
.quiet.wide { width: 100%; }
.quiet.start { align-self: flex-start; padding: 0; }
.btn.fit { width: auto; justify-self: start; min-height: 48px; }

.center { align-items: center; text-align: center; padding-top: 48px; }
.result { padding-top: 64px; }
.result .head h1 { text-wrap: balance; }
.size-96 { width: 96px; height: 96px; }
.size-80 { width: 80px; height: 80px; }
.size-48 { width: 48px; height: 48px; }
.size-40 { width: 40px; height: 40px; }

.progress { display: grid; gap: 8px; }
.progress-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.progress-bars i { height: 4px; border-radius: 2px; background: var(--line); }
.progress-bars i.on { background: var(--accent); }
.visual { height: 128px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.vis-screen { width: 104px; height: 68px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 8px; font-size: 24px; font-weight: 800; }
.vis-phone { width: 48px; height: 84px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 10px; font-weight: 800; color: var(--accent-ink); }
.vis-note { width: 100%; display: flex; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); font-size: 15px; }
.vis-note div { display: grid; gap: 2px; }
.vis-note b { font-weight: 600; }
.vis-note span { color: var(--ink-2); }

.empty { display: grid; gap: 8px; padding: 24px 0; }
.live { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--accent-ink); }
.requests { display: grid; gap: 8px; }
.item { width: 100%; min-height: 72px; padding: 12px 8px 12px 16px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 12px; background: var(--surface); text-align: left; }
.item:hover { background: var(--surface-2); }
.item-main { flex: 1; min-width: 0; display: grid; }
.item-main b { font-weight: 600; }
.item-main small { font-size: 13px; color: var(--ink-2); }
.item-left { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
.history { display: grid; gap: 8px; }
.history li { min-height: 56px; display: flex; align-items: center; gap: 12px; font-size: 15px; }
.history-main { flex: 1; min-width: 0; display: grid; }
.history-main b { font-weight: 600; }
.history-main small, .history-time { font-size: 13px; color: var(--ink-2); }
.history-time { white-space: nowrap; }
.c-ok { color: var(--accent-ink); }
.c-neutral { color: var(--ink); }
.c-bad { color: var(--danger); }
.c-warn { color: var(--warn-ink); }

.skeleton { display: grid; gap: 12px; }
.skeleton i { display: block; height: 16px; border-radius: 6px; background: var(--skeleton); animation: ciPulse 1.4s ease-in-out infinite; }
.skeleton i:nth-child(1) { width: 60%; height: 28px; border-radius: 8px; }
.skeleton i:nth-child(2) { width: 80%; }
.skeleton i:nth-child(3) { width: 50%; }
.skeleton i:nth-child(4) { width: 70%; }
.m3-load-error { display: grid; gap: 12px; }
.context { display: grid; gap: 12px; }
.context-rows { display: grid; gap: 4px; font-size: 15px; }
.context-rows > span { display: flex; align-items: center; gap: 8px; }
.context-rows .strong { font-weight: 600; }
.timer { display: grid; gap: 8px; }
.timer-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-2); }
.timer-row.low { color: var(--warn-ink); font-weight: 600; }
.timer-label { display: flex; align-items: center; gap: 8px; }
.count { font-weight: 600; }

.pick { display: grid; gap: 12px; }
.codes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.code { height: 88px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.code:active:not(:disabled) { background: var(--ink); color: var(--bg); }
.code:disabled { opacity: .5; cursor: not-allowed; }
.pick-hint { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }

.more { border-top: 1px solid var(--line); font-size: 15px; }
.more-toggle { width: 100%; min-height: 48px; display: flex; justify-content: space-between; align-items: center; padding: 0; border: 0; background: none; font-weight: 600; }
.more dl { margin-bottom: 8px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; }
.more dt { color: var(--ink-2); }
.more dd { overflow-wrap: anywhere; }
.decide { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.m4-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.chip { padding: 2px 10px; border-radius: 8px; background: var(--ticket-bg); color: var(--ticket-fg); font-weight: 800; }
.pin-area { display: grid; justify-items: center; gap: 12px; padding: 16px 0; }
.pin-dots { display: flex; gap: 16px; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); }
.pin-dots i.on { background: var(--ink); }
.pin-dots.bad i { border-color: var(--danger); }
.pin-error { font-size: 15px; font-weight: 600; color: var(--danger-text); }
.pin-error.plain { font-weight: 400; }
.keypad { margin-top: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.keypad button { height: 64px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: var(--surface); font-size: 22px; font-weight: 600; }
.keypad button:active { background: var(--line); }
.keypad .del { background: transparent; }
.keypad .blank { visibility: hidden; }
.follow { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }

.toast { position: fixed; z-index: 10; left: 12px; right: 12px; top: calc(env(safe-area-inset-top) + 60px); max-width: 536px; margin: 0 auto; min-height: 64px; padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 16px; background: var(--ticket-bg); color: var(--ticket-fg); box-shadow: var(--shadow); text-align: left; }
.toast-icon { color: var(--toast-accent); }
.toast-text { flex: 1; display: grid; }
.toast-text b { font-size: 15px; font-weight: 600; }
.toast-text span { font-size: 13px; color: var(--toast-soft); }
