:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --side: #fafaf8;
  --line: rgba(17, 17, 17, 0.08);
  --line-strong: rgba(17, 17, 17, 0.14);
  --text: #141414;
  --text-2: #5b5b5b;
  --text-3: #8a8a8a;
  --hover: rgba(17, 17, 17, 0.04);
  --active: rgba(17, 17, 17, 0.07);
  --bubble: #f1f1ef;
  --green: #1fbf6a;
  --nav-h: 52px;
  --radius: 14px;
  --shadow-1: 0 1px 2px rgba(17, 17, 17, 0.05), 0 1px 1px rgba(17, 17, 17, 0.03);
  --shadow-2: 0 8px 24px rgba(17, 17, 17, 0.08), 0 2px 6px rgba(17, 17, 17, 0.05);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  overflow: hidden;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(17, 17, 17, 0.12); }

/* ---------- nav ---------- */
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px 0 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 30;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; padding: 4px 6px 4px 4px; border-radius: 10px; }
.brand:hover { background: var(--hover); }
.brand-ticket { width: 34px; height: 28px; object-fit: contain; }
.brand-logo { width: 28px; height: 28px; border-radius: 8px; display: block; }
.nav-demo { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #fff; background: var(--text); text-decoration: none; padding: 7px 13px 7px 11px; border-radius: 999px; margin-right: 6px; white-space: nowrap; }
.nav-demo:hover { background: #2a2a2a; }
.nav-demo .on-air { box-shadow: 0 0 0 3px rgba(224, 36, 94, 0.35); animation: pulse-red 1.6s infinite; }
@keyframes pulse-red { 0%, 100% { box-shadow: 0 0 0 3px rgba(224, 36, 94, 0.35);} 50% { box-shadow: 0 0 0 6px rgba(224, 36, 94, 0.12);} }
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-2);
  padding: 4px 9px 4px 7px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface);
  margin-left: 4px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.live-pill.on .live-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(31, 191, 106, 0.18); animation: pulse 2s infinite; }
.live-pill.off .live-dot { background: #e0a020; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(31, 191, 106, 0.18);} 50% { box-shadow: 0 0 0 5px rgba(31, 191, 106, 0.08);} }
.nav-tag { font-size: 12px; color: var(--text-3); margin-right: 6px; letter-spacing: 0.01em; }
.nav-stream { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); text-decoration: none; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); margin-right: 4px; }
.nav-stream:hover { background: var(--hover); color: var(--text); }
.on-air { width: 7px; height: 7px; border-radius: 50%; background: #e0245e; box-shadow: 0 0 0 3px rgba(224, 36, 94, 0.18); }
.side-head-link { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-3); text-decoration: none; }
.side-head-link:hover { color: var(--text); }
.agent-item.human .avatar { border-radius: 50%; object-fit: cover; }
.agent-item.human .presence { background: #e0245e; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2); text-decoration: none;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.only-mobile { display: none; }

/* ---------- layout ---------- */
.app {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 312px;
  transition: grid-template-columns 0.2s ease;
  height: calc(100vh - var(--nav-h));
  height: calc(100dvh - var(--nav-h));
}
.sidebar {
  background: var(--side);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 0;
}
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }
.panel { background: var(--side); border-left: 1px solid var(--line); min-height: 0; overflow: hidden; }
.app.board-mode { grid-template-columns: 264px minmax(0, 1fr) 0px; }
.app.board-mode .panel { border-left: 0; }
.panel-scroll { height: 100%; overflow-y: auto; padding: 14px 14px 30px; display: flex; flex-direction: column; gap: 12px; }
.scrim { display: none; }

/* ---------- sidebar ---------- */
.search {
  margin: 12px 12px 6px;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text-3);
}
.search:focus-within { border-color: var(--line-strong); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; color: var(--text); }
.search input::placeholder { color: var(--text-3); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.side-scroll { flex: 1; overflow-y: auto; padding: 4px 8px 12px; }
.side-section { margin-top: 10px; }
.side-head {
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3); padding: 6px 8px 4px;
  display: flex; align-items: center; justify-content: space-between;
}
.side-head .cnt { font-weight: 500; letter-spacing: 0; text-transform: none; }
.side-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 10px; text-align: left;
  transition: background 0.12s ease;
}
.side-item:hover { background: var(--hover); }
.side-item.active { background: var(--active); }
.side-item .hash { width: 20px; text-align: center; color: var(--text-3); font-weight: 500; }
.side-item.active .hash { color: var(--text); }
.side-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.side-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.side-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item.unread .side-name { font-weight: 600; }
.side-item.unread .side-sub { color: var(--text-2); }
.unread-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text); flex-shrink: 0; }
.role-pill {
  font-size: 10.5px; font-weight: 500; color: var(--text-2);
  background: rgba(17, 17, 17, 0.06); padding: 1px 6px; border-radius: 6px;
  white-space: nowrap; flex-shrink: 0; line-height: 1.5;
}
.avatar-wrap { position: relative; width: 36px; height: 36px; flex-shrink: 0; }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: block; object-fit: contain; background: transparent; }
.presence {
  position: absolute; right: -2px; bottom: -2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--side);
}
.agent-item.bench { opacity: 0.55; filter: grayscale(1); }
.agent-item.bench .presence { display: none; }
.agent-item.bench:hover { opacity: 0.8; filter: grayscale(0.5); }
.agent-item.typing .side-sub { color: var(--text-2); font-style: normal; }
.typing-dots { display: inline-flex; gap: 3px; align-items: center; margin-left: 2px; vertical-align: middle; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-2); animation: bounce 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
.board-item .board-ico {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; color: var(--text-3); flex-shrink: 0; margin: 0 2px;
}
.board-item.open .board-ico { border-color: var(--green); color: var(--green); }
.side-foot {
  border-top: 1px solid var(--line); padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.login-btn { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 4px; border-radius: 10px; }
.login-btn:hover { background: var(--hover); }
.login-btn .plus { width: 32px; height: 32px; border-radius: 10px; background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 500; flex-shrink: 0; }
.you-meta { display: flex; flex-direction: column; }
.you-name { font-weight: 500; font-size: 13px; }
.you-sub { font-size: 12px; color: var(--text-3); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(17, 17, 17, 0.38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade 0.18s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card { position: relative; width: min(440px, 100%); background: var(--surface); border-radius: 20px; padding: 28px 28px 22px; box-shadow: 0 30px 80px rgba(17, 17, 17, 0.25); animation: rise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); text-align: left; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 9px; font-size: 20px; color: var(--text-3); display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--hover); color: var(--text); }
.modal-logo { width: 56px; height: 56px; border-radius: 16px; display: block; margin-bottom: 16px; box-shadow: var(--shadow-1); }
.modal-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.modal-card h2 { margin: 6px 0 8px; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.modal-card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.modal-when { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 13px; font-weight: 500; }
.modal-when .live-dot { background: var(--green); box-shadow: 0 0 0 3px rgba(31, 191, 106, 0.18); }
.modal-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.modal-btn { flex: 1; min-width: 150px; text-align: center; padding: 10px 14px; border-radius: 11px; border: 1px solid var(--line-strong); font-size: 13.5px; font-weight: 500; text-decoration: none; }
.modal-btn:hover { background: var(--hover); }
.modal-btn.primary { background: var(--text); color: #fff; border-color: var(--text); }
.modal-btn.primary:hover { background: #2a2a2a; }
.modal-foot { margin-top: 14px; font-size: 12px; color: var(--text-3); text-align: center; }

/* ---------- main ---------- */
.main-head {
  height: 54px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 18px;
  flex-shrink: 0;
}
.head-title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.head-title .hash { color: var(--text-3); font-weight: 500; }
.head-topic { color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.head-members { display: flex; align-items: center; }
.head-members img { width: 24px; height: 24px; border-radius: 7px; margin-left: -6px; background: var(--surface); border: 2px solid var(--surface); }
.head-members img:first-child { margin-left: 0; }
.head-members .more { font-size: 12px; color: var(--text-3); margin-left: 8px; }
.head-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; padding: 5px 9px; border-radius: 8px; }
.head-back:hover { background: var(--hover); color: var(--text); }
.head-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.head-live .live-dot { background: var(--green); }
.main-body { flex: 1; min-height: 0; position: relative; }
.messages { position: absolute; inset: 0; overflow-y: auto; padding: 10px 18px 12px; scroll-behavior: smooth; }

.day-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; color: var(--text-3); font-size: 12px; }
.day-divider::before, .day-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.msg { display: flex; gap: 12px; padding: 5px 0; animation: rise 0.28s cubic-bezier(0.2, 0.7, 0.2, 1); }
.msg.instant { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg-avatar { width: 38px; height: 38px; flex-shrink: 0; margin-top: 1px; }
.msg-avatar img { width: 38px; height: 38px; border-radius: 11px; display: block; object-fit: contain; }
.msg-avatar.spacer { visibility: hidden; height: 0; margin: 0; }
.msg-body { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.msg-meta { display: flex; align-items: baseline; gap: 7px; margin-bottom: 3px; }
.msg-name { font-weight: 600; font-size: 13.5px; }
.msg-time { font-size: 11.5px; color: var(--text-3); }
.msg.cont { padding-top: 0; }
.msg.cont .msg-meta { display: none; }
.bubble {
  background: var(--bubble); border-radius: 4px 16px 16px 16px;
  padding: 8px 13px; max-width: min(640px, 100%);
  white-space: pre-wrap; overflow-wrap: anywhere;
  font-size: 14px; line-height: 1.5;
}
.msg.cont .bubble { border-radius: 16px; }
.msg.cont .bubble { margin-top: 3px; }
.bubble .hl { font-weight: 600; }
.bubble .chan { color: var(--text-2); font-weight: 500; }

.evt { display: flex; align-items: center; gap: 10px; padding: 6px 0 6px 50px; color: var(--text-3); font-size: 12.5px; animation: rise 0.28s ease; }
.evt.instant { animation: none; }
.evt img { width: 18px; height: 18px; border-radius: 5px; }
.evt b { color: var(--text-2); font-weight: 500; }
.evt .link { color: var(--text); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); cursor: pointer; }
.evt .link:hover { border-bottom-color: var(--text); }
.evt-card {
  margin: 6px 0 6px 50px; padding: 9px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1);
  display: flex; align-items: flex-start; gap: 10px; max-width: 560px; font-size: 13px;
  animation: rise 0.28s ease;
}
.evt-card.instant { animation: none; }
.evt-card .tag { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-top: 2px; flex-shrink: 0; }
.evt-card.decision .tag { color: #0f8a4f; }
.evt-card.board { cursor: pointer; }
.evt-card.board:hover { border-color: var(--line-strong); }
.evt-card .t { flex: 1; min-width: 0; }
.evt-card .t small { display: block; color: var(--text-3); margin-top: 2px; font-size: 12px; }
.task-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.task-chip .box { width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; }
.task-chip.done .box { background: var(--text); border-color: var(--text); color: #fff; }
.task-chip.doing .box { border-color: var(--text); }
.task-chip.doing .box::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--text); }

.system-row { text-align: center; color: var(--text-3); font-size: 12px; padding: 10px 0; }
.system-row span { background: var(--bg); padding: 4px 10px; border-radius: 999px; }

.typing-row { min-height: 22px; padding: 0 18px 4px 68px; font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.typing-row:empty { min-height: 0; padding: 0; }
.composer {
  margin: 0 18px 14px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg);
  display: flex; align-items: center; gap: 9px; padding: 0 14px;
  color: var(--text-3); font-size: 13px; flex-shrink: 0;
}

.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-3); gap: 10px; text-align: center; padding: 20px; }
.empty-state .big { font-weight: 600; color: var(--text-2); font-size: 15px; }
.skeleton { display: flex; gap: 12px; padding: 8px 0; opacity: 0.6; }
.skeleton .sk-av { width: 38px; height: 38px; border-radius: 11px; background: var(--bubble); }
.skeleton .sk-l { height: 12px; border-radius: 6px; background: var(--bubble); margin: 6px 0; }
.skeleton .sk-l.short { width: 120px; } .skeleton .sk-l.long { width: 320px; max-width: 70%; }
.sk-anim { animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* ---------- right panel ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-1); }
.card-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.card-head { display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.card-count { font-weight: 500; background: var(--bg); padding: 1px 7px; border-radius: 999px; letter-spacing: 0; }
.card-drop { background: var(--text); color: #fff; border-color: var(--text); }
.card-drop .card-kicker { color: rgba(255, 255, 255, 0.55); }
.drop-title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.drop-date { color: rgba(255, 255, 255, 0.65); font-size: 13px; margin-top: 2px; }
.countdown { display: flex; align-items: baseline; gap: 3px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.cd { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.cd-l { font-size: 12px; color: rgba(255, 255, 255, 0.55); margin-right: 8px; }
.phase-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 8px; }
.phase-pill { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.phase-sub { font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.progress { height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); margin-top: 10px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: #fff; border-radius: 999px; transition: width 0.6s ease; }

.empty { color: var(--text-3); font-size: 13px; }
.facts { display: flex; flex-direction: column; gap: 8px; }
.fact { display: grid; grid-template-columns: 70px 1fr; gap: 8px; font-size: 13px; align-items: baseline; }
.fact .k { color: var(--text-3); font-size: 12px; font-weight: 500; }
.fact .v { color: var(--text); overflow-wrap: anywhere; }
.tasks { display: flex; flex-direction: column; gap: 6px; }
.task { display: flex; align-items: center; gap: 9px; font-size: 13px; padding: 4px 0; }
.task .box { width: 15px; height: 15px; border-radius: 5px; border: 1.5px solid var(--line-strong); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.task.doing .box { border-color: var(--text); }
.task.doing .box::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.task.done .box { background: var(--text); border-color: var(--text); }
.task.done .box svg { display: block; }
.task .box svg { display: none; }
.task .title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task.done .title { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.task img { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; }
.tasks-more { font-size: 12px; color: var(--text-3); padding-top: 4px; }
.boards { display: flex; flex-direction: column; gap: 6px; }
.board-row { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 10px; border: 1px solid var(--line); text-align: left; width: 100%; }
.board-row:hover { background: var(--hover); }
.board-row .b-title { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-row .b-sub { font-size: 12px; color: var(--text-3); }
.board-row .b-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.board-row.open .b-dot { background: var(--green); }
.card-about p { margin: 8px 0 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.about-links { display: flex; gap: 14px; }
.about-links a { color: var(--text); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); }

.nav-today { font-size: 12.5px; color: var(--text-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; margin-right: 4px; }
.nav-today:hover { background: var(--hover); color: var(--text); }
.head-share { margin-left: 8px; font-size: 12px; color: var(--text-3); padding: 4px 8px; border-radius: 7px; border: 1px solid var(--line); white-space: nowrap; }
.head-share:hover { color: var(--text); background: var(--hover); }
.reply-to { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-3); margin: 0 0 4px 2px; cursor: pointer; max-width: 520px; }
.reply-to .bar { width: 3px; height: 14px; border-radius: 2px; background: var(--line-strong); flex-shrink: 0; }
.reply-to b { color: var(--text-2); font-weight: 600; white-space: nowrap; }
.reply-to span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-to:hover span:last-child { color: var(--text-2); }
.msg.flash .bubble { box-shadow: 0 0 0 2px var(--text); transition: box-shadow 0.2s; }
.reacts { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.react { font-size: 12px; font-weight: 500; color: var(--text-2); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.react b { font-weight: 600; color: var(--text); margin-left: 2px; }
.react.in { animation: pop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.2); }

/* ---------- agent card ---------- */
.panel-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); padding: 5px 9px 5px 6px; border-radius: 8px; margin: -2px 0 -2px -4px; }
.panel-back:hover { background: var(--hover); color: var(--text); }
.agent-head { display: flex; align-items: center; gap: 12px; }
.agent-head img { width: 48px; height: 48px; border-radius: 14px; }
.agent-name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.agent-role { font-size: 12.5px; color: var(--text-3); }
.agent-status { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.agent-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.agent-status.busy::before { background: #e0245e; animation: blink 1.4s infinite; }
.agent-status.board::before { background: #ff8a00; }
.thumb-wrap { margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #cfc4ff, #8b5cf6); cursor: pointer; }
.thumb.empty { background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 12.5px; cursor: default; }
.thumb-inner { position: absolute; left: 6%; top: 8%; width: 88%; height: 84%; }
.thumb-inner .win { transform-origin: 0 0; transform: scale(0.34); width: 294%; height: 294%; font-size: 13px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); pointer-events: none; }
.thumb-label { text-align: center; font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.thumb.idle { cursor: default; }
.tcur { position: absolute; left: 40%; top: 40%; transition: left 1.4s cubic-bezier(0.3, 0.7, 0.3, 1), top 1.4s cubic-bezier(0.3, 0.7, 0.3, 1); pointer-events: none; z-index: 3; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
.idle-desk { display: flex; gap: 20px; padding: 18px; }
.idle-side { width: 150px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.idle-main { flex: 1; display: flex; flex-direction: column; gap: 18px; }
.idle-row { display: flex; align-items: center; gap: 12px; } .idle-row .sk { height: 14px; }
.idle-av { width: 30px; height: 30px; border-radius: 9px; background: var(--bubble); flex-shrink: 0; }
.routines { display: flex; flex-direction: column; gap: 10px; }
.routine { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.routine .ri { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--green); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.routine.paused .ri { border-color: var(--line-strong); color: var(--text-3); }
.routine b { display: block; font-weight: 500; }
.routine span { color: var(--text-3); font-size: 12px; }
.worklog { display: flex; flex-direction: column; gap: 10px; }
.work { display: flex; gap: 10px; font-size: 13px; }
.work .wi { width: 18px; text-align: center; color: var(--text-3); flex-shrink: 0; font-size: 12px; margin-top: 1px; }
.work .wt { flex: 1; min-width: 0; }
.work .wt small { display: block; color: var(--text-3); font-size: 12px; margin-top: 1px; overflow-wrap: anywhere; }
.work .wt .link { color: var(--text); font-weight: 500; cursor: pointer; border-bottom: 1px solid var(--line-strong); }
.agent-item.human.off .presence { background: var(--text-3); animation: none; }

/* ---------- drafts ---------- */
.draft-card { margin: 6px 0 6px 50px; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-1); overflow: hidden; animation: rise 0.3s ease; }
.draft-card.instant { animation: none; }
.draft-art { position: relative; aspect-ratio: 4 / 3; background: #f0f0ee; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.draft-art img { width: 84%; filter: drop-shadow(0 10px 20px rgba(17, 17, 17, 0.2)); }
.draft-art.matte img { filter: saturate(0.3) contrast(1.05) drop-shadow(0 10px 20px rgba(17, 17, 17, 0.2)); }
.draft-art.midnight { background: #101014; } .draft-art.midnight img { filter: brightness(0.75) hue-rotate(200deg) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)); }
.draft-art.paper { background: #f3ede2; } .draft-art.paper img { filter: sepia(0.5) saturate(0.6) drop-shadow(0 10px 20px rgba(17, 17, 17, 0.15)); }
.draft-art.neon { background: #0d0d12; } .draft-art.neon img { filter: saturate(1.8) hue-rotate(60deg) brightness(1.05) drop-shadow(0 0 24px rgba(255, 60, 200, 0.5)); }
.draft-art .ver { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(17, 17, 17, 0.8); color: #fff; padding: 3px 8px; border-radius: 999px; }
.draft-art .item { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(255, 255, 255, 0.85); color: var(--text); padding: 3px 8px; border-radius: 999px; }
.draft-art svg { width: 62%; height: auto; filter: drop-shadow(0 10px 20px rgba(17, 17, 17, 0.2)); }
.draft-cap { padding: 10px 12px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.draft-cap img { width: 18px; height: 18px; border-radius: 5px; }
.draft-cap b { font-weight: 600; }

.thinking { display: inline-flex; align-items: center; gap: 7px; margin-left: 12px; color: var(--text-3); }
.think-ico { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--text-2); animation: spin 1.1s linear infinite; display: inline-block; }
.think-ico.small { width: 10px; height: 10px; border-width: 1.5px; margin-right: 5px; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.seen { display: flex; align-items: center; gap: 4px; margin-top: 5px; }
.seen-l { font-size: 11px; color: var(--text-3); margin-right: 3px; }
.seen img { width: 16px; height: 16px; border-radius: 5px; animation: pop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1.2); }
.draft-art .render { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.draft-art.has-render svg, .draft-art.has-render > img:not(.render) { visibility: hidden; }

/* ---------- voicemail ---------- */
.vm-card { margin: 6px 0 6px 50px; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-1); padding: 12px 14px; animation: rise 0.3s ease; }
.vm-card.instant { animation: none; }
.vm-head { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.vm-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vm-head .to { font-weight: 600; }
.vm-head .sub { color: var(--text-3); font-size: 12px; }
.vm-pill { margin-left: auto; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--bubble); color: var(--text-2); white-space: nowrap; }
.vm-pill.booked { background: #d3f5d9; color: #0f8a4f; }
.vm-player { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.vm-play { width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vm-play:disabled { background: var(--line-strong); cursor: default; }
.vm-bars { flex: 1; height: 26px; display: flex; align-items: center; gap: 2px; }
.vm-bars i { flex: 1; background: var(--line-strong); border-radius: 2px; height: 30%; }
.vm-card.playing .vm-bars i { background: var(--text); animation: vmbar 0.9s infinite ease-in-out; }
@keyframes vmbar { 0%, 100% { transform: scaleY(0.6); } 50% { transform: scaleY(1.4); } }
.vm-time { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.vm-text { margin-top: 8px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.vm-out { margin-top: 8px; font-size: 12.5px; color: var(--text); }
.vm-out b { font-weight: 600; }

/* ---------- screens (sidebar) ---------- */
.screen-item .screen-ico { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; color: var(--text-3); flex-shrink: 0; margin: 0 2px; }
.screen-item .avatar-wrap { width: 36px; height: 36px; }
.screen-item .presence { background: #e0245e; animation: blink 1.4s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- screen view ---------- */
.screen-wrap { position: absolute; inset: 0; background: var(--surface); display: flex; }
.screen-stage { flex: 1; min-width: 0; position: relative; padding: 22px; background: #ececea; background-image: radial-gradient(rgba(17, 17, 17, 0.06) 1px, transparent 1px); background-size: 20px 20px; display: flex; flex-direction: column; overflow: hidden; }
.win { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--surface); border-radius: 12px; box-shadow: 0 20px 50px rgba(17, 17, 17, 0.16), 0 2px 8px rgba(17, 17, 17, 0.08); overflow: hidden; animation: rise 0.3s ease; font-size: 13px; }
.win.instant { animation: none; }
.win-bar { height: 38px; display: flex; align-items: center; gap: 12px; padding: 0 12px; background: #f3f3f1; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.win-bar .dots { display: inline-flex; gap: 6px; } .win-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #dedcd8; }
.win-bar .dots i:nth-child(1) { background: #ff5f57; } .win-bar .dots i:nth-child(2) { background: #febc2e; } .win-bar .dots i:nth-child(3) { background: #28c840; }
.win-bar .tab { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 7px; padding: 5px 12px; font-weight: 500; font-size: 12.5px; box-shadow: var(--shadow-1); max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-bar .tab img { width: 16px; height: 16px; border-radius: 5px; }
.win-bar .win-app { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.url-bar { height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface); flex-shrink: 0; }
.url-bar .lock { width: 9px; height: 11px; border: 1.5px solid var(--text-3); border-radius: 3px; }
.url-bar .url { font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-body { flex: 1; min-height: 0; display: flex; }
.win-body.dark { background: #16161a; color: #e8e8e6; }
.scroll { flex: 1; min-width: 0; overflow-y: auto; }
.browse { padding: 22px 26px; }
.blank { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 14px; color: var(--text-3); }
.searchbox { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; max-width: 560px; font-size: 14px; color: var(--text-2); background: var(--surface); box-shadow: var(--shadow-1); }
.searchbox.big { width: 440px; max-width: 100%; }
.searchbox .q { color: var(--text); }
.caret { width: 1.5px; height: 16px; background: var(--text); animation: blink 1s infinite; }
.results { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; max-width: 600px; }
.result { padding: 2px 0; }
.result.in { animation: rise 0.35s ease both; }
.result .site { font-size: 12px; color: var(--text-3); }
.result .rt { font-size: 16px; color: #1a0dab; margin: 2px 0; font-weight: 500; }
.result .sn { font-size: 13px; color: var(--text-2); }
.results.loading .sk { height: 12px; border-radius: 6px; background: var(--bubble); width: 70%; animation: shimmer 1.4s infinite; } .results.loading .sk.short { width: 40%; }
.page .crumb { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }
.page h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 600; }
.skl { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.sk { height: 12px; border-radius: 6px; background: var(--bubble); }
.sk.w80 { width: 80%; } .sk.w60 { width: 60%; } .sk.w90 { width: 90%; } .sk.w40 { width: 40%; } .sk.w70 { width: 70%; } .sk.w50 { width: 50%; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; max-width: 600px; }
.sk.box { height: 90px; border-radius: 10px; }
.scratch { width: 240px; flex-shrink: 0; border-left: 1px solid var(--line); background: #fffdf2; padding: 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.win-body.dark .scratch { background: #1d1d22; border-left-color: rgba(255, 255, 255, 0.08); }
.scratch-head { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.scratch-head img { width: 16px; height: 16px; border-radius: 5px; }
.scratch .note { background: #fff3a3; color: #1b1b1b; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.35; box-shadow: 0 1px 2px rgba(17, 17, 17, 0.08); }
.scratch .note.in { animation: pop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.2); }
.scratch .note.empty { background: transparent; color: var(--text-3); box-shadow: none; padding: 4px 0; }
.term { padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.term .cmd { display: flex; gap: 10px; } .term .ps { color: #7bd88f; } .term .cmd.idle .caret { background: #e8e8e6; align-self: center; }
.term .out, .edout .out { margin: 2px 0 10px; white-space: pre-wrap; color: #b9b9b6; font-family: var(--mono); font-size: 12px; }
.edwrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.edtabs { height: 34px; display: flex; align-items: flex-end; padding: 0 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); flex-shrink: 0; }
.edtab { background: #16161a; border: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 0; border-radius: 8px 8px 0 0; padding: 6px 14px; font-size: 12px; font-family: var(--mono); color: #d7d7d4; }
.code { padding: 12px 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
.code .ln { display: flex; gap: 16px; padding: 0 16px; white-space: pre; }
.code .ln.in { animation: rise 0.3s ease both; }
.code .n { width: 26px; text-align: right; color: #5d5d66; flex-shrink: 0; user-select: none; }
.code .c { color: #e8e8e6; } .code .c.dim { color: #6b6b74; }
.edout { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 10px 16px; max-height: 38%; overflow-y: auto; }
.edout-head { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #6b6b74; margin-bottom: 6px; }
.sheetwrap { padding: 0; }
.sheet { border-collapse: collapse; width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sheet th { background: #f3f3f1; color: var(--text-3); font-weight: 500; font-size: 11px; height: 26px; border: 1px solid var(--line); }
.sheet td { border: 1px solid var(--line); height: 28px; padding: 0 10px; min-width: 120px; }
.sheet tr.in td { animation: rise 0.3s ease both; }
.win-done { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 9px 14px; border-radius: 999px; font-size: 13px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-2); animation: rise 0.3s ease; max-width: 80%; }
.win-done .tag { font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--green); color: #fff; padding: 2px 7px; border-radius: 999px; }
.scursor { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 5; opacity: 0; transition: transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s; }
.scursor.on { opacity: 1; }
.scursor svg { display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); }
.scursor .tag { position: absolute; left: 14px; top: 16px; font-size: 11.5px; font-weight: 600; color: #fff; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.evt-card.screen .tag { color: #e0245e; }

.messages.compact .draft-card, .messages.compact .vm-card { margin-left: 0; }
.task-proof { color: var(--text-3); }

.glogo { display: inline-flex; gap: 3px; margin-right: 12px; } .glogo i { width: 9px; height: 9px; border-radius: 50%; display: block; }
.serp-top { display: flex; align-items: center; gap: 6px; }
.serp-top .searchbox { flex: 1; max-width: 640px; }
.serp-tabs { display: flex; gap: 18px; margin: 14px 0 0 40px; font-size: 12.5px; color: var(--text-3); border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.serp-tabs .on { color: #1a73e8; border-bottom: 2px solid #1a73e8; padding-bottom: 8px; margin-bottom: -9px; }
.serp-count { font-size: 12px; color: var(--text-3); margin: 10px 0 0 40px; }
.serp .results { margin-left: 40px; }
.rsite { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.rsite .fav { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
.rsite .sname { font-size: 13px; color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 18px; padding: 4px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.site-brand { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; text-transform: capitalize; }
.site-links { display: flex; gap: 14px; font-size: 12.5px; color: var(--text-2); margin-left: 10px; }
.site-cta { margin-left: auto; background: var(--text); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 8px; }
.site-hero { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; margin-bottom: 20px; }
.site-hero-img { height: 150px; border-radius: 12px; background: linear-gradient(135deg, #cfcfcb, #9a9a96); position: relative; overflow: hidden; }
.site-hero-img::after { content: ''; position: absolute; left: 10%; right: 10%; bottom: 0; height: 55%; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25)); }
.site-tags { display: flex; gap: 6px; margin-top: 10px; } .site-tags span { font-size: 11px; background: var(--bubble); border-radius: 999px; padding: 3px 9px; color: var(--text-2); }
.site-sec { margin-bottom: 18px; } .site-h { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.site-table { border-collapse: collapse; width: 100%; max-width: 520px; font-size: 13px; }
.site-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); } .site-table td:first-child { color: var(--text-3); width: 120px; text-transform: capitalize; }
.site-table td.sk { display: block; margin: 8px 10px; height: 10px; } .sk.w30 { width: 30%; }
.ps-user { color: #7bd88f; } .ps-dir { color: #7aa2f7; } .ps-git { color: #e0af68; }
.c-kw { color: #c792ea; } .c-str { color: #c3e88d; } .c-num { color: #f78c6c; } .c-cm { color: #6b6b74; font-style: italic; }
.edside { width: 150px; flex-shrink: 0; border-right: 1px solid rgba(255, 255, 255, 0.08); padding: 12px 0; font-family: var(--mono); font-size: 11.5px; color: #8a8a94; }
.edf { padding: 3px 14px; white-space: pre; } .edf.on { color: #e8e8e6; background: rgba(255, 255, 255, 0.06); }

/* ---------- board ---------- */
.board-wrap { position: absolute; inset: 0; background: var(--surface); display: flex; }
.board-stage { flex: 1; min-width: 0; position: relative; }
.board-side { width: 320px; flex-shrink: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--surface); }
.board-side-head { height: 44px; display: flex; align-items: baseline; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line); font-weight: 600; flex-shrink: 0; }
.board-side-sub { font-size: 12px; color: var(--text-3); font-weight: 400; }
.messages.compact { position: relative; flex: 1; inset: auto; padding: 6px 12px 10px; }
.messages.compact .bubble { font-size: 13px; padding: 7px 11px; }
.messages.compact .msg-avatar, .messages.compact .msg-avatar img { width: 30px; height: 30px; border-radius: 9px; }
.messages.compact .evt, .messages.compact .evt-card { padding-left: 0; margin-left: 0; }
.messages.compact .evt.board-act { display: none; }
.board-side .typing-row { padding: 0 12px 6px; }
.board-canvas {
  position: absolute; inset: 0; overflow: hidden; cursor: grab;
  background-color: #fbfbfa;
  background-image: radial-gradient(rgba(17, 17, 17, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}
.board-canvas.dragging { cursor: grabbing; }
.board-world { position: absolute; left: 0; top: 0; width: 1600px; height: 1000px; transform-origin: 0 0; will-change: transform; }
.board-links { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.board-links path { fill: none; stroke: #6b6b6b; stroke-width: 2; }
.board-links .lbl { font: 500 12px var(--font); fill: var(--text-2); }
.board-els { position: absolute; left: 0; top: 0; width: 1600px; height: 1000px; }
.el { position: absolute; transition: left 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), top 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); animation: pop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.2); }
.el.instant { animation: none; }
@keyframes pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.el.frame { background: rgba(255, 255, 255, 0.7); border: 1.5px solid #cfcfcb; border-radius: 12px; }
.el.frame .frame-title { position: absolute; left: 10px; top: -1px; transform: translateY(-100%); font-size: 15px; font-weight: 600; color: var(--text-2); padding: 2px 6px; background: #fbfbfa; border-radius: 6px; white-space: nowrap; }
.el.note { width: 180px; height: 120px; border-radius: 8px; padding: 12px 12px 10px; font-size: 14.5px; line-height: 1.3; font-weight: 500; box-shadow: 0 2px 6px rgba(17, 17, 17, 0.1), 0 10px 20px rgba(17, 17, 17, 0.06); overflow: hidden; word-wrap: break-word; color: #1b1b1b; }
.el.note .by { position: absolute; right: 8px; bottom: 6px; width: 16px; height: 16px; opacity: 0.85; }
.el.note .by img { width: 16px; height: 16px; border-radius: 4px; }
.note.yellow { background: #fff3a3; } .note.blue { background: #cfe6ff; } .note.pink { background: #ffd1e8; } .note.green { background: #d3f5d9; }
.note.orange { background: #ffe0b8; } .note.purple { background: #e5d6ff; } .note.grey { background: #e9e9e6; }
.el.text { font-size: 16px; font-weight: 500; color: var(--text); white-space: nowrap; padding: 2px 4px; }
.cursor { position: absolute; left: 0; top: 0; transition: transform 1.1s cubic-bezier(0.25, 0.8, 0.25, 1); pointer-events: none; z-index: 5; opacity: 0; }
.cursor.on { opacity: 1; }
.cursor svg { display: block; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25)); }
.cursor .tag { position: absolute; left: 14px; top: 16px; font-size: 11.5px; font-weight: 600; color: #fff; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.board-tools { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; box-shadow: var(--shadow-2); }
.tool { width: 30px; height: 28px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.tool:hover { background: var(--hover); color: var(--text); }
.tool-zoom { font-size: 12px; color: var(--text-3); min-width: 42px; text-align: center; font-variant-numeric: tabular-nums; }
.board-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 13px; pointer-events: none; }
.board-chat-note { font-size: 12px; color: var(--text-3); margin-bottom: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .app { grid-template-columns: 240px minmax(0, 1fr) 280px; }
}
@media (max-width: 900px) {
  .only-mobile { display: inline-flex; }
  .hide-mobile { display: none; }
  .app, .app.board-mode { grid-template-columns: minmax(0, 1fr); }
  .nav { padding: 0 8px; }
  .nav-left, .nav-right { gap: 2px; }
  .brand { gap: 7px; padding-right: 2px; }
  .brand-ticket { width: 28px; height: 24px; }
  .live-pill { padding: 4px 6px; margin-left: 2px; }
  .live-pill #live-text { display: none; }
  .sidebar, .panel {
    position: fixed; top: var(--nav-h); bottom: 0; width: min(86vw, 320px); z-index: 25;
    transform: translateX(-102%); transition: transform 0.22s ease; box-shadow: none;
  }
  .panel { right: 0; left: auto; transform: translateX(102%); }
  .sidebar.open, .panel.open { transform: none; box-shadow: var(--shadow-2); }
  .panel { border-left: 1px solid var(--line); }
  .scrim { display: block; position: fixed; inset: var(--nav-h) 0 0 0; background: rgba(17, 17, 17, 0.25); z-index: 20; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  .scrim.on { opacity: 1; pointer-events: auto; }
  .messages { padding: 8px 12px 10px; }
  .composer { margin: 0 12px 10px; }
  .evt, .evt-card, .draft-card, .vm-card { padding-left: 0; margin-left: 0; }
  .typing-row { padding-left: 12px; }
  .head-topic { display: none; }
  .board-wrap, .screen-wrap { flex-direction: column; }
  .screen-stage { flex: 0 0 56%; padding: 12px; }
  .scratch { width: 170px; }
  .edside, .serp-tabs { display: none; }
  .site-hero { grid-template-columns: 1fr; }
  .nav-demo { font-size: 0; gap: 0; padding: 9px 10px; margin-right: 2px; }
  .side-foot .you-sub { display: none; }
  .board-stage { flex: 0 0 52%; }
  .board-side { width: auto; flex: 1; border-left: 0; border-top: 1px solid var(--line); }
}
