/* CeKiN by SETARA — public website.
   C-175: the instrument look (S-H-08…S-H-12). Every colour is a token per
   role; dark is the default, light when the device asks. Inter for words,
   JetBrains Mono for measured figures, two weights each, served from
   /fonts/ (no font service). test/kontras.test.js checks every text
   token pair below at 4.5:1 or more. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); }

/* Dark (S-H-10) — the default. */
:root {
  color-scheme: dark;
  --page: #0A0A0B;
  --card: #161618;
  --raised: #1E1E21; /* inputs and boxes inside a card */
  --line: #2A2A2E; /* hairline */
  --text: #EDEDED;
  --muted: #8A8A90;
  --cyan: #22D3EE;
  --lime: #A3E635;
  --amber: #F59E0B;
  --red: #F87171;
  --btn: #EDEDED; /* primary button */
  --btn-text: #0A0A0B;
  /* The accents as quiet surfaces (each accent at 14 % over the card), for chips and notes. */
  --cyan-soft: #183036;
  --lime-soft: #2A331C;
  --amber-soft: #352916;
  --red-soft: #362324;
  --hex-fill: rgba(34, 211, 238, 0.12);
  /* The map's five bands and its "not enough tests" grey: data colours, always with their words in the legend. */
  --band-sangat-lancar: #15803D;
  --band-lancar: #65A30D;
  --band-cukup: #D4A80A;
  --band-kurang: #EA7317;
  --band-buruk: #DC2626;
  --band-kosong: #3A3A40;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --radius: 14px;
  --header-h: 60px;
  --sidebar-w: 216px;
}

/* Light (S-H-11) — when the device asks for it. */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --page: #F6F7F9;
    --card: #FFFFFF;
    --raised: #F6F7F9;
    --line: #E2E4E8;
    --text: #0A0A0B;
    --muted: #5B5B63;
    --cyan: #0E7490;
    --lime: #4D7C0F;
    --amber: #B45309;
    --red: #B91C1C;
    --btn: #0A0A0B;
    --btn-text: #FFFFFF;
    /* Each accent at 6 % over white. */
    --cyan-soft: #F1F7F8;
    --lime-soft: #F4F7F1;
    --amber-soft: #FBF5F0;
    --red-soft: #FBF1F1;
    --hex-fill: rgba(14, 116, 144, 0.12);
    --band-kosong: #CFD5DF;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}
h1, h2, h3, strong, b, th { font-weight: 500; }
a { color: inherit; }
[hidden] { display: none !important; }
.icon { flex: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Measured figures: JetBrains Mono, tabular (S-H-12). */
.num, .result-number, .result-metrics dd, .level-points, .ladder-points, .streak-count, .ring-count,
.history-score, .history-numbers, .samping-table td, .riwayat-angka, .tren-value,
.peta-skor-angka, .points-toast strong, .result-code strong, .history-code, .tempat-pita-angka, .poin-chip {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* Header: the lockup, the points chip, the language switch, the signed-in address. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--header-h);
  padding: 10px 20px;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; min-width: 0; margin-right: auto; }
.logo { display: block; width: 94px; height: 30px; }
.logo-hex { fill: var(--hex-fill); stroke: var(--cyan); }
.logo-check { stroke: var(--lime); }
.logo-word { fill: var(--text); }
.logo-k { fill: var(--cyan); }

.poin-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}
.poin-chip { color: var(--lime); }
.poin-chip .icon { width: 14px; height: 14px; color: var(--lime); }
.poin-chip:hover { border-color: var(--cyan); }

.lang-switch { display: flex; flex: none; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; text-decoration: none; color: var(--muted); }
.lang-switch a.is-active { background: var(--btn); color: var(--btn-text); }

/* Signed in (S-H-06, C-155): the address and a way out. */
.header-akun { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 auto; }
.header-email { min-width: 0; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; text-decoration: none; }
.header-email:hover { color: var(--text); text-decoration: underline; }
.header-keluar { margin: 0; flex: none; }
.header-keluar-tombol { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.header-keluar-tombol .icon { width: 15px; height: 15px; }
.header-keluar-tombol:hover { border-color: var(--cyan); }

/* Shell: side bar on a desktop, bottom bar on a phone. */
.shell { display: flex; align-items: stretch; min-height: calc(100vh - var(--header-h)); }
.sidebar { width: var(--sidebar-w); padding: 18px 12px; border-right: 1px solid var(--line); flex: none; }
.sidebar-links { position: sticky; top: calc(var(--header-h) + 18px); display: flex; flex-direction: column; gap: 2px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-left: 2px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.side-link .icon { width: 20px; height: 20px; }
.side-link:hover { color: var(--text); background: var(--card); }
.side-link.is-active { color: var(--text); background: var(--card); border-left-color: var(--cyan); }
.side-link.is-active .icon { color: var(--cyan); }

.main { flex: 1; min-width: 0; max-width: 760px; margin: 0 auto; padding: 8px 24px 40px; }

/* Page heading: plain words on the page, no banner. */
.hero { padding: 20px 4px 4px; }
.hero h1 { margin: 0 0 2px; font-size: 22px; line-height: 1.25; }
.hero p { margin: 0; color: var(--muted); font-size: 14px; }

.card {
  position: relative;
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.card-lift { margin-top: 14px; }
.card h2 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; }
.card p + p { margin-top: 8px; }
.card-title { margin: 0 0 12px; font-size: 16px; }
.card-lead { margin: -6px 0 12px !important; font-size: 13.5px; }

.muted { color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 32px 24px; }
.text-link { color: var(--cyan); font-weight: 500; }
.site-foot { margin: 28px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.alamat-note a, .site-foot a { color: inherit; text-decoration: underline; }

/* The test screen (S-H-13): the connection in use, the hexagonal start, the last result in one line. */
.tes-layar { padding: 22px 0 6px; text-align: center; }
/* C-182 (agreed screen 1): the first screen fills the view — the connection on top, the hexagon in the middle,
   the "Terakhir" card at the bottom; the address and the rest of the page follow below it. */
.tes-layar { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h) - 40px); }
.tes-layar > [data-ukur] { flex: 1; display: flex; flex-direction: column; }
.tes-layar > [data-ukur] > .hex-wrap { flex: 1; justify-content: center; }
.tes-layar .hasil-rinci, .tes-layar p.tes-terakhir { width: 100%; margin-top: 12px; }
.tes-alamat { text-align: center; padding: 4px 0 0; }
.tes-layar .detik, .tes-layar .ukur-panel { width: 100%; }
@media (max-width: 767px) { .tes-layar { min-height: calc(100svh - var(--header-h) - 76px); } }
.koneksi-kini { margin: 0 auto 18px; max-width: 520px; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
/* C-182 (agreed screen 1): the Mulai hexagon drawn like the logo — cyan outline, the page with a faint cyan
   tint inside, a thin inner hexagon in the hairline colour, light text. Never a filled light button. */
.hex-wrap { display: flex; flex-direction: column; align-items: center; margin: 10px auto 8px; }
.hex-wrap:has(.btn-hex[hidden]) { display: none; }
.btn-hex { position: relative; display: grid; place-items: center; width: 236px; height: 236px; padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.btn-hex:focus-visible { outline: none; }
.btn-hex:focus-visible .hex-luar { stroke-width: 4; }
.hex-gambar { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hex-luar { fill: var(--cyan); fill-opacity: 0.08; stroke: var(--cyan); stroke-width: 2.5; stroke-linejoin: round; transition: fill-opacity 0.15s ease; }
.hex-dalam { fill: none; stroke: var(--line); stroke-width: 1; }
.btn-hex:hover .hex-luar { fill-opacity: 0.14; }
.btn-hex:active .hex-luar { fill-opacity: 0.22; }
.btn-hex-label { position: relative; font-size: 26px; font-weight: 500; letter-spacing: 0.2px; }
.btn-hex.is-stop .hex-luar { stroke: var(--red); fill: var(--red); }
.btn-hex.is-stop .btn-hex-label { color: var(--red); }
.btn-hex:disabled { cursor: default; }
.btn-hex:disabled .btn-hex-label { color: var(--muted); }
.hex-poin { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .hex-luar { transition: none; } }
/* While a test runs (agreed screen 2) the running figure leads; the hexagon is a small stop control below it. */
[data-ukur].is-jalan { display: flex; flex-direction: column; }
[data-ukur].is-jalan .ukur-panel { order: -3; }
[data-ukur].is-jalan:has(.detik:not([hidden])) .ukur-panel { display: none; }
[data-ukur].is-jalan > .hex-wrap { flex: 0 0 auto; }
[data-ukur].is-jalan .detik { order: -2; }
[data-ukur].is-jalan .hex-wrap { order: -1; margin-top: 4px; }
[data-ukur].is-jalan .btn-hex { width: 96px; height: 96px; }
[data-ukur].is-jalan .btn-hex-label { font-size: 12px; max-width: 64px; line-height: 1.2; }
[data-ukur].is-jalan .hex-poin { display: none; }
/* C-183 (agreed screen 2): the last-result line steps aside while a test runs; it returns with the result. */
[data-ukur].is-jalan .hasil-rinci, [data-ukur].is-jalan p.tes-terakhir { display: none; }
.tes-layar .ukur-track { display: none; }
/* The last result (agreed screen 1): one card — "Terakhir · 2 jam lalu" left, the download in lime mono right. */
.hasil-rinci { max-width: 520px; margin: 8px auto 0; text-align: left; }
.hasil-rinci > summary.tes-terakhir { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; list-style: none; font-size: 13px; }
.hasil-rinci > summary::-webkit-details-marker { display: none; }
.hasil-rinci > summary:hover { border-color: var(--cyan); }
.tes-terakhir-kata { color: var(--muted); }
.tes-terakhir-angka { color: var(--lime); white-space: nowrap; }
p.tes-terakhir { margin: 8px auto 0; font-size: 13px; color: var(--muted); text-align: center; }

/* The ten one-second bars of the download window (C-176). Filling: cyan. When the window closes the
   best seconds turn lime and get a bracket and a line of words under them; the others fade. */
.detik { max-width: 520px; margin: 18px auto 0; text-align: left; }
/* C-182 (agreed screen 2): phase and seconds on top, the running figure large in cyan mono. */
.lb { margin: 0; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.detik-kepala { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.detik-kepala .num { text-transform: none; }
.detik-besar { margin: 4px 0 0; }
.detik-besar .num:first-child { font-size: 52px; font-weight: 400; line-height: 1.05; color: var(--cyan); }
.detik-satuan { font-size: 14px; color: var(--muted); }
.detik-baris { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.detik-grafik {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--detik-n, 10), 1fr);
  grid-template-rows: 120px auto;
  column-gap: 6px;
  padding-top: 18px;
}
.detik-kolom { grid-row: 1 / span 2; display: grid; grid-template-rows: 120px auto; justify-items: stretch; }
.detik-bar { align-self: end; display: block; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--cyan); transition: height 0.18s linear; }
.detik-nomor { margin-top: 4px; text-align: center; font-size: 11px; color: var(--muted); }
.detik-kolom.is-tutup .detik-bar { background: var(--line); }
.detik-kolom.is-sisa .detik-bar { background: transparent; border: 1px dashed var(--line); }
.detik-kolom.is-terbaik .detik-bar { background: var(--lime); }
.detik-kolom.is-terbaik .detik-nomor { color: var(--text); font-weight: 500; }
.detik-kurung { grid-row: 2; align-self: start; height: 8px; margin-top: 22px; border: 2px solid var(--lime); border-top: 0; border-radius: 0 0 4px 4px; }
.detik-batas { position: absolute; left: 0; right: 0; top: 18px; border-top: 1px dashed var(--amber); font-size: 11px; color: var(--amber); text-align: right; line-height: 1; padding-top: 3px; pointer-events: none; }
.detik-ket { margin: 8px 0 0; font-size: 13px; color: var(--lime); }
@media (prefers-reduced-motion: reduce) { .detik-bar { transition: none; } }

/* "Selengkapnya" (S-H-07, C-170): an explanation one tap away. */
.lebih { margin-top: 6px; }
.lebih > summary { display: inline-block; cursor: pointer; font-size: 12.5px; color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; list-style: none; }
.lebih > summary::-webkit-details-marker { display: none; }
.lebih[open] > summary { margin-bottom: 4px; }

/* Honest states (C-039) */
.state-card { text-align: center; padding: 28px 20px; }
.state-illustration { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); color: var(--cyan); }
.state-illustration .icon { width: 44px; height: 44px; stroke-width: 1.8; }
.state-title { margin: 0 0 6px; font-size: 19px; }
.state-text { max-width: 460px; margin: 0 auto !important; color: var(--muted); }
.state-card .state-text { margin-top: 14px !important; font-size: 14px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: middle;
  white-space: nowrap;
}
.chip .icon { width: 13px; height: 13px; }
.chip-building { margin-top: 14px; background: var(--amber-soft); color: var(--amber); }
.chip-inactive { margin-top: 10px; background: var(--raised); color: var(--muted); border: 1px solid var(--line); }
.chip-soon { background: var(--cyan-soft); color: var(--cyan); }
.chip-reward { background: var(--lime-soft); color: var(--lime); }
.chip-plain { margin-left: 8px; background: var(--raised); color: var(--muted); }
.chip-lokal { background: var(--raised); color: var(--muted); }
.chip-batas { background: var(--amber-soft); color: var(--amber); }
.chip-banding { background: var(--amber-soft); color: var(--amber); }
.chip-tempat { background: var(--cyan-soft); color: var(--cyan); }

/* Buttons: the primary one is light on dark (dark on light); the others are outlines. */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-secondary, .btn-quiet, .btn-google { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover, .btn-quiet:hover, .btn-google:hover { border-color: var(--cyan); }
.btn-wide { display: block; width: 100%; max-width: 520px; margin: 20px auto 0; }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn .chip-reward { margin-left: 10px; font-size: 12px; }
/* "Exists, but not yet": flat, quiet, no pointer. */
.btn:disabled { background: var(--raised); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn:disabled .chip-reward { background: transparent; color: inherit; }
/* While a test runs the main button is a Stop button — clearly a stop, not a greyed-out start (C-086). */
.btn.is-stop { background: var(--red); color: var(--btn-text); }
.btn.is-running { opacity: 0.75; }
.btn:disabled.is-running { cursor: default; }
.btn-danger { background: var(--red); color: var(--btn-text); }
.btn-danger-quiet { color: var(--red); border-color: var(--red); }
a.btn-google, a.btn-quiet { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.btn-copy { margin-left: 6px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--cyan); font: inherit; font-size: 12px; cursor: pointer; }

.section-heading { margin: 26px 4px 0; font-size: 14px; color: var(--muted); font-weight: 500; }
.card-soft { background: var(--raised); padding: 16px 18px; margin-top: 12px; }
.upcoming h3 { margin: 0 0 4px; font-size: 15px; }
.upcoming p { color: var(--muted); font-size: 14px; }
.upcoming-when { display: flex; align-items: center; gap: 6px; margin-top: 8px !important; color: var(--muted) !important; font-size: 13px !important; }
.upcoming-when .icon { width: 15px; height: 15px; }

/* The test screen's tips and the coming tests. */
.card.tips { margin-top: 14px; padding: 20px; border-top: 1px solid var(--line); }
.card.tips h2 { display: flex; align-items: center; gap: 8px; }
.card.tips h2 .icon { width: 18px; height: 18px; color: var(--amber); }
.card.tips ul { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.card.tips li + li { margin-top: 4px; }
.feature-card { display: flex; gap: 14px; align-items: flex-start; }
.feature-card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.feature-card p { color: var(--muted); font-size: 14px; }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; flex: none; border: 1px solid var(--line); background: var(--raised); color: var(--cyan); }
.feature-icon .icon { width: 22px; height: 22px; }
.feature-price { margin-top: 6px !important; font-size: 13px; color: var(--muted); }
.note-paid { display: flex; align-items: center; gap: 8px; margin: 12px 4px 0; font-size: 13px; color: var(--muted); }
.note-paid .icon { width: 16px; height: 16px; }

/* Empty states with explanations (C-040) */
.info-card { display: flex; gap: 14px; align-items: flex-start; }
.info-card p { color: var(--muted); font-size: 14px; }
.info-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; border: 1px solid var(--line); background: var(--raised); color: var(--cyan); }
.info-icon .icon { width: 21px; height: 21px; }
.check-list { list-style: none; margin: 10px 0 0; padding: 0; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.check-list li:first-child { border-top: 0; }
.check-list .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--cyan); }
.lang-choices { display: grid; gap: 8px; margin-top: 12px; }
.lang-choice { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.lang-choice .icon { width: 18px; height: 18px; }
.lang-choice.is-active { border-color: var(--cyan); background: var(--cyan-soft); font-weight: 500; }
.lang-choice.is-active .icon { color: var(--cyan); }

/* Progress and reward pieces (C-043), now on the account page. */
.level-bar { display: block; }
.level-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.level-name { font-weight: 500; font-size: 16px; }
.level-points { color: var(--cyan); }
.level-track { display: block; height: 8px; margin: 8px 0 6px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); overflow: hidden; }
.level-fill { display: block; height: 100%; border-radius: 999px; background: var(--cyan); transition: width 0.4s ease; }
.level-next { margin: 0; font-size: 13px; color: var(--muted); }

.ring-block { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ring { width: 132px; height: 132px; flex: none; transform: rotate(-90deg); }
.ring-seg { fill: none; stroke: var(--raised); stroke-width: 11; stroke-linecap: round; }
.ring-seg.is-done { stroke: var(--cyan); }
.ring-count, .ring-word { transform: rotate(90deg); transform-origin: 60px 60px; text-anchor: middle; }
.ring-count { font-size: 22px; font-weight: 500; fill: var(--text); }
.ring-word { font-size: 11px; fill: var(--muted); }
.ring-slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.ring-slots li { display: flex; align-items: center; gap: 8px; }
.ring-slots li.is-done { color: var(--text); font-weight: 500; }
.slot-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); }
.ring-slots li.is-done .slot-dot { background: var(--cyan); border-color: var(--cyan); }

.streak { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--muted); }
.streak.is-live { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.streak-mark { width: 11px; height: 11px; border-radius: 3px; background: currentColor; transform: rotate(45deg); }
.streak-count { font-size: 17px; font-weight: 500; }
.streak-label { font-size: 13px; }
.progress-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.progress-row .chip-building { margin-top: 0; }
.invite { margin: 14px 0 0 !important; font-size: 14px; font-weight: 500; }
.invite .muted { font-weight: 400; font-size: 13px; }
.provisional { margin: 12px 0 0 !important; font-size: 12.5px; }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.badge-name { font-weight: 500; font-size: 14px; }
.badge-how { font-size: 12px; color: var(--muted); }
.badge.is-earned { border-color: var(--cyan); }
.badge.is-earned .badge-how { color: var(--cyan); }
.badge.is-locked { background: var(--raised); }
.badge.is-locked .badge-name { color: var(--muted); }

.points-toast-box { position: fixed; right: 16px; bottom: 96px; z-index: 40; display: grid; gap: 8px; justify-items: end; }
.points-toast {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-text);
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.points-toast.is-in { opacity: 1; transform: translateX(0); }
.points-toast strong { font-size: 17px; font-weight: 500; }
.points-toast span { font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .points-toast, .level-fill { transition: none; }
}

.workshop-banner { margin: 0 0 4px; padding: 14px 18px; border-radius: 12px; background: var(--amber-soft); border: 1px dashed var(--amber); color: var(--text); }
.workshop-banner h1 { margin: 0 0 4px; font-size: 18px; }
.workshop-banner p { margin: 0; font-size: 13.5px; }
.workshop-state h2 { margin-bottom: 14px; }
.workshop-label { margin: 22px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.workshop-label:first-of-type { margin-top: 0; }
.workshop-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

/* Level ladder (C-045) */
.ladder { list-style: none; margin: 0; padding: 0; }
.ladder-step { position: relative; display: flex; gap: 14px; padding: 12px 0 12px 4px; }
.ladder-step::before { content: ""; position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.ladder-step:first-child::before { top: 50%; }
.ladder-step:last-child::before { bottom: 50%; }
.ladder-mark { position: relative; z-index: 1; display: block; flex: none; margin-top: 2px; }
.ladder-body { min-width: 0; }
.ladder-name { margin: 0 !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-weight: 500; }
.ladder-points { font-size: 13px; color: var(--cyan); }
.ladder-means { margin: 2px 0 0 !important; font-size: 13.5px; color: var(--muted); }
.ladder-step.is-here .ladder-name { color: var(--cyan); }

/* Badges (C-047): shape first, colour second, drawn in SVG. */
.badge3d { display: block; overflow: visible; }
.badge .badge3d { margin-bottom: 4px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; margin-bottom: 10px; }
.badge-sample { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; text-align: center; max-width: 110px; }
.badge-sample .muted { font-size: 11px; }
.badge-sample.is-unlocking .badge3d { animation: badge-pop 0.42s ease-out; }
.badge-sample.is-unlocking::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 96px;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%);
  animation: badge-sweep 0.42s ease-out;
  pointer-events: none;
}
@keyframes badge-pop { 0% { transform: scale(0.82); } 55% { transform: scale(1.09); } 100% { transform: scale(1); } }
@keyframes badge-sweep { 0% { transform: translateX(-120%); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateX(120%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .badge-sample.is-unlocking .badge3d, .badge-sample.is-unlocking::after { animation: none; }
}

/* Running a measurement and showing its result (C-054) */
.ukur-panel { margin: 16px auto 0; max-width: 520px; }
.ukur-fase { margin: 0 0 8px !important; font-size: 13.5px; color: var(--muted); }
.ukur-track { height: 6px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); overflow: hidden; }
.ukur-bar { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--cyan); transition: width 0.3s ease; }
.ukur-pesan { margin: 14px 0 0 !important; font-size: 13.5px; color: var(--muted); }
.ukur-pesan.is-error { color: var(--red); }
.ukur-pesan.is-ok { color: var(--lime); }

.result { margin-top: 14px; text-align: center; }
.result-score { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 26px; border-radius: 14px; border: 1px solid var(--line); background: var(--raised); color: var(--cyan); }
.result-score.is-capped { background: var(--red-soft); color: var(--red); border-color: transparent; }
.result-number { font-size: 40px; font-weight: 500; line-height: 1; }
.result-label { font-size: 14px; font-weight: 500; }
.result-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; margin: 16px 0 0; }
.result-metrics div { padding: 10px 8px; border: 1px solid var(--line); border-radius: 10px; }
.result-metrics dt { font-size: 12px; color: var(--muted); }
.result-metrics dd { margin: 2px 0 0; font-size: 17px; font-weight: 500; }
.result-metrics dd span { font-size: 12px; font-weight: 400; color: var(--muted); }
.alamat { margin: 14px 0 0 !important; font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.alamat-note { margin: 4px 0 0 !important; font-size: 12.5px; color: var(--muted); }
.plain-list { margin: 8px 0 0; padding-left: 20px; }
.plain-list li { margin: 6px 0; }
.result-cap { padding: 8px 10px; border-radius: 8px; background: var(--amber-soft); color: var(--amber) !important; }
.result-code { margin: 10px 0 0 !important; font-size: 13px; color: var(--muted); }
.result-code strong { color: var(--text); letter-spacing: 0.3px; user-select: all; }
.history-code { display: block; font-size: 11px; color: var(--muted); user-select: all; }
.result-when { margin: 12px 0 0 !important; font-size: 12.5px; color: var(--muted); }
.result-note { margin: 6px 0 0 !important; font-size: 12.5px; color: var(--muted); text-align: left; }
.result-empty { margin-top: 14px !important; font-size: 13.5px; text-align: center; }
.result-penyedia-note { color: var(--muted); }
.result-penyedia[data-status="dicari"], .result-lokasi[data-result-lokasi="menunggu"] { font-style: italic; }

/* The lead of a result card (C-177): the package against its promise, or the usage fit at full size. */
/* C-182 (agreed screen 3): package label; the percentage large in lime mono; the bar with its promise mark;
   "nyata / janji"; the band in its pill; the usage fit as one small line; three compact figures. */
.paket-hero { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; text-align: left; }
.paket-hero > p { margin: 0 !important; }
.paket-persen-baris { line-height: 1; }
.paket-persen { font-size: 60px; font-weight: 400; }
.paket-persen-tanda { font-size: 22px; }
.paket-persen-baris.is-lime { color: var(--lime); }
.paket-persen-baris.is-amber { color: var(--amber); }
.paket-persen-baris.is-red { color: var(--red); }
.paket-dari { font-size: 14px; }
.paket-angka-besar { font-size: 15px; color: var(--muted); }
.paket-angka-besar .paket-besar { font-size: 44px; color: var(--text); }
.paket-angka-besar .num { color: var(--text); }
.paket-bar { position: relative; height: 10px; margin-top: 4px; border-radius: 5px; background: var(--raised); }
.paket-isi { display: block; height: 100%; border-radius: 5px; background: var(--cyan); }
.paket-isi.is-lime { background: var(--lime); }
.paket-isi.is-amber { background: var(--amber); }
.paket-isi.is-red { background: var(--red); }
.paket-janji { position: absolute; top: -5px; width: 2px; height: 20px; margin-left: -2px; background: var(--text); }
.paket-nyata { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.paket-kata { display: inline-block; font-size: 13px; font-weight: 500; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.paket-kata.is-lime { color: var(--lime); }
.paket-kata.is-amber { color: var(--amber); }
.paket-kata.is-red { color: var(--red); }
.paket-ket { font-size: 12.5px; color: var(--muted); }
.paket-guna { font-size: 12px; color: var(--muted); } /* never clipped: the word is the point */
.paket-tiga { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; text-align: center; }
.paket-tiga > div { display: flex; flex-direction: column; gap: 2px; }
.paket-tiga-angka { font-size: 16px; color: var(--text); }
/* C-182 (agreed screen 4): no package — "Bisa untuk" at full size, the download in mono, one offer line. */
.guna-daftar { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.guna-daftar li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.guna-kata.is-lancar { color: var(--lime); }
.guna-kata.is-kadang { color: var(--amber); }
.guna-kata.is-lambat { color: var(--red); }
.guna-kata.is-tak-terukur { color: var(--muted); }
.guna-unduh { font-size: 28px; margin-top: 4px !important; }
.guna-unduh span { font-size: 13px; color: var(--muted); }
/* Everything else of the result sits under one toggle (C-182). */
.hasil-detail { margin-top: 4px; border-top: 1px solid var(--line); }
.hasil-detail > summary { padding: 10px 0; cursor: pointer; font-size: 13px; color: var(--cyan); }
.hasil-detail[open] > summary { margin-bottom: 6px; }

/* What the test is good for (C-147): a word on every state, never colour alone. */
.kegunaan { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
.kegunaan-judul { margin: 0 0 8px; font-size: 15px; }
.kegunaan-daftar { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kegunaan-daftar li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.kegunaan-daftar small { grid-column: 1 / -1; font-size: 12px; }
.kegunaan-nama { font-size: 14px; font-weight: 500; }
.kegunaan-keadaan { font-size: 12.5px; font-weight: 500; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.kegunaan-keadaan.is-lancar { background: var(--lime-soft); color: var(--lime); }
.kegunaan-keadaan.is-kadang { background: var(--amber-soft); color: var(--amber); }
.kegunaan-keadaan.is-lambat { background: var(--red-soft); color: var(--red); }
.kegunaan-keadaan.is-tak-terukur { background: var(--raised); color: var(--muted); }
.kegunaan-catatan { margin: 10px 0 0; font-size: 13px; }
.kegunaan-sumber { margin: 6px 0 0; font-size: 12px; }
/* Fix tips (C-148). */
.tips { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
.tips p { margin: 0 0 4px; font-size: 13.5px; }
.tip { padding: 8px 0; }
.tip + .tip { border-top: 1px dashed var(--line); }
.tip-bukti { font-size: 12px !important; }
.tip-lapor { font-weight: 500; }
/* The satisfaction question (C-150). */
.penilaian { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
.penilaian p { margin: 0 0 6px; font-size: 13.5px; }
.penilaian-pilihan { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 8px; }
.penilaian .btn-link { background: none; border: 0; padding: 6px 4px; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.penilaian-catatan { font-size: 12px !important; }
/* "Bagikan kartu hasil" (C-151). */
.kartu-gambar { display: block; width: 100%; max-width: 420px; height: auto; margin: 12px auto; border-radius: 14px; border: 1px solid var(--line); }
.kartu-tombol { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 8px 0 16px; }
.kartu-tombol p { flex-basis: 100%; text-align: center; margin: 0; }
/* The invitation to sign in (C-153): quiet, inside the flow. */
.ajakan { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); text-align: left; }
.ajakan p { margin: 0 0 6px; font-size: 13.5px; }
.ajakan-daftar { margin: 0 0 8px; padding-left: 18px; font-size: 13.5px; }
.ajakan-tombol { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ajakan-tempat { margin: 12px 4px 0; }
.riwayat-ke-posisi { margin: 12px 4px 0; font-size: 14px; }

/* Comparison test against M-Lab (C-060): the other provider is amber, ours cyan, each with its name. */
.consent { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--amber); background: var(--amber-soft); scroll-margin: 84px 0 110px; text-align: left; }
.consent h3 { margin: 0 0 8px; font-size: 15px; }
.consent ul { margin: 0; padding-left: 20px; font-size: 14px; }
.consent li + li { margin-top: 6px; }
.consent-links { margin: 12px 0 0 !important; font-size: 13px; }
.consent-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.banding-result { margin-top: 16px; }
.banding-source { margin: 0 0 8px !important; font-weight: 500; font-size: 14px; color: var(--amber); }

/* Side by side with the comparison, and the history lists (C-061) */
.samping { margin-top: 16px; }
.samping-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.samping-table th, .samping-table td { padding: 9px 8px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.samping-table thead th { font-weight: 500; font-size: 12.5px; color: var(--muted); }
.samping-table tbody th { font-weight: 400; color: var(--muted); }
.samping-table td { font-weight: 500; }
.samping-table td span { font-size: 12px; font-weight: 400; color: var(--muted); }
.samping-who { display: block; font-family: var(--sans); font-size: 14px; font-weight: 500; }
.samping-own { color: var(--cyan); }
.samping-other { color: var(--amber); }
.samping-when { display: block; font-family: var(--sans); font-size: 11.5px; font-weight: 400; color: var(--muted); }
.samping-table td.samping-diff { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--muted); }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.history-item:first-child { border-top: 0; }
.history-score { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--cyan-soft); color: var(--cyan); font-weight: 500; flex: none; }
.history-score.is-capped { background: var(--red-soft); color: var(--red); }
.history-provider { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 10px; border: 1px dashed var(--amber); background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 500; flex: none; }
.history-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.history-numbers { font-size: 12.5px; color: var(--muted); }
.history-when { font-size: 12px; color: var(--muted); white-space: nowrap; }
@media (max-width: 520px) {
  .samping-table { font-size: 13px; }
  .samping-table th, .samping-table td { padding: 8px 5px; }
  .history-item { flex-wrap: wrap; }
  .history-when { width: 100%; padding-left: 56px; }
}

/* Why the two results differ (C-064) */
.kenapa { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--raised); font-size: 13px; color: var(--muted); }
.kenapa p { margin: 0; }
.kenapa p + p { margin-top: 6px; }
.kenapa-judul { font-weight: 500; color: var(--text); }
.kenapa strong { color: var(--text); }

/* Location: the question before the first test, and the person's own point on the result card (C-083). */
.lokasi-panel { margin: 0 auto 16px; max-width: 560px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; }
.lokasi-judul { margin: 0 0 6px; font-size: 16px; }
/* C-179: the location question in one line, the explanation one tap away. */
.lokasi-satu { padding: 12px 14px; }
.lokasi-baris { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.lokasi-satu .lokasi-judul { margin: 0; font-size: 15px; font-weight: 500; }
.lokasi-satu .lokasi-tombol { margin: 0; gap: 8px; }
.lokasi-panel .plain-list { font-size: 13.5px; }
.lokasi-tombol { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.result-lokasi { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--raised); text-align: left; font-size: 13px; }
.result-lokasi p { margin: 0 0 3px !important; }
.result-lokasi-note { color: var(--muted); font-size: 12px; margin-top: 6px !important; }
.result-lokasi-none { color: var(--muted); }

/* Account page. */
.akun-note { margin: 12px 4px 0; padding: 11px 14px; border-radius: 12px; font-size: 14px; }
.akun-note-ok { background: var(--lime-soft); color: var(--lime); }
.akun-note-warn { background: var(--amber-soft); color: var(--amber); }
.akun-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.akun-who { display: flex; align-items: center; gap: 14px; min-width: 0; }
.akun-who > div { min-width: 0; }
.akun-photo { width: 52px; height: 52px; border-radius: 50%; flex: none; object-fit: cover; background: var(--raised); }
.akun-photo-empty { display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); }
.akun-photo-empty svg { width: 26px; height: 26px; }
.akun-name { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.akun-who .muted { margin: 2px 0 0; overflow-wrap: anywhere; }
.akun-devices { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.akun-devices li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.akun-devices li.is-current { border-color: var(--cyan); }
.akun-device-name { font-weight: 500; overflow-wrap: anywhere; }
.akun-devices .muted { font-size: 13px; }
.akun-delete summary { cursor: pointer; color: var(--red); font-weight: 500; }
.akun-delete-list { margin: 8px 0 14px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.akun-delete-sure { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; font-size: 14px; }
.akun-delete-sure input { margin-top: 3px; }
.akun-hak { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.akun-hak > li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13.5px; }

/* Form fields, one look everywhere. */
.riwayat-saring select, .langganan-form input, .langganan-form select, .peran-ubah select, .tempat-nama-form input[type="text"] {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
}

/* History page: filters, the list with expandable rows, comparison rows. */
.riwayat-saring { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 12px; margin: 14px 0 6px; }
.riwayat-saring label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.riwayat-saring-aksi { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.riwayat-jumlah { margin: 12px 0 0; font-size: 14px; }
.riwayat-kosong-saring { margin: 14px 0 0; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.riwayat-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.riwayat-item { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.riwayat-item.riwayat-banding { border-style: dashed; border-color: var(--amber); }
.riwayat-item:target { border-color: var(--cyan); box-shadow: 0 0 0 2px var(--cyan-soft); }
.riwayat-item summary { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; cursor: pointer; list-style: none; }
.riwayat-item summary::-webkit-details-marker { display: none; }
.riwayat-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.riwayat-angka { font-size: 13.5px; }
.riwayat-ket { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.riwayat-tanda { display: flex; flex-wrap: wrap; gap: 4px; }
.riwayat-tanda:empty { display: none; }
.riwayat-kapan { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.riwayat-rinci { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 14px; margin: 0; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.riwayat-rinci div { min-width: 0; }
.riwayat-rinci dt { font-size: 12px; color: var(--muted); }
.riwayat-rinci dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.riwayat-rinci-lebar { grid-column: 1 / -1; }
@media (max-width: 520px) {
  .riwayat-item summary { grid-template-columns: auto 1fr; }
  .riwayat-kapan { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}
.riwayat-saring-kotak { margin: 12px 0 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.riwayat-saring-kotak > summary { padding: 11px 0; cursor: pointer; font-weight: 500; font-size: 14px; }
.riwayat-saring-kotak[open] { padding-bottom: 12px; }
.riwayat-saring-kotak .riwayat-saring { margin-top: 2px; }
@media (max-width: 520px) { .riwayat-saring { grid-template-columns: 1fr 1fr; } .riwayat-saring-aksi { grid-column: 1 / -1; } }

/* History page: the 7-day chart (inline SVG) and the comparisons with oneself. */
.tren-figure { margin: 12px 0 0; }
.tren-chart { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; }
.tren-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.tren-axis { font-size: 8px; fill: var(--muted); font-family: var(--mono); }
.tren-bar { fill: var(--cyan); }
.tren-day.is-today .tren-bar { fill: var(--lime); }
.tren-value { font-size: 11px; font-weight: 500; fill: var(--text); }
.tren-label { font-size: 10px; fill: var(--muted); }
.tren-day.is-today .tren-label { font-weight: 500; fill: var(--text); }
.tren-count { font-size: 9.5px; fill: var(--muted); }
.tren-gap { font-size: 12px; fill: var(--muted); }
.tren-figure figcaption { margin-top: 6px; font-size: 12.5px; text-align: center; }
.tren-subjudul { margin: 18px 0 8px; font-size: 15px; }
.tren-pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tren-pair { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.tren-pair-name { font-weight: 500; font-size: 14px; }
.tren-pair-sides { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.tren-thin { color: var(--muted); font-style: italic; }
.tren-pair-diff { font-size: 13.5px; font-weight: 500; }
.tren-pair-diff.is-naik { color: var(--lime); }
.tren-pair-diff.is-turun { color: var(--red); }
.tren-pair-diff.is-none { color: var(--muted); font-weight: 400; font-style: italic; }
.tren-arrow { font-size: 16px; margin-right: 2px; }
.tren-catatan { margin: 10px 0 0 !important; font-size: 12.5px; }

/* History page: the free window and the paid features behind it. */
.riwayat-jendela { margin: 4px 0 0; font-size: 13.5px; font-weight: 500; }
.riwayat-berbayar { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 12px 0; }
.riwayat-berbayar > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.riwayat-berbayar .chip-inactive { margin-top: 0; }

/* Map page: Bali as SVG outlines, a legend, the figures of the chosen area, the list beside it. */
.peta-grid { display: grid; gap: 0; }
.peta-samping { display: contents; }
@media (min-width: 900px) {
  .peta-grid { grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 0 14px; align-items: start; }
  .peta-samping { display: block; }
  .peta-grid > .card-lift { margin-left: 0; margin-right: 0; }
}
.peta-remah { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 14px; }
.peta-petunjuk { margin: 6px 0 10px !important; font-size: 13px; }
.peta-svg { display: block; width: 100%; height: auto; max-height: 70vh; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; }
.peta-area { stroke: var(--page); stroke-width: 1.4; vector-effect: non-scaling-stroke; cursor: pointer; fill-rule: evenodd; transition: opacity 0.12s; }
.peta-svg a:hover .peta-area, .peta-svg a:focus .peta-area { opacity: 0.8; stroke: var(--text); }
.peta-area.is-current { stroke: var(--text); stroke-width: 3; }
.peta-area.is-grey, .peta-warna.is-grey { fill: var(--band-kosong); background: var(--band-kosong); }
.peta-area.is-sangat-lancar, .peta-warna.is-sangat-lancar, .peta-skor-angka.is-sangat-lancar { fill: var(--band-sangat-lancar); background: var(--band-sangat-lancar); }
.peta-area.is-lancar, .peta-warna.is-lancar, .peta-skor-angka.is-lancar { fill: var(--band-lancar); background: var(--band-lancar); }
.peta-area.is-cukup, .peta-warna.is-cukup, .peta-skor-angka.is-cukup { fill: var(--band-cukup); background: var(--band-cukup); }
.peta-area.is-kurang, .peta-warna.is-kurang, .peta-skor-angka.is-kurang { fill: var(--band-kurang); background: var(--band-kurang); }
.peta-area.is-buruk, .peta-warna.is-buruk, .peta-skor-angka.is-buruk { fill: var(--band-buruk); background: var(--band-buruk); }
.peta-legenda { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; font-size: 12.5px; }
.peta-legenda li { display: flex; align-items: center; gap: 6px; }
.peta-warna { display: inline-block; width: 14px; height: 14px; border-radius: 4px; flex: none; }
.peta-catatan { margin: 8px 0 0 !important; font-size: 12.5px; }
.peta-rinci-tingkat { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.peta-skor { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.peta-skor-angka { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; color: #FFFFFF; font-size: 23px; font-weight: 500; flex: none; }
.peta-angka { padding: 10px 0 0; border-top: 1px solid var(--line); }
.peta-kurang { margin: 8px 0 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--raised); font-weight: 500; }
.peta-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.peta-list li { display: flex; gap: 10px; align-items: flex-start; }
.peta-list li.is-current { font-weight: 500; }
.peta-list .peta-warna { margin-top: 4px; }
.peta-list-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 14px; }
.peta-list-main .muted { font-size: 12.5px; }
.peta-lapis { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.peta-lapis .chip { text-decoration: none; padding: 5px 12px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 13px; }
.peta-lapis .chip-saya { background: var(--btn); border-color: var(--btn); color: var(--btn-text); }
.peta-lapis .chip-inactive { margin-top: 0; background: var(--raised); color: var(--muted); }
.peta-teliti { fill: var(--hex-fill); stroke: var(--cyan); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.peta-titik-inti { fill: var(--cyan); stroke: var(--page); stroke-width: 2; vector-effect: non-scaling-stroke; }
.peta-saya-ket { margin: 8px 0 0; font-size: 13px; }
.peta-warna.is-saya { background: var(--cyan); border-radius: 50%; }
.peta-tempat-titik { fill: var(--cyan); stroke: var(--page); stroke-width: 1.2; opacity: 0.9; }

/* Privacy page: the "what is stored" table (cards on a phone), and the section links. */
.privasi-isi { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.privasi-isi .chip { text-decoration: none; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 12.5px; padding: 4px 10px; }
.privasi-tabel { display: grid; gap: 10px; margin-top: 12px; }
.privasi-kepala { display: none; }
.privasi-baris { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.privasi-baris > span::before { content: attr(data-kol); display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.privasi-baris > span:first-child::before { display: none; }
@media (min-width: 900px) {
  .privasi-tabel { gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
  .privasi-kepala, .privasi-baris { display: grid; grid-template-columns: 1.3fr 1fr 0.9fr 1.2fr; gap: 14px; padding: 10px 12px; }
  .privasi-kepala { background: var(--raised); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
  .privasi-baris { border: 0; border-top: 1px solid var(--line); border-radius: 0; font-size: 13.5px; }
  .privasi-baris > span::before { display: none; }
}

/* "Paket internetmu" (C-143): one column of plain fields. */
.langganan-form { display: grid; gap: 14px; max-width: 460px; margin-top: 12px; }
.langganan-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; min-width: 0; }
.langganan-form label > span { font-weight: 500; }
.langganan-form label.is-bad input, .langganan-form label.is-bad select { border-color: var(--red); }
.langganan-form small { font-size: 12.5px; }
.langganan-form .btn { justify-self: start; }
.inline-form { display: inline; margin-left: 6px; }
.nilai-sebutan { font-size: 16px; }
.nilai-info { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--cyan); border-radius: 8px; background: var(--raised); font-size: 13.5px; }
#langganan-harga { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
#langganan-sebelumnya li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
/* "Jaringan tempat kamu tes" (C-157). */
.peran-daftar { list-style: none; padding-left: 0; }
.peran-daftar > li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.peran-daftar > li:last-child { border-bottom: 0; }
.peran-ubah.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; }
.peran-ubah select { width: auto; }
.peran-tombol .btn { flex: 1 1 100%; }
.peran-klaim { margin-top: 6px; padding: 10px 12px; border-left: 3px solid var(--cyan); border-radius: 8px; background: var(--raised); font-size: 13.5px; }
.peran-klaim p { margin: 0 0 6px; }
.peran-klaim small { display: block; margin-top: 6px; font-size: 12.5px; }
/* C-163: the place's name on the result card. */
.result-tempat { margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.result-tempat .result-when { margin: 0 0 6px; }
.tempat-nama-form { display: grid; gap: 8px; }
.tempat-saran { display: flex; flex-wrap: wrap; gap: 6px; }
/* C-165: the place page. */
.tempat-skor { margin: 10px 0; }
.tempat-pita { list-style: none; padding-left: 0; }
.tempat-pita > li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tempat-pita > li:last-child { border-bottom: 0; }
.tempat-pita-angka { font-weight: 500; }
.tempat-koreksi { padding: 8px 12px; border-left: 3px solid var(--cyan); border-radius: 8px; background: var(--raised); font-size: 13.5px; }
/* C-166: the tester's notice, and the claim's checks. */
.result-pembaca { padding: 8px 12px; border-left: 3px solid var(--cyan); border-radius: 8px; background: var(--raised); text-align: left; }
#klaim-pemeriksaan li { margin: 4px 0; }
.data-rinci { border-top: 0; padding: 4px 0 0; }

/* Phone: the bottom bar with the four tabs; the header in one row. */
.bottom-nav { display: none; }
@media (max-width: 767px) {
  .site-header { padding: 8px 16px; gap: 8px; }
  .logo { width: 82px; height: 26px; }
  /* Signed in on a phone: the mark alone, the address cut with "…", the way out as its icon. */
  .site-header.is-signed-in .logo { width: 26px; }
  .header-akun { flex: 1 1 auto; justify-content: flex-end; }
  .header-email { font-size: 12px; max-width: none; }
  .header-keluar-tombol { padding: 5px 7px; }
  .header-keluar-tombol span { display: none; }
  .sidebar { display: none; }
  .main { padding: 0 16px 96px; }
  .hero { padding: 18px 2px 2px; }
  .section-heading, .note-paid, .akun-note, .ajakan-tempat, .riwayat-ke-posisi { margin-left: 2px; margin-right: 2px; }
  .workshop-banner { margin: 16px 0 0; }
  .points-toast-box { right: 12px; bottom: 92px; }
  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: var(--card);
    border-top: 1px solid var(--line);
  }
  .bottom-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0 4px;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
  }
  .bottom-link .icon { width: 22px; height: 22px; }
  .bottom-link.is-active { color: var(--text); font-weight: 500; }
  .bottom-link.is-active .icon { color: var(--cyan); }
  .bottom-link.is-active::before { content: ""; position: absolute; top: -6px; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: var(--cyan); }
}
