/* S UNJANI: tampilan flat minimalis (PRD §4). Mobile-first: dasar = HP, lalu ≥768px tablet, ≥1024px komputer. */

/* Analitik (PRD §16.2), mengikuti komponen shell yang sama. */
.analytics-period { gap: 8px; }
.analytics-period .btn { min-height: 44px; }
.analytics-url { overflow-wrap: anywhere; min-width: 0; }
.analytics-stats .stat-label, .analytics-stats .stat-note { font-size: 0.875rem; }
.analytics-breakdowns { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
.analytics-ranking { display: flex; flex-direction: column; gap: var(--s4); }
.analytics-bar-label { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); min-width: 0; }
.analytics-bar-label strong { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.analytics-rank-link { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 44px; }
.analytics-bar-track { display: block; height: 6px; border-radius: 2px; background: var(--off-soft); overflow: hidden; }
.analytics-bar-track > span { display: block; height: 100%; background: var(--acc); border-radius: inherit; }
.analytics-activity > li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.analytics-activity > li:last-child { border-bottom: 0; padding-bottom: 0; }
.analytics-activity time { flex-shrink: 0; }
.analytics-chart { min-width: 0; }
.analytics-plot { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
.analytics-plot svg { width: 100%; height: 200px; cursor: crosshair; }
.analytics-y-axis { height: 200px; display: flex; flex-direction: column; justify-content: space-between; text-align: right; padding: 0 0 2px; font-variant-numeric: tabular-nums; }
.analytics-gridline { stroke: var(--line); vector-effect: non-scaling-stroke; }
.analytics-line { fill: none; stroke: var(--acc); stroke-width: 2; vector-effect: non-scaling-stroke; }
.analytics-point { fill: var(--card); stroke: var(--acc); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.analytics-point.is-selected { fill: var(--acc); stroke-width: 4; }
.analytics-x-axis { display: flex; justify-content: space-between; margin-left: 56px; }
.analytics-axis-title { text-align: center; margin-left: 56px; }
.analytics-chart-control { display: flex; flex-direction: column; gap: 4px; }
.analytics-chart-control input { width: 100%; height: 44px; margin: 0; accent-color: var(--acc); cursor: pointer; }
.analytics-chart-control output { min-height: 24px; font-variant-numeric: tabular-nums; }
.analytics-data summary { cursor: pointer; color: var(--acc); min-height: 44px; display: list-item; padding: 10px 0; }
.analytics-data table { width: 100%; text-align: left; border-collapse: collapse; }
.analytics-data th, .analytics-data td { padding: 8px; border-bottom: 1px solid var(--line); }
.analytics-data td { font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .analytics-breakdowns { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .analytics-stats .stat:last-child { grid-column: 1 / -1; } }

/* ---------- Token ---------- */
:root {
  --ink: #111827;
  --muted: #6b7280;
  --muted-on-soft: #4b5563; /* --muted di atas --off-soft hanya 4,39:1 */
  --faint: #9ca3af;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --bg: #f9fafb;
  --card: #ffffff;
  --acc: #155f49;
  --acc-hover: #0f4a39;
  --acc-soft: #ecf5f1;
  --ok: #15803d;
  --ok-soft: #f0fdf4;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-hover: #991b1b;
  --danger-soft: #fef2f2;
  --off-soft: #f3f4f6;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;

  --r-card: 8px;
  --r-ctl: 6px;
  --tap: 44px;              /* area sentuh minimal di HP */
  --bottom-nav-h: 64px;     /* tinggi menu bawah HP; 0 di layar lebar */
  --ease: 160ms ease;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

@media (min-width: 768px) {
  :root { --tap: 36px; --bottom-nav-h: 0px; }
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1 { font-size: 1.375rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
h3 { font-size: 1rem; line-height: 1.4; font-weight: 600; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 0.875em; }

:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 2px; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.75rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.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;
}
[hidden] { display: none !important; }

/* Tata letak kecil yang dipakai berulang */
.stack { display: flex; flex-direction: column; gap: var(--s4); }
.stack-sm { display: flex; flex-direction: column; gap: var(--s2); }
.row { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s2); padding-top: var(--s4); }
.pagination-pages { display: flex; align-items: center; justify-content: center; gap: var(--s1); }
.pagination-pages .btn { min-width: 44px; min-height: 44px; padding-inline: var(--s2); }
.pagination-pages > span { padding-inline: var(--s1); }
@media (max-width: 600px) { .pagination-pages { order: -1; flex-basis: 100%; } }

/* Detail link: URL panjang tetap terbaca pada layar kecil. */
.detail-hero { border-top: 3px solid var(--acc); }
.detail-short-url { font-size: clamp(1.25rem, 2.5vw, 2rem); font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); align-items: start; }
.detail-layout > *, .detail-facts > div { min-width: 0; }
.detail-wrap, .detail-facts dd { overflow-wrap: anywhere; }
.detail-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s4); margin: 0; }
.detail-facts dt { font-size: .875rem; color: var(--muted); margin-bottom: var(--s1); }
.detail-facts dd { margin: 0; font-weight: 500; }
.detail-qr-frame { display: grid; place-items: center; min-height: 240px; padding: var(--s3); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); }
.detail-qr-frame img { width: 100%; max-width: 240px; height: auto; aspect-ratio: 1; object-fit: contain; }
@media (min-width: 768px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Ikon (sprite SVG, lihat public/app/icons.svg) ---------- */
.icon {
  width: 18px; height: 18px; flex-shrink: 0;
  stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 22px; height: 22px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--tap); padding: 0 var(--s4);
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: var(--card); color: var(--ink);
  font-weight: 600; font-size: 0.9375rem; line-height: 1.2; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.btn:hover { background: var(--off-soft); text-decoration: none; }
.btn-primary { background: var(--acc); border-color: var(--acc); color: #fff; }
.btn-primary:hover { background: var(--acc-hover); border-color: var(--acc-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-hover); border-color: var(--danger-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--off-soft); color: var(--ink); }
.btn-ghost[aria-current="page"], .btn-ghost[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc); }
.btn-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--acc); font-weight: 500; }
.btn-link:hover { background: none; text-decoration: underline; }
.btn-block { width: 100%; }
/* Tombol ikon saja: wajib aria-label di HTML */
.btn-icon { width: var(--tap); padding: 0; flex-shrink: 0; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
/* Saat request berjalan: <button aria-busy="true"> menampilkan putaran kecil */
.btn[aria-busy="true"] { cursor: progress; }
.btn[aria-busy="true"]::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.label .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: var(--tap); padding: 0 var(--s3);
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: var(--card); color: var(--ink);
  font-size: 1rem; /* 16px: mencegah zoom otomatis di iOS */
  transition: border-color var(--ease), box-shadow var(--ease);
}
.textarea { padding: var(--s2) var(--s3); min-height: 88px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft);
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--off-soft); color: var(--muted); cursor: not-allowed; }
.hint { font-size: 0.8125rem; color: var(--muted); }
.field-error { font-size: 0.8125rem; color: var(--danger); display: flex; align-items: center; gap: var(--s1); }
.field-error:empty { display: none; }

/* Input berawalan, mis. "s.unjani.ac.id/" + alias */
.input-group {
  display: flex; align-items: stretch; min-height: var(--tap);
  border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--card);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.input-group:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-soft); }
.input-group:has([aria-invalid="true"]) { border-color: var(--danger); }
.input-group .prefix {
  display: flex; align-items: center; padding: 0 var(--s2) 0 var(--s3);
  color: var(--muted); font-size: 0.9375rem; white-space: nowrap;
  border-right: 1px solid var(--line); background: var(--bg);
  border-radius: var(--r-ctl) 0 0 var(--r-ctl);
}
.input-group .input { border: 0; box-shadow: none; min-height: 0; min-width: 0; }
.input-group .input:focus { box-shadow: none; }
.input-group .btn-icon { border: 0; border-left: 1px solid var(--line); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; min-height: 0; }

.check { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); cursor: pointer; font-size: 0.9375rem; }
.check input { width: 18px; height: 18px; accent-color: var(--acc); margin: 0; }

.form-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}

/* Opsi lanjutan: <details class="disclosure"><summary>…</summary>…</details> */
.disclosure > summary {
  display: inline-flex; align-items: center; gap: var(--s1);
  min-height: var(--tap); cursor: pointer; list-style: none;
  color: var(--acc); font-weight: 500; font-size: 0.9375rem;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after {
  content: ""; width: 7px; height: 7px; margin-left: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform var(--ease);
}
.disclosure[open] > summary::after { transform: rotate(45deg); }
.disclosure > .disclosure-body { padding-top: var(--s3); }

/* ---------- Kartu & panel isi ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s4); min-width: 0;
}
.card > h2 { display: flex; align-items: center; gap: var(--s2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: var(--s2); }
@media (min-width: 1024px) { .card { padding: var(--s5); } }

/* Angka ringkas */
.stats { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s3) var(--s4); min-width: 0; }
.stat-label { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--muted); }
.stat-value { font-size: 1.5rem; font-weight: 650; line-height: 1.2; margin-top: var(--s1); font-variant-numeric: tabular-nums; }
.stat-note { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

/* ---------- Chip / status (selalu berteks atau berikon, bukan warna saja) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; line-height: 1.5; white-space: nowrap;
  background: var(--off-soft); color: var(--muted-on-soft);
}
.chip .icon { width: 12px; height: 12px; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-danger { background: var(--danger-soft); color: var(--danger); }
.chip-acc { background: var(--acc-soft); color: var(--acc); }
.chip-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }

/* ---------- Daftar (link, bio) ---------- */
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.list-item {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); border-top: 1px solid var(--line); min-width: 0;
}
.list-item:first-child { border-top: 0; }
.list-item:hover { background: var(--bg); }
.list-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-sub { font-size: 0.8125rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-meta { display: flex; align-items: center; gap: 4px; font-size: 0.875rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.list-actions { display: flex; align-items: center; gap: var(--s1); flex-shrink: 0; }
/* HP: judul/URL mendapat satu baris penuh; klik + aksi pindah ke baris di bawahnya (judul tidak lagi terpotong ~10 huruf) */
@media (max-width: 767px) {
  .list-item { flex-wrap: wrap; }
  .list-item > .list-main { flex: 1 1 calc(100% - 52px); }
  .list-item > .list-main:has(~ .list-meta) .list-title { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .list-item > .list-meta { margin-left: 48px; }
  .list-item > .list-actions { margin-left: auto; }
}
.list-foot { padding: var(--s3) var(--s4); border-top: 1px solid var(--line); text-align: center; }

/* Ikon kotak kecil di kiri baris (favicon / inisial) */
.thumb {
  width: 36px; height: 36px; border-radius: var(--r-ctl); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--off-soft); color: var(--muted-on-soft); overflow: hidden; font-weight: 600; font-size: 0.8125rem;
}
.thumb img { width: 20px; height: 20px; object-fit: contain; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--acc-soft); color: var(--acc); font-weight: 600; font-size: 0.8125rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Keadaan kosong */
.empty { text-align: center; padding: var(--s6) var(--s4); color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
.empty .icon { width: 40px; height: 40px; color: var(--faint); stroke-width: 1.5; }
.empty-title { color: var(--ink); font-weight: 600; }

/* Pesan flash di atas konten */
.alert {
  display: flex; align-items: flex-start; gap: var(--s2);
  padding: var(--s3) var(--s4); border-radius: var(--r-card); border: 1px solid;
  font-size: 0.9375rem;
}
.alert-ok { background: var(--ok-soft); border-color: #bbf7d0; color: #14532d; }
.alert-danger { background: var(--danger-soft); border-color: #fecaca; color: #7f1d1d; }
.alert-warn { background: var(--warn-soft); border-color: #fde68a; color: #78350f; }

/* Menu ⋯ kecil: <div class="menu" role="menu"> di dalam elemen ber-position relative */
.menu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 200px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s1); box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}
.menu-item {
  display: flex; align-items: center; gap: var(--s2); width: 100%;
  min-height: var(--tap); padding: 0 var(--s3); border: 0; border-radius: var(--r-ctl);
  background: none; color: var(--ink); font-size: 0.9375rem; text-align: left; cursor: pointer; text-decoration: none;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--off-soft); text-decoration: none; }
.menu-item.danger { color: var(--danger); }
.menu-sep { height: 1px; background: var(--line); margin: var(--s1) 0; }
.has-menu { position: relative; }

/* ---------- Dialog, panel samping, lembar bawah (semua memakai <dialog>) ---------- */
dialog {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 0; color: var(--ink); background: var(--card);
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
}
dialog::backdrop { background: rgba(17, 24, 39, 0.4); }
dialog[open] { animation: fade-in 160ms ease-out; }
.dialog-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.dialog-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: var(--s3) var(--s3) var(--s3) var(--s5); border-bottom: 1px solid var(--line);
}
.dialog-actions {
  display: flex; gap: var(--s2); justify-content: flex-end; flex-wrap: wrap;
  padding: var(--s3) var(--s5) var(--s5);
}
/* Di HP tombol aksi dialog ditumpuk penuh, tombol utama di atas */
@media (max-width: 767px) {
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .btn { width: 100%; }
}

/* Panel: layar penuh di HP, panel kanan di ≥768px */
dialog.panel {
  margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
  border: 0; border-radius: 0; display: none; flex-direction: column;
}
dialog.panel[open] { display: flex; animation: slide-up 200ms ease-out; }
.panel-body { flex: 1; overflow-y: auto; padding: var(--s4); }
.panel-foot {
  display: flex; gap: var(--s2); justify-content: flex-end;
  padding: var(--s3) var(--s4); padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--card);
}
@media (min-width: 768px) {
  dialog.panel {
    margin: 0 0 0 auto; width: min(480px, 100vw); border-left: 1px solid var(--line);
  }
  dialog.panel[open] { animation: slide-left 200ms ease-out; }
  .panel-body { padding: var(--s5); }
  .panel-foot { padding: var(--s3) var(--s5); }
}

/* Lembar bawah: menempel di bawah pada HP, dialog biasa di ≥768px */
@media (max-width: 767px) {
  dialog.sheet {
    margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 90dvh;
    border-radius: 12px 12px 0 0; border-width: 1px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  dialog.sheet[open] { animation: slide-up 200ms ease-out; }
  dialog.sheet::before {
    content: ""; display: block; width: 36px; height: 4px; border-radius: 2px;
    background: var(--line-strong); margin: var(--s2) auto 0;
  }
}
@media (min-width: 768px) { dialog.sheet { width: min(560px, calc(100vw - 32px)); } }

/* ---------- Toast ---------- */
.toasts {
  position: fixed; z-index: 100; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--bottom-nav-h) + var(--s4) + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  width: max-content; max-width: calc(100vw - 32px); pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: var(--s2);
  padding: 10px var(--s4); border-radius: var(--r-card);
  background: var(--ink); color: #fff; font-size: 0.9375rem;
  animation: slide-up 180ms ease-out; pointer-events: auto;
}
.toast-danger { background: var(--danger); }
@media (min-width: 768px) {
  .toasts { left: auto; right: var(--s5); transform: none; bottom: var(--s5); align-items: flex-end; }
}

/* ---------- Kerangka aplikasi (views/app/top.ejs + bottom.ejs) ----------
   HP <768: bar atas + menu bawah · tablet 768–1023: rail ikon · komputer ≥1024: sidebar berlabel */
.skip-link {
  position: absolute; left: var(--s2); top: -64px; z-index: 200;
  padding: var(--s2) var(--s3); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-ctl);
}
.skip-link:focus { top: var(--s2); }
.brand { display: flex; align-items: center; gap: var(--s2); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: var(--r-ctl); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--acc); color: #fff; font-size: 0.875rem;
}
.content {
  display: flex; flex-direction: column; gap: var(--s4);
  max-width: 1200px; margin: 0 auto; outline: none;
  padding: var(--s4) var(--s4) calc(var(--bottom-nav-h) + var(--s5) + env(safe-area-inset-bottom));
}
.flashes { display: flex; flex-direction: column; gap: var(--s2); }

/* Top bar: selalu ada. HP = logo + avatar; ≥768 = judul halaman + avatar/nama/peran */
.topbar {
  position: sticky; top: 0; z-index: 30; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding: 0 var(--s2) 0 var(--s4); background: var(--card); border-bottom: 1px solid var(--line);
}
.topbar-title { display: none; font-weight: 600; font-size: 1rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-btn {
  display: flex; align-items: center; gap: var(--s2); min-width: 0; max-width: 60%;
  min-height: 44px; padding: 4px; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; /* 44px juga di tablet (layar sentuh) */
  transition: background-color var(--ease);
}
.account-btn:hover { background: var(--off-soft); }
.account-text { display: none; flex-direction: column; min-width: 0; line-height: 1.25; text-align: left; }
.account-text b { font-size: 0.875rem; font-weight: 600; }
.account-text span { font-size: 0.75rem; color: var(--muted); }
.account-caret { transform: rotate(90deg); color: var(--muted); display: none; }
.sidebar { display: none; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--card); border-top: 1px solid var(--line);
}
.tab {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; background: none; color: var(--muted); font-size: 0.75rem; font-weight: 500; cursor: pointer;
}
.tab:hover { color: var(--ink); text-decoration: none; }
.tab[aria-current="page"] { color: var(--acc); font-weight: 600; }
.tab .icon { width: 22px; height: 22px; }
.fab {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; background: var(--acc); color: #fff;
}
.tab-create:hover .fab { background: var(--acc-hover); }

.account-menu { display: flex; flex-direction: column; gap: 2px; padding: var(--s2); }
.account-menu-profile { display: flex; align-items: center; gap: var(--s3); flex: 1; min-width: 0; }
.account-menu-profile .avatar { width: 40px; height: 40px; font-size: 1rem; }
.account-menu-identity { flex: 1; min-width: 0; }
.account-menu-name { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: 1rem; line-height: 1.35; font-weight: 650; }
.account-menu-role { display: inline-flex; margin-top: var(--s1); padding: 2px 8px; border-radius: 999px; background: var(--acc-soft); color: var(--acc); font-size: 0.75rem; font-weight: 600; }
.account-menu-close { align-self: flex-start; }
.account-menu .menu-item { border-radius: var(--r-ctl); transition: background-color 120ms ease, transform 120ms ease; }
.account-menu .menu-item:active { transform: scale(0.99); }
.account-menu .menu-item .icon { color: var(--muted); }
.account-menu .menu-item.danger .icon { color: currentColor; }
.account-menu .menu-sep { margin-inline: var(--s3); }
.menu-heading { padding: var(--s2) var(--s3) var(--s1); font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.nav-item {
  display: flex; align-items: center; gap: var(--s3); min-height: 40px; padding: 0 var(--s3);
  border-radius: var(--r-ctl); color: var(--muted); font-size: 0.9375rem; font-weight: 500;
}
.nav-item:hover { background: var(--off-soft); color: var(--ink); text-decoration: none; }
.nav-item[aria-current="page"] { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
.nav-count { margin-left: auto; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav-item[aria-current="page"] .nav-count { color: var(--acc); }
.nav-short { display: none; }
.nav-section { margin: var(--s4) var(--s3) var(--s1); font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

@media (min-width: 768px) {
  .bottom-nav, .only-mobile { display: none; }
  .topbar { padding: 0 var(--s3) 0 var(--s5); }
  .topbar-brand { display: none; }
  .topbar-title { display: block; }
  .account-btn { padding: 4px var(--s3) 4px 4px; }
  .account-text { display: flex; }
  .account-caret { display: block; }
  /* menu akun jadi menu tarik-turun di kanan atas, bukan lembar di tengah */
  dialog#account-menu { margin: 60px var(--s3) auto auto; width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 76px); }
  dialog#account-menu::backdrop { background: transparent; }
  body.app { padding-left: 80px; }
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: 80px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 2px; padding: var(--s3) var(--s2);
    background: var(--card); border-right: 1px solid var(--line);
  }
  .sidebar .brand { justify-content: center; margin-bottom: var(--s3); }
  .sidebar .nav-label, .sidebar .nav-count { display: none; }
  .nav-item { flex-direction: column; justify-content: center; gap: 2px; min-height: 56px; padding: var(--s1); }
  .nav-short { display: block; font-size: 0.75rem; line-height: 1.2; text-align: center; }
  .nav-section { height: 1px; margin: var(--s2); font-size: 0; background: var(--line); }
  .content { padding: var(--s5); }
}
@media (min-width: 1024px) {
  body.app { padding-left: 240px; }
  .sidebar { width: 240px; padding: var(--s4) var(--s3); }
  .sidebar .brand { justify-content: flex-start; padding: 0 var(--s3); }
  .sidebar .nav-label, .sidebar .nav-count { display: inline; }
  .nav-item { flex-direction: row; justify-content: flex-start; gap: var(--s3); min-height: 40px; padding: 0 var(--s3); }
  .nav-short { display: none; }
  .nav-section { height: auto; margin: var(--s4) var(--s3) var(--s1); font-size: 0.75rem; background: none; }
  .topbar { padding-left: var(--s6); }
  .content { padding: var(--s6); }
}

/* Logo: lengkap di HP & sidebar komputer, "S" di rail tablet */
.brand img { display: block; height: 28px; width: auto; }
.sidebar .logo-mark { display: none; }
@media (min-width: 768px) and (max-width: 1023px) { .sidebar .logo-mark { display: block; } .sidebar .logo-full { display: none; } }

/* Dashboard: daftar link + bio. HP: tumpuk; ≥1024: dua kolom. Kartu angka ke-3 disembunyikan di HP. */
.dash-grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); align-items: start; }
.dash-grid .list-item[href] { color: var(--acc); font-weight: 500; }
.dash-grid .list-item[href]:hover { text-decoration: none; background: var(--acc-soft); }
.only-wide { display: none; }
@media (min-width: 768px) { .only-wide { display: block; } }
@media (min-width: 1024px) { .dash-grid { grid-template-columns: minmax(0, 1fr) 300px; } }

/* Kelola link */
.toolbar { display: flex; flex-direction: column; gap: var(--s3); }
@media (min-width: 768px) { .toolbar { flex-direction: row; align-items: center; } .toolbar .grow { max-width: 360px; } }
.input-group .prefix .icon { color: var(--muted); }
[data-filter] .btn { min-height: var(--tap); }
.list-item.is-off .list-title { color: var(--muted); }
.list-title a { color: inherit; }

/* Daftar bio: 1 kolom HP, 2 tablet, 3 komputer */
.bio-grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .bio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .bio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.bio-card { display: flex; flex-direction: column; gap: var(--s3); }
.bio-card-head { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.bio-card .list-title { font-size: 1rem; }
.bio-card-actions { display: flex; align-items: center; gap: var(--s2); margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--line); }
.bio-card-actions .btn:first-child { flex: 1; }
.thumb-lg { width: 48px; height: 48px; font-size: 1rem; }
.thumb-lg img { width: 100%; height: 100%; object-fit: cover; }
.danger-text { color: var(--danger); }
.danger-text:hover { background: var(--danger-soft); color: var(--danger); }

/* Editor bio */
.flip { transform: rotate(180deg); }
.bio-editor { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr); align-items: start; }
.bio-editor h2 { display: flex; align-items: center; gap: var(--s2); }
.bio-links { display: flex; flex-direction: column; gap: var(--s3); counter-reset: none; }
.bio-link { display: flex; flex-direction: column; gap: var(--s2); align-items: stretch; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); }
.bio-link-fields { flex: 1; min-width: 0; display: grid; gap: var(--s2); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .bio-link-fields { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } .bio-link-fields .field-error { grid-column: 1 / -1; } }
.bio-link-tools { display: flex; flex-direction: row; justify-content: flex-end; gap: 2px; }
@media (min-width: 768px) { .bio-link { flex-direction: row; align-items: flex-end; } }
.bio-link-tools .btn:disabled { opacity: 0.3; }
.logo-picker { display: flex; align-items: center; gap: var(--s4); }
.thumb-xl { width: 72px; height: 72px; border-radius: var(--r-card); }
.thumb-xl img { width: 100%; height: 100%; object-fit: cover; }
.logo-picker label.btn { cursor: pointer; }
.logo-picker input[type="file"]:focus-visible + .btn { outline: 2px solid var(--acc); outline-offset: 2px; }
.preset-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .preset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.preset { position: relative; display: flex; flex-direction: column; gap: var(--s2); padding: var(--s2); border: 2px solid var(--line); border-radius: var(--r-card); cursor: pointer; }
.preset input { position: absolute; opacity: 0; pointer-events: none; }
.preset:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); }
.preset:has(input:focus-visible) { outline: 2px solid var(--acc); outline-offset: 2px; }
.preset-swatch { height: 56px; border-radius: var(--r-ctl); display: flex; align-items: center; justify-content: center; }
.preset-swatch span { width: 60%; height: 12px; border-radius: 999px; }
.preset-name { font-size: 0.875rem; font-weight: 600; text-align: center; }
.color-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.color-field { display: flex; align-items: center; gap: var(--s2); min-height: var(--tap); font-size: 0.9375rem; cursor: pointer; }
.color-field input { width: 40px; height: 32px; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: none; cursor: pointer; }
/* Tombol simpan selalu terlihat: menempel di bawah layar (di atas menu bawah HP) */
.form-actions .btn { min-width: 0; padding: 0 var(--s3); }
@media (max-width: 479px) { .form-actions .hide-xs { display: none; } .form-actions .only-narrow { width: var(--tap); } }
.form-actions {
  position: sticky; z-index: 20; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  display: flex; justify-content: flex-end; gap: var(--s2);
  margin: 0 calc(var(--s4) * -1); padding: var(--s3) var(--s4);
  background: var(--card); border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .form-actions { margin: 0; border: 1px solid var(--line); border-radius: var(--r-card); bottom: var(--s4); } }

/* Pratinjau bio: meniru views/bio/show.ejs, dibatasi di .bp agar tidak bocor ke halaman */
.bio-preview-col { display: none; }
.only-narrow { display: inline-flex; }
@media (min-width: 1024px) {
  .bio-editor { grid-template-columns: minmax(0, 1fr) 340px; }
  .bio-preview-col { display: block; position: sticky; top: var(--s5); }
  .only-narrow { display: none; }
}
.phone { width: 320px; max-width: 100%; height: 600px; margin: var(--s2) auto; border: 10px solid #111827; border-radius: 36px; overflow: hidden; background: #fff; }
.phone .bp { height: 100%; overflow-y: auto; }
.preview-dialog-body { flex: 1; overflow-y: auto; }
.preview-dialog-body .bp { min-height: 100%; }
.bp { background: var(--bg-solid, #0a241c); color: #0f1f2d; padding: 24px 12px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.bp.is-gradient { background: radial-gradient(520px 320px at 12% -8%, rgba(255,255,255,.22), transparent 66%), radial-gradient(460px 280px at 92% 8%, rgba(255,255,255,.16), transparent 65%), linear-gradient(148deg, var(--bg-from) 0%, var(--bg-to) 100%); }
.bp-card { border-radius: 22px; border: 1px solid rgba(14,30,48,.2); background: linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,255,255,.88)); box-shadow: 0 20px 48px rgba(2,14,27,.36); padding: 24px 16px 16px; }
.bp-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 18px; }
.bp-logo { width: 88px; height: 88px; border-radius: 20px; overflow: hidden; border: 2px solid rgba(255,255,255,.75); box-shadow: 0 14px 28px rgba(0,0,0,.24); background: rgba(255,255,255,.9); display: grid; place-items: center; color: #1c465f; font-weight: 800; font-size: 1.6rem; }
.bp-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bp-title { margin: 0; font-size: 1.25rem; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; }
.bp-chip { margin: 0; display: inline-flex; align-items: center; gap: 7px; background: rgba(44,76,98,.1); border: 1px solid rgba(44,76,98,.18); color: #344d61; border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 700; }
.bp-chip i { width: 6px; height: 6px; border-radius: 50%; background: rgba(40,88,115,.78); }
.bp-links { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bp-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 14px; background: #fff; border: 1px solid rgba(26,53,72,.13); padding: 12px; box-shadow: 0 10px 20px rgba(15,35,49,.09); }
.bp-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.bp-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(18,52,71,.1); border: 1px solid rgba(18,52,71,.16); color: #1c465f; font-size: .92rem; font-weight: 800; text-transform: uppercase; }
.bp-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #102a3b; font-weight: 700; font-size: .95rem; }
.bp-visit { flex: 0 0 auto; padding: 7px 10px; border-radius: 10px; background: var(--button-bg, #155f49); color: var(--button-text, #fff); border: 1px solid rgba(255,255,255,.3); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; box-shadow: 0 8px 14px rgba(0,0,0,.14); }
.bp-empty { margin: 10px 0 0; border-radius: 14px; background: rgba(255,255,255,.76); border: 1px dashed rgba(25,54,75,.26); text-align: center; color: #1f3f55; font-size: .9rem; padding: 16px; }
.bp-foot { margin-top: 16px; text-align: center; font-size: .75rem; color: rgba(255,255,255,.88); text-shadow: 0 1px 8px rgba(0,0,0,.3); }

/* Pengguna */
.toolbar-select { width: auto; min-width: 150px; }
.placement { border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s3) var(--s4) var(--s4); margin: 0; min-width: 0; }
.placement legend { padding: 0 var(--s1); }
.secret-box { display: flex; align-items: center; gap: var(--s2); padding: var(--s3); border: 1px dashed var(--line-strong); border-radius: var(--r-card); background: var(--bg); }
.secret-box code { flex: 1; font-size: 1.25rem; font-weight: 600; letter-spacing: 0.06em; word-break: break-all; user-select: all; }

/* Tab */
.tabs { display: flex; gap: var(--s1); border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-btn { min-height: var(--tap); padding: 0 var(--s4); border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-weight: 600; font-size: 0.9375rem; cursor: pointer; white-space: nowrap; }
.tab-btn:hover { color: var(--ink); }
.tab-btn[aria-selected="true"] { color: var(--acc); border-bottom-color: var(--acc); }

/* Profil */
.profile-grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1024px) { .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .profile-grid > .stats-profile { grid-column: 1 / -1; } }
.avatar-xl { width: 72px; height: 72px; font-size: 1.25rem; }
.ro-list { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0; }
.ro-list dt { font-size: 0.8125rem; color: var(--muted); }
.ro-list dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.ro-box { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bg); font-size: 0.9375rem; }
.code { margin: 0 0 var(--s2); padding: var(--s3); overflow-x: auto; background: var(--ink); color: #e5e7eb; border-radius: var(--r-ctl); font: 0.8125rem/1.5 var(--mono); }

/* QR Code */
.qr-grid .qr-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--off-soft); border-radius: var(--r-ctl); padding: var(--s3); color: var(--muted); font-size: 0.8125rem; }
.qr-grid .qr-thumb img { width: 100%; height: 100%; object-fit: contain; }
.qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .qr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .qr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grow-btn { flex: 1; }
.qr-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s2); min-height: 240px; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
.qr-preview .qr-canvas canvas { max-width: 100%; height: auto !important; width: min(280px, 100%) !important; }
.preview-dialog-body.qr-preview { border: 0; border-radius: 0; }

/* Halaman 404 (views/404.ejs) */
.notfound { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: var(--s5) var(--s4); }
.nf { width: min(480px, 100%); display: flex; flex-direction: column; align-items: center; gap: var(--s3); text-align: center; }
.nf-logo { height: 42px; width: auto; margin-bottom: var(--s3); }
.nf-code { margin: 0; font-size: 4.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: var(--acc); }
.nf-path { margin: 0; max-width: 100%; }
.nf-path code { display: inline-block; max-width: 100%; padding: 4px var(--s3); border-radius: var(--r-ctl); background: var(--off-soft); overflow-wrap: anywhere; }
.nf-actions { justify-content: center; margin-top: var(--s2); }

/* Hasil buat link */
.result-url { font-size: 1.25rem; font-weight: 650; word-break: break-all; }
.result-body { display: flex; flex-direction: column; align-items: center; gap: var(--s4); }
.result-body > .grow { width: 100%; }
.result-qr { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.qr-box { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--off-soft); padding: var(--s2); }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 768px) {
  .result-body { flex-direction: row; align-items: flex-start; }
  .qr-box { width: 160px; height: 160px; }
}

/* ---------- Gerak ---------- */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes slide-left { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  /* Putaran tombol sibuk tetap berarti; ganti jadi titik diam */
  .btn[aria-busy="true"]::before { animation: none; border-right-color: currentColor; opacity: 0.6; }
}
