/* Layout: app shell, quiet white sidebar left, workspace right; one light theme by request. Ink for primary actions, coral only for focus and state. */
:root {
  --bg: #f5f7f5;
  --surface: #ffffff;
  --surface-2: #edf2ee;
  --fg: #141816;
  --muted: #66706a;
  --line: #e0e7e2;
  --ink: #0d0f0e;
  --ink-fg: #ffffff;
  --accent: #4cc488;
  --accent-ink: #0d0f0e;
  --accent-soft: #e2f5ea;
  --accent-text: #1d7a4c;
  --mint: #a7dfbc;
  --good: #2f7a4d;
  --good-soft: #e7f2ea;
  --warn: #a2650a;
  --warn-soft: #fbf0dc;
  --bad: #b42318;
  --bad-soft: #fbe6e3;
  --info: #3451a3;
  --info-soft: #e8ecf8;
  --shadow: 0 1px 2px rgba(28, 26, 23, .05), 0 10px 30px rgba(28, 26, 23, .07);
  --display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 14px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; margin: 0; letter-spacing: -.02em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.eyebrow { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* Buttons & inputs */
.btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); background: var(--surface); padding: .5rem .85rem; border-radius: 8px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.btn.primary:hover { background: #33302b; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: .3rem .6rem; font-size: .82rem; }
.btn.danger { color: var(--bad); }
.field { display: grid; gap: .3rem; }
.field label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: .55rem .7rem; }
textarea.input { min-height: 72px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.accent { background: var(--accent-soft); color: var(--accent-text); }

/* Auth screens */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding-block: 32px; padding-inline: 16px; position: relative; overflow: hidden; isolation: isolate; background: #0b1f16; }
.auth-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 0% 0%, #12553a 0%, transparent 55%), radial-gradient(90% 80% at 100% 100%, #0f3d2a 0%, transparent 60%), linear-gradient(135deg, #0a1a13, #0e2a1e 55%, #08140f); }
.ab { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: abFloat 18s ease-in-out infinite alternate; }
.ab1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: #4cc488; opacity: .35; }
.ab2 { width: 34vmax; height: 34vmax; right: -10vmax; bottom: -12vmax; background: #a7dfbc; opacity: .22; animation-duration: 22s; }
.ab3 { width: 22vmax; height: 22vmax; left: 38%; top: 55%; background: #e8a383; opacity: .16; animation-duration: 26s; }
.ab-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px); background-size: 22px 22px; mask-image: radial-gradient(80% 70% at 30% 40%, #000 30%, transparent 85%); -webkit-mask-image: radial-gradient(80% 70% at 30% 40%, #000 30%, transparent 85%); }
@keyframes abFloat { to { transform: translate(4vmax, 3vmax) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .ab { animation: none; } }
.auth-hero { display: none; }
.auth-card { position: relative; z-index: 1; box-shadow: 0 24px 60px rgba(0,0,0,.35); border-color: rgba(255,255,255,.4); }
@media (min-width: 980px) {
  .auth { grid-template-columns: minmax(0, 1.1fr) minmax(380px, 440px); gap: clamp(32px, 6vw, 96px); padding-inline: clamp(32px, 6vw, 96px); align-items: center; justify-items: stretch; }
  .auth-card { justify-self: center; max-width: 420px; }
  .auth-hero { display: flex; flex-direction: column; gap: 36px; color: #eaf5ef; min-height: min(640px, calc(100vh - 64px)); justify-content: space-between; padding-block: 8px; }
}
.ah-brand { display: flex; gap: 12px; align-items: center; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.ah-brand img { width: 40px; height: 40px; border-radius: 50%; }
.ah-brand em { font-style: normal; font-weight: 500; color: #a7dfbc; }
.ah-copy { display: grid; gap: 14px; max-width: 30rem; }
.ah-kicker { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #a7dfbc; font-weight: 600; }
.ah-copy h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 650; text-wrap: balance; color: #fff; }
.ah-copy p { margin: 0; color: rgba(234,245,239,.72); font-size: 1.02rem; max-width: 26rem; }
.ah-cards { position: relative; height: 210px; max-width: 460px; }
.ah-card { position: absolute; display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 14px; padding: 12px 16px; color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.25); animation: ahBob 6s ease-in-out infinite alternate; }
.ah-card div { display: grid; } .ah-card strong { font-size: .92rem; font-weight: 600; } .ah-card span { font-size: .78rem; color: rgba(234,245,239,.7); }
.ah-card.c1 { left: 0; top: 0; } .ah-card.c2 { left: 230px; top: 52px; animation-delay: -2s; } .ah-card.c3 { left: 36px; top: 132px; animation-delay: -4s; }
.secure-note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.ah-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px rgba(76,196,136,.25); }
.ah-ico { width: 26px; height: 26px; border-radius: 8px; background: #4cc488; color: #0b1f16 !important; display: grid; place-items: center; font-weight: 700; font-size: .85rem !important; }
.ah-stats { display: flex !important; gap: 22px; } .ah-stats > div { display: grid; } .ah-stats b { font-size: 1.25rem; } .ah-stats span { font-size: .72rem; }
.ah-foot { font-size: .78rem; color: rgba(234,245,239,.5); }
@keyframes ahBob { to { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .ah-card { animation: none; } }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.brand-name { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-size: 1.1rem; line-height: 1.1; }
.secure-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .8rem; color: var(--muted); background: var(--surface-2); padding: .6rem .7rem; border-radius: 8px; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.otp input { text-align: center; font-family: var(--mono); font-size: 1.3rem; padding: .55rem 0; }
.error { color: var(--bad); font-size: .85rem; }
.demo-box { border: 1px dashed var(--line); border-radius: 10px; padding: .7rem .8rem; font-size: .8rem; color: var(--muted); display: grid; gap: .35rem; }
.demo-box button { text-align: left; }

/* Shell */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100%; }
.side { background: var(--bg); border-right: 0; padding: 18px 12px; display: flex; flex-direction: column; gap: 16px; position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; overflow-y: auto; }
.nav { display: grid; gap: 2px; }
.nav-group { font-size: .76rem; color: var(--muted); font-weight: 500; padding: 14px 10px 4px; }
.nav a { display: flex; align-items: center; gap: .6rem; padding: .48rem .65rem; border-radius: 8px; color: var(--fg); text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--surface-2); }
.me-actions { display: flex; gap: 8px; align-items: center; }
.me-actions #logout { flex: 1; }
.lang-seg { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); flex: none; }
.lang-seg button { border: 0; background: none; font: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; color: var(--muted); cursor: pointer; }
.lang-seg button.on { background: var(--ink); color: #fff; }
.auth-card .brand { justify-content: flex-start; }
.auth-card .brand .lang-seg { margin-left: auto; }
.shell.collapsed .me-actions .lang-seg { display: none; }
.nav-row { display: flex; align-items: center; gap: 2px; }
.nav-row > a { flex: 1; min-width: 0; }
.nav-tog { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); border-radius: 7px; cursor: pointer; }
.nav-tog:hover { background: var(--surface-2); color: var(--fg); }
.nav-tog svg { transition: transform .18s; }
.nav-tog[aria-expanded="false"] svg { transform: rotate(-90deg); }
.nav-subs { display: grid; gap: 2px; }
.shell.collapsed .nav-tog { display: none; }
.nav a.active { background: var(--surface-2); color: var(--fg); font-weight: 600; }
.nav a.active svg { color: var(--accent-text); }
.nav a.active { background: var(--accent-soft) !important; }
.nav a.locked { color: var(--muted); }
.nav a .tag { margin-left: auto; font-size: .66rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 .4rem; color: var(--muted); }
.nav svg { width: 17px; height: 17px; flex: none; }
.me { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.me-row { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 600; font-size: .8rem; flex: none; }
.main { padding-block: 24px 48px; padding-inline: 28px; min-width: 0; display: grid; gap: 20px; align-content: start; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.page-head > div:first-child { display: grid; gap: 2px; }
.topbar { display: none; }
.demo-banner { background: var(--surface); border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: .55rem .8rem; font-size: .82rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 30; transform: translateX(-100%); transition: transform .2s; height: 100%; padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .topbar { display: flex; align-items: center; gap: .6rem; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
  .main { padding-inline: 16px; }
}

/* Panels & tables */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-body { padding: 14px 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .78rem; color: var(--muted); font-weight: 500; white-space: nowrap; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td.right, th.right { text-align: right; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover { background: var(--surface-2); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1020px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; }
.kpi .val { font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1020px) { .cols { grid-template-columns: 1fr; } }
.list { display: grid; }
.list-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.list-item:last-child { border-bottom: 0; }
.list-item > div { min-width: 0; }

/* Pipeline strip */
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; text-align: left; display: grid; gap: 2px; }
.stage.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stage .n { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }

/* Kanban */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.col { background: var(--surface-2); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; min-height: 220px; }
.col.drop { outline: 2px dashed var(--ink); }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 4px; font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; cursor: grab; }
.card:active { cursor: grabbing; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .78rem; color: var(--muted); }
.card-actions { display: flex; gap: 4px; justify-content: flex-end; }

/* Invoice document */
.inv-doc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: grid; gap: 24px; max-width: 820px; }
.inv-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inv-top .num { font-size: 1rem; }
.inv-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 560px) { .inv-parties { grid-template-columns: 1fr; } .inv-doc { padding: 20px; } }
.inv-sum { justify-self: end; width: min(320px, 100%); display: grid; gap: 6px; }
.inv-sum div { display: flex; justify-content: space-between; gap: 12px; }
.inv-doc.intl { gap: 26px; border-top: 5px solid #1d7a4c; }
.ix-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.ix-brand { display: flex; gap: 12px; align-items: center; } .ix-brand > div { display: grid; }
.ix-title { display: grid; justify-items: end; gap: 4px; } .ix-title > span:first-child { font-size: 1.9rem; font-weight: 700; letter-spacing: .02em; line-height: 1; }
.ix-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .ix-cols > div { display: grid; gap: 3px; align-content: start; min-width: 0; overflow-wrap: anywhere; }
.ix-cols .eyebrow, .ix-pay .eyebrow, .ix-due .eyebrow { color: #1d7a4c; }
.ix-meta > div, .ix-pay > div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.ix-due { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #ecf6f0; border-radius: 12px; padding: 16px 20px; } .ix-due > div { display: grid; } .ix-due strong { font-size: 1.7rem; }
.ix-table thead th { background: #f4f6f5; }
.ix-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 24px; align-items: start; } .ix-pay { display: grid; gap: 6px; } .ix-pay p { margin: 4px 0 0; }
.ix-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
@media (max-width: 700px) { .ix-cols, .ix-bottom { grid-template-columns: minmax(0, 1fr); } .ix-title { justify-items: start; } }
.inv-sign { justify-self: end; display: grid; gap: 2px; justify-items: start; min-width: 200px; }
.sign-img { width: 150px; height: auto; display: block; margin: 2px 0 -4px; }
.sign-set { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.sign-set .sign-img { width: 120px; padding: 6px; border: 1px dashed var(--line); border-radius: 10px; background: #fff; margin: 0; }
.inv-sum .total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; font-size: 1.05rem; }
.items-edit { display: grid; gap: 8px; }
.item-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, .8fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; }
@media (max-width: 560px) { .item-row { grid-template-columns: 1fr 1fr; } .item-row .input:first-child { grid-column: 1 / -1; } }

/* Chart */
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }

/* Dialog */
.overlay { position: fixed; inset: 0; background: rgba(10, 20, 15, .45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.dialog { background: var(--surface); border-radius: 14px; width: 100%; max-width: 560px; max-height: calc(100% - 32px); overflow-y: auto; box-shadow: var(--shadow); display: grid; gap: 16px; padding: 22px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.toast { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--fg); color: var(--bg); padding: .55rem 1rem; border-radius: 999px; font-size: .85rem; z-index: 60; max-width: calc(100% - 32px); }
.locked-page { display: grid; gap: 14px; max-width: 640px; }
.locked-page ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 4px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .input { width: auto; min-width: 0; }
/* Email */
.mail { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); min-height: 520px; overflow: hidden; }
.mail-list { border-right: 1px solid var(--line); display: grid; align-content: start; overflow-y: auto; max-height: 72vh; }
.mail-row { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; display: grid; gap: 3px; cursor: pointer; justify-items: start; }
.mail-row:hover { background: var(--surface-2); }
.mail-row.on { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.mail-row.unread .mail-from, .mail-row.unread .mail-subj { font-weight: 700; }
.mail-top { display: flex; justify-content: space-between; gap: 8px; width: 100%; flex-wrap: wrap; }
.mail-subj { font-weight: 500; }
.mail-snip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mail-view { padding: 18px 20px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.mail-msg { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 8px; }
.mail-msg.ours { background: var(--surface-2); }
.mail-back { display: none; justify-self: start; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .mail { grid-template-columns: 1fr; }
  .mail.has-open .mail-list { display: none; }
  .mail:not(.has-open) .mail-view { display: none; }
  .mail-list { border-right: 0; max-height: none; }
  .mail-back { display: inline-flex; }
}
/* Kalender */
.cal { display: grid; gap: 12px; }
.cal-item { justify-content: flex-start; }
.cal-time { width: 52px; flex: none; font-weight: 500; }
/* Aset */
.assets { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 760px) { .assets { grid-template-columns: 1fr; } }
.folder-list { display: grid; padding: 6px; }
.folder { display: flex; gap: 8px; align-items: center; background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; }
.folder:hover { background: var(--surface-2); }
.folder.on { background: var(--surface-2); font-weight: 600; }
.folder.on svg { color: var(--accent); }
.folder svg, .folder-list p svg { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
/* Agent */
.agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.agent { padding: 14px; display: grid; gap: 8px; align-content: start; }
.agent .btn { justify-self: start; }
.agent-top { display: flex; gap: 10px; align-items: center; }
.agent-top > div { flex: 1; }
.agent-face { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; background: var(--c); flex: none; }
.run { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.run:last-child { border-bottom: 0; }
.run-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.run-out { background: var(--surface-2); border-radius: 8px; padding: 12px; max-height: 280px; overflow-y: auto; font-size: .88rem; }
/* Office 3D */
.office3d { position: relative; height: max(600px, calc(100vh - 150px)); border-radius: 16px; overflow: hidden; background: #e6dccd; border: 1px solid var(--line); }
.office3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.office3d canvas:active { cursor: grabbing; }
.o-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.o-tag { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid rgba(28,26,23,.08); border-radius: 8px; padding: 3px 7px; font-size: .72rem; font-weight: 600; box-shadow: 0 2px 6px rgba(28,26,23,.12); cursor: pointer; white-space: nowrap; }
.o-tag.on { outline: 2px solid var(--accent); }
.o-dot { width: 7px; height: 7px; border-radius: 50%; background: #c9c2b8; }
.o-tag[data-s="working"] .o-dot { background: var(--good); }
.o-tag[data-s="review"] .o-dot { background: var(--accent); }
.o-bubble:empty { display: none; }
.o-bubble { background: var(--accent); color: var(--accent-ink); border-radius: 5px; padding: 0 5px; font-size: .7rem; }
.o-tag[data-s="working"]::after { content: ""; position: absolute; right: -30px; top: -14px; width: 26px; height: 16px; border-radius: 8px; background: #fff; border: 1.5px solid #2b2622; background-image: radial-gradient(circle, #2b2622 1.6px, transparent 2px); background-size: 7px 100%; background-position: 3px 0; background-repeat: repeat-x; }
.o-card { z-index: 2; position: absolute; background: rgba(255,255,255,.96); border: 1px solid rgba(28,26,23,.06); border-radius: 14px; box-shadow: var(--shadow); }
.o-title { left: 16px; top: 16px; display: flex; gap: 12px; align-items: center; padding: 12px 18px 12px 12px; }
.o-title .brand-mark { width: 44px; height: 44px; border-radius: 11px; font-size: 1.3rem; }
.o-title-name { font-size: 1.3rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.o-side { left: 16px; bottom: 16px; width: 250px; padding: 12px; display: grid; gap: 4px; max-height: calc(100% - 120px); overflow-y: auto; }
.o-side-h { font-weight: 600; color: var(--muted); font-size: .85rem; }
.o-zone { display: flex; gap: 12px; align-items: center; text-align: left; background: none; border: 1px solid transparent; border-radius: 10px; padding: 8px; cursor: pointer; }
.o-zone:hover { background: var(--surface-2); }
.o-zone > span:last-child { display: grid; }
.o-zone-n { width: 40px; height: 40px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-weight: 600; font-family: var(--mono); flex: none; }
.o-side-top { display: flex; gap: 10px; align-items: center; }
.o-side-top > div:nth-child(2) { flex: 1; min-width: 0; }
.o-log { right: 16px; top: 16px; bottom: 84px; width: 300px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.o-log-head { display: flex; justify-content: space-between; align-items: baseline; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 6px; }
.o-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.o-stats > div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; display: grid; }
.o-stats strong { font-size: 1.2rem; font-weight: 600; }
.o-stats span { font-size: .74rem; color: var(--muted); }
.o-decision { width: 100%; text-align: left; background: #fdf3e4; border: 1px solid #f3dfbd; color: #8a5300; border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: .85rem; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.o-q { width: 20px; height: 20px; border-radius: 50%; background: #e8a33d; color: #fff; display: grid; place-items: center; font-size: .75rem; flex: none; }
.o-log-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; min-height: 0; }
.o-log-list li { display: flex; gap: 8px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.o-log-list li > span:first-child { flex: none; padding-top: 1px; }
.o-who { flex: none; color: #fff; font-size: .62rem; font-weight: 700; border-radius: 5px; padding: 2px 5px; margin-top: 1px; }
.o-controls { left: 50%; transform: translateX(-50%); bottom: 16px; display: flex; gap: 6px; padding: 8px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 32px); }
.o-controls .btn.on { background: var(--ink); color: var(--ink-fg); border-color: var(--ink); }
.o-sep { width: 1px; background: var(--line); margin: 2px 4px; }
.o-fallback[hidden] { display: none; }
.o-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }
@media (max-width: 1100px) { .o-log { width: 260px; } .o-side { width: 220px; } .o-controls { left: auto; right: 16px; transform: none; bottom: 16px; max-width: calc(100% - 270px); } .o-log { bottom: 130px; } }
@media (max-width: 860px) {
  .office3d { height: auto; display: grid; overflow: visible; background: none; border: 0; gap: 12px; }
  .office3d canvas { position: relative; height: 62vh; border-radius: 14px; background: #e6dccd; }
  .o-labels { inset: auto; top: 0; left: 0; right: 0; height: 62vh; }
  .o-card { position: static; transform: none; width: auto; max-width: none; }
  .o-title { display: none; }
  .o-log { max-height: 420px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.mgr { display: grid; gap: 10px; }
.mgr-head { display: flex; gap: 10px; align-items: center; }
.mgr-head .mgr-av { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 600; font-size: .85rem; flex: none; }
.mgr-head b { display: block; font-size: .92rem; }
.mgr-head small { color: var(--muted); font-size: .78rem; }
.mgr-log { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; padding-right: 2px; }
.o-side .mgr-log { max-height: 220px; }
.mgr-msg { align-self: flex-start; max-width: 88%; background: var(--surface-2); border-radius: 10px 10px 10px 3px; padding: 8px 10px; font-size: .86rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.mgr-msg.me { align-self: flex-end; background: var(--ink); color: #fff; border-radius: 10px 10px 3px 10px; }
.mgr-time { display: block; font-family: "Geist Mono", ui-monospace, monospace; font-size: .68rem; color: var(--muted); margin-top: 3px; }
.mgr-msg.me .mgr-time { color: rgba(255,255,255,.6); }
.mgr-form { display: flex; gap: 6px; align-items: flex-end; }
.mgr-form textarea { flex: 1; min-width: 0; resize: none; min-height: 38px; max-height: 110px; font: inherit; font-size: .86rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); }
.mgr-form textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.mgr-ex { display: flex; flex-wrap: wrap; gap: 6px; }
.mgr.compact .mgr-chip { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgr-chip { border: 1px solid var(--line); background: var(--surface); color: var(--fg); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .76rem; cursor: pointer; }
.mgr-chip:hover { border-color: var(--fg); }
.o-side.chat { width: 270px; }
.o-side.chat > *, .mgr > * { min-width: 0; }
.mgr.compact .mgr-ex { display: none; }
@media (max-width: 700px) { .o-side.chat { width: calc(100% - 32px); } }

.demo-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.shell.wide { grid-template-columns: minmax(0, 1fr); }
.shell.wide > .side { display: none; }
@media (max-width: 900px) { #wideBtn { display: none; } }

/* v2: CRM flow, client dashboard, charts, notifications */
:root { --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.bell { position: relative; padding: .35rem; }
.bell svg { width: 19px; height: 19px; }
.bell-n { position: absolute; top: -4px; right: -6px; min-width: 17px; height: 17px; border-radius: 9px; background: #e5484d; color: #fff; box-shadow: 0 0 0 2px var(--surface); font-size: .66rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; font-family: var(--mono); }
.notif { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; text-align: left; align-items: flex-start; }
.notif:hover { background: var(--surface-2); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: transparent; }
.notif.unread .notif-dot { background: var(--accent); }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: .38rem .8rem; border-radius: 7px; cursor: pointer; font-weight: 500; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(28,26,23,.08); }
.crm-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.flow-strip { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.flow-strip li { display: flex; align-items: center; gap: 6px; padding-right: 10px; }
.flow-strip li:not(:last-child)::after { content: "→"; margin-left: 4px; color: var(--line); color: var(--muted); }
.flow-strip b { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: .72rem; color: var(--fg); }
.board.pipe { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
.card.click { cursor: pointer; }
.card.click:hover { border-color: var(--muted); }
.next-step { font-size: .78rem; font-weight: 600; color: var(--accent-text); }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.client-card { padding: 16px; display: grid; gap: 14px; cursor: pointer; }
.client-card:hover { border-color: var(--muted); }
.cc-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.cc-stats dt { font-size: .74rem; color: var(--muted); }
.cc-stats dd { margin: 0; font-weight: 600; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 500; min-width: 0; }
.stepper b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: .78rem; flex: none; }
.stepper li.done { color: var(--fg); }
.stepper li.done b { background: var(--good-soft); color: var(--good); }
.stepper li.now { border-color: var(--ink); color: var(--fg); font-weight: 600; }
.stepper li.now b { background: var(--ink); color: #fff; }
@media (max-width: 640px) { .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step.now { border-color: var(--ink); box-shadow: var(--shadow); }
.step.done .panel-head h2::after { content: " ✓"; color: var(--good); }
textarea.input.brief-box { min-height: 240px; font-family: var(--body); line-height: 1.55; }
.list.bordered { border: 1px solid var(--line); border-radius: 10px; }
.client-tabs { align-self: start; }
.bar { height: 6px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--s1); border-radius: 4px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.kpi-card .panel-head { align-items: flex-start; }
.kpi-big { font-size: 1.35rem; font-weight: 600; }
.spark { width: 100%; height: auto; display: block; }
.kpi-card details { margin-top: 8px; }
.kpi-card summary { cursor: pointer; color: var(--muted); }
.kpi-card td { padding: .35rem .2rem; }
.report-set { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
details.report > summary { list-style: none; cursor: pointer; }
details.report > summary::-webkit-details-marker { display: none; }
details.report[open] > summary { background: var(--surface-2); }
.report-text { background: var(--surface-2); border-radius: 8px; padding: 12px 14px; font-size: .86rem; max-height: 420px; overflow-y: auto; }
.donut { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: center; }
.donut svg { width: 100%; max-width: 170px; }
@media (max-width: 480px) { .donut { grid-template-columns: 1fr; justify-items: center; } }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .85rem; width: 100%; }
.legend-list li { display: flex; gap: 8px; align-items: center; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.hbars { display: grid; gap: 10px; padding: 14px 16px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) 84px; gap: 10px; align-items: center; font-size: .85rem; }
.hb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { display: flex; gap: 2px; height: 14px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.hb-track > span { display: block; height: 100%; border-radius: 3px; }
.hb-val { text-align: right; white-space: nowrap; }
.notice { background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: .6rem .8rem; font-size: .84rem; color: var(--muted); }
.notice.warn-note { border-style: solid; background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.connect-card { display: grid; gap: 10px; max-width: 620px; }
.linkish { background: none; border: 0; padding: 0; color: var(--fg); text-decoration: underline; cursor: pointer; font: inherit; }
.next-call { padding: 16px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; border-color: var(--ink); }
.next-call > div:first-child { display: grid; gap: 3px; min-width: 0; }
.meet-url { color: var(--muted); overflow-wrap: anywhere; }
a.btn { text-decoration: none; color: inherit; }
a.btn.primary { color: var(--ink-fg); }
.main a:not(.btn) { color: var(--fg); text-underline-offset: 2px; }

/* v3: tasks per orang, drawer, timer, workspace klien, sidebar kecil */
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.linkish { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.linkish:hover { text-decoration: underline; }
.tag-chip { font-size: .72rem; color: var(--muted); background: var(--surface-2); border-radius: 5px; padding: 0 .35rem; white-space: nowrap; }
.task-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.task-row:last-child { border-bottom: 0; }
.task-row.done .task-title { text-decoration: line-through; color: var(--muted); }
.check { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; font-size: .7rem; color: #fff; padding: 0; }
.check:hover:not(:disabled) { border-color: var(--s3); }
.check.on { background: var(--s3); border-color: var(--s3); }
.task-main { flex: 1; min-width: 0; display: grid; gap: 2px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.task-main:hover .task-title { color: var(--accent-text); }
.task-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-main .card-meta { margin: 0; }
.person-tasks { display: grid; gap: 14px; }
.task-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.task-filters .input { width: auto; flex: 1 1 160px; max-width: 260px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.person-col .task-row { padding: 8px 12px; }
.people-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.person-card { display: grid; gap: 12px; padding: 14px 16px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.person-card:hover { border-color: var(--fg); }
.person-card .cc-stats { margin: 0; }
.today-col { background: var(--surface-2); }
.dialog.drawer { max-width: 720px; align-self: stretch; max-height: calc(100% - 32px); }
.td { display: grid; gap: 16px; }
.td-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.td-title { font-family: var(--display); font-size: 1.3rem; font-weight: 600; border-color: transparent; padding-left: .3rem; }
.td-title:hover, .td-title:focus { border-color: var(--line); }
.td-grid { display: grid; grid-template-columns: 130px minmax(0, 1fr) 110px minmax(0, 1fr); gap: 8px 12px; align-items: center; font-size: .86rem; }
.td-grid > label { color: var(--muted); }
@media (max-width: 640px) { .td-grid { grid-template-columns: 110px minmax(0, 1fr); } }
.checklist { display: grid; gap: 2px; }
.ck { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; font-weight: 400; }
.ck:hover { background: var(--surface-2); }
.ck span { flex: 1; }
.ck input:checked + span { text-decoration: line-through; color: var(--muted); }
.ck .btn { padding: .1rem .4rem; visibility: hidden; }
.ck:hover .btn { visibility: visible; }
.comments { display: grid; gap: 12px; }
.cmt { display: flex; gap: 10px; align-items: flex-start; }
.cmt > div { min-width: 0; }
.mention { color: var(--s1); }
.timer-chip { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 10px; background: var(--fg); color: #fff; border-radius: 999px; padding: 6px 6px 6px 14px; box-shadow: var(--shadow); font-size: .85rem; max-width: calc(100% - 32px); }
.timer-chip .linkish { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.timer-chip .num { font-family: var(--mono); }
.timer-chip .btn { background: #fff; color: var(--fg); border: 0; border-radius: 999px; }
.timer-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; flex: none; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.cc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); }
.avatars { display: flex; }
.avatars .avatar { border: 2px solid var(--surface); margin-left: -6px; }
.avatars .avatar:first-child { margin-left: 0; }
.qs-list { max-height: 50vh; overflow-y: auto; }
.qs-item { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font: inherit; color: inherit; text-align: left; }
.qs-item:hover, .qs-item:focus { background: var(--surface-2); }
.meet > summary { cursor: pointer; list-style: none; }
.meet > summary::-webkit-details-marker { display: none; }
.meet:not([open]) > summary { border-bottom: 0; }
.side-tools { display: flex; gap: 6px; align-items: center; }
.side-search { flex: 1; justify-content: flex-start; color: var(--muted); }
.side-search svg, .side-collapse svg { width: 16px; height: 16px; }
.side-search kbd { margin-left: auto; font-family: var(--mono); font-size: .68rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; }
.nav a.nav-sub { padding: .3rem .65rem .3rem 2.1rem; font-weight: 400; font-size: .86rem; color: var(--muted); }
.nav a.nav-sub.on { color: var(--fg); font-weight: 600; background: var(--surface-2); }
.nav-sub .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--s3); flex: none; }
.nav-sub span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 901px) {
  .shell { transition: grid-template-columns .18s; }
  .shell.collapsed { grid-template-columns: 68px minmax(0, 1fr); }
  .shell.collapsed .side { padding: 18px 10px; align-items: center; }
  .shell.collapsed .brand-text, .shell.collapsed .nav a > span, .shell.collapsed .nav-group, .shell.collapsed .nav-sub, .shell.collapsed .me-text, .shell.collapsed #logout, .shell.collapsed .side-search span, .shell.collapsed .side-search kbd { display: none; }
  .shell.collapsed .side-top { flex-direction: column; }
  .shell.collapsed .side-tools { flex-direction: column; }
  .shell.collapsed .side-search { flex: none; justify-content: center; }
  .shell.collapsed .nav a { justify-content: center; padding: .55rem; }
  .shell.collapsed .nav { width: 100%; }
  .shell.collapsed .me { width: 100%; justify-items: center; }
}
@media (max-width: 900px) { .side-collapse { display: none; } }
.cal-acts { flex-wrap: nowrap; }
@media (max-width: 640px) { .cal-item { flex-wrap: wrap; } .cal-acts { flex-wrap: wrap; width: 100%; } }


/* v4: logo, hijau mint, dashboard karyawan, pengaturan */
img.brand-mark { background: none; border-radius: 50%; object-fit: cover; display: block; }
.btn.primary { background: var(--ink); }
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; border-radius: 16px; padding: 22px; background: linear-gradient(135deg, #d4f3e2 0%, var(--mint) 55%, #6fd29e 100%); color: #0d0f0e; }
.hero h1 { font-size: 1.9rem; }
.hero p { margin: 6px 0 14px; max-width: 60ch; }
.hero .eyebrow { color: rgba(13, 15, 14, .7); }
.hero-main { display: grid; align-content: start; gap: 4px; min-width: 0; }
.hero-side { background: rgba(255, 255, 255, .55); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.hero-side .bar { background: rgba(13, 15, 14, .12); }
.hero-num { font-size: 1.8rem; font-family: var(--display); }
.hero .btn:not(.primary) { background: rgba(255, 255, 255, .7); border-color: transparent; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }
.access-list { display: grid; gap: 4px; font-size: .86rem; }
.ann { align-items: flex-start; }
.role-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.role-cards .panel-body { display: grid; gap: 4px; }


/* v5: timer cepat, kit kerja, review PM */
kbd { font-family: var(--mono); font-size: .7rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 .3rem; background: var(--surface); color: var(--fg); }
.play { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: .62rem; display: grid; place-items: center; color: var(--accent-text); padding: 0; }
.play:hover { background: var(--accent-soft); border-color: var(--accent); }
.play.on { background: var(--fg); color: #fff; border-color: var(--fg); }
.timer-chip.idle { background: var(--surface); color: var(--fg); border: 1px solid var(--line); padding: 5px 12px 5px 5px; }
.timer-chip.idle .linkish { color: var(--fg); font-weight: 500; }
.timer-play { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; font-size: .7rem; }
.kit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 14px 16px; }
.kit-work { padding: 14px 16px 0; }
.kit-work .task-row { padding: 8px 0; }
@media (max-width: 640px) { .kit-grid { grid-template-columns: 1fr; } }
.kit-checks { margin: 6px 0 0; padding-left: 1.1rem; display: grid; gap: 4px; font-size: .86rem; }
.kit-checks li::marker { color: var(--accent); }
.kit .btn svg { width: 14px; height: 14px; }
.review-row { border-bottom: 1px solid var(--line); }
.review-row .task-row { border-bottom: 0; }
.review-acts { padding: 0 14px 10px 44px; }

/* v6: laporan jam, standup, integrasi */
.day-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; padding: 6px 16px 14px; align-items: end; }
.day-bar { display: grid; gap: 4px; justify-items: center; text-align: center; }
.day-bar .num { min-height: 1.1em; font-size: .7rem; color: var(--muted); }
.db-track { width: 100%; max-width: 34px; height: 84px; background: var(--surface-2); border-radius: 7px; display: flex; align-items: flex-end; overflow: hidden; }
.db-track > div { width: 100%; background: var(--mint); border-radius: 7px 7px 0 0; min-height: 0; }
.day-bar.today .db-track > div { background: var(--accent); }
.day-bar.today > .small { color: var(--fg); font-weight: 600; }
.live-row { display: flex; gap: 8px; align-items: center; margin: 0 16px 6px; padding: 8px 12px; background: var(--accent-soft); color: var(--accent-text); border-radius: 10px; font-size: .86rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 3px rgba(76,196,136,.25); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(76,196,136,.08); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.live-pill { display: inline-flex; gap: 6px; align-items: center; font-family: var(--mono); color: var(--accent-text); white-space: nowrap; }
.standup-view { display: grid; gap: 10px; }
.standup-view p { margin: 2px 0 0; }
.blocker { background: #fdecea; border-radius: 10px; padding: 8px 12px; color: #8f1d14; }
.standup-item.has-blocker { box-shadow: inset 3px 0 0 var(--bad); }
.code-block { margin: 0; padding: 14px 16px; overflow-x: auto; background: var(--ink); color: #dfe7e2; font-family: var(--mono); font-size: .76rem; line-height: 1.55; max-height: 360px; }
.steps-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; line-height: 1.5; }
.inv-acts { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.btn.on-doc { background: var(--accent-soft); color: var(--accent-text); border-color: var(--mint); }
.doc-sub { padding: 10px 16px 4px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* v6: kantor virtual */
.office3d { background: #e4ede7; }
.o-top { position: absolute; left: 16px; top: 16px; z-index: 3; display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; max-width: calc(100% - 360px); pointer-events: none; }
.o-top > *, .o-bottom > * { pointer-events: auto; }
.office3d .o-top .o-card, .office3d .o-bottom .o-card { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none; }
.o-title { padding: 8px 16px 8px 8px; gap: 10px; }
.o-title .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.o-title-name { font-size: 1.05rem; }
.o-view { display: flex; align-items: center; padding: 5px; gap: 3px; }
.o-view button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; font: inherit; font-size: .85rem; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.o-view button:hover { color: var(--fg); }
.o-view button.on { background: var(--ink); color: #fff; }
.o-rooms { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.o-rooms::-webkit-scrollbar { display: none; }
.o-rooms button { padding: 8px 11px; }
.is-out .o-rooms { display: none; }
.o-info { left: 16px; top: 88px; width: 290px; padding: 14px; display: grid; gap: 10px; max-height: calc(100% - 420px); min-height: 0; overflow-y: auto; }
.o-info[hidden] { display: none; }
.o-info p { margin: 0; }
.o-log { top: 16px; bottom: 82px; width: 310px; }
.o-log-head { align-items: center; gap: 8px; }
.o-log-head h2 { flex: 1; font-size: 1.02rem; margin: 0; }
.o-log-body { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; }
.o-log.min { bottom: auto; width: 250px; padding: 10px 12px 10px 16px; }
.o-log.min .o-log-body { display: none; }
.o-log-tabs { display: flex; }
.o-log-tabs button { flex: 1; font-size: .76rem; padding: 5px 6px; }
.o-log-list li.akun > span:last-child strong { font-weight: 600; }
.o-bottom { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3; display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; pointer-events: none; }
.o-chat { width: 310px; padding: 14px; display: grid; gap: 8px; }
.o-chat .mgr-log { max-height: min(220px, 24vh); }
.o-chat .o-min { position: absolute; right: 8px; top: 8px; }
.o-chat .mgr-head { padding-right: 34px; }
.o-chat.min { width: auto; padding: 0; }
.o-chat-pill { display: flex; gap: 10px; align-items: center; background: none; border: 0; padding: 8px 14px 8px 8px; font: inherit; color: var(--fg); cursor: pointer; text-align: left; border-radius: 14px; }
.o-chat-pill > span:nth-child(2) { display: grid; line-height: 1.25; }
.o-caret { color: var(--muted); font-size: .8rem; }
.office3d .o-bottom .o-controls { max-width: none; justify-content: flex-end; }
.o-act:empty { display: none; }
.o-act { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); background: var(--ink); color: #fff; font-weight: 500; font-size: .68rem; padding: 3px 8px; border-radius: 7px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.o-act::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--ink); }
.is-out .o-labels, .is-out .o-info { display: none; }
/* v7.1: layout kantor rapi (bar atas, panggung, log di kolom kanan, kontrol di bawah) */
.office3d { height: max(620px, calc(100vh - 150px)); display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "bar bar" "stage log" "ctrl log"; gap: 12px; background: none; border: 0; border-radius: 0; overflow: visible; }
.office3d.log-min { grid-template-columns: minmax(0, 1fr) 220px; }
.o-bar { grid-area: bar; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }
.o-bar .o-title { display: flex; gap: 10px; align-items: center; padding: 0 8px 0 0; margin-right: auto; }
.o-bar .o-view { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.o-bar .o-rooms { max-width: 100%; }
.o-stage { grid-area: stage; position: relative; min-height: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #e4ede7; }
.o-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.office3d .o-stage .o-card { position: absolute; }
.office3d .o-stage .o-info { left: 12px; top: 12px; bottom: auto; width: 290px; max-height: calc(100% - 110px); }
.office3d .o-stage .o-chat { left: 12px; bottom: 12px; top: auto; width: 310px; max-height: calc(100% - 24px); overflow-y: auto; }
.office3d .o-stage .o-chat.min { width: auto; overflow: visible; }
.office3d .o-log { grid-area: log; position: relative; inset: auto; width: auto; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: none; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.office3d .o-log.min { align-self: start; padding: 10px 12px 10px 16px; }
.office3d .o-controls { grid-area: ctrl; position: static; transform: none; max-width: none; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: none; }
.o-ctl-group { display: flex; gap: 6px; flex-wrap: wrap; }
.office3d .o-labels { z-index: 1; }
@media (max-width: 1100px) { .office3d { grid-template-columns: minmax(0, 1fr) 260px; } .office3d .o-stage .o-chat { width: 280px; } }
@media (max-width: 860px) {
  .office3d, .office3d.log-min { height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "bar" "stage" "ctrl" "log"; }
  .o-bar .o-title { display: none; }
  .o-stage { height: 62vh; }
  .office3d .o-stage canvas { position: absolute; height: 100%; border-radius: 0; }
  .office3d .o-labels { inset: 0; height: auto; }
  .office3d .o-stage .o-info { right: 12px; width: auto; }
  .office3d .o-stage .o-chat { right: 12px; width: auto; max-height: calc(100% - 24px); }
  .office3d .o-stage .o-chat.min { right: auto; }
  .office3d .o-log { max-height: 460px; }
  .office3d .o-controls { justify-content: center; }
}
@media (max-width: 1100px) { .o-top { max-width: calc(100% - 300px); } .o-log { width: 270px; bottom: 82px; } .o-chat { width: 280px; } }
@media (max-width: 860px) {
  .office3d .o-top, .office3d .o-bottom { position: static; max-width: none; display: grid; gap: 12px; }
  .o-top .o-view { justify-self: start; }
  .o-info { position: static; width: auto; max-height: none; }
  .o-chat { width: auto; }
  .office3d .o-log, .o-log.min { width: auto; }
  .office3d .o-bottom .o-controls { justify-content: center; }
  .office3d canvas { background: #e4ede7; }
}

/* badge update per menu */
.nav a { position: relative; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e5484d; color: #fff; font-size: .7rem; font-weight: 700; font-family: var(--mono); display: inline-grid; place-items: center; line-height: 1; }
.shell.collapsed .nav-badge { position: absolute; top: 2px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; font-size: .6rem; box-shadow: 0 0 0 2px var(--surface); }
/* agent: kartu bisa diklik, tanda butuh approval, detail */
.agent-card { text-align: left; font: inherit; color: inherit; cursor: pointer; position: relative; transition: border-color .15s, box-shadow .15s; }
.agent-card:hover { border-color: var(--accent, #1FAE5E); box-shadow: 0 2px 10px rgba(28,26,23,.06); }
.agent-card.needs { border-color: #e0a43a; box-shadow: 0 0 0 1px #e0a43a inset; }
.agent-flag { justify-self: start; background: #fdf1d8; color: #8a5a00; border-radius: 999px; padding: 2px 10px; font-size: .74rem; font-weight: 600; }
.agent-flag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e0a43a; margin-right: 6px; vertical-align: 1px; }
.agent-more { color: var(--accent-text, #159152); font-weight: 600; }
.needs-panel { border-color: #e0a43a; }
.agent-grid { align-items: start; gap: 14px; }
.email-prev { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sheet-prev table { font-size: .86rem; }
.run details summary { cursor: pointer; color: var(--muted); }
.run details[open] summary { margin-bottom: 8px; }
/* kalender ala Google Calendar / Cal.com */
.cal-wrap { padding: 0; overflow: hidden; }
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cal-title { margin: 0 0 0 6px; font-size: 1.15rem; }
.cal-arrow { font-size: 1.2rem; line-height: 1; padding: .2rem .55rem; }
.cal-week { overflow-x: auto; }
.cal-head, .cal-allday, .cal-body { display: grid; grid-template-columns: 56px repeat(7, minmax(110px, 1fr)); min-width: 840px; }
.cal-dh { padding: 8px 4px; text-align: center; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.cal-dh span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal-dh b { font-size: 1.35rem; font-weight: 600; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto; }
.cal-dh.today span { color: var(--accent-text, #159152); }
.cal-dh.today b { background: #1FAE5E; color: #fff; }
.cal-allday { border-top: 1px solid var(--line); }
.cal-allday > div { padding: 4px; border-left: 1px solid var(--line); display: grid; gap: 3px; }
.cal-allday > div:first-child { border-left: 0; align-content: center; font-size: .7rem; }
.cal-allday .cal-ev { position: static; }
.cal-body { border-top: 1px solid var(--line); max-height: 620px; overflow-y: auto; position: relative; }
.cal-hours > div { height: var(--h); font-size: .68rem; color: var(--muted); text-align: right; padding-right: 8px; transform: translateY(-7px); font-family: var(--mono); }
.cal-hours > div:first-child { visibility: hidden; }
.cal-col { position: relative; border-left: 1px solid var(--line); }
.cal-col.today { background: rgba(31, 174, 94, .04); }
.cal-slot { height: var(--h); border-top: 1px solid var(--line); }
.cal-slot:first-child { border-top: 0; }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: #e5484d; z-index: 3; }
.cal-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #e5484d; }
.cal-ev { position: absolute; left: 3px; right: 3px; z-index: 2; display: grid; align-content: start; gap: 1px; text-align: left; font: inherit; cursor: pointer; border: 0; border-left: 3px solid #3b5ba8; border-radius: 6px; background: #e8eefb; color: #1d2f5c; padding: 3px 6px; overflow: hidden; }
.cal-ev:hover { filter: brightness(.97); box-shadow: 0 2px 8px rgba(28,26,23,.12); }
.cal-ev.intro { background: #e3f6ea; color: #0f5a32; border-left-color: #1FAE5E; }
.cal-ev.client { background: #fdf1d8; color: #6b4600; border-left-color: #e0a43a; }
.cal-ev.past { opacity: .55; }
.cal-ev-t { font-size: .76rem; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cal-ev-m { font-size: .68rem; opacity: .85; font-family: var(--mono); }
.cal-month { overflow-x: auto; }
.cal-mh, .cal-mg { display: grid; grid-template-columns: repeat(7, minmax(100px, 1fr)); min-width: 720px; }
.cal-mh div { padding: 8px; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 108px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; display: grid; align-content: start; gap: 3px; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.out { background: var(--surface-2); }
.cal-cell.out .cal-cn { color: var(--muted); }
.cal-cn { justify-self: start; border: 0; background: none; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; width: 26px; height: 26px; border-radius: 50%; }
.cal-cell.today .cal-cn { background: #1FAE5E; color: #fff; }
.cal-cell .cal-ev, .cal-agenda .cal-ev { position: static; }
.cal-cell .cal-ev-t { -webkit-line-clamp: 1; }
.cal-more { border: 0; background: none; font: inherit; font-size: .72rem; color: var(--muted); cursor: pointer; text-align: left; padding: 0 4px; }
.cal-agenda { display: grid; }
.cal-ad { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cal-ad:last-child { border-bottom: 0; }
.cal-ad-d { display: grid; gap: 2px; }
.cal-ad-d b { font-size: 1.4rem; }
.cal-ad-d span { font-size: .78rem; color: var(--muted); }
.cal-ad-d.today b { color: #1FAE5E; }
.cal-ad-l { display: grid; gap: 6px; }
.cal-agenda .cal-ev { padding: 8px 10px; }
.cal-agenda .cal-ev-t { font-size: .9rem; }

.cal-ev.short { grid-auto-flow: column; justify-content: start; align-items: center; gap: 6px; padding: 2px 6px; }
.cal-ev.short .cal-ev-t { -webkit-line-clamp: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; min-width: 0; }
.cal-ev.short .cal-ev-m { white-space: nowrap; }
.cal-ev.short .cal-ev-m { display: none; }

.sheet-tabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
.sheet-tabs button { white-space: nowrap; }
.sheet-full { max-height: 640px; overflow: auto; }
.sheet-full table { font-size: .84rem; }
.sheet-full th { position: sticky; top: 0; background: var(--surface); z-index: 1; white-space: nowrap; }
.sheet-full td { min-width: 120px; max-width: 320px; vertical-align: top; }

/* preview hasil per jenis agent */
.agent-prev { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; min-width: 0; }
.agent-prev-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.agent-prev .pill { font-size: .66rem; }
.email-prev.mini { height: 150px; pointer-events: none; }
.prev-empty { font-size: .82rem; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 14px; text-align: center; }
.prev-text { font-size: .82rem; color: var(--fg); background: var(--surface-2); border-radius: 8px; padding: 10px; white-space: pre-wrap; max-height: 150px; overflow: hidden; }
.th-list { display: grid; gap: 10px; }
.th-post { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; background: var(--surface); }
.th-head { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.th-av { width: 24px; height: 24px; border-radius: 50%; background: #0B0D0C; color: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 700; }
.th-body { white-space: pre-wrap; font-size: .9rem; line-height: 1.45; }
.agent-prev .th-body { font-size: .8rem; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.cp-grid.mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-day { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; display: grid; gap: 3px; align-content: start; font-size: .82rem; }
.cp-pillar { font-weight: 600; }
.cp-day.more { place-items: center; }
.serp { display: grid; gap: 3px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; }
.serp-url { font-size: .76rem; color: #4d5156; }
.serp-title { font-size: 1.05rem; color: #1a0dab; line-height: 1.3; }
.agent-prev .serp-title { font-size: .9rem; }
.serp-meta { font-size: .82rem; color: #4d5156; line-height: 1.4; }
.seo-outline { display: grid; gap: 4px; margin-top: 10px; }
.seo-outline > div { display: flex; gap: 8px; align-items: baseline; font-size: .88rem; }
.seo-outline .h3 { padding-left: 22px; color: var(--muted); }
.seo-outline span { font-family: var(--mono); font-size: .66rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; color: var(--muted); }
.doc-prev { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; max-height: 520px; overflow: auto; font-size: .9rem; line-height: 1.55; }
.doc-prev h3 { font-size: .95rem; margin: 10px 0 4px; }
.doc-prev p { margin: 0 0 4px; }
.doc-prev .doc-li { padding-left: 16px; position: relative; }
.doc-prev .doc-li::before { content: "•"; position: absolute; left: 4px; color: var(--muted); }
.doc-gap { height: 8px; }
.agents { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
/* Folder Aset ala Finder / Google Drive */
.fx { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; }
.fx-side { padding: 8px; display: grid; gap: 2px; position: sticky; top: 12px; max-height: calc(100vh - 140px); overflow: auto; }
.fx-node { display: flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; text-align: left; padding: 6px 10px; border-radius: 8px; cursor: pointer; color: var(--fg); min-width: 0; }
.fx-node span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-node svg { width: 18px; height: 16px; flex: none; }
.fx-node:hover { background: var(--surface-2); }
.fx-row { display: flex; align-items: center; min-width: 0; }
.fx-row .fx-node { flex: 1; padding-left: 4px; }
.fx-tog, .fx-tog-sp { flex: none; width: 22px; height: 26px; }
.fx-tog { border: 0; background: none; cursor: pointer; color: var(--muted, #6b7280); font-size: 15px; line-height: 1; border-radius: 6px; transition: transform .15s; }
.fx-tog:hover { background: var(--surface-2); color: var(--fg); }
.fx-tog.open { transform: rotate(90deg); }
.fx-side-head { display: flex; align-items: center; gap: 4px; }
.fx-side-head .fx-node { flex: 1; }
.fx-collapse { flex: none; border: 0; background: none; cursor: pointer; color: var(--muted, #6b7280); width: 28px; height: 28px; border-radius: 6px; }
.fx-collapse:hover { background: var(--surface-2); color: var(--fg); }
.fx-node.on { background: var(--accent-soft, #e3f6ea); font-weight: 600; }
.fx-usage { padding: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.fx-main { position: relative; min-height: 420px; padding: 0; overflow: hidden; }
.fx-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fx-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
.fx-crumbs button { border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; padding: 3px 6px; border-radius: 6px; color: var(--fg); }
.fx-crumbs button:hover { background: var(--surface-2); }
.fx-crumbs span { color: var(--muted); }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; padding: 14px; }
.fx-item { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 8px 10px; border-radius: 10px; cursor: default; text-align: center; border: 1px solid transparent; outline: none; user-select: none; }
.fx-item:hover { background: var(--surface-2); }
.fx-item.sel, .fx-item:focus-visible { background: var(--accent-soft, #e3f6ea); border-color: #9ed9b8; }
.fx-icon { width: 84px; height: 72px; display: grid; place-items: center; }
.fx-icon > svg { width: 72px; height: 60px; }
.fx-thumb { max-width: 84px; max-height: 72px; border-radius: 6px; object-fit: cover; box-shadow: 0 1px 4px rgba(0,0,0,.15); background: var(--surface-2); min-width: 40px; min-height: 40px; }
.fx-name { font-size: .82rem; font-weight: 500; line-height: 1.25; max-width: 120px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.fx-meta { font-size: .7rem; color: var(--muted); }
.fx-item.broken .fx-meta { color: var(--bad); }
.fx-more { position: absolute; top: 6px; right: 6px; border: 0; background: var(--surface); border-radius: 6px; width: 26px; height: 24px; cursor: pointer; opacity: 0; font-size: 1rem; line-height: 1; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.fx-item:hover .fx-more, .fx-item.sel .fx-more, .fx-more:focus { opacity: 1; }
.fx-list .fx-more { position: static; opacity: 1; box-shadow: none; background: none; }
.fx-file { width: 22px; height: 28px; border-radius: 3px; background: #fff; border: 1px solid #d6d3cf; position: relative; display: inline-grid; place-items: end center; flex: none; }
.fx-file b { font-size: .45rem; color: #fff; background: var(--k); border-radius: 2px; padding: 1px 2px; margin-bottom: 4px; font-family: var(--mono); letter-spacing: .02em; }
.fx-file.big { width: 56px; height: 70px; border-radius: 5px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.fx-file.big b { font-size: .7rem; padding: 2px 6px; margin-bottom: 10px; }
.fx-list td { vertical-align: middle; }
.fx-list tr[data-open-file], .fx-list tr[data-open-folder] { cursor: pointer; }
.fx-list tr:hover td { background: var(--surface-2); }
.fx-list tr.broken .fx-row-name { color: var(--muted); }
.fx-row-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.fx-row-name > svg { width: 22px; height: 18px; flex: none; }
.fx-sort { border: 0; background: none; font: inherit; font-weight: 600; cursor: pointer; padding: 0; color: inherit; }
.fx-sort.on { color: var(--accent-text, #159152); }
.fx-empty { display: grid; justify-items: center; gap: 6px; padding: 60px 20px; text-align: center; }
.fx-empty > svg { width: 84px; height: 70px; opacity: .6; }
.fx-dropmask { position: absolute; inset: 0; border: 2px dashed #1FAE5E; border-radius: 12px; background: rgba(31,174,94,.08); display: none; place-items: center; font-weight: 600; color: #0f5a32; pointer-events: none; }
.fx-main.drag .fx-dropmask { display: grid; }
.fx-pop { position: fixed; z-index: 1000; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 4px; display: grid; min-width: 170px; }
.fx-pop button { border: 0; background: none; font: inherit; text-align: left; padding: 8px 10px; border-radius: 6px; cursor: pointer; color: var(--fg); }
.fx-pop button:hover { background: var(--surface-2); }
.fx-pop button.danger { color: var(--bad); }
.fx-uploads { position: fixed; right: 18px; bottom: 18px; width: 300px; z-index: 900; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 12px; display: grid; gap: 10px; max-height: 50vh; overflow: auto; }
.fx-up-h { font-weight: 600; }
.fx-up { display: grid; gap: 4px; }
.fx-up-n { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn.disabled { opacity: .5; pointer-events: none; }
.dialog.wide { width: min(1100px, 96vw); max-width: none; }
.ql { display: grid; gap: 12px; }
.ql-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ql-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.ql-body { min-height: 300px; max-height: 75vh; display: grid; place-items: center; background: var(--surface-2); border-radius: 10px; overflow: auto; }
.ql-body img, .ql-body video { max-width: 100%; max-height: 72vh; display: block; }
.ql-body iframe { width: 100%; height: 72vh; border: 0; background: #fff; }
@media (max-width: 760px) { .fx { grid-template-columns: 1fr; } .fx-side { position: static; max-height: 220px; } }
.fx-uploads[hidden] { display: none; }
