/* Hardi: desain final B "techno" (docs/design/, CLAUDE.md bagian Tampilan). Mode gelap dulu; mode terang belum dirancang.
 * Saira Condensed = angka & judul (300–500, angka besar 300); Saira Semi Condensed = isi (400–500).
 * Komponen baru ikut awalan hd-*. Huruf di-host sendiri (public/assets/fonts, OFL) supaya CSP tetap 'self'. */

@font-face { font-family: 'Saira Condensed'; font-weight: 300; font-display: swap; src: url('fonts/saira-condensed-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Saira Condensed'; font-weight: 400; font-display: swap; src: url('fonts/saira-condensed-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Saira Condensed'; font-weight: 500; font-display: swap; src: url('fonts/saira-condensed-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Saira Condensed'; font-weight: 600; font-display: swap; src: url('fonts/saira-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Saira Semi Condensed'; font-weight: 400; font-display: swap; src: url('fonts/saira-semi-condensed-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Saira Semi Condensed'; font-weight: 500; font-display: swap; src: url('fonts/saira-semi-condensed-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Saira Semi Condensed'; font-weight: 600; font-display: swap; src: url('fonts/saira-semi-condensed-latin-600-normal.woff2') format('woff2'); }

:root {
  --latar: #222223;
  --latar-dalam: #1A1A1B;
  --kartu: #2C2C2E;
  --garis: #3A3A3C;
  --garis-tombol: #444447;
  --garis-kuat: #4C4C50;
  --aksen: #EF6F2E;
  --aksen-hover: #F58A52;
  --di-aksen: #1A1A1B;
  --teks: #F3EFE8;
  --teks-2: #B0ABA3;
  --teks-3: #CFCAC2;
  --protein: #EF6F2E;
  --karbo: #E6DED0;
  --lemak: #E8C547;
  --kuning: #E8C547;
  --hijau: #8FCB6B;
  --merah: #E5654B;
  --sudut: 4px;
  --huruf-judul: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --huruf-isi: 'Saira Semi Condensed', 'Arial Narrow', sans-serif;
  --aman-bawah: env(safe-area-inset-bottom, 0px);
  --aman-atas: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--latar); }
body { margin: 0; min-height: 100vh; background: var(--latar); color: var(--teks); font-family: var(--huruf-isi); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--aksen); }
a:hover { color: var(--aksen-hover); }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--aksen); outline-offset: 2px; }

/* Label kapital renggang */
.hd-eyebrow, .hd-label, .hd-sublabel { font-family: var(--huruf-judul); font-weight: 500; text-transform: uppercase; color: var(--teks-2); }
.hd-eyebrow { font-size: 13px; letter-spacing: .18em; }
.hd-label { font-size: 13px; letter-spacing: .16em; }
.hd-sublabel { font-size: 12px; letter-spacing: .14em; margin: 6px 0 2px; }
.hd-redup { color: var(--teks-2); }
.hd-terang { color: var(--teks); font-weight: 500; }
.hd-kuning { color: var(--kuning); }
.hd-hijau { color: var(--hijau); }

/* Kerangka */
.hd-app { max-width: 480px; margin: 0 auto; padding-bottom: calc(120px + var(--aman-bawah)); }
.hd-kepala { padding: calc(28px + var(--aman-atas)) 20px 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.hd-kepala-beranda { flex-direction: column; align-items: stretch; gap: 26px; }
.hd-kepala-merek { display: flex; justify-content: space-between; align-items: center; }
.hd-kepala-aksi { display: flex; gap: 8px; }
.hd-judul-besar { margin: 4px 0 0; font-family: var(--huruf-judul); font-weight: 300; font-size: 60px; line-height: .88; letter-spacing: .01em; text-transform: uppercase; }
.hd-isi { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.hd-merek-kecil { display: flex; align-items: center; gap: 12px; color: var(--aksen); }
.hd-merek-kecil > div { display: flex; flex-direction: column; gap: 3px; }
.hd-merek-kecil-nama { font-family: var(--huruf-judul); font-weight: 400; font-size: 28px; line-height: .9; letter-spacing: .08em; text-transform: uppercase; color: var(--teks); }
.hd-merek-kecil .hd-eyebrow { font-size: 12px; letter-spacing: .14em; }
.hd-avatar { width: 44px; height: 44px; border: 2px solid var(--aksen); border-radius: var(--sudut); display: flex; align-items: center; justify-content: center; font-family: var(--huruf-judul); font-size: 22px; color: var(--teks); text-decoration: none; background: var(--kartu); flex-shrink: 0; }
.hd-avatar-besar { width: 72px; height: 72px; font-size: 34px; }
.hd-tombol-ikon { width: 44px; height: 44px; border: 1px solid var(--garis-tombol); border-radius: var(--sudut); display: flex; align-items: center; justify-content: center; color: var(--teks); }

/* Sapaan */
.hd-sapaan { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--garis); }
.hd-sapaan-atas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hd-sapaan-label { font-family: var(--huruf-judul); font-weight: 500; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--aksen); }
.hd-sapaan-teks { margin: 0; font-family: var(--huruf-judul); font-weight: 400; font-size: 25px; line-height: 1.3; }

/* Kartu */
.hd-kartu { background: var(--kartu); border: 1px solid var(--garis); border-radius: var(--sudut); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.hd-kartu-kuning { border-color: var(--kuning); }
.hd-kartu-kepala { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hd-kartu-kepala > div { display: flex; align-items: center; gap: 10px; }
.hd-kartu-no { font-family: var(--huruf-judul); font-weight: 400; font-size: 15px; color: var(--aksen); }
.hd-kartu-no:empty { display: none; }
.hd-chip { font-family: var(--huruf-judul); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--di-aksen); background: var(--aksen); padding: 4px 9px; border-radius: 2px; }
.hd-chip-garis { font-family: var(--huruf-judul); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teks-2); border: 1px solid var(--garis-tombol); padding: 2px 6px; border-radius: 2px; }
.hd-link-kecil { font-family: var(--huruf-judul); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.hd-angka-baris { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hd-angka-besar { font-family: var(--huruf-judul); font-weight: 300; font-size: 72px; line-height: .85; }
.hd-angka-sedang { font-family: var(--huruf-judul); font-weight: 400; font-size: 34px; }
.hd-angka-kecil { font-family: var(--huruf-judul); font-weight: 400; font-size: 18px; color: var(--teks-2); }
.hd-satuan { font-family: var(--huruf-judul); font-weight: 500; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--teks-2); }
.hd-baris-kecil { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--teks-2); }
.hd-baris-kecil b { color: var(--teks); font-weight: 500; }
.hd-kosong, .hd-teks { margin: 0; font-size: 14px; color: var(--teks-3); }
.hd-catatan { margin: 0; font-size: 13px; color: var(--teks-2); }

/* Bar tersegmen (plat beban) */
.hd-seg { display: flex; gap: 3px; }
.hd-seg i { flex: 1; height: 12px; background: var(--garis); }
.hd-seg i.on { background: var(--aksen); }
.hd-seg i.on-p { background: var(--protein); }
.hd-seg i.on-k { background: var(--karbo); }
.hd-seg i.on-l { background: var(--lemak); }
.hd-makro { display: flex; flex-direction: column; gap: 6px; }
.hd-makro .hd-seg i { height: 8px; }
.hd-makro-ringkas { display: flex; gap: 14px; font-family: var(--huruf-judul); font-size: 16px; }
.hd-makro-ringkas .p { color: var(--protein); }
.hd-makro-ringkas .k { color: var(--karbo); }
.hd-makro-ringkas .l { color: var(--lemak); }

/* Daftar */
.hd-daftar { list-style: none; margin: 0; padding: 0; }
.hd-baris { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; border-top: 1px solid var(--garis); }
.hd-daftar > li:first-child > .hd-baris, .hd-daftar > .hd-baris:first-child { border-top: 0; }
.hd-baris-waktu { width: 64px; flex-shrink: 0; font-family: var(--huruf-judul); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teks-2); }
.hd-baris-nama { flex: 1; font-size: 14px; font-weight: 400; }
.hd-baris-nilai { font-family: var(--huruf-judul); font-size: 18px; text-align: right; }
.hd-baris-pilih select { background: var(--latar); border: 1px solid var(--garis-tombol); border-radius: var(--sudut); padding: 8px 10px; }
.hd-makan { padding-bottom: 8px; }
.hd-makan + .hd-makan > .hd-baris { border-top: 1px solid var(--garis); }
.hd-komponen { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 2px solid var(--garis); display: flex; flex-direction: column; gap: 2px; }
.hd-komponen li { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--teks-3); }
.hd-sumber { font-size: 12px; color: var(--teks-2); margin-top: 4px; }

/* Strip minggu (Diary) */
.hd-minggu { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.hd-hari { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; background: var(--kartu); border: 1px solid var(--garis); border-radius: 2px; text-decoration: none; color: var(--teks); }
.hd-hari-nama { font-family: var(--huruf-judul); font-weight: 500; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--teks-2); }
.hd-hari-no { font-family: var(--huruf-judul); font-weight: 400; font-size: 26px; line-height: 1; }
.hd-hari-tanda { width: 24px; height: 4px; border: 1px solid var(--garis-tombol); }
.hd-hari.isi .hd-hari-tanda, .hd-hari.isi-berjalan .hd-hari-tanda { background: var(--teks-2); border-color: var(--teks-2); }
.hd-hari.isi-pas .hd-hari-tanda { background: var(--hijau); border-color: var(--hijau); }
.hd-hari.isi-meleset .hd-hari-tanda { background: var(--kuning); border-color: var(--kuning); }
.hd-hari.bolong .hd-hari-tanda { background: transparent; border: 1px dashed var(--kuning); }
.hd-hari.nanti { opacity: .4; }
.hd-hari.pilih { background: var(--aksen); border-color: var(--aksen); color: var(--di-aksen); }
.hd-hari.pilih .hd-hari-nama { color: var(--di-aksen); }

/* Kotak angka (target di Akun) */
.hd-kotak-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--garis); border: 1px solid var(--garis); }
.hd-kotak { background: var(--kartu); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.hd-kotak .hd-label { font-size: 12px; letter-spacing: .14em; }
.hd-kotak-angka { font-family: var(--huruf-judul); font-weight: 400; font-size: 28px; line-height: 1; }
.hd-kotak-angka small { font-size: 15px; color: var(--teks-2); }
.hd-usulan { border: 1px solid var(--kuning); border-radius: var(--sudut); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.hd-dua { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hd-profil { flex-direction: row; align-items: center; gap: 16px; }
.hd-profil-nama { font-family: var(--huruf-judul); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; }
.hd-versi { text-align: center; font-family: var(--huruf-judul); font-weight: 500; font-size: 12px; letter-spacing: .18em; color: #A8A39B; padding: 8px 0; }
.hd-kode { margin: 0; padding-left: 22px; font-family: ui-monospace, Menlo, monospace; font-size: 15px; letter-spacing: .04em; display: flex; flex-direction: column; gap: 4px; user-select: all; }
.hd-lipat > summary { list-style: none; cursor: pointer; }
.hd-lipat > summary::-webkit-details-marker { display: none; }
.hd-lipat[open] > summary { margin-bottom: 12px; }
.hd-lipat > .hd-teks { margin-bottom: 10px; }

/* Tabel */
.hd-tabel-wadah { overflow-x: auto; margin: 0 -4px; }
.hd-tabel { width: 100%; border-collapse: collapse; font-family: var(--huruf-judul); font-size: 16px; }
.hd-tabel th { font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teks-2); text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--garis); }
.hd-tabel td { text-align: right; padding: 8px 4px; border-bottom: 1px solid var(--garis); white-space: nowrap; }
.hd-tabel th:first-child, .hd-tabel td:first-child { text-align: left; }

/* Tombol & isian */
.hd-btn, .hd-btn-garis { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 16px; border-radius: var(--sudut);
  font-family: var(--huruf-judul); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.hd-btn { background: var(--aksen); border: 0; color: var(--di-aksen); font-weight: 600; }
.hd-btn:hover { background: var(--aksen-hover); color: var(--di-aksen); }
.hd-btn-besar { min-height: 56px; font-size: 17px; }
.hd-btn-garis { background: transparent; border: 1px solid var(--garis-kuat); color: var(--teks); font-weight: 500; }
.hd-btn-aksen { border-color: var(--aksen); color: var(--aksen); font-weight: 400; }
.hd-btn:disabled, .hd-btn-garis:disabled { opacity: .5; cursor: default; }
.hd-lebar { width: 100%; }
.hd-link { background: none; border: 0; padding: 8px; color: var(--teks-2); font-size: 14px; text-decoration: underline; cursor: pointer; }
.hd-form { display: flex; flex-direction: column; gap: 12px; }
.hd-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hd-field > span { font-family: var(--huruf-judul); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teks-2); }
.hd-field input, .hd-field select { width: 100%; min-height: 46px; padding: 0 12px; background: var(--latar); border: 1px solid var(--garis-tombol); border-radius: var(--sudut); font-size: 16px; }
.hd-field input:focus, .hd-field select:focus { border-color: var(--aksen); outline: none; }

/* Tab bawah */
.hd-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; height: calc(84px + var(--aman-bawah)); padding: 0 6px var(--aman-bawah);
  background: var(--latar); border-top: 1px solid var(--garis); display: flex; align-items: flex-start; justify-content: center; }
.hd-tabbar a { flex: 1; max-width: 96px; min-height: 56px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding-top: 12px; text-decoration: none; color: var(--teks-2);
  font-family: var(--huruf-judul); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.hd-tabbar a[aria-current="page"] { color: var(--aksen); }
.hd-tabbar a.hd-tab-catat { padding-top: 0; }
.hd-tab-catat span { width: 60px; height: 60px; margin-top: -24px; background: var(--aksen); border-radius: var(--sudut); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--latar); color: var(--di-aksen); }

/* Halaman masuk & undangan */
.hd-auth { min-height: 100vh; max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; padding: calc(24px + var(--aman-atas)) 24px calc(40px + var(--aman-bawah)); }
.hd-auth-atas { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--aksen); text-align: center; padding: 32px 0; }
.hd-auth-bawah { display: flex; flex-direction: column; gap: 12px; }
.hd-auth-judul { margin: 0; font-family: var(--huruf-judul); font-weight: 300; font-size: 48px; line-height: .95; text-transform: uppercase; color: var(--teks); }
.hd-auth-lead { margin: 0; font-size: 16px; color: var(--teks); }
.hd-auth-note { margin: 6px 0 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--teks-2); }
.hd-auth-msg { margin: 0; min-height: 1.4em; text-align: center; font-size: 14px; color: var(--teks-3); }
.hd-auth-msg.buruk { color: var(--merah); }
.hd-auth-form { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; border-top: 1px solid var(--garis); }
.hd-auth form[method="post"] { display: flex; justify-content: center; }
.hd-merek { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hd-merek-nama { margin: 0; font-family: var(--huruf-judul); font-weight: 300; font-size: 60px; line-height: .9; letter-spacing: .22em; padding-left: .22em; text-transform: uppercase; color: var(--teks); }
.hd-merek-slogan { margin-top: -16px; font-family: var(--huruf-judul); font-weight: 500; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--teks-2); }

/* Lembar & toast */
.hd-lembar { width: min(420px, calc(100vw - 32px)); background: var(--kartu); color: var(--teks); border: 1px solid var(--garis); border-radius: var(--sudut); padding: 20px; }
.hd-lembar[open] { display: flex; flex-direction: column; gap: 12px; }
.hd-lembar::backdrop { background: rgba(0, 0, 0, .6); }
.hd-lembar-judul { margin: 0; font-family: var(--huruf-judul); font-weight: 400; font-size: 26px; text-transform: uppercase; }
.hd-lembar-teks { margin: 0; color: var(--teks-3); }
.hd-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + var(--aman-bawah)); z-index: 20; max-width: calc(100vw - 32px);
  background: var(--teks); color: var(--latar-dalam); padding: 10px 16px; border-radius: var(--sudut); font-weight: 500; }
.hd-toast.buruk { background: var(--merah); color: #fff; }

@media (min-width: 700px) {
  .hd-app { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Layar Catat (desain 04-catat & 05-hasil-analisis) */
.hd-app-penuh { padding-bottom: calc(24px + var(--aman-bawah)); }
.hd-catat { min-height: 100vh; }
.hd-catat[data-langkah="ambil"] { background: var(--latar-dalam); }
.hd-catat-atas { display: flex; align-items: center; justify-content: space-between; padding: calc(16px + var(--aman-atas)) 16px 0; }
.hd-catat-judul { font-family: var(--huruf-judul); font-weight: 400; font-size: 24px; letter-spacing: .06em; text-transform: uppercase; }
.hd-kosong-ikon { visibility: hidden; }
.hd-tombol-ikon { background: transparent; cursor: pointer; }
.hd-tab-catat-baris { display: flex; margin: 14px 16px 0; border-bottom: 1px solid var(--garis); }
.hd-tab-catat-baris button { flex: 1; height: 44px; background: transparent; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--teks-2);
  font-family: var(--huruf-judul); font-weight: 500; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.hd-tab-catat-baris button[aria-selected="true"] { border-bottom-color: var(--aksen); color: var(--teks); }
[data-panel-catat="berat"] { padding: 14px 16px; }
.hd-bidik { position: relative; margin: 14px 16px 0; height: min(392px, 48vh); background: repeating-linear-gradient(135deg, #202022 0 10px, #1C1C1E 10px 20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; overflow: hidden; }
.hd-bidik-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hd-siku { position: absolute; width: 34px; height: 34px; border: 0 solid var(--aksen); z-index: 1; }
.hd-siku.a { top: 14px; left: 14px; border-top-width: 4px; border-left-width: 4px; }
.hd-siku.b { top: 14px; right: 14px; border-top-width: 4px; border-right-width: 4px; }
.hd-siku.c { bottom: 14px; left: 14px; border-bottom-width: 4px; border-left-width: 4px; }
.hd-siku.d { bottom: 14px; right: 14px; border-bottom-width: 4px; border-right-width: 4px; }
.hd-bidik-teks { font-family: var(--huruf-judul); font-weight: 400; font-size: 26px; letter-spacing: .04em; text-transform: uppercase; }
.hd-bidik-sub { font-size: 14px; color: var(--teks-2); text-align: center; max-width: 240px; line-height: 1.4; }
.hd-bidik-label { position: absolute; bottom: 60px; background: var(--latar); border: 1px solid var(--garis-tombol); padding: 6px 10px; z-index: 1;
  font-family: var(--huruf-judul); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--teks-3); }
.hd-ket { display: flex; gap: 8px; margin: 14px 16px 0; }
.hd-ket input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; background: var(--latar); border: 1px solid var(--garis-tombol); border-radius: var(--sudut); font-size: 16px; }
.hd-ket .hd-btn { min-height: 44px; }
.hd-fav-baris { display: flex; gap: 8px; margin: 14px 0 0; padding: 0 16px; overflow-x: auto; scrollbar-width: none; transition: background .3s; }
.hd-fav-baris.sorot { background: rgba(239, 111, 46, .15); }
.hd-fav { flex-shrink: 0; height: 44px; padding: 0 12px; background: var(--kartu); border: 1px solid var(--garis-tombol); border-radius: var(--sudut); color: var(--teks);
  display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; cursor: pointer; }
.hd-fav b { font-family: var(--huruf-judul); font-weight: 400; font-size: 16px; color: var(--teks-2); }
.hd-kamera-bawah { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px 12px; }
.hd-kamera-sisi { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: transparent; border: 0; color: var(--teks-2); cursor: pointer;
  font-family: var(--huruf-judul); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.hd-kamera-sisi span { width: 52px; height: 52px; border: 1px solid var(--garis-kuat); border-radius: var(--sudut); display: flex; align-items: center; justify-content: center; color: var(--teks); }
.hd-jepret { width: 88px; height: 88px; border-radius: 50%; border: 4px solid var(--teks); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hd-jepret span { width: 68px; height: 68px; border-radius: 50%; background: var(--aksen); }
.hd-catat-pesan { margin: 0 16px; text-align: center; font-size: 14px; color: var(--teks-3); min-height: 1.4em; }
.hd-catat-pesan.buruk { color: var(--merah); }
.hd-proses { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.hd-proses-bar { width: 160px; height: 6px; background: linear-gradient(90deg, var(--garis) 0 40%, var(--aksen) 40% 60%, var(--garis) 60%); background-size: 200% 100%; animation: hd-geser 1s linear infinite; }
@keyframes hd-geser { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.hd-isi-hasil { padding-top: 12px; padding-bottom: 120px; }
.hd-foto-hasil { margin: 0; border-radius: var(--sudut); overflow: hidden; background: #333336; }
.hd-foto-hasil img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.hd-info-ai { margin: 0; font-size: 13px; color: var(--teks-3); border-left: 2px solid var(--aksen); padding-left: 10px; }
.hd-berulang { background: #3A2A22; border: 1px solid var(--aksen); border-radius: var(--sudut); padding: 12px 14px; display: flex; align-items: center; gap: 12px; }
.hd-berulang > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hd-berulang b { font-weight: 500; font-size: 14px; }
.hd-berulang span { font-size: 13px; color: var(--teks-3); }
.hd-berulang .hd-btn { min-height: 40px; padding: 0 12px; }
.hd-kandidat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hd-kandidat-tombol { min-height: 60px; padding: 8px 6px; background: transparent; border: 1px solid var(--garis-kuat); border-radius: var(--sudut); color: var(--teks);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; text-align: center; }
.hd-kandidat-tombol span { font-family: var(--huruf-judul); font-weight: 500; font-size: 15px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.hd-kandidat-tombol small { font-size: 12px; color: var(--teks-2); }
.hd-kandidat-tombol[aria-pressed="true"] { background: #3A2A22; border-color: var(--aksen); }
.hd-kandidat-tombol[aria-pressed="true"] small { color: var(--aksen); }
.hd-cari { position: relative; }
.hd-cari input { width: 100%; min-height: 44px; padding: 0 12px; background: var(--latar); border: 1px dashed var(--garis-kuat); border-radius: var(--sudut); font-size: 16px; }
.hd-cari-hasil { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.hd-cari-hasil button { width: 100%; min-height: 40px; text-align: left; padding: 6px 10px; background: var(--latar); border: 0; border-bottom: 1px solid var(--garis); color: var(--teks); cursor: pointer; }
.hd-waktu-tgl { display: flex; gap: 6px; }
.hd-waktu-tgl input { height: 32px; padding: 0 6px; background: transparent; border: 1px solid var(--garis-kuat); border-radius: 2px; font-family: var(--huruf-judul); font-size: 14px; }
.hd-pilih-baris { display: flex; gap: 4px; }
.hd-lima { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.hd-pilih { min-width: 44px; height: 44px; padding: 0 6px; background: transparent; border: 1px solid var(--garis-kuat); border-radius: 2px; color: var(--teks-3); cursor: pointer;
  font-family: var(--huruf-judul); font-weight: 500; font-size: 15px; letter-spacing: .04em; }
.hd-pilih[aria-pressed="true"] { background: var(--aksen); border-color: var(--aksen); color: var(--di-aksen); }
.hd-total-atas { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hd-makro-tiga { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hd-makro-satu { display: flex; flex-direction: column; gap: 6px; }
.hd-makro-angka { font-family: var(--huruf-judul); font-size: 26px; line-height: 1; }
.hd-garis-isi { height: 6px; background: #424245; }
.hd-garis-isi i { display: block; height: 6px; }
.hd-garis-isi.p i { background: var(--protein); }
.hd-garis-isi.k i { background: var(--karbo); }
.hd-garis-isi.l i { background: var(--lemak); }
.hd-komponen-edit { list-style: none; margin: 0; padding: 0; }
.hd-komponen-edit li { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--garis); }
.hd-komp-atas, .hd-komp-bawah { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hd-komp-nama { font-size: 14px; }
.hd-komp-kal { font-family: var(--huruf-judul); font-size: 22px; line-height: 1; }
.hd-komp-sumber { flex: 1; font-size: 13px; color: var(--teks-2); }
.hd-stepper { display: flex; align-items: center; border: 1px solid var(--garis-kuat); border-radius: var(--sudut); }
.hd-stepper button { width: 40px; height: 40px; background: transparent; border: 0; color: var(--teks); font-size: 20px; cursor: pointer; }
.hd-stepper input { width: 52px; height: 40px; background: transparent; border: 0; text-align: right; font-family: var(--huruf-judul); font-weight: 500; font-size: 17px; -moz-appearance: textfield; }
.hd-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.hd-stepper span { padding: 0 4px 0 2px; font-family: var(--huruf-judul); color: var(--teks-2); }
.hd-komp-hapus { width: 32px; height: 40px; background: transparent; border: 0; color: var(--teks-2); cursor: pointer; }
.hd-kartu textarea { width: 100%; resize: none; background: var(--latar); border: 1px solid var(--garis-kuat); border-radius: var(--sudut); padding: 12px; font-size: 16px; }
.hd-baris-fav { flex-direction: row; align-items: center; justify-content: space-between; }
[data-favorit-toggle][aria-pressed="true"] { background: var(--aksen); border-color: var(--aksen); color: var(--di-aksen); }
.hd-bilah-aksi { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 14px 16px calc(14px + var(--aman-bawah)); background: var(--latar); border-top: 1px solid var(--garis);
  display: flex; align-items: center; gap: 12px; }
.hd-bilah-aksi > div { display: flex; flex-direction: column; }
.hd-bilah-aksi .hd-btn { flex: 1; }
.hd-bilah-angka { font-family: var(--huruf-judul); font-size: 22px; line-height: 1.1; text-transform: uppercase; }
.hd-selesai { align-items: center; text-align: center; }
.hd-selesai-ikon { width: 72px; height: 72px; border-radius: 50%; background: var(--aksen); color: var(--di-aksen); display: flex; align-items: center; justify-content: center; }
.hd-selesai .hd-angka-baris { justify-content: center; }
.hd-selesai-komentar { font-size: 20px; }
.hd-tujuh { width: 100%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.hd-tujuh-hari { display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--huruf-judul); font-size: 12px; color: var(--teks-2); text-transform: uppercase; }
.hd-tujuh-batang { position: relative; width: 100%; height: 90px; background: #262628; display: flex; align-items: flex-end; }
.hd-tujuh-batang i { display: block; width: 100%; background: var(--teks-2); }
.hd-tujuh-batang b { position: absolute; left: -2px; right: -2px; height: 2px; background: var(--teks); }
.hd-tujuh-hari.pas i { background: var(--hijau); }
.hd-tujuh-hari.kurang i, .hd-tujuh-hari.lebih i { background: var(--kuning); }
.hd-tujuh-hari.berjalan i { background: var(--aksen); }
.hd-tujuh-hari.bolong .hd-tujuh-batang { border: 1px dashed var(--kuning); background: transparent; }
.hd-makan-foto { width: 44px; height: 44px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.hd-sumber { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hd-makan-hapus { background: none; border: 0; color: var(--teks-2); cursor: pointer; padding: 4px 0; }
