:root {
  --primary: #e8501a;
  --primary-dark: #c43f0f;
  --bg: #fdf3ec;        /* semu oranye lembut, enak di mata */
  --soft: #fde4d4;      /* aksen oranye muda untuk kartu statistik */
  --card: #ffffff;
  --text: #2b2320;
  --muted: #8a6f63;
  --border: #f3d6c4;
  --success: #16a34a;
  --danger: #dc2626;
  --nav-h: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); font-size: 15px;
  -webkit-tap-highlight-color: transparent;
}
.hidden, [hidden] { display: none !important; }
.view { min-height: 100vh; }

/* ===== AUTH ===== */
#view-auth { display: flex; align-items: center; justify-content: center; padding: 20px;
  background: linear-gradient(160deg, var(--primary) 0%, #f97316 100%); }
.auth-box { background: var(--card); width: 100%; max-width: 400px; border-radius: 16px;
  padding: 28px 22px; box-shadow: 0 10px 30px rgba(0,0,0,.2); text-align: center; }
  .logo { width: 96px; height: 96px; object-fit: contain; display: block; margin: 0 auto 6px; }
  .tagline { color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: 1.5px;
    text-transform: uppercase; margin: -2px 0 8px; }
    .brand-logo { width: 26px; height: 26px; object-fit: contain; vertical-align: middle;
      margin-right: 4px; background: #fff; border-radius: 50%; padding: 2px; }
.auth-box h1 { font-size: 30px; letter-spacing: 2px; color: var(--primary); margin: 4px 0 0px; }
.sub { color: var(--muted); font-size: 13px; line-height: 1.4; margin-bottom: 18px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.hint { font-size: 12px; color: var(--muted); text-align: center; }

/* ===== FORM ===== */
input, select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; background: #fff; color: var(--text); }
input:focus, select:focus { outline: 2px solid var(--primary); border-color: transparent; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--text); line-height: 1.4; }
label.check input { width: 20px; height: 20px; margin-top: 1px; }
select.full { margin-bottom: 12px; }
form.card { display: flex; flex-direction: column; gap: 12px; }

.btn { padding: 12px 16px; border: none; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; background: #e5e7eb; color: var(--text); transition: .15s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); }
.btn.danger { background: var(--danger); color: #fff; }
#btn-logout { width: 100%; margin-top: 12px; }
.btn.big { width: 100%; padding: 16px; font-size: 17px; margin: 14px 0; }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn.success { background: var(--success); color: #fff; }
.icon-btn { background: rgba(255,255,255,.2); border: none; color: #fff; font-size: 20px;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }

/* ===== TABS & CHIPS ===== */
.tabs { display: flex; background: #e5e7eb; border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.tab { flex: 1; padding: 10px; border: none; background: transparent; border-radius: 8px;
  font-weight: 600; color: var(--muted); cursor: pointer; }
.tab.active { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff;
  font-size: 13px; cursor: pointer; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== LAYOUT APP ===== */
.topbar { position: sticky; top: 0; z-index: 10; background: linear-gradient(135deg, #e8501a, #f97316); color: #fff;
  padding: 14px 18px; display: flex; justify-content: space-between; align-items: center;
  padding-top: calc(14px + env(safe-area-inset-top)); }
.brand { font-weight: 700; font-size: 18px; letter-spacing: 1px; }
main { padding: 18px 16px calc(var(--nav-h) + 24px); max-width: 640px; margin: 0 auto; }
.page h2 { font-size: 22px; margin-bottom: 14px; }
.card { background: var(--card); border-radius: 14px; padding: 16px; margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.card h3 { font-size: 15px; margin-bottom: 10px; color: var(--muted); }

/* ===== LIST ITEMS ===== */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { background: var(--card); border-radius: 12px; padding: 14px; display: flex;
  justify-content: space-between; align-items: center; gap: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.item .info { flex: 1; min-width: 0; }
.item .title { font-weight: 600; }
.item .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.item .value { font-weight: 700; color: var(--primary); white-space: nowrap; }
.item .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.item.has-actions { align-items: flex-start; flex-wrap: wrap; }
.item.has-actions .info { flex: 1 1 220px; }
.item.has-actions .actions { flex: 0 1 auto; margin-top: 0; }
.item .title, .item .meta { overflow-wrap: anywhere; line-height: 1.5; }
.absence-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; }
.absence-item > .btn { width: auto; margin: 0; white-space: nowrap; }
.absence-item .absence-date { display: block; margin: 7px 0 3px; }
.absence-item .absence-note { white-space: pre-wrap; margin-bottom: 4px; }
.schedule-meta { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.schedule-meta + .schedule-meta { border-top: 1px dashed var(--border); padding-top: 6px; }
.schedule-meta .schedule-note { white-space: pre-wrap; }
.schedule-meta strong { color: var(--text); }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row > label { flex: 1 1 160px; min-width: 0; }
.schedule-dialog { width: min(520px,calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 22px; border: 1px solid var(--border); border-radius: 16px; color: var(--text); overflow: auto; }
.schedule-dialog::backdrop { background: #241a1466; }
.schedule-dialog form { display: flex; flex-direction: column; gap: 14px; }
.schedule-dialog h2 { font-size: 20px; }
.schedule-dialog .dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }
.empty { text-align: center; color: var(--muted); padding: 20px; font-size: 14px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.badge.bpbd { background: #dbeafe; color: #1d4ed8; }
.badge.basarnas { background: #ffedd5; color: #c2410c; }
.badge.partial { background: #fef3c7; color: #b45309; }
.rank { width: 34px; height: 34px; border-radius: 50%; background: #e5e7eb; display: flex;
  align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.rank.r1 { background: #fbbf24; color: #fff; } .rank.r2 { background: #9ca3af; color: #fff; } .rank.r3 { background: #d97706; color: #fff; }

/* ===== FOTO PROFIL ===== */
.avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; background: var(--soft);
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.14); color: var(--primary);
  font-weight: 800; font-size: 14px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { width: 96px; height: 96px; font-size: 28px; border-width: 3px; }
.profile-main { display: flex; align-items: center; gap: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border); }
.profile-info { min-width: 0; }
.profile-info .title { font-size: 19px; font-weight: 700; margin-bottom: 7px; }
.profile-info .meta { color: var(--muted); margin-top: 6px; }
.profile-info .title { overflow-wrap: anywhere; }
.profile-details { margin: 16px 0; display: grid; gap: 12px; }
.profile-details dt { font-size: 12px; color: var(--muted); }
.profile-details dd { margin: 3px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.about-dialog { text-align: center; line-height: 1.6; }
.about-logo { width: 76px; height: 76px; object-fit: contain; margin-bottom: 8px; }
.about-dialog p { margin-top: 12px; }
.about-dialog .about-version { margin-top: 4px; font-size: 12px; color: var(--muted); }
.about-author strong { font-size: 20px; }
.about-credits { text-align: left; background: var(--soft); padding: 16px; border-radius: 12px; margin-top: 18px; display: grid; gap: 12px; }
.about-credits dt { font-size: 12px; color: var(--muted); }
.about-credits dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.about-thanks { font-weight: 700; color: var(--primary); }
#about-close { margin-top: 18px; width: 100%; }
.profile-photo-form { display: flex; flex-direction: column; gap: 9px; padding-top: 16px; }
.profile-photo-form > label { color: var(--text); }
.photo-help { color: var(--muted); font-size: 12px; line-height: 1.4; }
.photo-actions { display: flex; gap: 8px; }
.photo-actions .btn { flex: 1; }
.btn:disabled { opacity: .65; cursor: wait; }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { text-align: center; background: linear-gradient(135deg, #e8501a, #f97316); border-radius: 10px; padding: 12px 6px; }
.stat b { display: block; font-size: 22px; color: var(--primary); }
.stat span { font-size: 11px; color: var(--muted); }
canvas { width: 100%; }

/* ===== BOTTOM NAV ===== */
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav-h); background: #fff;
  border-top: 1px solid var(--border); display: flex; z-index: 10;
  padding-bottom: env(safe-area-inset-bottom); }
.nav { flex: 1; border: none; background: none; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px; font-size: 22px; color: var(--muted); cursor: pointer; }
.nav span { font-size: 11px; font-weight: 600; }
.nav .nav-info-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 50%; font-size: 16px; line-height: 1; font-family: Georgia, serif; }
.nav.active { color: var(--primary); }

/* ===== MSG & TOAST ===== */
.msg { font-size: 13px; min-height: 18px; text-align: center; }
.msg.ok { color: var(--success); } .msg.err { color: var(--danger); }
.toast { position: fixed; bottom: calc(var(--nav-h) + 16px); left: 50%; transform: translateX(-50%);
  background: #1f2933; color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px;
  z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,.3); max-width: 90%; }

/* ===== KALENDER BERANDA ===== */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; }
.cal-head button { border: none; background: var(--soft); color: var(--primary); width: 32px; height: 32px; border-radius: 8px; font-size: 16px; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 12px; }
.cal-grid .dow { color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal-grid .day { padding: 8px 0; border-radius: 8px; position: relative; min-width: 0; min-height: 42px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.cal-grid .day:hover { border-color: var(--primary); }
.cal-grid .day.selected { outline: 2px solid var(--primary-dark); outline-offset: -2px; }
.cal-grid .day.absent { background: #fff0ef; color: #a62323; }
.cal-grid .day.today.absent { background: var(--primary); color: #fff; }
.calendar-legend { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 10px 0; }
.calendar-details { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 14px; }
.calendar-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.calendar-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.calendar-dialog-head h2 { font-size: 18px; }
.calendar-dialog-head button { flex-shrink: 0; }
.calendar-dialog .calendar-details { overflow-y: auto; min-height: 0; overscroll-behavior: contain; scrollbar-gutter: stable; }
body:has(#calendar-dialog[open]) { overflow: hidden; }
.calendar-details h4 { font-size: 14px; margin-bottom: 10px; }
.calendar-details .calendar-empty { color: var(--muted); font-size: 13px; line-height: 1.6; padding: 8px 0; }
.calendar-session { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-top: 10px; }
.calendar-session h5 { font-size: 14px; }
.calendar-result-summary { border-left: 3px solid var(--primary); border-radius: 6px; background: var(--soft); padding: 10px 12px; font-size: 13px; line-height: 1.6; }
.calendar-result-summary p { font-size: 12px; margin-top: 3px; }
.calendar-results { list-style: none; margin: 10px 0 0; padding: 0; }
.calendar-results li { border-top: 1px solid var(--border); padding: 10px 0; font-size: 12px; }
.calendar-results li:last-child { padding-bottom: 0; }
.calendar-result-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.calendar-result-head strong { min-width: 0; overflow-wrap: anywhere; }
.calendar-result-value { margin-top: 4px; font-weight: 600; }
.calendar-result-note { color: var(--muted); line-height: 1.6; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.cal-grid .day.rejected:not(.today) { background: #fee2e2; color: #991b1b; box-shadow: inset 0 0 0 1px #fca5a5; }
.calendar-absence { border-left: 3px solid var(--danger); background: #fff4f2; border-radius: 6px; padding: 10px 12px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; margin-bottom: 10px; }
.calendar-absence .absence-note { white-space: pre-wrap; }
.calendar-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 0 10px; }
.calendar-tools span { font-size: 11px; color: var(--muted); }
.cal-grid .day.has::after { content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
  .cal-grid .day.done { background: #dcfce7; color: #166534; font-weight: 600; }
  .cal-grid .day.today { background: var(--primary); color: #fff; font-weight: 700; }
  .cal-grid .day.today.has::after { background: #fff; }
  .card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .card-head h3 { margin: 0; }
  .link { background: none; border: none; color: var(--primary); font-weight: 600; font-size: 13px; cursor: pointer; }

  /* ===== FIX KARTU STATISTIK ===== */
  .stat {
    background: var(--soft) !important;   /* oranye muda */
    color: var(--text);
    border: 1px solid var(--border);
  }
  .stat b { color: var(--primary); font-size: 26px; display: block; }
  .stat span { color: var(--muted); font-size: 12px; }

  /* topbar tetap gradasi */
  .topbar { background: linear-gradient(135deg, #e8501a, #f97316) !important; }

  /* ===== FIX LEBAR INPUT ===== */
  *, *::before, *::after { box-sizing: border-box; }
  input, select, textarea, button { max-width: 100%; }

  .badge.st-pending{background:#fef3c7;color:#92400e}
  .badge.st-verified{background:#dcfce7;color:#166534}
  .badge.st-rejected{background:#fee2e2;color:#991b1b}
  .badge.todo{background:#e5e7eb;color:#374151}
  .day.wait{background:#fef3c7;color:#92400e;font-weight:600}

  .seg{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}
  .seg button{padding:6px 10px;border-radius:999px;border:1px solid #d1d5db;background:#fff;font-size:12px}
  .seg button.active{background:#e8501a;color:#fff;border-color:#e8501a}
  .actions{display:flex;gap:6px;margin-top:6px}
  .actions button{padding:5px 10px;border-radius:8px;border:none;font-size:12px;font-weight:600}
  .btn-ok{background:#dcfce7;color:#166534}
  .btn-no{background:#fee2e2;color:#991b1b}
  .btn-undo{background:#e5e7eb;color:#374151}

  .tab .cnt{display:inline-block;min-width:18px;padding:0 5px;margin-left:4px;border-radius:999px;background:#dc2626;color:#fff;font-size:11px;line-height:18px;font-weight:700}
  .tab .cnt[hidden]{display:none}

  .value.g-good{color:#166534}
  .value.g-fair{color:#b45309}
  .value.g-poor{color:#991b1b}
  .value.g-good::after{content:" ●";color:#22c55e}
  .value.g-fair::after{content:" ●";color:#f59e0b}
  .value.g-poor::after{content:" ●";color:#ef4444}

  .legend{font-size:12px;color:#6b7280;margin:4px 0 8px}
  .legend .g-good{color:#22c55e}.legend .g-fair{color:#f59e0b}.legend .g-poor{color:#ef4444}

  .remind{background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:10px;padding:8px 12px;font-size:13px;margin:8px 0}
  .remind[hidden]{display:none}

  /* ===== PAKET KESAMAPTAAN ===== */
  .chips{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
  .chip-sm{background:var(--soft);color:var(--primary);border-radius:6px;padding:2px 8px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;gap:4px}
  .chip-sm .x{border:none;background:none;color:var(--danger);font-size:15px;line-height:1;cursor:pointer;padding:0 0 0 2px}

  /* ===== INPUT SESI & VERIFIKASI SEMUA ===== */
  #input-items{display:flex;flex-direction:column;gap:10px}
  .ingroup{border:1px solid var(--border);border-radius:10px;padding:10px 12px}
  .ingroup h3{font-size:14px;color:var(--text);margin-bottom:6px}
  .ingroup h3 small{color:var(--muted);font-weight:400}
  .inrow{display:flex;flex-direction:column;gap:6px;padding:8px 0;border-top:1px dashed var(--border)}
  .inrow.done{flex-direction:row;justify-content:space-between;align-items:center;font-size:14px}
  .inrow label.check{font-size:12px;color:var(--muted)}
  .inrow label.check input{width:18px;height:18px}
  .grouphead{display:flex;justify-content:space-between;align-items:center;gap:8px;background:var(--soft);border:1px solid var(--border);border-radius:10px;padding:8px 12px;font-size:12px;font-weight:600}

  /* ===== KETIDAKHADIRAN ===== */
  #form-izin{display:flex;flex-direction:column;gap:8px}
  .sub-h{font-size:15px;color:var(--muted);margin:16px 0 8px}
  #summary-list .value small{font-size:12px;color:var(--muted)}

/* ===== BERANDA PERSONAL & PENCAPAIAN ===== */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.avatar { position:relative; }
.avatar img { position:absolute; inset:0; }
#btn-profile { display:flex; align-items:center; justify-content:center; }
#btn-profile .avatar { width:36px; height:36px; font-size:12px; }
.welcome-card { color:#fff; background:linear-gradient(125deg,#b93412,#e8501a 70%,#ed702a); padding:22px; border-radius:20px; margin-bottom:16px; box-shadow:0 6px 18px #c43f0f20; }
.welcome-identity { display:flex; align-items:center; gap:10px; font-size:12px; font-weight:600; margin-bottom:16px; }
.welcome-identity .avatar { width:46px; height:46px; border-color:#ffffff80; }
.welcome-dot { margin:0 5px; opacity:.6; }
.welcome-card h2 { font-size:25px; letter-spacing:-.6px; line-height:1.2; max-width:450px; margin-bottom:8px; overflow-wrap:anywhere; }
.welcome-card p { font-size:13px; color:#fff0e6; line-height:1.5; }
.eyebrow { font-size:11px; font-weight:700; color:var(--muted); letter-spacing:.2px; }
.section-note { color:var(--muted); font-size:12px; line-height:1.55; margin:8px 0 12px; }
.card-head { gap:8px; flex-wrap:wrap; }
.month-card .stat { padding:14px 5px; }
.stat b small { font-size:14px; font-weight:500; color:var(--muted); }
.month-card .section-note { margin-bottom:0; }
.performance-head { display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.performance-value { font-size:32px; font-weight:800; letter-spacing:-.8px; margin:3px 0 10px; color:var(--text); }
.performance-value small { font-size:13px; color:var(--muted); font-weight:500; letter-spacing:0; }
.performance-latest { font-size:13px; line-height:1.6; }
.comparison { margin-top:9px; padding:10px 12px; border-radius:10px; background:var(--bg); color:var(--muted); font-size:13px; line-height:1.5; }
.comparison.improved { background:#e9f5ed; color:#166534; }
.record-tag { font-size:11px; font-weight:700; border-radius:100px; padding:7px 10px; background:#fff4cc; color:#805215; }
.achievement-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.achievement { text-align:center; border:1px solid var(--border); background:#fffaf4; border-radius:14px; padding:15px 10px; }
.achievement-icon { display:block; font-size:28px; line-height:1.4; margin-bottom:8px; }
.achievement h4 { font-size:13px; line-height:1.4; color:var(--text); margin-bottom:6px; }
.achievement p { font-size:11px; color:var(--muted); line-height:1.55; }
.achievement small { display:block; color:#815013; font-size:10px; margin-top:7px; line-height:1.5; }
.achievement.locked { background:#faf9f7; border-color:#ebe6e1; }
.achievement.locked .achievement-icon { filter:grayscale(1); opacity:.65; }
.achievement.locked small { color:var(--muted); }
.achievement-progress { height:4px; background:#e8e2da; overflow:hidden; border-radius:6px; margin-top:12px; }
.achievement-progress span { display:block; height:100%; background:#e69b2e; border-radius:6px; }
.achievement.earned { border-color:#f1d58d; background:linear-gradient(180deg,#fffaf0,#fff); }

/* ===== PODIUM & PERIODE ===== */
.board-filters { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:8px; }
.board-filters label { font-size:11px; }
.board-filters select { padding:10px; font-size:13px; min-width:0; }
.podium { display:grid; grid-template-columns:1fr 1.13fr 1fr; align-items:end; gap:8px; padding:18px 0 0; margin-bottom:14px; }
.podium-place { min-width:0; text-align:center; }
.podium-person { position:relative; padding:14px 6px 12px; background:#fff; border:1px solid #ebe1d6; border-radius:15px 15px 0 0; display:flex; align-items:center; flex-direction:column; gap:5px; }
.podium-person + .podium-person { border-radius:0; border-top:0; }
.podium .avatar { width:56px; height:56px; font-size:18px; margin-top:2px; }
.place-1 .avatar { width:76px; height:76px; font-size:23px; border-color:#edc767; }
.place-1 .podium-person { background:linear-gradient(180deg,#fff8df,#fffdf7); border-color:#edcf87; }
.podium-medal { font-size:24px; line-height:1.2; }
.place-1 .podium-medal { font-size:30px; }
.podium-name { font-size:12px; font-weight:700; line-height:1.45; margin-top:5px; overflow-wrap:anywhere; width:100%; }
.podium-instansi { font-size:10px; color:var(--muted); }
.podium-score { font-size:18px; font-weight:800; line-height:1.15; margin-top:4px; }
.podium-score small { font-size:10px; font-weight:500; color:var(--muted); display:block; margin-top:5px; }
.podium-step { height:44px; border-radius:0 0 12px 12px; background:#e6eaf0; color:#566279; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:800; }
.place-1 .podium-step { height:64px; background:linear-gradient(145deg,#f7d674,#eeb94e); color:#734b0d; }
.place-3 .podium-step { height:28px; background:#f3d3bc; color:#97603b; }
.podium-place.vacant { opacity:.45; }
.podium-vacant { display:block; padding:25px 0; color:var(--muted); }
.is-me { outline:2px solid var(--primary); outline-offset:-2px; }
.board-row.is-me { background:#fff1e5; }
.me-tag { display:inline-block; padding:2px 7px; border-radius:20px; font-size:10px; font-weight:700; color:var(--primary-dark); background:#ffe2cb; vertical-align:middle; }
.board-row { gap:9px; padding:12px; }
.board-row .title { overflow-wrap:anywhere; }
.board-row .value { font-size:16px; text-align:right; }
.board-row .value small { display:block; font-size:10px; color:var(--muted); font-weight:500; margin-top:3px; }
.board-row .value::after { display:none; }
.board-nudge { padding:12px; border-radius:10px; font-size:12px; line-height:1.6; background:var(--soft); color:var(--primary-dark); margin-top:10px; }
.board-empty { padding:25px 12px; line-height:1.7; }
.board-empty > span { display:block; font-size:34px; margin-bottom:8px; }
.board-empty small { display:block; margin-top:7px; }
.profile-info { overflow-wrap:anywhere; }
button:focus-visible { outline:3px solid #193f63; outline-offset:3px; }
@media (max-width:420px) {
  .achievement-grid { grid-template-columns:1fr; }
  .achievement { display:grid; grid-template-columns:38px 1fr; gap:0 10px; text-align:left; padding:12px; }
  .achievement-icon { grid-row:1 / span 4; font-size:26px; margin:0; align-self:center; }
  .achievement h4,.achievement p,.achievement small,.achievement-progress { grid-column:2; }
  .achievement-progress { margin-top:7px; }
  .welcome-card { padding:20px 17px; }
  .board-row { gap:7px; padding:10px; }
  .board-row .rank { width:25px; height:25px; font-size:12px; }
  .board-row .avatar { width:34px; height:34px; font-size:11px; }
  .board-row .value { font-size:14px; }
  .board-row .title { font-size:12px; }
  .podium { gap:5px; }
  .podium .avatar { width:46px; height:46px; }
  .place-1 .avatar { width:61px; height:61px; }
  .podium-person { padding-left:4px; padding-right:4px; }
  .podium-name { font-size:11px; }
  .month-card .stat span { font-size:10px; }
  .month-card .stat b { font-size:23px; }
  .photo-actions { flex-wrap:wrap; }
}
