/* Neotopia Staff — design tokens, layout and components. Dark by default, light available. */

:root {
  --bg: #0a0c12;
  --bg-rail: #0d1017;
  --panel: #10131b;
  --panel-2: #151925;
  --panel-3: #1b2030;
  --hover: rgba(255, 255, 255, .045);
  --line: #1f2433;
  --line-2: #2a3042;
  --text: #e9ebf3;
  --text-2: #a5abc0;
  --text-3: #6d748b;
  --accent: #8b5cf6;
  --accent-hi: #a78bfa;
  --accent-soft: rgba(139, 92, 246, .15);
  --accent-line: rgba(139, 92, 246, .45);
  --on-accent: #ffffff;
  --green: #34d399;  --green-soft: rgba(52, 211, 153, .14);
  --amber: #fbbf24;  --amber-soft: rgba(251, 191, 36, .14);
  --red: #f87171;    --red-soft: rgba(248, 113, 113, .14);
  --blue: #60a5fa;   --blue-soft: rgba(96, 165, 250, .14);
  --pink: #f472b6;
  --bubble-player: #171b27;
  --bubble-staff: #221a3d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
  --r: 12px;
  --r-sm: 8px;
  --r-xs: 6px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-rail: #ffffff;
  --panel: #ffffff;
  --panel-2: #f3f4f8;
  --panel-3: #e9ebf2;
  --hover: rgba(15, 23, 42, .045);
  --line: #e6e8ef;
  --line-2: #d8dbe5;
  --text: #151826;
  --text-2: #4f566b;
  --text-3: #858ba0;
  --accent: #7c3aed;
  --accent-hi: #6d28d9;
  --accent-soft: rgba(124, 58, 237, .1);
  --accent-line: rgba(124, 58, 237, .35);
  --green: #059669;  --green-soft: rgba(5, 150, 105, .1);
  --amber: #b45309;  --amber-soft: rgba(217, 119, 6, .12);
  --red: #dc2626;    --red-soft: rgba(220, 38, 38, .1);
  --blue: #2563eb;   --blue-soft: rgba(37, 99, 235, .1);
  --bubble-player: #f1f2f7;
  --bubble-staff: #efe9ff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--accent-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- scrollbars ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }

/* ---------- primitives ---------- */
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 15px; height: 15px; }
.icon.xs { width: 13px; height: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 34px; padding: 0 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font-weight: 550; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, transform .06s;
}
.btn:hover { background: var(--panel-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-soft); border-color: transparent; }
.btn.success { background: var(--green-soft); border-color: transparent; color: var(--green); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; gap: 5px; }
.btn.icon-only { width: 34px; padding: 0; }
.btn.sm.icon-only { width: 28px; }
.btn.block { width: 100%; height: 40px; }

.input, .textarea, .select {
  width: 100%; border: 1px solid var(--line-2); background: var(--panel-2);
  border-radius: var(--r-sm); padding: 0 11px; height: 38px; outline: none;
  transition: border-color .12s, box-shadow .12s, background .12s;
}
.textarea { padding: 9px 11px; height: auto; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 30px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.hint { font-size: 12.5px; color: var(--text-3); }
.error-text { font-size: 13px; color: var(--red); }

.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; background: var(--panel-3); }
.avatar.sm { width: 22px; height: 22px; }
.avatar.xs { width: 18px; height: 18px; }
.avatar.lg { width: 56px; height: 56px; }
.avatar.initials { display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--text-2); }
.avatar.sm.initials { font-size: 9.5px; }
.avatar-stack { display: flex; }
.avatar-stack .avatar { border: 2px solid var(--panel); margin-left: -6px; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--panel-3); color: var(--text-2);
}
.chip.accent { background: var(--accent-soft); color: var(--accent-hi); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.kbd { font: 11px var(--mono); padding: 1px 5px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; color: var(--text-3); }
.badge { min-width: 19px; height: 19px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.muted { color: var(--text-3); }
.spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 8px; }
.stack { display: grid; gap: 14px; }

/* ---------- app shell ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); height: 100dvh; }
.rail {
  display: flex; flex-direction: column; background: var(--bg-rail); border-right: 1px solid var(--line);
  padding: 16px 12px 12px; gap: 4px; min-height: 0;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--line-2); }
.brand b { display: block; font-size: 15px; letter-spacing: -.01em; }
.brand span { display: block; font-size: 12px; color: var(--text-3); }
.nav a {
  display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 11px; border-radius: var(--r-sm);
  color: var(--text-2); font-weight: 550; text-decoration: none; transition: background .12s, color .12s;
}
.nav a:hover { background: var(--hover); color: var(--text); }
.nav a.on { background: var(--accent-soft); color: var(--text); }
.nav a.on .icon { color: var(--accent-hi); }
.nav a .badge { margin-left: auto; }
.rail-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.me-button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: var(--r-sm);
  background: none; border: 0; cursor: pointer; text-align: left;
}
.me-button:hover { background: var(--hover); }
.me-button b { display: block; font-size: 13.5px; }
.me-button span { display: block; font-size: 12px; color: var(--text-3); }
.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.tabbar { display: none; }

.page-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px 14px; }
.page-head h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.page-head p { margin: 2px 0 0; color: var(--text-3); font-size: 13px; }

/* ---------- inbox ---------- */
.inbox { flex: 1; min-height: 0; display: grid; grid-template-columns: 360px minmax(0, 1fr) 300px; }
.inbox.no-details { grid-template-columns: 360px minmax(0, 1fr); }
.pane { min-height: 0; display: flex; flex-direction: column; }
.list-pane { border-right: 1px solid var(--line); background: var(--panel); }
.list-head { padding: 16px 16px 10px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); }
.list-head h1 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.search { position: relative; }
.search .icon { position: absolute; left: 11px; top: 10px; color: var(--text-3); width: 16px; height: 16px; }
.search .input { padding-left: 34px; height: 36px; }
.search .kbd { position: absolute; right: 9px; top: 9px; }
.segments { display: flex; gap: 2px; padding: 3px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.segments button {
  flex: 1 1 auto; height: 28px; padding: 0 8px; border: 0; background: none; border-radius: 7px; cursor: pointer; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.segments button:hover { color: var(--text); }
.segments button.on { background: var(--panel-3); color: var(--text); box-shadow: var(--shadow-sm); }
.segments .count { font-size: 11px; color: var(--text-3); font-weight: 700; }
.segments button.on .count { color: var(--accent-hi); }
.ticket-list { flex: 1; overflow-y: auto; padding: 6px; }
.ticket-item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 11px; padding: 11px 10px; border-radius: 10px;
  cursor: pointer; position: relative; text-decoration: none; color: inherit;
}
.ticket-item:hover { background: var(--hover); text-decoration: none; }
.ticket-item.on { background: var(--accent-soft); }
.ticket-item > .avatar { width: 36px; height: 36px; }
.ticket-item .top { display: flex; align-items: baseline; gap: 8px; }
.ticket-item .who { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-item .when { margin-left: auto; font-size: 12px; color: var(--text-3); flex: none; }
.ticket-item .what { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.ticket-item .meta { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.ticket-item.unread::before { content: ""; position: absolute; left: 2px; top: 25px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.list-empty { padding: 48px 24px; text-align: center; color: var(--text-3); }
.list-empty .icon { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--text-3); }
.list-empty b { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 4px; }

.convo { background: var(--bg); min-width: 0; }
.convo-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--panel); }
.convo-head .title { min-width: 0; }
.convo-head h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.convo-head .sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo-head .actions { margin-left: auto; display: flex; gap: 6px; flex: none; }
.back { display: none; }
.messages { flex: 1; overflow-y: auto; padding: 20px 24px 12px; display: flex; flex-direction: column; gap: 2px; }
.messages-inner { max-width: 820px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.load-older { align-self: center; margin-bottom: 12px; }

.form-card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r); padding: 16px 18px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.form-card .kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.form-card h3 { margin: 8px 0 6px; font-size: 16.5px; letter-spacing: -.01em; }
.form-card .details { color: var(--text-2); white-space: pre-wrap; word-wrap: break-word; }
.form-card .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.form-card .facts div { font-size: 12.5px; }
.form-card .facts span.k { display: block; color: var(--text-3); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

.msg-group { display: flex; gap: 10px; margin-top: 12px; max-width: 78%; }
.msg-group.staff { flex-direction: row-reverse; margin-left: auto; }
.msg-group .avatar { margin-top: 2px; }
.msg-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msg-group.staff .msg-body { align-items: flex-end; }
.msg-meta { display: flex; align-items: baseline; gap: 7px; font-size: 12px; color: var(--text-3); padding: 0 4px; }
.msg-meta b { color: var(--text); font-size: 13px; }
.msg-meta .role { color: var(--accent-hi); font-weight: 600; }
.bubble {
  background: var(--bubble-player); border: 1px solid var(--line); padding: 8px 12px; border-radius: 14px;
  white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; max-width: 100%;
}
.msg-group.player .bubble { border-top-left-radius: 5px; }
.msg-group.staff .bubble { background: var(--bubble-staff); border-color: transparent; border-top-right-radius: 5px; }
.bubble + .bubble { border-radius: 14px; }
.bubble code { font: 12.5px var(--mono); background: var(--panel-3); padding: 1px 5px; border-radius: 5px; }
.bubble pre { font: 12.5px var(--mono); background: var(--panel-3); padding: 9px 11px; border-radius: 8px; margin: 4px 0; overflow-x: auto; white-space: pre; }
.bubble .mention { color: var(--accent-hi); font-weight: 600; background: var(--accent-soft); padding: 0 3px; border-radius: 4px; }
.bubble .edited { font-size: 11px; color: var(--text-3); margin-left: 4px; }
.attachments { display: flex; flex-wrap: wrap; gap: 6px; }
.attachments img { max-width: 280px; max-height: 220px; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; object-fit: cover; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--text); }
.event { align-self: center; display: flex; align-items: center; gap: 7px; margin: 14px 0 4px; padding: 5px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); max-width: 90%; }
.event .icon { width: 14px; height: 14px; }
.event time { color: var(--text-3); }
.day-sep { align-self: center; font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin: 18px 0 2px; }

.presence { display: flex; align-items: center; gap: 8px; min-height: 22px; padding: 0 24px; font-size: 12.5px; color: var(--text-3); max-width: 868px; margin: 0 auto; width: 100%; }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-hi); animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .2s; } .typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.composer-wrap { padding: 0 24px 18px; }
.composer { max-width: 820px; margin: 0 auto; border: 1px solid var(--line-2); background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s; }
.composer:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer textarea { display: block; width: 100%; border: 0; background: transparent; resize: none; outline: none; padding: 12px 14px 6px; min-height: 46px; max-height: 240px; line-height: 1.5; }
.composer-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px 10px; }
.toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); cursor: pointer; user-select: none; padding: 4px 6px; border-radius: 7px; }
.toggle:hover { background: var(--hover); }
.toggle input { appearance: none; width: 28px; height: 16px; border-radius: 99px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked { background: var(--accent); }
.toggle input:checked::after { transform: translateX(12px); }
.composer .count { font-size: 11.5px; color: var(--text-3); }
.composer .count.warn { color: var(--amber); }
.composer-note { max-width: 820px; margin: 6px auto 0; font-size: 11.5px; color: var(--text-3); display: flex; gap: 10px; white-space: nowrap; overflow: hidden; }
@media (max-width: 1100px) { .composer-note .wide-only { display: none; } }
.closed-bar { max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px dashed var(--line-2); color: var(--text-2); }
.claim-banner { max-width: 820px; margin: 0 auto 8px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }

.details-pane { border-left: 1px solid var(--line); background: var(--panel); overflow-y: auto; overflow-x: hidden; padding: 20px 18px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 18px; }
.details-pane .stack { grid-template-columns: minmax(0, 1fr); }
.person { display: grid; justify-items: center; text-align: center; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.person b { font-size: 15.5px; }
.facts-list { display: grid; gap: 11px; }
.facts-list div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.facts-list > div > span:first-child { color: var(--text-3); }
.facts-list b span { user-select: all; }
.facts-list b { font-weight: 550; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.section-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 8px; }
.linked-card > span:last-child { white-space: nowrap; }
.linked-card { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; font-size: 13px; }
.linked-card:hover { border-color: var(--line-2); }
.stars { color: var(--amber); letter-spacing: 1px; }

.empty-state { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px; color: var(--text-3); }
.empty-state .art { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); display: grid; place-items: center; margin: 0 auto 14px; color: var(--accent-hi); }
.empty-state .art .icon { width: 28px; height: 28px; }
.empty-state h3 { margin: 0 0 4px; color: var(--text); font-size: 16px; }

/* ---------- board ---------- */
.board-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.board-tools { display: flex; align-items: center; gap: 10px; padding: 0 24px 14px; flex-wrap: wrap; }
.board-tools .search { width: 260px; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chips button { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.filter-chips button:hover { color: var(--text); background: var(--hover); }
.filter-chips button.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--text); }
.kind-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.kind-bug { --k: var(--red); --k-soft: var(--red-soft); }
.kind-feature { --k: var(--accent-hi); --k-soft: var(--accent-soft); }
.kind-task { --k: var(--blue); --k-soft: var(--blue-soft); }
.kind-idea { --k: var(--amber); --k-soft: var(--amber-soft); }
.kind-dot { background: var(--k); }
.columns { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 14px; padding: 0 24px 20px; overflow-x: auto; }
.column { min-height: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.column-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 10px 14px; }
.column-head h2 { margin: 0; font-size: 13.5px; font-weight: 700; }
.column-head .n { font-size: 12px; color: var(--text-3); font-weight: 700; background: var(--panel-3); border-radius: 99px; padding: 1px 8px; }
.col-dot { width: 9px; height: 9px; border-radius: 50%; }
.col-todo .col-dot { background: var(--text-3); }
.col-doing .col-dot { background: var(--amber); }
.col-done .col-dot { background: var(--green); }
.cards { flex: 1; overflow-y: auto; padding: 2px 10px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.quick-add { padding: 0 10px 8px; }
.quick-add .input { height: 36px; }
.card {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px 10px;
  cursor: grab; user-select: none; transition: border-color .12s, box-shadow .12s, transform .12s; position: relative;
  box-shadow: var(--shadow-sm); touch-action: pan-y;
}
.card:hover { border-color: var(--line-2); }
.card:focus-visible { outline: 2px solid var(--accent); }
.card .card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.card .kind { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--k); }
.card h3 { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.4; word-wrap: break-word; }
.card .card-meta { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: 12px; color: var(--text-3); }
.card .card-meta .row { gap: 4px; }
.card.done h3 { color: var(--text-2); }
.prio { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; }
.prio.urgent { color: var(--red); }
.prio.high { color: var(--amber); }
.prio.low { color: var(--text-3); }
.card.ghost { position: fixed; z-index: 100; pointer-events: none; box-shadow: var(--shadow-lg); transform: rotate(2deg); cursor: grabbing; opacity: .96; }
.card.lifted { opacity: .35; }
.drop-slot { height: 4px; border-radius: 4px; background: var(--accent); margin: -2px 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.column.drop-target { border-color: var(--accent-line); }
.show-older { margin: 2px 10px 10px; }
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none; }

/* ---------- dialogs ---------- */
.overlay { position: fixed; inset: 0; background: rgba(4, 6, 12, .6); backdrop-filter: blur(3px); z-index: 50; display: grid; place-items: start center; padding: 6vh 16px 16px; overflow-y: auto; animation: fade .12s ease-out; }
:root[data-theme="light"] .overlay { background: rgba(15, 23, 42, .35); }
.dialog { width: min(720px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg); animation: rise .16s ease-out; }
.dialog.narrow { width: min(460px, 100%); }
.dialog-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.dialog-head h2 { margin: 0; font-size: 16px; }
.dialog-body { padding: 16px 18px 18px; display: grid; gap: 16px; }
.dialog-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 0 18px 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.99); } }
.title-input { font-size: 19px; font-weight: 700; letter-spacing: -.01em; border: 1px solid transparent; background: transparent; padding: 6px 8px; margin: -6px -8px; border-radius: 8px; width: calc(100% + 16px); outline: none; }
.title-input:hover { background: var(--hover); }
.title-input:focus { border-color: var(--accent-line); background: var(--panel-2); }
.props { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.props .select, .props .input { height: 34px; font-size: 13px; }
.comment { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
.comment .avatar { width: 28px; height: 28px; }
.comment .text { white-space: pre-wrap; word-wrap: break-word; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; margin-top: 3px; }
.activity-list { display: grid; gap: 6px; font-size: 12.5px; color: var(--text-3); }
.activity-list b { color: var(--text-2); font-weight: 600; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

.menu { position: fixed; z-index: 60; min-width: 200px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 11px; box-shadow: var(--shadow-lg); padding: 5px; animation: rise .1s ease-out; }
.menu button, .menu a { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 7px; cursor: pointer; font-size: 13.5px; color: var(--text); text-align: left; text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--hover); text-decoration: none; }
.menu .sep { height: 1px; background: var(--line); margin: 5px 4px; }
.menu .danger { color: var(--red); }
.menu .label { padding: 6px 10px 4px; font-size: 11.5px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 11px; background: var(--panel-3); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: 13.5px; animation: rise .16s ease-out; }
.toast.error .icon { color: var(--red); }
.toast.ok .icon { color: var(--green); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .85); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* ---------- team & account ---------- */
.page-scroll { flex: 1; overflow-y: auto; }
.page-body { max-width: 920px; padding: 0 24px 40px; display: grid; gap: 16px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 14.5px; }
.panel-body { padding: 16px; display: grid; gap: 14px; }
.member { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; }
.member .avatar { width: 38px; height: 38px; }
.member .name { font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.member .sub { font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker { max-height: 280px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 10px; padding: 4px; }
.pick { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 8px; border: 0; background: none; cursor: pointer; text-align: left; }
.pick:hover { background: var(--hover); }
.pick.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.pick:disabled { opacity: .45; cursor: not-allowed; }
.pick b { display: block; font-size: 13.5px; }
.pick span { display: block; font-size: 12px; color: var(--text-3); }
.link-box { display: flex; gap: 8px; }
.link-box .input { font: 12.5px var(--mono); }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: 11px; background: var(--accent-soft); color: var(--text); font-size: 13px; }
.notice .icon { color: var(--accent-hi); margin-top: 1px; }
.notice.warn { background: var(--amber-soft); }
.notice.warn .icon { color: var(--amber); }

/* ---------- sign in ---------- */
.auth {
  min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(52, 211, 153, .10), transparent 60%),
    var(--bg);
}
.auth-card {
  width: min(400px, 100%); padding: 30px 28px 26px; border-radius: 20px;
  background: linear-gradient(170deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
}
:root[data-theme="light"] .auth-card { background: var(--panel); }
.auth-card .logo { width: 56px; height: 56px; border-radius: 15px; image-rendering: pixelated; box-shadow: 0 0 0 1px var(--line-2), 0 10px 30px rgba(139, 92, 246, .3); }
.auth-card h1 { margin: 18px 0 4px; font-size: 21px; letter-spacing: -.02em; }
.auth-card p { margin: 0 0 22px; color: var(--text-2); }
.auth-card h1.solo { margin-bottom: 22px; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .foot { margin-top: 18px; font-size: 12.5px; color: var(--text-3); text-align: center; }
.pw-meter { height: 4px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s, background .2s; }

.loading { display: grid; place-items: center; min-height: 100dvh; color: var(--text-3); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line-2); border-top-color: var(--accent); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .inbox { grid-template-columns: 340px minmax(0, 1fr); }
  .details-pane { display: none; }
  .inbox.show-details .details-pane { display: grid; position: fixed; right: 0; top: 0; bottom: 0; width: min(340px, 92vw); z-index: 40; box-shadow: var(--shadow-lg); }
}
@media (min-width: 1281px) { .details-toggle { display: none; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .rail { display: none; }
  .tabbar {
    display: flex; border-top: 1px solid var(--line); background: var(--bg-rail);
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--text-3); font-size: 11px; font-weight: 600; text-decoration: none; border-radius: 10px; position: relative; }
  .tabbar a.on { color: var(--accent-hi); }
  .tabbar .badge { position: absolute; top: 0; left: calc(50% + 6px); height: 17px; min-width: 17px; font-size: 10px; }
  .inbox, .inbox.no-details { grid-template-columns: 1fr; }
  .inbox .convo { display: none; }
  .inbox.has-ticket .list-pane { display: none; }
  .inbox.has-ticket .convo { display: flex; }
  .back { display: inline-flex; }
  .messages { padding: 14px 12px 8px; }
  .msg-group { max-width: 92%; }
  .composer-wrap { padding: 0 10px 10px; }
  .presence { padding: 0 12px; }
  .convo-head { padding: 10px 12px; }
  .convo-head .actions .label-text { display: none; }
  .convo-head > .avatar { display: none; }
  .convo-head { gap: 8px; }
  .convo-head h2 { font-size: 15px; }
  .convo-head .actions { gap: 2px; }
  .page-head { padding: 14px 16px 10px; }
  .board-tools { padding: 0 16px 12px; }
  .board-tools .search { width: 100%; }
  .columns { grid-template-columns: repeat(3, 86vw); padding: 0 16px 16px; scroll-snap-type: x mandatory; }
  .column { scroll-snap-align: center; }
  .page-body { padding: 0 16px 32px; }
  .props { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .composer-note { display: none; }
}
.dialog:focus { outline: none; }

/* ---------- attachments ---------- */
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.att-tile {
  position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; padding: 0;
  background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center;
  color: var(--text-3); font: inherit;
}
button.att-tile { cursor: zoom-in; transition: border-color .12s, transform .12s; }
button.att-tile:hover { border-color: var(--line-2); }
.att-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att-tile .state { display: grid; justify-items: center; gap: 6px; padding: 8px; font-size: 11.5px; text-align: center; min-width: 0; }
.att-tile .fname { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.att-tile .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.att-tile .play .icon { margin-left: 2px; }
.att-tile .dur { position: absolute; right: 6px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .6); padding: 1px 6px; border-radius: 6px; }
.att-tile .rm {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .12s;
}
.att-tile:hover .rm, .att-tile:focus-within .rm, .att-tile.uploading .rm { opacity: 1; }
@media (hover: none) { .att-tile .rm { opacity: 1; } }
.att-tile .veil { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; background: rgba(8, 10, 16, .55); color: #fff; font-size: 11.5px; text-align: center; padding: 8px; }
.att-tile .veil b { font-size: 15px; }
.att-tile.failed .veil { background: rgba(60, 12, 12, .7); gap: 6px; }
.att-progress { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.att-progress i { display: block; height: 100%; background: var(--accent-hi); transition: width .25s; }
.att-add {
  aspect-ratio: 4 / 3; border: 1.5px dashed var(--line-2); border-radius: 10px; display: grid; place-content: center;
  justify-items: center; gap: 4px; color: var(--text-3); cursor: pointer; font-size: 12.5px; font-weight: 600;
  transition: border-color .12s, color .12s, background .12s;
}
.att-add:hover { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
.dialog.dropping { box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg); }
.dialog.dropping::after {
  content: "Drop to attach"; position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  background: var(--accent); color: var(--on-accent); font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 99px; pointer-events: none;
}
.dialog { position: relative; }
.card-cover { margin: -10px -12px 9px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px 10px 0 0; background: var(--panel-3); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

.viewer { position: fixed; inset: 0; z-index: 95; background: #05060a; display: grid; grid-template-rows: auto minmax(0, 1fr); animation: fade .12s ease-out; color: #fff; }
.viewer-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.viewer-title { display: grid; min-width: 0; }
.viewer-title b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-title span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.viewer-count { font-size: 12.5px; color: rgba(255, 255, 255, .7); margin-right: 6px; }
.viewer-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.viewer-btn:hover { background: rgba(255, 255, 255, .18); text-decoration: none; }
.viewer-stage { display: grid; place-items: center; min-height: 0; padding: 0 72px 24px; }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); background: #000; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.viewer-nav:hover { background: rgba(255, 255, 255, .2); }
.viewer-nav.prev { left: 16px; }
.viewer-nav.next { right: 16px; }
.viewer-nav.next .icon { transform: rotate(180deg); }
.viewer-nav[hidden] { display: none; }
@media (max-width: 860px) {
  .viewer-stage { padding: 0 8px 16px; }
  .viewer-nav { top: auto; bottom: 18px; transform: none; }
  .att-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* ---------- new card ---------- */
.input.big { height: 46px; font-size: 16px; font-weight: 600; }
.kind-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.kind-pick button {
  height: 34px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent;
  color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; cursor: pointer;
  transition: background .12s, color .12s, box-shadow .12s;
}
.kind-pick button .icon { color: var(--k); }
.kind-pick button:hover { color: var(--text); background: var(--hover); }
.kind-pick button.on { background: var(--k-soft); border-color: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--k); }
.add-files {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border: 1.5px dashed var(--line-2);
  border-radius: 12px; color: var(--text-3); cursor: pointer; font-weight: 600; font-size: 13px; transition: border-color .12s, color .12s, background .12s;
}
.add-files:hover { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }
details.more > summary { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; font-weight: 600; padding: 2px 0; }
details.more > summary:hover { color: var(--text); }
details.more[open] > summary .icon { transform: rotate(180deg); }
details.more .props { margin-top: 10px; }
.uploading-title { display: grid; gap: 2px; }
.uploading-title b { font-size: 15px; }
.card.flash { animation: flash 1.8s ease-out; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 2px var(--accent), 0 0 24px var(--accent-soft); } 100% { box-shadow: var(--shadow-sm); } }
.shake { animation: shake .35s; border-color: var(--red) !important; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- events ---------- */
.page-body.wide { max-width: 1180px; }
.small { font-size: 12.5px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chip.muted-chip { background: var(--panel-3); color: var(--text-3); }
.crumb { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--text-3); text-decoration: none; }
.crumb:hover { color: var(--text); text-decoration: none; }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.event-tile {
  display: grid; gap: 10px; padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  color: inherit; text-decoration: none; transition: border-color .12s, transform .12s, box-shadow .12s;
}
.event-tile:hover { border-color: var(--line-2); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.event-tile h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.event-stats { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--text-2); }
.event-stats span { display: inline-flex; align-items: center; gap: 5px; }
.event-head { align-items: flex-end; flex-wrap: wrap; }
.event-title { display: grid; gap: 4px; min-width: 0; }
.event-title h1 { font-size: 22px; }
.status-seg { flex: none; }
.status-seg button, .sort-seg button, .verdict-seg button { flex: none; }
.tabs { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { height: 40px; padding: 0 12px; border: 0; background: none; color: var(--text-3); font-weight: 650; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 7px; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs .count { font-size: 11.5px; background: var(--panel-3); border-radius: 99px; padding: 1px 7px; color: var(--text-2); }
.idea-composer { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 10px; margin-bottom: 14px; transition: box-shadow .12s; }
.idea-composer .row .input { flex: 1; }
.idea-composer.dropping { box-shadow: 0 0 0 2px var(--accent); }
.composer-extra { display: grid; gap: 10px; }
.wall-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-chips .muted { font-size: 11.5px; }
.idea-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; align-items: start; }
.idea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; display: grid;
}
.idea:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-1px); }
.idea.verdict-in { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.idea.verdict-out { opacity: .55; }
.idea-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-3); }
.idea-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idea-main { padding: 12px 14px 6px; display: grid; gap: 6px; justify-items: start; }
.idea-main h3 { margin: 0; font-size: 14.5px; line-height: 1.4; word-wrap: break-word; }
.idea-main p { margin: 0; color: var(--text-2); font-size: 13px; white-space: pre-wrap; word-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.idea-foot { display: flex; align-items: center; gap: 8px; padding: 8px 12px 12px 14px; font-size: 12px; }
.idea-foot .row { gap: 4px; }
.vote {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1px solid var(--line-2);
  background: transparent; color: var(--text-2); font-weight: 700; font-size: 12.5px; cursor: pointer; transition: background .12s, color .12s, border-color .12s, transform .08s;
}
.vote:hover { color: var(--text); background: var(--hover); }
.vote:active { transform: scale(.95); }
.vote.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-hi); }
.vote.big { height: 36px; padding: 0 14px; font-size: 13.5px; }
.idea-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.verdict-seg button { display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; }
.verdict-seg button.on.v-in { color: var(--green); }
.verdict-seg button.on.v-maybe { color: var(--amber); }
.verdict-seg button.on.v-out { color: var(--text-3); }
.idea-title { margin: 0; font-size: 19px; }
.idea-text { color: var(--text-2); white-space: pre-wrap; word-wrap: break-word; }
.task-list { overflow: hidden; }
.task-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.task-row:last-child { border-bottom: 0; }
.task-row:hover { background: var(--hover); text-decoration: none; }
.task-row .grow { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-chip { gap: 6px; }
.col-chip .col-dot { width: 7px; height: 7px; border-radius: 50%; }
.col-todo .col-dot { background: var(--text-3); }
.col-doing .col-dot { background: var(--amber); }
.col-done .col-dot { background: var(--green); }
.ghost-avatar { background: transparent; border: 1px dashed var(--line-2); }
.event-tag { display: inline-flex; align-items: center; gap: 4px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
@media (max-width: 860px) {
  .tabs { padding: 0 16px; }
  .event-head .status-seg { order: 3; width: 100%; overflow-x: auto; }
  .idea-wall { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
}
