/* Hybrid:A — daily attendance. Native CSS, light surfaces, one green accent. */
:root {
  color-scheme: light;
  --bg-0: #f5f7f5;
  --surface: #fff;
  --surface-dim: #edf1ee;
  --border: #dbe3dd;
  --border-strong: #dbe3dd;
  --accent: #067a4d;
  --accent-soft: #e7f5ee;
  --accent-2: #0a66a8;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --warn: #805400;
  --warn-soft: #fbf1dc;
  --text: #182b22;
  --text-dim: #52645a;
  --text-faint: #64756b;
  --radius: 20px;
  --radius-sm: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; }
body, button, input, select, textarea { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
[hidden] { display: none !important; }
body { background: var(--bg-0); color: var(--text); max-width: 1000px; margin: 0 auto; min-height: 100dvh; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
header { display: flex; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--border); }
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.8px; }
.brand b { color: var(--accent); }
.net { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.net.online { color: var(--accent); background: var(--accent-soft); }
.net.offline { color: var(--danger); background: var(--danger-soft); }
main { padding: 28px; }
h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -1.5px; font-weight: 750; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .5px; margin-bottom: 14px; }
#view-groups { max-width: 780px; margin: 0 auto; padding-top: 52px; }
.group-intro { position: relative; padding-right: 96px; }
.group-intro > p:last-child { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin-top: 16px; }
.group-mascot { position: absolute; right: 0; top: 15px; object-fit: contain; }
.group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
.group-option { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 16px; min-height: 160px; padding: 20px; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; text-decoration: none; color: var(--text); transition: border-color .16s, background .16s, transform .16s; }
.group-option:hover { border-color: var(--accent); background: #f0f8f3; transform: translateY(-2px); }
.group-option:active { transform: translateY(0); }
.group-mark { display: flex; align-items: center; justify-content: flex-start; width: calc(100% - 12px); height: 76px; }
.group-mark img { display: block; width: 144px; max-width: 100%; height: 76px; object-fit: contain; object-position: left center; }
.group-mark img[src$="/safarikura.png"] { width: 100px; height: 100px; margin-left: -12px; }
.group-wordmark { color: var(--text); font-size: 25px; font-weight: 800; letter-spacing: -1px; }
.group-name { font-weight: 650; font-size: 16px; line-height: 1.4; }
.group-arrow { position: absolute; right: 18px; bottom: 18px; color: var(--accent); font-size: 20px; }
.group-help { color: var(--text-dim); font-size: 13px; margin-top: 26px; }
.group-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 28px 0; }
.group-context .group-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.group-identity > div { display: flex; flex-direction: column; gap: 4px; }
#active-group-logo { width: 64px; height: 48px; object-fit: contain; flex-shrink: 0; }
.group-context span { font-size: 11px; color: var(--text-dim); }
.group-context strong { font-size: 16px; }
.group-context a { display: flex; align-items: center; min-height: 44px; font-size: 13px; text-underline-offset: 4px; }
.camera-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: center; }
.camera-intro { padding: 8px 12px 8px 0; }
.camera-lead { color: var(--text-dim); font-size: 16px; line-height: 1.6; max-width: 260px; margin-top: 16px; }
.mascot-wrap { margin-top: 24px; }
.mascot-stage { position: relative; width: 64px; height: 64px; }
.mascot-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mascot-blink { display: none; }
.mascot-caption { font-size: 13px; line-height: 1.6; color: var(--text-dim); margin-top: 12px; max-width: 285px; }
.cam-wrap { position: relative; width: 100%; height: 440px; min-height: 320px; overflow: hidden; border: 1px solid var(--border); border-radius: 28px; background: var(--surface-dim); isolation: isolate; }
#video, .cam-photo { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.cam-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; background: #eaf0ec; }
.camera-guide { position: relative; width: 108px; height: 136px; border: 1.5px solid #91b5a0; border-radius: 48% 48% 44% 44%; margin-bottom: 4px; }
.camera-guide span { position: absolute; inset: 14px; border: 1px solid #bfcec4; border-radius: inherit; }
.cam-ph-text { color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.btn-cam-on { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 52px; padding: 14px 22px; border: 0; border-radius: 14px; background: var(--accent); color: white; cursor: pointer; font-size: 15px; font-weight: 650; }
.btn-cam-on:hover { background: #056540; }
.btn-cam-on span { font-size: 20px; }
.cam-ph-hint { font-size: 12px; color: var(--text-dim); }
.cam-hud { position: absolute; inset: 22px 28px 90px; pointer-events: none; display: none; align-items: center; justify-content: center; }
.state-scanning .cam-hud, .state-detected .cam-hud { display: flex; }
.face-guide { width: 75%; height: 90%; border: 2px solid rgba(255,255,255,.9); border-radius: 48% 48% 44% 44%; box-shadow: 0 0 0 100vmax rgba(9,29,19,.16); transition: border-color .2s; }
.state-detected .face-guide { border-color: #65e5a6; }
.cam-status { position: absolute; bottom: 14px; left: 14px; right: 14px; border-radius: 14px; padding: 13px 14px; background: rgba(255,255,255,.96); color: var(--text); font-size: 13px; line-height: 1.5; text-align: center; z-index: 2; }
.cam-status.ok { color: var(--accent); background: #ecfaf1; }
.btn-cam-retry { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--border); background: white; color: var(--text); font-size: 24px; cursor: pointer; z-index: 3; }
#update-banner { display: block; width: 100%; border: 0; background: var(--accent-soft); color: var(--accent); font-size: 13px; padding: 14px; cursor: pointer; }
.camera-layout > .sesi-banner { grid-column: 1 / -1; grid-row: 1; }
.camera-layout:has(#cam-wrap[hidden]) { grid-template-columns: 1fr; }
.camera-intro:has(.state-profile) > h1, .camera-intro:has(.state-profile) > .eyebrow, .camera-intro:has(.state-profile) > .camera-lead { display: none; }
#view-register { max-width: 580px; margin: 0 auto; }
#view-register .cam-wrap { margin-bottom: 24px; }
@media (max-width: 700px) {
  header { padding: 12px 20px; }
  main { padding: 20px; }
  #view-groups { padding-top: 32px; }
  .group-intro { padding-right: 65px; }
  .group-mascot { width: 60px; height: 60px; }
  .group-grid { gap: 10px; margin-top: 26px; }
  .group-option { gap: 14px; padding: 16px; min-height: 152px; }
  .group-name { width: 100%; padding-right: 16px; font-size: 15px; }
  .group-arrow { right: 12px; bottom: 16px; }
  .group-context { padding: 18px 20px 0; }
  .camera-layout { grid-template-columns: 1fr; gap: 18px; }
  .camera-intro { position: relative; padding: 0; }
  .camera-intro > h1 br { display: none; }
  .camera-intro > h1 { padding-right: 58px; font-size: 28px; letter-spacing: -1px; }
  .camera-intro .eyebrow { display: none; }
  .camera-lead { font-size: 14px; margin-top: 8px; max-width: none; padding-right: 60px; }
  .profile-header:not(.state-profile) { position: absolute; right: 0; top: 0; }
  .profile-header:not(.state-profile) .mascot-wrap { margin: 0; }
  .profile-header:not(.state-profile) .mascot-stage { width: 52px; height: 52px; }
  .mascot-caption { max-width: none; font-size: 12px; margin-top: 12px; }
  .cam-wrap { height: clamp(330px, 49dvh, 440px); }
  .camera-guide { width: 90px; height: 110px; }
}
@media (max-width: 360px) {
  main { padding: 16px; }
  .group-name { font-size: 14px; }
  .group-intro { padding-right: 48px; }
  .group-mascot { width: 45px; height: 45px; }
  h1 { font-size: 29px; }
}

.who { margin: 14px 0 4px; text-align: center; }
.who-nama {
  font-size: 19px; font-weight: 800; color: var(--text);
}
.who-nama::before{ content: none; color: var(--text-faint); font-weight: 500; }
.who-info { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

.card {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 12px;
  position: relative;
  box-shadow: none;
}
.cabang-label {
  font-weight: 700; margin-bottom: 12px; color: var(--accent);
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .8px;
}
.cabang-label::before{ content: "# "; color: var(--text-faint); }

.shift-list label {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 8px; font-size: 14.5px;
  background: var(--surface);
  transition: border-color .1s, background .1s;
  min-height: 52px;
  position: relative;
  cursor: pointer;
}
.shift-list label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: none;
}
/* radio disembunyikan — seluruh kartu jadi area tap, centang muncul di kanan */
.shift-list input { position: absolute; opacity: 0; pointer-events: none; }
.shift-list .sh-nama { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift-list .sh-jam {
  flex-shrink: 0; font-size: 13px; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px;
  background: var(--bg-0); font-variant-numeric: tabular-nums;
}
.shift-list label:has(input:checked) .sh-jam { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.shift-list label:has(input:checked) .sh-nama::after { content: " ✓"; color: var(--accent); }

.flex-timer {
  font-size: 13.5px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

/* info GPS di layar pilih shift / pulang (kamera sudah ditutup) */
.gps-info {
  margin-top: 8px; font-size: 12.5px; color: var(--text-dim);
  font-variant-numeric: tabular-nums; line-height: 1.5;
}
.gps-info a { color: var(--text-dim); text-decoration: underline; }
.gps-info .gps-akurasi { color: var(--text-faint); }
.gps-info .gps-ok  { color: var(--accent); }
.gps-info .gps-bad { color: #b3382f; }
.rescan-link {
  display: inline-block; margin-top: 6px; font-size: 12.5px;
  color: var(--text-faint); text-decoration: underline;
}

/* panel info ⓘ — cara kerja & aturan untuk karyawan */
.btn-info {
  width: 44px; height: 44px; margin: 0 0 0 auto; padding: 0;
  background: none; border: none; box-shadow: none; cursor: pointer;
  font-size: 20px; color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .2s, color .2s;
}
.btn-info::before { content: none; }
.btn-info:hover { background: var(--surface-dim); color: var(--text); }
.btn-info:active { transform: scale(0.92); }
.info-panel {
  position: fixed; inset: 0; z-index: 900; background: rgba(14,19,16,.55);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.info-box {
  background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: none;
  padding: 18px; width: 100%; max-width: 430px; max-height: 82vh; overflow-y: auto;
  font-size: 13.5px; line-height: 1.55;
}
.info-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 15px; }
.info-head button {
  width: auto; min-height: 0; margin: 0; padding: 4px 10px; background: none;
  border: none; box-shadow: none; font-size: 16px; color: var(--text-dim); cursor: pointer;
}
.info-head button::before { content: none; }
.info-sec { margin: 14px 0 6px; color: var(--accent); font-weight: 700; }
.info-list { margin: 0; padding-left: 20px; }
.info-list li { margin-bottom: 6px; }

/* banner sesi check-in yang masih terbuka */
.sesi-banner {
  background: var(--accent-soft); border: 1.5px solid var(--accent);
  border-radius: var(--radius); padding: 14px; margin-top: 12px;
  box-shadow: none;
  font-size: 14px; line-height: 1.5;
}
.sesi-banner .sesi-durasi { font-size: 12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.sesi-banner .sesi-telat { color: var(--warn, #8a5a00); font-weight: 700; }
.sesi-banner .btn { margin-top: 10px; }
/* Ringkasan telat/lembur/flex di kartu hasil absen */
.hasil-daftar { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border, #dcdfda); text-align: left; }
.hasil-daftar span { font-size: 13px; color: var(--text-dim); }
/* Panel status karyawan bulan ini (di layar "who") */
.bulan-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
  text-align: left;
}
.bulan-panel .bp-head {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-dim);
  margin-bottom: 12px;
  letter-spacing: .6px;
  text-transform: uppercase;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 6px;
  font-family: inherit;
}
.bulan-panel .bp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.bulan-panel .bp-stats.has-flex {
  grid-template-columns: repeat(4, 1fr);
}
.bulan-panel .bp-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 0;
}
.bulan-panel .bp-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  font-family: inherit;
}
.bulan-panel .bp-stat-lbl {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2px;
}
.bulan-panel .bp-stat-item.stat-telat .bp-stat-val {
  color: var(--warn);
}
.bulan-panel .bp-stat-item.stat-lembur .bp-stat-val {
  color: var(--accent);
}
.bulan-panel .bp-pending {
  font-size: 9px;
  color: var(--warn);
  font-weight: 700;
  display: block;
  margin-top: 1px;
  font-family: inherit;
}
/* Kerja Luar Shift toggle */
.kls-block { margin: 8px 0; }
.kls-block .chk { font-size: 13px; }
#kls-fields { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }

input, textarea {
  width: 100%; padding: 13px 12px; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm); font-size: 15px; margin-bottom: 10px;
  background: var(--surface); color: var(--text);
  min-height: 48px;
}
textarea { min-height: 76px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
input:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: none;
}

.btn {
  width: 100%; padding: 15px 14px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  cursor: pointer; transition: transform .08s, opacity .15s, box-shadow .08s, background-color .2s ease;
  background: var(--surface); color: var(--text);
  min-height: 52px;
}
@media (hover: hover) {
  .btn:hover:not(:disabled) {
    transform: translate(-1px, -1px);
    box-shadow: none;
  }
  .btn.green:hover:not(:disabled) {
    background: #1a231f;
    box-shadow: none;
  }
  .btn.red:hover:not(:disabled) {
    background: #1a231f;
    box-shadow: none;
  }
}
.btn::before{ content: none; }
.btn:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: none; }
.btn.red:active:not(:disabled) { box-shadow: none; }
.btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }
.btn.green {
  background: var(--text); color: var(--accent-soft);
  border-color: var(--text);
  box-shadow: none;
}
.btn.red {
  background: var(--text); color: #ffe3df;
  border-color: var(--text);
  box-shadow: none;
}
.row { display: flex; gap: 10px; }
.half { width: 50%; }

.warn {
  background: var(--warn-soft); border: 1.5px solid var(--warn);
  color: var(--warn); padding: 11px; border-radius: var(--radius-sm);
  font-size: 12.5px; margin-bottom: 10px;
}
.warn::before{ content: "! "; font-weight: 700; }
.warn input {
  margin-top: 8px; margin-bottom: 0;
  background: rgba(255, 255, 255, 0.4);
  border-color: var(--warn);
  color: var(--warn);
  transition: all .2s;
}
.warn input:focus {
  background: var(--surface);
  border-color: var(--warn);
  box-shadow: none;
  color: var(--text);
}
.warn input::placeholder {
  color: rgba(138, 90, 0, 0.5);
}

.chk { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin-bottom: 10px; color: var(--text); }
.chk input { width: auto; margin: 2px 0 0; accent-color: var(--accent); }
.consent { font-size: 12px; color: var(--text-dim); margin-top: 10px; }

.pin-link, .reg-link { text-align: center; margin-top: 16px; font-size: 12.5px; }
.pin-link a, .reg-link a { color: var(--accent); text-decoration: none; }
.pin-link a::before, .reg-link a::before{ content: none; color: var(--text-faint); }
.pin-link a:hover, .reg-link a:hover { text-decoration: underline; }

.hint { font-size: 12.5px; color: var(--text-dim); margin-bottom: 10px; line-height: 1.5; }
.reg-count {
  text-align: center; font-weight: 700; margin-bottom: 10px; color: var(--accent);
  letter-spacing: .3px; font-size: 13px;
}

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--bg-0); padding: 11px 16px; border-radius: var(--radius-sm);
  font-size: 13px; max-width: 90%; z-index: 50;
  border: 1.5px solid var(--text);
}

.result {
  position: fixed; inset: 0; background: rgba(14,19,16,.4);
  z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.result-box {
  background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: var(--radius); padding: 28px 22px; text-align: center;
  width: 100%; max-width: 340px;
  box-shadow: none;
}
.result-icon {
  font-size: 38px; margin-bottom: 10px; color: var(--accent);
}
#result-text { font-size: 14px; margin-bottom: 20px; line-height: 1.5; color: var(--text); }

/* footer brand mark */
.brand-footer {
  text-align: center; padding: 20px 16px 28px;
  font-size: 11px; letter-spacing: .3px; color: var(--text-faint);
  position: relative; z-index: 1;
}
.brand-footer::before{ content: none; }
.brand-footer b {
  color: var(--text-dim); font-weight: 700;
}
.brand-footer .mark {
  font-weight: 800; color: var(--accent);
}
.powered-by {
  margin-top: 6px; font-size: 10.5px; color: var(--text-faint);
}
.powered-by::before{ content: none; }
.powered-by b { color: var(--text-dim); font-weight: 700; }

/* ---- responsif layar HP kecil ---- */
@media (max-width: 380px) {
  main { padding: 12px; }
  header { padding: 12px 14px; }
  .brand { font-size: 14px; }
  .mascot-stage { width: 100px; height: 94px; }
  .cam-wrap { --cam-h: 42vh; }
  .card { padding: 12px; }
  .btn { padding: 14px 12px; font-size: 13.5px; }
  .who-nama { font-size: 17px; }
}

/* ---- landscape / layar pendek ---- */
@media (max-height: 620px) {
  .mascot-wrap { display: none; }
  .cam-wrap { --cam-h: 52vh; }
}

/* ---- Profile header layout split (Success Scan state) ---- */
.profile-header {
  display: block;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 8px;
}
.profile-header.state-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 14px 18px;
  background: var(--surface);
  box-shadow: none;
  margin-top: 6px;
}
.profile-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.profile-nama {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}
.profile-nama::before {
  content: none;
  color: var(--accent);
}
.profile-meta {
  font-size: 12.5px;
  color: var(--text-dim);
  font-family: inherit;
}
.profile-status {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.4;
}

/* Override mascot sizes in profile view */
.profile-header.state-profile .mascot-wrap {
  margin-bottom: 0;
  flex-shrink: 0;
}
.profile-header.state-profile .mascot-stage {
  width: 76px;
  height: 72px;
}

@media (max-width: 380px) {
  .profile-header.state-profile {
    padding: 10px 14px;
  }
  .profile-nama {
    font-size: 17px;
  }
  .profile-meta {
    font-size: 11px;
  }
  .profile-header.state-profile .mascot-stage {
    width: 64px;
    height: 60px;
  }
}

/* ---- PWA KLS (Kerja Luar Shift) Neo-Brutalist Card ---- */
.kls-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 14.5px;
  background: var(--surface);
  transition: border-color .1s, background .1s, box-shadow .1s;
  min-height: 52px;
  position: relative;
  cursor: pointer;
  width: 100%;
}
.kls-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: none;
  color: var(--text);
}
.kls-card input { position: absolute; opacity: 0; pointer-events: none; }
.kls-card .kls-title { font-weight: 700; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.kls-card:has(input:checked) .kls-title::after { content: " ✓"; color: var(--accent); }
.kls-card .kls-badge {
  flex-shrink: 0; font-size: 11px; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px;
  background: var(--bg-0); text-transform: uppercase; font-weight: 800;
  letter-spacing: .3px;
}
.kls-card:has(input:checked) .kls-badge {
  border-color: var(--accent); color: var(--accent); background: var(--surface);
}

@media (max-width: 380px) {
  .kls-card {
    padding: 10px 12px;
    font-size: 13px;
  }
  .kls-card .kls-title {
    font-size: 12.5px;
  }
}

/* Shared interaction and small-screen finishing rules. */
.profile-header { text-align: left; }
.profile-header.state-profile { margin: 0; padding: 18px; }
.profile-header.state-profile .mascot-wrap { margin-top: 0; }
.profile-header.state-profile + .mascot-caption { padding-left: 0; }
.card, .bulan-panel, .info-box, .result-box { border-width: 1px; }
.btn { border-radius: 12px; letter-spacing: 0; font-family: inherit; }
input, textarea, select { font-size: 16px; }
.shift-list label:focus-within, .kls-card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.reg-link a, .pin-link a, .rescan-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* CAPO: 70% of the original picker logo, anchored left. */
.group-mark img[src$="/capo.svg"] { transform: scale(.7); transform-origin: left center; }
.group-mark img[src$="/cakman.png"] { transform: scale(.8); transform-origin: left center; }
.split-timeline {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0;list-style:none;padding:0;}
.split-timeline li {border:1px solid var(--border);border-radius:12px;padding:10px;font-size:13px;}
.split-timeline .complete {background:#e7f5ed;}
