/* Hillir Super App — token warna dari 01-desain/panduan-desain.md */
:root {
  --violet: #7716E1; --violet-hover: #6411C2; --tint: #F5F4FE; --tint-2: #ECE8FD; --violet-ink: #3C3489;
  --violet-border: #C7C2F5; --lavender: #C4A5FA; --page: #F5F5F8; --card: #FFFFFF; --ink: #1F1B2E; --muted: #5E5A70;
  --line: #EEEDF3; --line-2: #E4E2EC; --ok-bg: #E1F5EE; --ok: #0F6E56; --warn-bg: #FBEFDC; --warn: #8A5A1E;
  --err-bg: #FAECE7; --err: #993C1D; --shadow: 0 6px 18px rgba(38,33,92,.06); --shadow-pop: 0 16px 40px rgba(38,33,92,.16);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--page); color: var(--ink); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--violet-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--violet); color: #fff; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--violet-hover); }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 2px; }

/* ---------- Login ---------- */
.login { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; min-height: 100vh; padding: 16px; }
.login-hero { position: relative; overflow: hidden; background: var(--violet); color: #fff; border-radius: 24px; padding: 48px; display: flex; flex-direction: column; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand.light { color: #fff; }
.login-hero h1 { font-size: 42px; line-height: 1.15; letter-spacing: -.02em; margin: 40px 0 16px; max-width: 520px; }
.login-hero p { margin: 0; max-width: 520px; color: rgba(255,255,255,.88); font-size: 15px; }
.orbit { position: relative; width: 420px; height: 420px; margin: auto auto 0; max-width: 100%; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.28); }
.ring.r2 { inset: 70px; border-style: solid; border-color: rgba(255,255,255,.14); }
.core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 26px; border-radius: 36px; background: rgba(255,255,255,.1); box-shadow: 0 0 0 18px rgba(255,255,255,.05); }
.core svg { display: block; }
.orb { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px; border-radius: 18px; background: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(20,8,60,.25);
  transform: rotate(calc(var(--i) * 51.43deg)) translate(185px) rotate(calc(var(--i) * -51.43deg)); animation: orbit 60s linear infinite; }
@keyframes orbit { from { transform: rotate(calc(var(--i) * 51.43deg)) translate(185px) rotate(calc(var(--i) * -51.43deg)); } to { transform: rotate(calc(var(--i) * 51.43deg + 360deg)) translate(185px) rotate(calc(var(--i) * -51.43deg - 360deg)); } }
.login-card { background: var(--card); border-radius: 24px; display: grid; place-items: center; padding: 32px; box-shadow: var(--shadow); }
.login-box { width: 100%; max-width: 380px; }
.login-box h2 { font-size: 30px; margin: 14px 0 6px; letter-spacing: -.01em; }
.login-box > p { margin: 0 0 24px; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; height: 54px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 15px; box-shadow: var(--shadow); }
.btn-google:hover { border-color: var(--violet-border); background: var(--tint); }
.login-box .small { margin-top: 20px; }
.alert { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--err-bg); color: var(--err); font-weight: 500; }
.dev { margin-top: 28px; padding-top: 20px; border-top: 1px dashed var(--line-2); display: grid; gap: 10px; }
.dev label { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.dev input { height: 42px; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; font: inherit; }

/* ---------- Bar atas ---------- */
.topbar { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.topbar.floating { position: sticky; top: 16px; z-index: 20; margin: 16px; border: 0; border-radius: 16px; box-shadow: var(--shadow); }
.spacer { flex: 1; }
.brand-mini { display: inline-flex; }
.crumb { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--violet); }
.crumb span { color: var(--line-2); }
.crumb b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--tint); color: var(--violet); }
.avatar-btn { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 999px; }
.avatar { width: 40px; height: 40px; border-radius: 999px; background: var(--violet); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 44px; height: 44px; }
.menu-wrap { position: relative; }
.popover { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-pop); padding: 10px; min-width: 260px; }
.pop-title { font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 8px 10px; }
.pop-item { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 12px; background: none; cursor: pointer; font-weight: 500; }
.pop-item:hover { background: var(--tint); }
.pop-item.danger { color: var(--err); }
.acct-head { display: flex; gap: 12px; align-items: center; padding: 8px 8px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.acct-head b { display: block; }
.acct-head span { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.popover.apps { width: 340px; }
.sw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.sw-item { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; text-align: center; font-size: 12.5px; font-weight: 600; }
.sw-item:hover { background: var(--tint); }
.sw-item.on { background: var(--tint-2); color: var(--violet-ink); }
.sw-item i { position: absolute; top: 8px; right: 8px; color: var(--muted); }

/* ---------- Portal ---------- */
.portal { max-width: 1180px; margin: 0 auto; padding: 16px 24px 64px; }
.hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--violet); color: #fff; border-radius: 24px; padding: 48px; margin-top: 16px; }
.hero::after { content: ""; position: absolute; right: -180px; top: -160px; width: 620px; height: 620px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); pointer-events: none; }
.hello { margin: 0 0 8px; font-weight: 500; color: rgba(255,255,255,.9); }
.hero h1 { margin: 0; font-size: 36px; line-height: 1.2; letter-spacing: -.02em; }
.clock { position: relative; z-index: 1; min-width: 330px; padding: 22px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
.clock-date { font-weight: 600; margin-bottom: 12px; }
.clock-digits { display: flex; align-items: flex-end; gap: 6px; }
.clock-digits b { font-size: 46px; line-height: 1; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.14); font-variant-numeric: tabular-nums; }
.clock-digits i { font-style: normal; font-size: 34px; align-self: center; opacity: .7; }
.clock-digits small { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 600; font-variant-numeric: tabular-nums; }
.clock-meta { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 8px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.88); }
.clock-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; }
.clock-bar span { display: block; height: 100%; width: 0; background: #fff; border-radius: 999px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 36px 0 16px; }
.section-head h2 { margin: 0; font-size: 22px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.app-card { display: flex; flex-direction: column; gap: 6px; min-height: 230px; padding: 24px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.app-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(38,33,92,.1); }
.app-card svg:first-child { margin-bottom: 14px; }
.app-card h3 { margin: 0; font-size: 19px; }
.app-card p { margin: 0; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.note { margin-top: 20px; font-size: 13px; }

/* ---------- Bingkai aplikasi ---------- */
.page-shell { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.frame-wrap { position: relative; flex: 1; min-height: 0; }
.frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.skeleton, .frame-error { position: absolute; inset: 0; z-index: 2; background: var(--page); padding: 24px; }
.skeleton p { text-align: center; color: var(--muted); margin-top: 28px; }
.sk-bar { height: 48px; border-radius: 16px; background: #fff; margin-bottom: 20px; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sk-card { height: 180px; border-radius: 20px; background: #fff; }
.sk-bar, .sk-card { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.frame-error { display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; }
.frame-error[hidden], .skeleton[hidden] { display: none; }
.frame-error h2 { margin: 8px 0 0; }

/* ---------- Halaman sistem ---------- */
.system { max-width: 560px; margin: 12vh auto; padding: 0 24px; text-align: center; }
.system .code { font-size: 72px; font-weight: 800; color: var(--violet); letter-spacing: -.03em; }
.system h1 { font-size: 30px; margin: 4px 0 8px; }
.system .btn { margin-top: 20px; }

.system .lock { margin-bottom: 8px; }
.system .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Portal: pin, terakhir dibuka, status ---------- */
.badge.maint { background: var(--warn-bg); color: var(--warn); }
.badge.info { background: #E6F1FB; color: #185FA5; }
.app-card-wrap { position: relative; display: flex; }
.app-card-wrap .app-card { flex: 1; }
.pin-form { position: absolute; top: 14px; right: 14px; margin: 0; }
.pin-btn { width: 34px; height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--line-2); display: grid; place-items: center; cursor: pointer; }
.app-card-wrap:hover .pin-btn, .pin-btn:focus-visible { color: var(--muted); }
.pin-btn:hover { background: var(--tint); color: var(--violet); }
.pin-btn.on { color: #F5A524; }
.recent-row { display: flex; gap: 12px; flex-wrap: wrap; }
.recent-item { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow); font-weight: 600; }
.recent-item:hover { background: var(--tint); color: var(--violet-ink); }
.notice { margin-top: 20px; padding: 14px 18px; border-radius: 16px; background: #E6F1FB; color: #185FA5; font-weight: 500; }
.notice a { text-decoration: underline; font-weight: 600; }
.empty-card { padding: 32px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.empty-card h3 { margin: 0 0 6px; }
.chip.dark { background: var(--ink); color: #fff; }
.chip.grey { background: var(--line); color: var(--muted); }

/* ---------- Pencarian cepat (Ctrl/Cmd+K) ---------- */
.topbar .spacer { display: flex; justify-content: center; min-width: 0; }
.k-open { display: inline-flex; align-items: center; gap: 10px; width: 100%; max-width: 440px; height: 40px; padding: 0 8px 0 14px; border: 0; border-radius: 999px; background: var(--page); color: var(--muted); cursor: pointer; }
.k-open:hover { background: var(--tint); }
.k-open span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-open kbd, .ob-opt kbd { font: 600 11px Inter, sans-serif; padding: 3px 7px; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); color: var(--muted); }
.k-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(31,27,46,.32); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.k-scrim[hidden] { display: none; }
.k-box { width: 620px; max-width: 100%; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-pop); overflow: hidden; }
.k-box input { width: 100%; height: 58px; border: 0; border-bottom: 1px solid var(--line); padding: 0 22px; font: inherit; font-size: 16px; outline: none; }
.k-list { max-height: 52vh; overflow-y: auto; padding: 8px; }
.k-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; }
.k-item[hidden] { display: none; }
.k-item.sel, .k-item:hover { background: var(--tint); }
.k-item span:not(.k-act) { flex: 1; min-width: 0; }
.k-item b { display: block; }
.k-item small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-item em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.k-act { width: 24px; text-align: center; color: var(--violet); font-weight: 700; }
.k-none { padding: 6px 22px 18px; margin: 0; }

/* ---------- Notifikasi ---------- */
.bell { position: relative; }
.bell .dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #F0643C; color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.popover.notif { width: 400px; max-height: 70vh; overflow-y: auto; }
.n-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 10px; }
.n-head form { margin: 0; }
.link-v { border: 0; background: none; color: var(--violet); font-weight: 600; cursor: pointer; font-size: 13px; }
.n-item { display: flex; gap: 12px; padding: 12px; border-radius: 14px; }
.n-item.unread { background: var(--page); }
.n-item b { display: block; font-size: 13.5px; }
.n-item p { margin: 2px 0; font-size: 13px; color: var(--muted); }
.n-item small { font-size: 11.5px; color: var(--muted); }
.n-ic { width: 34px; height: 34px; flex: none; border-radius: 999px; display: grid; place-items: center; }
.n-empty { padding: 4px 8px 12px; margin: 0; }
.banner { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 18px; border-radius: 16px; background: #E6F1FB; color: #185FA5; }
.banner.maintenance { background: var(--warn-bg); color: var(--warn); }
.banner.newapp { background: var(--ok-bg); color: var(--ok); }
.banner .n-ic { background: rgba(255,255,255,.6) !important; color: inherit !important; }

/* ---------- Onboarding ---------- */
.page-onboarding { background: #fff; min-height: 100vh; }
.ob-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--tint); z-index: 5; }
.ob-progress span { display: block; height: 100%; width: 0; background: var(--violet); transition: width .3s; }
.ob-top { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; }
.ob-top form { margin: 0; }
.ob { max-width: 620px; margin: 0 auto; padding: 0 24px 120px; }
.ob-step { padding: 48px 0; border-bottom: 1px dashed var(--line-2); }
.ob-js .ob-step { display: none; border: 0; min-height: 60vh; flex-direction: column; justify-content: center; }
.ob-js .ob-step.on { display: flex; animation: ob-up .35s ease-out; }
@keyframes ob-up { from { opacity: 0; transform: translateY(16px); } }
.ob-step h1 { font-size: 32px; letter-spacing: -.02em; margin: 6px 0 8px; line-height: 1.2; }
.ob-hello h1 { font-size: 40px; }
.ob-step > p.muted { font-size: 16px; margin: 0 0 24px; }
.ob-hello .btn { align-self: flex-start; }
.ob-n { margin: 0; color: var(--violet); font-weight: 700; }
.ob-input { width: 100%; border: 0; border-bottom: 2px solid var(--violet-border); padding: 10px 0; font: inherit; font-size: 24px; outline: none; background: transparent; }
.ob-input:focus { border-color: var(--violet); }
.ob-opts { display: grid; gap: 10px; max-width: 460px; }
.ob-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--violet-border); background: var(--tint); cursor: pointer; font-size: 16px; }
.ob-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ob-opt:has(input:checked) { background: var(--tint-2); border-color: var(--violet); }
.ob-opt:has(input:checked) kbd { background: var(--violet); color: #fff; border-color: var(--violet); }
.ob-opt:has(input:focus-visible) { outline: 2px solid var(--violet); }
.ob-actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.ob-nav { position: fixed; right: 32px; bottom: 32px; display: flex; align-items: center; gap: 12px; }
.ob-nav[hidden] { display: none; }
.ob-nav button { width: 44px; height: 40px; border: 0; background: var(--violet); color: #fff; cursor: pointer; }
.ob-nav button:first-of-type { border-radius: 999px 0 0 999px; }
.ob-nav button:last-of-type { border-radius: 0 999px 999px 0; }

/* ---------- Profil ---------- */
.profile { max-width: 1100px; margin: 0 auto; padding: 16px 24px 64px; }
.pf-hero { display: flex; align-items: center; gap: 24px; padding: 36px 40px; border-radius: 24px; background: var(--violet); color: #fff; margin-top: 16px; }
.pf-hero h1 { margin: 0 0 4px; font-size: 30px; }
.pf-hero p { margin: 0 0 6px; color: rgba(255,255,255,.9); }
.pf-hero small { color: rgba(255,255,255,.8); }
.avatar.xl { width: 88px; height: 88px; font-size: 30px; background: #fff; color: var(--violet); }
.pf-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.pf-col { display: grid; gap: 20px; }
.card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 24px 28px; }
.card h2 { margin: 0 0 14px; font-size: 20px; }
.app-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.app-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--page); font-weight: 600; }
.app-chip:hover { background: var(--tint); }
.app-chip small { color: var(--muted); font-weight: 500; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; cursor: pointer; }
.toggle b { display: block; }
.toggle small { display: block; color: var(--muted); font-size: 12.5px; }
.toggle input { position: absolute; opacity: 0; }
.toggle i { flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle input:checked + i { background: var(--violet); }
.toggle input:checked + i::after { left: 21px; }
.toggle input:focus-visible + i { outline: 2px solid var(--violet); outline-offset: 2px; }
.card .btn { margin-top: 8px; }
.sess { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.sess small { display: block; color: var(--muted); font-size: 12px; }
.danger-line { color: var(--err); }

/* ---------- Feedback ---------- */
.fb-open { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fb-open svg { color: var(--violet); }
.fb-open:hover { border-color: var(--violet-border); background: var(--tint); }
.fb-scrim[hidden] { display: none; }
.fb-kinds span::before { background: var(--dot) !important; }
.fb-shot { display: flex !important; grid-template-columns: none; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--page); cursor: pointer; }
.fb-shot input { width: 18px; height: 18px; flex: none; accent-color: var(--violet); }
.fb-shot span { flex: 1; }
.fb-shot b { display: block; }
.fb-shot small { color: var(--muted); font-weight: 500; }
.fb-shot img { width: 72px; height: 48px; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--violet-border); }
.fb-auto { margin: 0 0 6px; font-weight: 600; }
.fb-done { text-align: center; padding: 15vh 12px; }
.fb-done[hidden], [data-fb-body][hidden] { display: none; }
.done-ic { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 34px; font-weight: 700; }
[data-fb-body] { display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.side-item .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tint-2); color: var(--violet-ink); font-size: 12px; display: grid; place-items: center; }
.badge.new { background: var(--tint); color: var(--violet-ink); }
.badge.kind-bug { background: var(--err-bg); color: var(--err); }
.badge.kind-saran { background: #E6F1FB; color: #185FA5; }
.badge.kind-lainnya { background: var(--line); color: var(--muted); }
.fb-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.app-filter label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--muted); font-size: 13px; }
.app-filter select { border: 0; font: inherit; font-weight: 600; color: var(--ink); background: transparent; }
.fb-grid { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 20px; align-items: start; }
.fb-list { padding: 8px; display: grid; gap: 2px; max-height: 76vh; overflow-y: auto; }
.fb-item { display: block; padding: 16px; border-radius: 16px; }
.fb-item:hover { background: var(--page); }
.fb-item.on { background: var(--tint); }
.fb-item p { margin: 8px 0; }
.fb-top { display: flex; align-items: center; gap: 10px; }
.fb-top .badge, .fb-bot .badge, .my-fb .badge { margin: 0; }
.fb-top small { margin-left: auto; }
.fb-bot { display: flex; justify-content: space-between; align-items: center; }
.fb-detail { padding: 24px 28px; }
.fb-detail .fb-top small { margin-left: 0; }
.big { font-size: 18px; }
.fb-msg { font-size: 16px; margin: 16px 0; white-space: pre-wrap; }
.shot { display: block; border-radius: 16px; border: 1px dashed var(--violet-border); overflow: hidden; background: var(--page); }
.shot img { display: block; width: 100%; max-height: 420px; object-fit: contain; object-position: top; }
.shot.empty { padding: 40px; text-align: center; color: var(--muted); }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.meta small { display: block; color: var(--muted); font-size: 12px; }
.meta code { font-size: 12.5px; word-break: break-all; }
.fb-detail h3 { font-size: 14px; margin: 18px 0 10px; }
.reply { padding: 12px 16px; border-radius: 14px; background: var(--tint); margin-bottom: 8px; }
.reply p { margin: 4px 0 0; }
.reply small b { color: var(--violet-ink); }
.reply-form { display: flex; gap: 10px; align-items: flex-start; }
.reply-form textarea { flex: 1; border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 14px; font: inherit; resize: vertical; }
.seg-btn { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg-btn.on { background: #fff; color: var(--violet); box-shadow: var(--shadow); }
.export-wrap { position: relative; }
.export-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 340px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-pop); padding: 20px; display: grid; gap: 12px; }
.export-pop h3 { margin: 0; font-size: 17px; }
.export-pop .lbl { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.export-pop .seg { display: flex; flex-wrap: wrap; }
.export-pop .seg label { display: block; }
.note-box { padding: 12px 14px; border-radius: 14px; background: var(--page); font-size: 12.5px; color: var(--muted); }
.note-box b { color: var(--ink); }
.card-head { display: flex; justify-content: space-between; align-items: center; }
.card-head h2 { margin: 0; }
.my-fb { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.my-fb:last-child { border-bottom: 0; }
.my-fb > div { flex: 1; min-width: 0; }
.my-fb b, .my-fb small { display: block; }
.my-fb .reply { margin-top: 8px; font-size: 13px; }

/* ---------- Admin: pengumuman ---------- */
.ann { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ann:last-child { border-bottom: 0; }
.ann form { margin: 0; }
.ann-main { flex: 1; min-width: 0; }
.ann-title { display: flex; align-items: center; gap: 10px; }
.ann-title .badge { margin: 0; }
.ann p { margin: 6px 0; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 3px 10px; border-radius: 999px; background: var(--page); font-size: 12px; color: var(--muted); }
.tags .st { background: var(--tint); color: var(--violet-ink); font-weight: 600; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.drawer .kind { display: block; }
.kind input { position: absolute; opacity: 0; }
.kind span { display: block; text-align: center; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--line-2); font-weight: 600; cursor: pointer; }
.kind span::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 50%; margin: 0 auto 6px; background: #2F7CF6; }
.kind.maintenance span::before { background: #F5A524; }
.kind.newapp span::before { background: #12B886; }
.kind input:checked + span { border-color: var(--violet); background: var(--tint); }
.kind input:focus-visible + span { outline: 2px solid var(--violet); }
.drawer textarea { border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 14px; font: inherit; font-weight: 400; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Admin Console ---------- */
.admin { display: grid; grid-template-columns: 220px 1fr; gap: 24px; max-width: 1400px; margin: 0 auto; padding: 8px 16px 64px; align-items: start; }
.side { position: sticky; top: 92px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 12px; display: grid; gap: 4px; }
.side hr { border: 0; border-top: 1px solid var(--line); margin: 8px 4px; }
.side-item { display: flex; align-items: center; padding: 11px 14px; border-radius: 14px; font-weight: 600; color: var(--ink); }
.side-item:hover { background: var(--page); }
.side-item.on { background: var(--tint); color: var(--violet); }
.admin-main { min-width: 0; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 18px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 28px; letter-spacing: -.01em; }
.admin-head p { margin: 4px 0 0; max-width: 680px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.fchip { padding: 8px 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 13.5px; }
.fchip.on { background: var(--violet); color: #fff; }
.panel { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 8px 24px; }
.row { display: grid; grid-template-columns: minmax(0, 2.2fr) 1fr 1.3fr auto auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.row-main b { display: block; }
.row-main code, .row-main span { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main .avatar { display: grid; color: #fff; font-size: 14px; }
.row-meta { display: grid; gap: 2px; font-size: 13px; }
.row-meta small { font-size: 11.5px; color: var(--muted); }
.row .badge { margin: 0; }
.pad { padding: 18px 0; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; cursor: pointer; }
.btn-line:hover { border-color: var(--violet-border); background: var(--tint); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.add-user { display: flex; gap: 8px; }
.add-user input { height: 44px; min-width: 240px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 16px; font: inherit; }
.drawer-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(31,27,46,.32); display: flex; justify-content: flex-end; padding: 12px; }
.drawer { width: 500px; max-width: 100%; background: var(--card); border-radius: 24px; box-shadow: var(--shadow-pop); padding: 24px 28px 0; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.drawer-extra { position: fixed; right: 40px; bottom: 96px; z-index: 61; }
.drawer-head { display: flex; justify-content: space-between; gap: 12px; }
.drawer-head h2 { margin: 0; font-size: 24px; }
.drawer-head p { margin: 4px 0 0; font-size: 13px; }
.close { width: 40px; height: 40px; flex: none; border-radius: 999px; background: var(--page); display: grid; place-items: center; font-size: 22px; color: var(--muted); }
.who { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: var(--page); }
.who b { display: block; font-size: 16px; }
.who span { font-size: 12.5px; }
.drawer label { display: grid; gap: 6px; font-weight: 600; font-size: 13.5px; }
.drawer input:not([type="checkbox"]):not([type="radio"]), .drawer select { height: 44px; border: 1px solid var(--line-2); border-radius: 14px; padding: 0 14px; font: inherit; font-weight: 400; background: #fff; }
.drawer fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.drawer legend { font-weight: 700; font-size: 13.5px; padding: 0; margin-bottom: 4px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--page); justify-self: start; }
.drawer .seg label { display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 16px; border-radius: 999px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: #fff; color: var(--violet); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 2px solid var(--violet); }
.checks { display: grid; gap: 2px; }
.drawer .check { display: flex; align-items: center; gap: 12px; font-weight: 500; padding: 8px 4px; border-radius: 12px; }
.check small { margin-left: auto; }
.check input { width: 18px; height: 18px; accent-color: var(--violet); }
.drawer-foot { position: sticky; bottom: 0; display: flex; gap: 12px; padding: 16px 0 20px; margin-top: auto; background: var(--card); border-top: 1px solid var(--line); }
.wide { flex: 1; height: 48px; }
.link { border: 0; background: none; cursor: pointer; font-weight: 600; text-decoration: underline; }
.link.danger { color: var(--err); }

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .side { position: static; grid-auto-flow: column; overflow-x: auto; }
  .side hr { display: none; }
  .row { grid-template-columns: 1fr auto; }
  .row .row-meta { display: none; }
  .add-user input { min-width: 0; }
  .login { grid-template-columns: 1fr; }
  .fb-open span { display: none; }
  .fb-open { width: 40px; padding: 0; justify-content: center; }
  .fb-grid, .meta { grid-template-columns: 1fr; }
  .k-open span, .k-open kbd { display: none; }
  .k-open { width: 40px; padding: 0; justify-content: center; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-hero { flex-direction: column; align-items: flex-start; }
  .two { grid-template-columns: 1fr; }
  .login-hero { padding: 32px; }
  .login-hero h1 { font-size: 32px; margin-top: 28px; }
  .orbit { display: none; }
  .hero { flex-direction: column; align-items: flex-start; padding: 32px; }
  .clock { min-width: 0; width: 100%; }
  .hero h1 { font-size: 28px; }
  .portal { padding: 8px 16px 48px; }
  .topbar .chip { display: none; }
  .crumb > a, .crumb > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orb, .sk-bar, .sk-card { animation: none; }
  .app-card { transition: none; }
}
