/* ============================================================
   Sinsen Dashboard Training and Productivity
   Palet: merah metallic 60% · putih 30% · biru 10%
   ============================================================ */
:root {
  --bg: #08090d;
  --bg-soft: #0d1119;
  --panel: linear-gradient(160deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .022));
  --panel-solid: #11151d;
  --line: rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .055);
  --text: #f3f5f9;
  --muted: #98a1b3;
  --muted-2: #6f7889;
  --red: #d7263d;
  --red-bright: #ff4d5e;
  --red-deep: #7c0f1a;
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, .16);
  --green: #2fbf71;
  --amber: #f0a92b;
  --metal: linear-gradient(135deg, #6e0a14 0%, #a51322 26%, #e2333f 48%, #8e0f1b 72%, #c01e2b 100%);
  --metal-soft: linear-gradient(135deg, rgba(215, 38, 61, .22), rgba(124, 15, 26, .12));
  --radius: 18px;
  --shadow: 0 22px 50px -28px rgba(0, 0, 0, .95);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 560px at 8% -12%, rgba(215, 38, 61, .20), transparent 62%),
    radial-gradient(820px 460px at 96% -6%, rgba(59, 130, 246, .13), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(140, 15, 28, .16), transparent 65%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: #cfe0ff; text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .6rem; }

.muted { color: var(--muted); }
.small { font-size: .82rem; }
.tiny { font-size: .74rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px;
  background: rgba(9, 11, 16, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(150%);
}

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

/* ---------- logo Sinsen (SIN + mark biru/merah + EN) ---------- */
.sid { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sid-word {
  display: inline-flex; align-items: center; gap: 1px;
  font-weight: 800; font-size: 1.06rem; line-height: 1;
  letter-spacing: .1em; color: #9aa1ab;
}
.sid-txt { display: inline-block; }
.sid-mark { height: .98em; width: .7em; flex: none; margin: 0 -1px; }
.sid-tag {
  font-size: .64rem; letter-spacing: .02em; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.sid.big .sid-word { font-size: 2rem; letter-spacing: .11em; }
.sid.big .sid-tag { font-size: .86rem; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; gap: 6px; flex: 1; flex-wrap: wrap; }
.nav a {
  padding: 7px 11px; border-radius: 10px;
  color: var(--muted); font-size: .83rem; font-weight: 500;
  border: 1px solid transparent; transition: .16s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav a.active {
  color: #fff;
  background: var(--metal-soft);
  border-color: rgba(226, 51, 63, .38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.userbox { display: flex; align-items: center; gap: 10px; flex: none; }
.mode-chip {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px; font-weight: 700;
  border: 1px solid rgba(226, 51, 63, .45);
  background: var(--metal-soft); color: #ffd9dd;
  white-space: nowrap;
}
.mode-chip.dealer { border-color: rgba(59, 130, 246, .45); background: var(--blue-soft); color: #d5e6ff; }
.user-name { font-size: .82rem; color: var(--muted); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: rgba(255, 255, 255, .05);
  color: var(--text); border-radius: 10px; padding: 8px 11px; font-size: .9rem; cursor: pointer;
}

/* ---------- layout ---------- */
.wrap { max-width: 1400px; margin: 0 auto; padding: 26px 22px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .eyebrow { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red-bright); font-weight: 700; margin-bottom: 4px; }
.page-head p { color: var(--muted); margin: 4px 0 0; font-size: .87rem; }

.grid { display: grid; gap: 20px; }
/* cegah isi (mis. tabel ber-min-width) melebarkan halaman di layar sempit */
.grid > *, .stack > * { min-width: 0; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid.c-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.stack { display: grid; gap: 20px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- card ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
}
.card.tight { padding: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 9px; }
.card-head .sub { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.card-title-band {
  margin: -22px -22px 20px; padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(215, 38, 61, .17), rgba(215, 38, 61, .02) 55%, transparent);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(215, 38, 61, .2); flex: none; }
.dot.blue { background: var(--blue); box-shadow: 0 0 0 4px rgba(59, 130, 246, .2); }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.kpi {
  position: relative; overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.kpi::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--metal);
}
.kpi.blue::after { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
.kpi .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.kpi .value { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 4px; line-height: 1.1; }
.kpi .value small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.kpi .foot { font-size: .79rem; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kpi .spark { margin-top: 12px; }

/* ---------- progress ---------- */
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: var(--metal); position: relative; }
.bar.blue > span { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.bar.thin { height: 6px; }
.bar-lg { height: 14px; border-radius: 99px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.pill.ok { background: rgba(47, 191, 113, .14); color: #7ee2ab; border-color: rgba(47, 191, 113, .34); }
.pill.warn { background: rgba(240, 169, 43, .14); color: #ffd08a; border-color: rgba(240, 169, 43, .34); }
.pill.low { background: rgba(215, 38, 61, .16); color: #ff9aa5; border-color: rgba(215, 38, 61, .38); }
.pill.none { background: rgba(255, 255, 255, .06); color: var(--muted); border-color: rgba(255, 255, 255, .12); }
.pill.blue { background: var(--blue-soft); color: #bfd8ff; border-color: rgba(59, 130, 246, .4); }

/* ---------- tabel ---------- */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line-soft); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 560px; }
table.tbl th, table.tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tbl thead th {
  font-size: .71rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); font-weight: 700; background: rgba(255, 255, 255, .035);
  position: sticky; top: 0;
}
table.tbl tbody tr:hover { background: rgba(255, 255, 255, .03); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl .name { font-weight: 600; }
table.tbl .sub { display: block; font-size: .74rem; color: var(--muted-2); font-weight: 400; }
/* header matriks program x dealer: nama dealer (bukan kode) */
table.tbl th.sel-dealer {
  width: 92px; min-width: 92px; max-width: 92px;
  font-size: .6rem; letter-spacing: 0; line-height: 1.25;
  text-transform: none; font-weight: 700; text-align: center;
  white-space: normal; word-break: break-word; hyphens: auto;
  vertical-align: bottom; color: #b9c1cf; padding: 8px 5px;
}
table.tbl th.kolom-program {
  min-width: 210px; max-width: 210px;
  position: sticky; left: 0; z-index: 3;
  background: #12161f;
}
/* kolom program ikut menempel saat matriks digeser ke kanan */
table.tbl.matriks tbody td:first-child,
table.tbl.matriks tfoot th:first-child {
  position: sticky; left: 0; z-index: 2;
  background: #0d1119;
  min-width: 210px; max-width: 210px;
  box-shadow: 6px 0 12px -8px rgba(0, 0, 0, .9);
}
table.tbl.matriks tbody tr:hover td:first-child { background: #12161f; }

.mini-bar { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.mini-bar .bar { flex: 1; }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 17px; border-radius: 11px; font-size: .86rem; font-weight: 600;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--text);
  cursor: pointer; transition: .16s; font-family: inherit; text-decoration: none;
}
.btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn.primary {
  background: var(--metal); border-color: rgba(255, 255, 255, .16); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 12px 26px -14px rgba(215, 38, 61, .95);
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.blue { background: linear-gradient(135deg, #1d4ed8, #3b82f6); border-color: rgba(255, 255, 255, .14); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 12px; font-size: .78rem; border-radius: 9px; }
.btn.danger { border-color: rgba(215, 38, 61, .5); color: #ff9aa5; background: rgba(215, 38, 61, .12); }
.btn.danger:hover { background: rgba(215, 38, 61, .22); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- form ---------- */
.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field label { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.field .hint { font-size: .74rem; color: var(--muted-2); }
input[type=text], input[type=password], input[type=file], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 11px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  color: var(--text); font-size: .88rem; font-family: inherit; transition: .16s;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(226, 51, 63, .6);
  box-shadow: 0 0 0 3px rgba(215, 38, 61, .16); background: rgba(255, 255, 255, .07);
}
select option { background: #12161f; color: var(--text); }
input[type=file] { padding: 9px 12px; }
input[type=file]::file-selector-button {
  background: var(--metal); color: #fff; border: none; padding: 7px 12px;
  border-radius: 8px; margin-right: 12px; font-family: inherit; font-size: .8rem; cursor: pointer;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; }
.filter-bar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filter-bar .field { margin-bottom: 0; min-width: 165px; }

/* ---------- alert ---------- */
.alert {
  padding: 13px 16px; border-radius: 12px; font-size: .85rem; margin-bottom: 16px;
  border: 1px solid; display: flex; gap: 10px; align-items: flex-start;
}
.alert.ok { background: rgba(47, 191, 113, .1); border-color: rgba(47, 191, 113, .32); color: #b6f0cf; }
.alert.err { background: rgba(215, 38, 61, .12); border-color: rgba(215, 38, 61, .38); color: #ffc2c9; }
.alert.info { background: var(--blue-soft); border-color: rgba(59, 130, 246, .35); color: #cfe2ff; }
.alert.warn { background: rgba(240, 169, 43, .1); border-color: rgba(240, 169, 43, .32); color: #ffe0ac; }

/* ---------- login ---------- */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 30px; padding: 34px; max-width: 1440px; margin: 0 auto; align-content: center;
}
.auth-left { display: grid; gap: 22px; align-content: start; }
.auth-brand { display: flex; align-items: center; gap: 16px; }
.hero-copy { max-width: 620px; color: var(--muted); font-size: .9rem; }
.auth-right { align-self: start; }
.login-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .025));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 22px; padding: 28px;
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(22px) saturate(150%);
  position: relative; overflow: hidden;
}
.login-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--metal);
}
.login-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.login-hint { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .76rem; color: var(--muted-2); line-height: 1.7; }
.login-hint code { background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 5px; color: #ffd9dd; font-size: .74rem; }

/* ---------- kalender ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-head .title { font-weight: 700; font-size: 1rem; letter-spacing: .01em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); text-align: center; padding: 4px 0; font-weight: 700; }
.cal-cell {
  min-height: 58px; border-radius: 10px; border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .018); padding: 6px 7px; font-size: .76rem; position: relative;
}
.cal-cell.out { opacity: .28; }
.cal-cell .d { font-weight: 600; color: var(--muted); }
.cal-cell.today { border-color: rgba(226, 51, 63, .55); background: rgba(215, 38, 61, .12); }
.cal-cell.today .d { color: #fff; }
.cal-cell .ev {
  display: block; margin-top: 5px; font-size: .64rem; line-height: 1.25;
  padding: 3px 5px; border-radius: 6px; font-weight: 600;
  background: rgba(215, 38, 61, .26); color: #ffd0d5; border: 1px solid rgba(215, 38, 61, .35);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-cell .ev.blue { background: rgba(59, 130, 246, .22); color: #d3e4ff; border-color: rgba(59, 130, 246, .4); }
.cal-cell .ev.more { background: rgba(255, 255, 255, .08); color: var(--muted); border-color: var(--line); }
.ev-list { display: grid; gap: 10px; margin-top: 4px; }
.ev-item {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .028);
}
.ev-date { text-align: center; border-radius: 10px; padding: 6px 4px; background: var(--metal-soft); border: 1px solid rgba(226, 51, 63, .3); }
.ev-date b { display: block; font-size: 1.05rem; line-height: 1.1; }
.ev-date span { font-size: .63rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ev-body strong { font-size: .88rem; display: block; }
.ev-body .meta { font-size: .75rem; color: var(--muted); margin-top: 2px; }

/* ---------- donut & chart ---------- */
.donut {
  --p: 0; --c: var(--red);
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .07) 0);
  position: relative; flex: none;
}
.donut::after {
  content: ''; position: absolute; inset: 12px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #171b24, #0c0f15);
  border: 1px solid var(--line-soft);
}
.donut .in { position: relative; z-index: 2; text-align: center; }
.donut .in b { font-size: 1.3rem; display: block; line-height: 1.1; }
.donut .in span { font-size: .63rem; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; }

.chart-bars {
  display: flex; align-items: flex-end; gap: 10px; height: 130px; padding: 8px 2px 6px;
  overflow-x: auto; overflow-y: hidden;   /* banyak dealer: geser mendatar, jangan melebarkan halaman */
}
.chart-bars .col {
  flex: 1 0 40px; min-width: 40px; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center; gap: 6px; height: 100%;
}
.chart-bars .col em, .chart-bars .col small {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chart-bars .col .b { width: 100%; border-radius: 7px 7px 3px 3px; background: var(--metal); min-height: 4px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.chart-bars .col .b.blue { background: linear-gradient(180deg, #60a5fa, #1d4ed8); }
.chart-bars .col small { font-size: .66rem; color: var(--muted-2); white-space: nowrap; }
.chart-bars .col em { font-size: .68rem; color: var(--muted); font-style: normal; font-weight: 600; }

/* ---------- misc ---------- */
.badge-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .72rem; font-weight: 700; color: var(--muted);
}
.empty { text-align: center; padding: 36px 18px; color: var(--muted); font-size: .86rem; }
.empty .big { font-size: 1.6rem; display: block; margin-bottom: 8px; opacity: .7; }
.divider { height: 1px; background: var(--line-soft); margin: 18px 0; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .76rem; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a, .tabs .tab {
  padding: 8px 14px; border-radius: 10px; font-size: .82rem; font-weight: 600;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, .03);
}
.tabs a.active { background: var(--metal); color: #fff; border-color: rgba(255, 255, 255, .16); }
.upload-zone {
  border: 1.5px dashed rgba(255, 255, 255, .18); border-radius: 14px; padding: 20px;
  background: rgba(255, 255, 255, .022); display: grid; gap: 12px;
}
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .84rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .85rem; min-width: 0; }
.checklist li { min-width: 0; overflow-wrap: anywhere; }
.checklist li { display: flex; gap: 9px; align-items: flex-start; }
.checklist .ic { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; font-weight: 800; }
.checklist .ic.y { background: rgba(47, 191, 113, .18); color: #7ee2ab; }
.checklist .ic.n { background: rgba(215, 38, 61, .18); color: #ff9aa5; }
.scroll-y { max-height: 420px; overflow-y: auto; }
.mode-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.mode-card {
  border-radius: 20px; padding: 26px; border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  display: grid; gap: 14px; align-content: start;
}
.mode-card.md { border-color: rgba(226, 51, 63, .4); box-shadow: 0 26px 60px -36px rgba(215, 38, 61, .9); }
.mode-card dl { display: grid; gap: 7px; font-size: .84rem; color: var(--muted); margin: 0; }
.mode-card dl div { display: flex; gap: 8px; }
.mode-card dl b { color: var(--text); }
.footer-note { text-align: center; color: var(--muted-2); font-size: .74rem; padding: 26px 10px 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .grid.c-2-1, .grid.c-1-2 { grid-template-columns: minmax(0, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1400px) {
  /* beri ruang untuk menu utama + tagline panjang */
  .user-name { display: none; }
  .nav a { padding: 7px 9px; font-size: .8rem; }
}
@media (max-width: 1240px) {
  .nav { display: none; width: 100%; order: 5; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .topbar { flex-wrap: wrap; }
}
@media (max-width: 1000px) {
  .auth { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) {
  /* HP kecil (360px): rapatkan topbar agar tetap satu baris */
  .topbar { gap: 8px; padding: 9px 10px; }
  .userbox { gap: 4px; }
  .userbox .btn.sm { padding: 6px 8px; font-size: .74rem; }
  .sid-tag { font-size: .5rem; }
}
@media (max-width: 640px) {
  .wrap { padding: 18px 14px 50px; }
  /* topbar satu baris di HP: chip mode cukup lewat tombol ⇄ */
  .mode-chip { display: none; }
  .topbar { padding: 10px 14px; gap: 12px; }
  .userbox { gap: 6px; }
  .sid-tag { font-size: .55rem; }
  .sid.big .sid-word { font-size: 1.6rem; }
  .sid.big .sid-tag { font-size: .72rem; }
  .card { padding: 17px; }
  .card-title-band { margin: -17px -17px 16px; padding: 13px 17px; }
  .kpi .value { font-size: 1.55rem; }
  .cal-cell { min-height: 48px; padding: 4px; }
  .cal-cell .ev { display: none; }
  .cal-cell.has-ev::after {
    content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
    width: 5px; height: 5px; border-radius: 50%; background: var(--red-bright);
  }
  .user-name { display: none; }
  .ev-item { grid-template-columns: 48px minmax(0, 1fr); }
}
