/* Studio Verde Office — sidebar shell, sticky top bar with breadcrumbs, command palette, company map,
   list/board/room views and a sliding edit drawer. Motion is short and eased; reduced motion turns it off. */
:root {
  --bg: #f2f0e8; --bg2: #ebe8dd; --surface: #fbfaf6; --raise: #ffffff; --sunk: #e8e5da; --ink: #0e1a16; --muted: #56675f; --faint: #8a978f; --line: #dcd8cc; --line2: #cdc8ba;
  --accent: #2f6b58; --accent2: #3f8a70; --on-accent: #f3f1ea; --glow: rgba(47, 107, 88, .22); --tint: rgba(47, 107, 88, .08);
  --nav: #0d221c; --nav2: #0a1b16; --nav-ink: #edeae1; --nav-muted: #93a39b; --lumen: #d9f0c4;
  --warn: #8a5a1c; --warn-bg: #f5e7cd; --bad: #a43a26; --bad-bg: #f7ded7; --ok: #2f6b58; --ok-bg: #dcebe3; --plain: #c9c4b6;
  --sh1: 0 1px 2px rgba(14, 26, 22, .06), 0 1px 1px rgba(14, 26, 22, .04);
  --sh2: 0 10px 30px -12px rgba(14, 26, 22, .22), 0 2px 6px -2px rgba(14, 26, 22, .08);
  --sh3: 0 30px 80px -24px rgba(5, 15, 12, .45);
  --display: "Gloock", Georgia, serif; --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --r: 14px; --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .5, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #08130f; --bg2: #0b1814; --surface: #0f1f1a; --raise: #13261f; --sunk: #0b1915; --ink: #ecebe3; --muted: #a2b0a9; --faint: #6f817a; --line: #1f342c; --line2: #2a4238;
  --accent: #8fd0b4; --accent2: #b4e3cd; --on-accent: #07120e; --glow: rgba(143, 208, 180, .25); --tint: rgba(143, 208, 180, .08);
  --nav: #06100d; --nav2: #040b09;
  --warn: #e7b56e; --warn-bg: #2d2416; --bad: #f2a898; --bad-bg: #3a1b15; --ok: #8fd0b4; --ok-bg: #133029; --plain: #3a4f47;
  --sh1: 0 1px 2px rgba(0, 0, 0, .4); --sh2: 0 14px 34px -14px rgba(0, 0, 0, .7); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #08130f; --bg2: #0b1814; --surface: #0f1f1a; --raise: #13261f; --sunk: #0b1915; --ink: #ecebe3; --muted: #a2b0a9; --faint: #6f817a; --line: #1f342c; --line2: #2a4238;
  --accent: #8fd0b4; --accent2: #b4e3cd; --on-accent: #07120e; --glow: rgba(143, 208, 180, .25); --tint: rgba(143, 208, 180, .08);
  --nav: #06100d; --nav2: #040b09;
  --warn: #e7b56e; --warn-bg: #2d2416; --bad: #f2a898; --bad-bg: #3a1b15; --ok: #8fd0b4; --ok-bg: #133029; --plain: #3a4f47;
  --sh1: 0 1px 2px rgba(0, 0, 0, .4); --sh2: 0 14px 34px -14px rgba(0, 0, 0, .7); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { background: radial-gradient(1200px 500px at 70% -200px, var(--tint), transparent 70%), var(--bg); background-attachment: fixed; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.i { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
kbd { font: 500 10.5px var(--mono); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line2); background: var(--bg); color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 13px; }
.boot { padding: 40px; color: var(--muted); }
::selection { background: var(--glow); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 15px; border-radius: 99px; border: 1px solid var(--line); background: var(--raise); font-weight: 500; font-size: 14px; text-decoration: none; color: var(--ink); white-space: nowrap; box-shadow: var(--sh1);
  transition: transform .15s var(--ease), border-color .15s, background .15s, box-shadow .2s; }
.btn:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--sh2); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .6; pointer-events: none; }
.btn.primary { background: linear-gradient(180deg, var(--accent2), var(--accent)); color: var(--on-accent); border-color: transparent; }
.btn.primary kbd { background: transparent; color: inherit; border-color: currentColor; opacity: .6; }
.btn.danger { color: var(--bad); margin-left: auto; }
.btn.danger.armed { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn.lg { min-height: 46px; font-size: 15px; }
.btn.glass { background: rgba(255, 255, 255, .08); color: var(--nav-ink); border-color: rgba(255, 255, 255, .16); box-shadow: none; backdrop-filter: blur(6px); }
.btn.glass:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
.btn.glass kbd { background: transparent; color: var(--nav-muted); border-color: rgba(255, 255, 255, .2); }
.ib { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 11px; border: 1px solid transparent; background: none; color: inherit; transition: background .15s, transform .15s var(--ease); }
.ib:hover { background: var(--tint); } .ib:active { transform: scale(.94); }
.ib.on { background: var(--bad); color: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(164, 58, 38, .5); } 50% { box-shadow: 0 0 0 8px rgba(164, 58, 38, 0); } }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 18px; padding: 24px 16px; background: #07120e; position: relative; overflow: hidden; color-scheme: dark; }
.aurora { position: absolute; inset: -30%; background: radial-gradient(40% 35% at 30% 30%, rgba(143, 208, 180, .28), transparent 70%), radial-gradient(35% 30% at 70% 60%, rgba(217, 240, 196, .16), transparent 70%), radial-gradient(30% 30% at 50% 90%, rgba(47, 107, 88, .4), transparent 70%); filter: blur(30px); animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.05); } }
.lcard { position: relative; width: min(400px, 100%); background: rgba(15, 31, 26, .72); color: #ecebe3; border: 1px solid rgba(255, 255, 255, .1); border-radius: 24px; padding: 30px; box-shadow: var(--sh3); backdrop-filter: blur(18px); animation: rise .6s var(--ease) both; }
.lcard form { display: grid; gap: 14px; }
.lcard.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.lcard h1 { margin: 0; font: 400 40px/1.02 var(--display); }
.lcard p { margin: 0; color: #a2b0a9; font-size: 14px; }
.lcard .fld { color: #a2b0a9; }
.lcard .fld input { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .12); color: #ecebe3; }
.lcard .btn.primary { background: linear-gradient(180deg, #b4e3cd, #8fd0b4); color: #07120e; }
.lfoot { position: relative; color: #6f817a; font-size: 12px; margin: 0; }
.brandrow { display: flex; align-items: center; gap: 10px; font: 500 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #8fd0b4; }
.brandrow img { width: 28px; height: 28px; }

/* ---------- fields ---------- */
.fld { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 500; align-content: start; }
.fld.full { grid-column: 1 / -1; }
.fld input, .fld select, .fld textarea { font-size: 15px; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; min-width: 0; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s; }
.fld input:hover, .fld select:hover, .fld textarea:hover { border-color: var(--line2); }
.fld textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); background: var(--raise); }
.fld [readonly], .fld [disabled] { opacity: .85; }
.err { color: var(--bad); font-size: 14px; min-height: 1em; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
nav.side { background: linear-gradient(180deg, var(--nav), var(--nav2)); color: var(--nav-ink); padding: 16px 12px 12px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; z-index: 30; }
nav.side .logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; text-decoration: none; color: inherit; }
nav.side .logo img { width: 32px; height: 32px; transition: transform .5s var(--spring); }
nav.side .logo:hover img { transform: rotate(-12deg) scale(1.08); }
nav.side .logo b { display: block; font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #8fd0b4; }
nav.side .logo span { font: 400 21px/1 var(--display); }
.jump { display: flex; align-items: center; gap: 8px; margin: 0 2px 6px; padding: 8px 10px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: var(--nav-muted); font-size: 13.5px; text-align: left; transition: background .15s, border-color .15s; }
.jump:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: var(--nav-ink); }
.jump span { flex: 1; } .jump kbd { background: transparent; color: var(--nav-muted); border-color: rgba(255, 255, 255, .16); }
.navsc { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .12) transparent; }
nav.side a[data-nav] { position: relative; display: flex; align-items: center; gap: 11px; padding: 7px 10px; border-radius: 10px; color: var(--nav-muted); text-decoration: none; font-size: 14px; transition: background .15s, color .15s; }
nav.side a[data-nav] .i { opacity: .85; transition: transform .2s var(--ease); }
nav.side a[data-nav]:hover { background: rgba(255, 255, 255, .05); color: var(--nav-ink); }
nav.side a[data-nav]:hover .i { transform: translateX(1px) scale(1.06); }
nav.side a[aria-current="page"] { background: rgba(143, 208, 180, .14); color: var(--lumen); }
nav.side a[aria-current="page"]::before { content: ""; position: absolute; left: -4px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: #8fd0b4; animation: grow .3s var(--ease); }
@keyframes grow { from { transform: scaleY(0); } }
nav.side a .n { margin-left: auto; font: 500 11px var(--mono); min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: var(--nav-muted); }
nav.side a .n:empty { display: none; }
nav.side a .n.alert { background: #c4513a; color: #fff; }
nav.side .grp { font: 500 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #5f7369; padding: 14px 10px 4px; }
nav.side .me { display: flex; align-items: center; gap: 4px; padding: 10px 2px 2px; border-top: 1px solid rgba(255, 255, 255, .08); }
nav.side .who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 5px 6px; border-radius: 10px; color: var(--nav-ink); text-decoration: none; }
nav.side .who:hover, nav.side .who[aria-current="page"] { background: rgba(255, 255, 255, .06); }
nav.side .wn { min-width: 0; display: grid; line-height: 1.2; } nav.side .wn b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } nav.side .wn small { color: var(--nav-muted); font-size: 12px; }
nav.side .ib { color: var(--nav-muted); width: 34px; height: 34px; } nav.side .ib:hover { background: rgba(255, 255, 255, .07); color: var(--nav-ink); }
.av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: inline-grid; place-items: center; font: 600 12px var(--sans); background: linear-gradient(135deg, #8fd0b4, #2f6b58); color: #07120e; }
.av.sm { width: 24px; height: 24px; font-size: 10px; vertical-align: middle; margin-right: 4px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px max(18px, env(safe-area-inset-right)) 10px 22px; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.crumbs b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.crumbs .i { color: var(--faint); }
.tsp { flex: 1; }
.only-m { display: none; }
main.content { min-width: 0; width: 100%; max-width: 1480px; margin: 0 auto; padding: 22px max(18px, env(safe-area-inset-right)) 80px 26px; outline: none; }
.tabbar, .navscrim { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  nav.side { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-104%); transition: transform .32s var(--ease); padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: calc(12px + env(safe-area-inset-bottom)); box-shadow: var(--sh3); }
  body.nav-open nav.side { transform: none; }
  .navscrim { display: block; position: fixed; inset: 0; z-index: 29; background: rgba(3, 10, 8, .5); opacity: 0; pointer-events: none; transition: opacity .3s; backdrop-filter: blur(2px); }
  body.nav-open .navscrim { opacity: 1; pointer-events: auto; }
  .only-m { display: inline-grid; }
  .top { padding: calc(8px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left)); }
  .crumbs > a, .crumbs > .i { display: none; }
  .crumbs b { font: 400 19px var(--display); }
  main.content { padding: 16px max(16px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 25; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 20px; background: color-mix(in srgb, var(--nav) 92%, transparent); backdrop-filter: blur(16px); box-shadow: var(--sh3); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; padding: 6px 0 4px; border: 0; background: none; border-radius: 14px; color: var(--nav-muted); text-decoration: none; font-size: 11px; transition: background .15s, color .15s; }
  .tabbar [aria-current="page"] { color: var(--lumen); background: rgba(143, 208, 180, .14); }
  .tabbar #tbNew .i { background: #8fd0b4; color: #07120e; border-radius: 9px; padding: 2px; width: 24px; height: 24px; }
  .hide-s { display: none; }
}

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fadein { from { opacity: 0; } }
#page.enter .st { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.flash { animation: flash 1.3s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--glow), inset 0 0 0 999px var(--tint); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* ---------- page head ---------- */
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.pht { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ph h1 { margin: 0; font: 400 clamp(28px, 3.6vw, 40px)/1.05 var(--display); letter-spacing: -.01em; }
.ph .sub { color: var(--muted); font-size: 14px; margin-top: 4px; max-width: 70ch; }
.badge { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: linear-gradient(145deg, var(--ok-bg), var(--surface)); border: 1px solid var(--line); box-shadow: var(--sh1); }
.badge.sm { width: 36px; height: 36px; border-radius: 11px; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search { display: flex; align-items: center; gap: 7px; min-width: 0; width: 240px; border: 1px solid var(--line); background: var(--raise); border-radius: 99px; padding: 0 14px; color: var(--muted); box-shadow: var(--sh1); transition: border-color .15s, box-shadow .15s, width .3s var(--ease); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); width: 290px; }
.search input { border: 0; background: none; outline: none; min-width: 0; flex: 1; padding: 8px 0; color: var(--ink); }
@media (max-width: 600px) { .search, .search:focus-within { width: 100%; } .tools { width: 100%; } }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; background: var(--raise); box-shadow: var(--sh1); }
.seg button { border: 0; background: none; border-radius: 99px; padding: 5px 13px; font-size: 13px; color: var(--muted); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.fchips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; margin: -4px 0 6px; scrollbar-width: none; }
.fchips button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 12px; font-size: 13px; color: var(--muted); transition: all .15s; }
.fchips button span { font: 500 11px var(--mono); opacity: .7; }
.fchips button:hover { border-color: var(--accent); color: var(--ink); }
.fchips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- pills, dots ---------- */
.pill { display: inline-flex; align-items: center; font: 500 11px var(--mono); padding: 3px 9px; border-radius: 99px; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.pill.hi, .pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.mid, .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--plain); }
.dot.ok { background: var(--ok); } .dot.mid { background: var(--warn); } .dot.bad { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.ref { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); } .ref .i { color: var(--faint); }

/* ---------- table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--sh1); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--sunk); position: sticky; top: 0; white-space: nowrap; padding: 0; }
th button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 10px 14px; cursor: pointer; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
th button:hover, th button.on { color: var(--ink); }
tbody tr { cursor: pointer; transition: background .12s; }
tbody tr:hover { background: var(--tint); }
tbody tr:last-child td { border-bottom: 0; }
td.num { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .t { font-weight: 500; }
.foot { color: var(--faint); font: 500 11.5px var(--mono); padding: 10px 4px; }
.audit td { font-size: 13px; }

/* ---------- empty ---------- */
.empty { display: grid; justify-items: center; gap: 6px; padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: 18px; background: var(--surface); }
.empty .i { color: var(--faint); } .empty b { color: var(--ink); font-weight: 600; } .empty .btn { margin-top: 8px; }
.empty.sm { padding: 18px 14px; border-radius: 12px; display: flex; gap: 10px; text-align: left; justify-content: flex-start; font-size: 13.5px; }

/* ---------- board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.colm { background: var(--sunk); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 160px; scroll-snap-align: start; border: 1px solid transparent; transition: background .2s, border-color .2s, box-shadow .2s; }
body.dragging-on .colm { border-color: var(--line2); border-style: dashed; }
.colm.over { background: var(--tint); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.colm h3 { margin: 2px 4px 2px; font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.colm h3 > span:first-child { display: flex; align-items: center; gap: 7px; }
.colm h3 .c { background: var(--surface); border-radius: 99px; padding: 1px 8px; }
.cards { display: flex; flex-direction: column; gap: 8px; }
.kc { background: var(--raise); border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px; display: grid; gap: 4px; cursor: grab; font-size: 14px; box-shadow: var(--sh1); transition: transform .18s var(--ease), box-shadow .18s, border-color .15s, opacity .15s; }
.kc:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh2); }
.kc:active { cursor: grabbing; }
.kc.dragging { opacity: .35; transform: rotate(1.5deg) scale(.98); }
.kc.hot { border-left: 3px solid var(--bad); }
.kc .t { font-weight: 500; line-height: 1.3; }
.kc .s { color: var(--muted); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.qa { border: 1px dashed transparent; background: none; border-radius: 11px; padding: 7px; color: var(--faint); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all .15s; }
.qa:hover { border-color: var(--line2); color: var(--accent); background: var(--surface); }

/* ---------- cards / dashboard ---------- */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; box-shadow: var(--sh1); }
.card h2 { margin: 0 0 4px; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card h2 > .i { color: var(--accent); }
.card h2 a { margin-left: auto; font-size: 12.5px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.card h2 a:hover { text-decoration: underline; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
@media (max-width: 1180px) { .c4 { grid-column: span 6; } .c5, .c7 { grid-column: span 12; } }
@media (max-width: 820px) { .c3, .c4, .c6, .c8 { grid-column: span 12; } }
.li { all: unset; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 11px; font-size: 14px; cursor: pointer; transition: background .12s, transform .15s var(--ease); }
.li:hover { background: var(--tint); } .li:active { transform: scale(.99); }
.li:focus-visible { outline: 2px solid var(--accent); }
.lt { display: grid; min-width: 0; } .lt > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lt small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note { font-size: 13px; color: var(--warn); background: var(--warn-bg); border-radius: 10px; padding: 7px 10px; display: flex; align-items: center; gap: 4px; text-decoration: none; }
.note.lnk { color: var(--ok); background: var(--ok-bg); }
.bar { display: grid; grid-template-columns: 112px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 13px; color: var(--ink); text-decoration: none; padding: 3px 0; }
.bt { height: 10px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.bt i { display: block; height: 100%; width: var(--w); min-width: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); transform-origin: left; }
#page.enter .bt i { animation: barin 1s var(--ease) both .25s; }
@keyframes barin { from { transform: scaleX(0); } }
.bar .n { font-family: var(--mono); text-align: right; color: var(--muted); }
.stack { display: flex; gap: 3px; height: 12px; border-radius: 99px; overflow: hidden; }
.stack i { display: block; min-width: 6px; background: var(--plain); }
.stack i.ok { background: var(--ok); } .stack i.mid { background: var(--warn); } .stack i.bad { background: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 3px; background: var(--plain); } .legend i.ok { background: var(--ok); } .legend i.mid { background: var(--warn); } .legend i.bad { background: var(--bad); }

/* hero */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px 28px; padding: 26px 28px 22px; margin-bottom: 14px; border-radius: 26px; color: var(--nav-ink); background: #0b1d17; box-shadow: var(--sh2); isolation: isolate; color-scheme: dark; }
.hero::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: radial-gradient(30% 40% at 20% 30%, rgba(143, 208, 180, .30), transparent 70%), radial-gradient(28% 35% at 80% 20%, rgba(217, 240, 196, .14), transparent 70%), radial-gradient(35% 40% at 60% 100%, rgba(63, 138, 112, .45), transparent 70%); filter: blur(20px); animation: drift 22s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.eyebrow { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8fd0b4; }
.hero h1 { margin: 6px 0 6px; font: 400 clamp(32px, 4.4vw, 52px)/1.02 var(--display); letter-spacing: -.015em; }
.hero p { margin: 0; color: #b9c6bf; max-width: 52ch; }
.hero-b { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-k { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.hero-k a { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); color: inherit; text-decoration: none; transition: background .2s, transform .2s var(--ease), border-color .2s; }
.hero-k a:hover { background: rgba(255, 255, 255, .09); border-color: rgba(143, 208, 180, .4); transform: translateY(-2px); }
.hero-k b { font: 400 38px/1 var(--display); color: var(--lumen); font-variant-numeric: tabular-nums; }
.hero-k span { font-size: 12.5px; color: #9fb0a8; }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 18px; } }
.tl { grid-column: 1 / -1; position: relative; height: 92px; margin: 4px 10px 0; }
.tl-track { position: absolute; left: 0; right: 0; top: 46px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.tl-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #3f8a70, #d9f0c4); transform-origin: left; }
#page.enter .tl-track i { animation: barin 1.4s var(--ease) both .3s; }
.tl-m { position: absolute; top: 0; bottom: 0; width: 0; }
.tl-m .dot { position: absolute; top: 42px; left: -6px; width: 12px; height: 12px; background: #0b1d17; border: 2px solid #8fd0b4; }
.tl-m.done .dot { background: #8fd0b4; }
.tl-l { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; font: 500 11px var(--mono); color: #9fb0a8; text-align: center; display: grid; }
.tl-l b { font: 500 12px var(--sans); color: var(--nav-ink); }
.tl-m.up .tl-l { bottom: 58px; } .tl-m.dn .tl-l { top: 60px; }
.tl-m.l .tl-l { transform: translateX(-15%); } .tl-m.r .tl-l { transform: translateX(-88%); }
.tl-now { position: absolute; top: 42px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #d9f0c4; box-shadow: 0 0 0 0 rgba(217, 240, 196, .6); animation: now 2.4s infinite; }
.tl-now span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@keyframes now { 0% { box-shadow: 0 0 0 0 rgba(217, 240, 196, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(217, 240, 196, 0); } }
@media (max-width: 640px) { .tl-l { font-size: 9.5px; } .tl-l b { font-size: 10.5px; } .tld, .hero kbd { display: none; } }

/* links */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.links.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.lk { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--bg); transition: border-color .15s, transform .18s var(--ease), box-shadow .18s; }
.lk:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh2); }
.lk > span:nth-child(2) { flex: 1; min-width: 0; display: grid; } .lk b { font-weight: 600; font-size: 14px; } .lk small { color: var(--muted); font-size: 12.5px; }
.lk > .i { color: var(--faint); }
.lki { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ok-bg); color: var(--accent); flex: none; }

/* ---------- company map ---------- */
.org { display: flex; justify-content: center; margin: 4px 0 0; position: relative; }
.org::after { content: ""; position: absolute; left: 50%; bottom: -18px; height: 18px; border-left: 2px solid var(--line2); }
.org-root { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 18px; background: var(--nav); color: var(--nav-ink); box-shadow: var(--sh2); }
.org-root img { width: 34px; height: 34px; }
.org-root b { display: block; font: 400 20px/1.1 var(--display); } .org-root small { color: var(--nav-muted); font-size: 12.5px; }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 2px solid var(--line2); border-radius: 0; }
.area { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh1); scroll-margin-top: 80px; transition: box-shadow .2s, transform .2s var(--ease); }
.area:hover { box-shadow: var(--sh2); }
.area header { display: flex; gap: 12px; align-items: flex-start; }
.area h2 { margin: 0; font: 400 22px/1.1 var(--display); } .area p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.astats { display: flex; flex-wrap: wrap; gap: 6px; }
.astats span { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 10px; border-radius: 10px; background: var(--sunk); font-size: 12.5px; color: var(--muted); }
.astats b { font: 500 15px var(--mono); color: var(--ink); }
.astats .bad { background: var(--bad-bg); color: var(--bad); } .astats .bad b { color: var(--bad); }
.amods { display: grid; gap: 4px; }
.amod { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 13px; color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s var(--ease); }
.amod:hover { background: var(--tint); border-color: var(--line); transform: translateX(2px); }
.amod > .i:first-child { color: var(--accent); }
.amod > span:nth-child(2) { flex: 1; min-width: 0; display: grid; } .amod b { font-weight: 600; font-size: 14px; } .amod small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amod .cnt { font: 500 12px var(--mono); color: var(--muted); } .amod > .i:last-child { color: var(--faint); }
.land { display: grid; gap: 12px; }
.lgh { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; } .lgh span { opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--raise); border-radius: 99px; padding: 5px 11px; font-size: 13px; color: var(--ink); transition: border-color .15s, transform .15s var(--ease), box-shadow .15s; max-width: 100%; }
.chip:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--sh1); }
.chip.sm { padding: 3px 9px; font-size: 12px; }
.plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-flow: dense; gap: 8px; }
.rt { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 92px; padding: 11px 12px; border-radius: 14px; border: 1.5px solid var(--line2); background: repeating-linear-gradient(135deg, transparent 0 10px, var(--tint) 10px 11px), var(--bg); cursor: pointer; transition: border-color .15s, transform .18s var(--ease), box-shadow .18s; }
.rt.big { grid-column: span 2; min-height: 120px; }
.rt:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh2); }
.rt.bad { border-color: var(--bad); }
.rth { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; } .rth b { font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.rts { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: auto; }
.rtl { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 520px) { .plan { grid-template-columns: 1fr 1fr; } }

/* ---------- account ---------- */
.acc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
.acc form { display: grid; gap: 12px; }
.keys { display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); }
.grid2.auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
#uf { gap: 12px; }
.code { user-select: all; font-family: var(--mono); background: var(--sunk); padding: 2px 6px; border-radius: 6px; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(3, 10, 8, .42); opacity: 0; transition: opacity .28s; backdrop-filter: blur(2px); }
.scrim.open { opacity: 1; }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(580px, 100%); background: var(--surface); box-shadow: var(--sh3); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); transform: translateX(104%); transition: transform .34s var(--ease); border-left: 1px solid var(--line); }
.drawer.open { transform: none; }
.drawer header { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 18px; border-bottom: 1px solid var(--line); }
.dh { flex: 1; min-width: 0; } .dh small { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer header h2 { margin: 1px 0 0; font: 400 23px/1.15 var(--display); overflow-wrap: anywhere; }
.drawer .body { flex: 1; overflow-y: auto; padding: 16px 18px 24px; display: grid; gap: 16px; align-content: start; overscroll-behavior: contain; }
.drawer .grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 520px) { .drawer .grid2 { grid-template-columns: minmax(0, 1fr); } .drawer { width: 100%; } }
.drawer.open .grid2 > * { animation: rise .4s var(--ease) both; }
.drawer.open .grid2 > :nth-child(n+3) { animation-delay: 40ms; } .drawer.open .grid2 > :nth-child(n+7) { animation-delay: 80ms; } .drawer.open .grid2 > :nth-child(n+11) { animation-delay: 120ms; }
.drawer footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.drawer .meta { font-size: 12.5px; color: var(--muted); }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.rel { border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: var(--bg); }
.rel h3 { margin: 2px 6px 6px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } .rel h3 span { opacity: .6; }
.relrow { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; cursor: pointer; transition: background .12s; }
.relrow:hover { background: var(--tint); } .relrow:focus-visible { outline: 2px solid var(--accent); }
.ri { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ok-bg); color: var(--accent); flex: none; }
.rt2 { flex: 1; min-width: 0; display: grid; } .rt2 b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rt2 small { color: var(--muted); font-size: 12px; }
.relrow > .i { color: var(--faint); }
.mic { border: 0; background: none; color: var(--accent); font-size: 12.5px; padding: 2px 0; justify-self: start; display: inline-flex; align-items: center; gap: 4px; }
.mic.on { color: var(--bad); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .45; } }

/* ---------- palette ---------- */
.pal-wrap { position: fixed; inset: 0; z-index: 70; display: grid; justify-items: center; align-items: start; padding: max(10vh, 20px) 14px 14px; background: rgba(3, 10, 8, .45); backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s; }
.pal-wrap.open { opacity: 1; }
.pal { width: min(660px, 100%); max-height: min(72vh, 620px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh3); overflow: hidden; transform: translateY(-8px) scale(.98); transition: transform .26s var(--spring); }
.pal-wrap.open .pal { transform: none; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-in input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 17px; color: var(--ink); }
.pal-l { overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.pal-g { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 4px; }
.pal-r { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; cursor: pointer; }
.pal-r.on { background: var(--tint); box-shadow: inset 0 0 0 1px var(--line2); }
.pi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--sunk); color: var(--muted); flex: none; transition: background .12s, color .12s; }
.pal-r.on .pi { background: var(--accent); color: var(--on-accent); }
.pt { flex: 1; min-width: 0; display: grid; } .pt b { font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pt small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-r > .i { color: var(--accent); }
.pal-e { padding: 26px; text-align: center; color: var(--muted); }
.pal-f { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); background: var(--bg); }
.pal-f kbd { margin-right: 2px; }
@media (max-width: 600px) { .pal-wrap { padding-top: 12px; } .pal { max-height: 80vh; } .pal-f span:last-child { display: none; } }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px) scale(.96); opacity: 0; background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 14px; font-size: 14px; max-width: min(92vw, 560px); box-shadow: var(--sh3); transition: transform .3s var(--spring), opacity .2s; }
.toast.in { transform: translate(-50%, 0); opacity: 1; }
.toast.ok::before { content: "✓  "; color: #8fd0b4; } .toast.bad { background: var(--bad); color: #fff; }
@media (max-width: 900px) { .toast { bottom: calc(92px + env(safe-area-inset-bottom)); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- files, mine ---------- */
.files { border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: var(--bg); display: grid; gap: 6px; }
.files h3 { margin: 2px 6px 2px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } .files h3 span { opacity: .6; }
.frow { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 11px; transition: background .12s; } .frow:hover { background: var(--tint); }
.fx { width: 38px; height: 30px; flex: none; border-radius: 8px; display: grid; place-items: center; font: 600 9.5px var(--mono); background: var(--ok-bg); color: var(--accent); }
.fn { flex: 1; min-width: 0; display: grid; text-decoration: none; color: var(--ink); } .fn b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fn small { color: var(--muted); font-size: 12px; }
.fn:hover b { color: var(--accent); text-decoration: underline; }
.ib.sm { width: 32px; height: 32px; color: var(--muted); } .ib.armed { background: var(--bad); color: #fff; }
.drop { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1.5px dashed var(--line2); border-radius: 12px; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; position: relative; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--tint); color: var(--accent); }
.drop.busy { opacity: .6; pointer-events: none; } .drop.busy .i { animation: blink .8s infinite; }
.drop span { display: grid; } .drop b { color: var(--ink); font-weight: 500; font-size: 14px; } .drop small { font-size: 12px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--accent); }
.fc { display: inline-flex; align-items: center; gap: 2px; font: 500 11px var(--mono); color: var(--muted); }
.btn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mine h2 .muted { font-weight: 400; margin-left: 4px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: 24px; }

/* ---------- bell + popover ---------- */
.bellw { position: relative; }
.bn { position: absolute; top: 3px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: #c4513a; color: #fff; font: 600 10px/17px var(--mono); text-align: center; box-shadow: 0 0 0 2px var(--bg); animation: pop .4s var(--spring); }
@keyframes pop { from { transform: scale(0); } }
.pop { position: absolute; right: -40px; top: 46px; width: min(400px, calc(100vw - 24px)); max-height: min(70vh, 560px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh3); overflow: hidden; z-index: 60; animation: rise .22s var(--ease); }
.poph { display: grid; padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
.popl { overflow-y: auto; padding: 6px; }
.popr { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; cursor: pointer; font-size: 13.5px; line-height: 1.35; }
.popr:hover { background: var(--tint); } .popr[disabled] { cursor: default; opacity: .7; }
.popr.new { background: color-mix(in srgb, var(--tint) 100%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.popr i { font-style: normal; color: var(--ink); font-weight: 500; } .popr small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.popf { padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; text-decoration: none; display: flex; align-items: center; gap: 2px; }
.ib.bord { border-color: var(--line); background: var(--raise); box-shadow: var(--sh1); border-radius: 99px; }

/* ---------- comments ---------- */
.cmts { border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: var(--bg); display: grid; gap: 8px; }
.cmts h3 { margin: 2px 6px 2px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; } .cmts h3 span { opacity: .6; }
.cm { display: flex; gap: 10px; padding: 4px 6px; animation: rise .3s var(--ease); }
.cm .av.sm { margin: 2px 0 0; }
.cm > div { flex: 1; min-width: 0; }
.cmh { display: flex; align-items: baseline; gap: 8px; } .cmh b { font-size: 13.5px; font-weight: 600; } .cmh small { color: var(--faint); font-size: 12px; }
.cm p { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 8px 11px; }
.cmx { margin-left: auto; border: 0; background: none; color: var(--faint); width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; }
.cmx:hover { background: var(--tint); color: var(--bad); } .cmx.armed { background: var(--bad); color: #fff; }
.cmin { display: flex; gap: 8px; align-items: flex-end; }
.cmin textarea { flex: 1; min-width: 0; resize: vertical; min-height: 42px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 9px 11px; font-size: 14px; color: var(--ink); }
.cmin textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--glow); }

/* ---------- calendar ---------- */
.calwrap { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh1); padding: 14px; margin-bottom: 14px; }
.calh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 4px 10px; }
.calh h2 { margin: 0; font: 400 26px/1.1 var(--display); text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wd { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 2px 6px 4px; }
.cd { min-height: 104px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); padding: 5px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cd.out { background: transparent; border-color: transparent; }
.cd.wk { background: color-mix(in srgb, var(--sunk) 60%, var(--bg)); }
.cd.past { opacity: .62; }
.cd.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.dn { font: 500 12px var(--mono); color: var(--muted); padding: 1px 4px; align-self: flex-start; border-radius: 6px; }
.cd.today .dn { background: var(--accent); color: var(--on-accent); }
.ev { all: unset; box-sizing: border-box; display: block; font-size: 11.5px; line-height: 1.25; padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; border-left: 3px solid; background: var(--surface); transition: transform .12s var(--ease); }
.ev:hover { transform: translateX(2px); }
.more { all: unset; font-size: 11px; color: var(--accent); padding: 1px 6px; cursor: pointer; }
.k1 { border-color: #c4513a !important; } .k2 { border-color: #3f8a70 !important; } .k3 { border-color: #c98a2b !important; } .k4 { border-color: #4a7bb7 !important; } .k5 { border-color: #7a9a3a !important; } .k6 { border-color: #8a5fb0 !important; } .k7 { border-color: #8a7f6a !important; }
.legend i.k1 { background: #c4513a; } .legend i.k2 { background: #3f8a70; } .legend i.k3 { background: #c98a2b; } .legend i.k4 { background: #4a7bb7; } .legend i.k5 { background: #7a9a3a; } .legend i.k6 { background: #8a5fb0; } .legend i.k7 { background: #8a7f6a; }
.evd { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 7px; border: 4px solid; vertical-align: 1px; box-sizing: border-box; }
.ag { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.ag:first-of-type { border-top: 0; }
.agd { display: grid; align-content: start; padding-top: 8px; } .agd b { font-size: 14px; } .agd small { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { .calwrap { padding: 10px 8px; } .cd { min-height: 54px; padding: 3px; } .ev { font-size: 0; height: 6px; padding: 0; border-left-width: 0; border-top: 6px solid; border-radius: 3px; } .more { font-size: 10px; padding: 0 2px; } .ag { grid-template-columns: 1fr; gap: 0; } }

/* ---------- dialog ---------- */
.dlg { width: min(560px, 100%); }
.dlgh { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.dlgh > div { flex: 1; display: grid; gap: 2px; } .dlgh b { font: 400 21px/1.15 var(--display); } .dlgh small { color: var(--muted); font-size: 13px; }
.dlgb { padding: 16px; display: grid; gap: 12px; } .dlgb p { margin: 0; font-size: 14px; color: var(--muted); } .dlgb p b { color: var(--ink); }
.dlgb .row { display: flex; flex-wrap: wrap; gap: 8px; } .dlgb .btn.danger { margin-left: 0; }

@media (max-width: 900px) { .pop { position: fixed; right: 12px; left: 12px; width: auto; top: calc(56px + env(safe-area-inset-top)); } }

/* ================= v8: calmer palette, light navigation, simple mode ================= */
:root {
  --bg: #f6f5f1; --bg2: #efede7; --surface: #ffffff; --raise: #ffffff; --sunk: #efede8; --ink: #1b1f1d; --muted: #4f5853; --faint: #7d857f; --line: #e3e0d8; --line2: #d2cec4;
  --accent: #2b6e5a; --accent2: #36806a; --on-accent: #ffffff; --glow: rgba(43, 110, 90, .2); --tint: rgba(43, 110, 90, .07);
  --ok: #2b6e5a; --ok-bg: #e4f0ea; --plain: #cdc9be;
  --nav-bg: #fbfaf7; --nav-ink: #1b1f1d; --nav-muted: #4f5853; --nav-hi: rgba(27, 31, 29, .05); --nav-on: #e4f0ea; --nav-on-ink: #1d5a49; --nav-line: #e5e2da; --nav-grp: #6f7772; --nav-bar: #2b6e5a;
  --sun: #e9b64e;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #121413; --bg2: #161918; --surface: #1b1e1d; --raise: #222624; --sunk: #161918; --ink: #eeeeea; --muted: #b6bcb8; --faint: #808884; --line: #2b2f2d; --line2: #373c39;
  --accent: #7cc7a8; --accent2: #9ad6bc; --on-accent: #0c1411; --glow: rgba(124, 199, 168, .22); --tint: rgba(124, 199, 168, .08); --ok: #7cc7a8; --ok-bg: #1d2f28; --plain: #414744;
  --nav-bg: #161918; --nav-ink: #eeeeea; --nav-muted: #b6bcb8; --nav-hi: rgba(255, 255, 255, .05); --nav-on: rgba(124, 199, 168, .15); --nav-on-ink: #c4ecd9; --nav-line: #2b2f2d; --nav-grp: #8a928e; --nav-bar: #7cc7a8; } }
:root[data-theme="dark"] {
  --bg: #121413; --bg2: #161918; --surface: #1b1e1d; --raise: #222624; --sunk: #161918; --ink: #eeeeea; --muted: #b6bcb8; --faint: #808884; --line: #2b2f2d; --line2: #373c39;
  --accent: #7cc7a8; --accent2: #9ad6bc; --on-accent: #0c1411; --glow: rgba(124, 199, 168, .22); --tint: rgba(124, 199, 168, .08); --ok: #7cc7a8; --ok-bg: #1d2f28; --plain: #414744;
  --nav-bg: #161918; --nav-ink: #eeeeea; --nav-muted: #b6bcb8; --nav-hi: rgba(255, 255, 255, .05); --nav-on: rgba(124, 199, 168, .15); --nav-on-ink: #c4ecd9; --nav-line: #2b2f2d; --nav-grp: #8a928e; --nav-bar: #7cc7a8;
}
body { background: var(--bg); }
.btn.primary { background: var(--accent); }
.btn.primary:hover { background: var(--accent2); }

/* sidebar: light, quiet */
nav.side { background: var(--nav-bg); color: var(--nav-ink); border-right: 1px solid var(--nav-line); }
nav.side .logo b { font: 400 20px/1.05 var(--display); letter-spacing: 0; text-transform: none; color: var(--nav-ink); }
nav.side .logo span { display: block; font: 500 12px var(--sans); color: var(--nav-muted); }
nav.side .logo img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 1px var(--nav-line); }
.jump { border-color: var(--nav-line); background: var(--surface); color: var(--nav-muted); }
.jump:hover { background: var(--surface); border-color: var(--accent); color: var(--nav-ink); }
.jump kbd { color: var(--faint); border-color: var(--line2); }
.navsc { scrollbar-color: var(--line2) transparent; }
nav.side a[data-nav] { color: var(--nav-muted); }
nav.side a[data-nav]:hover { background: var(--nav-hi); color: var(--nav-ink); }
nav.side a[aria-current="page"] { background: var(--nav-on); color: var(--nav-on-ink); font-weight: 500; }
nav.side a[aria-current="page"]::before { background: var(--nav-bar); }
nav.side a .n { background: var(--sunk); color: var(--muted); }
nav.side a .n.alert { background: var(--bad); color: #fff; }
nav.side .grp { color: var(--nav-grp); }
nav.side .me { border-top-color: var(--nav-line); }
nav.side .who { color: var(--nav-ink); }
nav.side .who:hover, nav.side .who[aria-current="page"] { background: var(--nav-hi); }
nav.side .ib { color: var(--nav-muted); } nav.side .ib:hover { background: var(--nav-hi); color: var(--nav-ink); }
.av { background: linear-gradient(135deg, #9ad6bc, #2b6e5a); color: #fff; }
@media (max-width: 900px) {
  .navscrim { background: rgba(20, 24, 22, .35); }
  .tabbar { background: color-mix(in srgb, var(--nav-bg) 94%, transparent); border: 1px solid var(--nav-line); box-shadow: 0 12px 34px -12px rgba(20, 24, 22, .3); }
  .tabbar a, .tabbar button { color: var(--nav-muted); font-size: 12px; }
  .tabbar [aria-current="page"] { color: var(--nav-on-ink); background: var(--nav-on); }
  .tabbar #tbNew .i { background: var(--accent); color: var(--on-accent); }
}

/* less green: neutral icon plates, green stays for actions and status */
.badge { background: var(--sunk); color: var(--ink); }
.lki { background: var(--sunk); color: var(--ink); }
.toast.ok::before { color: #9ad6bc; }

/* full dashboard hero: light card instead of a dark slab */
.hero { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh1); }
.hero::before { background: radial-gradient(30% 45% at 12% 20%, rgba(140, 201, 173, .22), transparent 70%), radial-gradient(26% 40% at 88% 10%, rgba(233, 182, 78, .14), transparent 70%); }
.hero::after { display: none; }
.eyebrow { color: var(--accent); }
.hero p { color: var(--muted); }
.hero-k a { background: var(--bg); border-color: var(--line); }
.hero-k a:hover { background: var(--bg); border-color: var(--accent); }
.hero-k b { color: var(--ink); }
.hero-k span { color: var(--muted); }
.btn.glass { background: var(--raise); color: var(--ink); border-color: var(--line); backdrop-filter: none; box-shadow: var(--sh1); }
.btn.glass:hover { background: var(--raise); border-color: var(--accent); }
.btn.glass kbd { color: var(--faint); border-color: var(--line2); }
.tl-track { background: var(--sunk); } .tl-track i { background: linear-gradient(90deg, var(--accent), #8cc9ad); }
.tl-m .dot { background: var(--surface); border-color: var(--accent); } .tl-m.done .dot { background: var(--accent); }
.tl-l { color: var(--muted); } .tl-l b { color: var(--ink); }
.tl-now { background: var(--sun); }
.org-root { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh1); } .org-root small { color: var(--muted); }

/* login: bright and friendly */
.login { background: var(--bg); color-scheme: light; }
.aurora { background: radial-gradient(38% 34% at 28% 28%, rgba(140, 201, 173, .35), transparent 70%), radial-gradient(30% 30% at 74% 66%, rgba(233, 182, 78, .2), transparent 70%); }
.lcard { background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--ink); border-color: var(--line); box-shadow: 0 30px 70px -30px rgba(20, 40, 32, .35); }
.lcard p, .lcard .fld { color: var(--muted); }
.lcard .fld input { background: var(--bg); border-color: var(--line2); color: var(--ink); font-size: 16px; padding: 11px 12px; }
.lcard .btn.primary { background: var(--accent); color: var(--on-accent); }
.lfoot { color: var(--faint); }
.brandrow { color: var(--ink); font: 400 20px var(--display); letter-spacing: 0; text-transform: none; }
.brandrow img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .login { color-scheme: dark; } }

/* ---------- simple mode: bigger text, bigger targets, plain words ---------- */
body.simple { font-size: 16px; line-height: 1.55; }
body.simple .small, body.simple .lt small, body.simple .kc .s, body.simple .legend { font-size: 14px; }
body.simple .li { font-size: 16px; padding: 11px 12px; margin: 0 -12px; }
body.simple .card h2 { font-size: 17px; }
body.simple .card h2 a { font-size: 14.5px; }
body.simple .ph .sub { font-size: 16px; }
body.simple .crumbs { font-size: 15px; }
body.simple .btn { min-height: 44px; font-size: 15.5px; padding: 0 18px; }
body.simple .btn.sm { min-height: 40px; font-size: 15px; }
body.simple .ib { width: 44px; height: 44px; }
body.simple .fld { font-size: 14.5px; gap: 6px; }
body.simple .fld input, body.simple .fld select, body.simple .fld textarea { font-size: 16.5px; padding: 11px 12px; }
body.simple table { font-size: 15.5px; } body.simple td.num { font-size: 14.5px; }
body.simple .kc { font-size: 15.5px; padding: 13px 14px; }
body.simple .seg button, body.simple .fchips button { font-size: 15px; padding: 8px 15px; }
body.simple .search { width: 260px; min-height: 44px; } body.simple .search input { font-size: 16px; }
body.simple nav.side { width: auto; }
body.simple nav.side a[data-nav] { font-size: 15.5px; padding: 10px 12px; min-height: 44px; gap: 12px; }
body.simple nav.side .grp { font: 600 12.5px var(--sans); letter-spacing: .02em; text-transform: none; padding: 16px 12px 6px; }
body.simple nav.side .sub { display: grid; gap: 1px; margin: 2px 0 6px 22px; padding-left: 8px; border-left: 2px solid var(--nav-line); animation: rise .25s var(--ease); }
body.simple nav.side .sub a[data-nav] { font-size: 14.5px; min-height: 38px; padding: 7px 10px; }
body.simple .jump { font-size: 15.5px; padding: 11px 12px; } body.simple .jump kbd, body.simple .hero kbd { display: none; }
body.simple nav.side .wn b { font-size: 15px; } body.simple nav.side .wn small { font-size: 13px; }
body.simple .pill { font-size: 13px; }

.backb { gap: 6px; padding: 0 14px 0 10px; box-shadow: none; }
.backb .i { color: var(--accent); }
@media (max-width: 900px) { .backb span { display: none; } .backb { padding: 0; width: 44px; } }

.hello { padding: 8px 2px 4px; }
.hello h1 { margin: 4px 0 6px; font: 400 clamp(32px, 4.6vw, 48px)/1.05 var(--display); letter-spacing: -.01em; }
.hello p { margin: 0; font-size: 18px; color: var(--muted); max-width: 60ch; }
.warnline { color: var(--bad); font-weight: 600; }
.sech { font: 400 24px/1.2 var(--display); margin: 26px 0 12px; }
.acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; margin-bottom: 18px; }
.act { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 14px; min-height: 84px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh1); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .18s var(--ease), box-shadow .2s; }
.act:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh2); }
.act:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.act .ai { width: 52px; height: 52px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--sunk); color: var(--ink); }
.act.pri { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.act.pri .ai { background: rgba(255, 255, 255, .16); color: inherit; } .act.pri small { color: inherit; opacity: .85; }
.act .at { flex: 1; display: grid; gap: 2px; } .act b { font-size: 17px; font-weight: 600; } .act small { font-size: 14.5px; color: var(--muted); }
.act > .i { color: var(--faint); } .act.pri > .i { color: inherit; }
.more { display: flex; justify-content: center; margin: 22px 0 6px; }
.intro { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(180deg, var(--ok-bg), var(--surface) 70%); margin-bottom: 4px; transition: opacity .25s, transform .25s var(--ease); }
.intro.bye { opacity: 0; transform: translateY(-6px); }
.steps { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; }
.steps li > b { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.steps strong { display: block; }
.intro .row { display: flex; flex-wrap: wrap; gap: 8px; }
.lead { font-size: 17px; color: var(--muted); margin: -4px 0 14px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; gap: 16px; padding: 18px; min-height: 100px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh1); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .18s var(--ease), box-shadow .2s; }
.tile:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh2); }
.tile .ti { width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; background: var(--sunk); }
.tile .tt { flex: 1; min-width: 0; display: grid; gap: 3px; } .tile b { font-size: 18px; font-weight: 600; } .tile small { font-size: 15px; color: var(--muted); line-height: 1.4; }
.tile .tc { display: grid; text-align: right; font: 400 26px/1 var(--display); } .tile .tc small { font: 500 11.5px var(--sans); color: var(--faint); }
.tile > .i { color: var(--faint); }
#page > .astats { margin-top: 16px; }
.hint { display: flex; align-items: center; gap: 8px; margin: -6px 0 14px; font-size: 15px; color: var(--muted); }
.hint .i { color: var(--accent); flex: none; }
.gloss { margin: 0; display: grid; gap: 10px; } .gloss dt { font-weight: 600; } .gloss dd { margin: 2px 0 0; color: var(--muted); }
.tips { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink); }
body.simple .shell { grid-template-columns: 276px minmax(0, 1fr); } @media (max-width: 900px) { body.simple .shell { grid-template-columns: minmax(0, 1fr); } }
.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; } @media (max-width: 640px) { .steps { grid-template-columns: minmax(0, 1fr); } }
body.simple .colm h3 { font: 600 14.5px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); } body.simple .pill { font-family: var(--sans); letter-spacing: 0; } body.simple .tbl-wrap th button { font-size: 14px; }
body.simple .rel h3, body.simple .files h3, body.simple .cmts h3, body.simple .drawer .dh small { font: 600 13.5px var(--sans); letter-spacing: 0; text-transform: none; }
.hint { align-items: flex-start; } .hint .i { margin-top: 3px; } @media (max-width: 900px) { body.simple #voice { display: none; } body.simple .top { gap: 4px; } }
