/* ==========================================================================
   Goings HQ
   The Goings app's own design system: black canvas, layers told apart by lightness
   (surface → surface2 → surface3), Electric Blue for the one primary action, no glows,
   no outlines except focus. Inter for everything. Light theme mirrors it.
   ========================================================================== */
@font-face { font-family: "Inter"; src: url("/assets/fonts/Inter-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --accent: #286BFF; --accent-press: #1F55D6; --accent-ink: #fff;
  --danger: #FF453A; --green: #30D158; --amber: #FF9F0A; --yellow: #FFD60A; --purple: #BF5AF2; --pink: #FF375F;
  --r-s: 10px; --r-m: 14px; --r-l: 20px; --r-xl: 28px;
  --bar-h: 60px;
  --ease: cubic-bezier(.2, .75, .15, 1);
  --t: 180ms;
}
[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #000000; --surface: #141414; --surface2: #262626; --surface3: #333333; --surface4: #3d3d3d;
  --ink: #ffffff; --muted: rgba(255,255,255,.62); --faint: rgba(255,255,255,.38); --line: rgba(255,255,255,.09);
  --scrim: rgba(0,0,0,.6); --float: #1c1c1e; --shadow: 0 18px 50px -12px rgba(0,0,0,.7);
  --accent-soft: rgba(40,107,255,.18); --link: #6E9BFF;
}
[data-theme="light"] {
  color-scheme: light;
  --canvas: #F2F2F7; --surface: #FFFFFF; --surface2: #EBEBED; --surface3: #DFDFE2; --surface4: #D1D1D6;
  --ink: #0A0A0A; --muted: rgba(10,10,10,.62); --faint: rgba(10,10,10,.4); --line: rgba(10,10,10,.09);
  --scrim: rgba(0,0,0,.3); --float: #FFFFFF; --shadow: 0 18px 50px -14px rgba(0,0,0,.28);
  --accent-soft: rgba(40,107,255,.12); --link: #1F55D6;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img, svg { display: block; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.i { flex: none; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd { font: 600 11px/1 var(--font); padding: 3px 6px; border-radius: 6px; background: var(--surface3); color: var(--muted); }
#root { height: 100%; }
* { scrollbar-width: thin; scrollbar-color: var(--surface3) transparent; }

.boot { height: 100%; display: grid; place-items: center; }
.boot img { border-radius: 10px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 12px; background: var(--surface2); color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; transition: background-color var(--t) ease, transform 120ms ease, opacity var(--t); user-select: none; }
.btn:hover { background: var(--surface3); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-press); }
.btn.danger { background: rgba(255,69,58,.16); color: #FF6961; }
.btn.danger:hover { background: rgba(255,69,58,.26); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface2); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn.big { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.ibtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); transition: background-color var(--t); flex: none; }
.ibtn:hover { background: var(--surface2); }
.ibtn.tiny { width: 22px; height: 22px; }
.ibtn.solid { background: var(--surface2); }

/* ---------- form controls ---------- */
input[type="text"], input[type="password"], input[type="search"], input[type="email"], input[type="url"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="time"], input:not([type]), textarea, select {
  width: 100%; min-height: 42px; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--surface2); color: var(--ink); outline: none; transition: box-shadow var(--t), background-color var(--t); }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { box-shadow: inset 0 0 0 2px var(--accent); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 3.5 5 7l3.5-3.5' fill='none' stroke='%23999' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 11px; padding-right: 32px; }
::placeholder { color: var(--faint); }
.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field__hint { font-size: 12px; color: var(--faint); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form { display: grid; gap: 14px; }
.form-err { padding: 10px 12px; border-radius: 10px; background: rgba(255,69,58,.14); color: #FF6961; font-size: 14px; }
.inline-input { background: transparent !important; padding: 4px 0 !important; min-height: 0 !important; border-radius: 6px !important; }
.inline-input:focus { box-shadow: none !important; background: var(--surface2) !important; padding: 4px 8px !important; }

/* ---------- segmented control, chips ---------- */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface2); gap: 2px; }
.seg button { min-height: 32px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); transition: background-color var(--t), color var(--t); }
.seg button.on { background: var(--surface4); color: var(--ink); }
[data-theme="light"] .seg button.on { background: var(--surface); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--surface2); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.warn { background: rgba(255,159,10,.16); color: #FFB340; }
.chip.green { background: rgba(48,209,88,.16); color: #4ADE80; }
.chip.red { background: rgba(255,69,58,.16); color: #FF6961; }
.chip.blue { background: var(--accent-soft); color: var(--link); }
.chip.purple { background: rgba(191,90,242,.16); color: #D08BFF; }
.chip.yellow { background: rgba(255,214,10,.16); color: #FFD60A; }
[data-theme="light"] .chip.warn { color: #B25E00; } [data-theme="light"] .chip.green { color: #1F8A3E; } [data-theme="light"] .chip.red { color: #C4271E; } [data-theme="light"] .chip.yellow { color: #8A6D00; } [data-theme="light"] .chip.purple { color: #8E3BC0; }
.chip.add { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--surface3); cursor: pointer; }
.chip.add:hover { color: var(--ink); background: var(--surface2); }
button.chip { cursor: pointer; } button.chip:hover { color: var(--ink); }
button.chip.on { background: var(--ink); color: var(--canvas); }

/* ---------- avatars ---------- */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 700; letter-spacing: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.avatars { display: inline-flex; }
.avatars .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatars .avatar + .avatar { margin-left: -8px; }

/* ---------- gate (sign in) ---------- */
.gate { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 20px; text-align: center; overflow: auto; }
.gate__mark { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: 6px; }
.gate h1 { font-size: 40px; letter-spacing: -0.04em; }
.gate p { max-width: 40ch; }
.gate .btn { margin-top: 8px; }
.gate__msg { max-width: 460px; padding: 12px 16px; border-radius: 14px; background: var(--surface2); color: var(--ink); font-size: 14px; }
.gate__people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; width: min(100%, 760px); }
.gate__person { display: grid; justify-items: center; gap: 8px; padding: 22px 12px; border-radius: 20px; background: var(--surface); transition: background-color var(--t), transform 160ms var(--ease); }
.gate__person:hover { background: var(--surface2); transform: translateY(-2px); }
.gate__person b { font-size: 15px; } .gate__person span { font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .gate__people { grid-template-columns: 1fr 1fr; } }

/* ---------- home ---------- */
.home { position: fixed; inset: 0; display: flex; flex-direction: column; }
.topbar { position: relative; z-index: 5; display: flex; align-items: center; gap: 12px; height: var(--bar-h); padding: 0 16px; padding-top: env(safe-area-inset-top); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; letter-spacing: -0.01em; }
.brand .i { color: var(--accent); }
.brand b { font-weight: 800; }
.topbar__end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.searchbtn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 14px; transition: background-color var(--t); }
.searchbtn:hover { background: var(--surface2); color: var(--ink); }
.mebtn { border-radius: 50%; padding: 4px; } .mebtn:hover { background: var(--surface2); }
.home__hint { position: absolute; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); text-align: center; font-size: 13px; color: var(--faint); pointer-events: none; padding: 0 20px; }
@media (max-width: 640px) { .searchbtn span, .searchbtn kbd { display: none; } .searchbtn { width: 40px; padding: 0; justify-content: center; } }

/* the honeycomb */
.launcher { position: relative; flex: 1; min-height: 0; }
.hive { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.hive.dragging { cursor: grabbing; }
.hex { position: absolute; left: 0; top: 0; width: var(--d); height: var(--d); transform-origin: 50% 50%; will-change: transform, opacity; outline: none; }
.hex__disc { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--c); color: var(--ink); transition: transform 220ms var(--ease); }
.hex .hex__glyph { display: grid; place-items: center; color: var(--ink, #fff); }
.hex__disc { color: var(--ink); }
.hex .hex__disc .i { color: var(--ink); }
.hex:hover .hex__disc { transform: scale(1.06); }
.hex:active .hex__disc { transform: scale(.94); }
.hex:focus-visible .hex__disc { box-shadow: 0 0 0 3px var(--canvas), 0 0 0 6px var(--accent); }
.hex__label { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); z-index: 3; padding: 4px 9px; border-radius: 8px; background: var(--float); box-shadow: var(--shadow); font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 160ms; }
.hex:hover .hex__label, .hex:focus-visible .hex__label { opacity: 1; }
.hex:hover, .hex:focus-visible { z-index: 2; }
.hive.dragging .hex__label { opacity: 0; }
.hex__badge { position: absolute; top: 0; right: 0; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #FF3B30; color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--canvas); }
.hex__badge[hidden] { display: none; }
.hex .glyph-date, .applist__disc .glyph-date { display: grid; justify-items: center; line-height: 1; color: #fff; }
.glyph-date__day { font-weight: 700; letter-spacing: .04em; opacity: .9; }
.glyph-date__num { font-weight: 300; letter-spacing: -0.04em; margin-top: 1px; }
.hive__caption { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; text-align: center; pointer-events: none; width: min(92vw, 520px); }
.hive__caption b { font-size: 17px; letter-spacing: -0.01em; }
.hive__caption span { font-size: 13px; color: var(--muted); }
.launcher.is-list .hive, .launcher.is-list .hive__caption { display: none; }
.applist { display: none; }
.launcher.is-list .applist { display: grid; gap: 4px; align-content: start; height: 100%; overflow: auto; padding: 8px 16px 80px; max-width: 720px; margin: 0 auto; }
.applist__row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; text-align: left; transition: background-color var(--t); }
.applist__row:hover { background: var(--surface); }
.applist__row > .i { color: var(--faint); }
.applist__disc { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c); color: var(--ink); flex: none; }
.applist__disc .i { color: var(--ink); }
.applist__text { flex: 1; min-width: 0; display: grid; }
.applist__text b { font-size: 16px; } .applist__text span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.applist__badge { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: #FF3B30; color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.applist__badge[hidden] { display: none; }
.clockface { border-radius: 50%; }

/* zoom transition */
.zoom { position: fixed; inset: 0; z-index: 50; pointer-events: none; }

/* ---------- app frame ---------- */
.appview { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--canvas); }
.bar { display: flex; align-items: center; gap: 10px; height: var(--bar-h); padding: 0 12px; padding-top: env(safe-area-inset-top); flex: none; }
.crown { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface2); color: var(--ink); transition: background-color var(--t), transform 160ms var(--ease); flex: none; }
.crown:hover { background: var(--surface3); transform: scale(1.05); }
.crown:active { transform: scale(.94); }
.bar__disc { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: var(--ink); flex: none; }
.bar__disc .i { color: var(--ink); }
.bar__disc .glyph-date { color: #fff; }
.bar__disc .glyph-date__day { display: none; } .bar__disc .glyph-date__num { font-size: 14px !important; font-weight: 600; margin: 0; }
.bar__title { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bar__actions { display: flex; align-items: center; gap: 6px; margin-left: 8px; min-width: 0; }
.bar__end { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.appbody { flex: 1; min-height: 0; overflow: auto; outline: none; }
.pad { padding: 8px 20px 60px; max-width: 1240px; margin: 0 auto; }
.pad.narrow { max-width: 820px; }
.pad.full { max-width: none; }
@media (max-width: 640px) { .bar__actions .btn span { display: none; } .bar__actions .btn { padding: 0 10px; } .pad { padding: 4px 14px 80px; } }

/* page headings inside apps */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 12px 0 18px; }
.ph h1 { font-size: 30px; letter-spacing: -0.035em; }
.ph p { color: var(--muted); margin-top: 4px; }
.ph__tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sec-title { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .01em; margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
.sec-title .count { color: var(--faint); font-weight: 600; }

/* surfaces */
.panel { background: var(--surface); border-radius: var(--r-l); padding: 18px; }
.panel + .panel { margin-top: 12px; }
.panel h2 { font-size: 17px; margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 10px; }
.rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.rowitem { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background-color var(--t); min-height: 48px; text-align: left; width: 100%; }
.rowitem:hover { background: var(--surface); }
.rowitem__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rowitem__main b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rowitem__main span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { display: grid; justify-items: center; gap: 8px; padding: 48px 20px; text-align: center; color: var(--muted); }
.empty__title { font-size: 17px; font-weight: 650; color: var(--ink); }
.empty p { max-width: 42ch; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ---------- modal, sheet, menu, toasts ---------- */
.modal { width: min(560px, calc(100vw - 24px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 24px; background: var(--float); color: var(--ink); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.modal[open] { animation: pop 220ms var(--ease); }
.modal.wide { width: min(860px, calc(100vw - 24px)); }
.modal::backdrop { background: var(--scrim); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 6px 22px; }
.modal__head h2 { font-size: 19px; }
.modal__body { padding: 8px 22px 6px; overflow: auto; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; }
.modal__foot.inline { padding: 8px 0 14px; }
.scrim { position: fixed; inset: 0; z-index: 40; background: var(--scrim); opacity: 0; transition: opacity 240ms ease; }
.scrim.in { opacity: 1; }
.sheet { position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 41; width: min(560px, calc(100vw - 20px)); display: flex; flex-direction: column; background: var(--float); border-radius: 24px; box-shadow: var(--shadow); transform: translateX(calc(100% + 20px)); transition: transform 280ms var(--ease); }
.sheet.wide { width: min(760px, calc(100vw - 20px)); }
.sheet.in { transform: none; }
.sheet__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 4px 22px; min-height: 60px; }
.sheet__head h2 { flex: 1; font-size: 18px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__actions { display: flex; gap: 4px; align-items: center; }
.sheet__body { flex: 1; overflow: auto; padding: 6px 22px 28px; }
@media (max-width: 640px) { .sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; border-radius: 24px 24px 0 0; transform: translateY(100%); } .sheet.in { transform: none; } }
.menu { position: fixed; z-index: 60; min-width: 200px; padding: 6px; border-radius: 16px; background: var(--float); box-shadow: var(--shadow); animation: pop 160ms var(--ease); }
.menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px; font-size: 14px; text-align: left; }
.menu__item:hover, .menu__item:focus { background: var(--surface2); outline: none; }
.menu__item.danger { color: #FF6961; }
.menu__sep { height: 1px; background: var(--line); margin: 6px 4px; }
#toasts { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; background: var(--float); color: var(--ink); font-size: 14px; font-weight: 500; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: opacity 200ms, transform 260ms var(--ease); pointer-events: auto; }
.toast.in { opacity: 1; transform: none; }
.toast .i { color: var(--green); } .toast.bad .i { color: var(--danger); }
.toast__act { margin-left: 6px; color: var(--link); font-weight: 650; }

/* ---------- command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 55; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 12px 12px; background: var(--scrim); opacity: 0; transition: opacity 150ms; }
.palette.in { opacity: 1; }
.palette__box { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; border-radius: 22px; background: var(--float); box-shadow: var(--shadow); overflow: hidden; transform: translateY(-6px) scale(.98); transition: transform 220ms var(--ease); }
.palette.in .palette__box { transform: none; }
.palette__field { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--muted); }
.palette__input { background: transparent !important; box-shadow: none !important; font-size: 18px !important; padding: 4px 0 !important; min-height: 0 !important; }
.palette__list { overflow: auto; padding: 0 8px 8px; }
.palette__head { padding: 12px 10px 6px; font-size: 12px; font-weight: 700; color: var(--faint); }
.palette__row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border-radius: 12px; text-align: left; }
.palette__row.on { background: var(--surface2); }
.palette__row > .i { color: var(--faint); }
.palette__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; flex: none; }
.palette__text { flex: 1; min-width: 0; display: grid; }
.palette__text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__text span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette__empty { padding: 28px; text-align: center; color: var(--muted); }
.palette__foot { display: flex; gap: 16px; padding: 10px 16px; font-size: 12px; color: var(--faint); background: var(--surface); }
.palette__foot kbd { margin-right: 2px; }

/* ---------- links between items ---------- */
.links__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.refchip { display: inline-flex; align-items: center; gap: 2px; min-height: 30px; padding: 0 4px 0 4px; border-radius: 999px; background: var(--surface2); font-size: 13px; max-width: 100%; }
.refchip a { display: inline-flex; align-items: center; gap: 7px; padding-right: 8px; min-width: 0; }
.refchip a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refchip__dot { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; flex: none; }
.refchip.incoming { background: transparent; box-shadow: inset 0 0 0 1.5px var(--surface3); }
.links .chip.add { min-height: 30px; }

/* ---------- detail layouts (sheets) ---------- */
.detail { display: grid; gap: 18px; }
.detail__title { font-size: 22px !important; font-weight: 700 !important; letter-spacing: -0.02em; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 14px; align-items: center; }
.kv > span { font-size: 13px; color: var(--muted); }
.notes-area { min-height: 120px; }
.subtle-sep { height: 1px; background: var(--line); }

/* ---------- shared bits (ui.js) ---------- */
.who { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; min-width: 0; }
.who > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfilter { display: flex; gap: 6px; flex-wrap: wrap; }
.pfilter__b { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; transition: background-color var(--t), color var(--t); }
.pfilter__b .avatar { margin-left: -6px; }
.pfilter__b:hover { color: var(--ink); background: var(--surface2); }
.pfilter__b.on { background: var(--ink); color: var(--canvas); }
.pbar { display: block; height: 6px; border-radius: 3px; background: var(--surface3); overflow: hidden; flex: 1; }
.pbar i { display: block; height: 100%; border-radius: 3px; transition: width 500ms var(--ease); }
.rings__arc { transition: stroke-dashoffset 900ms var(--ease); }
.block { display: grid; gap: 8px; }
.block__label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--surface4); color: transparent; flex: none; transition: background-color var(--t), color var(--t), box-shadow var(--t); }
.tick:hover { box-shadow: inset 0 0 0 2px var(--green); color: var(--green); }
.tick.on { background: var(--green); box-shadow: none; color: #000; }

/* ---------- Today ---------- */
.today { padding-top: 12px; }
.face { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; padding: 18px 4px 34px; }
.face__time { font-size: clamp(76px, 11vw, 132px); font-weight: 250; letter-spacing: -0.055em; line-height: .9; font-variant-numeric: tabular-nums; }
.face__date { font-size: 20px; font-weight: 600; margin-top: 14px; letter-spacing: -0.01em; }
.face__line { color: var(--muted); margin-top: 6px; font-size: 15px; }
.face__line a { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.face__line a:hover { text-decoration: underline; text-underline-offset: 3px; }
.face__rings { display: flex; align-items: center; gap: 22px; }
.face__ringbtn { border-radius: 50%; transition: transform 200ms var(--ease); }
.face__ringbtn:hover { transform: scale(1.03); }
.ringkey { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 210px; }
.ringkey a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; transition: background-color var(--t); }
.ringkey a:hover { background: var(--surface); }
.ringkey__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ringkey__text { display: grid; flex: 1; line-height: 1.25; }
.ringkey__text b { font-size: 14px; } .ringkey__text span { font-size: 13px; color: var(--muted); }
.ringkey__pct { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .face { grid-template-columns: 1fr; } .face__rings { justify-content: flex-start; } }
@media (max-width: 480px) { .face__rings { gap: 14px; } .face__rings .rings { width: 128px; height: 128px; } .ringkey { min-width: 0; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 420px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--surface); border-radius: 24px; padding: 16px 18px 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.tile__head { display: flex; align-items: center; gap: 9px; }
.tile__head h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; flex: 1; }
.tile__dot { width: 9px; height: 9px; border-radius: 50%; }
.tile__more { display: grid; place-items: center; width: 30px; height: 30px; margin: -6px -8px -6px 0; border-radius: 50%; color: var(--faint); }
.tile__more:hover { background: var(--surface2); color: var(--ink); }
.tile__empty { font-size: 14px; }
.next { display: grid; gap: 6px; justify-items: start; }
.next__when { font-size: 13px; font-weight: 700; color: var(--muted); }
.next__when.soon { color: var(--green); }
.next__title { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.next__title:hover { text-decoration: underline; text-underline-offset: 4px; }
.next__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin-top: 4px; }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.agenda a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 10px; font-size: 14px; }
.agenda a:hover { background: var(--surface2); }
.agenda__bar { width: 4px; height: 20px; border-radius: 2px; flex: none; }
.agenda__when { color: var(--muted); font-size: 13px; font-weight: 600; width: 88px; flex: none; white-space: nowrap; }
.agenda__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mini-tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.mini-tasks li { display: flex; align-items: center; gap: 10px; min-height: 38px; }
.mini-tasks__title { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-tasks__title:hover { text-decoration: underline; text-underline-offset: 3px; }
.mini-tasks__due { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.mini-tasks__due.today { color: var(--amber); } .mini-tasks__due.late { color: #FF6961; }
.quickadd { background: var(--surface2) !important; min-height: 38px !important; font-size: 14px; }
.lt { display: grid; gap: 4px; }
.lt__status { display: flex; align-items: center; gap: 8px; font-size: 19px; letter-spacing: -0.02em; }
.lt__date { color: var(--muted); font-size: 14px; }
.lt__progress { display: flex; align-items: center; gap: 10px; }
.teamrows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.teamrows a { display: flex; align-items: center; gap: 12px; padding: 7px 8px; margin: 0 -8px; border-radius: 14px; }
.teamrows a:hover { background: var(--surface2); }
.teamrows__text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.teamrows__text b { font-size: 14px; } .teamrows__text span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teamrows__meta { display: grid; justify-items: end; gap: 3px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.feed li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; }
.feed__text { flex: 1; min-width: 0; color: var(--muted); }
.feed__text b { color: var(--ink); font-weight: 600; }
.feed__title { color: var(--ink); }
a.feed__text:hover .feed__title { text-decoration: underline; text-underline-offset: 3px; }
.feed__ago { font-size: 12px; color: var(--faint); white-space: nowrap; padding-top: 2px; }
.around { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.around a { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 14px; }
.around a:hover { background: var(--surface2); }
.around a > span:nth-child(2) { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.around b { font-size: 14px; } .around a > span:nth-child(2) span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.around a > .i { color: var(--faint); }
.around__disc { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; }

/* ---------- detail sheets ---------- */
.detail__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.sheet .kv select, .sheet .kv input { min-height: 38px; }

/* ---------- Tasks ---------- */
.tasks .ph { margin-bottom: 14px; }
.tboard { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 900px) { .tboard { grid-template-columns: repeat(3, 84vw); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 0 14px 10px; } .tcol { scroll-snap-align: center; } }
.tcol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; min-height: 240px; padding: 10px; border-radius: 22px; background: var(--surface); transition: background-color var(--t); }
.tcol__head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 2px; }
.tcol__head h2 { font-size: 15px; font-weight: 700; }
.tcol__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--surface4); }
.tcol__dot.doing { background: var(--amber); } .tcol__dot.done { background: var(--green); }
.tcol__count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--faint); }
.tcol__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 40px; }
.tcol__empty { font-size: 13px; color: var(--faint); padding: 2px 8px 8px; }
.tcol__more { justify-self: center; }
.tcol .quickadd { background: var(--surface2) !important; }
.tcard { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--surface2); cursor: pointer; transition: background-color var(--t), transform 160ms var(--ease); user-select: none; -webkit-user-select: none; }
.tcard:hover { background: var(--surface3); }
.tcard__title { font-size: 14.5px; font-weight: 550; line-height: 1.35; overflow-wrap: anywhere; }
.tcard.done .tcard__title { color: var(--muted); }
.tcard__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 24px; }
.tcard__due { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tcard__due.today { color: var(--amber); } .tcard__due.late { color: #FF6961; }
.tcard__links { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--faint); }
.tcard__who { margin-left: auto; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
.tlist section + section { margin-top: 6px; }
.trow .rowitem__main { text-align: left; }
.trow.done .rowitem__main b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }

/* ---------- Ideas ---------- */
.ideas .ph__tools { gap: 10px; }
.idea { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: 18px; transition: background-color var(--t); }
.idea:hover { background: var(--surface); }
.vote { display: grid; justify-items: center; gap: 1px; width: 52px; padding: 8px 0 7px; border-radius: 14px; background: var(--surface2); color: var(--muted); flex: none; transition: background-color var(--t), color var(--t), transform 120ms; }
.vote b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.vote:hover { background: var(--surface3); }
.vote:active { transform: scale(.95); }
.vote.on { background: var(--accent); color: #fff; }
.vote.on b { color: #fff; }
.idea__main { flex: 1; min-width: 0; display: grid; gap: 5px; text-align: left; padding-top: 2px; }
.idea__main > b { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.3; }
.idea__details { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.idea__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.idea__count { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--faint); }
.idea__by { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); margin-left: auto; }
.votes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.votes .small { flex: 1; min-width: 120px; }
.thread { display: grid; gap: 14px; }
.comment { display: flex; gap: 10px; }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.comment__head span { color: var(--faint); font-size: 12px; }
.comment p { font-size: 14px; margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-box { display: grid; gap: 8px; justify-items: end; margin-top: 4px; }

/* ---------- Meetings ---------- */
.mlist .sec-title:first-child { margin-top: 6px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 18px; transition: background-color var(--t); }
.mrow:hover { background: var(--surface); }
.mrow__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 10px; text-align: left; }
.mrow__time { display: grid; width: 74px; flex: none; line-height: 1.25; }
.mrow__time b { font-size: 15px; font-variant-numeric: tabular-nums; }
.mrow__time span { font-size: 12px; color: var(--faint); }
.mrow__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mrow__text b { font-size: 16px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow__text span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow.live { background: rgba(48,209,88,.1); }
.mrow.live .mrow__text span { color: var(--green); font-weight: 600; }
@media (max-width: 640px) { .mrow .avatars { display: none; } .mrow__time { width: 60px; } }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.toggle { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--surface2); color: var(--muted); font-size: 13px; font-weight: 600; transition: background-color var(--t), color var(--t); }
.toggle .avatar { opacity: .45; transition: opacity var(--t); }
.toggle.on { background: var(--accent-soft); color: var(--ink); }
.toggle.on .avatar { opacity: 1; }
.meetrow { display: flex; gap: 8px; align-items: center; }
.meetrow input { flex: 1; min-width: 0; }
.actions-list { display: grid; gap: 2px; }
.action { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.action__text { flex: 1; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.action.done .action__text { color: var(--muted); text-decoration: line-through; }
.action__who { width: auto !important; min-height: 32px !important; padding: 4px 28px 4px 10px !important; font-size: 13px; background-color: var(--surface2); }
@media (max-width: 640px) { .action__who { max-width: 110px; } }

/* ---------- Calendar ---------- */
.cal__ph { align-items: center; }
.cal__title { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cal__title h1 { min-width: 8ch; }
.cal__nav { gap: 6px; }
.layers { display: flex; gap: 6px; flex-wrap: wrap; }
.layer { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface); color: var(--faint); font-size: 13px; font-weight: 600; transition: color var(--t), background-color var(--t); }
.layer__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); opacity: .35; }
.layer.on { color: var(--ink); background: var(--surface2); }
.layer.on .layer__dot { opacity: 1; }
.cal__month { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .cal__month { grid-template-columns: 1fr; } }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mgrid__wd { font-size: 12px; font-weight: 700; color: var(--faint); padding: 0 8px 4px; }
.mcell { min-height: 112px; padding: 6px; border-radius: 14px; background: var(--surface); cursor: pointer; display: grid; grid-template-rows: auto 1fr; gap: 4px; min-width: 0; transition: background-color var(--t); outline-offset: -2px; }
.mcell:hover { background: var(--surface2); }
.mcell.other { background: transparent; }
.mcell.other .mcell__num { color: var(--faint); }
.mcell.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.mcell__num { justify-self: start; display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.mcell.today .mcell__num { background: #FF453A; color: #fff; }
.mcell__items { display: grid; gap: 3px; align-content: start; min-width: 0; }
.mchip { display: flex; gap: 4px; align-items: center; padding: 2px 6px; border-radius: 6px; font-size: 12px; line-height: 1.35; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--ink); min-width: 0; }
.mchip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mchip__time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.mchip:hover { background: color-mix(in srgb, var(--c) 36%, transparent); }
.mcell__more { font-size: 11px; color: var(--faint); padding-left: 6px; }
.mcell__dots { display: none; gap: 3px; justify-content: center; }
.mcell__dots i { width: 6px; height: 6px; border-radius: 50%; }
@media (max-width: 760px) {
  .mcell { min-height: 54px; padding: 4px; justify-items: center; border-radius: 12px; }
  .mcell__num { justify-self: center; }
  .mcell__items { display: none; } .mcell__dots { display: flex; }
  .mgrid__wd { padding: 0; text-align: center; font-size: 11px; }
}
.dayp { background: var(--surface); border-radius: 22px; padding: 14px; display: grid; gap: 10px; position: sticky; top: 8px; }
.dayp__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px; }
.dayp__head h2 { font-size: 16px; }
.dayp .rowitem:hover { background: var(--surface2); }
.citem { gap: 10px; }
.citem__bar { width: 4px; align-self: stretch; border-radius: 2px; flex: none; }
.citem__time { width: 64px; flex: none; font-size: 13px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.agenda-view { display: grid; gap: 6px; }
.aday { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.aday__date { display: grid; justify-items: center; align-content: start; padding-top: 6px; line-height: 1.1; }
.aday__date b { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.aday__date span { font-size: 12px; color: var(--muted); }
.aday__date.today b { color: #FF453A; }
.gsetup { max-width: 640px; display: grid; gap: 14px; }
.gsetup h2 { margin: 0; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.gsetup .row input { flex: 1; }
.gcal { display: grid; gap: 12px; }
.gcal__bar { flex-wrap: wrap; }
.gcal__frame { width: 100%; height: min(72vh, 820px); border: 0; border-radius: 20px; background: var(--surface); }

/* ---------- Docs ---------- */
.docs__search { width: 240px !important; min-height: 38px !important; }
.docs__wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.docs__side { display: grid; gap: 2px; position: sticky; top: 8px; }
.docs__coll { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 14px; font-weight: 550; color: var(--muted); text-align: left; }
.docs__coll:hover { background: var(--surface); color: var(--ink); }
.docs__coll.on { background: var(--surface2); color: var(--ink); }
.docs__coll > span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs__hash { width: 16px; text-align: center; color: var(--faint); font-weight: 700; }
.docs__n { font-size: 12px; color: var(--faint); }
.docs__sep { height: 1px; background: var(--line); margin: 6px 10px; }
@media (max-width: 760px) {
  .docs__wrap { grid-template-columns: 1fr; }
  .docs__side { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .docs__coll { flex: none; background: var(--surface); border-radius: 999px; padding: 6px 12px; }
  .docs__sep { display: none; }
  .docs__search { width: 100% !important; }
}
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.dtile { position: relative; display: grid; gap: 0; border-radius: 20px; background: var(--surface); transition: background-color var(--t); min-width: 0; }
.dtile:hover { background: var(--surface2); }
.dtile__main { display: flex; align-items: center; gap: 12px; padding: 16px 44px 10px 16px; min-width: 0; }
.dtile__disc { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; flex: none; }
.dtile__text { display: grid; min-width: 0; line-height: 1.3; }
.dtile__text b { font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtile__text span { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtile__info { text-align: left; padding: 0 16px 14px 72px; font-size: 12.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dtile__info:hover { color: var(--ink); }
.dtile__more { position: absolute; top: 12px; right: 10px; width: 30px; height: 30px; color: var(--faint); }
.dtile__pin { position: absolute; top: 18px; right: 44px; color: var(--amber); }
.dpreview { width: 100%; height: 420px; border: 0; border-radius: 14px; background: #fff; }

/* ---------- Launch ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.launch__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: start; }
.launch__grid > .review { grid-column: span 7; }
.launch__grid > .countdown { grid-column: span 5; }
.launch__grid > .goals { grid-column: span 5; }
.launch__grid > .checklist { grid-column: span 7; grid-row: span 2; }
@media (max-width: 1000px) { .launch__grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; } }
.launch .panel { border-radius: 24px; padding: 20px; display: grid; gap: 14px; margin: 0; }
.review__eyebrow { font-size: 13px; font-weight: 700; color: var(--muted); }
.review__top { display: grid; gap: 4px; }
.review__status { display: flex; align-items: center; gap: 12px; }
.review__status h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.035em; margin: 0; }
.review__dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.review__set { display: grid; gap: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.timeline li span:last-child { color: var(--faint); }
.timeline__dot { width: 8px; height: 8px; border-radius: 50%; }
.countdown__n { display: flex; align-items: baseline; gap: 10px; }
.countdown__n b { font-size: 76px; font-weight: 300; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__n span { color: var(--muted); font-size: 16px; font-weight: 600; }
.countdown__n .countdown__none { font-size: 30px; font-weight: 600; color: var(--faint); letter-spacing: -0.02em; }
.countdown .kv { grid-template-columns: 60px minmax(0, 1fr); }
.goal { display: grid; gap: 8px; }
.goal__top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.goal__top > span { color: var(--muted); }
.goal__top > span b { color: var(--ink); }
.goal__target { color: var(--ink); font-weight: 700; text-decoration: underline dotted; text-underline-offset: 3px; }
.goals .btn { justify-self: start; }
.checklist__head { display: flex; align-items: center; gap: 14px; }
.checklist__head h2 { margin: 0; font-size: 18px; }
.step { min-height: 46px; }
.step.done .rowitem__main b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.step__owner { border-radius: 50%; padding: 2px; }
.step__owner:hover { background: var(--surface3); }
.step__more { opacity: 0; color: var(--faint); }
.step:hover .step__more, .step__more:focus-visible { opacity: 1; }
@media (hover: none) { .step__more { opacity: 1; } }
.checklist .rowitem:hover { background: var(--surface2); }
.people { display: grid; gap: 14px; }
.people__tools { overflow-x: auto; }
.ctable { display: grid; gap: 2px; }
.ctable__head, .ctable__row { display: grid; grid-template-columns: minmax(0, 2.4fr) 1fr 1.3fr 64px 90px; align-items: center; gap: 12px; padding: 10px 14px; }
.ctable__head { font-size: 12px; font-weight: 700; color: var(--faint); padding-bottom: 4px; }
.ctable__row { border-radius: 14px; text-align: left; transition: background-color var(--t); min-height: 58px; }
.ctable__row:hover { background: var(--surface); }
.ctable__name { display: grid; min-width: 0; }
.ctable__name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctable__name span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctable__reach { display: flex; gap: 8px; color: var(--faint); justify-content: flex-end; }
@media (max-width: 700px) { .ctable__head { display: none; } .ctable__row { grid-template-columns: minmax(0, 1fr) auto auto; } .ctable__row > :nth-child(2), .ctable__row > :nth-child(5) { display: none; } }
.reach { flex-wrap: wrap; }

/* ---------- Updates ---------- */
.week__label { font-size: 14px; font-weight: 600; min-width: 130px; text-align: center; font-variant-numeric: tabular-nums; }
.blockers { background: rgba(255,69,58,.1); border-radius: 22px; padding: 16px 18px; display: grid; gap: 10px; margin-bottom: 14px; }
.blockers h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #FF6961; }
.blockers__row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.blockers__row p { white-space: pre-wrap; padding-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
@media (max-width: 420px) { .cards { grid-template-columns: 1fr; } }
.ucard { background: var(--surface); border-radius: 24px; padding: 18px; display: grid; gap: 14px; min-width: 0; }
.ucard__head { display: flex; align-items: center; gap: 12px; }
.ucard__head > div { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.ucard__head b { font-size: 15px; } .ucard__head span { font-size: 13px; color: var(--muted); }
.ucard__part h3 { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; letter-spacing: .01em; }
.ucard__part p { font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ucard__part.blocked h3 { color: #FF6961; }
.ucard.empty-card { justify-items: start; }
.ucard.me { box-shadow: inset 0 0 0 2px var(--accent); }
.ucard__foot { display: flex; align-items: center; gap: 10px; }
.react { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface2); color: var(--muted); font-size: 13px; font-weight: 600; transition: background-color var(--t), color var(--t), transform 120ms; }
.react:hover { color: var(--ink); }
.react:active { transform: scale(.94); }
.react.on { background: rgba(255,55,95,.18); color: #FF375F; }
.uform { display: grid; gap: 12px; }
.uform textarea { min-height: 70px; }
.uform__foot { justify-content: flex-end; }

/* ---------- Team ---------- */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.pcard { display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: 26px; background: var(--surface); text-align: left; transition: background-color var(--t), transform 180ms var(--ease); min-width: 0; }
.pcard:hover { background: var(--surface2); }
.pcard:active { transform: scale(.99); }
.pcard__top { display: flex; align-items: flex-start; justify-content: space-between; }
.pcard__name { display: grid; line-height: 1.3; }
.pcard__name b { font-size: 18px; letter-spacing: -0.015em; }
.pcard__name span { color: var(--muted); font-size: 14px; }
.pcard__focus { font-size: 14px; }
.pcard__stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.pcard__stats b { color: var(--ink); }
.pcard__in { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 600; }
.team__note { margin-top: 18px; }
.member-head { display: flex; align-items: center; gap: 18px; }
.member-head__name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.face-edit { display: grid; justify-items: center; gap: 8px; }
.link { color: var(--link); }
.link:hover { text-decoration: underline; }
.kv__text { font-size: 14px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; transition: transform 140ms var(--ease), box-shadow 140ms; }
.swatch:hover { transform: scale(1.1); }
.swatch.on { box-shadow: 0 0 0 3px var(--float), 0 0 0 5px var(--ink); }
.swatch:disabled { cursor: default; transform: none; }
.latest-ci { display: grid; gap: 6px; font-size: 14px; }
.latest-ci p { white-space: pre-wrap; }

/* ---------- Shortcuts ---------- */
.sgroup + .sgroup { margin-top: 8px; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.stile { position: relative; display: grid; justify-items: center; gap: 10px; padding: 20px 8px 16px; border-radius: 22px; transition: background-color var(--t), transform 160ms var(--ease); text-align: center; min-width: 0; }
a.stile:hover { background: var(--surface); }
a.stile:active { transform: scale(.96); }
.stile__disc { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; }
.stile__disc b { font-size: 26px; font-weight: 700; }
.stile__name { font-size: 13px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sgrid.editing .stile { background: var(--surface); padding-bottom: 10px; }
.stile__edit { display: flex; gap: 2px; }
.stile__edit .ibtn { width: 28px; height: 28px; background: var(--surface2); }

/* ---------- Settings ---------- */
.settings .panel { border-radius: 24px; padding: 20px; }
.settings .panel h2 { font-size: 16px; margin-bottom: 14px; }
.grow { flex: 1; min-width: 0; }
.settings .member-head { align-items: flex-start; }
@media (max-width: 640px) { .settings .member-head { flex-direction: column; align-items: stretch; } .kv { grid-template-columns: 1fr; gap: 4px; } .kv > span { margin-top: 8px; } }
.conn { display: grid; gap: 4px; }
.conn__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.conn__row:first-child { border-top: 0; padding-top: 0; }
.conn__text { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.conn__text b { font-size: 15px; } .conn__text span { font-size: 13px; color: var(--muted); }
.conn__ctl { flex-basis: 100%; display: flex; }
.conn__ctl input { flex: 1; }
.conn__ctl:has(.btn) { flex-basis: auto; }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; align-items: center; font-size: 14px; }
.keys dt { white-space: nowrap; color: var(--muted); font-size: 13px; }
.keys dt kbd { font-size: 12px; }
.keys dd { margin: 0; }
.row.wrap { flex-wrap: wrap; }
.about { text-align: center; margin-top: 24px; }

/* ---------- Admin (the Goings app console) ---------- */
.adm { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 8px 20px 60px; max-width: 1400px; margin: 0 auto; align-items: start; }
.adm__nav { position: sticky; top: 8px; display: grid; gap: 2px; }
.adm__sec { font-size: 12px; font-weight: 700; color: var(--faint); padding: 16px 12px 6px; }
.adm__link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 550; color: var(--muted); }
.adm__link:hover { background: var(--surface); color: var(--ink); }
.adm__link.on { background: var(--surface2); color: var(--ink); }
.adm__main { min-width: 0; display: grid; gap: 14px; align-content: start; }
.adm__main > .ph { margin: 4px 0 0; }
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; gap: 10px; padding: 4px 14px 80px; }
  .adm__nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .adm__sec { display: none; }
  .adm__link { flex: none; background: var(--surface); border-radius: 999px; padding: 7px 12px; }
}
.apad { padding: 24px; }
.asignin { max-width: 420px; margin: 6vh auto 40px; display: grid; gap: 14px; text-align: center; padding: 0 16px; grid-column: 1 / -1; }
.asignin__mark { justify-self: center; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: #fff; }
.asignin h1 { font-size: 30px; letter-spacing: -0.03em; }
.asignin .form { text-align: left; background: var(--surface); padding: 20px; border-radius: 22px; }
.asignin .btn.big { width: 100%; }
.asignin .btn.ghost { justify-self: center; }
.abar { display: flex; gap: 8px; flex-wrap: wrap; }
.abar input { flex: 1; min-width: 200px; }
.abar select { width: auto; min-width: 150px; }
.atabs { flex-wrap: wrap; }
.atabs a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.atabs a.on { background: var(--surface4); color: var(--ink); }
[data-theme="light"] .atabs a.on { background: var(--surface); }
.acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.acard { display: grid; gap: 6px; padding: 16px 18px; border-radius: 20px; background: var(--surface); transition: background-color var(--t); }
.acard:hover { background: var(--surface2); }
.acard__title { font-size: 13px; font-weight: 600; color: var(--muted); }
.acard__big { font-size: 34px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.acard__big.hot { color: #FF9F0A; } .acard__big.alarm { color: #FF453A; }
.apanel { background: var(--surface); border-radius: 22px; padding: 18px; display: grid; gap: 12px; min-width: 0; align-content: start; }
.apanel + .apanel { margin-top: 12px; }
.grid2 > div > .apanel + .apanel { margin-top: 12px; }
.apanel > h2 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.akv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
.akv dt { color: var(--muted); font-size: 13px; padding-top: 1px; }
.akv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .akv { grid-template-columns: 1fr; gap: 2px; } .akv dd { margin-bottom: 8px; } }
.atable { overflow-x: auto; border-radius: 16px; background: var(--surface); }
.apanel .atable { background: transparent; margin: 0 -6px; }
.atable table { width: 100%; border-collapse: collapse; font-size: 14px; }
.atable th { text-align: left; font-size: 12px; font-weight: 700; color: var(--faint); padding: 12px 14px 8px; white-space: nowrap; }
.atable td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; max-width: 360px; }
.atable tr.click { cursor: pointer; }
.atable tr.click:hover td { background: var(--surface2); }
.atable.empty-t { padding: 22px; color: var(--muted); text-align: center; }
.acell { display: grid; gap: 2px; min-width: 0; }
.clip { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.copy { color: var(--muted); text-align: left; overflow-wrap: anywhere; }
.copy:hover { color: var(--ink); }
.quote { padding: 8px 12px; border-radius: 10px; background: var(--surface2); white-space: pre-wrap; overflow-wrap: anywhere; }
.aperson { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.aperson__face { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface3); font-size: 11px; font-weight: 700; flex: none; }
.aperson__text { display: grid; line-height: 1.2; min-width: 0; }
.aperson__text b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aperson__text span { font-size: 12px; color: var(--muted); }
.aperson:hover b { text-decoration: underline; text-underline-offset: 2px; }
.apager { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: var(--muted); }
.acrumbs { font-size: 13px; color: var(--muted); }
.acrumbs a { color: var(--link); }
.aactions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.aactions .field { min-width: 180px; }
.aactions-col { display: grid; gap: 8px; padding-top: 4px; }
.alist { display: grid; gap: 8px; }
.aitem { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--surface2); }
.aprofile { display: flex; align-items: center; gap: 16px; }
.aprofile h1 { font-size: 26px; letter-spacing: -0.03em; }
.aprofile p { gap: 8px; margin-top: 4px; }
.aface { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface3); font-size: 22px; font-weight: 700; overflow: hidden; flex: none; }
.aface img { width: 100%; height: 100%; object-fit: cover; }
.amedia { display: grid; gap: 8px; margin-top: 10px; }
.amedia img, .amedia video { max-width: 100%; max-height: 420px; border-radius: 12px; }
.awarn { padding: 14px 16px; border-radius: 16px; background: rgba(255,69,58,.14); color: #FF6961; }
.row.between { justify-content: space-between; }
.agap { display: grid; gap: 8px; margin-top: 10px; }

/* ---------- Social ---------- */
.pboard { display: grid; grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 10px; }
@media (max-width: 900px) { .pboard { grid-template-columns: repeat(5, 78vw); scroll-snap-type: x mandatory; margin: 0 -14px; padding: 0 14px 10px; } .pcol { scroll-snap-align: center; } }
.pcol { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; padding: 10px; border-radius: 22px; background: var(--surface); min-height: 200px; }
.pcol__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.pcol__add { justify-self: start; margin: 2px 4px; }
.post { display: grid; gap: 8px; padding: 10px; border-radius: 16px; background: var(--surface2); text-align: left; transition: background-color var(--t); min-width: 0; }
.post:hover { background: var(--surface3); }
.post__media { aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--surface3); }
.post__media.tall { aspect-ratio: 9 / 16; max-height: 300px; }
.post__media img, .post__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.post__caption { font-size: 13.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.post__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.post__who { margin-left: auto; }
.postsheet__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 720px) { .postsheet__grid { grid-template-columns: 1fr; } .postsheet__preview { justify-items: center; } }
.postsheet__preview { display: grid; gap: 10px; }
.postsheet__form { display: grid; gap: 14px; min-width: 0; }
.phone { width: 250px; border-radius: 30px; padding: 10px; background: #000; box-shadow: inset 0 0 0 1.5px #2c2c2e; display: grid; gap: 8px; color: #fff; }
.phone__top { display: flex; align-items: center; gap: 8px; padding: 4px 4px 0; font-size: 12px; }
.phone__face { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #286BFF; color: #fff; }
.phone__media { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: #1c1c1e; display: grid; place-items: center; }
.phone__media.tall { aspect-ratio: 9 / 16; border-radius: 22px; }
.phone__media img, .phone__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone__caption { font-size: 12px; line-height: 1.4; padding: 0 4px 6px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.caption__count { justify-self: end; }
.caption__count.over { color: #FF6961; }
.ig { display: grid; gap: 10px; }
.ig__setup { max-width: 640px; display: grid; gap: 12px; justify-items: start; border-radius: 24px; padding: 24px; }
.ig__setup h2 { margin: 0; }
.ig__mark { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: #E1306C; color: #fff; }
.ig__head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--surface); border-radius: 24px; padding: 20px; }
.ig__face { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #E1306C; color: #fff; flex: none; }
.ig__who { flex: 1; min-width: 200px; display: grid; gap: 4px; }
.ig__who h2 { font-size: 22px; letter-spacing: -0.02em; }
.ig__counts { display: flex; gap: 16px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.ig__counts b { color: var(--ink); }
.ig__tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.ig__tile { display: grid; gap: 4px; padding: 16px 18px; border-radius: 20px; background: var(--surface); }
.ig__tile span { font-size: 13px; color: var(--muted); font-weight: 600; }
.ig__tile b { font-size: 30px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ig__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ig__post { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface); }
.ig__post img { width: 100%; height: 100%; object-fit: cover; }
.ig__stats { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; padding: 22px 10px 8px; font-size: 12px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); opacity: 0; transition: opacity var(--t); }
.ig__stats span { display: inline-flex; align-items: center; gap: 4px; }
.ig__post:hover .ig__stats, .ig__post:focus-visible .ig__stats { opacity: 1; }
@media (hover: none) { .ig__stats { opacity: 1; } }

/* ---------- Boards ---------- */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.bcard { position: relative; display: grid; border-radius: 22px; background: var(--surface); overflow: hidden; cursor: pointer; transition: background-color var(--t), transform 180ms var(--ease); }
.bcard:hover { background: var(--surface2); }
.bcard:active { transform: scale(.99); }
.bcard__preview { aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--c) 16%, var(--surface2)); display: grid; padding: 14px; }
.bcard__preview svg { width: 100%; height: 100%; }
.bcard__text { display: grid; gap: 2px; padding: 12px 44px 14px 16px; }
.bcard__text b { font-size: 15px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard__text span { font-size: 12.5px; color: var(--muted); }
.bcard__more { position: absolute; right: 10px; bottom: 14px; width: 30px; height: 30px; color: var(--faint); }
.appbody.is-canvas { overflow: hidden; position: relative; }
.board { position: absolute; inset: 0; }
.board__name { width: min(36vw, 320px) !important; min-height: 34px !important; padding: 6px 10px !important; background: transparent !important; font-weight: 600; }
.board__name:hover { background: var(--surface) !important; }
.board__name:focus { background: var(--surface2) !important; }
@media (max-width: 640px) { .board__name { display: none; } }
.canvas { position: absolute; inset: 0; overflow: hidden; touch-action: none; outline: none; background-color: var(--canvas); background-image: radial-gradient(circle, var(--surface3) 1.2px, transparent 1.3px); cursor: default; user-select: none; -webkit-user-select: none; }
.canvas.zoomed-out { background-image: none; }
.canvas[data-tool="hand"], .canvas.space { cursor: grab; }
.canvas.panning { cursor: grabbing; }
.canvas[data-tool="note"], .canvas[data-tool="text"], .canvas[data-tool="rect"], .canvas[data-tool="ellipse"], .canvas[data-tool="pen"] { cursor: crosshair; }
.canvas.dropping { box-shadow: inset 0 0 0 3px var(--accent); }
.world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.draft { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; color: var(--ink); z-index: 100000; }
.draft path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bi { position: absolute; left: 0; top: 0; }
.bi.sel { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.bi__text { width: 100%; height: 100%; outline: none; white-space: pre-wrap; overflow-wrap: anywhere; overflow: hidden; }
.bi__text[contenteditable="true"], .bi__text[contenteditable="plaintext-only"] { cursor: text; user-select: text; -webkit-user-select: text; overflow: auto; }
.bi--note { background: var(--fill); color: #111; border-radius: 4px; padding: 14px 14px; font-size: 16px; line-height: 1.35; font-weight: 500; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 10px 24px -14px rgba(0,0,0,.55); }
.bi--text { font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.bi--text .bi__text { overflow: visible; white-space: pre; width: max-content; min-width: 40px; }
.bi--shape { background: var(--fill); border-radius: 14px; display: grid; place-items: center; text-align: center; font-size: 16px; font-weight: 600; padding: 10px; }
.bi--shape.ellipse { border-radius: 50%; }
.bi--shape .bi__text { display: grid; place-items: center; }
.bi--image img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; pointer-events: none; background: var(--surface2); }
.bi--link .bi__link { width: 100%; height: 100%; display: grid; align-content: center; gap: 2px; padding: 14px 16px 14px 60px; position: relative; border-radius: 16px; background: var(--surface2); }
.bi__link b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bi__link span:last-child { font-size: 12px; color: var(--muted); }
.bi__linkicon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; }
.bi--pen { color: var(--ink); }
.bi--pen svg { width: 100%; height: 100%; overflow: visible; }
.bi--pen path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bi__handle { position: absolute; right: -9px; bottom: -9px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--accent); cursor: nwse-resize; }
.marquee { position: absolute; border-radius: 4px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); pointer-events: none; }
.bbottom { position: absolute; left: 10px; right: 10px; bottom: max(16px, env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: 8px; z-index: 5; pointer-events: none; }
.bbottom > * { pointer-events: auto; }
.btools, .bsel { display: flex; align-items: center; gap: 2px; padding: 6px; border-radius: 18px; background: var(--float); box-shadow: var(--shadow); overflow-x: auto; max-width: 100%; }
.btool { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--muted); flex: none; transition: background-color var(--t), color var(--t); }
.btool:hover { background: var(--surface2); color: var(--ink); }
.btool.on { background: var(--accent); color: #fff; }
.bsel__colors { display: flex; gap: 6px; padding: 0 6px; }
.bsel__swatch { width: 24px; height: 24px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.bsel__swatch.on { box-shadow: 0 0 0 2px var(--float), 0 0 0 4px var(--ink); }
.bsel__sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }
.bzoom { position: absolute; right: 14px; top: 12px; z-index: 5; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 14px; background: var(--float); box-shadow: var(--shadow); }
.bzoom .ibtn { width: 34px; height: 34px; }
.bzoom__pct { min-width: 52px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.bzoom__pct:hover { color: var(--ink); }
@media (max-width: 640px) { .home__hint { display: none; } .hive__caption { bottom: max(22px, env(safe-area-inset-bottom)); } }
@media (max-width: 480px) {
  .btools { padding: 4px; gap: 0; }
  .btool { width: 36px; height: 40px; border-radius: 10px; }
  .bzoom { right: 10px; top: 10px; }
  .agenda__when { width: 64px; }
}

/* ==========================================================================
   Working together: presence, the bell, comments, mentions, reactions
   ========================================================================== */
.gate__form { display: grid; gap: 10px; width: min(100%, 340px); }
.gate__form .btn { width: 100%; }
.gate__form input { min-height: 48px; font-size: 16px; }
.gate__user { color: var(--muted) !important; }
.gate__people.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 6px; }
.gate__people.compact .gate__person { padding: 16px 8px; }

/* who's online, top bar */
.teambtn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 6px; border-radius: 999px; transition: background-color var(--t); }
.teambtn:hover { background: var(--surface); }
.teambtn__faces { display: inline-flex; }
.teambtn__face { position: relative; border-radius: 50%; box-shadow: 0 0 0 2px var(--canvas); }
.teambtn__face + .teambtn__face { margin-left: -7px; }
.teambtn__face.off .avatar { opacity: .38; filter: grayscale(.6); }
.teambtn__face.on::after, .teambtn__face.away::after, .who-row__face.on::after, .who-row__face.away::after, .pcard__face.on::after, .pcard__face.away::after, .teamrows__face.on::after, .teamrows__face.away::after, .chat__dmface.on::after, .chat__dmface.away::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--canvas); }
.teambtn__face.away::after, .who-row__face.away::after, .pcard__face.away::after, .teamrows__face.away::after, .chat__dmface.away::after { background: var(--amber); }
.teambtn__n { font-size: 13px; font-weight: 600; color: var(--muted); }
@media (max-width: 640px) { .teambtn__n { display: none; } .teambtn { padding: 0 4px; } }
.who { display: grid; gap: 4px; }
.who-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.who-row__face { position: relative; flex: none; }
.who-row__face.on::after, .who-row__face.away::after { width: 11px; height: 11px; box-shadow: 0 0 0 2px var(--float); }
.who-row__text { flex: 1; min-width: 160px; display: grid; line-height: 1.35; }
.who-row__text span { font-size: 13px; color: var(--muted); }
.who-row__status { color: var(--ink) !important; }
.mebtn { position: relative; }
.mebtn__status { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--float); font-size: 11px; line-height: 1; box-shadow: 0 0 0 2px var(--canvas); }
.appfaces { display: flex; margin-right: 4px; }
.appfaces__face { border-radius: 50%; box-shadow: 0 0 0 2px var(--canvas); }
.appfaces__face + .appfaces__face { margin-left: -7px; }
@media (max-width: 480px) { .appfaces { display: none; } }

/* faces on the honeycomb */
.hex__people { position: absolute; left: -4px; bottom: -2px; display: flex; pointer-events: none; }
.hex__people .avatar { box-shadow: 0 0 0 2.5px var(--canvas); }
.hex__people .avatar + .avatar { margin-left: -8px; }
.applist__people { display: flex; margin-right: 4px; }
.applist__people .avatar + .avatar { margin-left: -7px; }
.applist__people .avatar { box-shadow: 0 0 0 2px var(--canvas); }

/* the bell */
.bell { position: relative; }
.bell__badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #FF3B30; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--canvas); pointer-events: none; }
.inbox { position: fixed; z-index: 62; width: min(400px, calc(100vw - 16px)); max-height: min(70vh, 640px); display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 22px; background: var(--float); box-shadow: var(--shadow); animation: pop 180ms var(--ease); }
@media (max-width: 640px) { .inbox { left: 8px; right: 8px; top: 64px; width: auto; } }
.inbox__head { display: flex; align-items: center; justify-content: space-between; padding: 0 2px; }
.inbox__head h2 { font-size: 17px; }
.inbox__list { overflow: auto; display: grid; gap: 2px; margin: 0 -6px; }
.inbox__row { display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 14px; text-align: left; transition: background-color var(--t); }
.inbox__row:hover { background: var(--surface2); }
.inbox__row.unread { background: var(--accent-soft); }
.inbox__row.unread:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.inbox__face { position: relative; flex: none; }
.inbox__kind { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 0 0 2px var(--float); }
.inbox__text { flex: 1; min-width: 0; display: grid; gap: 3px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.inbox__text b { color: var(--ink); }
.inbox__when { font-size: 12px; color: var(--faint); }
.inbox__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; }
.inbox__empty { display: grid; justify-items: center; gap: 6px; padding: 32px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.inbox__empty .i { color: var(--green); }
.inbox__empty b { color: var(--ink); }

/* mentions, links, reactions */
.rich { white-space: pre-wrap; overflow-wrap: anywhere; }
.mention { display: inline-block; padding: 0 5px; border-radius: 6px; background: var(--accent-soft); color: var(--link); font-weight: 600; }
.mention.me { background: rgba(255,159,10,.2); color: #FFB340; }
[data-theme="light"] .mention.me { color: #B25E00; }
.ichip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 1px 8px 1px 6px; border-radius: 8px; background: var(--surface2); color: var(--ink); font-weight: 550; vertical-align: baseline; }
.ichip:hover { background: var(--surface3); }
.ichip .i { color: var(--muted); }
.ichip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpop { position: fixed; z-index: 90; min-width: 240px; max-width: 320px; padding: 6px; border-radius: 16px; background: var(--float); box-shadow: var(--shadow); display: grid; gap: 2px; }
.mpop__row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; text-align: left; font-size: 14px; }
.mpop__row span:last-child { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.mpop__row.on, .mpop__row:hover { background: var(--surface2); }
.mpop__all { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; }
.reacts:empty { display: none; }
.react-chip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--surface2); font-size: 13px; transition: background-color var(--t), transform 120ms; }
.react-chip b { font-size: 12px; color: var(--muted); font-weight: 650; }
.react-chip:hover { background: var(--surface3); }
.react-chip:active { transform: scale(.94); }
.react-chip.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.react-chip.on b { color: var(--link); }
.react-add { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; color: var(--faint); }
.react-add:hover { background: var(--surface2); color: var(--ink); }
.rpick { position: fixed; z-index: 91; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: var(--float); box-shadow: var(--shadow); animation: pop 140ms var(--ease); }
.rpick button { width: 36px; height: 36px; border-radius: 50%; font-size: 20px; transition: transform 120ms var(--ease), background-color var(--t); }
.rpick button:hover { background: var(--surface2); transform: scale(1.18); }

/* comments on anything */
.discussion { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.discussion__head { display: flex; align-items: center; justify-content: space-between; }
.follow { min-height: 30px; }
.comment { position: relative; border-radius: 14px; }
.comment.mentioned { background: rgba(255,159,10,.07); box-shadow: -10px 0 0 rgba(255,159,10,.07), 10px 0 0 rgba(255,159,10,.07); }
.comment__head { position: relative; }
.comment__tools { display: inline-flex; gap: 2px; margin-left: auto; opacity: 0; transition: opacity var(--t); }
.comment:hover .comment__tools, .comment:focus-within .comment__tools { opacity: 1; }
@media (hover: none) { .comment__tools { opacity: 1; } }
.comment__head { display: flex; align-items: center; gap: 8px; }
.comment__text { font-size: 14.5px; margin: 2px 0 6px; line-height: 1.5; }
.comment-box .row { justify-content: flex-end; width: 100%; }
.comment-box .row .small { margin-right: auto; }
.comment-box textarea { width: 100%; }

/* who else is here */
.here { display: inline-flex; align-items: center; gap: 8px; }
.here:empty { display: none; }
.here__face { position: relative; border-radius: 50%; box-shadow: 0 0 0 2px var(--float); }
.here__face + .here__face { margin-left: -14px; }
.here__face.away .avatar { opacity: .5; }
.here__face.editing { box-shadow: 0 0 0 2px var(--accent); }
.here__pen { position: absolute; right: -3px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.here__text { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.bar .here__face, .page__meta .here__face { box-shadow: 0 0 0 2px var(--canvas); }

/* statuses */
.status__presets { display: flex; flex-wrap: wrap; gap: 6px; }
.status__presets .chip { cursor: pointer; font-size: 13px; min-height: 32px; }
.status__presets .chip:hover { background: var(--surface3); color: var(--ink); }
.status__emoji { width: 56px !important; text-align: center; font-size: 20px; flex: none; }

/* ==========================================================================
   Chat
   ========================================================================== */
.appbody.is-chat { overflow: hidden; display: flex; }
.chat { flex: 1; min-height: 0; display: grid; grid-template-columns: 264px minmax(0, 1fr) auto; }
.chat__side { overflow: auto; padding: 8px 10px 24px; display: grid; align-content: start; gap: 4px; border-right: 1px solid var(--line); }
.chat__sidehead { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 4px; font-size: 12px; color: var(--muted); }
.chat__sidehead .ibtn { width: 30px; height: 30px; }
.chat__list { display: grid; gap: 1px; }
.chat__row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; font-size: 14.5px; color: var(--muted); text-align: left; transition: background-color var(--t), color var(--t); }
.chat__row:hover { background: var(--surface); color: var(--ink); }
.chat__row.on { background: var(--surface2); color: var(--ink); }
.chat__row.unread { color: var(--ink); font-weight: 700; }
.chat__hash { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--surface2); color: var(--muted); flex: none; }
.chat__row.on .chat__hash { background: var(--surface3); color: var(--ink); }
.chat__dmface { position: relative; flex: none; }
.chat__dmface.on::after, .chat__dmface.away::after { box-shadow: 0 0 0 2px var(--canvas); width: 8px; height: 8px; }
.chat__rowname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: #FF3B30; color: #fff; font-size: 11.5px; font-weight: 700; }
.chat__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); min-height: 62px; }
.chat__back { display: none; }
.chat__headhash { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface2); color: var(--ink); flex: none; }
.chat__headtext { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.chat__headtext b { font-size: 16px; }
.chat__headtext span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__scroll { flex: 1; overflow: auto; padding: 14px 10px 8px; overscroll-behavior: contain; }
.chat__day, .chat__new { display: flex; align-items: center; gap: 12px; margin: 16px 8px 8px; font-size: 12px; font-weight: 700; color: var(--faint); }
.chat__day::before, .chat__day::after, .chat__new::before, .chat__new::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chat__new { color: #FF453A; }
.chat__new::before, .chat__new::after { background: rgba(255,69,58,.4); }
.chat__empty { display: grid; justify-items: center; gap: 6px; padding: 12vh 20px 20px; text-align: center; color: var(--muted); }
.chat__empty b { color: var(--ink); font-size: 17px; }
.chat__emptymark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--surface2); margin-bottom: 6px; color: var(--ink); }
.chat__typing { display: flex; align-items: center; gap: 8px; min-height: 22px; padding: 0 20px; font-size: 12.5px; color: var(--muted); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.msg { position: relative; display: flex; gap: 12px; padding: 6px 10px; border-radius: 12px; transition: background-color var(--t); }
.msg:hover { background: var(--surface); }
.msg.compact { padding-top: 1px; padding-bottom: 1px; }
.msg.mentioned { background: rgba(255,159,10,.08); }
.msg.flash { animation: flash 2s ease-out; }
@keyframes flash { 0%, 30% { background: var(--accent-soft); } 100% { background: transparent; } }
.msg__gutter { width: 36px; flex: none; font-size: 10.5px; color: var(--faint); text-align: right; padding-top: 4px; opacity: 0; font-variant-numeric: tabular-nums; }
.msg:hover .msg__gutter { opacity: 1; }
.msg__body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.msg__head { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; }
.msg__when { font-size: 12px; color: var(--faint); }
.msg__edited { font-size: 11px; color: var(--faint); }
.msg__text { font-size: 15px; line-height: 1.47; }
.msg.system { align-items: flex-start; color: var(--muted); font-size: 14px; }
.msg__sys { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; flex: none; }
.msg.system .msg__text { font-size: 14px; padding-top: 8px; }
.msg__tools { position: absolute; top: -14px; right: 12px; display: none; gap: 2px; padding: 3px; border-radius: 12px; background: var(--float); box-shadow: var(--shadow); }
.msg__tools .ibtn { width: 30px; height: 30px; }
.msg:hover .msg__tools, .msg:focus-within .msg__tools { display: flex; }
@media (hover: none) { .msg__tools { position: static; display: flex; box-shadow: none; background: transparent; align-self: flex-start; } }
.msg__thread { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 10px; font-size: 13px; color: var(--muted); }
.msg__thread b { color: var(--link); }
.msg__thread:hover { background: var(--surface2); }
.msg__media { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 200px)); gap: 6px; }
.msg__media.one { grid-template-columns: minmax(0, 360px); }
.msg__pic { border-radius: 12px; overflow: hidden; background: var(--surface2); aspect-ratio: 4 / 3; }
.msg__media.one .msg__pic { aspect-ratio: auto; max-height: 360px; }
.msg__pic img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { max-width: 100%; max-height: 72vh; margin: 0 auto; border-radius: 12px; }
.msg__refs { display: flex; flex-wrap: wrap; gap: 6px; }
.refcard { display: inline-flex; align-items: center; gap: 10px; max-width: 360px; padding: 8px 12px 8px 8px; border-radius: 14px; background: var(--surface2); transition: background-color var(--t); }
.refcard:hover { background: var(--surface3); }
.refcard__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; flex: none; }
.refcard__text { display: grid; min-width: 0; line-height: 1.3; }
.refcard__text b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.refcard__text span { font-size: 12px; color: var(--muted); }
.msg__edit { display: grid; gap: 4px; }
.kudos { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(255,214,10,.16), rgba(255,159,10,.1)); max-width: 520px; }
.kudos b { font-size: 16px; }
.kudos p { font-size: 14.5px; margin-top: 2px; }
.kudos > div { flex: 1; min-width: 0; }
.kudos__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #FFD60A; color: #000; flex: none; }
.kudos__mark.small { width: 30px; height: 30px; }
.poll { display: grid; gap: 6px; padding: 14px; border-radius: 18px; background: var(--surface2); max-width: 460px; }
.poll__q { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 2px; }
.poll__q .i { color: var(--purple); }
.poll__opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 12px; background: var(--surface3); overflow: hidden; text-align: left; font-size: 14px; }
.poll__opt:disabled { cursor: default; }
.poll__opt.on { box-shadow: inset 0 0 0 2px var(--accent); }
.poll__bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); transition: width 400ms var(--ease); }
.poll__text { position: relative; flex: 1; display: inline-flex; align-items: center; gap: 6px; }
.poll__n { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.poll__foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--faint); padding-top: 2px; }
.composer { display: grid; gap: 6px; padding: 8px 16px 16px; }
.composer__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.composer__chips:empty { display: none; }
.chip__x { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; margin-right: -4px; }
.chip__x:hover { background: var(--surface3); }
.composer__row { display: flex; align-items: flex-end; gap: 6px; padding: 6px; border-radius: 18px; background: var(--surface2); }
.composer__row textarea { flex: 1; min-height: 40px !important; max-height: 220px; padding: 9px 4px !important; background: transparent !important; box-shadow: none !important; resize: none; }
.composer__row .ibtn.solid { background: var(--accent); color: #fff; }
.chat__thread { width: 360px; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat__threadhead { display: flex; align-items: center; gap: 8px; padding: 12px 10px 12px 18px; border-bottom: 1px solid var(--line); min-height: 62px; }
.chat__threadhead b { font-size: 16px; }
.chat__threadhead .ibtn { margin-left: auto; }
.chat__threadlist { flex: 1; overflow: auto; padding: 10px 6px; }
@media (max-width: 1100px) { .chat__thread { position: absolute; right: 0; top: 0; bottom: 0; z-index: 8; background: var(--canvas); box-shadow: var(--shadow); } .chat { position: relative; } }
@media (max-width: 760px) {
  .chat { grid-template-columns: 1fr; }
  .chat__side { display: none; border: 0; }
  .chat.show-list .chat__side { display: grid; }
  .chat.show-list .chat__main { display: none; }
  .chat__back { display: inline-grid; margin-left: -8px; }
  .chat__head { padding: 8px 12px; }
  .chat__thread { width: 100%; }
  .composer { padding: 6px 10px 12px; }
}

/* ==========================================================================
   Pages
   ========================================================================== */
.pages { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100%; }
.pages__side { position: sticky; top: 0; align-self: start; max-height: calc(100vh - var(--bar-h)); overflow: auto; padding: 12px 10px 30px; border-right: 1px solid var(--line); }
.pages__sidehead { display: flex; gap: 6px; margin-bottom: 8px; }
.pages__sidehead input { min-height: 36px !important; font-size: 14px; }
.pages__sidehead .ibtn { width: 36px; height: 36px; border-radius: 10px; }
.pages__tree { display: grid; gap: 1px; }
.ptree__row { display: flex; align-items: center; gap: 2px; border-radius: 10px; padding-right: 4px; transition: background-color var(--t); }
.ptree__row:hover { background: var(--surface); }
.ptree__row.on { background: var(--surface2); }
.ptree__caret { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--faint); flex: none; transition: transform 160ms var(--ease); }
button.ptree__caret:hover { background: var(--surface3); color: var(--ink); }
.ptree__caret.open { transform: rotate(90deg); }
.ptree__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 4px; font-size: 14px; color: var(--muted); }
.ptree__row.on .ptree__link, .ptree__link:hover { color: var(--ink); }
.ptree__link span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptree__icon { width: 20px; text-align: center; flex: none; }
.ptree__add { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--faint); opacity: 0; }
.ptree__row:hover .ptree__add { opacity: 1; }
.ptree__add:hover { background: var(--surface3); color: var(--ink); }
@media (hover: none) { .ptree__add { opacity: 1; } }
.pages__view { padding: 26px clamp(18px, 5vw, 64px) 80px; max-width: 900px; width: 100%; margin: 0 auto; display: grid; gap: 18px; align-content: start; }
.pages__toggle { display: none !important; }
.page__head { display: grid; gap: 10px; }
.page__titlerow { display: flex; align-items: center; gap: 10px; }
.page__icon { font-size: 34px; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; transition: background-color var(--t); }
.page__icon:hover { background: var(--surface); }
.page__title { font-size: clamp(28px, 4vw, 40px) !important; font-weight: 750; letter-spacing: -0.035em; background: transparent !important; padding: 2px 0 !important; min-height: 0 !important; box-shadow: none !important; }
.page__title:focus { background: var(--surface) !important; padding: 2px 8px !important; }
.page__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page__meta > .small { display: inline-flex; align-items: center; gap: 6px; }
.page__tools { margin-left: auto; }
.page__banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 14px; }
.page__banner.conflict { background: rgba(255,159,10,.14); }
.page__body { font-size: 16px; line-height: 1.65; }
.md { display: grid; gap: 12px; }
.md h2 { font-size: 26px; margin-top: 14px; letter-spacing: -0.025em; }
.md h3 { font-size: 20px; margin-top: 10px; letter-spacing: -0.02em; }
.md h4 { font-size: 16px; margin-top: 6px; }
.md p { white-space: pre-wrap; overflow-wrap: anywhere; }
.md ul, .md ol { margin: 0; padding-left: 24px; display: grid; gap: 4px; }
.md li.task { list-style: none; margin-left: -24px; display: flex; align-items: flex-start; gap: 10px; }
.md li.task input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--green); flex: none; }
.md li.task .done { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.md li > ul { margin-top: 4px; }
.md blockquote { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--surface); font-size: 17px; }
.md blockquote.callout { background: var(--accent-soft); }
.md pre { margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--surface); overflow-x: auto; font-size: 13.5px; }
.md code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; padding: 1px 5px; border-radius: 6px; background: var(--surface2); }
.md pre code { padding: 0; background: none; }
.md hr { border: 0; height: 1px; background: var(--line); margin: 8px 0; }
.md strong { font-weight: 700; }
.page__editor { display: grid; gap: 8px; }
.page__toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 6px; border-radius: 14px; background: var(--surface); }
.ptool { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); }
.ptool:hover { background: var(--surface2); color: var(--ink); }
.page__saved { margin-left: auto; padding-right: 8px; }
.page__textarea { min-height: 50vh; font-size: 16px; line-height: 1.65; padding: 16px 18px !important; border-radius: 16px; background: var(--surface) !important; }
.page__children { display: grid; gap: 10px; }
.page__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.page__card { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: var(--surface); transition: background-color var(--t); }
.page__card:hover { background: var(--surface2); }
.page__cardicon { font-size: 22px; }
.page__foot { display: grid; gap: 18px; margin-top: 14px; }
@media (max-width: 860px) {
  .pages { grid-template-columns: 1fr; }
  .pages__side { display: none; position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .pages.tree-open .pages__side { display: block; }
  .pages__toggle { display: inline-flex !important; }
  .pages__view { padding-top: 16px; }
}

/* ==========================================================================
   Goals
   ========================================================================== */
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
@media (max-width: 420px) { .goal-grid { grid-template-columns: 1fr; } }
.gcard { display: grid; gap: 14px; padding: 18px; border-radius: 24px; background: var(--surface); text-align: left; transition: background-color var(--t); min-width: 0; }
.gcard:hover { background: var(--surface2); }
.gcard__top { display: flex; align-items: center; gap: 14px; }
.gcard__title { flex: 1; min-width: 0; display: grid; gap: 6px; }
.gcard__title b { font-size: 17px; letter-spacing: -0.015em; line-height: 1.3; }
.gcard__krs { display: grid; gap: 10px; }
.kr { display: grid; gap: 5px; }
.kr__top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); }
.kr__top b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gcard__update { font-size: 13.5px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }
.gcard__update b { color: var(--ink); }
.krs { display: grid; gap: 12px; }
.kr-edit { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--surface2); }
.kr-edit__top { display: flex; align-items: center; gap: 8px; }
.kr__title { flex: 1; font-weight: 600; }
.kr-edit__nums { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kr__num { width: 92px !important; min-height: 34px !important; }
.kr__unit { width: 110px !important; min-height: 34px !important; }
.kr-edit input:disabled { opacity: .7; }
.gupdates { display: grid; gap: 14px; margin-top: 6px; }
.gupdate { display: flex; gap: 10px; }
.gupdate p { font-size: 14.5px; white-space: pre-wrap; margin-top: 2px; }
.gupdate input[type="range"] { accent-color: var(--purple); }

/* ==========================================================================
   Bugs
   ========================================================================== */
.bboard { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 10px; }
@media (max-width: 900px) { .bboard { grid-template-columns: repeat(5, 80vw); scroll-snap-type: x mandatory; margin: 0 -14px; padding: 0 14px 10px; } .bboard .pcol { scroll-snap-align: center; } }
.bug .row { gap: 6px; }
.bug__title { font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.shot { position: relative; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--surface2); }
.shot__open { width: 100%; height: 100%; }
.shot__open img { width: 100%; height: 100%; object-fit: cover; }
.shot__x { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.6); color: #fff; }
.shot.add { display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--surface3); background: transparent; }
.shot.add:hover { color: var(--ink); background: var(--surface); }

/* ==========================================================================
   Additions to Meetings, Team, Today, Boards, Updates
   ========================================================================== */
.rsvp { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rsvp:empty { display: none; }
.toggle { position: relative; }
.toggle.rsvp-yes { box-shadow: inset 0 0 0 1.5px var(--green); }
.toggle.rsvp-maybe { box-shadow: inset 0 0 0 1.5px var(--amber); }
.toggle.rsvp-no { opacity: .55; }
.rsvp__mark { font-size: 11px; font-weight: 800; }
.toggle.rsvp-yes .rsvp__mark { color: var(--green); } .toggle.rsvp-maybe .rsvp__mark { color: var(--amber); }
.pcard__face { position: relative; display: inline-block; border-radius: 50%; }
.pcard__face.on::after, .pcard__face.away::after { width: 16px; height: 16px; right: 2px; bottom: 2px; box-shadow: 0 0 0 3px var(--surface); }
.pcard:hover .pcard__face::after { box-shadow: 0 0 0 3px var(--surface2); }
.pcard__status { font-size: 13.5px; }
.pcard__where { font-size: 12.5px; font-weight: 600; color: var(--green); }
.kudos-list { display: grid; gap: 10px; }
.kudos-item { display: flex; gap: 10px; align-items: flex-start; }
.kudos-item p { font-size: 14px; }
.teamrows__face { position: relative; flex: none; border-radius: 50%; }
.teamrows__face.on::after, .teamrows__face.away::after { box-shadow: 0 0 0 2px var(--surface); }
.teamrows__where { font-weight: 500; color: var(--green); font-size: 13px; }
.goalrows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.goalrows a { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 14px; }
.goalrows a:hover { background: var(--surface2); }
.goalrows__text { flex: 1; min-width: 0; display: grid; gap: 7px; }
.goalrows__text b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.goalrows__pct { font-size: 14px; font-weight: 700; color: #8E7CFF; font-variant-numeric: tabular-nums; }
.tile__cta { justify-self: start; }
.react.on-comments { background: var(--accent-soft); color: var(--link); }
.ucard > .discussion { border-top: 1px solid var(--line); }
.bpanel { position: absolute; top: 60px; right: 14px; bottom: 96px; z-index: 7; width: min(360px, calc(100% - 28px)); overflow: auto; padding: 14px 16px; border-radius: 22px; background: var(--float); box-shadow: var(--shadow); display: grid; align-content: start; gap: 10px; }
.bpanel__head { display: flex; align-items: center; justify-content: space-between; }
.bpanel .discussion { border-top: 0; padding-top: 0; }
.bpanel .discussion__head .block__label { display: none; }
.cursors { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; z-index: 100001; }
.rcursor { position: absolute; left: 0; top: 0; transform-origin: 0 0; transition: transform 90ms linear; will-change: transform; }
.rcursor[hidden] { display: none; }
.rcursor svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.rcursor path { fill: var(--c); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.rcursor__name { position: absolute; left: 14px; top: 16px; padding: 3px 8px; border-radius: 8px; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bi.rsel { outline: 2px solid var(--rsel); outline-offset: 3px; border-radius: 4px; }
.bi.rsel::after { content: attr(data-who); position: absolute; left: -3px; top: -24px; padding: 2px 7px; border-radius: 6px; background: var(--rsel); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .rcursor { transition: none; } .dots i { animation: none; } }

/* ---------- dragging cards (Tasks, Social, Bugs) ---------- */
.tcol.drop-over, .pcol.drop-over { background: var(--surface2); }
.pcol { transition: background-color var(--t); }
.drag-placeholder { opacity: .25; }
.drag-ghost { position: fixed !important; left: 0; top: 0; z-index: 80; margin: 0; pointer-events: none; box-shadow: var(--shadow); background: var(--surface3) !important; }
.tcard, .post { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.phone.drop-over { box-shadow: inset 0 0 0 1.5px #2c2c2e, 0 0 0 3px var(--accent); }
.shots.drop-over { border-radius: 14px; box-shadow: 0 0 0 3px var(--accent); }
