:root {
  color-scheme: light;
  --bg: #faf7f2;
  --panel: #ffffff;
  --text: #2a2118;
  --muted: #7b6f62;
  --line: #eadfcd;
  --primary: #9a6f1e;
  --primary-dark: #7a5716;
  --accent: #b0832a;
  --soft: #f4ede1;
  --gold-soft: #f6ecd6;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --danger-bg: #fff1f2;
  --danger: #be123c;
  --shadow: 0 18px 45px rgba(60,40,10,0.08);
}

/* Utilitas CSP: menggantikan style="" statis agar style-src-attr dapat ditutup. */
.u-hidden { display: none; }
.u-inline { display: inline; }
.u-fw-600 { font-weight: 600; }
.u-fw-700 { font-weight: 700; }
.u-mt-5 { margin-top: 5px; }
.u-mt-8 { margin-top: 8px; }
.u-mt-12 { margin-top: 12px; }
.u-mt-18 { margin-top: 18px; }
.u-w-full { width: 100%; }
.cart-badge {
  display: none; background: #9a6f1e; color: #fff; border-radius: 999px;
  padding: 0 7px; font-size: .72rem; font-weight: 800;
}
.password-panel { max-width: 520px; margin: 0 auto; display: block; }
.alert-success { color: #166534; background: #dcfce7; border-color: #bbf7d0; }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.home-page {
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

.auth-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(100%, 420px);
}

.auth-panel,
.search-panel,
.table-panel,
.empty-state {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-panel {
  padding: 32px;
}

.auth-panel h1,
.topbar h1 {
  margin-top: 6px;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1.05;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.form-stack,
.upload-form,
.user-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: #4a3f33;
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(154,111,30,0.13);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.secondary {
  min-height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}

.helper {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.alert {
  margin-top: 18px;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: var(--danger-bg);
  color: var(--danger);
  padding: 12px 14px;
  font-weight: 700;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 28px 0;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links a,
.user-pill,
.count-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  padding: 9px 13px;
  color: #4a3f33;
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links a:hover {
  border-color: rgba(154,111,30,0.45);
  color: var(--primary-dark);
}

.page-shell {
  width: calc(100% - 40px);
  margin: 0 auto;
  padding-bottom: 48px;
}

.home-hero {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 18px;
  text-align: center;
}

.brand-name {
  color: #3a2f24;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
}

.home-hero h1 {
  width: min(560px, 100%);
  margin: 8px auto 18px;
  color: #2a2118;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.18;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid #f1e9db;
  border-bottom: 1px solid #f1e9db;
  padding: 11px 0;
}

.home-nav a,
.home-nav .nav-action {
  color: #7b6f62;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-nav .nav-action {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  padding: 0;
}

.home-nav a:hover,
.home-nav .nav-action:hover {
  color: #2a2118;
}

.home-nav a.active {
  color: #9a6f1e;
}

.compact-search {
  width: min(760px, 100%);
  margin: 0 auto 20px;
}

.compact-search .upload-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-top: 0;
}

.compact-search .file-box {
  border-style: solid;
  background: #fff;
}

.search-panel,
.table-panel,
.empty-state {
  padding: 24px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: end;
  gap: 24px;
}

.search-panel h2,
.results-section h2,
.table-panel h2 {
  font-size: 1.35rem;
  line-height: 1.25;
}

.file-box {
  border: 1px dashed #aab7c8;
  border-radius: 8px;
  background: #fbf8f3;
  padding: 14px;
}

.file-box input {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.results-section,
.table-panel {
  margin-top: 24px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.home-page .results-section {
  margin-top: 10px;
}

.gallery-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
  text-align: center;
}

.gallery-heading h2 {
  color: #2a2118;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.masonry-grid {
  columns: 5 180px;
  column-gap: 12px;
}

.masonry-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
  overflow: hidden;
  background: #f4ede1;
  break-inside: avoid;
}

.masonry-item img {
  display: block;
  width: 100%;
  min-height: 160px;
  object-fit: cover;
}

/* Placeholder produk tanpa foto: kotak persegi rapi (bukan kotak gepeng) */
.masonry-item .no-photo {
  aspect-ratio: 1;
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 14px;
  background: linear-gradient(135deg, #f4ede1, #eadfcd);
  color: #a89c8b;
  text-align: center;
}
.masonry-item .no-photo::before {
  content: "🖼️";
  font-size: 1.7rem;
  line-height: 1;
  opacity: 0.65;
}
.masonry-item .no-photo span {
  font-weight: 800;
  font-size: 0.84rem;
  color: #5e5245;
  word-break: break-word;
}
.masonry-item .no-photo small {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* N8 mode "pilih untuk dibagikan" (centang di kartu) + bar mengambang */
.share-mode .masonry-item { cursor: pointer; }
.share-mode .masonry-item::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px;
  border-radius: 50%; border: 2px solid #fff; background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); z-index: 4;
}
.share-mode .masonry-item.share-picked::after {
  content: "✓"; background: #9a6f1e; color: #fff; display: grid; place-items: center;
  font-weight: 900; font-size: 0.9rem; border-color: #9a6f1e;
}
.share-mode .masonry-item.share-picked { outline: 3px solid #9a6f1e; outline-offset: -3px; }
#share-bar { position: fixed; z-index: 50; }
#share-bar.idle { right: 16px; bottom: 16px; }
#share-bar.active {
  left: 0; right: 0; bottom: 0; display: flex; gap: 10px; align-items: center; justify-content: center;
  padding: 12px 14px; background: #fff; border-top: 1px solid #ece3d3; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}
.share-fab {
  background: #9a6f1e; color: #fff; border: none; border-radius: 999px; padding: 12px 18px;
  font-weight: 800; font-size: 0.9rem; box-shadow: 0 4px 14px rgba(154,111,30,0.4); cursor: pointer;
}
.share-count { font-weight: 800; color: #4a3f33; }
.share-exp { font-size: .82rem; color: #5e5245; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.share-exp select { font: inherit; padding: 8px 10px; border: 1px solid #d9c9ad; border-radius: 10px; background: #fff; color: #4a3f33; font-weight: 700; }
.share-go { background: #16a34a; color: #fff; border: none; border-radius: 10px; padding: 12px 18px; font-weight: 800; cursor: pointer; }
.share-go:disabled { background: #d9c9ad; cursor: default; }
.share-cancel { background: #f4ede1; color: #5e5245; border: none; border-radius: 10px; padding: 12px 16px; font-weight: 700; cursor: pointer; }

.masonry-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 3px;
  padding: 34px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(42,33,24,0.76));
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.masonry-item:hover .masonry-caption {
  opacity: 1;
}

.masonry-caption p,
.masonry-caption span {
  font-size: 0.72rem;
  font-weight: 800;
}

.masonry-caption h3 {
  font-size: 0.9rem;
  line-height: 1.25;
}

/* Perbesar gambar (lightbox) — tombol kaca pembesar di pojok kanan-bawah gambar,
   klik buka overlay gambar besar. stopPropagation di tombol supaya tidak memicu
   popup Req Order milik kartu. Dipakai bersama (home + bisa Riwayat Toko). */
.card-media { position: relative; display: block; }
.zoom-btn {
  position: absolute; right: 6px; bottom: 6px; z-index: 4;
  width: 30px; height: 30px; padding: 0;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: rgba(42,33,24,0.72); color: #fff;
  font-size: 0.9rem; line-height: 1; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: background 0.12s, transform 0.12s;
}
.zoom-btn:hover { background: #9a6f1e; transform: scale(1.08); }
.zoom-overlay {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: rgba(42,33,24,0.86);
  align-items: center; justify-content: center; padding: 24px;
}
.zoom-overlay.open { display: flex; }
.zoom-figure {
  margin: 0; max-width: 96vw; max-height: 92vh;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.zoom-figure img {
  max-width: 96vw; max-height: 84vh; object-fit: contain;
  border-radius: 8px; background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.zoom-figure figcaption {
  color: #ece3d3; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
}
.zoom-close {
  position: fixed; top: 14px; right: 20px; z-index: 91;
  color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; opacity: 0.85;
}
.zoom-close:hover { opacity: 1; }

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(60,40,10,0.07);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eef2f6;
}

.product-content {
  display: grid;
  gap: 16px;
  padding: 14px;
}

.product-code {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.product-card h3 {
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.35;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.score-row strong {
  color: var(--primary-dark);
}

.empty-state {
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 6px;
}

.user-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.status.active {
  background: #dcfce7;
  color: #166534;
}

.status.inactive {
  background: #fee2e2;
  color: #991b1b;
}

@media (max-width: 820px) {
  .topbar,
  .search-panel {
    display: grid;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .search-panel,
  .user-form {
    grid-template-columns: 1fr;
  }

  .compact-search .upload-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar,
  .page-shell {
    width: calc(100% - 24px);
  }

  .auth-panel,
  .search-panel,
  .table-panel,
  .empty-state {
    padding: 20px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links a,
  .user-pill,
  .count-pill {
    width: 100%;
    text-align: center;
  }
}

/* === Penyempurnaan UI 2026-06-08 === */
.brand-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
}
.imp-back { color: #be123c !important; }
.count-soft { color: #be123c; font-size: 0.72rem; font-weight: 800; }
.heading-soft { color: #a89c8b; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; text-align: center; margin: 6px 0 14px; }
input, select, .btn { border-radius: 10px; }
.bk-input {
  margin-top: 8px !important; padding: 13px 15px !important; border: 1px solid var(--line) !important;
  border-radius: 10px !important; background: #fff !important; font-size: 1rem !important;
}
.bk-input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 4px rgba(154,111,30,0.13); }
.num-pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.num-pager a, .num-pager span.pg {
  min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #4a3f33;
  font-size: 0.84rem; font-weight: 700; padding: 0 8px; cursor: pointer; text-decoration: none;
}
.num-pager a:hover { border-color: var(--primary); color: var(--primary-dark); }
.num-pager .pg.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.num-pager .pg.gap { border: 0; background: transparent; cursor: default; min-width: 18px; }
.num-pager .pg.disabled { opacity: .45; pointer-events: none; }

/* ---- Popup Req Order (dipakai bersama: home.html + riwayat_toko.html via _reqorder_modal.html) ---- */
.ro-overlay { display: none; position: fixed; inset: 0; background: rgba(42,33,24,0.6); z-index: 80; align-items: flex-start; justify-content: center; padding: 28px 14px; overflow: auto; }
.ro-overlay.open { display: flex; }
.ro-box { background: #fff; border-radius: 16px; max-width: 460px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,0.3); overflow: hidden; }
.ro-img { width: 100%; max-height: 320px; object-fit: contain; background: #f4ede1; display: block; }
.ro-img.no-photo { aspect-ratio: 1; max-height: 220px; }
.ro-body { padding: 16px 18px 18px; }
.ro-body h3 { margin: 0 0 2px; font-size: 1.02rem; }
.ro-body .ro-code { color: #9a6f1e; font-weight: 800; font-size: 0.82rem; margin: 0 0 12px; }
.ro-field { margin-bottom: 10px; }
.ro-field label { display: block; font-size: 0.78rem; font-weight: 700; color: #4a3f33; margin-bottom: 3px; }
.ro-field input, .ro-field select, .ro-field textarea { width: 100%; padding: 8px 10px; border: 1px solid #e0d3bd; border-radius: 8px; font-size: 0.9rem; }
.ro-field textarea { resize: vertical; min-height: 46px; }
/* Kadar + Qty sebaris. Qty diberi lebar tetap yang cukup untuk 4 digit +
   tombol spinner; sisanya untuk Kadar yang teksnya lebih panjang. */
.ro-row2 { display: grid; grid-template-columns: 1fr 96px; gap: 10px; align-items: start; }
.ro-row2 .ro-field { margin-bottom: 10px; }
@media (max-width: 360px) { .ro-row2 { grid-template-columns: 1fr 84px; gap: 8px; } }
.ro-combo { position: relative; }
.ro-combo-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin-top: 3px; background: #fff; border: 1px solid #e0d3bd; border-radius: 8px; max-height: 210px; overflow-y: auto; box-shadow: 0 10px 28px rgba(0,0,0,0.14); }
.ro-combo-panel.open { display: block; }
.ro-combo-opt { padding: 8px 11px; font-size: 0.88rem; cursor: pointer; border-bottom: 1px solid #f4ede1; }
.ro-combo-opt:last-child { border-bottom: 0; }
.ro-combo-opt:hover, .ro-combo-opt.active { background: #f6ecd6; color: #9a6f1e; }
.ro-combo-empty { padding: 9px 11px; color: #a89c8b; font-size: 0.82rem; }
.ro-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 14px; }
.ro-actions .btn { white-space: nowrap; }
.ro-cart-btn { width: 46px; min-width: 46px; padding: 0; font-size: 1.12rem; line-height: 1; }
.ro-request-btn { min-width: 112px; }
.ro-msg { font-size: 0.82rem; margin: 0 0 8px; }
.ro-msg.err { color: #b42318; }
.ro-msg.ok { color: #027a48; }

/* Komponen filter grid global (gridfilter.js) — baris input di bawah header. */
table tr.gf-filters th { padding-top: 0; padding-bottom: 9px; }
table tr.gf-filters .gf-input {
  width: 100%; min-width: 0; padding: 7px 10px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #2a2118;
  text-transform: none; letter-spacing: 0;
}
table tr.gf-filters .gf-input:focus { outline: none; border-color: #9a6f1e; box-shadow: 0 0 0 3px rgba(154,111,30,.12); }

/* Pager komponen grid global (gridfilter.js) */
.gf-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-top: 10px; }
.gf-pager .gf-count { font-size: 0.82rem; color: #7b6f62; font-variant-numeric: tabular-nums; }
.gf-pager .gf-nav { display: flex; align-items: center; gap: 8px; }
.gf-pager button { min-width: 34px; height: 32px; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; cursor: pointer; font-size: 1.05rem; line-height: 1; color: #2a2118; }
.gf-pager button:hover:not(:disabled) { border-color: #9a6f1e; color: #9a6f1e; }
.gf-pager button:disabled { opacity: 0.4; cursor: default; }
.gf-pager .gf-page { font-size: 0.82rem; color: #4a3f33; font-variant-numeric: tabular-nums; }

/* === Bar atas tema Emas Klasik (2026-10-19) — dipakai _header.html di semua halaman === */
.tb{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line)}
.tb-in{max-width:1280px;margin:0 auto;padding:0 28px;min-height:66px;display:flex;align-items:center;gap:24px}
.tb-brand{display:flex;align-items:center;gap:10px;font:700 1.4rem/1 var(--serif);white-space:nowrap}
.tb-brand i{width:30px;height:30px;border-radius:8px;background:linear-gradient(135deg,#f3d27a,var(--primary));display:grid;place-items:center;color:#fff;font:700 15px/1 system-ui;font-style:normal}
.tb-nav{display:flex;align-items:center;gap:2px;flex:1}
.tb-nav a,.tb-more summary{padding:8px 13px;border-radius:999px;color:var(--muted);font-weight:500;font-size:.9rem;white-space:nowrap;cursor:pointer}
.tb-nav a:hover,.tb-more summary:hover{color:var(--text)}
.tb-nav a.active{background:var(--gold-soft);color:var(--primary);font-weight:600}
.tb-nav .cart-badge{background:var(--primary)}
.tb-more{position:relative}
.tb-more summary{list-style:none}.tb-more summary::-webkit-details-marker{display:none}
.tb-more summary::after{content:" ▾";font-size:.75em}
.tb-menu{position:absolute;top:calc(100% + 6px);left:0;min-width:210px;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:6px;display:flex;flex-direction:column}
.tb-menu a,.tb-menu .nav-action{display:block;width:100%;text-align:left;border-radius:9px;padding:9px 12px;font-size:.9rem;color:var(--text);background:none;border:0;cursor:pointer}
.tb-menu a:hover,.tb-menu .nav-action:hover{background:var(--soft)}
.tb-user{display:flex;align-items:center;gap:10px;font-size:.88rem;color:var(--muted)}
.tb-user b{width:34px;height:34px;border-radius:50%;background:var(--soft);border:1px solid var(--line);display:grid;place-items:center;color:var(--primary)}
.tb-toggle{display:none}

@media(max-width:760px){
  .tb-in{padding:10px 16px;min-height:58px;gap:12px;flex-wrap:wrap}
  .tb-brand{font-size:1.25rem;flex:1}
  .tb-user span{display:none}
  .tb-toggle{display:block;order:3;border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:8px 12px;font-size:.8rem;font-weight:700;cursor:pointer}
  .tb-user{order:2}
  .tb-nav{display:none;order:4;flex-basis:100%;flex-direction:column;align-items:stretch;padding-bottom:6px}
  .tb-nav.buka{display:flex}
  .tb-nav a,.tb-more summary{border-radius:10px;padding:12px 10px}
  .tb-more summary{display:none}
  .tb-menu{position:static;box-shadow:none;border:0;padding:0;min-width:0}
  .tb-menu a,.tb-menu .nav-action{padding:12px 10px;color:var(--muted);font-weight:500}
}

/* Judul halaman & label kecil mengikuti tema Emas Klasik (huruf berkait). */
.search-panel h1, .search-panel h2,
.results-section h2, .table-panel h2,
.section-heading h1, .section-heading h2 {
  font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.15;
}
.eyebrow { letter-spacing: .14em; }
/* .search-panel (grid) dideklarasikan sesudah .password-panel sehingga
   menang; akibatnya judul & keterangan Ubah Password saling tumpuk. */
.search-panel.password-panel { display: block; margin-top: 32px; }
.search-panel.password-panel .form-stack { margin-top: 18px; }
