/* Nakoo — styles mengikuti Figma "nakoo — ideation" (frame 402px). */
:root {
  --bg: #FFFBF8;
  --text: #4C4C4C;          /* Darker Brown */
  --text-900: #1F2937;
  --text-700: #374151;
  --n7: #939290;            /* Neutral/neutral-7 */
  --n8: #64615F;            /* Neutral/neutral-8 */
  --n6: #C3C2C2;
  --n4: #F1F0F0;
  --brown-muted: #8A7B74;
  --primary: #FCBC50;       /* Primary/primary-500 */
  --primary-50: #FFF8EE;
  --primary-100: #FEEAC9;
  --primary-700: #B38539;
  --primary-900: #6A4F22;
  --green: #5C9548;         /* Green/green-500 */
  --green-600: #548842;
  --green-50: #EFF4ED;
  --green-100: #CCDEC6;
  --green-900: #273F1E;
  --terra: #C4654A;         /* Tertiary/tertiary-500 */
  --peach: #FFEBDB;
  --shadow-12: 0 8px 12px rgba(196, 101, 74, 0.04);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 81px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text); background: #EFE9E3; -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 20px; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; text-align: inherit; }
input, select, textarea { font: inherit; color: inherit; }
/* HP: huruf kolom isian minimal 16px agar iPhone tidak otomatis zoom saat kolom diketuk (zoom-nya tertinggal & memotong layar lain). */
@media (pointer: coarse) { input, select, textarea, .ed-in, .ed-in input, .input-wrap input, .search input { font-size: 16px !important; } }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 8px; }
.ic { flex-shrink: 0; }

/* ---------- Bingkai ---------- */
.phone { position: relative; max-width: 440px; min-height: 100dvh; margin: 0 auto; background: var(--bg); overflow-x: hidden; }
@media (min-width: 520px) { .phone { box-shadow: 0 0 0 1px #E6DED6, 0 30px 80px rgba(80, 50, 30, 0.12); } }
.screen { position: relative; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + 24px + var(--safe-b)); }
.screen.no-nav { padding-bottom: calc(100px + var(--safe-b)); }
.screen.plain { padding-bottom: 24px; }
.screen-gradient {
  position: absolute; left: 0; right: 0; top: 0; height: 227px; pointer-events: none; z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 251, 248, 0) 67.4%, var(--bg) 100%),
    radial-gradient(398px 321px at 70% 0, rgba(231, 243, 242, 1) 0%, rgba(231, 243, 242, 0.24) 60%, rgba(231, 243, 242, 0.24) 100%);
}
.screen > *:not(.screen-gradient):not(.sticky-cta) { position: relative; z-index: 1; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.flex1 { flex: 1; min-width: 0; }
.center { text-align: center; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; } .gap20 { gap: 20px; } .gap24 { gap: 24px; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografi (token Figma) ---------- */
.h4 { font-size: 32px; line-height: 38px; font-weight: 500; letter-spacing: -0.2px; color: var(--text); }
.h5 { font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -0.15px; color: var(--text); }
.h6 { font-size: 20px; line-height: 24px; font-weight: 600; color: var(--text); }
.l1 { font-size: 16px; line-height: 22px; letter-spacing: -0.18px; }
.l2 { font-size: 14px; line-height: 20px; letter-spacing: -0.16px; }
.l3 { font-size: 12px; line-height: 16px; letter-spacing: -0.12px; }
.w400 { font-weight: 400; } .w500 { font-weight: 500; } .w600 { font-weight: 600; } .w700 { font-weight: 700; }
.c-text { color: var(--text); } .c-n7 { color: var(--n7); } .c-n8 { color: var(--n8); } .c-green { color: var(--green); } .c-terra { color: var(--terra); } .c-900 { color: var(--text-900); }

/* ---------- Ikon Figma ---------- */
.mi { display: inline-block; flex-shrink: 0; background-color: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.fi { display: block; flex-shrink: 0; object-fit: contain; }

/* ---------- Header ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px; height: 84px; }
.logo-mark { width: 46px; height: 34.66px; }
.logo-full { width: 152px; height: 30px; }
.top-actions { display: flex; gap: 8px; }
.chip-btn {
  position: relative; width: 44px; height: 44px; border-radius: 1000px; display: grid; place-items: center; flex-shrink: 0;
  background: #F7FBF6; border: 1px solid #fff; box-shadow: inset 0 4px 12px #fff; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.04));
}
.chip-btn .fi { width: 18px; height: 18px; }
/* Switch bahasa EN | ID di header — tinggi sama dengan tombol notifikasi */
.lang-sw { display: inline-flex; align-items: center; height: 44px; padding: 4px; gap: 2px; border-radius: 1000px; flex-shrink: 0;
  background: #F7FBF6; border: 1px solid #fff; box-shadow: inset 0 4px 12px #fff; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.04)); }
.lang-sw button { height: 34px; min-width: 38px; padding: 0 10px; border-radius: 1000px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--n7); }
.lang-sw button.on { background: var(--green); color: #fff; }
.chip-btn .fi.s20 { width: 20px; height: 20px; }
.chip-btn .dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 9px; background: var(--terra); border: 1.5px solid #fff; }
.chip-btn.fav-on { color: var(--terra); }

/* ---------- Tombol ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 12px; border-radius: 32px; font-weight: 600; font-size: 16px; line-height: 24px; transition: transform .12s ease, opacity .15s, background-color .15s; width: 100%; }
.btn:active { transform: scale(0.985); }
.btn img { width: 16px; height: 16px; }
.btn-primary { background: var(--primary); color: #fff; padding: 16px 20px; }
.btn-primary.py12 { padding-top: 12px; padding-bottom: 12px; }
.btn-primary:disabled { background: #E6E3DF; color: #A9A5A0; cursor: not-allowed; }
.btn-ghost { background: #fff; border: 1.5px solid #F5F0EA; color: #100C09; padding: 12px; font-size: 14px; line-height: 20px; border-radius: 16px; gap: 8px; }
.btn-ghost img { width: 20px; height: 20px; }
.btn-soft { background: var(--green-50); color: var(--green-900); padding: 12px; font-size: 14px; line-height: 20px; border-radius: 16px; gap: 8px; font-weight: 500; }
.btn-green { background: var(--green); color: #fff; border-radius: 10000px; padding: 10px 16px; font-size: 14px; font-weight: 400; line-height: normal; justify-content: space-between; }
.link { color: var(--terra); font-weight: 500; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; }
.arrow-r { transform: rotate(90deg); }
.bento-main .btn-green { width: auto; align-self: flex-start; gap: 8px; } /* tombol Selengkapnya: selebar isinya */

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 5px 11px; border-radius: 9999px; font-size: 12px; line-height: 16px; color: var(--text); background: #FCF5E5; border: 1px solid transparent; }
.pill.blue { background: #E3F4F8; }
.pill.lav { background: #FAE9FC; }
.pill.green { background: rgba(236, 255, 228, 0.6); }
.pill.warn { background: #FFE4E1; color: #B4372C; font-weight: 600; }
.pill img { width: 16px; height: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 4px; }
.pills.g8 { gap: 8px; }
.pills.one { flex-wrap: nowrap; overflow: hidden; }

/* ---------- Chip filter ---------- */
.chip { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; padding: 7px 11px; border-radius: 9999px; font-size: 14px; line-height: 20px; color: var(--text); border: 1px solid transparent; transition: background .15s, color .15s; }
.chip img { width: 16px; height: 16px; }
.chip.k-age { background: rgba(254, 234, 201, 0.5); padding: 7px 13px; }
.chip.k-tex { background: rgba(250, 233, 252, 0.7); }
.chip.k-bahan { background: #FCF5E5; }
.chip.k-alg { background: rgba(250, 229, 229, 0.6); }
.chip.k-met { background: #E3F4F8; }
.chip.k-dur { background: #E4E4FB; }
.chip.k-skill { background: rgba(236, 255, 228, 0.6); }
.chip.k-lok { background: #FAE9FC; }
.chip.k-mess { background: #FCEFEF; }
.chip.on { color: #fff; padding-left: 13px; padding-right: 13px; }
.chip.on img { filter: brightness(0) invert(1); }
.chip.k-age.on { background: var(--terra); border-color: var(--terra); }
.chip.k-tex.on, .chip.k-lok.on { background: #DD75EB; border-color: #DD75EB; }
.chip.k-bahan.on { background: #DDA93F; border-color: #DDA93F; }
.chip.k-alg.on, .chip.k-mess.on { background: #DE5D5D; border-color: #DE5D5D; }
.chip.k-met.on { background: #52BBD3; border-color: #52BBD3; }
.chip.k-dur.on { background: #5459E3; border-color: #5459E3; }
.chip.k-skill.on { background: var(--green); border-color: var(--green); }
.chip.on::after { content: ''; position: absolute; top: -1px; right: -1px; width: 14px; height: 14px; background: url(img/fig/f-check.svg) center / contain no-repeat; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.chip-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scroll-x { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 0 20px 4px; margin: 0 -20px; scroll-snap-type: x proximity; scroll-padding: 0 20px; }
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { flex-shrink: 0; scroll-snap-align: start; }
.scroll-x.dragging { cursor: grabbing; scroll-snap-type: none; }
.scroll-x.dragging > * { pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .scroll-x { cursor: grab; scrollbar-width: thin; scrollbar-color: #E6D9CE transparent; padding-bottom: 12px; }
  .scroll-x::-webkit-scrollbar { display: block; height: 6px; }
  .scroll-x::-webkit-scrollbar-thumb { background: #E6D9CE; border-radius: 6px; }
  .scroll-x::-webkit-scrollbar-track { margin: 0 20px; }
}

/* ---------- Section ---------- */
.sec { display: flex; flex-direction: column; gap: 8px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; min-height: 22px; }
.sec-head .l1 { font-weight: 600; color: var(--text); }
.sec-head .arrow { width: 32px; height: 32px; display: grid; place-items: center; margin: -5px -8px; }
.sec-head .arrow img { width: 16px; height: 16px; transform: rotate(90deg); }

/* ---------- Kartu item ---------- */
.item-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 12px; width: 164px; text-align: left;
  background: #fff; border: 1px solid #F7F7F7; border-radius: 16px; filter: drop-shadow(0 8px 6px rgba(196, 101, 74, 0.04));
}
.item-card.fixed { height: 204px; justify-content: space-between; }
.item-card.w176 { width: 176px; }
.item-card.w212 { width: 212px; }
.item-card .top { display: flex; flex-direction: column; gap: 12px; }
.thumb { position: relative; height: 102px; border-radius: 12px; overflow: hidden; background: #FEF0ED; display: grid; place-items: center; }
.w212 .thumb { height: 114px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .nophoto svg { width: 40px; height: 40px; }
.thumb .fav-mini { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 99px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--terra); }
.thumb .alert-tag { position: absolute; left: 6px; bottom: 6px; }
.item-title { font-size: 14px; line-height: 16px; font-weight: 500; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-card.has-allergen { border-color: #F6C8C1; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-2 .item-card { width: auto; min-width: 0; }
.item-card .pills.one .pill { flex-shrink: 0; }

/* ---------- Navbar ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 30; width: 100%; max-width: 440px;
  display: flex; gap: 8px; padding: 8px 20px calc(12px + var(--safe-b)); background: #fff; border-top: 1px solid rgba(213, 192, 187, 0.12);
}
.nav-item { position: relative; flex: 1; min-width: 0; height: 60px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 9999px; color: var(--n7); font-size: 12px; line-height: 16px; white-space: nowrap; }
.nav-item .mi { width: 24px; height: 24px; }
.nav-item.active { color: var(--terra); font-weight: 600; }
.nav-item.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 12px; height: 4px; border-radius: 1000px; background: var(--terra); }

/* ---------- Input ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text); letter-spacing: -0.16px; }
.input-wrap { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: #fff; border: 1px solid #E9EAEB; border-radius: 10px; box-shadow: 0 1px 2px rgba(228, 229, 231, 0.24); transition: border-color .15s, box-shadow .15s; }
.input-wrap > .fi { width: 20px; height: 20px; }
.input-wrap > .ic { color: var(--terra); }
.input-wrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(252, 188, 80, .18); }
.input-wrap.invalid { border-color: #EBA59C; }
.input-wrap.valid { border-color: #B9D8AD; }
.input-wrap input, .input-wrap select { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 14px; letter-spacing: -0.16px; color: var(--text); }
.input-wrap input::placeholder { color: var(--n6); }
.toggle-pass { width: 32px; height: 32px; display: grid; place-items: center; margin-right: -8px; color: #A4A7AE; }
.toggle-pass img { width: 16px; height: 16px; }
.hint { font-size: 12px; line-height: 16px; color: var(--n7); }
.hint.err { color: #C0392B; }
.hint.ok { color: var(--green); }
.strength { display: flex; gap: 4px; }
.strength span { flex: 1; height: 4px; border-radius: 4px; background: #EEE9E4; }
.strength.s1 span:nth-child(1) { background: #E5484D; }
.strength.s2 span:nth-child(-n+2) { background: #F2A33A; }
.strength.s3 span:nth-child(-n+3) { background: #8DBA5A; }
.strength.s4 span { background: var(--green); }
.divider-text { display: flex; align-items: center; gap: 8px; color: var(--n7); font-size: 12px; line-height: 16px; letter-spacing: -0.12px; }
.divider-text::before, .divider-text::after { content: ''; flex: 1; height: 1px; background: #E9EAEB; }

/* ---------- Auth ---------- */
.auth { position: relative; min-height: 100dvh; background: #fff; padding: 40px 16px 32px; display: flex; flex-direction: column; gap: 40px; overflow: hidden; }
.auth-hero { position: absolute; left: 0; right: 0; top: -19px; height: 434px; border-radius: 0 0 40px 40px; overflow: hidden; pointer-events: none; }
.auth-hero .bg { position: absolute; left: -2px; top: -6px; width: calc(100% + 5px); height: 440px; max-width: none; object-fit: cover; object-position: bottom; transform: scaleX(-1); }
.auth-hero .baby-wrap { position: absolute; left: -10px; top: -198px; width: calc(100% + 23px); height: 566px; transform: scaleX(-1); }
.auth-hero .baby-wrap img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.auth-hero .baby-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(73.7deg, rgba(253, 244, 233, 0) 38.35%, #FDF4E9 61.68%); }
.auth > *:not(.auth-hero) { position: relative; }
.auth-logo { width: 118px; height: 23.32px; }
.auth-title { width: 239px; display: flex; flex-direction: column; gap: 12px; }
.auth-title p { width: 214px; }
.tab-toggle { display: flex; padding: 4px; background: var(--primary-50); border-radius: 12px; }
.tab-toggle button { flex: 1; padding: 8px 0; border-radius: 16px; text-align: center; font-size: 14px; line-height: 20px; letter-spacing: -0.16px; color: var(--n7); border: 1px solid transparent; }
.tab-toggle button.on { background: #fff; border-color: var(--primary-100); border-radius: 12px; font-weight: 600; color: var(--primary-900); }
.auth-field { background: #fff; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.social-row { display: flex; gap: 12px; }
.social-row .btn-ghost { font-weight: 600; }

/* ---------- Lupa password ---------- */
.fg { min-height: 100dvh; background: #fff; padding: 40px 16px 120px; display: flex; flex-direction: column; gap: 24px; }
.back-circle { width: 32px; height: 32px; padding: 4px; border-radius: 1000px; background: var(--primary); display: grid; place-items: center; }
.back-circle img { width: 24px; height: 24px; }
.otp { display: flex; gap: 7px; height: 74px; padding: 0 4px; }
.otp input { flex: 1; min-width: 0; height: 100%; border-radius: 12px; border: 1px solid #E7EAEB; background: #fff; text-align: center; font-family: 'DM Sans', 'Inter', sans-serif; font-size: 24px; font-weight: 600; letter-spacing: 0.48px; color: var(--text); outline: 0; }
.otp input:focus { border-color: var(--primary); }
.fg-foot { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 440px; padding: 16px 16px calc(16px + var(--safe-b)); background: #fff; z-index: 20; }

/* ---------- Home ---------- */
.home { display: flex; flex-direction: column; gap: 20px; padding: 4px 20px 0; }
.greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.greet .hai { font-size: 16px; line-height: 22px; letter-spacing: -0.18px; font-weight: 500; color: #4D4D4D; }
.avatar { position: relative; width: 66px; height: 66px; flex-shrink: 0; }
.avatar .ring { position: absolute; left: 5px; top: 5px; width: 56px; height: 56px; border-radius: 9999px; overflow: hidden; box-shadow: 0 0 0 3px #FDF6F0, 0 0 0 5px #E8A87C; background: var(--peach); display: grid; place-items: center; color: var(--terra); font-weight: 700; font-size: 22px; }
.avatar .ring img { width: 100%; height: 100%; object-fit: cover; }
.avatar .ok { position: absolute; right: -2px; bottom: -2px; width: 23px; height: 23px; border-radius: 9999px; background: var(--green); border: 2px solid #FDF6F0; display: grid; place-items: center; }
.avatar .ok img { width: 10px; height: 10px; }
.strip { display: flex; align-items: center; justify-content: space-between; }
.date-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9999px; background: rgba(232, 168, 124, 0.18); color: var(--terra); font-size: 12px; line-height: 16px; font-weight: 500; }
.date-chip img { width: 10.5px; height: 12px; }
.done-count { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--brown-muted); }
.done-count::before { content: ''; width: 8px; height: 8px; border-radius: 9999px; background: #87A878; }

.bento { display: flex; gap: 12px; height: 282px; }
.bento-main { position: relative; flex: 1; min-width: 0; height: 100%; overflow: hidden; border-radius: 24px; background: var(--peach); text-align: left; }
.bento-main .bm-img { position: absolute; left: 50%; transform: translateX(-50%); top: -1px; width: 262px; height: 175px; max-width: none; object-fit: cover; }
.bento-main .bm-text { position: absolute; left: 18px; top: 164px; width: calc(100% - 36px); max-width: 190px; display: flex; flex-direction: column; gap: 12px; }
.bento-main .t1 { font-size: 16px; line-height: 1.2; font-weight: 500; color: var(--text); }
.bento-main .t2 { font-size: 12px; line-height: 16px; color: var(--text); margin-top: 4px; }
.bento-side { width: 146px; display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
.bento-tile { position: relative; flex: 1; overflow: hidden; border-radius: 24px; text-align: left; }
.bento-tile.food { background: #E4F1DF; }
.bento-tile.act { background: #FFDBD1; }
.bento-tile .go { position: absolute; left: 107px; top: 10px; width: 32px; height: 32px; border-radius: 10000px; background: #fff; display: grid; place-items: center; z-index: 1; }
.bento-tile .go img { width: 16px; height: 16px; transform: rotate(90deg); }
.bento-tile .lbl { position: absolute; left: 14px; top: 106px; transform: translateY(-50%); width: 90px; font-size: 14px; line-height: 1.2; font-weight: 500; }
.bento-tile.food .lbl { color: var(--green); }
.bento-tile.act .lbl { color: #B9411A; }
.bento-tile.food img.pic { position: absolute; left: 17px; top: 0; width: 100px; height: 100px; object-fit: cover; }
.bento-tile.act img.pic { position: absolute; left: 5px; top: 10px; width: 123px; height: 82px; object-fit: cover; }

.daybar { display: flex; flex-direction: column; gap: 6px; }
.daybar-icons { display: flex; justify-content: space-between; height: 27px; }
.daybar-icons .c { position: relative; height: 27px; }
.daybar-icons .c img { position: absolute; max-width: none; object-fit: cover; }
.track { position: relative; height: 8px; border-radius: 9999px; overflow: hidden; background: rgba(196, 181, 172, 0.3); }
.track > div { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 9999px; background: var(--green); }
.daybar-labels { display: flex; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--brown-muted); }
.daybar-labels b { color: var(--terra); font-weight: 600; }

.card-empty { background: #fff; border: 1px solid #FFF0E4; border-radius: 24px; box-shadow: var(--shadow-12); padding: 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.card-empty img { width: 138px; height: 154px; object-fit: contain; }
.card-empty .t { font-size: 20px; line-height: normal; font-weight: 500; color: #5A5A5A; }
.card-empty .s { width: 259px; max-width: 100%; font-size: 14px; line-height: 16px; letter-spacing: 0.12px; color: #C4B5AC; }
.hint-link { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: 'Figtree', 'Inter', sans-serif; font-size: 12px; line-height: 16px; color: var(--brown-muted); margin: 0 auto; padding: 6px 10px; }
.hint-link img { width: 12px; height: 12px; }

/* ---------- Timeline card ---------- */
.tl-card { background: #fff; border: 1px solid #F9F0ED; border-radius: 24px; box-shadow: var(--shadow-12); padding: 24px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.tl-head { display: flex; align-items: center; justify-content: space-between; }
.tl-head .t { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-900); }
.tl-head .d { font-family: 'Figtree', 'Inter', sans-serif; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--terra); }
.hr { height: 1px; background: var(--n4); width: 100%; }
.tl { display: flex; flex-direction: column; }
.tl-row { position: relative; display: flex; gap: 16px; min-height: 80px; }
.tl-row:last-child { min-height: 0; }
.tl-col { width: 40px; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; position: relative; z-index: 1; }
.tl-ico { position: relative; width: 40px; height: 40px; border-radius: 16px; background: var(--peach); display: grid; place-items: center; flex-shrink: 0; }
.tl-ico img { width: 36px; height: 36px; object-fit: contain; }
.tl-line { flex: 1; min-height: 40px; padding: 4px 0; display: flex; justify-content: center; }
.tl-line i { width: 2px; flex: 1; min-height: 32px; background: #D0846E; }
.tl-row.pending .tl-line i, .tl-row.now .tl-line i { width: 0; border-left: 1.4px dashed #E4B8AC; background: none; margin-left: 1px; }
.tl-row:last-child .tl-line { display: none; }
.tl-body { flex: 1; min-width: 0; padding-bottom: 16px; position: relative; z-index: 1; }
.tl-row:last-child .tl-body { padding-bottom: 0; }
.tl-top { display: flex; justify-content: space-between; gap: 8px; }
.tl-title { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--n7); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } /* label slot (Sarapan, Main Pagi, …) */
.tl-sub { margin-top: 2px; font-size: 16px; line-height: 20px; font-weight: 600; color: var(--text-700); display: block; text-align: left; } /* judul menu / aktivitas */
button.tl-sub { text-decoration: underline; text-decoration-color: #E7DED6; text-underline-offset: 3px; }
.tl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.tl-time { font-family: 'Figtree', 'Inter', sans-serif; font-size: 12px; line-height: 16px; color: var(--n7); }
.check-btn { width: 32px; height: 32px; margin: -6px -6px -6px 0; display: grid; place-items: center; }
.check { width: 20px; height: 20px; border-radius: 9999px; display: grid; place-items: center; border: 1.5px solid #D6D0CA; background: #fff; }
.check img { width: 7.88px; height: 9px; opacity: 0; }
.check.on { background: #7CB662; border-color: #7CB662; }
.check.on img { opacity: 1; }
.tl-row.pending .tl-ico { background: rgba(65, 75, 97, 0.06); }
.tl-row.pending .tl-top { opacity: .6; }
.tl-row.pending .tl-sub { color: #34302E; }
/* Sorotan "sekarang" mengikuti tinggi isi (judul menu bisa 2 baris); jarak ke baris berikutnya tetap 80px. */
.tl-row.now { min-height: 0; }
.tl-row.now .tl-body { padding-bottom: 42px; }
.tl-row.now::before { content: ''; position: absolute; left: -12px; right: -12px; top: -14px; bottom: 26px; border-radius: 20px; background: #EDF5EA; z-index: 0; }
.tl-row.now:last-child .tl-body { padding-bottom: 0; }
.tl-row.now:last-child::before { bottom: -14px; }
.tl-row.now .tl-ico { background: var(--green); box-shadow: 0 0 0 4px rgba(92, 149, 72, 0.18), 0 2px 10px rgba(92, 149, 72, 0.25); }
.tl-row.now .tl-title { color: var(--green); font-weight: 600; }
.tl-row.now .tl-sub { color: #231F1D; }
.tl-row.now .tl-time { font-weight: 600; color: #231F1D; }
.badge-now { background: #FF3F3F; color: #fff; font-size: 10px; line-height: 14px; font-weight: 700; padding: 1px 7px; border-radius: 9999px; }
.tl-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mini-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 9999px; background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--primary-900); font-size: 12px; line-height: 16px; font-weight: 500; }
.mini-btn .ic { color: var(--terra); }

/* ---------- Landing ---------- */
.landing-title { padding: 4px 20px 0; display: flex; flex-direction: column; gap: 24px; }
.hero-box { position: relative; height: 197px; }
.hero-box img { position: absolute; left: 50%; top: -67px; width: 403px; max-width: none; height: 265px; object-fit: cover; object-position: bottom; transform: translateX(-50%) scaleX(-1); }
.hero-box.custom img { position: static; width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: center; transform: none; border-radius: 20px; }
.hl-cta { color: #4A6741; }
.vbadge { display: inline-block; vertical-align: -2px; margin-left: 3px; flex-shrink: 0; }
.landing-secs { padding: 20px; display: flex; flex-direction: column; gap: 24px; }
.cta-banner { margin: 0 20px; border-radius: 24px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; background: linear-gradient(180deg, #FFEBDB 0%, rgba(255, 235, 219, 0) 100%); overflow: hidden; }
.cta-banner .pic { position: relative; height: 89px; width: 100%; }
.cta-banner .pic img { position: absolute; left: 50%; top: 50%; width: 137px; height: 137px; transform: translate(-50%, -50%); object-fit: cover; }
.cta-banner .txt { display: flex; flex-direction: column; gap: 4px; text-align: center; opacity: .9; }
.cta-banner .txt h2 { font-size: 20px; line-height: 24px; font-weight: 600; color: var(--text); }
.cta-banner .btn-primary { padding: 14px 20px; }
.why { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.why-card { display: flex; gap: 12px; padding: 16px; background: #fff; border-radius: 24px; filter: drop-shadow(0 8px 6px rgba(196, 101, 74, 0.04)); }
.why-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.tip-card { margin: 0 20px; display: flex; gap: 12px; padding: 16px; border-radius: 24px; background: linear-gradient(90deg, #FFEBDB 0%, var(--bg) 100%); }
.tip-card .pic { width: 97px; position: relative; flex-shrink: 0; }
.tip-card .pic img { position: absolute; left: 50%; top: 50%; width: 95px; height: 82px; transform: translate(-52%, -50%); object-fit: cover; object-position: bottom; }
.footer { padding: 40px 20px 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer img { width: 153.57px; height: 30.36px; }

/* ---------- Explore ---------- */
.explore { display: flex; flex-direction: column; gap: 20px; padding: 4px 20px 20px; }
.search-row { display: flex; gap: 8px; align-items: center; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; background: #fff; border: 1.5px solid #F5F0EA; border-radius: 16px; }
.search img { width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; line-height: 20px; letter-spacing: -0.16px; color: var(--text); }
.search input::placeholder { color: var(--n7); }
.filter-chip .badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--terra); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.active-chips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.active-chips::-webkit-scrollbar { display: none; }
.active-chips .chip { flex-shrink: 0; }
.active-chips .chip .x { width: 12px; height: 12px; opacity: .55; margin-left: 2px; }
.cats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 16px; }
.cats::-webkit-scrollbar { display: none; }
.cat { width: 80px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: -0.12px; color: var(--text-700); text-align: center; }
.cat .bg { width: 64px; height: 64px; border-radius: 25.6px; background: var(--peach); display: grid; place-items: center; overflow: hidden; border: 2px solid transparent; transition: border-color .15s; }
.cat .bg img { width: 54px; height: 54px; object-fit: contain; }
.cat .bg.cemilan { background: #FFF2DE; }
.cat.on .bg { border-color: var(--terra); }
.cat.on { color: var(--terra); }
.count { font-size: 12px; line-height: 16px; color: var(--n7); }

/* ---------- Detail resep ---------- */
.detail-head { display: flex; align-items: center; justify-content: space-between; padding: 20px; }
.detail { display: flex; flex-direction: column; gap: 20px; padding: 0 20px; }
.detail-hero { position: relative; height: 275px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero .nophoto svg, .act-hero .nophoto svg { width: 72px; height: 72px; }
.desc { font-size: 14px; line-height: 20px; color: var(--n7); }
.desc-wrap { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.desc.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.desc-more { font-size: 12px; line-height: 16px; color: var(--terra); text-decoration: underline; }
.nutri { display: flex; gap: 8px; }
.nutri > div { flex: 1; height: 111px; background: var(--primary-100); border-radius: 16px; padding: 8px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--primary-700); filter: drop-shadow(0 8px 6px rgba(196, 101, 74, 0.04)); }
.nutri .lb { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: -0.12px; }
.nutri img { width: 24px; height: 24px; }
.nutri .v { font-size: 12px; line-height: 16px; font-weight: 500; }
.steps { display: flex; flex-direction: column; gap: 24px; }
.step-tag { align-self: flex-start; display: inline-flex; padding: 1px 5px; border-radius: 1000px; background: var(--green); color: #fff; font-size: 10px; line-height: 12px; font-weight: 500; }
.step { display: flex; flex-direction: column; gap: 8px; }
.step .t { font-size: 16px; line-height: 17.5px; font-weight: 600; color: var(--text); }
.step .d { font-size: 14px; line-height: 20px; color: var(--n7); margin-top: -6px; }
.step .img { height: 145px; border-radius: 8px; overflow: hidden; background: #EFEDEA; margin-top: 8px; }
.step .img img { width: 100%; height: 100%; object-fit: cover; }
.allergen-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #FFECE8; color: #A23A2C; font-size: 12px; line-height: 16px; }
.info-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--green-50); color: var(--green-900); font-size: 12px; line-height: 16px; }
.sticky-cta { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 20; width: 100%; max-width: 440px; padding: 8px 20px calc(12px + var(--safe-b)); background: #fff; border-top: 1px solid rgba(213, 192, 187, 0.12); display: flex; }

/* ---------- Detail aktivitas ---------- */
.act-hero { position: relative; height: 217px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.act-hero > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 75%; }

.act-hero .bar { position: absolute; left: 0; right: 0; top: 0; padding: 12px; display: flex; justify-content: space-between; }
.meta { display: flex; gap: 24px; }
.meta span { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; letter-spacing: -0.12px; color: var(--n8); }
.meta img { width: 16px; height: 16px; }
.box { background: #fff; border: 1px solid var(--primary-50); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; filter: drop-shadow(0 8px 6px rgba(196, 101, 74, 0.04)); }
.box-head { display: flex; align-items: center; gap: 12px; }
.box-head .ic-c { padding: 8px; border-radius: 1000px; background: rgba(236, 193, 90, 0.16); display: grid; place-items: center; }
.box-head .ic-c img { width: 20px; height: 20px; }
.box-head .l1 { font-weight: 600; color: var(--text); }
.mat-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--n4); }
.mat-row:last-child { border-bottom: 0; padding-bottom: 0; }
.mat-row span:last-child { color: var(--n7); text-align: right; }
.aff-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border-radius: 16px; border: 1.5px solid #F5F0EA; color: var(--text); font-weight: 600; font-size: 14px; line-height: 20px; }
.aff-link:active { transform: scale(.98); }
.as-av { width: 20px; height: 20px; border-radius: 999px; flex: none; }
.step-links { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.tips { display: flex; gap: 12px; padding: 16px; background: #fff; border-radius: 24px; filter: drop-shadow(0 8px 6px rgba(196, 101, 74, 0.04)); }
.tips .why-ic { background: #E4F1DF; }
.tips .why-ic img { width: 22px; height: 22px; }
.tips ul { padding-left: 18px; font-size: 12px; line-height: 16px; color: var(--n7); }

/* ---------- Profil / Akun ---------- */
.profile { display: flex; flex-direction: column; gap: 20px; padding: 4px 20px 20px; }
.user-card { display: flex; align-items: center; gap: 12px; padding: 13px 17px; border-radius: 16px; border: 1px solid #F2B480; background: linear-gradient(90deg, #FFEBDB 0%, var(--bg) 100%); }
.photo64 { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.photo64 .ph { width: 64px; height: 64px; border-radius: 1000px; border: 1px solid #fff; overflow: hidden; background: var(--peach); display: grid; place-items: center; color: var(--terra); font-weight: 700; font-size: 22px; }
.photo64 .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo64 .cam { position: absolute; left: 43px; top: 42px; padding: 4px; border-radius: 1000px; background: var(--green); border: 1px solid #fff; display: grid; place-items: center; }
.photo64 .cam img { width: 12px; height: 12px; }
.kid-card { background: #fff; border-radius: 16px; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; filter: drop-shadow(0 8px 6px rgba(196, 101, 74, 0.04)); }
.kid-card .ttl { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-900); }
.kid-row { display: flex; align-items: center; gap: 12px; }
.kid-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--n8); letter-spacing: -0.12px; }
.kid-meta span { display: inline-flex; align-items: center; gap: 2px; }
.kid-meta img { width: 16px; height: 16px; }
.kid-meta i { width: 3px; height: 3px; border-radius: 9px; background: #C4C4C4; }
.facts { display: flex; align-items: center; gap: 24px; }
.facts > div { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.facts .vr { flex: 0 0 1px; width: 1px; height: 29px; background: var(--n4); }
.facts img { object-fit: contain; flex-shrink: 0; }
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--n4); overflow-x: auto; scrollbar-width: none; }
.tabs-line::-webkit-scrollbar { display: none; }
.tabs-line button { position: relative; padding: 10px 7px 12px; flex: 1 0 auto; font-size: 14px; line-height: 20px; color: var(--n7); white-space: nowrap; }
.tabs-line button.on { color: var(--terra); font-weight: 600; }
.tabs-line button.on::after { content: ''; position: absolute; left: 7px; right: 7px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--terra); }
.seg { display: flex; padding: 4px; background: var(--primary-50); border-radius: 12px; }
.seg button { flex: 1; padding: 8px 0; border-radius: 12px; font-size: 14px; line-height: 20px; color: var(--n7); border: 1px solid transparent; display: flex; align-items: center; justify-content: center; gap: 6px; }
.seg button.on { background: #fff; border-color: var(--primary-100); color: var(--primary-900); font-weight: 600; }
.progress-ring { --p: 0; width: 44px; height: 44px; border-radius: 99px; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--p) * 1%), #EEE8E2 0); flex-shrink: 0; }
.progress-ring span { width: 34px; height: 34px; border-radius: 99px; background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--text); }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wday { border-radius: 14px; padding: 8px 0; background: #fff; border: 1px solid #F1EBE5; display: flex; flex-direction: column; gap: 2px; align-items: center; min-height: 66px; }
.wday small { font-size: 11px; color: var(--n7); }
.wday b { font-size: 16px; font-weight: 600; }
.wday i { width: 6px; height: 6px; border-radius: 9px; background: #E3DDD7; }
.wday.has i { background: var(--green); }
.wday.today { border-color: var(--terra); }
.wday.on { background: var(--terra); color: #fff; border-color: var(--terra); }
.wday.on small { color: #FFE3DA; }
.wday.on i { background: #fff; }
.day-card { background: #fff; border: 1px solid #F9F0ED; border-radius: 16px; box-shadow: var(--shadow-12); padding: 14px 16px; }
.day-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.day-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.day-summary .sm { display: flex; align-items: center; gap: 6px; background: #FBF7F3; border-radius: 10px; padding: 5px 8px 5px 5px; font-size: 12px; min-width: 0; }
.day-summary .sm img { width: 22px; height: 22px; object-fit: contain; }
.day-summary .sm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.slot-list { margin-top: 12px; border-top: 1px dashed #EDE5DE; padding-top: 12px; }
.slot-line { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 12px; line-height: 16px; }
.slot-line .t { color: var(--n7); }
.slot-line .sl-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.slot-line .sl-label { font-size: 11px; line-height: 14px; color: var(--n7); }
.slot-line .sl-name { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text-700); }
.st { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 99px; }
.st.done { background: var(--green-50); color: var(--green-900); }
.st.skip { background: #FFECE8; color: #B4372C; }
.insight { display: flex; gap: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(90deg, #FFF2E0 0%, #FFFBF6 100%); border: 1px solid #F8E1C3; font-size: 12px; line-height: 16px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: #fff; border-radius: 16px; padding: 12px; border: 1px solid #F3EDE7; }
.stat b { display: block; font-size: 20px; line-height: 24px; font-weight: 600; color: var(--text); }
.stat span { font-size: 12px; color: var(--n7); }
.date-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.date-range input { width: 100%; height: 44px; border: 1px solid #E9EAEB; border-radius: 10px; padding: 0 10px; background: #fff; font-size: 14px; }

/* ---------- Form profil anak ---------- */
.kid-form { display: flex; flex-direction: column; gap: 20px; padding: 4px 20px 20px; }
.photo-pick { position: relative; width: 88px; height: 88px; border-radius: 999px; background: var(--peach); display: grid; place-items: center; color: var(--terra); flex-shrink: 0; cursor: pointer; }
.photo-pick .in { width: 88px; height: 88px; border-radius: 999px; overflow: hidden; border: 2px solid #fff; display: grid; place-items: center; }
.photo-pick .in img { width: 100%; height: 100%; object-fit: cover; }
.photo-pick .cam { position: absolute; right: 0; bottom: 2px; padding: 5px; border-radius: 999px; background: var(--green); border: 1px solid #fff; display: grid; place-items: center; }
.photo-pick .cam img { width: 14px; height: 14px; }
.age-preview { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9999px; background: rgba(236, 255, 228, 0.6); color: var(--green-900); font-size: 12px; line-height: 16px; font-weight: 500; }
.gender-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gender-toggle button { height: 46px; border-radius: 10px; border: 1px solid #E9EAEB; background: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; }
.gender-toggle button img { width: 16px; height: 16px; }
.gender-toggle button.on { border-color: var(--terra); background: #FEF0ED; color: var(--terra); font-weight: 600; }
.steps-dots { display: flex; gap: 6px; }
.steps-dots span { height: 6px; flex: 1; border-radius: 6px; background: #EEE7E0; }
.steps-dots span.on { background: var(--green); }

/* ---------- Sheet / dialog ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(40, 28, 20, .38); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease; }
.overlay.center { align-items: center; padding: 20px; }
.sheet { width: 100%; max-width: 440px; max-height: 92dvh; background: #fff; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: up .24s cubic-bezier(.2, .9, .3, 1); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--n4); }
.sheet-head h3 { font-size: 20px; line-height: 24px; font-weight: 500; color: var(--text); }
.sheet-head .reset { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.18px; color: #B25C43; padding: 6px 0 6px 10px; }
.sheet-body { overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 24px; }
.sheet-foot { padding: 12px 20px calc(12px + var(--safe-b)); border-top: 1px solid var(--n4); display: flex; gap: 10px; }
.sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: #E6E0DA; margin: 8px auto 0; }
.f-group { display: flex; flex-direction: column; gap: 12px; }
.f-head { display: flex; align-items: center; gap: 12px; }
.f-head .ic-c { padding: 8px; border-radius: 1000px; display: grid; place-items: center; }
.f-head .ic-c img { width: 20px; height: 20px; }
.f-head .l1 { font-weight: 600; color: var(--text); }
.range { position: relative; height: 15px; }
.range .rail { position: absolute; left: 0; right: 0; top: 5px; height: 5px; border-radius: 100px; background: #E5E5E5; }
.range .fill { position: absolute; top: 5px; height: 5px; background: var(--green); }
.range input { position: absolute; left: 0; width: 100%; top: 0; height: 15px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-runnable-track { background: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--green); box-shadow: 0 2px 4px rgba(0, 0, 0, .15); pointer-events: auto; cursor: pointer; }
.range input::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--green); pointer-events: auto; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; font-size: 14px; line-height: 20px; }
.dialog { width: 100%; max-width: 380px; background: #fff; border-radius: 24px; padding: 22px 20px 18px; animation: pop .2s ease; }
.slot-picker { display: flex; flex-direction: column; gap: 8px; }
.slot-opt { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid #F5F0EA; border-radius: 16px; text-align: left; }
.slot-opt.on { border-color: var(--green); background: var(--green-50); }
.radio { width: 20px; height: 20px; border-radius: 99px; border: 2px solid #D8D1CA; display: grid; place-items: center; }
.slot-opt.on .radio { border-color: var(--green); }
.slot-opt.on .radio::after { content: ''; width: 10px; height: 10px; border-radius: 9px; background: var(--green); }
.notif-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: #FBF7F3; text-align: left; width: 100%; }
.notif-item .ic { color: var(--terra); }

@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .4; } }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }

/* ---------- Toast / empty ---------- */
#toast-root { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 16px + var(--safe-b)); z-index: 70; width: calc(100% - 32px); max-width: 400px; pointer-events: none; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #3A3633; color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 13px; line-height: 18px; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); animation: up .22s ease; display: flex; gap: 10px; align-items: center; pointer-events: auto; }
.toast .ic { color: #9FD38B; }
.empty { text-align: center; padding: 28px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.suggest-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; width: 100%; }
.suggest-list button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; background: #fff; border: 1.5px solid #F5F0EA; border-radius: 16px; font-size: 14px; line-height: 20px; text-align: left; }
.suggest-list button b { color: var(--terra); font-weight: 600; white-space: nowrap; }
.skeleton { background: linear-gradient(90deg, #F3EEE9 0%, #FBF8F5 50%, #F3EEE9 100%); background-size: 200% 100%; animation: shimmer 1.1s infinite; border-radius: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spin { animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.hint:empty { display: none; }

/* ---------- Susun rencana ---------- */
.edit-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 9999px; background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--primary-900); font-size: 12px; line-height: 16px; font-weight: 600; }
.edit-btn .ic { color: var(--terra); }
.pl-list { display: flex; flex-direction: column; }
.pl-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--n4); }
.pl-row:last-child { border-bottom: 0; }
.pl-time { width: 42px; flex-shrink: 0; font-family: 'Figtree', 'Inter', sans-serif; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }
.pl-del { width: 36px; height: 36px; color: var(--n7); }
.pl-del:hover { color: #C0392B; background: #FFF1EE; }
.pl-add { display: flex; flex-direction: column; gap: 14px; }
.pl-add .seg button { padding: 10px 0; font-size: 14px; white-space: nowrap; }
.pl-add .seg .mi { width: 16px; height: 16px; }
.pl-add input[type="time"] { min-width: 0; }
.pick-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-900); font-size: 13px; line-height: 18px; }
.pick-banner .link { font-size: 13px; }

/* ---------- Kartu rekomendasi ---------- */
.reco-card { position: relative; width: 264px; height: 188px; flex-shrink: 0; border-radius: 20px; overflow: hidden; text-align: left; display: block; filter: drop-shadow(0 8px 6px rgba(196, 101, 74, 0.06)); }
.reco-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reco-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 25, 15, 0) 38%, rgba(40, 25, 15, 0.72) 100%); }
.reco-card .nophoto { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); }
.reco-card .nophoto svg { width: 56px; height: 56px; }
.reco-why { position: absolute; z-index: 1; left: 12px; top: 12px; max-width: calc(100% - 56px); display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 9999px; background: rgba(255, 255, 255, 0.92); color: var(--terra); font-size: 12px; line-height: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reco-fav { position: absolute; z-index: 1; right: 12px; top: 12px; width: 26px; height: 26px; border-radius: 99px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--terra); }
.reco-body { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; }
.reco-title { font-size: 16px; line-height: 20px; font-weight: 600; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reco-meta { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, 0.85); }
.box.steps { gap: 24px; }

.step .img.vid { position: relative; display: block; width: 100%; padding: 0; }
.step .img.vid img { filter: brightness(0.72); }
.step .img.vid .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 99px; background: rgba(255, 255, 255, 0.92); color: var(--green); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.step .img.vid .play .ic { margin-left: 3px; }
.step .img.vid .dur { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11px; line-height: 14px; font-weight: 500; }

/* Tombol sekunder "Cari menu…" di Susun rencana — tidak bersaing dengan CTA utama "Selesai". */
.btn-find { padding: 12px 16px; border-radius: 16px; background: var(--green-50); border: 1.5px solid var(--green-100); color: var(--green-900); font-size: 14px; line-height: 20px; gap: 8px; }
.btn-find .ic { color: var(--green); }

/* ---------- Dialog & sheet umum (kelas yang dipakai dialog lama) ---------- */
.label1 { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--text); }
.label2 { font-size: 14px; line-height: 20px; }
.label3 { font-size: 12px; line-height: 16px; }
.muted { color: var(--n7); }
.semibold { font-weight: 600; }
.btn-block { width: 100%; }
.btn-danger { background: #D2483A; }
.menu-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 12px; font-size: 14px; line-height: 20px; color: var(--text); }
.menu-link:active { background: var(--primary-50); }
.menu-link .ic { color: var(--n7); }
.menu-link.danger, .menu-link.danger .ic { color: #C0392B; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rot180 { transform: rotate(180deg); }

/* ================= v2: komunitas & buatan pengguna ================= */
.ex-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.btn-add { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px 8px 14px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: -0.16px; flex-shrink: 0; }
.btn-add:active { transform: scale(.97); }
.pf-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--text); font-size: 10px; line-height: 12px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.pf-badge svg { width: 14px; height: 14px; }
.pf-badge.abs { position: absolute; left: 8px; top: 8px; z-index: 1; }
.pf-badge.soft { background: var(--primary-50); }
.safe-note { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--n7); }
.safe-note img { width: 14px; height: 14px; }
.ugc-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #fff; border: 1px solid #F7F7F7; border-radius: 16px; filter: drop-shadow(0 8px 6px rgba(196, 101, 74, 0.04)); text-align: left; min-width: 0; }
.ugc-card.w212 { width: 212px; }
.ugc-card-wrap { position: relative; min-width: 0; display: flex; }
.ugc-card-wrap > .ugc-card { flex: 1; }
.ugc-card-wrap > .ugc-card .credit { padding-right: 30px; }
.card-more { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; background: #fff; border: 1px solid #EFEDEA; color: var(--n8); }
.ugc-card .thumb { height: 114px; }
.ugc-title { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text); letter-spacing: -0.16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.credit { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; min-width: 0; margin-top: auto; }
.credit .cr-name { font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.credit .cr-meta { color: var(--n7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 100 auto; }
.av { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 999px; background: var(--tertiary-100, #EDCFC7); color: #8E4632; font-size: 9px; font-weight: 600; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.st-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 10px; line-height: 14px; font-weight: 600; white-space: nowrap; }
.st-pill.pub { background: var(--green-50); color: var(--green-900); }
.st-pill.draft { background: #FFF1D6; color: #8A6414; }
.st-pill.fix { background: #FFE4E1; color: #B4372C; }
.st-pill.priv { background: var(--n4); color: var(--n8); }
.st-pill.review { background: #E3F4F8; color: #1F6B7C; }

/* Detail komunitas */
.credit-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; line-height: 16px; color: var(--n8); }
.detail-hero video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.g-item { position: relative; height: 82px; border-radius: 12px; overflow: hidden; background: #EFEDEA; }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; }
.g-item .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: #fff; font-weight: 600; }
.vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 99px; background: rgba(0, 0, 0, .5); color: #fff; display: grid; place-items: center; }
.vplay .ic { margin-left: 2px; }
.video-card { display: flex; gap: 12px; align-items: center; padding: 13px; background: #fff; border: 1px solid var(--n4); border-radius: 16px; }
.vc-thumb { position: relative; width: 60px; height: 80px; border-radius: 10px; overflow: hidden; background: #EFEDEA; flex-shrink: 0; }
.vc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.vc-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vc-pf { display: flex; align-items: center; gap: 6px; }
.vc-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; color: var(--terra); font-weight: 500; }
.owner-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--primary-50); color: var(--primary-900); font-size: 12px; line-height: 16px; }
.owner-bar.fix { background: #FFECE8; color: #A23A2C; }
.owner-bar.admin { background: #ECE6F8; color: #3F2E6B; }
.mini-btn.danger { color: #C0392B; }
.ed-delete { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: 14px; border: 1px solid #F3C9C2; background: #FFF5F3; color: #C0392B; font-size: 14px; font-weight: 600; }
.ugc-info { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--primary-50); }
.report-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12px; line-height: 16px; color: var(--terra); font-weight: 500; }
.step .img video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.lightbox { position: relative; width: 100%; max-width: 440px; }
.lightbox img, .lightbox video { width: 100%; max-height: 80dvh; object-fit: contain; border-radius: 12px; background: #000; }
.step .img.step-media { display: grid; gap: 4px; background: none; }
.step .img.step-media.n2 { grid-template-columns: 1fr 1fr; }
.step .img.step-media.n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.step .img.step-media.n3 .zm:first-child { grid-row: span 2; }
.zm { position: relative; display: block; width: 100%; height: 100%; min-height: 0; padding: 0; overflow: hidden; background: #EFEDEA; cursor: zoom-in; }
.step-media.n2 .zm, .step-media.n3 .zm { border-radius: 4px; }
.zm img, .zm video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; }
.lb-nav.prev { left: 8px; }
.lb-nav.next { right: 8px; }
.lb-count { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; padding: 2px 10px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; line-height: 18px; }
.lb-x { position: absolute; right: 8px; top: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; }
.overlay.dark { background: rgba(0, 0, 0, .82); }

/* Sheet Tambah */
.add-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid #F1EDE8; border-radius: 16px; background: #fff; text-align: left; }
.add-opt:active { background: var(--primary-50); }
.ao-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.ao-ic.peach { background: #FFE4D8; color: var(--terra); }
.ao-ic.green { background: #E4F1DF; color: var(--green); }
.ao-t { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--text); }
.ao-d { font-size: 12px; line-height: 16px; color: var(--n7); }
.note-warn { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #FFF6E8; color: #B07A1E; font-size: 12px; line-height: 16px; }
.note-warn .ic { flex-shrink: 0; }

/* Import dari video */
.imp { display: flex; flex-direction: column; gap: 20px; padding: 20px 16px 170px; }
.back-yel { width: 32px; height: 32px; border-radius: 99px; background: var(--primary); color: #fff; display: grid; place-items: center; }
.imp-h { font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -0.4px; color: var(--text); }
.imp-input { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 14px; background: #fff; border: 1px solid #E9EAEB; border-radius: 12px; }
.imp-input.filled { border-color: var(--primary); }
.imp-input.invalid { border-color: #EBA59C; }
.imp-input > .ic { color: var(--terra); }
.imp-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--text); }
.paste-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 8px; background: var(--primary-50); color: var(--primary-900); font-size: 12px; line-height: 16px; font-weight: 600; flex-shrink: 0; }
.imp-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; color: var(--green); }
.imp-prev { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--n4); border-radius: 16px; background: #fff; align-items: center; }
.imp-prev > img, .imp-prev > .ph { width: 64px; height: 84px; border-radius: 10px; object-fit: cover; background: var(--primary-50); display: grid; place-items: center; flex-shrink: 0; }
.imp-prev .pf-badge { align-self: flex-start; }
.imp-what { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--green-50); color: var(--green-900); font-size: 12px; line-height: 16px; }
.imp-what .ic { color: var(--green); }
.sticky-cta.col { flex-direction: column; gap: 6px; align-items: stretch; }
.foot-note { font-size: 10px; line-height: 14px; color: var(--n7); text-align: center; }
.draft-link { align-self: center; padding: 4px 8px; font-size: 12px; line-height: 16px; color: var(--terra); text-decoration: underline; }
.imp-load { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 36px; }
.imp-art { position: relative; width: 150px; height: 200px; border-radius: 18px; overflow: hidden; margin-bottom: 12px; }
.imp-art img { width: 100%; height: 100%; object-fit: cover; }
.imp-art .spark { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 99px; background: #fff; color: #7C4DDB; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .12); animation: pulse 1.4s ease-in-out infinite; }
.imp-steps { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--n4); border-radius: 16px; background: #fff; }
.imp-step { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; color: var(--n7); }
.imp-step.done { color: var(--text); }
.imp-step.done .ok { color: var(--green); display: grid; }
.imp-step.now { color: var(--text); font-weight: 600; }
.imp-step .ring { width: 18px; height: 18px; border-radius: 99px; border: 2px dashed #C9C6C2; flex-shrink: 0; }
.imp-step.now .ring { border-color: var(--primary); }
.spin-slow { animation: rot 2.4s linear infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* Editor (cek draft / tulis sendiri) */
.ed { display: flex; flex-direction: column; gap: 20px; padding: 20px 20px calc(150px + var(--safe-b)); }
.ed-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ed-card { background: #fff; border: 1px solid var(--primary-50); border-radius: 16px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; filter: drop-shadow(0 8px 6px rgba(196, 101, 74, 0.04)); }
.ed-card.plain { background: transparent; border: 0; padding: 0; filter: none; }
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ed-head h2, .ed-title { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.18px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.ed-head h2 img { width: 18px; height: 18px; }
.ai-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: #F1EBFC; color: #7C4DDB; font-size: 10px; line-height: 12px; font-weight: 600; white-space: nowrap; }
.ed-hint { font-size: 12px; line-height: 16px; color: var(--n7); }
.ed-in { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #F1EDE8; border-radius: 10px; background: #fff; font-size: 14px; line-height: 20px; color: var(--text); outline: 0; transition: border-color .15s, box-shadow .15s; }
.ed-in::placeholder { color: var(--n6); }
.ed-in:focus, .ed-in:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(252, 188, 80, .16); }
textarea.ed-in { resize: vertical; min-height: 44px; display: block; }
select.ed-in { appearance: none; background: #fff url(img/fig/f-down.svg) right 10px center / 16px no-repeat; padding-right: 30px; }
.ed-in.suffix, .ed-in.with-ic { display: flex; align-items: center; gap: 8px; padding-top: 0; padding-bottom: 0; }
.ed-in.suffix input, .ed-in.with-ic input { flex: 1; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--text); }
.ed-in.suffix span { color: var(--n7); font-size: 12px; }
.ed-in.with-ic .ic { color: var(--terra); }
.ed-in.st-t { font-weight: 600; }
.ed-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ed-row { display: grid; grid-template-columns: minmax(0, 1fr) 92px 28px; gap: 8px; align-items: center; }
.ed-row.two { grid-template-columns: minmax(0, 1fr) 28px; }
.icon-btn.sm { width: 28px; height: 28px; color: var(--n7); }
.icon-btn.sm:disabled { opacity: .3; }
.ed-add { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px; background: #FAF8F6; border: 1px dashed #EAE5E0; color: var(--n7); font-size: 12px; line-height: 16px; font-weight: 600; }
.ed-step { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid #F3EFEA; border-radius: 12px; }
.chip.sm { font-size: 12px; line-height: 16px; padding: 5px 10px; }
.chip.sm.on { padding: 5px 11px; }
.ed-media { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ed-media::-webkit-scrollbar { display: none; }
.ed-tile { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #EFEDEA; flex-shrink: 0; }
.ed-tile.big { width: 104px; height: 128px; border-radius: 12px; }
.ed-tile img, .ed-tile video { width: 100%; height: 100%; object-fit: cover; }
.ed-tile.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #FAF8F6; border: 1px dashed #DAD5CF; color: var(--n7); font-size: 10px; line-height: 13px; font-weight: 600; text-align: center; cursor: pointer; }
.tile-pill { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--text); font-size: 10px; line-height: 12px; font-weight: 600; }
.tile-pill.btn-pill { top: auto; bottom: 6px; }
.tile-lock { position: absolute; right: 6px; bottom: 6px; width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #B7791F; }
.hero-credit { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; line-height: 14px; }
.tile-x { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; }
.tile-busy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; background: rgba(255, 255, 255, .78); font-size: 10px; line-height: 12px; font-weight: 600; color: var(--text); }
.tb-bar { width: 100%; max-width: 80px; height: 4px; border-radius: 99px; background: rgba(0, 0, 0, .1); overflow: hidden; }
.tb-bar i { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .2s ease; }
.ed-tile:not(.big) .tile-busy { padding: 0 4px; font-size: 9px; gap: 4px; }
.tb-p { font-size: 14px; line-height: 16px; font-weight: 700; }
.tb-bar.indet i { animation: tb-indet 1.1s ease-in-out infinite; }
@keyframes tb-indet { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .tb-bar.indet i { animation: none; width: 100% !important; } }

/* ---------- Potong foto ---------- */
.crop-screen { position: fixed; inset: 0; height: 100dvh; z-index: 80; display: flex; flex-direction: column; background: #111; color: #fff; animation: fade .18s ease; }
.crop-head { position: relative; flex: none; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: calc(6px + env(safe-area-inset-top, 0px)) 16px 6px; font-size: 16px; }
.crop-head .crop-cancel { position: absolute; left: 8px; bottom: 6px; color: #fff; font-size: 15px; padding: 8px 10px; }
.crop-area { flex: 1; min-height: 0; overflow: hidden; }
.crop-area img { display: block; max-width: 100%; }
.crop-foot { flex: none; display: flex; flex-direction: column; gap: 12px; padding: 12px 16px calc(12px + var(--safe-b)); }
.crop-ratios { display: flex; justify-content: center; gap: 8px; }
.crop-ratios button { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 600; }
.crop-ratios button.on { background: var(--primary); color: #3A2A10; }
.crop-foot .crop-ok { display: grid; place-items: center; width: 100%; height: 50px; border-radius: 999px; background: var(--primary); color: #3A2A10; font-size: 16px; font-weight: 700; }
.crop-screen.round .cropper-view-box, .crop-screen.round .cropper-face { border-radius: 50%; }
.step-media-add { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: var(--green-50); color: var(--green); font-size: 12px; line-height: 16px; font-weight: 500; cursor: pointer; }
.ed-cover-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 116px; border-radius: 16px; border: 1.5px dashed var(--primary); background: var(--primary-50); color: var(--primary-900); text-align: center; cursor: pointer; }
.ed-cover-add .ic { color: var(--primary-700); }
.ed-cover-add .l3 { color: var(--primary-700); }
.src-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--terra); }
.src-card img { width: 44px; height: 56px; border-radius: 8px; object-fit: cover; }
.ed-safe { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--green-50); }
.ed-safe .ed-head h2 { color: var(--green-900); font-size: 14px; line-height: 20px; }
.safe-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 16px; color: var(--text); }
.safe-row .ic { flex-shrink: 0; margin-top: -1px; }
.safe-row.ok .ic { color: var(--green); }
.safe-row.warn { color: #B06A12; } .safe-row.warn .ic { color: #E39A2D; }
.safe-row.fail { color: #B4372C; font-weight: 600; } .safe-row.fail .ic { color: #fff; background: #D2483A; border-radius: 99px; padding: 2px; }
.vis-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #EEE9E4; border-radius: 14px; background: #fff; text-align: left; }
.vis-opt > .ic { color: var(--n7); }
.vis-opt.on { border: 1.5px solid var(--green); background: #F7FBF6; }
.vis-opt.on > .ic { color: var(--green); }
.radio { width: 20px; height: 20px; border-radius: 99px; border: 1.5px solid #CFCAC5; flex-shrink: 0; position: relative; }
.on > .radio { border-color: var(--green); }
.on > .radio::after { content: ''; position: absolute; inset: 3px; border-radius: 99px; background: var(--green); }
.share-toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--green-100); background: var(--green-50); color: var(--green-900); text-align: left; }
.share-toggle .l3 { color: var(--green-600); }
.switch { width: 40px; height: 24px; border-radius: 99px; background: #D5D2CE; position: relative; flex-shrink: 0; transition: background .15s; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 99px; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.share-toggle.on .switch { background: var(--green); }
.share-toggle.on .switch::after { transform: translateX(16px); }
.radio-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #EEE9E4; border-radius: 12px; text-align: left; font-size: 14px; line-height: 20px; }
.radio-row.on { border-color: var(--green); background: #F7FBF6; }

/* Akun → Buatanku */
.mine-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mine-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid #F1EDE8; border-radius: 16px; background: #fff; }
.mine-stats b { font-size: 20px; line-height: 26px; font-weight: 600; color: var(--text); }
.mine-stats span { font-size: 12px; line-height: 16px; color: var(--n7); }
.mine-row { display: flex; align-items: center; gap: 4px; padding: 12px; background: #fff; border-radius: 16px; filter: drop-shadow(0 8px 6px rgba(196, 101, 74, 0.05)); }
.mine-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.mine-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; font-size: 30px; flex-shrink: 0; }
.mine-thumb img { width: 100%; height: 100%; object-fit: cover; }

.overlay.center { text-align: initial; }
.cap-box { border: 1px solid var(--n4); border-radius: 14px; background: #fff; }
.cap-box summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text); cursor: pointer; list-style: none; }
.cap-box summary::-webkit-details-marker { display: none; }
.cap-box summary .ic { color: var(--n7); }
.cap-box[open] summary .ic:last-child { transform: rotate(180deg); }
.cap-box p { padding: 0 12px 12px; font-size: 12px; line-height: 18px; color: var(--n8); white-space: pre-wrap; max-height: 260px; overflow: auto; }
.imp-quota { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #F1EBFC; color: #6B3FC9; font-size: 12px; line-height: 16px; font-weight: 500; }
.imp-quota.out { background: #FFF1D6; color: #8A6414; }
.imp-art .art-ph { width: 100%; height: 100%; display: grid; place-items: center; background: var(--primary-50); }
.imp-art .art-ph svg { width: 44px; height: 44px; opacity: .8; }
.ed .imp-quota { align-self: flex-start; }
.recipe-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: -8px; font-size: 12px; line-height: 16px; color: var(--terra); font-weight: 500; }
.note-warn .tech { display: block; margin-top: 4px; font-size: 10px; line-height: 14px; opacity: .8; word-break: break-word; }
/* Ruang bawah ekstra agar konten terakhir tidak tertutup tombol bawah (2 baris: tombol + link). */
.screen.no-nav.ed { padding-bottom: calc(130px + var(--safe-b)); }
.screen.no-nav.plain.imp { padding-bottom: calc(130px + var(--safe-b)); }
.legal-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; font-size: 12px; line-height: 16px; color: var(--n7); }
.legal-links a { color: var(--n8); text-decoration: underline; }
.agree { font-size: 11px; line-height: 16px; color: var(--n7); text-align: center; }
.agree a { color: var(--terra); }

/* ---------- Import banyak link (admin) ---------- */
.bulk-entry { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; margin-bottom: 12px; border-radius: 16px; background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--primary-900); text-align: left; }
.bulk-entry b { font-size: 14px; line-height: 20px; }
.bulk-entry span span { font-size: 12px; line-height: 16px; color: var(--primary-700); }
.bulk-job { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #EFEDEA; }
.bulk-job.ok { border-color: var(--green-100); background: var(--green-50); }
.bulk-job.err { border-color: #F3C9C2; background: #FFF5F3; }
.bulk-job.skip { opacity: .7; }
.bulk-job .btn.sm { padding: 6px 12px; font-size: 12px; }

/* ---------- Kartu "Resep asli" (Cookpad / situs resep) ---------- */
.video-card.recipe-src .vc-thumb.pf { display: grid; place-items: center; background: #FFF4E8; }
.video-card.recipe-src .vc-thumb.pf svg { width: 30px; height: 30px; }

/* ---------- Konten diterjemahkan otomatis ---------- */
.tr-note { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 12px; line-height: 16px; color: var(--n7); }
.tr-note .link { font-size: 12px; color: var(--terra); text-decoration: underline; }

/* ---------- Link pengasuh (v8) ---------- */
.share-row { display: flex; align-items: center; gap: 12px; padding: 4px 0; text-align: left; width: 100%; }
.share-row .ao-ic { width: 40px; height: 40px; }
.share-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; border: 1px solid #F5F0EA; background: #FBF7F3; }
.share-link input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 13px; color: var(--n7); text-overflow: ellipsis; }
.share-link .mini-btn { flex-shrink: 0; padding: 6px 12px; }
.btn-wa { background: #25D366; color: #fff; border-radius: 16px; padding: 12px; font-size: 15px; gap: 8px; }
.c-danger { color: #C0392B; }
.share-view .home { padding-bottom: 32px; }
.share-view .detail { padding-bottom: 32px; }
.share-view .detail-head .chip-btn { flex-shrink: 0; }
@media (pointer: coarse) { .share-link input { font-size: 16px; } }

/* ---------- Profil kreator & Follow (v9) ---------- */
.follow-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex-shrink: 0; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; font-size: 13px; line-height: 16px; padding: 8px 14px; border: 1px solid transparent; }
.follow-btn.on { background: var(--green-50); border-color: #D6E9CD; color: #3E6B2F; }
.follow-btn.lg { flex: 1; font-size: 15px; line-height: 20px; padding: 12px 16px; gap: 6px; }
.cr-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cr-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.cr-row .av { font-size: 17px; }
.cr-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cr-nm { display: flex; align-items: center; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text-900); }
.cr-sub { font-size: 12px; line-height: 16px; color: var(--brown-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-list { display: flex; flex-direction: column; gap: 14px; padding: 14px; background: #fff; border: 1px solid #F7F7F7; border-radius: 16px; box-shadow: var(--shadow-12); }
.creator-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: #fff; border: 1px solid var(--primary-100); border-radius: 16px; }
.cr-more { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--terra); text-align: left; }
.link-name { font: inherit; color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: #E7DED6; text-underline-offset: 2px; }
.creator-head { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 16px; background: #fff; border: 1px solid #F7F7F7; border-radius: 24px; box-shadow: var(--shadow-12); text-align: center; }
.creator-head > .av { font-size: 34px; background: #F2B480; color: #fff; }
.cp-name { display: flex; align-items: center; font-size: 20px; line-height: 26px; font-weight: 600; color: var(--text-900); }
.cp-name .vbadge { margin-left: 6px; }
.cp-stats { display: flex; width: 100%; }
.cp-stat { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cp-stat b { font-size: 17px; line-height: 22px; font-weight: 600; color: var(--text-900); }
.cp-stat span { font-size: 12px; line-height: 16px; color: var(--brown-muted); }
.cp-actions { display: flex; gap: 8px; width: 100%; }
.cp-social { display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #F0E8E1; background: #fff; color: var(--text); font-size: 13px; font-weight: 600; flex-shrink: 0; }
.cp-social svg { width: 16px; height: 16px; }
.cr-avatars { gap: 14px; }
.cr-av { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; flex-shrink: 0; }
.cr-av .ring { position: relative; padding: 2px; border-radius: 999px; border: 2px solid #EADFD6; }
.cr-av.new .ring { border-color: var(--green); }
.cr-av .av { font-size: 20px; }
.cr-av .vb { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; background: #fff; border-radius: 999px; padding: 1px; }
.cr-av .vb .vbadge { margin: 0; }
.cr-av .nm { width: 100%; font-size: 11px; line-height: 14px; color: var(--n8); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-av.new .nm { font-weight: 600; color: var(--text-900); }
/* Akun: kartu pengguna → profil publik */
.uc-main { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; text-align: left; }
.uc-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-link { align-self: flex-start; margin-top: 2px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--terra); }
.uc-go { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.8); color: var(--terra); }
.uc-main .pill { white-space: normal; }

/* Item tanpa foto: ikon lembut di atas warna latar item (pengganti emoji) */
.nophoto { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(76, 60, 50, 0.28); }
.nophoto .ic { stroke-width: 1.6; }
.photo64 .ph .fi { width: 32px; height: 32px; }
/* Nilai gizi (v10) */
.ed-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ed-3 .ed-in.suffix { padding-left: 10px; padding-right: 10px; }
.nutri-note { display: flex; align-items: center; gap: 6px; margin-top: -8px; font-size: 12px; line-height: 16px; color: var(--brown-muted); }
.nutri-note .ic { flex-shrink: 0; color: var(--primary-700); }
/* Label fokus skill di kartu aktivitas (tidak menyaring) */
.thumb .focus-tag { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; max-width: calc(100% - 12px); padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: var(--green-900); font-size: 10px; line-height: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb .focus-tag .ic { color: var(--green); flex-shrink: 0; }
