:root {
  --side: #185664; --side-hover: #1e6573; --side-active: #1aa3c4;
  --side-text: #c9dde2; --side-text-strong: #ffffff; --side-muted: #86a9b2;
  --bg: #ffffff; --bg-alt: #f6f8f9; --hover: #f2f5f6; --border: #e1e6e8;
  --text: #1d1f21; --muted: #616a6e; --accent: #1287a8; --accent-soft: #e3f4f8;
  --mention: #fdf3d8; --mention-text: #8a5a00; --danger: #c53a3a; --ok: #2bac76; --away: #b9c2c5; --dnd: #c53a3a;
  --top: #08222a; --pane-head: #eef3f5;
  --radius: 8px;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
[data-theme="dark"] {
  --bg: #1a1d21; --bg-alt: #222529; --hover: #24282d; --border: #33383d;
  --text: #e3e6e8; --muted: #9aa3a8; --accent: #4fc0dd; --accent-soft: #163640;
  --mention: #3b3220; --mention-text: #f1c86a; --pane-head: #202428;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; color: var(--text); background: var(--bg); font-size: 15px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }

/* ── frame: sidebar | main | (resize handle + split bar) ── */
.app { display: grid; height: 100vh; grid-template-columns: var(--side-w, 260px) 1fr; grid-template-rows: minmax(0, 1fr); }
.app.with-splits { grid-template-columns: var(--side-w, 260px) 1fr 5px var(--split-w, 440px); }
.topbar { grid-column: 1 / -1; background: var(--top); display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #fff; }
.brand { display: flex; align-items: center; gap: 8px; width: 236px; font-weight: 800; letter-spacing: .01em; }
.logo { width: 26px; height: 26px; border-radius: 6px; display: block; flex: none; }   /* Icon/V1/Icon-transparent.png (owner swapped, 2026-12-04) */
.topbar .nav { display: flex; gap: 4px; }
.topbar .nav button { opacity: .7; width: 28px; height: 28px; border-radius: 6px; }
.topbar .nav button:hover { background: rgba(255,255,255,.1); opacity: 1; }
.search { flex: 1; max-width: 620px; height: 28px; border-radius: 6px; background: rgba(255,255,255,.14);
  display: flex; align-items: center; padding: 0 10px; color: #cfe3e8; font-size: 13px; cursor: text; }
.search kbd { margin-left: auto; font-size: 11px; opacity: .7; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topbar .right button { padding: 4px 8px; border-radius: 6px; font-size: 13px; opacity: .85; }
.topbar .right button:hover { background: rgba(255,255,255,.1); opacity: 1; }

/* ── sidebar ───────────────────────────────────────── */
.sidebar { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; min-height: 0; position: relative; min-width: 0; }
/* sidebar resize handle (owner 2026-12-04): sits on the sidebar's right edge; width saved in prefs.sideWidth */
.side-rz { position: absolute; top: 0; bottom: 0; right: -3px; width: 7px; cursor: col-resize; z-index: 5; }
.side-rz:hover, .side-rz.drag { background: var(--accent); opacity: .6; }
body.mobile .side-rz { display: none; }
.brand-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 14px; background: var(--top); color: #fff; flex: none; }
.brand-name { font-weight: 800; letter-spacing: .01em; }
.icon-btn { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: #fff; opacity: .8; font-weight: 800; font-size: 14px; }
.icon-btn:hover { background: rgba(255,255,255,.14); opacity: 1; }
#helpBtn { border: 1.5px solid rgba(255,255,255,.55); width: 22px; height: 22px; border-radius: 50%; font-size: 12px; }
#searchBtn { margin-left: auto; }
.ws-head { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ws-head h1 { font-size: 18px; margin: 0; color: var(--side-text-strong); }
.ws-head .compose { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; background: var(--side-hover); color: var(--side-text-strong); }
.side-scroll { overflow-y: auto; flex: 1; padding: 8px 0 16px; }
.side-link, .side-item { display: flex; align-items: center; gap: 8px; width: calc(100% - 16px); margin: 0 8px; padding: 4px 10px;
  border-radius: 6px; color: var(--side-text); text-align: left; font-size: 15px; height: 28px; position: relative; }
.side-item:hover, .side-link:hover { background: var(--side-hover); }
.side-item.active { background: var(--side-active); color: var(--side-active-text, #fff); }
.side-item.in-split::after { content: ""; position: absolute; left: 2px; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: #7fdcf0; }
.side-item.unread { color: var(--side-text-strong); font-weight: 700; }
.side-item .badge { margin-left: auto; background: #e0453a; color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 1px 7px; }
.side-item .hash { width: 16px; text-align: center; opacity: .8; }
.side-item .to-split { margin-left: auto; display: none; width: 22px; height: 22px; border-radius: 5px; font-size: 13px; place-items: center; color: inherit; }
.side-item:hover .to-split { display: grid; }
.side-item:hover .badge { display: none; }
.side-item .to-split:hover { background: rgba(255,255,255,.2); }
.section { margin-top: 14px; }
.section-head { display: flex; align-items: center; gap: 6px; padding: 4px 18px; font-size: 14px; color: var(--side-muted); width: 100%; text-align: left; }
.section-head .chev { transition: transform .15s; font-size: 10px; }
.section.collapsed .chev { transform: rotate(-90deg); }
.section.collapsed .side-item:not(.active):not(.unread) { display: none; }
.av { flex: none; border-radius: 5px; display: grid; place-items: center; color: #fff; font-weight: 700; position: relative; }
.av.s20 { width: 20px; height: 20px; font-size: 10px; }
.av.s32 { width: 32px; height: 32px; font-size: 13px; border-radius: 7px; }
.av.s36 { width: 36px; height: 36px; font-size: 15px; border-radius: 8px; }
.av.s72 { width: 72px; height: 72px; font-size: 28px; border-radius: 12px; }
.presence { position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--side); background: var(--away); }
.presence.active { background: var(--ok); }
.presence.dnd { background: var(--dnd); }

.huddle-bar { margin: 8px; border-radius: 10px; background: #0b3440; border: 1px solid #1aa3c4; padding: 10px; color: #fff; }
.huddle-bar .row { display: flex; align-items: center; gap: 6px; }
.huddle-bar .title { font-weight: 700; font-size: 13px; }
.huddle-bar .sub { font-size: 12px; color: var(--side-muted); }
.huddle-bar .ctrls { display: flex; gap: 6px; margin-top: 8px; }
.huddle-bar .ctrls button { flex: 1; height: 30px; border-radius: 6px; background: rgba(255,255,255,.1); }
.huddle-bar .ctrls button.on { background: #fff; color: #0b3440; }
.huddle-bar .ctrls .leave { background: var(--danger); }

/* profile button: bottom of the channel sidebar (owner, 2026-11-29) */
.me-btn { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.08); color: var(--side-text-strong); text-align: left; width: 100%; }
.me-btn:hover { background: var(--side-hover); }
.me-btn .who { font-weight: 700; font-size: 14px; line-height: 1.2; }
.me-btn .status { font-size: 12px; color: var(--side-muted); }
.me-btn .gear { margin-left: auto; opacity: .7; }
.me-menu { position: fixed; z-index: 60; left: 8px; bottom: 58px; width: 280px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.25); padding: 6px; }
.me-menu .head { display: flex; gap: 10px; align-items: center; padding: 8px; }
.me-menu .status-in { margin: 4px 8px 8px; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; color: var(--muted); font-size: 13px; }
.me-menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.me-menu button { display: block; width: 100%; text-align: left; padding: 6px 10px; border-radius: 6px; font-size: 14px; }
.me-menu button:hover { background: var(--accent); color: #fff; }

/* ── conversation view (used by main AND every split pane) ── */
.main, .splits { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--bg); }
.ch-head { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 50px; border-bottom: 1px solid var(--border); flex: none; }
.ch-head h2 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.ch-head .topic { color: var(--muted); font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ch-head .tools { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
.members { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px 2px 4px; gap: 6px; font-size: 13px; }
.members .stack { display: flex; }
.members .stack .av { margin-right: -6px; border: 2px solid var(--bg); }
.tool-btn { border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.tool-btn.live { background: var(--ok); color: #fff; border-color: var(--ok); }
.tabs { display: flex; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--border); flex: none; }
.tabs button { padding: 8px 10px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--text); border-color: var(--accent); font-weight: 600; }

.msgs { flex: 1; overflow-y: auto; padding: 8px 0 12px; min-height: 0; }
.day { display: flex; align-items: center; margin: 14px 0 6px; }
.day::before, .day::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.day span { border: 1px solid var(--border); border-radius: 12px; padding: 3px 12px; font-size: 12px; font-weight: 700; background: var(--bg); }
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 4px 20px; position: relative; }
.msg:hover { background: var(--hover); }
.msg.cont { padding-top: 1px; padding-bottom: 1px; }
.msg.cont .gutter { font-size: 11px; color: var(--muted); text-align: right; padding-top: 3px; visibility: hidden; }
.msg.cont:hover .gutter { visibility: visible; }
.msg .who { font-weight: 800; cursor: pointer; }
.msg .who:hover { text-decoration: underline; }
.msg .time { color: var(--muted); font-size: 12px; margin-left: 6px; }
.msg .body { line-height: 1.46; word-wrap: break-word; }
.msg.saved { background: #fff8e6; }
[data-theme="dark"] .msg.saved { background: #2c2716; }
.mention { background: var(--mention); color: var(--mention-text); border-radius: 3px; padding: 0 2px; font-weight: 600; cursor: pointer; }
.chlink { color: var(--accent); cursor: pointer; }
code { font-family: Consolas, Menlo, monospace; font-size: 13px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 3px; padding: 1px 4px; color: #c4325b; }
pre { font-family: Consolas, Menlo, monospace; font-size: 13px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 4px; padding: 8px 10px; margin: 4px 0; white-space: pre-wrap; }
.quote { border-left: 3px solid var(--border); padding-left: 10px; color: var(--muted); margin: 2px 0 4px; font-size: 14px; }
.hover-tools { position: absolute; right: 20px; top: -14px; display: none; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.08); z-index: 2; }
.msg:hover .hover-tools { display: flex; }
.hover-tools button { width: 32px; height: 30px; border-radius: 6px; font-size: 15px; }
.hover-tools button:hover { background: var(--hover); }
.reactions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.reaction { border: 1px solid var(--border); background: var(--bg-alt); border-radius: 12px; padding: 0 8px; height: 24px; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.reaction.mine { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.reaction.add { opacity: 0; }
.msg:hover .reaction.add { opacity: 1; }
.file { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin-top: 6px; max-width: 360px; background: var(--bg); }
.file .ext { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11px; }
.file .meta { font-size: 12px; color: var(--muted); }
/* v7 file scan states (ADR-0019/0020) */
.file.scanning, .file.deleted { opacity: .55; filter: grayscale(1); }
.file.deleted b { text-decoration: line-through; }
.file.failed { border-color: #d9534f; background: rgba(217,83,79,.10); }
.file.failed .meta { color: #d9534f; }
.file .spin { display: inline-block; width: 10px; height: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; margin-right: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
.file .unscanned { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; font-size: 11px; background: #8a6d1f; color: #fff; }
.staged { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 10px 0; }
.staged span { font-size: 12px; border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; background: var(--bg); }
.staged button { border: 0; background: none; cursor: pointer; color: var(--muted); }
.attach-menu button { display: block; width: 100%; text-align: left; }

.img { margin-top: 6px; border-radius: 6px; border: 1px solid var(--border); max-width: 200px; max-height: 150px; object-fit: contain; display: block; cursor: zoom-in; background: var(--bg-alt); }
.typing { height: 22px; padding: 0 20px; font-size: 12px; color: var(--muted); flex: none; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.typing.on { animation: ty-in .18s ease-out; }
@keyframes ty-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.typing b { color: var(--text); font-weight: 600; }
.typing .ty-avs { display: flex; }
.typing .ty-avs > * + * { margin-left: -4px; }
.typing .ty-avs .av { box-shadow: 0 0 0 2px var(--bg); }
.typing .ty-text { overflow: hidden; text-overflow: ellipsis; }
.typing .ty-dots { display: inline-flex; gap: 3px; margin-left: 1px; }
.typing .ty-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); animation: ty-dot 1.2s infinite ease-in-out; }
.typing .ty-dots i:nth-child(2) { animation-delay: .15s; }
.typing .ty-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ty-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.composer { margin: 0 16px 8px; border: 1px solid var(--border); border-radius: var(--radius); flex: none; background: var(--bg); }
.composer:focus-within { border-color: var(--muted); box-shadow: 0 0 0 1px var(--muted); }
.reply-to { display: flex; gap: 8px; align-items: center; padding: 6px 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.reply-to button { margin-left: auto; }
.fmt { display: flex; gap: 2px; padding: 4px 6px; background: var(--bg-alt); border-radius: var(--radius) var(--radius) 0 0; }
.fmt button { width: 28px; height: 26px; border-radius: 4px; font-size: 13px; color: var(--muted); }
.fmt button:hover { background: var(--hover); color: var(--text); }
.composer textarea { display: block; width: 100%; border: 0; outline: 0; resize: none; padding: 8px 12px; background: transparent; min-height: 38px; max-height: 200px; }
.composer .bottom { display: flex; align-items: center; padding: 4px 6px; gap: 2px; }
.composer .bottom button { width: 28px; height: 28px; border-radius: 4px; color: var(--muted); }
.composer .bottom button.at-btn { width: auto; padding: 0 6px; font-size: 12px; font-weight: 700; }
.menu-pop.sys-menu { max-width: 460px; } .menu-pop.sys-menu .lbl { white-space: normal; }
.composer .bottom button:hover { background: var(--hover); }
.composer .send { margin-left: auto; background: var(--accent) !important; color: #fff !important; width: 36px !important; }
.composer .send:disabled { background: var(--bg-alt) !important; color: var(--muted) !important; cursor: default; }
.splits .fmt { display: none; }           /* compact composer inside split panes */
.hint { font-size: 11px; color: var(--muted); padding: 0 20px 6px; text-align: right; flex: none; }

/* ── split bar: accordion of persistent split views (ADR-0007) ── */
.resizer { cursor: col-resize; background: var(--border); }
.resizer:hover, .resizer.drag { background: var(--accent); }
.splits { overflow: hidden; }
.splits-head { white-space: nowrap; display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 12px; border-bottom: 1px solid rgba(0,0,0,.25); flex: none; font-weight: 800; background: var(--top); color: #fff; }
.splits-head .sub { overflow: hidden; text-overflow: ellipsis; font-weight: 400; color: rgba(255,255,255,.7); font-size: 12px; }
.splits-head .tools { margin-left: auto; display: flex; gap: 4px; }
.splits-head .tools button { font-size: 12px; color: #fff; padding: 3px 8px; border-radius: 5px; border: 1px solid rgba(255,255,255,.35); }
.splits-head .tools button:hover { background: rgba(255,255,255,.14); }
.pane { display: flex; flex-direction: column; min-height: 0; border-bottom: 1px solid var(--border); }
.pane.open { flex: 1 1 0; }
.pane.closed { flex: none; }
.pane-head { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 10px; background: var(--side); color: var(--side-text-strong); border-top: 1px solid rgba(0,0,0,.18); flex: none; cursor: pointer; user-select: none; }
.pane-head:hover { background: var(--side-hover); }
.pane-head .chev { font-size: 10px; color: var(--side-text); transition: transform .15s; width: 12px; }
.pane.closed .chev { transform: rotate(-90deg); }
.pane-head .name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pane-head .badge { background: #e0453a; color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 1px 7px; }
.pane-head .tools { margin-left: auto; display: flex; gap: 2px; }
.pane-head .tools button { width: 26px; height: 26px; border-radius: 5px; color: var(--side-text); font-size: 13px; }
.pane-head .tools button:hover { background: rgba(255,255,255,.18); color: var(--side-text-strong); }
.pane .msg { padding-left: 12px; padding-right: 12px; }
.pane .hover-tools { right: 10px; }
.pane .composer { margin: 0 10px 8px; }
.pane.closed > :not(.pane-head) { display: none; }
.splits-empty { padding: 20px; color: var(--muted); font-size: 13px; }

/* ── overlays ── */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: grid; place-items: start center; padding-top: 12vh; z-index: 50; }
.switcher { width: 560px; background: var(--bg); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.3); overflow: hidden; }
.switcher input { width: 100%; border: 0; border-bottom: 1px solid var(--border); padding: 14px 16px; font-size: 17px; outline: 0; background: var(--bg); }
.switcher .list { max-height: 340px; overflow-y: auto; padding: 6px; }
.switcher .opt { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; width: 100%; text-align: left; }
.switcher .opt.sel { background: var(--accent); color: #fff; }
.switcher { width: 640px; }
.switcher .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 4px; }
.switcher .opt b { white-space: nowrap; }
.switcher .opt .where { font-size: 12px; color: var(--muted); white-space: nowrap; }
.switcher .opt.sel .where { color: #fff; }
.switcher .opt .snip { opacity: .7; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.switcher mark { background: var(--mention); color: var(--mention-text); border-radius: 2px; }
.switcher .opt.sel mark { background: rgba(255,255,255,.3); color: #fff; }
.help .help-head { font-weight: 800; font-size: 17px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.help table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.help td { padding: 7px 16px; font-size: 14px; }
.help kbd { font-family: inherit; font-size: 12px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; background: var(--bg-alt); white-space: nowrap; }
.msg.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 30% { background: var(--mention); } 100% { background: transparent; } }
.switcher .foot { font-size: 11px; color: var(--muted); padding: 8px 14px; border-top: 1px solid var(--border); }
.popover { position: fixed; z-index: 60; width: 300px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.2); padding: 16px; }
.popover .name { font-size: 18px; font-weight: 800; margin-top: 10px; }
.popover .handle { color: var(--muted); font-size: 13px; }
.popover .row { display: flex; gap: 8px; margin-top: 12px; }
.popover .row button { flex: 1; border: 1px solid var(--border); border-radius: 6px; padding: 6px; font-size: 13px; }
.emoji-pick { position: fixed; z-index: 60; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.2); padding: 6px; display: grid; grid-template-columns: repeat(6, 36px); gap: 2px; }
.emoji-pick button { height: 36px; border-radius: 6px; font-size: 20px; }
.emoji-pick button:hover { background: var(--hover); }
.huddle-win { position: fixed; right: 24px; bottom: 24px; width: 520px; z-index: 40; background: #0b2a33; color: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.4); padding: 14px; }
.huddle-win .head { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.huddle-win .head button { margin-left: auto; opacity: .8; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.tile { aspect-ratio: 16/10; border-radius: 10px; background: #123c48; display: grid; place-items: center; position: relative; border: 2px solid transparent; }
.tile.speaking { border-color: var(--ok); }
.tile .label { position: absolute; left: 8px; bottom: 6px; font-size: 12px; background: rgba(0,0,0,.4); padding: 1px 6px; border-radius: 4px; }
.huddle-win .note { font-size: 11px; color: var(--side-muted); }
.disc-chip { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 4px 10px 4px 6px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-alt); font-size: 13px; max-width: 100%; }
.disc-chip:hover { border-color: var(--accent); }
.disc-chip.in-bar { border-color: var(--accent); background: var(--accent-soft); }
.disc-chip .stack { display: flex; gap: 2px; }
.disc-chip b { color: var(--accent); white-space: nowrap; }
.disc-chip .last { color: var(--muted); white-space: nowrap; }
.disc-chip .where { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.disc-chip .badge { background: #e0453a; color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 1px 7px; }
/* the message under discussion stays pinned at the top of its pane while the replies scroll under it */
/* Owner 2026-11-29: no mini scrollbars inside messages. The pinned message is CLAMPED (2 lines, no code/files/
   images) with a "Show whole message" toggle; expanded, it is un-pinned and scrolls with the replies. */
.disc-parent { position: sticky; top: 0; z-index: 3; margin: 0 10px; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 0 0 8px 8px; background: var(--bg-alt); padding: 6px 0 4px; box-shadow: 0 4px 8px -6px rgba(0,0,0,.35); }
.disc-parent.full { position: static; border-radius: 8px; margin-top: 8px; box-shadow: none; }
.disc-parent.clamped .body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.disc-parent.clamped .body pre, .disc-parent.clamped .file, .disc-parent.clamped .img, .disc-parent.clamped .reactions, .disc-parent.clamped .hover-tools { display: none; }
.disc-parent.clamped .body br { display: none; }
.disc-more { margin: 2px 0 0 54px; font-size: 12px; color: var(--accent); font-weight: 600; }
.disc-more:hover { text-decoration: underline; }
.pane .msgs:has(.disc-parent) { padding-top: 0; }
.disc-parent .msg { padding-left: 10px; padding-right: 10px; }
.disc-parent .msg:hover { background: transparent; }
.disc-from { font-size: 12px; color: var(--muted); padding: 0 12px 2px; }
.pane-head .disc-ico { font-size: 14px; }
.pane-head .disc-sub { font-weight: 400; color: var(--side-muted); }
.also-send { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 0 12px 2px; }
.ai-pill { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 4px; padding: 1px 5px; margin-left: 6px; }
.ai-pill.external { background: #f6e3c8; color: #8a4b00; }
.ai-pill.local { background: #d6efe2; color: #1f6040; }
.side-item .ai-pill { margin-left: auto; }
[data-theme="dark"] .ai-pill.external { background: #4a3316; color: #f3c98a; }
[data-theme="dark"] .ai-pill.local { background: #183a2a; color: #8fd9b2; }
.ai-note { display: inline-block; font-size: 12px; margin-top: 4px; border-radius: 6px; padding: 3px 8px; max-width: 100%; overflow-wrap: anywhere; }   /* never wider than its pane: no sideways scrollbar */
.ai-note.external { background: #fdf3e6; color: #8a4b00; border: 1px solid #f0d6b0; }
.ai-note.local { background: #eaf7f0; color: #1f6040; border: 1px solid #c4e6d3; }
[data-theme="dark"] .ai-note.external { background: #33240f; color: #f3c98a; border-color: #5a4020; }
[data-theme="dark"] .ai-note.local { background: #12291e; color: #8fd9b2; border-color: #24503a; }
.ai-pol { font-size: 12px; border-radius: 12px; padding: 2px 10px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.ai-pol.local { border-color: #9fd3b7; color: #1f6040; }
.ai-pol.both { border-color: #e8c08a; color: #8a4b00; }
.notice { margin: 4px 20px; padding: 6px 10px; border-radius: 6px; background: var(--bg-alt); border: 1px dashed var(--border); font-size: 13px; color: var(--muted); }
.notice .only-you { font-size: 11px; opacity: .8; margin-left: 6px; }
.caret { display: inline-block; width: 7px; height: 15px; background: var(--accent); margin-left: 2px; vertical-align: -2px; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.call-banner { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: #e6f6ee; border-bottom: 1px solid #bfe5d0; font-size: 13px; flex: none; }
[data-theme="dark"] .call-banner { background: #143225; border-color: #24503a; }
.call-banner .stack, .call-row .stack { display: flex; gap: 2px; }
.call-banner .tools { margin-left: auto; display: flex; gap: 6px; }
.call-banner button, .call-row button { background: var(--ok); color: #fff; border-radius: 6px; padding: 4px 12px; font-weight: 700; font-size: 13px; }
.call-banner button + button { background: transparent; color: var(--ok); border: 1px solid var(--ok); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); animation: pulse 1.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,172,118,.6); } 100% { box-shadow: 0 0 0 10px rgba(43,172,118,0); } }
.side-item .in-call { margin-left: 6px; font-size: 12px; }
.call-dot { margin-left: auto; font-size: 11px; background: var(--ok); color: #fff; border-radius: 9px; padding: 0 7px; font-weight: 700; }
.call-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.call-row button { margin-left: auto; }
.inv-list { max-height: 220px; overflow-y: auto; margin-top: 10px; }
.inv-list label { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 6px; cursor: pointer; }
.inv-list label:hover { background: var(--hover); }
.inv-list input { margin-left: auto; }
.ringing-av { opacity: .45; animation: blink 1s steps(1) infinite; }
.tile.ringing { opacity: .55; border: 2px dashed rgba(255,255,255,.35); }
.huddle-win .head .cnt { font-weight: 400; font-size: 12px; opacity: .7; }
.huddle-win .head .inv-btn { margin-left: auto; background: rgba(255,255,255,.12); border-radius: 6px; padding: 3px 10px; font-size: 13px; opacity: 1; }
.huddle-win .head #hwClose { margin-left: 4px; }
.ctrl-row { display: flex; gap: 6px; margin-bottom: 8px; }
.ctrl-row button { flex: 1; background: rgba(255,255,255,.1); border-radius: 6px; padding: 7px; font-size: 13px; color: #fff; }
.ctrl-row button.on { background: #fff; color: #0b2a33; }
.ctrl-row .leave { background: var(--danger); }
.incoming { position: fixed; right: 20px; top: 20px; z-index: 90; width: 340px; background: #0b2a33; color: #fff; border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.45); padding: 14px; }
.incoming .who { display: flex; align-items: center; gap: 10px; }
.incoming .sub { font-size: 13px; opacity: .75; }
.incoming .ring-anim { margin-left: auto; font-size: 22px; animation: shake .5s infinite; }
@keyframes shake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }
.incoming .acts { display: flex; gap: 6px; margin-top: 12px; }
.incoming .acts button { flex: 1; border-radius: 8px; padding: 7px 4px; font-weight: 700; font-size: 13px; color: #fff; }
.incoming .decline { background: var(--danger); }
.incoming .accept { background: var(--ok); }
.removed-tag { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; margin-left: 6px; }
.prefs { width: 560px; max-height: 80vh; overflow-y: auto; background: var(--bg); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.3); padding: 20px 24px; }
.prefs h3 { margin: 0 0 4px; font-size: 20px; }
.prefs h4 { margin: 18px 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.prefs .line { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.prefs .line > span:first-child { width: 150px; color: var(--muted); font-size: 14px; }
.swatches { display: grid; grid-template-columns: repeat(4, 40px); gap: 8px; }
.sw { width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(0,0,0,.15); position: relative; display: grid; place-items: center; cursor: pointer; }
.sw:hover { transform: scale(1.08); }
.sw.on { outline: 3px solid var(--accent); outline-offset: 2px; }
.sw.on::after { content: "✓"; font-weight: 800; font-size: 18px; color: var(--tick, #fff); }
.sw.custom { background: conic-gradient(#bf4040, #bfbf40, #40bf40, #40bfbf, #4040bf, #bf40bf, #bf4040); }
.sw.custom .chip { position: absolute; inset: 9px; border-radius: 5px; border: 2px solid #fff; }
.sw.custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.sw .plus { color: #fff; font-weight: 800; font-size: 18px; text-shadow: 0 0 3px rgba(0,0,0,.6); }
.prefs select, .prefs input[type=color] { border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; background: var(--bg); color: var(--text); }
.prefs input[type=color] { width: 44px; height: 32px; padding: 2px; }
.prefs .note { font-size: 12px; color: var(--muted); margin: 4px 0 0 162px; }
.prefs .preview { margin-left: 162px; width: 240px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); font-size: 13px; }
.prefs .preview div { padding: 5px 10px; }
.prefs .done { margin-top: 18px; float: right; background: var(--accent); color: #fff; border-radius: 6px; padding: 6px 18px; font-weight: 700; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.seg button { padding: 5px 14px; font-size: 13px; }
.seg button.on { background: var(--accent); color: #fff; }
.toast { position: fixed; left: 50%; top: 56px; transform: translateX(-50%); background: #1d1f21; color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 13px; z-index: 80; }

/* ───────── real client additions (B12) — not in the mockup ───────── */
.auth { min-height: 100vh; display: grid; place-items: center; background: var(--side); }
.auth-card { width: 360px; background: var(--bg); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.3); padding: 26px 28px; }
.auth-card .brand-line { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; margin-bottom: 18px; }
.auth-card label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.auth-card input { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; background: var(--bg); }
.auth-card .go { margin-top: 18px; width: 100%; background: var(--accent); color: #fff; border-radius: 6px; padding: 9px; font-weight: 700; }
.auth-card .go:disabled { opacity: .6; }
.auth-card .err { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 18px; }
.auth-card .note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.dlg { width: 520px; max-height: 80vh; overflow-y: auto; background: var(--bg); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.3); padding: 20px 24px; }
.dlg h3 { margin: 0 0 12px; font-size: 19px; }
.dlg label.f { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
.dlg input[type=text], .dlg input[type=password], .dlg textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; background: var(--bg); }
.dlg .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.dlg .acts button { border: 1px solid var(--border); border-radius: 6px; padding: 6px 14px; }
.dlg .acts .primary { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.dlg .err { color: var(--danger); font-size: 13px; margin-top: 8px; min-height: 16px; }
.dlg .row-item { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--border); }
.dlg .row-item .grow { flex: 1; min-width: 0; }
.dlg .row-item .sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg .row-item button { border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; font-size: 13px; }
.dlg .pick { max-height: 280px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; margin-top: 6px; }
.dlg .pick label { display: flex; align-items: center; gap: 8px; padding: 6px 10px; cursor: pointer; }
.dlg .pick label:hover { background: var(--hover); }
.dlg .pick input { margin-left: auto; }
.menu-pop { position: fixed; z-index: 60; min-width: 220px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.25); padding: 6px; }
.menu-pop button { display: block; width: 100%; text-align: left; padding: 6px 10px; border-radius: 6px; font-size: 14px; }
.menu-pop button:hover { background: var(--accent); color: #fff; }
.menu-pop button.danger { color: var(--danger); }
.menu-pop button.danger:hover { background: var(--danger); color: #fff; }
.menu-pop hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.menu-pop .lbl { font-size: 12px; color: var(--muted); padding: 4px 10px; }
.load-more { text-align: center; font-size: 12px; color: var(--muted); padding: 8px; }
.edited { color: var(--muted); font-size: 12px; margin-left: 4px; }
.deleted-ph { color: var(--muted); font-style: italic; }
.file a { color: inherit; text-decoration: none; }
.file a:hover b { text-decoration: underline; }
.file .bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 4px; overflow: hidden; width: 200px; }
.file .bar i { display: block; height: 100%; background: var(--accent); }
a.img-link { display: inline-block; vertical-align: top; margin-right: 6px; }
.edit-box textarea { width: 100%; border: 1px solid var(--accent); border-radius: 6px; padding: 6px 8px; background: var(--bg); resize: vertical; min-height: 60px; }
.edit-box .acts { display: flex; gap: 6px; margin-top: 4px; font-size: 12px; }
.edit-box .acts button { border: 1px solid var(--border); border-radius: 5px; padding: 2px 10px; }
.edit-box .acts .primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.conn { position: fixed; left: 50%; top: 8px; transform: translateX(-50%); z-index: 85; background: #8a5a00; color: #fff; font-size: 13px; padding: 5px 14px; border-radius: 8px; }
.archived-bar { margin: 0 16px 8px; padding: 10px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--muted); font-size: 13px; text-align: center; }
.join-bar { margin: 0 16px 8px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; gap: 10px; font-size: 14px; }
.join-bar button { margin-left: auto; background: var(--accent); color: #fff; border-radius: 6px; padding: 5px 14px; font-weight: 700; }
.mention.me { background: #ffe08a; }

/* B12c: full emoji picker, composer autocomplete, Files tab */
.emoji-pick { display: flex; flex-direction: column; width: 344px; height: 360px; padding: 8px; gap: 6px; }
.emoji-pick .ep-search { border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font: inherit; background: var(--bg); color: var(--text); }
.emoji-pick .ep-body { flex: 1; overflow-y: auto; }
.emoji-pick .ep-grid { display: grid; grid-template-columns: repeat(8, 36px); gap: 2px; }
.emoji-pick .ep-grid button { width: 36px; height: 36px; padding: 0; font-size: 22px; line-height: 36px; }
.emoji-pick .ep-body { overflow-x: hidden; }
.emoji-pick .ep-grp { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 8px 2px 4px; }
.emoji-pick .ep-grp:first-child { margin-top: 0; }
.emoji-pick .ep-none { color: var(--muted); padding: 20px; text-align: center; font-size: 13px; }
.emoji-pick .ep-name { font-size: 12px; color: var(--muted); min-height: 16px; }
.ac-pop { position: fixed; z-index: 70; min-width: 260px; max-width: 420px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.2); padding: 4px; }
.ac-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 6px; text-align: left; font-size: 14px; color: var(--text); }
.ac-pop button.sel, .ac-pop button:hover { background: var(--hover); }
.ac-pop .sub { color: var(--muted); font-size: 12px; margin-left: auto; }
.file-row { padding: 8px 20px; border-bottom: 1px solid var(--border); }
.file-row .file-by { font-size: 12px; color: var(--muted); margin-top: 4px; }
.files-more { display: block; margin: 10px auto; }

/* B15 (mockup v8): pictures, profile pane in the split bar, status + picture dialogs */
.av.s120 { width: 120px; height: 120px; font-size: 44px; border-radius: 16px; }
.av.photo { background-size: cover; background-position: center; color: transparent; }
.av-btn { cursor: pointer; display: inline-block; flex: none; }
.av-btn:hover .av { outline: 2px solid var(--accent); outline-offset: 1px; }
.pane-head .av { margin-right: 2px; }
.profile-pane { flex: 1; overflow-y: auto; padding: 18px 18px 22px; }
.profile-pane .pp-top { display: flex; gap: 16px; align-items: flex-start; }
.profile-pane .pp-name { font-size: 20px; font-weight: 800; margin-top: 4px; }
.profile-pane .pp-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.profile-pane .pp-full { font-size: 15px; margin-top: 2px; }
.profile-pane .pp-status { margin-top: 10px; font-size: 14px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; display: inline-block; }
.profile-pane .row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.profile-pane .row button { border: 1px solid var(--border); border-radius: 6px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.profile-pane .row button:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.profile-pane h5 { margin: 20px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.profile-pane .kv { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; font-size: 14px; }
.profile-pane .kv span:nth-child(odd) { color: var(--muted); }
.profile-pane .note { color: var(--muted); font-size: 12px; margin-top: 8px; }
.muted { color: var(--muted); }
.dlg .st-in { display: flex; gap: 8px; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; margin-top: 12px; }
.dlg .st-in input[type=text] { flex: 1; border: 0; padding: 4px; outline: 0; font-size: 15px; }
.dlg .st-emo { font-size: 20px; width: 34px; height: 34px; border-radius: 6px; flex: none; }
.dlg .st-emo:hover { background: var(--hover); }
.dlg .st-h { margin: 16px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.dlg .preset { display: flex; gap: 10px; width: 100%; text-align: left; padding: 6px 8px; border-radius: 6px; font-size: 14px; }
.dlg .preset:hover { background: var(--hover); }
.dlg .preset .when { margin-left: auto; color: var(--muted); font-size: 12px; }
.dlg .st-line { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.dlg .st-line > span { width: 130px; color: var(--muted); font-size: 14px; }
.dlg select { padding: 5px 8px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.dlg .pic-row { display: flex; gap: 14px; align-items: flex-end; margin-top: 14px; }
.me-menu button.status-in { text-align: left; color: var(--muted); }

/* Drag files onto the page: the message box that will receive them */
.composer.drop-target { outline: 2px dashed var(--accent); outline-offset: 3px; background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.composer.drop-target textarea::placeholder { color: var(--accent); }

/* Tiny previews in the message box + the image zoom frame (owner 2026-12-04) */
.staged .st-thumb { width: 22px; height: 22px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 2px; }
.zoom { position: fixed; inset: 0; z-index: 80; background: rgba(10, 14, 18, .88); display: flex; flex-direction: column; }
.zoom-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; color: #e8edf0; font-size: 14px; flex: none; }
.zoom-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.zoom-pct { color: #9fb0b8; font-size: 12px; min-width: 42px; text-align: right; margin-right: 4px; }
.zoom-bar button, .zoom-bar .zoom-dl { color: #e8edf0; border: 1px solid rgba(255,255,255,.22); border-radius: 6px; padding: 4px 10px; min-width: 32px; text-decoration: none; font-size: 13px; background: transparent; cursor: pointer; }
.zoom-bar button:hover, .zoom-bar .zoom-dl:hover { background: rgba(255,255,255,.14); }
.zoom-stage { flex: 1; overflow: hidden; display: grid; place-items: center; cursor: zoom-out; user-select: none; }
.zoom-stage.big { overflow: auto; place-items: start; }
.zoom-stage.big img { margin: auto; }
.zoom-stage img { display: block; max-width: none; cursor: zoom-in; box-shadow: 0 8px 40px rgba(0,0,0,.5); background: #fff; }
.zoom-stage.big img { cursor: grab; }
.zoom-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border-radius: 8px; font-size: 34px; color: #fff; background: rgba(0,0,0,.35); border: 0; cursor: pointer; }
.zoom-nav:hover { background: rgba(0,0,0,.6); }
.zoom-nav.prev { left: 12px; } .zoom-nav.next { right: 12px; }

/* Video + audio in messages (ADR-0029) */
a.img-link.vid { position: relative; }
.vid-blank { display: block; background: #1d2329; }
.vid-play { position: absolute; left: 50%; top: calc(50% + 3px); transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; font-size: 15px; padding-left: 3px; pointer-events: none; }
a.img-link.vid:hover .vid-play { background: var(--accent); }
.vid-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 5px; border-radius: 4px; pointer-events: none; }
.file.audio { align-items: flex-start; max-width: 420px; }
.file.audio .grow { flex: 1; min-width: 0; }
.file.audio audio { display: block; width: 100%; height: 34px; margin: 6px 0 2px; }
.zoom-stage video { max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); background: #000; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.zoom.is-video .zoom-stage { cursor: default; }
.zoom.is-video [data-zz="in"], .zoom.is-video [data-zz="out"], .zoom.is-video [data-zz="fit"], .zoom.is-video [data-zz="one"], .zoom.is-video .zoom-pct { display: none; }

/* Calls (ADR-0030) — from mockup-v8 */
.call-banner { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: #e6f6ee; border-bottom: 1px solid #bfe5d0; font-size: 13px; flex: none; }
[data-theme="dark"] .call-banner { background: #143225; border-color: #24503a; }
.call-banner .stack, .call-row .stack { display: flex; gap: 2px; }
.call-banner .tools { margin-left: auto; display: flex; gap: 6px; }
.call-banner button, .call-row button { background: var(--ok); color: #fff; border-radius: 6px; padding: 4px 12px; font-weight: 700; font-size: 13px; }
.call-banner button + button { background: transparent; color: var(--ok); border: 1px solid var(--ok); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); animation: pulse 1.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,172,118,.6); } 100% { box-shadow: 0 0 0 10px rgba(43,172,118,0); } }
@keyframes blink { 50% { opacity: 0; } }
.side-item .in-call { margin-left: 6px; font-size: 12px; }
.call-dot { margin-left: auto; font-size: 11px; background: var(--ok); color: #fff; border-radius: 9px; padding: 0 7px; font-weight: 700; }
.call-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.call-row button { margin-left: auto; }
.inv-list { max-height: 220px; overflow-y: auto; margin-top: 10px; }
.inv-list label { display: flex; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 6px; cursor: pointer; }
.inv-list label:hover { background: var(--hover); }
.inv-list input { margin-left: auto; }
.ringing-av { opacity: .45; animation: blink 1s steps(1) infinite; }
.huddle-bar .ctrls button { color: #fff; }
.huddle-bar .ctrls button.on { color: #0b3440; }
.huddle-win { position: fixed; right: 24px; bottom: 24px; width: 520px; z-index: 40; background: #0b2a33; color: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.4); padding: 14px; }
.huddle-win.wide { width: min(900px, calc(100vw - 48px)); }
.huddle-win .head { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.huddle-win .head button { margin-left: auto; opacity: .8; color: #fff; }
.huddle-win .head .cnt { font-weight: 400; font-size: 12px; opacity: .7; }
.huddle-win .head .inv-btn { margin-left: auto; background: rgba(255,255,255,.12); border-radius: 6px; padding: 3px 10px; font-size: 13px; opacity: 1; }
.huddle-win .head .inv-btn + button { margin-left: 4px; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; max-height: calc(100vh - 200px); overflow-y: auto; }
.tile { aspect-ratio: 16/10; border-radius: 10px; background: #123c48; display: grid; place-items: center; position: relative; border: 2px solid transparent; overflow: hidden; }
.tile.speaking { border-color: var(--ok); }
.tile.ringing { opacity: .55; border: 2px dashed rgba(255,255,255,.35); }
.tile.screen { grid-column: 1 / -1; background: #000; }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.screen video { object-fit: contain; }
.tile video.mirror { transform: scaleX(-1); }
.tile .label { position: absolute; left: 8px; bottom: 6px; font-size: 12px; background: rgba(0,0,0,.4); padding: 1px 6px; border-radius: 4px; z-index: 1; }
.huddle-win .ctrl-row { display: flex; gap: 8px; }
.huddle-win .ctrl-row button { flex: 1; padding: 7px 4px; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; font-weight: 600; font-size: 13px; }
.huddle-win .ctrl-row button.on { background: #fff; color: #0b2a33; }
.huddle-win .ctrl-row .leave { background: var(--danger); }
.incoming { position: fixed; right: 20px; top: 20px; z-index: 90; width: 340px; background: #0b2a33; color: #fff; border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.45); padding: 14px; }
.incoming .who { display: flex; align-items: center; gap: 10px; }
.incoming .sub { font-size: 13px; opacity: .75; }
.incoming .ring-anim { margin-left: auto; font-size: 22px; animation: shake .5s infinite; }
@keyframes shake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-15deg); } 75% { transform: rotate(15deg); } }
.incoming .acts { display: flex; gap: 6px; margin-top: 12px; }
.incoming .acts button { flex: 1; border-radius: 8px; padding: 7px 4px; font-weight: 700; font-size: 13px; color: #fff; }
.incoming .decline { background: var(--danger); }
.incoming .accept { background: var(--ok); }

/* ───────────── phone layout (mobile.js, ADR-0010, Design/Mobile/mobile-v2.html). Only applies with body.mobile ───────────── */
.m-tabs, .m-back { display: none; }
body.mobile { overflow: hidden; touch-action: manipulation; }   /* no double-tap delay/retargeting; pinch-zoom still works (ADR-0010) */
body.mobile .app { display: block; position: fixed; inset: 0; height: auto; overflow: hidden; }
body.mobile .sidebar, body.mobile .main, body.mobile .splits { position: absolute; inset: 0; width: auto; transition: transform .22s ease; }
body.mobile .sidebar { background: var(--bg); color: var(--text); z-index: 1; }
body.mobile .main { z-index: 2; transform: translateX(100%); padding-bottom: env(safe-area-inset-bottom); }
body.mobile .splits { z-index: 3; transform: translateX(100%); display: flex !important; }
body.mobile.m-conv .main { transform: none; }
body.mobile.m-pane .splits { transform: none; }
body.mobile .splits.hidden { visibility: hidden; }
body.mobile .resizer, body.mobile .brand-row, body.mobile .ws-head, body.mobile .me-btn { display: none !important; }
body.mobile .side-scroll { padding: 0; background: var(--bg); }
/* top bar + search */
.m-top { display: flex; align-items: center; gap: 8px; padding: calc(12px + env(safe-area-inset-top)) 14px 8px; background: var(--side); color: var(--side-text-strong); }
.m-top h2 { margin: 0; font-size: 20px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-ib { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.12); color: inherit; font-size: 18px; }
.m-sbar { background: var(--side); padding: 2px 14px 12px; }
.m-search { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.16); color: var(--side-text-strong); font-size: 15px; opacity: .9; }
/* rows */
.m-list { padding: 4px 0 16px; }
.m-sect { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 14px 16px 6px; }
.m-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; text-align: left; font-size: 16px; color: var(--text); }
.m-row:active { background: var(--hover); }
.m-row.unread .m-nm { font-weight: 800; }
.m-row .av { flex: none; }
.m-hash { flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--bg-alt); display: grid; place-items: center; font-weight: 800; color: var(--muted); font-size: 16px; }
.m-nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-add { color: var(--muted); }
.m-badge { background: #e0453a; color: #fff; font-size: 12px; font-weight: 800; border-radius: 10px; padding: 1px 7px; min-width: 20px; text-align: center; }
.m-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
.m-live { background: var(--ok); color: #fff; font-size: 11px; font-weight: 800; border-radius: 9px; padding: 2px 8px; white-space: nowrap; }
.m-empty { padding: 10px 16px; color: var(--muted); }
/* bottom tabs */
body.mobile .m-tabs { display: flex; flex: none; border-top: 1px solid var(--border); background: var(--bg); padding-bottom: env(safe-area-inset-bottom); }
.m-tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 6px; font-size: 11px; color: var(--muted); position: relative; }
.m-tabs button b { font-size: 20px; line-height: 24px; height: 24px; font-weight: 400; display: grid; place-items: center; }
.m-tabs button.on .av { outline: 2px solid var(--accent); outline-offset: 1px; }
.m-tabs button.on { color: var(--accent); font-weight: 700; }
.m-pip { position: absolute; top: 3px; left: calc(50% + 6px); background: #e0453a; color: #fff; font-size: 10px; font-weight: 800; border-radius: 8px; padding: 0 5px; line-height: 16px; min-width: 16px; text-align: center; }
.m-pip.dot { min-width: 9px; height: 9px; padding: 0; top: 6px; }
/* You tab */
.m-me { display: flex; align-items: center; gap: 14px; padding: 16px; border-bottom: 1px solid var(--border); }
.m-me b { font-size: 20px; }
.m-me .muted, .m-row .muted { color: var(--muted); font-weight: 400; }
.m-opt { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 52px; padding: 8px 16px; text-align: left; font-size: 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.m-opt .seg { margin-left: auto; }
.m-opt.danger { color: var(--danger); border: 0; }
.m-hint { font-size: 13px; color: var(--muted); padding: 0 16px 10px; margin-top: -4px; border-bottom: 1px solid var(--border); }
.m-opt .seg button { padding: 6px 14px; font-size: 15px; }
/* conversation */
body.mobile .m-back { display: grid; place-items: center; flex: none; width: 36px; height: 40px; margin-left: -8px; font-size: 30px; line-height: 1; color: inherit; }
body.mobile .ch-head { height: auto; min-height: 54px; padding: calc(6px + env(safe-area-inset-top)) 10px 6px; gap: 6px; }
body.mobile .ch-head h2 { font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
body.mobile .ch-head .topic { display: none; }
body.mobile .ch-head .tools { gap: 4px; }
body.mobile .ch-head [data-split] { display: none; }   /* no split bar on a phone */
@media (hover: none) { body.mobile .menu-pop button:hover, body.mobile .me-menu button:hover { background: none; color: inherit; } body.mobile .menu-pop button.danger:hover { color: var(--danger); } }
body.mobile .tabs { overflow-x: auto; padding: 0 8px; scrollbar-width: none; }
body.mobile .msg { padding: 4px 12px; -webkit-touch-callout: none; }
body.mobile .msg .gutter, body.mobile .msg.cont:hover .gutter { visibility: hidden; }   /* keep the column: text stays in the wide one */
body.mobile .hover-tools { display: none !important; }
body.mobile .hint { display: none; }
body.mobile .composer { margin: 0 8px 8px; }
body.mobile .composer .fmt { display: none; }
body.mobile .composer textarea { font-size: 16px; max-height: 120px; }   /* 16px: iPhone won't zoom into the box */
body.mobile .typing { padding-left: 14px; }
/* one pane full-screen (discussion / profile) */
body.mobile .pane { border: 0; }
body.mobile .pane-head { height: auto; min-height: 54px; padding: calc(6px + env(safe-area-inset-top)) 10px 6px; background: var(--side); }
body.mobile .pane-head .name { font-size: 16px; }
body.mobile .pane .composer { margin: 0 8px 8px; }
/* popups become bottom sheets / full-width */
body.mobile .menu-pop, body.mobile .me-menu { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: auto; max-height: 75vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 6px 6px calc(10px + env(safe-area-inset-bottom)); }
body.mobile .menu-pop button, body.mobile .me-menu button { padding: 12px 14px; font-size: 16px; }
.m-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: 4px auto 8px; }
.m-emo { display: flex; justify-content: space-around; padding: 2px 4px 8px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
body.mobile .m-emo button { width: 48px; height: 48px; padding: 0; border-radius: 50%; font-size: 26px; text-align: center; }
body.mobile .emoji-pick { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: auto; height: 60vh; border-radius: 16px 16px 0 0; }
body.mobile .scrim { padding-top: 0; place-items: stretch; }
body.mobile .scrim > .dlg, body.mobile .scrim > .prefs { width: auto; max-height: none; height: 100%; border-radius: 0; padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); }
body.mobile .scrim input, body.mobile .scrim textarea, body.mobile .scrim select { font-size: 16px !important; }
/* calls */
body.mobile .incoming { left: 0; right: 0; top: 0; bottom: 0; width: auto; border-radius: 0; display: flex; flex-direction: column; justify-content: center; padding: 24px; }
body.mobile .incoming .acts button { padding: 16px 4px; font-size: 16px; border-radius: 12px; }
body.mobile .huddle-win { left: 0; right: 0; bottom: 0; top: 0; width: auto !important; border-radius: 0; z-index: 70; overflow-y: auto; padding-top: calc(12px + env(safe-area-inset-top)); }
body.mobile #huddleBar .huddle-bar { margin: 6px 8px; }

/* ───────────── personal sidebar groups (groups.js, BACKLOG D16) ───────────── */
.section-row { display: flex; align-items: center; padding-right: 8px; }
.section-row .section-head { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sect-tools { display: none; gap: 2px; }
.section-row:hover .sect-tools { display: flex; }
.sect-tools button { width: 22px; height: 22px; border-radius: 5px; color: var(--side-text); font-size: 14px; line-height: 1; }
.sect-tools button:hover { background: var(--side-hover); color: var(--side-text-strong); }
.sect-empty { margin: 2px 8px; padding: 6px 10px; border: 1px dashed rgba(255,255,255,.22); border-radius: 6px; font-size: 12px; color: var(--side-muted); }
.section.collapsed .sect-empty { display: none; }
.side-link.new-group { margin-top: 12px; }
.side-item.dragging { opacity: .45; }
.side-item.drop-before { box-shadow: inset 0 2px 0 #7fdcf0; }
.side-item.drop-after { box-shadow: inset 0 -2px 0 #7fdcf0; }
.section.drop-into { outline: 2px dashed #7fdcf0; outline-offset: -2px; border-radius: 8px; }
/* phone */
.m-sect-row { display: flex; align-items: center; padding-right: 8px; }
button.m-sect { flex: 1; text-align: left; display: flex; align-items: center; gap: 6px; -webkit-touch-callout: none; user-select: none; }
.m-chev { font-size: 9px; transition: transform .15s; }
.m-chev.shut { transform: rotate(-90deg); }
.m-gmenu { width: 36px; height: 32px; border-radius: 8px; color: var(--muted); font-size: 18px; }
body.mobile .m-row { -webkit-touch-callout: none; user-select: none; }

/* ───────── Planner tools (ADR-0032, mockup planner-v3) ───────── */
.ws-head { flex-wrap: wrap; }
.pl-tools { flex-basis: 100%; display: flex; gap: 6px; margin-top: 10px; }
.pl-tool { position: relative; width: 38px; height: 32px; border-radius: 8px; background: var(--side-hover); color: var(--side-text-strong); display: grid; place-items: center; }
.pl-tool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-tool.on { background: var(--accent); color: #fff; }
.pl-tool .b { position: absolute; top: -5px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e01e5a; color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; }
.m-top .pl-tools { margin: 8px 0 0; } .m-top .pl-tool { background: var(--bg-alt); color: var(--text); width: 46px; height: 36px; }
.pl-tb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 16px; border-bottom: 1px solid var(--border); }
.pl-tb button, .pl-tb select, .pl-tb input { border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; background: var(--bg); color: var(--text); font-size: 13px; }
.pl-tb .primary, .pl-actions .primary, button.primary.small { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.pl-tb input[type=search] { width: 200px; }
.pl-range { margin: 0 8px; font-size: 15px; }
.pl-seg { display: inline-flex; } .pl-seg button { border-radius: 0; margin-left: -1px; } .pl-seg button:first-child { border-radius: 6px 0 0 6px; } .pl-seg button:last-child { border-radius: 0 6px 6px 0; }
.pl-seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.pl-main { flex: 1; min-height: 0; display: flex; }
.pl-nav { width: 210px; flex: none; border-right: 1px solid var(--border); overflow-y: auto; padding: 8px 0; font-size: 14px; }
.pl-navh { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 4px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.pl-navh button { font-size: 16px; color: var(--muted); }
.pl-navi { display: flex; align-items: center; gap: 6px; padding: 5px 14px; cursor: pointer; }
.pl-navi:hover { background: var(--hover); } .pl-navi.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.pl-navi .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-navi .pl-share { visibility: hidden; color: var(--muted); } .pl-navi:hover .pl-share { visibility: visible; }
.pl-view { flex: 1; min-width: 0; overflow-y: auto; padding: 0 18px 18px; }
.pl-vh { font-size: 18px; margin: 14px 0 10px; display: flex; align-items: center; gap: 8px; }
.pl-link { color: var(--accent); font-size: 13px; font-weight: 400; background: none; border: 0; cursor: pointer; padding: 2px 0; }
.pl-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.pl-row:hover { background: var(--hover); } .pl-row.sub { padding-left: 34px; font-size: 13px; }
.pl-row .t { flex: 1; min-width: 0; } .pl-row .m { color: var(--muted); font-size: 12px; } .pl-row .d { font-size: 12px; white-space: nowrap; }
.done { text-decoration: line-through; color: var(--muted); }
.pl-late { color: #d0393e; font-weight: 600; }
.pl-quickadd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pl-quickadd input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; background: var(--bg); color: var(--text); font-size: 14px; }
.pl-qchip { font-size: 12px; color: var(--accent); white-space: nowrap; }
.pl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pl-table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; padding: 6px; border-bottom: 1px solid var(--border); }
.pl-table td { padding: 7px 6px; border-bottom: 1px solid var(--border); } .pl-table tr[data-plitem] { cursor: pointer; } .pl-table tr[data-plitem]:hover { background: var(--hover); }
.pl-ref { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pl-pill { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 700; background: var(--bg-alt); color: var(--muted); white-space: nowrap; }
.pl-pill.s-new { background: #e8f0fe; color: #1a5fd0; } .pl-pill.s-accepted { background: #f3e8fd; color: #7b3fc4; } .pl-pill.s-in_progress { background: #fff4d6; color: #9a6a00; }
.pl-pill.s-done { background: #e3f6e8; color: #1e7b3a; } .pl-pill.s-wont_do, .pl-pill.s-duplicate { background: var(--bg-alt); color: var(--muted); }
.pl-prio { font-size: 12px; color: var(--muted); } .pl-prio.p-high { color: #c46a00; font-weight: 700; } .pl-prio.p-urgent { color: #d0393e; font-weight: 700; }
.pl-label { display: inline-block; padding: 0 6px; border-radius: 4px; background: var(--bg-alt); font-size: 12px; }
.pl-board { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 10px; }
.pl-col { background: var(--bg-alt); border-radius: 8px; padding: 8px; min-height: 200px; } .pl-col .h { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.pl-card { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 7px 8px; margin-bottom: 6px; font-size: 13px; cursor: pointer; }
.pl-card .t { margin: 3px 0; } .pl-card .f { display: flex; gap: 3px; align-items: center; color: var(--muted); font-size: 12px; }
.pl-notes { width: 100%; min-height: 260px; margin-top: 10px; border: 1px solid var(--border); border-radius: 6px; padding: 10px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--bg); color: var(--text); }
.pl-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; } .pl-row2.tight { gap: 6px; }
.dlg select, .dlg input[type=date], .dlg input[type=time], .dlg input[type=datetime-local], .pl-view select, .pl-view input[type=text] { border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; background: var(--bg); color: var(--text); max-width: 100%; }
.dlg .pl-row2 select { width: 100%; }
.pl-checks label, .pl-quick button { display: block; font-size: 13px; margin: 4px 0; }
.pl-quick button { width: 100%; text-align: left; border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; }
.pl-quick button:hover { background: var(--hover); }
.pl-pp { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pl-person { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-alt); border-radius: 12px; padding: 2px 8px 2px 2px; font-size: 13px; }
.pl-person button { color: var(--muted); font-size: 11px; }
.pl-prow, .pl-linkrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.pl-prow .muted { margin-left: auto; } .pl-flags { flex-basis: 100%; color: var(--muted); } .pl-flags label { margin-right: 10px; }
/* week grid */
.pl-week { display: flex; flex-direction: column; height: calc(100% - 4px); min-height: 400px; }
.pl-wh, .pl-wad { display: grid; grid-template-columns: 56px repeat(7, 1fr); font-size: 12px; }
.pl-wh > div { padding: 8px 4px; text-align: center; color: var(--muted); } .pl-wh .today { color: var(--accent); font-weight: 700; background: var(--accent-soft); }
.pl-wad .today, .pl-day.today { background: var(--accent-soft); }   /* today filled (owner 2026-12-04) */
.pl-wad { border-bottom: 1px solid var(--border); } .pl-wad > div { min-height: 22px; padding: 2px; border-left: 1px solid var(--border); }
.pl-wgrid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 56px repeat(7, 1fr); position: relative; }
.pl-hours div { font-size: 11px; color: var(--muted); text-align: right; padding-right: 6px; transform: translateY(-7px); }
.pl-day { position: relative; border-left: 1px solid var(--border); background: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, var(--border) 43px, var(--border) 44px); }
.pl-wev { position: absolute; left: 2px; right: 2px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 18%, var(--bg)); border-radius: 4px; padding: 2px 5px; font-size: 12px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.pl-wev span { color: var(--muted); font-size: 11px; }
.pl-wev.tent, .pl-ev.tent { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--c) 12%, var(--bg)) 0 6px, var(--bg) 6px 12px); }
.pl-wev.cx, .pl-ev.cx { text-decoration: line-through; opacity: .55; }
.pl-now { position: absolute; left: 0; right: 0; height: 2px; background: #e01e5a; z-index: 2; }
.pl-ev { border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 18%, var(--bg)); border-radius: 3px; padding: 1px 4px; margin: 1px 0; font-size: 11px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-task { font-size: 11px; padding: 1px 4px; margin: 1px 0; border-radius: 3px; background: var(--bg-alt); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-month { display: grid; grid-template-columns: repeat(7, 1fr); border-left: 1px solid var(--border); border-top: 1px solid var(--border); margin-top: 10px; }
.pl-month .h { padding: 6px; font-size: 12px; color: var(--muted); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pl-month .c { min-height: 96px; padding: 3px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-width: 0; }
.pl-month .c.out { background: var(--bg-alt); } .pl-month .c .n { font-size: 12px; color: var(--muted); } .pl-month .c.today .n { color: var(--accent); font-weight: 700; } .pl-month .c.today { background: var(--accent-soft); }
/* chat: keyword tags, chips, preview strip */
.kw { color: var(--accent); font-weight: 700; cursor: pointer; border-bottom: 1px dotted currentColor; } .kw.off { cursor: default; border: 0; color: var(--muted); }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.pl-chip { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px; font-size: 13px; background: var(--bg); text-align: left; color: var(--text); }
.pl-chip:hover { border-color: var(--accent); } .pl-chip.card { background: var(--bg-alt); }
.pl-chip .av { flex: none; }
.pl-preview { border: 1px solid var(--accent); border-radius: 8px 8px 0 0; background: var(--accent-soft); padding: 4px 10px; font-size: 13px; margin-bottom: -1px; }
.pl-preview .row { display: flex; align-items: center; gap: 6px; padding: 3px 0; flex-wrap: wrap; } .pl-preview .row.skip { opacity: .5; text-decoration: line-through; }
.pl-preview .x { margin-left: auto; font-size: 12px; color: var(--muted); } .pl-preview a { color: var(--accent); cursor: pointer; }
/* item side bar + Today */
.pl-pane { overflow-y: auto; flex: 1; min-height: 0; font-size: 14px; }
.pl-golinks { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border); font-size: 13px; }
.pl-golinks a { color: var(--accent); cursor: pointer; } .pl-golinks a.off { color: var(--muted); cursor: default; }
.pl-body { padding: 10px 14px 18px; } .pl-body h3 { margin: 4px 0 10px; font-size: 17px; } .legend { color: var(--muted); font-size: 12px; }
.pl-body .kv { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; margin: 10px 0; align-items: center; }
.pl-body .kv > span:nth-child(odd) { color: var(--muted); font-size: 13px; } .pl-body .kv a { color: var(--accent); cursor: pointer; }
.pl-body .desc { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 6px; }
.pl-tick { display: flex; gap: 8px; align-items: center; padding: 3px 0; } .pl-tick.big { font-size: 16px; font-weight: 600; margin: 8px 0; }
.pl-subs { margin: 10px 0; } .pl-subadd { width: 100%; margin-top: 4px; border: 1px dashed var(--border); border-radius: 6px; padding: 5px 8px; background: var(--bg); color: var(--text); }
.pl-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.pl-actions button, .pl-rsvp button, .pl-vote, .pl-comment button { border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; font-size: 13px; background: var(--bg); color: var(--text); }
.pl-actions .danger { color: var(--danger); }
.pl-rsvp { display: flex; gap: 6px; margin: 6px 0 12px; } .pl-rsvp button.on, .pl-vote.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.pl-people > div { display: flex; align-items: center; gap: 6px; padding: 3px 0; } .pl-people .muted { margin-left: auto; font-size: 12px; }
.pl-hist { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 8px; }
.pl-hist .h { color: var(--muted); font-size: 12px; padding: 2px 0; } .pl-hist .c { display: flex; gap: 8px; padding: 6px 0; } .pl-hist a { color: var(--accent); cursor: pointer; }
.pl-comment { display: flex; gap: 6px; margin-top: 8px; } .pl-comment textarea { flex: 1; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; background: var(--bg); color: var(--text); resize: vertical; }
.pl-tsec { margin: 14px 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; } .pl-tsec.red { color: #d0393e; }
.pl-trow { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.pl-trow:hover { background: var(--hover); } .pl-trow .r { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; } .pl-trow .tm { width: 54px; color: var(--muted); font-size: 12px; } .pl-trow .bar { width: 3px; align-self: stretch; border-radius: 2px; }
.pl-remind { position: fixed; right: 18px; width: 320px; background: var(--bg); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 10px 12px; z-index: 90; }
.pl-remind .t { font-weight: 700; } .pl-remind .s { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.pl-remind .a { display: flex; flex-wrap: wrap; gap: 5px; } .pl-remind button { border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; font-size: 12px; background: var(--bg); color: var(--text); }
.pl-remind button.p { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
body.mobile .pl-main { flex-direction: column; } body.mobile .pl-nav { width: auto; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 4px; flex: none; } body.mobile .pl-navi { white-space: nowrap; border-radius: 14px; } body.mobile .pl-navh { padding: 5px 8px; } body.mobile .pl-view { padding: 0 10px 10px; } body.mobile .pl-board { grid-template-columns: repeat(4, 78vw); overflow-x: auto; }
body.mobile .pl-tb input[type=search] { width: 100%; } body.mobile .pl-remind { left: 10px; right: 10px; width: auto; }
/* [@user] people list (owner 2026-12-04) */
.people-menu { width: 300px; }
.people-menu .pm-filter { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; margin: 2px 0 6px; background: var(--bg); color: var(--text); }
.people-menu .pm-list { max-height: 300px; overflow-y: auto; }
.people-menu .pm-list button { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people-menu .pm-list .sub { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.people-menu .pm-list button:hover .sub { color: inherit; }
