/* Bio Tech Lab 9 — Futuristic Educational Biotechnology Lab */
:root {
  --teal: #0f9b95; --teal-d: #0b7772; --teal-50: #e7f6f5; --teal-100: #c7ebe8;
  --blue: #1f5fae; --blue-d: #163f75; --blue-50: #ebf3fc; --blue-100: #d2e3f6;
  --orange: #f08a1c; --orange-d: #c96d08; --orange-50: #fff3e2; --orange-100: #ffe1b8;
  --red: #d33f3b; --red-50: #fdeceb; --green: #23915a; --green-50: #e5f5eb;
  --ink: #10283d; --ink-2: #3d5870; --muted: #6a8298;
  --bg: #f1f6f9; --surface: #fff; --line: #d9e4ec; --line-2: #e9f0f5;
  --r: 18px; --r-sm: 12px;
  --sh: 0 1px 2px rgba(16, 40, 61, .05), 0 8px 24px rgba(16, 40, 61, .06);
  --sh-lg: 0 24px 60px rgba(16, 40, 61, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(15, 155, 149, .45); outline-offset: 2px; }
.sr { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.mt { margin-top: 14px; }
.print-only { display: none; }
[hidden] { display: none !important; }
.ico { width: 24px; height: 24px; object-fit: contain; flex: none; }
.ico.lg { width: 44px; height: 44px; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 14px; background: var(--surface); border-right: 1px solid var(--line); z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 2px 6px; }
.brand b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.brand small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: linear-gradient(135deg, var(--teal-50), var(--blue-50)); text-decoration: none; color: var(--ink); }
.me-av { width: 44px; height: 44px; border-radius: 50%; background: #fff; overflow: hidden; flex: none; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(16, 40, 61, .12); }
.me-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; transform: scale(1.5) translateY(14%); }
.me-info { min-width: 0; flex: 1; }
.me-info b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-info small { display: block; font-size: 11.5px; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
.nav { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.nav-g { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 10px 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 11px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; position: relative; }
.nav-item span { flex: 1; min-width: 0; }
.nav-item:hover { background: var(--line-2); color: var(--ink); }
.nav-item.active { background: var(--teal-50); color: var(--teal-d); }
.nav-item.active::before { content: ''; position: absolute; left: -6px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: var(--teal); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #c6d3de; flex: none; vertical-align: middle; }
.dot.jalan { background: var(--orange); }
.dot.selesai { background: var(--green); }
.guru-link { border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; padding-top: 12px; margin-top: 2px; }
.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: 10px 28px; background: rgba(241, 246, 249, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.crumb { display: flex; align-items: center; gap: 8px; font-weight: 700; flex: 1; min-width: 0; }
.crumb span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.save-state { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.save-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.save-state[data-state=saving]::before { background: var(--orange); }
.save-state[data-state=error] { color: var(--red); }
.save-state[data-state=error]::before { background: var(--red); }
.xp-chip { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 99px; font-size: 13px; white-space: nowrap; box-shadow: var(--sh); }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.scrim { display: none; }
.view { width: 100%; max-width: 1200px; margin: 0 auto; padding: 26px 28px 40px; outline: none; }

/* ---------- Primitives ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }
.pad { padding: 22px; }
.block { margin-top: 22px; }
.block-title { font-size: 18px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.block-head .block-title { margin: 0; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 14px; }
.span-2 { grid-column: span 2; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lead { font-size: 16.5px; color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 14.5px; text-decoration: none; line-height: 1.2; transition: transform .12s, box-shadow .15s, background .15s; background: var(--line-2); color: var(--ink); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn .ico { width: 20px; height: 20px; }
.btn.primary { background: linear-gradient(135deg, #14aaa2, var(--teal-d)); color: #fff; box-shadow: 0 6px 16px rgba(15, 155, 149, .28); }
.btn.accent { background: linear-gradient(135deg, #f7a23e, var(--orange-d)); color: #fff; box-shadow: 0 6px 16px rgba(240, 138, 28, .28); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal-d); }
.btn.danger { background: var(--red); color: #fff; }
.btn.ghost.danger { background: var(--surface); color: var(--red); border-color: #f1c6c4; }
.btn.teal { background: var(--teal-50); color: var(--teal-d); border-color: var(--teal-100); }
.btn.blue { background: var(--blue-50); color: var(--blue); border-color: var(--blue-100); }
.btn.sm { padding: 7px 13px; font-size: 13.5px; border-radius: 10px; }
.btn.xs { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { padding: 13px 24px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn-icon { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink-2); flex: none; }
.btn-icon:hover:not(:disabled) { border-color: var(--teal); color: var(--teal-d); }
.btn-icon.danger:hover { border-color: var(--red); color: var(--red); }
.btn-icon:disabled { opacity: .35; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 13.5px; }

.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip.belum { background: #eef2f6; color: var(--muted); }
.chip.jalan { background: var(--orange-50); color: var(--orange-d); }
.chip.selesai { background: var(--green-50); color: var(--green); }
.chip.accent { background: var(--orange-50); color: var(--orange-d); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; background: var(--blue-50); color: var(--blue); font-size: 11.5px; font-weight: 700; }

.bar { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #19b7ad, var(--blue)); transition: width .5s ease; }
.bar.orange span { background: linear-gradient(90deg, #ffb657, var(--orange)); }
.bar.thin { height: 6px; }

.field { display: block; margin-bottom: 14px; }
.field-label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; color: var(--ink); }
.field-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.req { color: var(--red); font-style: normal; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea, select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fbfdfe; transition: border-color .15s, box-shadow .15s, background .15s; }
textarea { resize: vertical; min-height: 44px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(15, 155, 149, .12); }
input:disabled { background: var(--line-2); color: var(--ink-2); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input[type=checkbox], input[type=radio] { accent-color: var(--teal); width: 18px; height: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fbfdfe; cursor: pointer; }
.check:has(input:checked) { background: var(--teal-50); border-color: var(--teal-100); }
.check input { margin-top: 3px; flex: none; }

.alert { margin-top: 22px; padding: 14px 18px; border-radius: 14px; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--ink); }
.alert.danger { background: var(--red-50); border-color: #f5c9c7; color: #8a2320; }
.alert.danger a { color: #8a2320; font-weight: 700; }
.fact-box { background: var(--orange-50); border: 1px solid var(--orange-100); border-radius: 14px; padding: 12px 16px; margin: 14px 0 0; }
.empty { text-align: center; padding: 34px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty .ico { opacity: .8; }

/* ---------- Page head ---------- */
.page-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; min-height: 200px; padding: 28px 30px; border-radius: 26px; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #d8eefc 0%, transparent 55%), linear-gradient(135deg, #e3f6f4 0%, #eaf2fc 100%); border: 1px solid #d5e7ef; }
.page-head::after { content: ''; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .45); pointer-events: none; }
.page-head-text { position: relative; z-index: 1; max-width: 640px; align-self: center; }
.page-head h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.page-head p { color: var(--ink-2); font-size: 16px; margin: 0; }
.page-kicker { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--teal-d); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; flex-wrap: wrap; }
.page-kicker .tag { text-transform: none; letter-spacing: 0; }
.page-head-img { position: relative; z-index: 1; height: 200px; width: auto; max-width: 42%; object-fit: contain; margin: -18px -6px -28px 0; align-self: flex-end; filter: drop-shadow(0 12px 18px rgba(16, 40, 61, .12)); }
.page-head.has-bg { min-height: 250px; background-size: cover; background-position: center; background-repeat: no-repeat; }
.page-head.has-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(240, 249, 250, .97) 0%, rgba(240, 249, 250, .9) 36%, rgba(240, 249, 250, .15) 70%, rgba(240, 249, 250, 0) 100%); }
.page-head.has-bg::after { display: none; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; }
.login-bg { position: fixed; inset: 0; background-size: cover; background-position: center; }
.login-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10, 60, 80, .55), rgba(15, 155, 149, .25)); }
.glass { background: rgba(255, 255, 255, .8); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .7); }
.login-card { position: relative; width: min(560px, 100%); border-radius: 28px; padding: 30px; box-shadow: var(--sh-lg); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.login-brand b { display: block; font-size: 20px; font-weight: 800; }
.login-brand small { color: var(--ink-2); font-weight: 600; }
.login h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; }
.tagline { color: var(--teal-d); font-weight: 700; margin-bottom: 18px; }
.login-form .grid-3 { grid-template-columns: 1.2fr .8fr 1.2fr; }
.avatar-pick { border: 0; padding: 0; margin: 0 0 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.avatar-pick legend { margin-bottom: 8px; }
.avatar-pick label { flex: 1; cursor: pointer; }
.avatar-pick input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-pick span { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 16px; border: 2px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s; }
.avatar-pick img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 6%; background: var(--teal-50); }
.avatar-pick input:checked + span { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 155, 149, .15); }
.avatar-pick input:focus-visible + span { outline: 3px solid rgba(15, 155, 149, .45); }
.avatar-pick.small img { width: 64px; height: 64px; }
.form-err { color: var(--red); font-weight: 600; }
.login-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Beranda ---------- */
.hero { position: relative; min-height: 400px; border-radius: 28px; overflow: hidden; background-size: cover; background-position: center; display: flex; align-items: center; padding: 30px; box-shadow: var(--sh); }
.hero-panel { position: relative; z-index: 2; width: min(520px, 100%); border-radius: 24px; padding: 26px; box-shadow: var(--sh-lg); }
.hero-kicker { font-weight: 800; font-size: 12.5px; color: var(--teal-d); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
.hero-sub { color: var(--ink-2); }
.hero-prog { display: grid; gap: 12px; margin: 16px 0 20px; }
.prog-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-char { position: absolute; right: 3%; bottom: 0; height: calc(100% - 16px); max-height: 460px; width: auto; z-index: 1; filter: drop-shadow(0 18px 24px rgba(16, 40, 61, .22)); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.stat > div { flex: 1; min-width: 0; }
.stat b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.stat small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; margin-bottom: 4px; }
.stat-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-50); display: grid; place-items: center; flex: none; }
.stat-ico .ico { width: 32px; height: 32px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mod { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; gap: 6px 12px; padding: 14px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.mod:hover { transform: translateY(-2px); border-color: var(--teal-100); box-shadow: 0 12px 28px rgba(16, 40, 61, .1); }
.mod-ico { grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--teal-50), var(--blue-50)); display: grid; place-items: center; }
.mod-ico .ico { width: 36px; height: 36px; }
.mod-body b { display: block; font-size: 15px; }
.mod-body small { display: block; color: var(--muted); font-size: 12.5px; }
.mod-body .tag { display: inline-block; margin-top: 2px; color: var(--blue); }
.mod .chip { justify-self: start; align-self: start; }
.mod .bar { grid-column: 1 / -1; }
.tp-mini { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.tp-mini li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.tp-mini li > span:nth-child(2) { flex: 1; }
.tp-no { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.badge-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge { text-align: center; }
.badge img { width: 84px; height: 84px; margin: 0 auto 4px; object-fit: contain; transition: transform .2s; }
.badge small { font-weight: 700; font-size: 12px; display: block; line-height: 1.3; }
.badge.locked img { filter: grayscale(1) opacity(.35); }
.badge.locked small { color: var(--muted); }
.badge.got img:hover { transform: scale(1.08) rotate(-3deg); }

/* ---------- Petunjuk & tujuan ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.guide { position: relative; }
.guide h3 { font-size: 16px; margin-top: 10px; }
.guide p { color: var(--ink-2); font-size: 14px; margin: 0; }
.guide-no { position: absolute; top: 16px; right: 18px; font-weight: 800; font-size: 28px; color: var(--line); }
.safety-card { border-color: #f5c9c7; background: linear-gradient(180deg, #fff, #fff8f7); }
.safety-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.safety-list li::marker { color: var(--red); font-weight: 800; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 22px; }
.tp-card { padding: 20px; display: flex; flex-direction: column; border-top: 5px solid #c6d3de; }
.tp-card.jalan { border-top-color: var(--orange); }
.tp-card.selesai { border-top-color: var(--green); }
.tp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tp-num { font-size: 32px; font-weight: 800; color: var(--blue); letter-spacing: -.04em; }
.tp-card h3 { font-size: 17px; text-transform: uppercase; letter-spacing: .02em; }
.ind { padding-left: 18px; color: var(--ink-2); font-size: 14px; flex: 1; }
.tp-status { display: grid; gap: 8px; margin: 6px 0 10px; }
.tp-status .chip { justify-self: start; }
.tp-links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; font-weight: 700; }
.tp-links a { text-decoration: none; }
.komp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.komp h3 { font-size: 15px; }

/* ---------- Roadmap ---------- */
.roadmap { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.roadmap li { flex: 1 0 150px; }
.roadmap a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; }
.roadmap a span { width: 26px; height: 26px; border-radius: 50%; background: var(--line-2); color: var(--ink-2); display: grid; place-items: center; font-weight: 800; font-size: 13px; margin-bottom: 4px; }
.roadmap b { font-size: 13.5px; }
.roadmap small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.roadmap li.now a { border-color: var(--teal); background: var(--teal-50); }
.roadmap li.now a span { background: var(--teal); color: #fff; }
.roadmap.pjbl li { flex-basis: 120px; }
.roadmap.pjbl li.now a { border-color: var(--orange); background: var(--orange-50); }
.roadmap.pjbl li.now a span { background: var(--orange); }

/* ---------- PBL ---------- */
.story { margin-top: 22px; padding: 22px; }
.story-flow { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 16px; background: linear-gradient(135deg, var(--teal-50), var(--orange-50)); border-radius: 18px; margin-bottom: 16px; }
.story-flow figure { margin: 0; text-align: center; width: 150px; }
.story-flow img { width: 120px; height: 120px; object-fit: contain; margin: 0 auto 4px; }
.story-flow figcaption { font-weight: 700; font-size: 14px; line-height: 1.35; }
.story-flow small { font-weight: 600; color: var(--muted); }
.story-flow .arrow { font-size: 28px; font-weight: 800; color: var(--orange); text-align: center; line-height: 1; }
.story-flow .arrow small { display: block; font-size: 12px; color: var(--orange-d); }
.story-text p { font-size: 15.5px; }
.problem { margin: 12px 0 0; padding: 16px 20px; border-left: 5px solid var(--orange); background: var(--orange-50); border-radius: 0 14px 14px 0; font-weight: 700; font-size: 16.5px; line-height: 1.5; }
.feedback { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--teal-50); border: 1px solid var(--teal-100); }
.feedback h3 { font-size: 17px; color: var(--teal-d); }
.feedback ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.feedback li.tip { color: var(--ink-2); }
.invest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.explain { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--blue-50); border: 1px solid var(--blue-100); }
.explain ul { padding-left: 18px; }
.chain { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.chain span { background: #fff; border: 1px solid var(--blue-100); padding: 6px 12px; border-radius: 10px; font-weight: 800; }
.chain i { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--blue); }

/* ---------- Quiz ---------- */
.quiz { display: grid; gap: 14px; }
.quiz-q { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfdfe; }
.quiz-q + .quiz-q { margin-top: 12px; }
.quiz .quiz-q + .quiz-q { margin-top: 0; }
.quiz-q.ok { border-color: #bfe3cd; background: #f5fbf7; }
.quiz-q.no { border-color: #f3cdcb; background: #fff8f8; }
.quiz-text { font-weight: 600; margin-bottom: 10px; }
.quiz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bs .quiz-opts { grid-template-columns: repeat(2, minmax(0, 160px)); }
.opt { display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px; font-weight: 600; font-size: 14px; transition: border-color .15s, background .15s; }
.opt:hover:not(:disabled) { border-color: var(--teal); background: var(--teal-50); }
.opt:disabled { cursor: default; }
.opt-l { width: 26px; height: 26px; border-radius: 8px; background: var(--line-2); display: grid; place-items: center; font-weight: 800; font-size: 12.5px; flex: none; }
.opt-l:empty { display: none; }
.opt.on { border-color: var(--teal); background: var(--teal-50); }
.opt.on .opt-l { background: var(--teal); color: #fff; }
.opt.correct { border-color: var(--green); background: var(--green-50); }
.opt.correct .opt-l { background: var(--green); color: #fff; }
.opt.wrong { border-color: var(--red); background: var(--red-50); }
.opt.wrong .opt-l { background: var(--red); color: #fff; }
.quiz-fb { margin: 10px 0 0; font-weight: 600; font-size: 14px; }
.quiz-sum { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: var(--blue-50); }

/* ---------- Konsep ---------- */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 22px; scroll-margin-top: 80px; }
.tab { display: flex; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; position: relative; }
.tab small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.tab .ico { width: 34px; height: 34px; }
.tab.on { border-color: var(--teal); background: var(--teal-50); box-shadow: 0 6px 16px rgba(15, 155, 149, .15); }
.tab .tick { position: absolute; top: 8px; right: 10px; font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 12px; }
.materi { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.materi h3 { font-size: 18px; font-weight: 800; }
.etym { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.etym span { padding: 8px 14px; border-radius: 12px; background: var(--teal-50); font-size: 13px; color: var(--ink-2); }
.etym b { display: block; font-size: 17px; color: var(--teal-d); }
.etym i { font-style: normal; font-weight: 800; color: var(--muted); }
.flow4 { display: flex; align-items: stretch; gap: 8px; }
.flow-item { flex: 1; padding: 14px; border-radius: 16px; background: linear-gradient(180deg, var(--blue-50), #fff); border: 1px solid var(--blue-100); }
.flow-item b { display: block; margin-top: 6px; font-size: 16px; }
.flow-item p { font-size: 13.5px; color: var(--ink-2); margin: 4px 0; }
.flow-item small { color: var(--teal-d); font-weight: 700; font-size: 12.5px; }
.flow-arrow { align-self: center; font-size: 24px; font-weight: 800; color: var(--orange); }
.example { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--orange-50); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-50); color: var(--teal-d); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.ferm-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.ferm-types > div { padding: 14px; border-radius: 16px; border: 1px solid var(--line); text-align: center; background: #fbfdfe; }
.ferm-types img { width: 96px; height: 96px; margin: 0 auto 6px; object-fit: contain; }
.ferm-types p { font-size: 13.5px; margin: 4px 0; color: var(--ink-2); }
.ferm-types small { font-weight: 700; color: var(--orange-d); }
.infog { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); margin: 10px 0 14px; }
.infog img { width: 100%; }
.infog-col { position: absolute; top: 0; bottom: 0; width: 20%; border: 0; background: rgba(255, 255, 255, .55); transition: background .2s; padding: 0; }
.infog-col:hover { background: rgba(255, 255, 255, .25); }
.infog-col.on { background: transparent; box-shadow: inset 0 0 0 3px var(--teal); border-radius: 12px; }
.infog-col span { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); color: var(--ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: var(--sh); }
.infog-col.on span { background: var(--teal); color: #fff; }
.tahap-detail { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: 16px; background: var(--teal-50); margin-bottom: 12px; }
.tahap-detail img { width: 120px; height: 120px; flex: none; object-fit: contain; }
.tahap-detail h4 { font-size: 18px; margin-bottom: 4px; }
.tahap-detail .kicker { font-size: 12px; font-weight: 800; color: var(--teal-d); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.micro-note { margin: 0; padding: 10px 12px; background: #fff; border-radius: 10px; font-size: 14px; }
.tech3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.tech3 > div { padding: 14px; border-radius: 14px; background: var(--blue-50); }
.tech3 h4 { font-size: 15px; }
.tech3 p { font-size: 13.5px; margin: 0; color: var(--ink-2); }
.ex-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 16px; }
.ex-tab { position: relative; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
.ex-tab b { display: block; font-size: 14px; line-height: 1.3; padding-right: 16px; }
.ex-tab small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.ex-tab:hover { border-color: var(--blue-100); }
.ex-tab.on { border-color: var(--blue); background: var(--blue-50); }
.ex-tab.on small { color: var(--blue-d); }
.ex-tab .tick { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 11px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.ex-body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; align-items: start; }
.ex-goal { margin-bottom: 14px; }
.msteps { list-style: none; counter-reset: ms; padding: 0; margin: 0; position: relative; display: grid; gap: 4px; }
.msteps::before { content: ''; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--blue-100); }
.msteps li { counter-increment: ms; position: relative; padding: 6px 0 8px 46px; }
.msteps li::before { content: counter(ms); position: absolute; left: 0; top: 4px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; }
.msteps b { display: block; font-size: 15px; }
.msteps p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.ex-side { display: grid; gap: 12px; }
.ex-side small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--teal-d); margin-bottom: 4px; }
.ex-result { padding: 14px; border-radius: 14px; background: var(--teal-50); border: 1px solid var(--teal-100); }
.ex-result p { margin: 0; font-weight: 600; font-size: 14px; }
.ex-tools { padding: 14px; border-radius: 14px; border: 1px solid var(--line); }
.ex-tools ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ex-tools li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.ex-tools img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.ex-note { margin: 14px 0 0; font-size: 13.5px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.vs figure { margin: 0; border-radius: 16px; overflow: hidden; position: relative; border: 1px solid var(--line); background: #fff; }
.vs img { width: 100%; height: auto; }
.vs figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .92); padding: 5px 12px; border-radius: 99px; font-weight: 800; font-size: 13px; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.tbl thead th { background: var(--blue-50); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-d); white-space: nowrap; }
.tbl tbody th { font-weight: 700; background: #fbfdfe; white-space: nowrap; }
.tbl tr:last-child > * { border-bottom: 0; }
.mini-mic { display: inline-flex; align-items: center; gap: 8px; }
.mini-mic img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.mini-mic.big { gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--teal-50); margin-bottom: 12px; }
.mini-mic.big img { width: 64px; height: 64px; }
.mini-mic.big small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; color: var(--teal-d); }
.sort-act .pool { display: grid; gap: 8px; margin-bottom: 14px; }
.sort-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; border: 1px dashed var(--line); background: #fbfdfe; font-weight: 600; flex-wrap: wrap; }
.sort-item > div { display: flex; gap: 6px; }
.bins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.bin { padding: 12px; border-radius: 16px; min-height: 90px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bin.konv { background: var(--teal-50); border: 1.5px solid var(--teal-100); }
.bin.mod { background: var(--blue-50); border: 1.5px solid var(--blue-100); }
.bin h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.bin-item { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 6px 10px; font-weight: 600; font-size: 13.5px; text-align: left; }
.bin-item span { color: var(--muted); margin-left: 4px; }
.bin-item.ok { border-color: var(--green); background: var(--green-50); }
.bin-item.no { border-color: var(--red); background: var(--red-50); }
.materi-done { text-align: center; padding: 8px 0; }

/* ---------- Mikroorganisme ---------- */
.mic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mic { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 14px; position: relative; transition: transform .15s, box-shadow .15s; }
.mic:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 40, 61, .12); }
.lens { width: 140px; height: 140px; border-radius: 50%; padding: 6px; background: radial-gradient(circle, #fff 60%, var(--blue-50)); border: 6px solid #1c3553; box-shadow: 0 0 0 3px #7f95ad, 0 8px 20px rgba(16, 40, 61, .2); margin-bottom: 8px; overflow: hidden; display: grid; place-items: center; }
.lens img { width: 94%; height: 94%; object-fit: contain; transition: transform .4s; }
.mic:hover .lens img { transform: scale(1.04) rotate(4deg); }
.mic b { font-size: 16px; }
.mic i { color: var(--muted); font-size: 13px; }
.seen-tick { position: absolute; top: 10px; right: 10px; font-size: 11.5px; font-weight: 800; color: var(--green); background: var(--green-50); padding: 2px 8px; border-radius: 99px; }
.mic-detail { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: center; }
.scope { width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, #fff 55%, #dfeaf5); border: 10px solid #1c3553; box-shadow: 0 0 0 4px #7f95ad, inset 0 0 30px rgba(16, 40, 61, .25); overflow: hidden; display: grid; place-items: center; }
.scope img { width: 92%; animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(-1.5%, -1%) rotate(-3deg); } to { transform: scale(1.04) translate(1.5%, 1%) rotate(3deg); } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 0; }
.facts dt { font-weight: 800; color: var(--teal-d); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.facts dd { margin: 0; }
.match { display: grid; gap: 10px; margin-bottom: 14px; }
.match-row { display: grid; grid-template-columns: 170px 1fr auto 1fr 130px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fbfdfe; }
.match-row .arr { font-weight: 800; color: var(--orange); }
.match-row.benar { border-color: var(--green); background: var(--green-50); }
.match-row.hampir { border-color: var(--orange); background: var(--orange-50); }
.match-row.salah { border-color: var(--red); background: var(--red-50); }
.match-res { font-weight: 700; font-size: 13.5px; }

/* ---------- Produk ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.prod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px; position: relative; transition: transform .15s, box-shadow .15s; }
.prod:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 40, 61, .12); }
.prod img { width: 130px; height: 110px; object-fit: contain; margin-bottom: 4px; }
.prod b { font-size: 15.5px; }
.prod small { color: var(--muted); font-size: 12.5px; line-height: 1.35; flex: 1; }
.prod .seen-tick { top: 8px; right: 8px; }
.lokal { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.lokal-item { padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, var(--orange-50), #fff); border: 1px solid var(--orange-100); }
.lokal-item b { display: block; }
.lokal-item small { display: block; color: var(--ink-2); font-size: 12.5px; }
.temuan { margin-bottom: 14px; }
.temuan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.temuan-head h3 { font-size: 16px; margin: 0; }
.temuan-head small { color: var(--muted); font-weight: 600; margin-left: 6px; }
.temuan-body { display: grid; grid-template-columns: 1fr 200px; gap: 16px; }
.prod-detail { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.prod-hero { text-align: center; }
.prod-hero img { width: 100%; max-width: 240px; margin: 0 auto 10px; }
.prod-hero .chips { justify-content: center; }
.steps { padding-left: 20px; margin: 0; }
.steps li { margin-bottom: 3px; }
.modal h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--teal-d); margin: 14px 0 6px; }

/* ---------- Foto ---------- */
.photo-field { min-width: 0; }
.photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 130px; height: 100%; padding: 12px; border: 2px dashed var(--blue-100); border-radius: 14px; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: 13.5px; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.photo-add:hover { border-color: var(--blue); background: #e2eefb; }
.photo-add .ico { width: 36px; height: 36px; }
.photo-thumb { position: relative; border-radius: 14px; overflow: hidden; background: var(--line-2); aspect-ratio: 4 / 3; }
.photo-thumb img { width: 100%; height: 100%; object-fit: contain; }
img[data-photo]:not([src]), img.nophoto { visibility: hidden; }
.photo-thumb.missing::after { content: 'Foto tidak tersedia'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.photo-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(16, 40, 61, .7); color: #fff; font-size: 13px; }
.photo-field.busy { opacity: .6; pointer-events: none; }
.photo-field.busy .photo-add span::after { content: ' …'; }

/* ---------- Planner ---------- */
.planner-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; margin-top: 22px; align-items: start; }
.planner-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.sticky { position: sticky; top: 76px; }
.step-n { width: 30px; height: 30px; border-radius: 10px; background: var(--orange); color: #fff; display: inline-grid; place-items: center; font-size: 15px; flex: none; }
.proj-pick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.proj { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; border: 2px solid var(--line); background: #fff; text-align: center; transition: border-color .15s, box-shadow .15s; }
.proj img { width: 80px; height: 66px; object-fit: contain; }
.proj b { font-size: 13.5px; line-height: 1.25; }
.proj small { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.proj.on { border-color: var(--orange); background: var(--orange-50); box-shadow: 0 0 0 4px rgba(240, 138, 28, .15); }
.sub-h { font-size: 15px; margin: 18px 0 10px; }
.sub-h small { font-weight: 600; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.pick { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; text-align: left; font-size: 13px; font-weight: 600; position: relative; min-height: 48px; }
.pick img { width: 36px; height: 36px; object-fit: contain; flex: none; }
.pick-dot { width: 36px; height: 36px; border-radius: 10px; background: var(--line-2); flex: none; position: relative; }
.pick-dot::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.pick.on { border-color: var(--teal); background: var(--teal-50); }
.pick.on .pick-dot { background: var(--teal); }
.pick.on .pick-dot::after { content: '✓'; color: #fff; }
.pick > span:not(.pick-dot) { flex: 1; min-width: 0; }
.pick.on:has(img)::after { content: '✓'; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 11px; display: grid; place-items: center; }
.pick i { font-style: normal; color: var(--orange); font-size: 13px; flex: none; }
.hint { margin: 8px 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--orange-50); border: 1px solid var(--orange-100); }
.hint summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.hint ul, .hint ol { margin: 8px 0 0; padding-left: 20px; font-size: 14px; }
.steps-edit { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.steps-edit li { display: flex; align-items: center; gap: 8px; }
.steps-edit .n, .order .n { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-weight: 800; display: grid; place-items: center; flex: none; font-size: 13px; }
.step-btns { display: flex; gap: 4px; flex: none; }
.roles-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.roles-legend > div { padding: 8px 12px; border-radius: 12px; background: var(--blue-50); }
.roles-legend b { display: block; font-size: 13.5px; }
.roles-legend small { color: var(--ink-2); font-size: 12px; line-height: 1.35; display: block; }
.team { display: grid; gap: 10px; margin-bottom: 10px; }
.member { padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fbfdfe; }
.member-top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.mem-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--blue)); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; }
.role-chips, .self-rate { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rchip { padding: 5px 11px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.rchip:hover { border-color: var(--teal); }
.rchip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.role-gap { font-size: 14px; margin: 8px 0 0; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; display: grid; gap: 8px; }
.timeline::before { content: ''; position: absolute; left: 21px; top: 12px; bottom: 12px; width: 3px; background: var(--line); border-radius: 3px; }
.tl { display: grid; grid-template-columns: 44px 1fr 180px 160px; gap: 10px; align-items: center; position: relative; }
.tl-n { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--muted); z-index: 1; }
.tl.jalan .tl-n { border-color: var(--orange); color: var(--orange-d); background: var(--orange-50); }
.tl.selesai .tl-n { border-color: var(--green); background: var(--green); color: #fff; }
.plan-meter { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.plan-meter b { font-size: 30px; font-weight: 800; color: var(--teal-d); letter-spacing: -.03em; }
.plan-meter span { font-size: 13px; color: var(--muted); font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.checks li.ok, .checks-extra.ok { color: var(--green); font-weight: 600; }
.checks-extra { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line-2); }

/* ---------- Lab & observasi ---------- */
.lab-status { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.lab-status > img { width: 84px; height: 70px; object-fit: contain; }
.lab-status > div { flex: 1; min-width: 180px; }
.lab-status > div > small { display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; color: var(--teal-d); letter-spacing: .05em; }
.lab-status b { display: block; font-size: 17px; }
.lab-status span { color: var(--ink-2); font-size: 14px; }
.tl-mini { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; }
.tl-mini li { text-align: center; width: 64px; }
.tl-mini span { width: 28px; height: 28px; margin: 0 auto 2px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--muted); font-weight: 800; font-size: 12px; }
.tl-mini small { font-size: 10.5px; color: var(--muted); font-weight: 600; display: block; line-height: 1.2; }
.tl-mini .jalan span { background: var(--orange); color: #fff; }
.tl-mini .selesai span { background: var(--green); color: #fff; }
.safety-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.safe-msg { margin: 12px 0 0; font-weight: 700; color: var(--red); }
.safe-msg.ok { color: var(--green); }
.locked .journal, .locked .empty { opacity: .45; pointer-events: none; filter: grayscale(.4); }
.journal { margin-bottom: 14px; border-left: 5px solid var(--teal); }
.journal .photo-field { max-width: 260px; }
.contam { margin-top: 12px; }
.obs-tbl { min-width: 1000px; table-layout: fixed; }
.obs-tbl th:first-child { width: 72px; }
.obs-tbl th:nth-child(7) { width: 120px; }
.obs-tbl th:last-child { width: 50px; }
.obs-tbl td { padding: 6px; vertical-align: middle; }
.obs-tbl input, .obs-tbl textarea { padding: 8px 10px; font-size: 14px; }
.obs-tbl td input.hari { text-align: center; font-weight: 800; padding: 8px 4px; }
.obs-photo { width: 120px; }
.obs-photo .photo-add { min-height: 64px; padding: 6px; font-size: 11.5px; }
.obs-photo .photo-add .ico { width: 24px; height: 24px; }
.obs-photo .photo-del { width: 24px; height: 24px; font-size: 11px; }
.change-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.change-sum > div { padding: 12px 14px; border-radius: 14px; background: var(--teal-50); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.change-sum small { width: 100%; font-weight: 800; font-size: 11.5px; text-transform: uppercase; color: var(--teal-d); letter-spacing: .05em; }
.change-sum span { background: #fff; padding: 3px 10px; border-radius: 8px; font-weight: 700; font-size: 14px; }
.change-sum i { font-style: normal; color: var(--orange); font-weight: 800; }
.radio-row { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row legend { margin-bottom: 8px; }
.radio-pill input, .mood input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span { display: inline-block; padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.radio-pill input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.radio-pill input:focus-visible + span, .mood input:focus-visible + span { outline: 3px solid rgba(15, 155, 149, .45); }

/* ---------- Expo ---------- */
.cover-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.cover-opt { width: 96px; height: 72px; padding: 0; border-radius: 10px; overflow: hidden; border: 3px solid transparent; background: var(--line-2); }
.cover-opt img { width: 100%; height: 100%; object-fit: cover; }
.cover-opt.on { border-color: var(--orange); }
.slides-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.slide { aspect-ratio: 16 / 10; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh); padding: 22px; display: flex; flex-direction: column; overflow: hidden; position: relative; font-size: 13.5px; }
.slide::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--teal), var(--blue), var(--orange)); }
.slide header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.slide header span { font-size: 11px; font-weight: 800; color: #fff; background: var(--blue); padding: 2px 8px; border-radius: 99px; }
.slide header h3 { margin: 0; font-size: 18px; font-weight: 800; }
.slide-body { flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; }
.slide h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--teal-d); margin: 8px 0 4px; }
.slide p { margin: 0 0 6px; }
.slide ol { margin: 0; padding-left: 18px; }
.slide-cover { background: linear-gradient(135deg, #e3f6f4, #eaf2fc); }
.sl-cover { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; height: 100%; align-items: center; }
.sl-kicker { font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--teal-d); }
.sl-cover h2 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; }
.sl-group { font-weight: 800; color: var(--orange-d); font-size: 16px; }
.sl-members { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 600; }
.sl-members small { color: var(--muted); font-weight: 600; }
.sl-cover-img img { width: 100%; max-height: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 14px; box-shadow: var(--sh); background: #fff; }
.sl-cover-img img[src^="assets"] { object-fit: contain; box-shadow: none; background: transparent; }
.sl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sl-big { font-size: 17px; font-weight: 700; line-height: 1.45; }
.sl-mic img { width: 100%; max-width: 200px; margin: 0 auto; }
.sl-tbl { font-size: 12.5px; }
.sl-tbl th, .sl-tbl td { padding: 5px 8px; }
.sl-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.sl-photos figure { margin: 0; }
.sl-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--line-2); border-radius: 8px; }
.sl-photos figcaption { font-size: 10.5px; color: var(--muted); }
.sl-result { font-size: 14px; }
.sl-tagline { margin-top: 16px !important; font-weight: 800; color: var(--teal-d); }
.slideshow { position: fixed; inset: 0; z-index: 200; background: #0d2436; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; }
.ss-stage { width: min(1200px, 100%, calc((100vh - 110px) * 1.6)); }
.ss-stage .slide { font-size: clamp(14px, 1.5vw, 19px); padding: 4% 5%; }
.ss-stage .slide header h3 { font-size: 1.8em; }
.ss-stage .sl-cover h2 { font-size: 2.8em; }
.ss-stage .sl-big { font-size: 1.4em; }
.ss-stage .slide h4 { font-size: .85em; }
.ss-bar { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.ss-n { min-width: 64px; text-align: center; }

/* ---------- Assessment ---------- */
.score-card { display: flex; align-items: center; gap: 22px; margin-top: 22px; background: linear-gradient(135deg, var(--teal-50), var(--blue-50)); }
.score-big { width: 120px; height: 120px; border-radius: 50%; background: #fff; display: grid; place-items: center; align-content: center; box-shadow: var(--sh); flex: none; border: 6px solid var(--teal); }
.score-big b { font-size: 38px; font-weight: 800; line-height: 1; color: var(--teal-d); }
.score-big small { font-size: 11px; color: var(--muted); font-weight: 700; text-align: center; }
.jodoh { display: grid; gap: 8px; }
.jodoh-row { display: grid; grid-template-columns: 150px auto 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fbfdfe; }
.jodoh-row.ok { border-color: var(--green); background: var(--green-50); }
.jodoh-row.no { border-color: var(--red); background: var(--red-50); }
.jodoh-row .arr { color: var(--orange); font-weight: 800; }
.fix { color: var(--red); font-weight: 700; }
.order { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.order li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; }
.order li[draggable=true] { cursor: grab; }
.order li .t { flex: 1; }
.order .grip { color: var(--muted); letter-spacing: -2px; }
.order li.drag { opacity: .4; }
.order li.over { border-color: var(--teal); background: var(--teal-50); }
.order li.ok { border-color: var(--green); background: var(--green-50); }
.order li.no { border-color: var(--red); background: var(--red-50); }
.uraian + .uraian { margin-top: 10px; }
.model { padding: 12px 14px; border-radius: 12px; background: var(--blue-50); margin: -4px 0 14px; font-size: 14px; }
.model .self-rate { margin-top: 10px; }
.rubric { min-width: 820px; }
.rubric td { padding: 6px; }
.rubric td.w { font-weight: 800; color: var(--blue); vertical-align: middle; text-align: center; }
.rub { width: 100%; min-height: 70px; text-align: left; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.rub:hover { border-color: var(--teal); }
.rub.on { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }
.rub-score { margin: 12px 0 0; font-size: 15px; }

/* ---------- Refleksi ---------- */
.moods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mood span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; text-align: center; }
.mood i { font-style: normal; font-size: 34px; line-height: 1; }
.mood input:checked + span { border-color: var(--orange); background: var(--orange-50); }
.tp-check { display: grid; gap: 8px; margin-bottom: 16px; }
.tp-check .chip { margin-left: 4px; }

/* ---------- Portofolio ---------- */
.pf-profile { display: flex; align-items: center; gap: 20px; margin-top: 22px; background: linear-gradient(135deg, var(--teal-50), var(--blue-50)); }
.pf-profile > img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: 50% 6%; background: #fff; border: 4px solid #fff; box-shadow: var(--sh); flex: none; }
.pf-profile h2 { font-size: 24px; margin: 0; }
.pf-profile p { margin: 2px 0; color: var(--ink-2); }
.pf-profile > div { flex: 1; min-width: 0; }
.pf-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.pf-bars span { font-size: 12.5px; font-weight: 700; }
.danger-zone { margin-top: 14px; }
.danger-zone summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.portfolio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 22px; }
.pf-sec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; break-inside: avoid-page; }
.pf-sec h3 { font-size: 17px; font-weight: 800; color: var(--blue-d); border-bottom: 2px solid var(--line-2); padding-bottom: 8px; }
.qa { margin: 0 0 10px; }
.qa dt { font-weight: 700; font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
.qa dd { margin: 2px 0 0; }
.qa.two { display: grid; grid-template-columns: 190px 1fr; gap: 6px 14px; }
.qa.two dt { margin: 0; }
.qa.two dd { margin: 0; }
.qa ol { margin: 0; padding-left: 18px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pf-card { padding: 12px; border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; }
.pf-card .photo-thumb { margin-bottom: 8px; }
.pf-card small { display: block; color: var(--ink-2); }
.pf-journal { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.pf-journal .photo-thumb { width: 130px; flex: none; }
.pf-journal small { display: block; color: var(--ink-2); }
.pf-journal + .table-wrap, .pf-sec .table-wrap { margin-top: 12px; }
.pf-scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.pf-scores > div { padding: 12px 14px; border-radius: 14px; background: var(--teal-50); }
.pf-scores small { display: block; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pf-scores b { display: block; font-size: 26px; font-weight: 800; color: var(--teal-d); }
.pf-scores b.sm { font-size: 16px; }

/* ---------- Guru ---------- */
.guru-lock { max-width: 460px; margin: 22px auto 0; }
.lock-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.lock-head h2 { font-size: 18px; margin: 0 0 2px; }
.lock-head p { margin: 0; font-size: 13.5px; }
.lock-ico { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--teal-50), var(--blue-50)); display: grid; place-items: center; font-size: 26px; flex: none; }
.small-check { border: 0; background: none; padding: 0; margin: -4px 0 14px; font-size: 13.5px; }
.small-check:has(input:checked) { background: none; }
.lock-foot { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.guru-import { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.guru-import .block-title { margin-bottom: 4px; }
.guru-import p { margin: 0; max-width: 560px; }
.group-bars { display: grid; gap: 10px; }
.group-bars > div { display: grid; grid-template-columns: 180px 1fr 50px; gap: 12px; align-items: center; font-weight: 700; font-size: 14px; }
.group-bars b { text-align: right; }
.guru-tbl { min-width: 1000px; }
.guru-tbl td { vertical-align: middle; }
.guru-tbl .pc { min-width: 90px; }
.guru-tbl .pc small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.guru-tbl .num { font-weight: 800; text-align: center; }
.guru-tbl .acts { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.block-head select, .block-head input[type=search] { width: auto; min-width: 160px; }
.g-detail h3 { font-size: 16px; margin: 18px 0 8px; color: var(--blue-d); }
.g-uraian { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.g-uraian p { margin: 6px 0; }
.g-uraian details { font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.g-detail .portfolio { margin-top: 6px; }

/* ---------- Modal & toast ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(13, 36, 54, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .18s ease; }
.modal-wrap.out { opacity: 0; transition: opacity .18s; }
.modal { position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--sh-lg); animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { width: min(880px, 100%); }
.modal.xl { width: min(1100px, 100%); }
.modal-title { font-size: 22px; font-weight: 800; padding-right: 36px; }
.modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--line-2); font-size: 15px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(12px) scale(.97); opacity: 0; } }
.badge-modal { text-align: center; }
.badge-modal .modal-actions { justify-content: center; }
.badge-burst { width: 190px; height: 190px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, var(--orange-50) 30%, transparent 70%); position: relative; }
.badge-burst::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(240, 138, 28, .18) 0 10deg, transparent 10deg 30deg); animation: spin 12s linear infinite; }
.badge-burst img { width: 160px; height: 160px; object-fit: contain; position: relative; animation: pop .5s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-kicker { font-weight: 800; color: var(--orange-d); text-transform: uppercase; letter-spacing: .07em; font-size: 12.5px; margin-bottom: 2px; }
.badge-modal h2 { font-size: 26px; font-weight: 800; }
.xp-plus { font-weight: 800; color: var(--teal-d); font-size: 18px; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--sh-lg); animation: pop .25s ease; max-width: 340px; }
.toast.xp { background: linear-gradient(135deg, #f7a23e, var(--orange-d)); }
.toast.err { background: var(--red); }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .4s; }
.toast.has-action { pointer-events: auto; display: flex; align-items: center; gap: 14px; }
.toast.has-action button { border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 800; font-size: 13.5px; padding: 6px 12px; border-radius: 8px; flex: none; }
.toast.has-action button:hover { background: rgba(255, 255, 255, .28); }
.reset-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding: 12px 16px; border-radius: 14px; border: 1px dashed #f1c6c4; background: #fffafa; color: var(--ink-2); font-size: 14px; }

/* ---------- Flow nav ---------- */
.flow-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.flow-nav .ico { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .proj-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-row { grid-template-columns: 150px 1fr auto 1fr; }
  .match-res { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 290px; transform: translateX(-102%); transition: transform .25s ease; box-shadow: var(--sh-lg); }
  body.nav-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(13, 36, 54, .4); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .menu-btn { display: flex; }
  .topbar { padding: 10px 18px; }
  .view { padding: 20px 18px 36px; }
  .planner-layout { grid-template-columns: minmax(0, 1fr); }
  .planner-side { order: -1; }
  .sticky { position: static; }
  .checks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .save-state { display: none; }
  .two-col, .planner-layout { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .grid-3, .komp, .invest, .tech3, .ferm-types, .vs, .bins, .guide-grid, .safety-checks, .roles-legend, .change-sum, .pf-bars, .sl-cols { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .ex-tabs { grid-template-columns: 1fr 1fr; }
  .ex-body { grid-template-columns: minmax(0, 1fr); }
  .page-head { flex-direction: column; align-items: flex-start; min-height: 0; padding: 22px 20px; }
  .page-head-img { height: 150px; max-width: 70%; margin: -4px 0 -24px auto; }
  .page-head.has-bg::before { background: linear-gradient(180deg, rgba(240, 249, 250, .96) 0%, rgba(240, 249, 250, .86) 60%, rgba(240, 249, 250, .55) 100%); }
  .hero { flex-direction: column; align-items: stretch; padding: 16px; min-height: 0; }
  .hero-char { position: relative; right: auto; bottom: auto; height: 220px; margin: 0 auto -16px; order: -1; }
  .hero-panel { padding: 20px; }
  .flow4 { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .quiz-opts { grid-template-columns: 1fr; }
  .mic-detail, .prod-detail, .temuan-body { grid-template-columns: 1fr; }
  .scope { width: 220px; height: 220px; margin: 0 auto; }
  .match-row { grid-template-columns: 1fr; }
  .match-row .arr { display: none; }
  .tl { grid-template-columns: 44px 1fr; }
  .tl select, .tl input { grid-column: 2; }
  .proj-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jodoh-row { grid-template-columns: 1fr; }
  .jodoh-row .arr { display: none; }
  .moods { grid-template-columns: 1fr 1fr; }
  .slides-preview { grid-template-columns: 1fr; }
  .slide { aspect-ratio: auto; min-height: 260px; }
  .sl-cover { grid-template-columns: 1fr; }
  .tahap-detail { flex-direction: column; text-align: center; }
  .qa.two { grid-template-columns: 1fr; }
  .qa.two dt { margin-top: 8px; }
  .pf-profile { flex-direction: column; text-align: center; }
  .score-card { flex-direction: column; text-align: center; }
  .group-bars > div { grid-template-columns: 1fr 50px; }
  .group-bars > div .bar { grid-column: 1 / -1; grid-row: 2; }
  .tl-mini li { width: 42px; }
  .tl-mini small { display: none; }
  .flow-nav .btn { font-size: 13px; padding: 9px 12px; }
  .login-form .grid-3 { grid-template-columns: 1fr 1fr; }
  .login-form .grid-3 .field:first-child { grid-column: 1 / -1; }
  .checks { grid-template-columns: 1fr; }
  .badge img { width: 68px; height: 68px; }
  .pad { padding: 18px; }
}
@media (max-width: 420px) {
  .xp-chip { font-size: 12px; padding: 4px 10px; }
  .stats { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .sidebar, .topbar, .flow-nav, .reset-bar, .scrim, #toasts, .no-print, .modal-wrap, .slideshow { display: none !important; }
  .shell { display: block; }
  .view { padding: 0; max-width: none; }
  .card, .pf-sec { box-shadow: none; }
  .print-only { display: block; margin-bottom: 10px; font-size: 12pt; }
  body[data-print=portfolio] .page > :not(.portfolio):not(.pf-profile):not(.print-head) { display: none !important; }
  body[data-print=expo] .page > :not(.block) { display: none !important; }
  body[data-print=expo] .page > .block:not(:last-of-type) { display: none !important; }
  body[data-print=expo] .page > .block .block-title { display: none; }
  body[data-print=expo] .slides-preview { display: block; }
  body[data-print=expo] .slide { aspect-ratio: auto; height: 170mm; break-after: page; margin-bottom: 0; border: 1px solid #ccc; font-size: 12pt; }
  body[data-print=expo] .slide-body { overflow: visible; }
  .pf-sec { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
