/* WEAR RAME OS — "v2" visual system (approved by Brenda 2026-10-25).
   A mix of three references: photo-first cards with frosted glass (KOH), tile pickers with a lime
   "selected" state and dark decision panels (tennis courts), and a calm warm off-white planner
   with rounded cards, round tick-boxes and timelines. Cormorant for names, Inter for work.
   Self-hosted fonts only (Indonesian ISPs block the Google Fonts CDN). */

@font-face { font-family: 'Inter'; src: url('/fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('/fonts/cormorant-garamond-var.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --ground: #F3F1EC;
  --card: #FFFFFF;
  --soft: #F2EFEA;
  --soft-2: #ECE8E1;
  --line: #E7E2DA;
  --line-strong: #D3CBBF;
  --stone: #A39A8F;
  --taupe: #6F675F;
  --ink: #1B1816;
  --dark: #1C1917;
  --dark-2: #2A2622;
  --dark-3: #3A3530;
  --on-dark: #EDE7DF;
  --on-dark-muted: #A79E93;
  --lime: #D9E88F;
  --lime-soft: #EEF4D1;
  --lime-ink: #2B3210;
  --sage: #DFE7D7;
  --sage-ink: #4A5A3E;
  --blush: #EBCFC4;
  --blush-ink: #7A3F2E;
  --blue: #DCE6EE;
  --blue-ink: #3E5568;
  --sand: #F5ECDA;
  --sand-ink: #8A622A;
  --tan: #A27F66;
  --red: #B4533A;
  --red-soft: #F6E3DC;
  --focus: #8C7A6B;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 28px;
  --shadow: 0 1px 2px rgba(27, 24, 22, .04), 0 12px 30px -20px rgba(27, 24, 22, .22);
  --shadow-lg: 0 30px 70px -28px rgba(27, 24, 22, .45);
  --sidebar: 256px;
  --display: 'Cormorant', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 14px/1.5 var(--sans); font-feature-settings: 'cv11', 'ss01'; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ─── Type ─────────────────────────────────────────────────────────────── */
.display { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; line-height: 1.02; }
.eyebrow { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); }
.muted { color: var(--taupe); }
.faint { color: var(--stone); }
.num { font-variant-numeric: tabular-nums; }
.code { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.danger-text { color: var(--red); }
.ok-text { color: var(--sage-ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }

/* ─── Shell ────────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 14px; height: calc(100vh - 28px); margin: 14px 0 14px 14px; overflow-y: auto; background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow); display: flex; flex-direction: column; padding: 24px 0 16px; }
.brand { padding: 0 24px 22px; margin-bottom: 8px; }
.brand-word { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: .24em; line-height: 1; white-space: nowrap; }
.brand-logo { display: block; width: 140px; height: auto; }
.brand-sub { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-size: 11px; font-weight: 500; color: var(--taupe); white-space: nowrap; }
.brand-sub b { padding: 2px 6px; border-radius: 6px; background: var(--lime); color: var(--lime-ink); font-size: 9px; font-weight: 700; letter-spacing: .12em; line-height: 1.5; }
.nav { display: flex; flex-direction: column; padding: 0 12px; gap: 2px; }
.nav a { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; padding: 9px 14px; border-radius: 14px; color: var(--taupe); font-size: 13.5px; transition: background .15s, color .15s; }
.nav a .idx { font-size: 10.5px; color: var(--stone); font-variant-numeric: tabular-nums; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a.active { background: var(--dark); color: #fff; font-weight: 500; }
.nav a.active .idx { color: var(--lime); }
.nav .badge { min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px; background: var(--lime); color: var(--lime-ink); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.sidebar-foot { margin-top: auto; padding: 14px 18px 0; }
.sidebar-foot .row { background: var(--soft); border-radius: 18px; padding: 10px 10px 10px 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 18px 34px 10px; background: rgba(243, 241, 236, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.topbar .crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; font-size: 12.5px; color: var(--taupe); }
.topbar .crumbs a:hover { color: var(--ink); }
.topbar .crumbs .sep { color: var(--line-strong); }
.mobile-brand { display: none; }
.search { position: relative; width: 320px; }
.search input { width: 100%; height: 40px; padding: 0 14px 0 38px; border: 0; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.search input:focus { outline: none; box-shadow: 0 0 0 2px var(--dark); }
.search svg { position: absolute; left: 14px; top: 13px; color: var(--stone); }
.search-results { position: absolute; top: 48px; right: 0; width: 400px; max-height: 70vh; overflow: auto; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 8px; }
.search-results a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; }
.search-results a:hover, .search-results a.hl { background: var(--soft); }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: var(--card); border-radius: 50%; cursor: pointer; color: var(--ink); box-shadow: var(--shadow); flex: none; }
.icon-btn:hover { background: var(--soft); }
.icon-btn .dot { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--card); }
.content { padding: 6px 34px 90px; max-width: 1480px; width: 100%; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin: 14px 0 24px; flex-wrap: wrap; }
.page-head h1 { font-family: var(--display); font-size: 46px; font-weight: 600; line-height: .98; letter-spacing: -.015em; }
.page-head .lede { margin-top: 10px; color: var(--taupe); max-width: 620px; }
.hello { font-size: 19px; color: var(--taupe); line-height: 1.2; }
.hello + h1 { margin-top: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ─── Buttons & inputs ─────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 20px; border: 0; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background .15s, box-shadow .15s, color .15s; }
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--dark); color: #fff; box-shadow: none; }
.btn.primary:hover { background: #000; }
.btn.lime { background: linear-gradient(90deg, var(--lime-soft), var(--lime)); color: var(--lime-ink); box-shadow: none; font-weight: 600; }
.btn.lime:hover { background: var(--lime); }
.btn.outline-lime { background: transparent; color: var(--lime); box-shadow: inset 0 0 0 1.5px var(--lime); }
.btn.ghost { box-shadow: none; background: transparent; color: var(--taupe); }
.btn.ghost:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.btn.on-dark { background: var(--dark-2); color: var(--on-dark); box-shadow: none; }
.btn.danger { color: var(--red); }
.btn.sm { height: 32px; padding: 0 13px; font-size: 12.5px; border-radius: 16px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 14px; border-radius: 24px; }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-busy='true'] { opacity: .55; cursor: not-allowed; }
.btn[aria-busy='true']::after { content: ''; width: 12px; height: 12px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12px; font-weight: 500; color: var(--taupe); }
.field .hint { font-size: 11.5px; color: var(--stone); }
.input, .select, .textarea { width: 100%; min-height: 42px; padding: 9px 14px; border: 0; border-radius: 14px; background: var(--soft); outline: none; transition: box-shadow .15s, background .15s; }
.input:focus, .select:focus, .textarea:focus { background: var(--card); box-shadow: 0 0 0 1.5px var(--dark); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%236F675F' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.select.compact { min-height: 34px; height: 34px; padding: 0 30px 0 14px; font-size: 12.5px; border-radius: 17px; background-color: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.grid-form .full { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.check input { width: 18px; height: 18px; accent-color: var(--dark); }

/* ─── Surfaces ─────────────────────────────────────────────────────────── */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.card.pad { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.card-head h3 { font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.card-body { padding: 14px 20px 20px; }
.panel-dark { background: var(--dark); color: var(--on-dark); border-radius: var(--r-lg); box-shadow: var(--shadow); min-width: 0; }
.panel-dark .card-head h3 { color: #fff; font-weight: 500; }
.panel-dark .muted, .panel-dark .faint, .panel-dark .tiny.faint { color: var(--on-dark-muted); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.section-title h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.split.roles { grid-template-columns: 280px minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.demo-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--blush); color: var(--blush-ink); font-size: 9.5px; font-weight: 700; letter-spacing: .12em; }
.demo-banner { display: flex; gap: 10px; align-items: center; padding: 10px 16px; margin-bottom: 18px; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); color: var(--taupe); font-size: 12.5px; }

/* ─── Status ───────────────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 11.5px; font-weight: 500; white-space: nowrap; background: var(--soft); color: var(--taupe); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill[data-tone='stone'] { color: #7F766C; background: var(--soft); }
.pill[data-tone='taupe'] { color: #6E5D4E; background: #EFE8DE; }
.pill[data-tone='ochre'] { color: var(--sand-ink); background: var(--sand); }
.pill[data-tone='slate'] { color: var(--blue-ink); background: var(--blue); }
.pill[data-tone='sage'] { color: var(--sage-ink); background: var(--sage); }
.pill[data-tone='green'] { color: var(--lime-ink); background: var(--lime); }
.pill[data-tone='red'] { color: var(--blush-ink); background: var(--blush); }
.pill[data-tone='ink'] { color: #fff; background: var(--dark); }
.st { position: absolute; top: 10px; left: 10px; z-index: 3; height: 22px; padding: 0 10px; border-radius: 11px; display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 500; background: rgba(255, 255, 255, .9); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c, #6F675F); flex: none; }
.prio { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.prio[data-p='mendesak'] { color: var(--red); }
.prio[data-p='tinggi'] { color: var(--sand-ink); }
.prio[data-p='normal'] { color: var(--stone); }
.prio[data-p='rendah'] { color: var(--line-strong); }

.bar { position: relative; height: 5px; background: var(--soft-2); border-radius: 3px; overflow: hidden; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--dark); border-radius: 3px; }
.bar.thick { height: 7px; }
.bar.on-photo { background: rgba(255, 255, 255, .28); } .bar.on-photo > i { background: #fff; }
.stagebar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--soft-2); gap: 2px; }
.stagebar i { display: block; height: 100%; border-radius: 2px; }

.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 10.5px; font-weight: 600; flex: none; border: 2px solid var(--card); }
.avatar.lg { width: 38px; height: 38px; font-size: 12.5px; }
.avatars { display: inline-flex; }
.avatars .avatar + .avatar { margin-left: -8px; }

/* ─── Photos, plates & glass ───────────────────────────────────────────── */
.plate { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #E9E2D7; border-radius: inherit; }
.plate svg.sil { position: absolute; inset: 9% 14% 12%; width: 72%; height: 79%; }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 30% 15%, rgba(255, 255, 255, .2), transparent 55%), linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .12)); }
.plate .swatches { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: flex; gap: 4px; }
.plate .swatches i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15); }
.plate .tag { position: absolute; top: 10px; right: 10px; z-index: 2; }
.glass { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; }
.glass-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; }

.pcard { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pcard .plate { border-radius: 0; }
.pcard .meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.pcard .name { font-family: var(--display); font-size: 21px; line-height: 1.04; font-weight: 600; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

.ccard { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-xl); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.ccard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cover { position: relative; height: 220px; display: grid; grid-template-columns: 3fr 2fr; background: #E9E2D7; overflow: hidden; border-radius: inherit; }
.ccard .cover { margin: 8px 8px 0; border-radius: 22px; }
.cover .main-sw { position: relative; display: flex; align-items: flex-end; padding: 18px; }
.cover .side-sw { display: grid; }
.cover .side-sw i { display: block; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover .cover-code { position: relative; z-index: 2; font-family: var(--display); font-size: 48px; font-weight: 500; line-height: .9; letter-spacing: .02em; }
.cover.mini .cover-code { font-size: 26px; }
.cover.mini { grid-template-columns: 1fr; }
.cover.mini .side-sw { display: none; }
.cover .cover-tags { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; display: flex; justify-content: space-between; gap: 8px; }
.cover .cover-tags .pill { background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cover.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .2), transparent 35%, transparent 60%, rgba(0, 0, 0, .3)); }
.cover.canva { background: linear-gradient(135deg, #7D2AE8, #00C4CC); }
.cover .canva-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 18px 18px 46px; color: #fff; }
.cover .canva-fallback b { font-family: var(--display); font-size: 30px; font-weight: 500; font-style: italic; line-height: 1; }
.cover .canva-fallback span { font-size: 12.5px; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover .canva-badge { position: absolute; left: 12px; bottom: 12px; z-index: 3; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #6420C9; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; }
.cover .no-pic { position: absolute; left: 12px; bottom: 12px; z-index: 3; background: rgba(255, 255, 255, .92); color: var(--taupe); }
.hero-media .canva-badge { display: none; }
.hero-pic-actions { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 4; display: flex; justify-content: space-between; gap: 8px; }
.hero-pill { width: auto; height: 36px; padding: 0 14px; border-radius: 18px; font-size: 12.5px; text-decoration: none; }
.pic-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.4fr); gap: 10px; align-items: stretch; }
.pic-opt { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: var(--soft); min-width: 0; }
label.pic-opt { align-items: center; justify-content: center; text-align: center; cursor: pointer; border: 1.5px dashed var(--line-strong); background: transparent; }
label.pic-opt:hover { border-color: var(--ink); }
.pic-opt b { font-size: 13px; font-weight: 600; }
.pic-opt small { font-size: 11px; color: var(--stone); line-height: 1.35; }
.pic-opt.link .input { background: var(--card); }
.pic-or { align-self: center; font-size: 11px; color: var(--stone); text-transform: uppercase; letter-spacing: .12em; }
.pic-preview { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px; border-radius: 16px; background: var(--soft); }
.pic-preview img { width: 92px; height: 64px; flex: none; object-fit: cover; border-radius: 10px; background: var(--line); }
.pic-preview div { display: grid; gap: 2px; min-width: 0; }
.pic-preview b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.canva-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.canva-box .row .input { flex: 1; min-width: 0; }
.ccard .body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.ccard .title { font-family: var(--display); font-size: 30px; line-height: 1; font-weight: 600; }
.ccard .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ccard .stats > div { padding: 10px 12px; border-radius: 14px; background: var(--soft); }
.ccard .stats b { display: block; font-size: 20px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.studio-col { display: grid; grid-template-columns: 120px minmax(0, 1fr); overflow: hidden; }
.studio-col > div:first-child { padding: 8px 0 8px 8px; }
.studio-col .cover { border-radius: 16px; height: 100%; min-height: 150px; }

/* Weekly photo card (planner "This week 3/5") */
.weekcard { position: relative; border-radius: var(--r-xl); overflow: hidden; color: #fff; background: var(--dark) center 30% / cover no-repeat; min-height: 150px; box-shadow: var(--shadow); display: block; }
.weekcard::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 17, 15, .86), rgba(20, 17, 15, .4)); }
.weekcard > div { position: relative; padding: 20px 22px; display: grid; gap: 4px; height: 100%; }
.weekcard .big { font-size: 40px; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-top: 4px; }
.weekcard .big span { font-size: 22px; font-weight: 500; opacity: .8; }
.weekcard .lbl { font-size: 12px; opacity: .85; }

/* ─── View switch, pills & tabs ────────────────────────────────────────── */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 4px; background: var(--card); border-radius: 22px; gap: 2px; box-shadow: var(--shadow); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button, .seg a { height: 32px; padding: 0 14px; border: 0; border-radius: 16px; background: transparent; font-size: 12.5px; color: var(--taupe); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
.seg button.on, .seg a.on { background: var(--dark); color: #fff; font-weight: 500; }
.fpills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; max-width: 100%; }
.fpills::-webkit-scrollbar { display: none; }
.fpills button, .fpills a { flex: none; height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line-strong); background: transparent; font-size: 12.5px; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.fpills .on { background: var(--dark); border-color: var(--dark); color: #fff; }
.fpills .n { font-size: 11px; opacity: .7; }
.tabs { display: flex; gap: 4px; margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; padding: 4px; background: var(--card); border-radius: 24px; box-shadow: var(--shadow); width: max-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; padding: 8px 15px; font-size: 13px; color: var(--taupe); white-space: nowrap; border-radius: 18px; }
.tabs a:hover { color: var(--ink); background: var(--soft); }
.tabs a.on { color: #fff; background: var(--dark); font-weight: 500; }
.tabs a .soon { margin-left: 6px; font-size: 9.5px; letter-spacing: .1em; color: var(--stone); font-weight: 700; }
.tabs a.on .soon { color: var(--lime); }

/* Kanban */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: 276px; gap: 14px; overflow-x: auto; padding-bottom: 14px; }
.kcol { background: var(--soft-2); border-radius: var(--r-lg); padding: 10px; min-height: 240px; display: flex; flex-direction: column; gap: 10px; }
.kcol.drop { box-shadow: inset 0 0 0 2px var(--dark); }
.kcol-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 2px; }
.kcard { background: var(--card); border-radius: var(--r); padding: 14px; cursor: grab; display: flex; flex-direction: column; gap: 9px; box-shadow: var(--shadow); }
.kcard:active { cursor: grabbing; }
.kcard.dragging { opacity: .4; }

/* Table */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); padding: 14px 14px 10px; white-space: nowrap; }
table.t td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t tbody tr { cursor: pointer; }
table.t tbody tr:hover td { background: #FBFAF7; }
table.t td.r, table.t th.r { text-align: right; }

/* Calendar */
.cal { background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: 0 10px 10px; gap: 4px; }
.cal-grid .dow { padding: 6px 8px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.cal-grid .day { min-height: 108px; padding: 6px 7px; border-radius: 14px; background: var(--soft); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-grid .day.out { background: transparent; color: var(--stone); }
.cal-grid .day.today { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--dark); }
.cal-grid .day.today .dnum { background: var(--dark); color: #fff; }
.cal-grid .dnum { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.cal-ev { display: block; padding: 3px 7px; border-radius: 8px; font-size: 11px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; background: var(--card); color: var(--taupe); }
.cal-ev.launch { background: var(--dark); color: #fff; font-weight: 500; }
.cal-ev.late { background: var(--blush); color: var(--blush-ink); }
.cal-ev.done { text-decoration: line-through; opacity: .55; }

/* Timeline (collections) */
.tl { background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow); overflow-x: auto; }
.tl-inner { min-width: 900px; position: relative; padding-bottom: 6px; }
.tl-months { display: grid; margin-left: 220px; }
.tl-months div { padding: 14px 8px 10px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); border-left: 1px solid var(--line); }
.tl-row { display: grid; grid-template-columns: 220px 1fr; min-height: 66px; cursor: pointer; border-top: 1px solid var(--line); }
.tl-row:hover { background: #FBFAF7; }
.tl-label { padding: 12px 18px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.tl-track { position: relative; }
.tl-bar { position: absolute; top: 22px; height: 22px; border-radius: 11px; background: var(--soft-2); overflow: hidden; }
.tl-bar > i { position: absolute; inset: 0 auto 0 0; background: var(--dark); border-radius: 11px; }
.tl-ms { position: absolute; top: 49px; width: 8px; height: 8px; transform: translateX(-4px); border-radius: 50%; background: var(--line-strong); }
.tl-ms.done { background: var(--sage-ink); }
.tl-ms.late { background: var(--red); }
.tl-launch { position: absolute; top: 16px; width: 3px; height: 34px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 0 1px var(--lime-ink); }
.tl-today { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--red); z-index: 2; }
.tl-today::before { display: none; content: 'Hari ini'; position: absolute; top: 2px; left: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; color: var(--red); text-transform: uppercase; }
.tl-months + .tl-row .tl-today::before { display: block; }

/* ─── Detail pages ─────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 30px; margin: 10px 0 26px; align-items: start; }
.hero-media { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.hero-media .plate, .hero-media .cover { border-radius: 0; }
.hero-media .hm-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; z-index: 4; }
.hero-media .hm-foot { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4; padding: 12px 14px; border-radius: 18px; display: grid; gap: 2px; }
.hero h1 { font-family: var(--display); font-size: 56px; font-weight: 600; line-height: .94; letter-spacing: -.015em; margin: 10px 0 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 20px; }
.facts > div { padding: 12px 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); min-height: 70px; min-width: 0; }
.facts .v { margin-top: 5px; font-size: 13.5px; }
.facts .v.big { font-size: 24px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.stepper { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-top: 4px; }
.stepper i { height: 5px; background: var(--soft-2); border-radius: 3px; }
.stepper i.on { background: var(--dark); }
.stepper i.cur { background: var(--lime); box-shadow: inset 0 0 0 1px var(--lime-ink); }
.stepper-labels { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-top: 6px; font-size: 9.5px; color: var(--stone); }
.stepper-labels span.cur { color: var(--ink); font-weight: 600; }

.big-num { font-size: 60px; line-height: .9; font-weight: 600; letter-spacing: -.04em; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.kpis > a, .kpis > div { padding: 16px 18px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kpis b { font-size: 36px; line-height: .9; font-weight: 600; letter-spacing: -.03em; }
.kpis a:hover { background: #FBFAF7; }
.home-top .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); gap: 12px; }

.list { display: flex; flex-direction: column; padding: 0 8px 8px; }
.list > .li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; }
.list > .li + .li { border-top: 1px solid var(--line); border-radius: 0; }
.list > a.li:hover, .list > .li.click:hover { background: #FBFAF7; cursor: pointer; border-radius: 14px; }
.ms-check { width: 22px; height: 22px; border: 1.5px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; background: var(--card); cursor: pointer; flex: none; padding: 0; color: transparent; }
.ms-check.on { background: var(--dark); border-color: var(--dark); color: #fff; }
.ms-check:disabled { cursor: default; }
.date-inline { border: 0; background: var(--soft); border-radius: 10px; font-size: 12px; color: var(--taupe); padding: 4px 8px; width: 128px; }

.empty { padding: 30px 20px; text-align: center; color: var(--taupe); }
.empty .display { font-size: 24px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.phase-note { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: var(--r-lg); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.phase-note .ph { font-family: var(--display); font-size: 34px; line-height: .9; color: var(--taupe); }

.feed { display: flex; flex-direction: column; }
.feed .ev { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.feed .ev:last-child { border-bottom: 0; }
.feed .ev .when { font-size: 11.5px; color: var(--stone); margin-top: 2px; }
.feed .ev.comment .bubble { margin-top: 6px; padding: 10px 13px; background: var(--soft); border-radius: 4px 14px 14px 14px; white-space: pre-wrap; }

.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.file { position: relative; border-radius: var(--r); background: var(--soft); overflow: hidden; cursor: pointer; border: 0; padding: 0; text-align: left; }
.file .thumb { aspect-ratio: 1; background: var(--soft-2); display: grid; place-items: center; color: var(--taupe); overflow: hidden; }
.file .thumb img { width: 100%; height: 100%; object-fit: cover; }
.file .thumb .ext { font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.file .fname { padding: 8px 10px 2px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: var(--r); padding: 18px; text-align: center; color: var(--taupe); font-size: 12.5px; background: transparent; cursor: pointer; }
.dropzone.over { border-color: var(--dark); background: var(--soft); }
.upload-row { display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 6px 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 12.5px; }
.chip i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.chip button { border: 0; background: none; padding: 0; color: var(--stone); cursor: pointer; font-size: 14px; line-height: 1; }
.chip.toggle { cursor: pointer; color: var(--taupe); }
.chip.toggle.on { background: var(--dark); box-shadow: none; color: #fff; }

.matrix { border-collapse: separate; border-spacing: 4px; font-size: 12px; }
.matrix th, .matrix td { padding: 6px 10px; text-align: center; border-radius: 8px; }
.matrix th { font-weight: 600; color: var(--taupe); }
.matrix td { background: var(--soft); }
.matrix td.on { background: var(--sage); color: var(--sage-ink); }
.matrix td.off { color: var(--line-strong); }

.approval { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 12px; border-radius: 18px; background: var(--dark-2); color: var(--on-dark); }
.approval .plate { border-radius: 12px; }
.approval a.title { font-family: var(--display); font-size: 22px; line-height: 1.05; font-weight: 600; color: #fff; }
.approval .eyebrow { color: var(--on-dark-muted); }
.approval .tiny.faint { color: var(--on-dark-muted); }

/* ─── Overlays ─────────────────────────────────────────────────────────── */
dialog.modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); }
dialog.modal.wide { width: min(880px, calc(100vw - 32px)); }
dialog.modal::backdrop { background: rgba(27, 24, 22, .4); backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 12px; }
.modal-head h2 { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1; }
.modal-head .icon-btn { box-shadow: none; background: var(--soft); }
.modal-body { padding: 12px 24px 20px; overflow-y: auto; max-height: calc(100vh - 220px); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px 22px; flex-wrap: wrap; }
.form-error { margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: var(--red-soft); color: var(--red); font-size: 12.5px; }
dialog.modal.dark { background: var(--dark); color: var(--on-dark); }
dialog.modal.dark .modal-head h2 { color: #fff; }
dialog.modal.dark .modal-head .icon-btn { background: var(--dark-2); color: #fff; }
dialog.modal.dark .eyebrow, dialog.modal.dark .muted, dialog.modal.dark .field > span { color: var(--on-dark-muted); }
dialog.modal.dark .btn.ghost { color: var(--on-dark-muted); }

.drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(520px, calc(100vw - 20px)); background: var(--card); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); z-index: 60; display: flex; flex-direction: column; transform: translateX(110%); transition: transform .25s ease; overflow: hidden; }
.drawer.open { transform: none; }
.drawer-scrim { position: fixed; inset: 0; z-index: 59; background: rgba(27, 24, 22, .25); }
.drawer .modal-body { max-height: none; flex: 1; }

.popover.up { box-shadow: var(--shadow-lg); }
.popover { position: fixed; z-index: 70; width: 380px; max-height: 70vh; overflow-y: auto; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.notif { display: grid; grid-template-columns: 8px 1fr; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.notif:hover { background: #FBFAF7; }
.notif .u { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; background: transparent; }
.notif.unread .u { background: var(--red); }
.menu { padding: 8px; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 12px; font-size: 13px; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--soft); }

.fab { position: fixed; right: 26px; bottom: 26px; z-index: 45; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--dark); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .55); }
.fab:hover { background: #000; }

.toasts { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 22px; background: var(--dark); color: #fff; font-size: 13px; box-shadow: var(--shadow-lg); animation: rise .2s ease; max-width: min(520px, calc(100vw - 32px)); }
.toast.error { background: var(--red); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(18, 16, 16, .94); display: grid; place-items: center; padding: 40px; }
.lightbox img, .lightbox video { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 18px; }
.lightbox .lb-bar { position: absolute; top: 14px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 13px; gap: 10px; }

.skeleton { background: linear-gradient(90deg, #EAE6DF 25%, #F2EFE9 50%, #EAE6DF 75%); background-size: 200% 100%; animation: sk 1.2s ease infinite; border-radius: var(--r-lg); }
@keyframes sk { to { background-position: -200% 0; } }

/* ─── Login ────────────────────────────────────────────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 14px; gap: 14px; }
.auth-art { position: relative; min-height: calc(100vh - 28px); border-radius: var(--r-xl); background: #8E6440; color: #fff; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate; }
.auth-art .photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; animation: auth-drift 20s ease-out both; }
.auth-art::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(24, 18, 14, .5) 0%, rgba(24, 18, 14, 0) 26%, rgba(24, 18, 14, 0) 58%, rgba(24, 18, 14, .62) 100%); }
@keyframes auth-drift { from { transform: scale(1.07); } to { transform: scale(1); } }
.auth-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.auth-art .brand-logo { width: 190px; height: auto; }
.auth-chip { padding: 7px 13px; border-radius: 999px; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.auth-quote { max-width: 440px; padding: 20px 22px; border-radius: 24px; }
.auth-quote p { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 500; line-height: 1.05; letter-spacing: -.01em; }
.auth-quote span { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.auth-quote span i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(217, 232, 143, .25); }
.auth-form { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px 24px; }
.auth-form form { width: min(400px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth-head { display: grid; gap: 8px; margin-bottom: 6px; }
.auth-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); padding: 8px; margin-bottom: 10px; }
.auth-form h1 { margin: 0; font-family: var(--display); font-size: clamp(40px, 4.2vw, 56px); font-weight: 500; line-height: .98; letter-spacing: -.015em; }
.auth-head p { margin: 0; color: var(--taupe); font-size: 14px; }
.auth .input { min-height: 52px; padding: 0 16px; border-radius: 16px; background: var(--card); font-size: 15px; box-shadow: inset 0 0 0 1px var(--line); }
.auth .input:focus { box-shadow: 0 0 0 1.5px var(--dark), 0 0 0 6px rgba(217, 232, 143, .55); }
.pw { position: relative; display: block; }
.pw .input { padding-right: 54px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: none; color: var(--stone); cursor: pointer; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--ink); background: var(--soft); }
.auth-go { height: 54px; border-radius: 27px; margin-top: 4px; font-size: 14.5px; }
.auth-go svg { transition: transform .2s; }
.auth-go:hover svg { transform: translateX(3px); }
.auth-help { margin: 0; font-size: 12px; color: var(--stone); line-height: 1.5; }
.auth-foot { margin: 0; font-size: 11px; letter-spacing: .04em; color: var(--stone); }
@media (prefers-reduced-motion: reduce) { .auth-art .photo { animation: none; } }

/* ─── Sampling (Phase 2) ───────────────────────────────────────────────── */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.scard { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .2s, box-shadow .2s; min-width: 0; }
.scard:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.scard .media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; }
.scard .media .plate { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; border-radius: 0; }
.scard .media .ver { position: absolute; right: 12px; bottom: 8px; z-index: 3; font-family: var(--display); font-size: 32px; font-weight: 600; line-height: .9; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.scard .b { padding: 12px 14px 14px; display: grid; gap: 5px; min-width: 0; }
.scard .b b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpills { display: flex; gap: 6px; flex-wrap: wrap; }
.vpills a, .vpills span { flex: none; height: 34px; padding: 0 15px; border-radius: 17px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); white-space: nowrap; }
.vpills .on { background: var(--lime); color: var(--lime-ink); box-shadow: none; font-weight: 600; }
.vpills .final { background: var(--dark); color: var(--lime); box-shadow: none; }
.vpills .ghost { color: var(--stone); background: repeating-linear-gradient(135deg, transparent 0 7px, var(--soft) 7px 8px); }
.vpills.on-photo a, .vpills.on-photo span { background: rgba(40, 35, 30, .45); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vpills.on-photo .on { background: var(--lime); color: var(--lime-ink); box-shadow: none; }
.vpills.on-photo .final { background: var(--dark); color: var(--lime); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tile { border-radius: var(--r); background: var(--soft); padding: 12px 8px 10px; text-align: center; display: grid; gap: 2px; min-width: 0; }
.tile b { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.tile span { font-size: 10.5px; color: var(--taupe); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile em { font-style: normal; font-size: 10px; font-weight: 600; color: var(--sand-ink); }
.tile em.ok { color: var(--sage-ink); }
.tile em.bad { color: var(--red); }
.tile.sel { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--dark); }
.tile.empty-t b { color: var(--line-strong); }
.steps10 { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.steps10 i { height: 6px; border-radius: 3px; background: var(--soft-2); }
.steps10 i.on { background: var(--dark); }
.steps10 i.now { background: var(--lime); box-shadow: inset 0 0 0 1px var(--lime-ink); }
.steps10 i.bad { background: var(--blush); }
.journey { display: grid; gap: 8px; }
.jr { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: start; }
.jr .t { font-size: 11px; color: var(--taupe); padding-top: 12px; line-height: 1.3; }
.jc { background: var(--card); border-radius: var(--r); padding: 11px 12px; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; box-shadow: var(--shadow); }
.jc .ico { width: 30px; height: 30px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; color: var(--taupe); }
.jc b { display: block; font-size: 12.5px; font-weight: 500; }
.jc span { font-size: 11px; color: var(--taupe); }
.jc.hl { background: var(--sage); box-shadow: none; }
.jc.hl .ico { background: rgba(255, 255, 255, .6); color: var(--sage-ink); }
.jc .note { grid-column: 1 / -1; background: rgba(255, 255, 255, .6); border-radius: 10px; padding: 8px 10px; font-size: 11.5px; color: var(--sage-ink); }
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.area { position: relative; min-height: 50px; border-radius: 14px; background: var(--dark-2); padding: 8px 10px; display: flex; align-items: flex-end; font-size: 12px; color: #CFC6BA; cursor: pointer; border: 0; text-align: left; }
.area.sel { box-shadow: inset 0 0 0 1.5px var(--lime); color: #fff; }
.area .ck { position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: none; place-items: center; }
.area.sel .ck { display: grid; }
.ins { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; background: var(--dark-2); font-size: 12.5px; color: var(--on-dark); }
.ins b { color: var(--on-dark-muted); font-weight: 600; }
.ins .tg { font-style: normal; font-size: 9.5px; font-weight: 700; padding: 3px 8px; border-radius: 9px; white-space: nowrap; }
.ins .tg.ok { background: rgba(217, 232, 143, .16); color: var(--lime); }
.ins .tg.ai { background: rgba(235, 207, 196, .16); color: var(--blush); }
.ins.light { background: var(--soft); color: var(--ink); }
.ins.light b { color: var(--stone); }
.ins.light .tg.ok { background: var(--lime); color: var(--lime-ink); }
.dk-input { width: 100%; min-height: 38px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--dark-3); color: #fff; outline: none; }
.dk-input:focus { box-shadow: 0 0 0 1.5px var(--lime); }
textarea.dk-input { min-height: 84px; resize: vertical; line-height: 1.5; }
.dk-input::placeholder { color: #8F877D; }
select.dk-input { appearance: none; }
.voice { display: flex; align-items: center; gap: 10px; min-height: 42px; border-radius: 21px; background: var(--dark-2); padding: 5px 14px 5px 5px; font-size: 12px; color: #CFC6BA; flex-wrap: wrap; }
.voice .play { width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; border: 0; cursor: pointer; flex: none; }
.voice .play.rec { background: var(--red); color: #fff; }
.voice audio { height: 32px; max-width: 100%; }
.mtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mtable th { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--taupe); font-weight: 600; text-align: right; padding: 0 6px 8px; }
.mtable th:first-child, .mtable td:first-child { text-align: left; }
.mtable td { padding: 8px 6px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.mtable input { width: 72px; height: 32px; border: 0; border-radius: 10px; background: var(--soft); text-align: right; padding: 0 8px; }
.mtable input:focus { outline: none; box-shadow: 0 0 0 1.5px var(--dark); background: var(--card); }
.mtable .ok { color: var(--sage-ink); font-weight: 600; } .mtable .chg { color: var(--sand-ink); font-weight: 600; } .mtable .bad { color: var(--red); font-weight: 600; }
.sample-hero { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 440px; background: var(--dark); box-shadow: var(--shadow); }
.sample-hero > .plate, .sample-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; }
.sample-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, .05) 55%, rgba(0, 0, 0, .62)); pointer-events: none; z-index: 1; }
.sample-hero .sh-top { position: absolute; top: 16px; left: 16px; right: 16px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sample-hero .sh-title { position: absolute; left: 22px; right: 22px; bottom: 70px; z-index: 3; color: #fff; display: grid; gap: 4px; }
.sample-hero .sh-title .disp { font-family: var(--display); font-size: 52px; line-height: .9; font-weight: 600; }
.sample-hero .sh-title .code { color: rgba(255, 255, 255, .9); }
.sample-hero .vpills { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 3; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.sample-hero .tagb { height: 24px; padding: 0 11px; border-radius: 12px; background: var(--blush); color: var(--blush-ink); font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.slots button, .slots span { min-height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 12.5px; background: var(--soft); border: 0; cursor: pointer; color: var(--ink); padding: 4px 8px; text-align: center; }
.slots .on { background: var(--dark); color: #fff; }
.slots .off { color: var(--stone); cursor: default; }
.band { display: grid; place-items: center; height: 46px; background: var(--tan); color: #FBF3EA; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border: 0; width: 100%; cursor: pointer; }

/* Sample detail: photo · facts · decision panel */
.sample-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 360px; grid-template-areas: 'a b c'; gap: 18px; align-items: start; }
.sl-a { grid-area: a; } .sl-b { grid-area: b; } .sl-c { grid-area: c; position: sticky; top: 80px; }
@media (max-width: 1280px) { .sample-layout { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: 'a c' 'b c'; } }
/* Phone: photo first, then the decision panel, then files and details. */
@media (max-width: 860px) {
  .sample-layout { display: flex; flex-direction: column; gap: 18px; }
  .sl-a { display: contents; }
  .sample-hero { order: 1; } .sl-c { order: 2; position: static; } .sl-a > .card { order: 3; } .sl-b { order: 4; }
}

/* Printable QR label (50 × 30 mm) */
.qr-label { width: 50mm; height: 30mm; padding: 2.5mm; display: grid; grid-template-columns: 25mm 1fr; gap: 2.5mm; align-items: center; background: #fff; color: #000; border: 1px dashed #bbb; border-radius: 2mm; font-family: var(--sans); }
.qr-label svg { width: 25mm; height: 25mm; }
.qr-label .lc { font-size: 7.5pt; font-weight: 800; letter-spacing: .04em; line-height: 1.15; }
.qr-label .ln { font-size: 7pt; line-height: 1.2; margin-top: 1mm; }
.qr-label .lm { font-size: 6pt; color: #444; margin-top: 1mm; line-height: 1.2; }
.qr-label .ll { display: block; width: 17mm; height: auto; margin-top: 1.2mm; }
#print-area { display: none; }
@media print {
  @page { size: 50mm 30mm; margin: 0; }
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  #print-area .qr-label { border: 0; border-radius: 0; page-break-after: always; }
}

/* ─── Mobile ───────────────────────────────────────────────────────────── */
.tabbar { display: none; }
@media (max-width: 1100px) {
  .split, .split.roles { grid-template-columns: minmax(0, 1fr); }
  .search { width: 230px; }
  .home-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 80; top: 10px; bottom: 10px; left: 10px; margin: 0; width: 280px; height: auto; transform: translateX(-120%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .topbar { padding: 12px 16px 8px; gap: 8px; }
  .topbar .crumbs { display: none; }
  .mobile-brand { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; }
  .mobile-brand .brand-logo { width: 104px; }
  .search { display: none; }
  .content { padding: 4px 16px 120px; }
  .page-head { margin: 8px 0 18px; }
  .page-head h1 { font-size: 38px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pic-pick { grid-template-columns: minmax(0, 1fr); }
  .pic-or { justify-self: center; }
  .hero-media { max-width: 420px; }
  .hero h1 { font-size: 42px; }
  .grid-form { grid-template-columns: minmax(0, 1fr); }
  .cgrid { grid-template-columns: minmax(0, 1fr) !important; }
  .pgrid, .sgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pcard .name { font-size: 18px; }
  .pcard .meta, .scard .b { padding: 10px 11px 12px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis b { font-size: 30px; }
  .auth { display: block; padding: 0; min-height: 100svh; }
  .auth-art { min-height: 44svh; border-radius: 0 0 30px 30px; padding: calc(18px + env(safe-area-inset-top)) 18px 64px; justify-content: flex-start; }
  .auth-art .photo { object-position: 50% 22%; }
  .auth-art::after { background: linear-gradient(180deg, rgba(24, 18, 14, .55) 0%, rgba(24, 18, 14, 0) 45%, rgba(24, 18, 14, .25) 100%); }
  .auth-art .brand-logo { width: 150px; }
  .auth-top { flex-direction: column; gap: 12px; }
  .auth-chip { padding: 6px 10px; font-size: 9.5px; }
  .auth-quote { display: none; }
  .auth-form { position: relative; margin-top: -40px; padding: 0 12px calc(20px + env(safe-area-inset-bottom)); gap: 18px; }
  .auth-form form { width: 100%; background: var(--card); padding: 24px 20px 22px; border-radius: 28px; box-shadow: 0 18px 40px -24px rgba(27, 24, 22, .45); }
  .auth-mark { display: none; }
  .auth .input { background: var(--soft); box-shadow: none; }
  .tabbar { display: flex; justify-content: space-around; align-items: center; position: fixed; left: 14px; right: 88px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40; height: 60px; border-radius: 30px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .35); padding: 0 6px; }
  .tabbar a, .tabbar button { position: relative; width: 46px; height: 46px; display: grid; place-items: center; border: 0; background: none; color: var(--stone); cursor: pointer; border-radius: 23px; }
  .tabbar .on { color: var(--ink); }
  .tabbar .on::after { content: ''; position: absolute; bottom: 5px; width: 16px; height: 2px; border-radius: 1px; background: var(--ink); }
  .tabbar span.lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tabbar .badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--lime); color: var(--lime-ink); font-size: 9.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
  .fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 58px; height: 58px; }
  .toasts { bottom: calc(90px + env(safe-area-inset-bottom)); }
  .popover { left: 8px !important; right: 8px; width: auto; top: 62px !important; }
  .popover.up { top: auto !important; bottom: calc(92px + env(safe-area-inset-bottom)); }
  .drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100vw; height: 92vh; border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(105%); }
  .drawer.open { transform: none; }
  dialog.modal, dialog.modal.wide { width: 100vw; max-width: 100vw; max-height: 94vh; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  dialog.modal[open] { display: flex; flex-direction: column; }
  .modal-body { max-height: none; flex: 1; }
  .cover { height: 190px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stepper-labels { display: none; }
  .tl-months { margin-left: 150px; }
  .tl-row { grid-template-columns: 150px 1fr; }
  .studio-col { grid-template-columns: 84px minmax(0, 1fr); }
  .sample-hero { min-height: 470px; }
  .sample-hero .sh-title .disp { font-size: 42px; }
  .tabs { width: auto; }
}

/* ─── Bahan, supplier & HPP (Phase 3) ───────────────────────────────────── */
table.t tr.dim td { opacity: .55; }
.input.compact { min-height: 34px; padding: 6px 10px; font-size: 13px; border-radius: 12px; }
.input.r { text-align: right; }
.mplate { border-radius: 10px; overflow: hidden; display: grid; place-items: center; flex: none; }
.mplate img { width: 100%; height: 100%; object-fit: cover; }
.mplate span { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: rgba(27, 24, 22, .7); }
.mat-hero { aspect-ratio: 1; display: flex; align-items: flex-end; padding: 22px; }
.mat-hero span { font-family: var(--display); font-size: 44px; font-weight: 500; line-height: 1; color: rgba(27, 24, 22, .78); }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 18px; margin-top: 14px; }
.spec-grid > div { display: grid; gap: 3px; min-width: 0; }
.spec-grid > div > div { font-size: 13.5px; overflow-wrap: anywhere; }
.ledger-group { border-radius: 14px; background: var(--soft); padding: 10px 14px; }
.ledger-group summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; list-style: none; }
.ledger-group summary::-webkit-details-marker { display: none; }
.ledger-items { display: grid; gap: 6px; margin-top: 10px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.ledger-items .check { display: flex; gap: 8px; align-items: flex-start; }
.hpp-kpis b { font-size: 24px; }
.hpp-table td { vertical-align: top; }
.hpp-table .input.compact, .hpp-table .select.compact { width: 100%; }
.hpp-total { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; padding: 18px; border-radius: 20px; background: var(--dark); color: #fff; }
.hpp-total > div { display: grid; gap: 4px; align-content: start; }
.hpp-total .eyebrow { color: rgba(255, 255, 255, .6); }
.hpp-total b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.hpp-total .muted { color: rgba(255, 255, 255, .7) !important; }
.hpp-total .danger-text { color: #F2A28F; }
.hpp-total .input { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.bbar { display: grid; gap: 4px; min-width: 160px; }
.bbar .bar { height: 6px; }
@media (max-width: 860px) {
  .hpp-table { min-width: 720px; }
  .hpp-total b { font-size: 22px; }
}
table.t .code, table.t .nowrap { white-space: nowrap; }
.hpp-table input[data-hpp="qty"] { padding-left: 6px; padding-right: 6px; }

/* ─── Launch & production (Phase 4) ─────────────────────────────────────── */
.li.agenda { gap: 12px; align-items: center; }
.ag-date { width: 64px; flex: none; font-size: 12px; font-weight: 600; color: var(--taupe); }
.li.agenda.launch { background: var(--lime-soft); border-radius: 14px; }
.cal-ev.blocked { background: var(--soft); color: var(--stone); }
.cal-ev.po { background: #DDE3EA; color: #3E4A57; }
.cal-ev.task { background: #F3E9D6; color: #7A5A22; }
.li.ms-blocked .small { color: var(--taupe); }
.launch-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ring { --p: 0; width: 92px; height: 92px; flex: none; border-radius: 50%; display: grid; place-items: center; align-content: center;
  background: radial-gradient(closest-side, var(--card) 76%, transparent 77%), conic-gradient(var(--dark) calc(var(--p) * 1%), var(--soft) 0); }
.ring b { font-size: 22px; font-weight: 600; line-height: 1; }
.ring span { font-size: 10px; color: var(--stone); text-transform: uppercase; letter-spacing: .12em; }
.ring.sm { width: 54px; height: 54px; }
.ring.sm b { font-size: 13px; }
.rd { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: transparent; flex: none; }
.rd.ok { background: var(--dark); box-shadow: none; color: var(--lime); }
.rd svg { width: 11px; height: 11px; }
table.t.rd-table td.c, table.t.rd-table th.c { text-align: center; }
table.t.rd-table td.c .tiny { max-width: 110px; margin: 4px auto 0; }
table.t tr.sub td { background: var(--soft); cursor: default; }
.po-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 4px 0 18px; }
.po-steps > div { display: grid; gap: 6px; font-size: 11px; color: var(--stone); }
.po-steps i { display: block; height: 5px; border-radius: 3px; background: var(--soft-2); }
.po-steps .done i { background: var(--dark); }
.po-steps .on i { background: var(--lime); box-shadow: inset 0 0 0 1px var(--dark); }
.po-steps .on { color: var(--ink); font-weight: 600; }
.warn-card { background: #FBEDE8; color: #7A2E1C; margin-bottom: 14px; }
@media (max-width: 860px) {
  .po-steps span { font-size: 9.5px; }
  .ag-date { width: 52px; }
}
@media (max-width: 860px) {
  .section-title { flex-wrap: wrap; row-gap: 8px; }
  .section-title > .row { flex-wrap: wrap; }
  .ms-row { flex-wrap: wrap; row-gap: 6px; }
  .ms-row .grow { min-width: calc(100% - 44px); }
  .ms-row .ms-chips { order: 5; width: 100%; padding-left: 40px; flex-wrap: wrap; }
  .ms-row .ms-chips:empty { display: none; }
  .ms-row .date-inline { margin-left: 40px; }
}
