/* app.css — 飞书网页复刻：无外部依赖、移动端优先的完整界面样式。 */
:root {
  --brand: #3370ff;
  --brand-hover: #245bdb;
  --brand-soft: #eaf2ff;
  --brand-faint: #f4f8ff;
  --brand-ink: #1d4ed8;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f7f8fa;
  --surface-3: #f0f2f5;
  --chat-bg: #f3f5f9;
  --text: #1f2329;
  --text-2: #5f6672;
  --text-3: #8f959e;
  --line: #e5e7eb;
  --line-soft: #eef0f3;
  --danger: #e5484d;
  --danger-soft: #fff1f0;
  --green: #16a34a;
  --green-soft: #eaf7ef;
  --orange: #e8830c;
  --orange-soft: #fff7e8;
  --violet: #7c5cff;
  --violet-soft: #f2efff;
  --cyan: #0f9b9b;
  --pink: #d94b93;
  --rail-w: 74px;
  --nav-h: 62px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(31, 35, 41, .04);
  --shadow-md: 0 10px 32px rgba(31, 35, 41, .11);
  --shadow-lg: 0 24px 80px rgba(31, 35, 41, .18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden; color: var(--text); background: var(--bg);
  font-family: var(--font); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.4em; }
img { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: rgba(51, 112, 255, .2); }
:focus-visible { outline: 2px solid rgba(51, 112, 255, .7); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: #c6ccd6 transparent; }
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-thumb { background: #c8ced7; border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }
.icon-sprite { position: fixed; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
mark { background: #fff2b8; color: inherit; border-radius: 3px; padding: 0 1px; }
kbd { font-family: var(--font); font-size: 11px; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; line-height: 1.3; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; background: #fff; z-index: 9999; }

.boot-screen { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: radial-gradient(1000px 600px at 50% 10%, #f3f7ff 0, #fff 58%); }
.boot-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; animation: bootIn .5s ease both; }
.boot-title { font-size: 24px; font-weight: 700; letter-spacing: 2px; margin-top: 16px; }
.boot-sub { font-size: 13px; color: var(--text-3); }
.boot-bar { width: 96px; height: 3px; border-radius: 3px; background: #edf1f7; overflow: hidden; margin-top: 14px; }
.boot-bar span { display: block; width: 46%; height: 100%; border-radius: inherit; background: var(--brand); animation: bootBar 1.2s ease-in-out infinite; }
.boot-error { height: 100%; max-width: 480px; margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 32px; }
.boot-error h1 { font-size: 22px; }
.boot-error p { color: var(--text-2); }
.boot-error code { font-family: var(--mono); font-size: 12px; color: var(--danger); background: var(--danger-soft); padding: 4px 8px; border-radius: 6px; }
@keyframes bootIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes bootBar { 0% { transform: translateX(-110%); } 60%,100% { transform: translateX(230%); } }

/* Brand */
.brand-mark { position: relative; width: 32px; height: 32px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; padding: 1px; flex: 0 0 auto; }
.brand-mark i { display: block; border-radius: 3px; }
.brand-mark i:nth-child(1) { background: #3370ff; border-radius: 7px 2px 2px 2px; }
.brand-mark i:nth-child(2) { background: #00c5b5; border-radius: 2px 7px 2px 2px; }
.brand-mark i:nth-child(3) { background: #ffc60a; border-radius: 2px 2px 2px 7px; }
.brand-mark i:nth-child(4) { background: #f54a45; border-radius: 2px 2px 7px 2px; }
.brand-mark-lg { width: 54px; height: 54px; gap: 3px; padding: 2px; }
.brand-mark-lg i { border-radius: 6px; }
.brand-mark-sm { width: 24px; height: 24px; gap: 1px; padding: 0; }
.stage-logo { width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.stage-logo i { border-radius: 2px; background: rgba(255,255,255,.85); }
.stage-logo i:nth-child(2) { background: #70e6db; }
.stage-logo i:nth-child(3) { background: #ffd85b; }
.stage-logo i:nth-child(4) { background: #ff8f8b; }

/* App shell & rail */
.app-root, .app-shell { height: 100dvh; width: 100%; }
.app-shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); background: var(--bg); overflow: hidden; }
.view-root { min-width: 0; min-height: 0; height: 100dvh; overflow: hidden; background: var(--bg); }
.app-rail { width: var(--rail-w); height: 100dvh; background: rgba(255,255,255,.96); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 10px 5px 12px; z-index: 20; }
.rail-brand { width: 56px; height: 54px; border: 0; background: transparent; border-radius: 12px; display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 4px; transition: background .16s ease, transform .16s ease; }
.rail-brand:hover { background: var(--surface-2); transform: translateY(-1px); }
.dev-mark { position: absolute; right: 1px; bottom: 1px; font: 700 8px/1 var(--font); color: #fff; background: #e8830c; border: 2px solid #fff; padding: 2px 3px 2px; border-radius: 5px; letter-spacing: .4px; }
.rail-main { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; }
.rail-bottom { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 100%; padding-top: 8px; }
.rail-item { width: 62px; min-height: 52px; padding: 4px 0 3px; border: 0; background: transparent; border-radius: 10px; color: #636b76; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; transition: background .16s ease, color .16s ease; }
.rail-item:hover { background: var(--surface-2); color: var(--text); }
.rail-item.is-active { background: var(--brand-soft); color: var(--brand); }
.rail-icon { position: relative; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.rail-icon .ic { width: 21px; height: 21px; stroke-width: 1.75; }
.rail-text { font-size: 10px; font-weight: 500; line-height: 1.2; letter-spacing: .1px; }
.rail-badge { position: absolute; top: -4px; right: -10px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font: 600 10px/16px var(--font); text-align: center; border: 2px solid #fff; }
.rail-dot { position: absolute; top: 1px; right: 1px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); border: 2px solid #fff; }
.rail-utility { min-height: 36px; width: 46px; height: 36px; flex-direction: row; border-radius: 9px; }
.rail-utility .rail-icon .ic { width: 19px; height: 19px; }
.rail-avatar { border: 0; background: transparent; padding: 5px 0 0; border-radius: 12px; margin-top: 3px; }
.rail-avatar .avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.mobile-nav { display: none; }

/* Avatars */
.avatar { --av: #3370ff; position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--av), color-mix(in srgb, var(--av) 75%, #fff)); font-weight: 600; letter-spacing: .2px; user-select: none; overflow: visible; }
.avatar .avatar-text { transform: translateZ(0); line-height: 1; font-size: 15px; }
.avatar.is-square { border-radius: 11px; }
.avatar-collage { border-radius: 11px; overflow: hidden; background: var(--av); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; padding: 1px; }
.avatar-collage i { display: flex; align-items: center; justify-content: center; background: var(--c); color: #fff; font-style: normal; font-size: 10px; font-weight: 600; }
.avatar-collage i:nth-child(1) { border-radius: 8px 2px 2px 2px; }
.avatar-collage i:nth-child(2) { border-radius: 2px 8px 2px 2px; }
.avatar-collage i:nth-child(3) { border-radius: 2px 2px 2px 8px; }
.avatar-collage i:nth-child(4) { border-radius: 2px 2px 8px 2px; }
.avatar-bot { position: absolute; right: -3px; bottom: -2px; width: 14px; height: 14px; background: var(--brand); color: #fff; border: 2px solid #fff; border-radius: 50%; font-size: 8px; display: flex; align-items: center; justify-content: center; }
.av-xxxs, .av-xxxs .avatar-text { width: 20px; height: 20px; font-size: 9px; }
.av-xxs, .av-xxs .avatar-text { width: 24px; height: 24px; font-size: 10px; }
.av-xs, .av-xs .avatar-text { width: 28px; height: 28px; font-size: 11px; }
.av-sm, .av-sm .avatar-text { width: 32px; height: 32px; font-size: 12px; }
.av-md, .av-md .avatar-text { width: 40px; height: 40px; font-size: 14px; }
.av-lg, .av-lg .avatar-text { width: 48px; height: 48px; font-size: 17px; }
.av-xl, .av-xl .avatar-text { width: 64px; height: 64px; font-size: 23px; }
.av-xxxs { overflow: hidden; }
.av-xxxs .avatar-bot { display: none; }
.presence { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #fff; background: #c6ccd6; }
.presence-online { background: #34c759; }
.presence-busy { background: #f5a623; }
.presence-offline { background: #c4c8cf; }
.avatar-stack { display: inline-flex; align-items: center; flex: 0 0 auto; }
.avatar-stack .avatar { margin-left: -7px; box-shadow: 0 0 0 1.5px #fff; }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack .av-xxxs { width: 22px; height: 22px; }
.avatar-stack .av-xxs { width: 24px; height: 24px; }

/* Shared primitives */
.btn { border: 1px solid transparent; height: 36px; padding: 0 15px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; white-space: nowrap; background: transparent; color: var(--text); transition: background .15s ease, border-color .15s ease, transform .1s ease; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 2px 4px rgba(51,112,255,.18); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: #fff; border-color: var(--line); color: var(--text-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #cdd3dc; background: var(--surface-2); color: var(--text); }
.btn-white { background: #fff; color: #1d3a84; }
.btn-white:hover { background: #f3f7ff; }
.btn-glass { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-glass:hover { background: rgba(255,255,255,.22); }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.2); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-text { color: var(--danger); background: transparent; }
.btn-danger-text:hover { background: var(--danger-soft); }
.btn-sm { height: 32px; font-size: 12.5px; padding: 0 12px; }
.btn-xs { height: 27px; border-radius: 6px; font-size: 12px; padding: 0 10px; }
.btn[disabled] { opacity: .5; }
.icon-btn { width: 32px; height: 32px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; background: transparent; color: #606a76; transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn .ic { width: 19px; height: 19px; }
.icon-btn.small { width: 27px; height: 27px; }
.icon-btn.small .ic { width: 17px; height: 17px; }
.icon-btn.tiny { width: 23px; height: 23px; }
.icon-btn.tiny .ic { width: 15px; height: 15px; }
.icon-btn.is-active { color: var(--brand); background: var(--brand-soft); }
.icon-btn.is-starred { color: #f1a40d; }
.text-btn { border: 0; background: transparent; color: var(--brand); padding: 2px; display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; border-radius: 4px; }
.text-btn:hover { text-decoration: underline; background: var(--brand-faint); }
.text-btn .ic { width: 14px; height: 14px; }
.link-btn { border: 0; background: transparent; color: var(--brand); font-size: 12.5px; padding: 6px 0; display: flex; align-items: center; gap: 2px; }
.link-btn .ic { width: 14px; height: 14px; }
.pane-titlebar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px 8px; }
.pane-titlebar h1 { font-size: 19px; line-height: 1.25; letter-spacing: -.3px; font-weight: 700; }
.new-count { display: block; color: var(--text-3); font-size: 11px; margin-top: 3px; font-weight: 400; white-space: nowrap; }
.title-actions { display: flex; align-items: center; gap: 2px; }
.search-field { height: 34px; background: var(--surface-2); border: 1px solid transparent; border-radius: 8px; display: flex; align-items: center; gap: 7px; padding: 0 10px; transition: background .15s, border-color .15s, box-shadow .15s; }
.search-field:focus-within { background: #fff; border-color: #b8ceff; box-shadow: 0 0 0 3px rgba(51,112,255,.08); }
.search-field .search-icon { color: var(--text-3); display: flex; }
.search-field .search-icon .ic { width: 16px; height: 16px; }
.search-field input { border: 0; background: transparent; outline: 0; min-width: 0; flex: 1; font-size: 13px; color: var(--text); }
.search-field input::placeholder { color: #a6acb5; }
.search-field kbd { flex: 0 0 auto; background: transparent; border-color: #dfe3e9; }
.list-search { margin: 2px 16px 9px; }
.clear-search { border: 0; background: transparent; color: var(--text-3); padding: 0; display: flex; border-radius: 4px; }
.clear-search .ic { width: 14px; height: 14px; }
.page-topbar { min-height: 66px; padding: 12px 26px; border-bottom: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; z-index: 4; }
.page-topbar h1 { font-size: 19px; line-height: 1.25; letter-spacing: -.3px; }
.page-sub { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.page-actions { display: flex; align-items: center; gap: 8px; }
.switch { display: inline-flex; align-items: center; width: 33px; height: 19px; border-radius: 10px; background: #d8dde4; padding: 2px; transition: background .18s; flex: 0 0 auto; }
.switch i { display: block; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.15); transition: transform .18s; }
.switch.is-on { background: var(--brand); }
.switch.is-on i { transform: translateX(14px); }
.mini-tag { display: inline-flex; align-items: center; height: 17px; padding: 0 5px; border-radius: 4px; font-size: 9.5px; font-weight: 500; color: #6a7380; background: #f1f3f6; margin-left: 6px; vertical-align: 1px; }
.eyebrow { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: var(--brand); text-transform: uppercase; }
.eyebrow.light { color: rgba(255,255,255,.68); }
.dot-separator { color: #c4c8cf; padding: 0 1px; }
.small-empty, .list-empty { color: var(--text-3); font-size: 12.5px; padding: 24px 10px; text-align: center; }
.main-empty { text-align: center; padding: 80px 20px; color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.main-empty .ic { width: 38px; height: 38px; color: #c5ccd6; }
.main-empty h3 { color: var(--text); font-size: 15px; }
.main-empty p { font-size: 12.5px; }

/* Messenger */
.messenger { height: 100%; min-width: 0; display: grid; grid-template-columns: 304px minmax(0, 1fr); overflow: hidden; position: relative; }
.messenger.has-info { grid-template-columns: 304px minmax(0, 1fr) 318px; }
.chat-list-pane { min-height: 0; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.chat-filter-tabs { display: flex; align-items: center; gap: 3px; padding: 0 15px 7px; }
.filter-tab { border: 0; background: transparent; color: var(--text-3); height: 27px; padding: 0 10px; border-radius: 6px; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.filter-tab span { font-size: 10px; color: var(--text-3); background: var(--surface-2); border-radius: 8px; padding: 0 5px; line-height: 15px; }
.filter-tab:hover { color: var(--text); background: var(--surface-2); }
.filter-tab.is-active { color: var(--text); font-weight: 600; background: var(--surface-3); }
.filter-tab.is-active span { background: #fff; color: var(--text-2); }
.chat-list { flex: 1; overflow-y: auto; padding: 2px 8px 12px; min-height: 0; }
.chat-item { position: relative; width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; color: var(--text); margin-bottom: 1px; transition: background .14s ease; }
.chat-item:hover { background: var(--surface-2); }
.chat-item.is-active { background: var(--brand-soft); }
.chat-item.is-active::before { content: ""; position: absolute; left: 0; top: 18px; width: 3px; height: 20px; border-radius: 0 3px 3px 0; background: var(--brand); }
.chat-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.chat-item-top, .chat-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; }
.chat-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 550; letter-spacing: -.1px; display: inline-flex; align-items: center; }
.has-unread .chat-name { font-weight: 650; }
.chat-time { font-size: 10px; color: #a1a8b2; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.chat-preview { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #8b939e; font-size: 11.5px; line-height: 1.5; }
.has-unread .chat-preview { color: #69717c; }
.preview-empty { color: #b0b6be; }
.unread-badge { flex: 0 0 auto; min-width: 17px; height: 17px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 600; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.unread-badge.muted { background: #c3c8d0; }
.muted-icon { display: flex; color: #aeb4bd; flex: 0 0 auto; }
.muted-icon .ic { width: 13px; height: 13px; }
.chat-list-foot { padding: 10px 18px 14px; border-top: 1px solid var(--line-soft); color: var(--text-3); background: #fff; }
.storage-line { display: flex; justify-content: space-between; font-size: 10.5px; margin-bottom: 6px; }
.storage-line strong { color: var(--text-2); font-weight: 500; }
.storage-bar { height: 3px; background: #edf0f4; border-radius: 4px; overflow: hidden; }
.storage-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #6d9aff); border-radius: inherit; }
.soft-footer { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: #aeb4bd; margin-top: 9px; }
.online-dot { width: 5px; height: 5px; border-radius: 50%; background: #4fc27a; display: inline-block; }
.list-empty { text-align: center; padding: 60px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.list-empty .ic { width: 28px; height: 28px; color: #c7cdd5; }
.list-empty p { font-size: 13px; color: var(--text-2); }
.list-empty span { font-size: 11px; }

.chat-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--chat-bg); overflow: hidden; position: relative; }
.chat-pane-empty { align-items: center; justify-content: center; background: #f7f8fa; }
.chat-header { height: 64px; flex: 0 0 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 20px; gap: 12px; z-index: 6; }
.mobile-back { display: none; }
.chat-header-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.chat-heading { min-width: 0; }
.chat-heading-line { display: flex; align-items: center; gap: 5px; min-width: 0; }
.chat-heading h2 { font-size: 14.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.1px; }
.chat-sub { margin-top: 1px; color: var(--text-3); font-size: 10.5px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.avatars-sub .avatar-stack { margin-right: -3px; }
.avatars-sub .avatar-stack .avatar { width: 15px; height: 15px; margin-left: -4px; font-size: 7px; border: none; box-shadow: 0 0 0 1px #fff; }
.avatars-sub .avatar-stack .presence { display: none; }
.chat-header-actions { display: flex; align-items: center; gap: 1px; flex: 0 0 auto; }
.header-separator { width: 1px; height: 18px; background: var(--line); margin: 0 6px; }
.pinned-announcement { display: flex; align-items: center; gap: 8px; padding: 7px 20px; background: #fbfcff; border-bottom: 1px solid #edf0f5; color: var(--text-2); font-size: 11.5px; flex: 0 0 auto; min-height: 34px; }
.pin-icon { color: var(--brand); display: flex; transform: rotate(16deg); }
.pin-icon .ic { width: 14px; height: 14px; }
.announcement-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announcement-text strong { color: var(--text); font-weight: 600; margin-right: 4px; }
.announcement-link { border: 0; background: transparent; color: var(--brand); font-size: 11px; flex: 0 0 auto; padding: 2px 4px; }
.message-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 9px 24px 4px; background: radial-gradient(1200px 300px at 50% 0, rgba(255,255,255,.85), transparent 60%), #f4f6fa; }
.message-scroll-spacer { height: 6px; }
.date-divider { text-align: center; margin: 14px 0 12px; color: #9aa1ab; font-size: 10.5px; position: relative; }
.date-divider span { background: rgba(244,246,250,.94); padding: 0 10px; position: relative; z-index: 1; }
.date-divider::before { content: ""; height: 1px; background: #e6e9ef; position: absolute; left: 30px; right: 30px; top: 50%; }
.system-message { display: flex; justify-content: center; margin: 10px 0; }
.system-message span { color: #8a929d; background: rgba(255,255,255,.7); border: 1px solid #edf0f4; border-radius: 99px; padding: 3px 10px; font-size: 10.5px; max-width: 75%; text-align: center; }
.message-row { display: flex; gap: 9px; align-items: flex-start; padding: 8px 8px; border-radius: 10px; position: relative; animation: msgIn .22s ease both; }
.message-row:hover { background: rgba(255,255,255,.62); }
.message-row.is-self { flex-direction: row-reverse; }
.message-avatar { width: 30px; flex: 0 0 30px; align-self: flex-start; margin-top: 18px; }
.message-avatar:empty { width: 30px; }
.message-row.is-self .message-avatar { margin-left: 0; }
.message-main { min-width: 0; max-width: min(760px, 82%); position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.message-row.is-self .message-main { align-items: flex-end; }
.message-meta { display: flex; align-items: center; gap: 7px; padding: 0 2px 4px; color: #9098a3; font-size: 10px; line-height: 1.2; }
.message-meta .sender { color: #5c6673; font-size: 11.5px; font-weight: 500; }
.message-row.is-self .message-meta { flex-direction: row-reverse; }
.message-meta .message-time { font-variant-numeric: tabular-nums; letter-spacing: .1px; }
.bot-tag { font-size: 8.5px; line-height: 14px; height: 14px; border-radius: 3px; padding: 0 4px; color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.bubble { position: relative; max-width: 100%; background: #fff; border: 1px solid #e9edf3; border-radius: 4px 12px 12px 12px; box-shadow: 0 1px 2px rgba(31,35,41,.035); padding: 8px 12px; font-size: 13.5px; line-height: 1.7; color: #303640; overflow-wrap: anywhere; }
.bubble.bubble-self { background: linear-gradient(180deg, #3b78ff, #3370ff); border-color: transparent; color: #fff; border-radius: 12px 4px 12px 12px; box-shadow: 0 3px 10px rgba(51,112,255,.14); }
.bubble-text { white-space: pre-wrap; }
.bubble-self .mention { color: #dbe8ff; }
.mention { color: var(--brand); font-weight: 500; }
.bubble-rich { background: transparent; border: 0; box-shadow: none; padding: 0; max-width: 100%; }
.bubble-self.bubble-rich { color: var(--text); }
.is-compact { margin-top: -2px; padding-top: 3px; padding-bottom: 3px; }
.is-compact .message-avatar { opacity: 0; }
.is-compact .bubble { border-top-left-radius: 12px; }
.reply-preview { border-left: 2px solid rgba(51,112,255,.5); padding: 2px 8px; margin-bottom: 5px; font-size: 11px; color: #667180; background: rgba(128,144,168,.08); border-radius: 2px 5px 5px 2px; display: flex; gap: 5px; flex-wrap: wrap; }
.bubble-self .reply-preview { border-left-color: rgba(255,255,255,.55); color: rgba(255,255,255,.72); background: rgba(255,255,255,.13); }
.reply-preview strong { color: #4d5764; font-weight: 500; }
.bubble-self .reply-preview strong { color: #fff; }
.reply-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.reaction-row { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.reaction { height: 23px; min-width: 32px; border-radius: 7px; border: 1px solid #e6e9ee; background: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; padding: 0 6px; color: #5e6672; transition: border-color .14s, background .14s; }
.reaction:hover { border-color: #b9c9e8; }
.reaction span:first-child { font-size: 13px; line-height: 1; }
.reaction.is-mine { border-color: #b7cdfd; background: #eff5ff; color: var(--brand); }
.reaction span:last-child { font-size: 10px; font-variant-numeric: tabular-nums; }
.read-receipt { font-size: 9.5px; color: #a5abb4; margin-top: 3px; margin-right: 2px; }
.message-actions { opacity: 0; pointer-events: none; position: absolute; top: 1px; right: 7px; display: flex; gap: 1px; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 1px; box-shadow: 0 2px 7px rgba(31,35,41,.09); transition: opacity .12s; z-index: 3; }
.message-row.is-self .message-actions { right: auto; left: 7px; }
.message-row:hover .message-actions, .message-row:focus-within .message-actions { opacity: 1; pointer-events: auto; }
.message-action { width: 24px; height: 23px; border: 0; border-radius: 5px; background: transparent; color: #77808c; display: inline-flex; align-items: center; justify-content: center; }
.message-action:hover { background: var(--surface-2); color: var(--brand); }
.message-action .ic { width: 15px; height: 15px; }

/* Rich message cards */
.doc-attachment, .file-attachment { width: 360px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgba(31,35,41,.03); display: flex; align-items: center; gap: 10px; padding: 11px 12px; text-align: left; color: var(--text); text-decoration: none; }
.doc-attachment:hover, .file-attachment:hover { border-color: #c4d4f4; box-shadow: 0 4px 14px rgba(51,112,255,.08); }
.attachment-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.doc-icon { background: #eaf1ff; color: var(--brand); }
.doc-icon .ic { width: 22px; height: 22px; }
.attachment-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.attachment-copy strong { font-size: 12.5px; font-weight: 600; color: #303640; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-copy small { color: #8d95a0; font-size: 10.5px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-arrow { color: #aeb5bf; display: flex; }
.attachment-arrow .ic { width: 15px; height: 15px; }
.attachment-note { font-size: 11px; color: #7f8791; margin-top: 6px; line-height: 1.55; }
.file-type { width: 35px; height: 35px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font: 700 9px/1 var(--font); letter-spacing: .3px; flex: 0 0 auto; color: #fff; background: #bdc4cd; }
.file-pdf { background: #ed6b6b; }
.file-xls { background: #2d9d6b; }
.file-fig { background: #8a67e8; }
.file-doc { background: #3e75db; }
.file-zip { background: #8490a1; }
.file-png, .file-jpg { background: #e8a03c; }
.file-attachment { position: relative; }
.file-attachment .icon-btn { margin-left: 4px; }
.rich-missing { color: var(--text-3); font-size: 12px; padding: 10px; }
.design-card { width: 368px; max-width: 100%; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #fff; }
.design-preview { height: 156px; position: relative; background: radial-gradient(circle at 20% 20%, var(--p2), transparent 50%), linear-gradient(135deg, var(--p1), var(--p3)); overflow: hidden; }
.design-preview::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.14); right: -40px; top: -55px; }
.design-window { position: absolute; left: 24px; top: 22px; width: 220px; height: 126px; border-radius: 8px; background: rgba(255,255,255,.9); box-shadow: 0 12px 28px rgba(24,45,90,.18); padding: 8px 10px; z-index: 2; }
.design-dots { display: flex; gap: 3px; margin-bottom: 8px; }
.design-dots i { width: 4px; height: 4px; border-radius: 50%; background: #c8d0de; }
.design-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.design-mini-grid span { height: 23px; border-radius: 4px; background: linear-gradient(90deg, #eef2f8, #f6f8fb); }
.design-mini-grid span:nth-child(2) { background: var(--p2); opacity: .28; }
.design-float-card { position: absolute; top: 53px; left: 42px; background: #fff; border-radius: 5px; box-shadow: 0 4px 14px rgba(24,45,90,.16); padding: 5px 8px; display: flex; flex-direction: column; gap: 1px; }
.design-float-card b { color: var(--brand); font-size: 10px; }
.design-float-card small { color: #687180; font-size: 8px; }
.design-cursor { position: absolute; right: 32px; bottom: 22px; width: 27px; height: 27px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(51,112,255,.35); z-index: 3; }
.design-cursor .ic { width: 14px; height: 14px; }
.design-caption { padding: 10px 13px 11px; display: flex; flex-direction: column; gap: 3px; }
.design-caption strong { font-size: 12px; font-weight: 600; }
.design-caption span { font-size: 10.5px; line-height: 1.5; color: #818995; }
.meeting-card-message { width: 378px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.meeting-card-top { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px 10px; }
.meeting-glyph { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.meeting-glyph .ic { width: 20px; height: 20px; }
.meeting-card-top > div { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.meeting-card-top strong { font-size: 12.5px; font-weight: 600; }
.meeting-card-top small { color: #8d95a0; font-size: 10.5px; }
.meeting-location { color: #8d95a0; font-size: 9.5px; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.meeting-location .ic { width: 12px; height: 12px; }
.meeting-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line-soft); padding: 8px 14px; color: #9aa1ab; font-size: 10px; background: #fbfcfe; }

/* Composer */
.composer-wrap { flex: 0 0 auto; background: #fff; border-top: 1px solid var(--line); padding: 9px 22px 8px; position: relative; z-index: 2; }
.composer { position: relative; }
.composer-box { border: 1px solid #dce1e8; border-radius: 10px; background: #fff; padding: 8px 10px 6px; position: relative; transition: border-color .16s, box-shadow .16s; }
.composer-box:focus-within { border-color: #a9c1fa; box-shadow: 0 0 0 3px rgba(51,112,255,.06); }
.composer-input { width: 100%; resize: none; border: 0; outline: 0; min-height: 24px; max-height: 160px; line-height: 1.6; font-size: 13.5px; padding: 1px 2px 4px; background: transparent; color: var(--text); display: block; }
.composer-input::placeholder { color: #a5acb5; }
.composer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tool-group { display: flex; align-items: center; gap: 1px; }
.tool-btn { width: 28px; height: 27px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: #8a929c; }
.tool-btn:hover { background: var(--surface-2); color: var(--brand); }
.tool-btn .ic { width: 17px; height: 17px; }
.toolbar-separator { width: 1px; height: 15px; background: var(--line); margin: 0 4px; }
.send-group { display: flex; align-items: center; gap: 8px; }
.send-hint { font-size: 9px; color: #b2b8c1; }
.send-btn { width: 29px; height: 29px; border: 0; border-radius: 7px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s, opacity .15s; }
.send-btn:hover { background: var(--brand-hover); }
.send-btn.is-idle { opacity: .45; }
.send-btn .ic { width: 16px; height: 16px; transform: translateX(-1px); }
.composer-footnote { display: flex; align-items: center; justify-content: center; gap: 4px; color: #b1b7c0; font-size: 9px; margin-top: 5px; }
.composer-footnote .ic { width: 10px; height: 10px; }
.composer-reply { display: flex; align-items: center; gap: 7px; background: #f7f9fc; border: 1px solid var(--line-soft); border-radius: 7px; padding: 6px 9px; margin-bottom: 6px; color: #6f7884; font-size: 11px; }
.composer-reply > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply-bar { width: 2px; height: 17px; border-radius: 2px; background: var(--brand); }
.composer-popover { display: none; position: absolute; left: 10px; bottom: 77px; width: 254px; max-height: 250px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-md); padding: 6px; z-index: 10; }
.composer-popover.is-open { display: block; animation: popIn .14s ease both; }
.emoji-popover { width: 244px; display: none; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; }
.emoji-popover.is-open { display: grid; }
.emoji-choice { border: 0; background: transparent; border-radius: 6px; font-size: 19px; width: 28px; height: 30px; display: flex; align-items: center; justify-content: center; }
.emoji-choice:hover { background: var(--surface-2); }
.mention-option { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 7px; border-radius: 7px; text-align: left; color: var(--text); }
.mention-option:hover { background: var(--surface-2); }
.mention-option span { font-size: 12.5px; }
.mention-option small { color: var(--text-3); font-size: 10px; margin-left: auto; }
.attach-popover { width: 278px; }
.attach-popover button { width: 100%; border: 0; background: transparent; display: flex; align-items: flex-start; gap: 9px; text-align: left; padding: 9px; border-radius: 7px; color: var(--text); }
.attach-popover button:hover { background: var(--surface-2); }
.attach-popover .ic { width: 18px; height: 18px; color: var(--brand); margin-top: 1px; }
.attach-popover strong { display: block; font-size: 12.5px; font-weight: 500; }
.attach-popover small { display: block; color: var(--text-3); font-size: 10px; margin-top: 2px; }
.conversation-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-3); gap: 4px; padding: 30px; }
.conversation-empty .empty-illustration { width: 58px; height: 58px; border-radius: 18px; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); margin-bottom: 5px; }
.empty-illustration .ic { width: 28px; height: 28px; }
.conversation-empty strong { color: var(--text); font-size: 13px; }
.conversation-empty p { font-size: 11.5px; }

/* Chat info panel */
.chat-info { background: #fff; border-left: 1px solid var(--line); min-width: 0; overflow: hidden; display: flex; flex-direction: column; }
.info-header { height: 57px; flex: 0 0 57px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line-soft); }
.info-header h3 { font-size: 13.5px; font-weight: 600; }
.info-header h3 span { font-weight: 400; color: var(--text-3); font-size: 11px; margin-left: 2px; }
.info-scroll { overflow-y: auto; padding-bottom: 18px; }
.info-profile { display: flex; flex-direction: column; align-items: center; padding: 22px 18px 15px; border-bottom: 1px solid var(--line-soft); text-align: center; }
.info-profile > strong { margin-top: 9px; font-size: 15px; }
.info-profile > span { margin-top: 4px; font-size: 10.5px; color: var(--text-3); line-height: 1.55; padding: 0 14px; max-height: 34px; overflow: hidden; }
.info-quick-actions { display: flex; gap: 20px; margin-top: 15px; }
.info-quick-actions button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--text-2); font-size: 9.5px; }
.info-quick-actions button:hover { color: var(--brand); }
.info-quick-actions .ic { width: 17px; height: 17px; padding: 7px; border-radius: 50%; background: var(--surface-2); box-sizing: content-box; }
.info-quick-actions button:hover .ic { background: var(--brand-soft); }
.info-section { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.info-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.info-section-head h4 { font-size: 11.5px; color: var(--text-2); font-weight: 500; }
.info-section-head h4 span { color: var(--text-3); font-weight: 400; }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 5px; }
.member-cell { background: transparent; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; color: var(--text-2); font-size: 9.5px; }
.member-cell > span:last-child { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-cell:hover { color: var(--brand); }
.pinned-summary { display: flex; align-items: flex-start; gap: 7px; background: #f8faff; border: 1px solid #edf1fa; border-radius: 6px; padding: 8px; color: var(--brand); }
.pinned-summary .ic { width: 13px; height: 13px; transform: rotate(16deg); margin-top: 2px; }
.pinned-summary p { font-size: 10.5px; color: #626d7b; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.info-file { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 5px 0; text-align: left; }
.info-file .file-type { width: 28px; height: 28px; font-size: 8px; }
.info-file > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.info-file strong { font-size: 11px; font-weight: 400; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.info-file small { color: var(--text-3); font-size: 9px; }
.info-file:hover strong { color: var(--brand); }
.info-settings { padding-top: 5px; padding-bottom: 5px; }
.setting-row { width: 100%; display: flex; align-items: center; justify-content: space-between; border: 0; background: transparent; padding: 10px 0; color: var(--text-2); font-size: 11.5px; text-align: left; }
.setting-row > span:first-child { display: flex; align-items: center; gap: 7px; }
.setting-row .ic { width: 15px; height: 15px; color: #8f98a4; }
.setting-row .switch { pointer-events: none; }
.setting-row:hover { color: var(--text); }
.row-chevron { width: 14px !important; color: #b4bac3 !important; }
.info-footnote { padding: 14px 16px 0; font-size: 9px; color: #b3b9c2; text-align: center; }
@keyframes msgIn { from { opacity: 0; transform: translateY(4px); } }
@keyframes popIn { from { opacity: 0; transform: translateY(5px) scale(.99); } }

/* ========== Contacts ========== */
.contacts-layout { height: 100%; min-width: 0; display: grid; grid-template-columns: 282px minmax(0, 1fr); overflow: hidden; position: relative; }
.contacts-layout.has-detail { grid-template-columns: 282px minmax(0, 1fr) 322px; }
.contacts-side { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.contact-nav { padding: 4px 10px 8px; display: flex; flex-direction: column; gap: 2px; }
.contact-nav-item { width: 100%; height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); display: flex; align-items: center; gap: 9px; padding: 0 10px; font-size: 12.5px; text-align: left; }
.contact-nav-item:hover { background: var(--surface-2); }
.contact-nav-item.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.contact-nav-item .ic { width: 16px; height: 16px; }
.nav-count { margin-left: auto; color: var(--text-3); font-size: 10px; }
.contact-nav-item.is-active .nav-count { color: var(--brand); }
.org-tree-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 17px 5px; color: #9ca3ad; font-size: 10.5px; }
.org-tree { padding: 0 10px 4px; }
.tree-company, .tree-node { border: 0; background: transparent; display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; height: 30px; width: 100%; border-radius: 6px; padding: 0 5px; text-align: left; }
.tree-company:hover, .tree-node:hover { background: var(--surface-2); }
.tree-company.is-active, .tree-node.is-active { color: var(--brand); background: var(--brand-faint); font-weight: 500; }
.tree-caret { display: flex; color: #9ca3ad; }
.tree-caret .ic { width: 13px; height: 13px; }
.tree-building { color: #8e97a3; display: flex; }
.tree-building .ic { width: 16px; height: 16px; }
.tree-count { margin-left: auto; color: #afb5be; font-size: 10px; }
.tree-node { padding-left: 24px; position: relative; }
.tree-line { position: absolute; left: 13px; top: -8px; width: 1px; height: 42px; background: var(--line-soft); }
.dept-dot { display: flex; color: #8f97a2; }
.dept-dot .ic { width: 14px; height: 14px; }
.contacts-side-group { padding: 2px 10px 8px; border-top: 1px solid var(--line-soft); margin-top: 5px; }
.side-group-row { width: 100%; height: 34px; border: 0; background: transparent; border-radius: 6px; padding: 0 8px; display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 11.5px; text-align: left; }
.side-group-row:hover { background: var(--surface-2); }
.side-group-row > span:nth-child(2) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-group-row > .ic { width: 13px; height: 13px; color: #b3b9c2; }
.contacts-side-foot { margin-top: auto; padding: 11px 18px 14px; color: #b0b7c0; font-size: 9.5px; display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line-soft); }
.contacts-side-foot .ic { width: 11px; height: 11px; }
.contacts-main { min-width: 0; min-height: 0; background: #f7f8fa; display: flex; flex-direction: column; overflow: hidden; }
.contacts-scroll { flex: 1; overflow-y: auto; padding: 24px 28px 40px; min-height: 0; }
.org-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #183b91 0%, #2d63dc 52%, #5f8dff 100%); border-radius: 16px; min-height: 208px; padding: 28px 30px; display: flex; align-items: center; gap: 26px; color: #fff; box-shadow: 0 12px 30px rgba(27,67,159,.16); }
.org-hero::before { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; right: -80px; top: -160px; }
.org-hero::after { content: ""; position: absolute; width: 220px; height: 220px; background: radial-gradient(circle, rgba(255,255,255,.15), transparent 65%); right: 60px; bottom: -110px; }
.org-hero-copy { position: relative; z-index: 2; flex: 1; max-width: 560px; }
.org-hero-copy .eyebrow { color: rgba(255,255,255,.6); }
.org-hero-copy h2 { font-size: 27px; line-height: 1.3; margin: 7px 0 7px; letter-spacing: -.5px; }
.org-hero-copy p { font-size: 12px; line-height: 1.75; color: rgba(255,255,255,.72); max-width: 440px; }
.org-hero-actions { display: flex; gap: 8px; margin-top: 17px; position: relative; z-index: 4; }
.org-hero-stats { position: relative; z-index: 2; display: flex; gap: 0; padding: 14px 20px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; backdrop-filter: blur(4px); }
.org-hero-stats > div { min-width: 62px; padding: 0 12px; border-left: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 3px; }
.org-hero-stats > div:first-child { border-left: 0; }
.org-hero-stats strong { font-size: 22px; line-height: 1; font-weight: 650; }
.org-hero-stats span { color: rgba(255,255,255,.62); font-size: 9.5px; white-space: nowrap; }
.hero-people { position: absolute; right: 28px; bottom: 19px; display: flex; z-index: 3; opacity: .88; }
.hero-people .avatar { margin-left: -8px; box-shadow: 0 0 0 2px rgba(49,95,214,.8); }
.dept-section { margin-top: 23px; }
.dept-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0 2px 10px; }
.dept-title { display: flex; align-items: flex-start; gap: 9px; }
.dept-icon { width: 27px; height: 27px; border-radius: 7px; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); margin-top: 1px; }
.dept-icon .ic { width: 15px; height: 15px; }
.dept-title h3 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.dept-title h3 span { font-size: 10px; color: var(--text-3); font-weight: 400; }
.dept-title p { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 9px; }
.person-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 12px; display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; box-shadow: 0 1px 2px rgba(31,35,41,.025); transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; }
.person-card:hover { border-color: #c2d2f6; box-shadow: 0 5px 16px rgba(33,72,154,.08); transform: translateY(-1px); }
.person-card.is-selected { border-color: #a9c3fc; background: #fbfdff; box-shadow: 0 0 0 2px rgba(51,112,255,.08); }
.person-card-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.person-name { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.self-chip { font-size: 8px; line-height: 14px; border-radius: 3px; background: var(--brand-soft); color: var(--brand); padding: 0 4px; font-weight: 500; }
.person-role { font-size: 10.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-contact { margin-top: 2px; display: flex; align-items: center; gap: 7px; color: #a0a7b1; font-size: 9.5px; }
.person-status::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; margin-right: 3px; vertical-align: 1px; background: #bcc2cb; }
.person-status.status-online::before { background: #2fc764; }
.person-status.status-busy::before { background: #f2a61a; }
.person-hover-actions { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.person-card:hover .person-hover-actions { opacity: 1; }
.hover-action { width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; color: var(--brand); background: var(--brand-soft); }
.hover-action .ic { width: 14px; height: 14px; }
.directory-hint { margin-top: 28px; border: 1px dashed #d8dde6; border-radius: 10px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.5); }
.hint-icon { width: 30px; height: 30px; color: var(--brand); display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--brand-soft); }
.hint-icon .ic { width: 16px; height: 16px; }
.directory-hint > div:nth-child(2) { flex: 1; }
.directory-hint strong { font-size: 11.5px; font-weight: 500; }
.directory-hint p { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.results-heading { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 16px; }
.results-heading h2 { font-size: 17px; }
.results-heading > span { color: var(--text-3); font-size: 11px; }
.results-heading .text-btn { margin-left: auto; }

.contact-detail { background: #fff; border-left: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.contact-detail-scroll { flex: 1; overflow-y: auto; }
.contact-cover { height: 105px; background: linear-gradient(135deg, color-mix(in srgb, var(--cover) 82%, #193978), var(--cover)); position: relative; overflow: hidden; }
.contact-cover .cover-orb { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.orb-a { width: 140px; height: 140px; right: -40px; top: -50px; }
.orb-b { width: 80px; height: 80px; left: 20px; top: 50px; border: 1px solid rgba(255,255,255,.22); background: none; }
.contact-detail-avatar { position: absolute; left: 22px; bottom: -26px; padding: 3px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); }
.contact-detail-head { padding: 35px 22px 0; }
.contact-detail-head h2 { font-size: 18px; display: flex; align-items: center; gap: 7px; }
.contact-detail-head p { font-size: 10px; color: var(--text-3); margin-top: 2px; letter-spacing: .2px; }
.contact-detail-head > span { display: block; font-size: 11px; color: var(--text-2); margin-top: 6px; }
.contact-actions { display: flex; gap: 7px; padding: 14px 22px 3px; }
.contact-actions .btn { flex: 1; font-size: 12px; padding: 0 9px; }
.contact-actions .ic { width: 15px; height: 15px; }
.detail-block { padding: 15px 22px; border-bottom: 1px solid var(--line-soft); }
.detail-block h4 { font-size: 11px; color: var(--text-3); font-weight: 500; margin-bottom: 9px; }
.detail-block h4 span { color: var(--text-3); font-weight: 400; }
.detail-row { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; }
.detail-row > .ic { width: 15px; height: 15px; color: #9ba3ae; margin-top: 1px; }
.detail-row > div { display: flex; flex-direction: column; gap: 2px; }
.detail-row span { font-size: 9.5px; color: var(--text-3); }
.detail-row strong { font-size: 11.5px; font-weight: 400; color: #4c5663; overflow-wrap: anywhere; }
.bio-quote { color: #67707c; font-size: 11.5px; line-height: 1.65; }
.detail-chat-row, .detail-doc-row { width: 100%; display: flex; align-items: center; gap: 7px; border: 0; background: transparent; border-radius: 5px; padding: 5px 3px; color: var(--text-2); font-size: 11.5px; text-align: left; }
.detail-chat-row:hover, .detail-doc-row:hover { background: var(--surface-2); color: var(--brand); }
.detail-chat-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-chat-row > .ic { width: 13px; height: 13px; color: #b1b8c1; }
.doc-mini-icon { color: var(--brand); display: flex; }
.doc-mini-icon .ic { width: 14px; height: 14px; }
.contact-detail-foot { font-size: 9px; color: #b6bcc5; padding: 15px 22px 22px; }

/* ========== Calendar ========== */
.calendar-layout { height: 100%; display: grid; grid-template-columns: 280px minmax(0, 1fr); min-width: 0; overflow: hidden; }
.calendar-side { background: #fff; border-right: 1px solid var(--line); min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.calendar-create { margin: 3px 16px 17px; height: 35px; justify-content: flex-start; }
.mini-calendar { padding: 0 16px 18px; border-bottom: 1px solid var(--line-soft); }
.mini-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.mini-cal-head strong { font-size: 12px; font-weight: 600; color: #4a5360; }
.mini-cal-nav { display: flex; gap: 1px; }
.mini-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; color: #a2a9b3; font-size: 9px; margin-bottom: 4px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px 0; }
.mini-day { border: 0; background: transparent; height: 28px; border-radius: 6px; font-size: 10.5px; color: #4f5965; position: relative; display: flex; align-items: center; justify-content: center; padding: 0; }
.mini-day:hover { background: var(--surface-2); }
.mini-day.is-other { color: #cbd0d7; }
.mini-day.is-today { color: var(--brand); font-weight: 700; background: var(--brand-soft); }
.mini-day.is-selected:not(.is-today) { background: #f1f3f7; color: var(--text); font-weight: 600; }
.mini-dot { position: absolute; bottom: 3px; width: 3px; height: 3px; border-radius: 50%; background: var(--dot); }
.cal-side-section { padding: 15px 16px 13px; border-bottom: 1px solid var(--line-soft); }
.cal-side-head { display: flex; align-items: center; justify-content: space-between; color: #8b949f; font-size: 10.5px; margin-bottom: 7px; }
.calendar-toggle { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; padding: 5px 3px; border-radius: 5px; text-align: left; color: #4f5965; font-size: 11.5px; }
.calendar-toggle:hover { background: var(--surface-2); }
.calendar-toggle small { margin-left: auto; color: #aeb5be; font-size: 9px; }
.cal-check { width: 10px; height: 10px; border-radius: 3px; background: var(--cal); flex: 0 0 auto; display: inline-block; position: relative; }
.calendar-toggle.is-off { color: #b0b6bf; }
.calendar-toggle.is-off .cal-check { background: transparent; border: 1px solid #c8ced7; }
.subscribed-cal { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #4f5965; padding: 5px 3px; }
.subscribed-cal small { margin-left: auto; color: #aeb5be; font-size: 9px; }
.next-up-section { padding-bottom: 14px; }
.next-event { display: flex; gap: 8px; width: 100%; border: 0; background: transparent; padding: 6px 3px; border-radius: 5px; text-align: left; }
.next-event:hover { background: var(--surface-2); }
.next-time { color: var(--brand); font-size: 9.5px; font-weight: 600; flex: 0 0 32px; padding-top: 1px; font-variant-numeric: tabular-nums; }
.next-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.next-copy strong { font-size: 10.5px; font-weight: 500; color: #4f5965; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-copy small { color: #a3aab4; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-side-foot { margin-top: auto; display: flex; align-items: center; gap: 4px; color: #afb5be; font-size: 9px; padding: 12px 18px 14px; }
.cal-side-foot .ic { width: 11px; height: 11px; }
.calendar-main { background: #fff; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.calendar-toolbar { min-height: 64px; flex: 0 0 64px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px; background: #fff; z-index: 4; }
.cal-toolbar-left { display: flex; align-items: center; gap: 9px; min-width: 0; }
.cal-toolbar-left h2 { font-size: 17px; font-weight: 650; letter-spacing: -.3px; white-space: nowrap; }
.cal-range { font-size: 10.5px; color: var(--text-3); white-space: nowrap; margin-left: 2px; }
.cal-nav { display: flex; }
.cal-toolbar-right { display: flex; align-items: center; gap: 10px; }
.segmented { display: flex; align-items: center; background: var(--surface-2); border-radius: 7px; padding: 2px; }
.segmented button { border: 0; background: transparent; color: #7b8490; height: 26px; border-radius: 5px; padding: 0 10px; font-size: 11px; }
.segmented button:hover { color: var(--text); }
.segmented button.is-active { background: #fff; color: var(--text); font-weight: 500; box-shadow: 0 1px 3px rgba(31,35,41,.1); }
.calendar-content { flex: 1; min-height: 0; overflow: auto; position: relative; }
.week-scroll { min-height: 100%; overflow-x: auto; }
.week-calendar { min-width: 790px; }
.week-grid-head { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); display: grid; grid-template-columns: 57px repeat(7, minmax(0,1fr)); height: 58px; border-bottom: 1px solid var(--line); }
.timezone-label { color: #b0b7c0; font-size: 9px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 9px; }
.day-head { border-left: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: center; gap: 6px; color: #737c88; position: relative; }
.day-name { font-size: 9.5px; color: #9ca3ad; }
.day-number { font-size: 15px; font-weight: 500; color: #4d5662; font-variant-numeric: tabular-nums; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.day-head.is-today .day-name { color: var(--brand); font-weight: 500; }
.day-head.is-today .day-number { background: var(--brand); color: #fff; font-weight: 600; }
.day-add { position: absolute; right: 7px; top: 16px; width: 22px; height: 22px; border: 0; border-radius: 5px; background: transparent; color: #a8b0ba; opacity: 0; display: flex; align-items: center; justify-content: center; }
.day-head:hover .day-add { opacity: 1; }
.day-add:hover { background: var(--brand-soft); color: var(--brand); }
.day-add .ic { width: 14px; height: 14px; }
.week-body { display: grid; grid-template-columns: 57px minmax(0, 1fr); }
.time-gutter { position: relative; border-right: 1px solid var(--line); background: #fff; }
.time-label { position: absolute; right: 7px; transform: translateY(-6px); color: #b0b7c0; font-size: 8.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.week-cols { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); min-width: 0; }
.week-day-col { border-left: 1px solid var(--line-soft); position: relative; background: #fff; min-height: 0; }
.week-day-col.is-today { background: #fcfdff; }
.hour-cell { border-bottom: 1px solid #f1f3f6; }
.hour-cell:last-of-type { border-bottom: 0; }
.week-event { position: absolute; border: 0; border-left: 3px solid #3370ff; border-radius: 5px; background: #ecf3ff; padding: 4px 7px; display: flex; flex-direction: column; gap: 1px; text-align: left; overflow: hidden; cursor: pointer; transition: box-shadow .15s, filter .15s; z-index: 2; }
.week-event:hover { box-shadow: 0 4px 14px rgba(31,35,41,.12); filter: saturate(1.15); }
.week-event .event-title { font-size: 10.5px; color: #1e3f78; font-weight: 600; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.week-event .event-time { font-size: 9px; color: #6d8abd; white-space: nowrap; }
.week-event .event-place { display: flex; align-items: center; gap: 2px; font-size: 8.5px; color: #8198bd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.week-event .event-place .ic { width: 10px; height: 10px; }
.event-orange { border-left-color: #e9a128; background: #fff7e9; }
.event-orange .event-title { color: #82550b; }
.event-orange .event-time { color: #b28a42; }
.event-violet { border-left-color: #8b6df0; background: #f4f0ff; }
.event-violet .event-title { color: #51368e; }
.event-violet .event-time { color: #8a75b8; }
.event-green { border-left-color: #22a65b; background: #ebf9f0; }
.event-green .event-title { color: #1b603a; }
.event-green .event-time { color: #5e9c78; }
.event-blue { border-left-color: #3370ff; background: #edf3ff; }
.now-line { position: absolute; left: -4px; right: 0; height: 1px; background: #ed4343; z-index: 3; pointer-events: none; }
.now-line i { position: absolute; left: 3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #ed4343; }
.now-line span { position: absolute; left: -43px; top: -7px; color: #ed4343; font-size: 8px; background: #fff; padding: 1px 2px; font-variant-numeric: tabular-nums; }
.day-empty-add { position: absolute; right: 6px; bottom: 5px; width: 24px; height: 24px; border-radius: 6px; border: 1px dashed #d5dbe4; background: #fff; color: #aab2bd; display: flex; align-items: center; justify-content: center; opacity: 0; }
.week-day-col:hover .day-empty-add { opacity: 1; }
.day-empty-add .ic { width: 13px; height: 13px; }
.month-scroll { min-height: 100%; overflow: auto; }
.month-calendar { min-width: 760px; }
.month-weekdays { display: grid; grid-template-columns: repeat(7,1fr); background: #fff; position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); height: 32px; }
.month-weekdays div { padding: 8px 11px; font-size: 9.5px; color: #9ca3ad; }
.month-grid { display: grid; grid-template-columns: repeat(7,1fr); grid-auto-rows: minmax(106px, 1fr); }
.month-cell { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 6px; background: #fff; min-width: 0; }
.month-cell.is-other { background: #fbfcfd; color: #c0c5cd; }
.month-cell-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.month-day-number { width: 23px; height: 23px; border: 0; border-radius: 50%; background: transparent; color: #525b67; font-size: 10.5px; display: flex; align-items: center; justify-content: center; padding: 0; }
.month-cell.is-other .month-day-number { color: #c4c9d0; }
.month-day-number:hover { background: var(--brand-soft); color: var(--brand); }
.month-cell.is-today .month-day-number { background: var(--brand); color: #fff; font-weight: 600; }
.today-label { color: var(--brand); font-size: 8px; background: var(--brand-soft); padding: 1px 5px; border-radius: 3px; }
.month-events { display: flex; flex-direction: column; gap: 2px; }
.month-event { border: 0; background: transparent; display: flex; align-items: center; gap: 4px; width: 100%; text-align: left; padding: 2px 3px; border-radius: 3px; color: #596675; font-size: 9px; overflow: hidden; }
.month-event:hover { background: var(--surface-2); }
.month-event > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.month-event-dot { width: 4px; height: 4px; border-radius: 50%; background: #3370ff; flex: 0 0 auto; }
.month-event.event-orange .month-event-dot { background: #e9a128; }
.month-event.event-violet .month-event-dot { background: #8b6df0; }
.month-event.event-green .month-event-dot { background: #22a65b; }
.month-more { border: 0; background: transparent; text-align: left; color: #9ca3ad; font-size: 8.5px; padding: 1px 3px; }
.agenda-view { max-width: 760px; margin: 0 auto; padding: 20px 24px 50px; }
.agenda-day { margin-bottom: 21px; }
.agenda-day-title { display: flex; align-items: center; gap: 8px; color: #969fab; font-size: 10.5px; margin-bottom: 6px; }
.agenda-day-title strong { color: #404a56; font-size: 12px; }
.agenda-item { width: 100%; display: flex; align-items: center; gap: 9px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; padding: 8px 3px; text-align: left; color: #505a66; }
.agenda-item:hover { background: var(--surface-2); }
.agenda-time { font-size: 10px; color: #8f98a4; width: 38px; font-variant-numeric: tabular-nums; }
.agenda-bar { width: 3px; height: 28px; border-radius: 3px; background: #3370ff; }
.agenda-item.event-orange .agenda-bar { background: #e9a128; }
.agenda-item.event-violet .agenda-bar { background: #8b6df0; }
.agenda-item.event-green .agenda-bar { background: #22a65b; }
.agenda-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.agenda-copy strong { font-size: 11.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-copy small { font-size: 9px; color: #a0a8b2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda-item > .ic { width: 13px; height: 13px; color: #b1b8c1; }
.agenda-empty { font-size: 10px; color: #b0b7c0; padding: 7px 3px; }
.calendar-mobile-agenda { display: none; }

/* ========== Docs ========== */
.docs-layout{height:100%;min-width:0;display:grid;grid-template-columns:286px minmax(0,1fr);overflow:hidden}
.docs-layout.has-comments{grid-template-columns:286px minmax(0,1fr) 300px}
.docs-side{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;overflow:hidden}
.new-doc-btn{margin:2px 16px 12px;height:34px;justify-content:flex-start}
.docs-quick-nav{padding:0 10px 9px;display:flex;flex-direction:column;gap:1px;border-bottom:1px solid var(--line-soft)}
.docs-quick-nav button{width:100%;border:0;background:transparent;border-radius:6px;height:31px;display:flex;align-items:center;gap:8px;padding:0 9px;color:var(--text-2);font-size:12px;text-align:left}
.docs-quick-nav button:hover{background:var(--surface-2)}
.docs-quick-nav button.is-active{background:var(--brand-soft);color:var(--brand);font-weight:500}
.docs-quick-nav button .ic{width:15px;height:15px}
.docs-quick-nav .nav-count{margin-left:auto;color:var(--text-3);font-size:9.5px}
.docs-quick-nav button.is-active .nav-count{color:var(--brand)}
.docs-tree-head{display:flex;align-items:center;justify-content:space-between;color:#98a0ab;font-size:10px;padding:13px 17px 4px}
.docs-folders{padding:0 10px}
.docs-folder{width:100%;height:29px;border:0;background:transparent;border-radius:5px;display:flex;align-items:center;gap:6px;padding:0 7px;color:var(--text-2);font-size:11.5px;text-align:left}
.docs-folder:hover{background:var(--surface-2)}
.docs-folder.is-active{color:var(--brand);background:var(--brand-faint)}
.docs-folder .ic{width:14px;height:14px;color:#9199a4}
.folder-caret{display:flex;color:#aeb5be}.folder-caret .ic{width:12px;height:12px}
.docs-folder small{margin-left:auto;color:#aab1ba;font-size:9px}
.docs-list-head{display:flex;align-items:center;justify-content:space-between;padding:11px 17px 5px;color:#a3aab4;font-size:9.5px;border-top:1px solid var(--line-soft);margin-top:8px}
.docs-nav-list{flex:1;min-height:0;overflow-y:auto;padding:0 8px 10px}
.docs-nav-item{position:relative;width:100%;display:flex;align-items:flex-start;gap:8px;border:0;background:transparent;border-radius:7px;padding:9px 8px;text-align:left;margin-bottom:1px;color:var(--text)}
.docs-nav-item:hover{background:var(--surface-2)}
.docs-nav-item.is-active{background:var(--brand-soft)}
.docs-nav-item.is-active::before{content:"";position:absolute;left:0;top:12px;width:2px;height:18px;border-radius:0 2px 2px 0;background:var(--brand)}
.doc-nav-icon{width:21px;height:21px;flex:0 0 21px;border-radius:5px;background:#f1f4f9;color:#7c899b;display:flex;align-items:center;justify-content:center;margin-top:1px}
.doc-nav-icon .ic{width:13px;height:13px}
.docs-nav-item.is-active .doc-nav-icon{background:#dbe8ff;color:var(--brand)}
.doc-nav-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.doc-nav-copy strong{font-size:11.5px;font-weight:450;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.doc-nav-copy small{font-size:9px;color:#a1a8b2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.docs-nav-item.is-active .doc-nav-copy strong{color:var(--brand);font-weight:550}
.doc-nav-star{color:#f0aa22;display:flex;margin-left:auto}.doc-nav-star .ic{width:12px;height:12px;fill:#f6c453;stroke:#f0aa22}
.docs-side-tip{margin:8px 12px 13px;border-radius:9px;background:linear-gradient(135deg,#f6f9ff,#eef4ff);border:1px solid #e6efff;padding:10px;display:flex;gap:7px}
.tip-orb{width:24px;height:24px;border-radius:7px;background:#fff;display:flex;align-items:center;justify-content:center;color:var(--brand);flex:0 0 auto}.tip-orb .ic{width:14px;height:14px}
.docs-side-tip strong{display:block;font-size:10px;font-weight:600;color:#436089}
.docs-side-tip p{color:#8196b2;font-size:8.5px;margin-top:2px;line-height:1.5}
.doc-workbench{background:#f5f6f9;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.doc-topbar{height:56px;flex:0 0 56px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px;z-index:4}
.doc-breadcrumb{display:flex;align-items:center;gap:5px;color:#8c95a1;font-size:10.5px;min-width:0}
.doc-breadcrumb .ic{width:13px;height:13px}.crumb-title{color:#5a6370;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:330px}
.doc-topbar-actions{display:flex;align-items:center;gap:4px;flex:0 0 auto}
.doc-collaborators{display:flex;align-items:center;margin-right:7px}
.doc-collaborators .avatar{width:23px;height:23px;margin-left:-5px;box-shadow:0 0 0 1.5px #fff}
.collab-count{color:#9ca4ae;font-size:9px;margin-left:6px;white-space:nowrap}
.doc-share-btn{margin:0 2px}
.doc-toolbar{height:43px;flex:0 0 43px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:4px;padding:0 13px;overflow-x:auto;z-index:3}
.doc-tool-group{display:flex;align-items:center;gap:1px;flex:0 0 auto}
.doc-tool{width:27px;height:27px;border:0;border-radius:5px;background:transparent;color:#6f7884;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.doc-tool:hover{background:var(--surface-2);color:var(--brand)}.doc-tool .ic{width:16px;height:16px}
.doc-tool-divider{width:1px;height:17px;background:var(--line);margin:0 4px;flex:0 0 auto}
.block-style-select{border:1px solid transparent;background:transparent;height:27px;border-radius:5px;color:#69727e;font-size:10.5px;outline:none;padding:0 4px;width:67px}
.block-style-select:hover{background:var(--surface-2)}
.doc-toolbar-right{margin-left:auto;display:flex;align-items:center;gap:9px;padding-left:10px}
.collab-avatars{color:#99a2ad;display:flex}.collab-ghost{width:15px;height:15px}
.doc-save{display:flex;align-items:center;gap:4px;color:#a0a8b2;font-size:9.5px;white-space:nowrap}.doc-save .ic{width:12px;height:12px;color:#55b57b}
.doc-save.is-error{color:var(--danger)}.doc-save.is-error .ic{color:var(--danger)}
.doc-scroll{flex:1;overflow-y:auto;min-height:0;padding-bottom:1px;background:radial-gradient(900px 300px at 50% 0,#fff,#f4f6f9 70%)}
.doc-canvas{max-width:860px;margin:24px auto 64px;padding:44px 58px 22px;background:#fff;min-height:calc(100% - 88px);border-radius:4px;border:1px solid #e8ebf0;box-shadow:0 5px 24px rgba(31,35,41,.055)}
.doc-kicker{display:flex;align-items:center;gap:4px;font-size:9.5px;color:#a3aab4;margin-bottom:10px}.doc-kicker .ic{width:12px;height:12px}
.doc-title{font-size:30px;line-height:1.35;font-weight:700;letter-spacing:-.8px;color:#1e242c;outline:none;padding:3px 1px;border-radius:4px;transition:background .15s}
.doc-title:hover{background:#fbfcfe}.doc-title:focus{background:#f8fbff}
.doc-title:empty::before{content:attr(data-placeholder);color:#c0c6cf}
.doc-meta-line{display:flex;align-items:center;flex-wrap:wrap;gap:5px;color:#a1a8b2;font-size:9.5px;margin:13px 0 23px}
.doc-meta-line .avatar{flex:0 0 auto}.doc-meta-line>span:not(.dot-separator):not(.doc-permission){white-space:nowrap}
.doc-permission{margin-left:7px;display:inline-flex;align-items:center;gap:3px;background:#f7f8fa;border-radius:4px;padding:2px 5px;color:#9ca3ad}.doc-permission .ic{width:10px;height:10px}
.doc-body{min-height:360px;outline:none;font-size:14px;line-height:1.9;color:#333a44;caret-color:var(--brand)}
.doc-body:empty::before{content:"开始输入正文，或按 ⌘V 粘贴内容…";color:#b8bfc8}
.doc-body p{margin:0 0 13px;min-height:1.9em}
.doc-body h1{font-size:24px;line-height:1.4;margin:28px 0 12px;font-weight:650;letter-spacing:-.4px}
.doc-body h2{font-size:18px;line-height:1.5;margin:27px 0 9px;font-weight:650;letter-spacing:-.2px}
.doc-body h3{font-size:15px;margin:22px 0 7px;font-weight:650}
.doc-body ul,.doc-body ol{margin:4px 0 14px;padding-left:1.7em}.doc-body li{margin:3px 0}
.doc-body strong{font-weight:650;color:#232a32}
.doc-body blockquote{margin:16px 0;padding:8px 15px;border-left:3px solid #b8cdf8;background:#f8faff;color:#5e6b7b;border-radius:0 5px 5px 0;font-size:13px}
.doc-body a{color:var(--brand);text-decoration:underline;text-underline-offset:2px}
.doc-body code{font-family:var(--mono);font-size:11.5px;background:#f3f5f7;padding:2px 5px;border-radius:4px;color:#c24c66}
.doc-body pre{background:#f5f7fa;padding:12px 14px;border-radius:7px;overflow-x:auto}
.doc-body hr{border:0;border-top:1px solid var(--line);margin:22px 0}
.doc-body table{border-collapse:collapse;width:100%;margin:12px 0 18px;font-size:12px}
.doc-body th,.doc-body td{border:1px solid #e8ebef;padding:7px 10px;text-align:left}
.doc-body th{background:#f8f9fb;font-weight:600;color:#4d5763}
.doc-end{display:flex;align-items:center;gap:9px;margin:34px 0 0}.doc-end>span{flex:1;height:1px;background:var(--line-soft)}
.doc-page-foot{display:flex;align-items:center;gap:6px;color:#b3bac3;font-size:8.5px;margin-top:21px;padding-top:13px;border-top:1px solid var(--line-soft);flex-wrap:wrap}
.doc-foot-right{margin-left:auto;display:inline-flex;align-items:center;gap:3px}.doc-foot-right .ic{width:10px;height:10px}
.doc-comments{min-width:0;background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;overflow:hidden}
.comments-scroll{flex:1;min-height:0;overflow-y:auto;padding:10px 15px}
.comment-thread{border-bottom:1px solid var(--line-soft);padding:12px 0}
.comment-head{display:flex;align-items:flex-start;gap:8px}.comment-head>div{flex:1;min-width:0}
.comment-head strong{display:block;font-size:11px;font-weight:500}.comment-head small{color:#aab1ba;font-size:9px;display:block;margin-top:1px}
.comment-more{border:0;background:transparent;color:#b1b8c1;padding:0;display:flex}.comment-more .ic{width:14px;height:14px}
.comment-thread p{color:#5a6470;font-size:11px;line-height:1.7;margin:7px 0 6px 40px}
.comment-actions{display:flex;align-items:center;gap:10px;margin-left:40px}.comment-actions span{color:#56ac78;font-size:9px}
.comment-thread.is-mine p{background:#f7f9fc;padding:7px;border-radius:6px}
.comment-hint{color:#b4bbc4;font-size:9px;line-height:1.6;padding:15px 3px;text-align:center}
.comment-composer{border-top:1px solid var(--line);padding:9px 12px 13px;background:#fbfcfd}
.comment-composer textarea{width:100%;resize:none;border:1px solid var(--line);border-radius:7px;outline:none;background:#fff;font-size:11px;padding:7px 8px;min-height:52px}
.comment-composer textarea:focus{border-color:#b5ccfa;box-shadow:0 0 0 2px rgba(51,112,255,.06)}
.comment-composer>div{display:flex;align-items:center;justify-content:space-between;margin-top:6px;color:#b0b7c0;font-size:9px}
.doc-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:var(--text-3);gap:7px}
.doc-empty .empty-illustration{width:58px;height:58px;border-radius:17px;background:#fff;color:var(--brand);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-sm);margin-bottom:5px}
.doc-empty h2{font-size:17px;color:var(--text)}.doc-empty p{font-size:11.5px;margin-bottom:6px}

/* ========== Meetings ========== */
.meetings-layout{height:100%;display:grid;grid-template-columns:300px minmax(0,1fr);min-width:0;overflow:hidden}
.meetings-side{background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;overflow:hidden}
.meeting-side-tabs{display:flex;padding:0 16px 8px;gap:3px;border-bottom:1px solid var(--line-soft)}
.meeting-side-tabs button{border:0;background:transparent;color:#9ca3ad;font-size:10.5px;padding:4px 5px;border-bottom:1.5px solid transparent}
.meeting-side-tabs button.is-active{color:var(--text);font-weight:500;border-color:var(--brand)}
.meetings-side-list{overflow-y:auto;padding:5px 8px;flex:1;min-height:0}
.meeting-list-row{width:100%;display:flex;align-items:flex-start;gap:8px;border:0;background:transparent;padding:11px 8px;border-radius:8px;text-align:left;margin-bottom:2px}
.meeting-list-row:hover{background:var(--surface-2)}
.meeting-time-block{flex:0 0 36px;display:flex;flex-direction:column;gap:1px;padding-top:1px}
.meeting-time-block strong{color:var(--text);font-size:11px;font-weight:500;font-variant-numeric:tabular-nums}.meeting-time-block span{color:#a3aab3;font-size:8.5px}
.meeting-row-divider{width:2px;align-self:stretch;border-radius:2px;background:linear-gradient(#3370ff,#8cb1ff);min-height:41px;flex:0 0 2px}
.meeting-row-body{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}
.meeting-row-body>strong{color:#3a434e;font-size:11.5px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.meeting-row-body>span{display:inline-flex;align-items:center;gap:3px;font-size:8.5px;color:#9ba3ae;overflow:hidden;white-space:nowrap}.meeting-row-body>span .ic{width:10px;height:10px}
.meeting-dot{color:#c4c9d1}.meeting-row-people{display:flex;align-items:center;gap:6px}
.meeting-place{display:inline-flex;align-items:center;gap:2px;font-size:8.5px;color:#a4abb4;overflow:hidden;white-space:nowrap}.meeting-place .ic{width:9px;height:9px}
.meeting-join-pill{flex:0 0 auto;color:var(--brand);border:1px solid #c9d9ff;background:#f7faff;border-radius:5px;padding:3px 5px;font-size:8.5px;display:flex;align-items:center;gap:2px;height:21px}.meeting-join-pill .ic{width:11px;height:11px}
.meetings-side-bottom{margin-top:auto;padding:13px 18px 15px;border-top:1px solid var(--line-soft)}
.meeting-usage{display:flex;justify-content:space-between;font-size:9px;color:#a4abb4;margin-bottom:5px}.meeting-usage strong{color:#67717d;font-weight:500;font-size:9px}
.meetings-side-bottom p{font-size:8.5px;color:#b2b9c2;margin-top:5px}
.meetings-main{background:#f5f7fa;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.meetings-scroll{overflow-y:auto;padding:23px 28px 44px;min-height:0}
.meeting-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 336px;gap:28px;padding:34px 34px 31px;border-radius:18px;color:#fff;background:radial-gradient(circle at 12% 12%,#315acf 0,transparent 45%),linear-gradient(125deg,#152a5f,#204bbe 56%,#4d7dff);box-shadow:0 14px 35px rgba(24,52,125,.22)}
.meeting-hero-orb{position:absolute;border-radius:50%;pointer-events:none}
.orb-one{width:360px;height:360px;right:210px;top:-250px;border:1px solid rgba(255,255,255,.13)}
.orb-two{width:230px;height:230px;left:-170px;bottom:-150px;background:rgba(86,135,255,.15)}
.meeting-grid-lines{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:36px 36px;pointer-events:none}
.meeting-hero-copy{position:relative;z-index:2;align-self:center}
.meeting-hero-copy h2{font-size:clamp(24px,2.4vw,32px);line-height:1.32;letter-spacing:-.7px;margin:9px 0 10px;font-weight:650}
.meeting-hero-copy p{color:rgba(255,255,255,.63);font-size:11.5px;line-height:1.7;max-width:430px}
.meeting-hero-actions{display:flex;gap:8px;margin-top:20px}
.meeting-preview-card{position:relative;z-index:2;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.22);border-radius:14px;backdrop-filter:blur(10px);padding:10px;box-shadow:0 14px 30px rgba(2,13,48,.22)}
.preview-top{display:flex;align-items:center;justify-content:space-between;padding:1px 2px 8px;color:rgba(255,255,255,.73);font-size:9px}
.preview-top>span:first-child{display:flex;align-items:center;gap:5px}
.live-dot{width:5px;height:5px;border-radius:50%;background:#4fe18b;display:inline-block}
.preview-secure{display:flex;align-items:center;gap:3px}.preview-secure .ic{width:10px;height:10px}
.preview-video{height:168px;border-radius:9px;background:linear-gradient(140deg,#0e1e45,#243f7b);position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}
.video-blob{position:absolute;border-radius:50%}
.blob-1{width:130px;height:130px;background:radial-gradient(circle at 35% 35%,#3f7eff,transparent 70%);left:-40px;top:-50px;opacity:.65}
.blob-2{width:110px;height:110px;background:#173872;right:-30px;bottom:-40px;opacity:.7}
.blob-3{width:85px;height:85px;border:1px solid rgba(154,190,255,.22);right:50px;top:27px}
.preview-avatar{position:relative;z-index:2}.preview-avatar .avatar{width:58px;height:58px;font-size:22px;box-shadow:0 0 0 3px rgba(255,255,255,.12)}
.preview-name{position:absolute;bottom:27px;left:50%;transform:translateX(-50%);z-index:2;color:#fff;font-size:9px;white-space:nowrap}
.preview-indicator{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:3px;color:rgba(255,255,255,.65);font-size:8px;z-index:2;white-space:nowrap}.preview-indicator .ic{width:10px;height:10px;color:#72e4ad}
.preview-controls{display:flex;justify-content:center;gap:8px;padding:9px 0 0}
.round-control{width:29px;height:29px;border-radius:50%;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.09);color:#fff;display:flex;align-items:center;justify-content:center}.round-control:hover{background:rgba(255,255,255,.2)}.round-control .ic{width:14px;height:14px}
.round-control:last-child{background:#3370ff;border-color:#5f8fff}.round-control.is-off{color:#ff8f8b;background:rgba(255,92,88,.12)}
.meeting-stat-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:15px}
.meeting-stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:flex;align-items:center;gap:9px}
.stat-icon{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}.stat-icon .ic{width:15px;height:15px}
.stat-icon.blue{color:var(--brand);background:var(--brand-soft)}.stat-icon.orange{color:var(--orange);background:var(--orange-soft)}.stat-icon.green{color:var(--green);background:var(--green-soft)}.stat-icon.violet{color:var(--violet);background:var(--violet-soft)}
.meeting-stat>div{display:flex;flex-direction:column;gap:1px}.meeting-stat strong{font-size:15px;font-weight:650;line-height:1.2}.meeting-stat span{font-size:8.5px;color:#9ca3ad}
.meeting-columns{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(270px,.75fr);gap:15px;margin-top:15px}
.meeting-panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 17px}
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:9px}
.panel-head h3{font-size:12.5px;font-weight:600}.panel-head p{color:#a4abb4;font-size:9px;margin-top:2px}
.meeting-today-list{display:flex;flex-direction:column;gap:2px}
.today-meeting{position:relative;width:100%;border:0;border-radius:7px;background:transparent;display:flex;align-items:center;gap:8px;padding:9px 6px;text-align:left}
.today-meeting:hover{background:var(--surface-2)}.today-meeting.is-next{background:#f8faff;border:1px solid #e9f0ff}
.today-meeting-time{width:38px;flex:0 0 38px;font-size:9.5px;color:#8993a0;font-variant-numeric:tabular-nums}
.today-meeting-bar{width:2px;height:26px;border-radius:2px;background:#3370ff;flex:0 0 2px}
.today-meeting:nth-child(2n) .today-meeting-bar{background:#8b6df0}.today-meeting:nth-child(3n) .today-meeting-bar{background:#e9a128}
.today-meeting-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.today-meeting-copy strong{font-size:10.5px;font-weight:500;color:#444e5b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.today-meeting-copy small{font-size:8.5px;color:#a5acb5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.next-chip{font-size:8px;color:var(--brand);background:var(--brand-soft);border-radius:3px;padding:2px 4px;white-space:nowrap}
.today-meeting>.ic{width:12px;height:12px;color:#b1b8c1}
.tips-panel{background:linear-gradient(160deg,#fbfcff,#f4f7fd)}
.meeting-tip{display:flex;gap:8px;padding:9px 0;border-top:1px solid #edf1f8}
.tip-number{font:600 9px/1 var(--mono);color:#9cb7e6;padding-top:3px}
.meeting-tip strong{font-size:10px;font-weight:500;color:#495464}.meeting-tip p{font-size:9px;line-height:1.55;color:#98a1ad;margin-top:3px}
.meeting-tip-link{margin-top:5px;display:flex;align-items:center;gap:3px;border:0;background:transparent;color:var(--brand);font-size:9px;padding:2px 0}.meeting-tip-link .ic{width:11px;height:11px}
.meeting-recent{margin-top:15px}
.recent-row{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:12px;padding:10px 3px;border-top:1px solid var(--line-soft);text-align:left}.recent-row:hover{background:var(--surface-2)}
.recent-date{width:43px;display:flex;flex-direction:column;gap:1px}.recent-date strong{font-size:11px;color:#4c5663;font-weight:500}.recent-date small{color:#aab1ba;font-size:8px}
.recent-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.recent-copy strong{font-size:10.5px;color:#4b5562;font-weight:500}.recent-copy small{color:#a0a8b2;font-size:8.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recent-action{display:flex;align-items:center;gap:2px;color:#9ba3ad;font-size:8.5px;white-space:nowrap}.recent-action .ic{width:12px;height:12px}

/* Meeting stage */
.meeting-stage{position:fixed;inset:0;z-index:1200;background:#10141d;color:#fff;display:flex;flex-direction:column;animation:stageIn .22s ease both}
.stage-header{height:60px;flex:0 0 60px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 22px;background:#151b26;border-bottom:1px solid rgba(255,255,255,.07)}
.stage-brand{display:flex;align-items:center;gap:8px;min-width:0}.stage-brand strong{font-size:12px;font-weight:500;letter-spacing:.1px}
.stage-logo{width:22px;height:22px;display:grid;grid-template-columns:1fr 1fr;gap:1px}.stage-logo i{display:block;border-radius:2px;background:rgba(255,255,255,.85)}.stage-logo i:nth-child(2){background:#70e6db}.stage-logo i:nth-child(3){background:#ffd85b}.stage-logo i:nth-child(4){background:#ff8f8b}
.stage-divider{width:1px;height:15px;background:rgba(255,255,255,.13);margin:0 2px}
.stage-title{font-size:11px;color:rgba(255,255,255,.6);max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stage-status{display:flex;align-items:center;gap:14px;color:rgba(255,255,255,.54);font-size:9.5px}
.stage-live{display:inline-flex;align-items:center;gap:4px;color:#71d69c}.stage-live i{width:4px;height:4px;background:#6fe09e;border-radius:50%}
.stage-timer{color:rgba(255,255,255,.8);font:500 11px/1 var(--mono);letter-spacing:.5px}
.stage-rec{display:inline-flex;align-items:center;gap:3px}.stage-rec .ic{width:10px;height:10px}
.stage-close{border:0;background:transparent;color:rgba(255,255,255,.55);width:31px;height:31px;border-radius:7px;display:flex;align-items:center;justify-content:center}.stage-close:hover{background:rgba(255,255,255,.08);color:#fff}
.stage-room{flex:1;display:flex;min-height:0;padding:18px 22px 16px;gap:15px;background:radial-gradient(circle at 50% 20%,#202b3d,#0e1118 72%)}
.stage-grid{flex:1;display:grid;grid-template-columns:1.65fr 1fr;gap:10px;min-height:0;max-width:1320px;margin:auto;width:100%}
.video-tile{position:relative;border-radius:12px;overflow:hidden;background:#1a2230;border:1px solid rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;min-height:0}
.tile-bg{position:absolute;inset:0}
.tile-aurora{background:radial-gradient(circle at 25% 20%,#405e9b,transparent 60%),linear-gradient(135deg,#14233e,#203b54 55%,#1e2a3a)}
.tile-sunset{background:radial-gradient(circle at 30% 25%,#9a5e51,transparent 70%),linear-gradient(140deg,#34221f,#5f3b34)}
.tile-ocean{background:radial-gradient(circle at 70% 20%,#4f8193,transparent 70%),linear-gradient(140deg,#162b33,#27454b)}
.tile-grid{background:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(145deg,#171f2b,#1e2b37);background-size:24px 24px,24px 24px,100% 100%}
.tile-avatar{position:relative;z-index:2}.tile-avatar .avatar{box-shadow:0 0 0 3px rgba(255,255,255,.08)}
.tile-featured .tile-avatar .avatar{width:94px;height:94px;font-size:36px}
.tile-label{position:absolute;left:14px;bottom:12px;z-index:3;display:flex;align-items:center;gap:7px;color:#fff;font-size:10px;background:rgba(9,14,23,.34);backdrop-filter:blur(4px);border-radius:5px;padding:4px 7px}
.tile-badge{position:absolute;top:12px;right:12px;z-index:3;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.65);border-radius:4px;font-size:8px;padding:3px 6px}
.audio-wave{display:flex;align-items:center;gap:1px;height:10px}.audio-wave i{width:2px;background:#73dfa0;border-radius:1px;animation:wave .9s ease-in-out infinite}
.audio-wave i:nth-child(1){height:5px;animation-delay:-.2s}.audio-wave i:nth-child(2){height:9px}.audio-wave i:nth-child(3){height:4px;animation-delay:-.4s}
.stage-side-grid{display:grid;grid-template-rows:repeat(3,1fr);gap:10px;min-height:0}
.stage-side-grid .tile-avatar .avatar{width:52px;height:52px;font-size:19px}
.muted-label{color:rgba(255,255,255,.5);margin-left:3px}
.self-mic{position:absolute;right:12px;bottom:12px;width:22px;height:22px;border-radius:50%;background:rgba(10,15,24,.5);display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.7);z-index:2}.self-mic .ic{width:11px;height:11px}
.stage-controls{height:83px;flex:0 0 83px;background:#141922;border-top:1px solid rgba(255,255,255,.06);display:flex;align-items:center;justify-content:space-between;padding:0 26px}
.stage-control-left{display:flex;gap:15px;color:rgba(255,255,255,.4);font-size:9px;min-width:160px}.stage-control-left span{display:flex;align-items:center;gap:4px}.stage-control-left .ic{width:11px;height:11px}
.stage-control-center{display:flex;align-items:center;gap:7px}
.stage-control{border:0;background:transparent;color:rgba(255,255,255,.55);font-size:8.5px;display:flex;flex-direction:column;align-items:center;gap:5px;min-width:52px;padding:2px 5px}.stage-control .ic{width:18px;height:18px}.stage-control:hover{color:#fff}.stage-control.is-on .ic{color:#6cdb9c}
.stage-control.danger{color:#fff;background:#ea4d4d;border-radius:8px;padding:8px 15px;min-width:58px}.stage-control.danger:hover{background:#d94242}
.stage-control-right{min-width:160px;display:flex;justify-content:flex-end}
.stage-icon-control{border:0;background:transparent;color:rgba(255,255,255,.5);padding:6px}.stage-icon-control:hover{color:#fff}.stage-icon-control .ic{width:17px;height:17px}
.stage-chat-drawer{width:284px;flex:0 0 284px;background:#1b222d;border:1px solid rgba(255,255,255,.08);border-radius:12px;display:flex;flex-direction:column;overflow:hidden}
.stage-chat-drawer header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.07);padding:13px 14px;font-size:11px}
.stage-chat-drawer .icon-btn{color:rgba(255,255,255,.5);width:24px;height:24px}.stage-chat-drawer .icon-btn:hover{background:rgba(255,255,255,.06)}
.stage-chat-list{flex:1;overflow-y:auto;padding:12px}
.stage-chat-item{font-size:10px;line-height:1.55;color:rgba(255,255,255,.62);margin-bottom:11px}
.stage-chat-item.system{text-align:center;color:rgba(255,255,255,.3);font-size:8.5px}
.stage-chat-item strong{display:block;color:rgba(255,255,255,.8);font-size:9px;font-weight:500;margin-bottom:2px}
.stage-chat-item p{display:inline-block;background:rgba(255,255,255,.07);padding:5px 7px;border-radius:5px;max-width:90%}
.stage-chat-item span{display:block;color:rgba(255,255,255,.25);font-size:8px;margin-top:2px}
.stage-chat-item.is-self{text-align:right}.stage-chat-item.is-self p{background:rgba(51,112,255,.33);text-align:left}
.stage-chat-input{padding:8px;border-top:1px solid rgba(255,255,255,.07);display:flex;gap:4px}
.stage-chat-input input{flex:1;min-width:0;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);color:#fff;outline:none;border-radius:5px;font-size:10px;padding:7px}
.stage-chat-input input::placeholder{color:rgba(255,255,255,.28)}
.stage-chat-input button{border:0;background:var(--brand);color:#fff;border-radius:5px;width:28px;display:flex;align-items:center;justify-content:center}.stage-chat-input button .ic{width:13px;height:13px}
@keyframes wave{0%,100%{transform:scaleY(.55)}50%{transform:scaleY(1)}}
@keyframes stageIn{from{opacity:0;transform:scale(.99)}}

/* ========== Workbench ========== */
.workbench-page{height:100%;display:flex;flex-direction:column;min-height:0;background:#f5f7fa;overflow:hidden}
.wb-topbar{background:rgba(255,255,255,.95)}
.wb-title{display:flex;align-items:center;gap:10px}
.wb-logo-strip{width:29px;height:29px;border-radius:8px;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center}.wb-logo-strip .ic{width:16px;height:16px}
.search-pill{border:1px solid var(--line);background:var(--surface-2);border-radius:7px;height:31px;display:flex;align-items:center;gap:6px;padding:0 8px;color:#8b949f;min-width:204px;text-align:left}.search-pill:hover{background:#fff;border-color:#cdd8ec}
.search-pill .ic{width:14px;height:14px}.search-pill span{flex:1;font-size:10.5px}.search-pill kbd{font-size:9px}
.icon-btn.has-dot{position:relative}.icon-btn.has-dot::after{content:"";position:absolute;top:5px;right:5px;width:5px;height:5px;border-radius:50%;background:var(--danger)}
.wb-scroll{overflow-y:auto;padding:24px 28px 42px}
.wb-hero{border:1px solid #e7ebf2;border-radius:18px;background:linear-gradient(120deg,#fcfdff,#eef4ff 52%,#f9f4ff);padding:28px 30px;display:grid;grid-template-columns:minmax(0,1fr) 328px;gap:28px;position:relative;overflow:hidden}
.wb-hero-glow{position:absolute;border-radius:50%;pointer-events:none}
.glow-a{width:240px;height:240px;right:270px;top:-150px;background:radial-gradient(circle,rgba(76,125,255,.12),transparent 70%)}
.glow-b{width:300px;height:300px;left:-150px;bottom:-200px;background:radial-gradient(circle,rgba(139,111,240,.09),transparent 70%)}
.wb-hero-copy{position:relative;z-index:2;align-self:center}.wb-hero-copy .eyebrow{color:#8da2c5;font-size:8.5px}
.wb-hero-copy h2{font-size:clamp(22px,2.3vw,30px);line-height:1.3;letter-spacing:-.6px;margin:9px 0 8px;font-weight:650;color:#202c3e}
.wb-hero-copy p{font-size:11.5px;line-height:1.7;color:#8490a2;max-width:500px}.wb-hero-copy p strong{color:#4c6486;font-weight:600}
.wb-hero-actions{display:flex;gap:8px;margin-top:18px}
.wb-focus-card{position:relative;z-index:2;background:linear-gradient(160deg,#192a49,#1c3154);border-radius:13px;padding:17px 18px 13px;color:#fff;overflow:hidden;box-shadow:0 13px 28px rgba(28,54,101,.18)}
.focus-guide-line{position:absolute;left:0;top:20px;bottom:20px;width:2px;border-radius:2px;background:linear-gradient(#76a4ff,#64d4cd)}
.wb-focus-card::after{content:"";position:absolute;width:180px;height:180px;border-radius:50%;border:1px solid rgba(255,255,255,.08);right:-70px;top:-80px}
.focus-card-head{display:flex;align-items:center;justify-content:space-between;color:rgba(255,255,255,.68);font-size:9px}.focus-label{display:flex;align-items:center;gap:4px}.focus-label .ic{width:12px;height:12px;color:#8db5ff}.focus-progress{color:rgba(255,255,255,.44);font:500 10px/1 var(--mono)}
.wb-focus-card>strong{display:block;margin-top:16px;font-size:15px;font-weight:550;letter-spacing:-.1px}
.wb-focus-card>p{color:rgba(255,255,255,.5);font-size:9.5px;line-height:1.6;margin-top:4px}
.focus-bar{height:4px;border-radius:4px;background:rgba(255,255,255,.11);overflow:hidden;margin-top:15px}.focus-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#79a5ff,#62d2c5)}
.focus-open{margin-top:12px;border:0;background:transparent;color:#b9cef7;font-size:9.5px;display:flex;align-items:center;gap:3px;padding:2px 0}.focus-open .ic{width:12px;height:12px}
.wb-app-section{margin-top:19px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px 17px}
.wb-section-head,.wb-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.wb-section-head h2{font-size:13px;font-weight:600}.wb-section-head p{color:#a2a9b1;font-size:9px;margin-top:2px}
.app-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 8px;margin-top:13px}
.app-tile{position:relative;display:flex;align-items:center;gap:10px;padding:9px 8px;border:0;border-radius:8px;background:transparent;text-align:left}.app-tile:hover{background:#f8fafc}
.app-icon{width:33px;height:33px;flex:0 0 33px;border-radius:9px;display:flex;align-items:center;justify-content:center}.app-icon .ic{width:17px;height:17px}
.app-blue{color:#3370ff;background:#eaf2ff}.app-green{color:#18a05e;background:#e9f8ef}.app-orange{color:#e39113;background:#fff6e7}.app-cyan{color:#0e9d9d;background:#e8f8f8}.app-violet{color:#7a5df0;background:#f1edff}.app-pink{color:#d94c93;background:#fdf0f7}
.app-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.app-copy strong{font-size:11px;font-weight:500;color:#444e5a}.app-copy small{font-size:8.5px;color:#a7adb6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-badge{position:absolute;top:7px;right:7px;background:#fce8e8;color:#de5656;font-size:7px;height:13px;min-width:13px;border-radius:7px;display:flex;align-items:center;justify-content:center;padding:0 3px}
.wb-columns{display:grid;grid-template-columns:minmax(0,1.52fr) minmax(290px,.8fr);gap:16px;margin-top:16px;align-items:start}
.wb-col-main,.wb-col-side{display:flex;flex-direction:column;gap:16px;min-width:0}
.wb-panel{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px}
.wb-panel-head{margin-bottom:9px}.wb-panel-head h3{font-size:12.5px;font-weight:600;display:flex;align-items:center;gap:5px}.panel-count{display:inline-flex;align-items:center;justify-content:center;min-width:15px;height:15px;border-radius:7px;background:var(--brand-soft);color:var(--brand);font-size:8px;font-weight:500;padding:0 4px}
.wb-panel-head p{color:#a4abb4;font-size:9px;margin-top:2px}.panel-head-actions{display:flex;align-items:center;gap:4px}
.task-list{display:flex;flex-direction:column}.task-row{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line-soft);padding:9px 1px}.task-row:first-child{border-top:0}
.task-check{width:16px;height:16px;flex:0 0 16px;border:1px solid #ccd2db;border-radius:4px;background:#fff;display:flex;align-items:center;justify-content:center;padding:0;color:#fff}.task-check:hover{border-color:#9cb7ec}.task-row.is-done .task-check{background:var(--brand);border-color:var(--brand)}.task-check .ic{width:11px;height:11px;stroke-width:2.4}
.task-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.task-title{font-size:11px;color:#4a5461;line-height:1.45}.task-row.is-done .task-title{color:#aeb5bd;text-decoration:line-through}
.task-meta{display:flex;align-items:center;gap:6px;color:#a3abb5;font-size:8.5px;flex-wrap:wrap}.task-project{border-radius:3px;background:#f3f5f8;padding:1px 4px;font-size:8px;color:#8490a0}.priority{font-size:8px;border-radius:3px;padding:1px 4px}.priority-high{color:#d85f4b;background:#fff0ed}.priority-medium{color:#9a8339;background:#fbf7e8}.priority-low{color:#7892a8;background:#eef4f8}
.task-due{display:inline-flex;align-items:center;gap:2px}.task-due .ic{width:10px;height:10px}.task-row>.avatar{width:22px;height:22px;font-size:9px}
.quick-task-form{display:flex;align-items:center;gap:7px;border-top:1px solid var(--line-soft);margin-top:3px;padding-top:9px;color:#abb2bb}.quick-task-form>span{display:flex}.quick-task-form>span .ic{width:14px;height:14px}.quick-task-form input{flex:1;border:0;background:transparent;outline:none;font-size:10px;padding:3px 0;color:var(--text)}.quick-task-form input::placeholder{color:#b6bdc6}.quick-task-form .text-btn{font-size:9px}
.announcement-feature{display:flex;gap:15px;align-items:stretch;border:1px solid #edf1f8;border-radius:10px;overflow:hidden;padding:11px;background:linear-gradient(110deg,#fbfdff,#f8faff)}
.announcement-art{flex:0 0 130px;position:relative;border-radius:7px;overflow:hidden;background:linear-gradient(135deg,#25469b,#517ef2);color:#fff;display:flex;align-items:center;justify-content:center;min-height:107px}.announcement-art .ic{width:26px;height:26px;position:relative;z-index:2;opacity:.9}
.art-circle{position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.22)}.art-circle.one{width:110px;height:110px;right:-35px;top:-48px}.art-circle.two{width:70px;height:70px;left:-30px;bottom:-42px;background:rgba(255,255,255,.09)}
.art-line{position:absolute;width:40px;height:1px;background:rgba(255,255,255,.4);transform:rotate(-40deg);left:16px;top:27px}
.announcement-copy{min-width:0;display:flex;flex-direction:column;justify-content:center;padding:2px 3px}.announcement-copy .eyebrow{font-size:8px;color:#7891be;letter-spacing:.7px}.announcement-copy h4{font-size:13px;line-height:1.45;margin:4px 0 3px;font-weight:600}
.announcement-copy p{color:#959fab;font-size:9.5px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.announcement-meta{display:flex;align-items:center;gap:5px;font-size:8.5px;color:#aab1ba;margin-top:8px}.announcement-meta .dot{color:#d0d5dc}
.wb-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wb-doc-card{display:flex;align-items:center;gap:10px;border:1px solid transparent;border-radius:8px;background:#fbfcfe;padding:8px 9px;text-align:left;min-width:0}.wb-doc-card:hover{border-color:#dbe6fb;background:#f8fbff}
.wb-doc-sheet{width:33px;height:40px;flex:0 0 33px;background:#fff;border:1px solid #e9edf3;border-radius:4px;padding:7px 5px;position:relative;box-shadow:0 2px 4px rgba(31,35,41,.04)}
.doc-sheet-line{display:block;height:2px;width:70%;background:#e2e7ee;border-radius:2px;margin-bottom:3px}.doc-sheet-line.long{width:90%;background:#c2d4f2}.doc-sheet-line.short{width:45%}
.doc-sheet-accent{position:absolute;width:7px;height:7px;border-radius:2px;background:#dce9ff;right:5px;bottom:5px}
.wb-doc-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.wb-doc-copy strong{font-size:10px;font-weight:500;color:#47525f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.wb-doc-copy span{color:#aab1ba;font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wb-col-side .wb-panel{padding:15px 16px}
.schedule-list{display:flex;flex-direction:column}
.schedule-item{display:flex;align-items:center;gap:7px;border:0;background:transparent;border-top:1px solid var(--line-soft);padding:8px 1px;text-align:left;width:100%}.schedule-item:first-child{border-top:0;padding-top:2px}.schedule-item:hover{background:#fbfcfe}
.schedule-time{width:33px;flex:0 0 33px;font-size:8.5px;color:#939ca8;font-variant-numeric:tabular-nums}
.schedule-bar{width:2px;height:25px;border-radius:2px;background:#3370ff;flex:0 0 2px}.schedule-item.event-orange .schedule-bar{background:#e9a128}.schedule-item.event-violet .schedule-bar{background:#8b6df0}.schedule-item.event-green .schedule-bar{background:#22a65b}
.schedule-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.schedule-copy strong{font-size:9.5px;font-weight:500;color:#4d5865;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.schedule-copy small{font-size:8px;color:#a8b0b9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.schedule-add{border:1px solid var(--line-soft);background:transparent;border-radius:5px;color:#a2abb5;font-size:8.5px;display:flex;align-items:center;justify-content:center;gap:3px;padding:6px;width:100%;margin-top:7px}.schedule-add .ic{width:11px;height:11px}.schedule-add:hover{color:var(--brand);border-color:#d3e1fb;background:var(--brand-faint)}
.wb-notification{width:100%;border:0;background:transparent;display:flex;align-items:flex-start;gap:8px;padding:8px 1px;border-top:1px solid var(--line-soft);text-align:left}.wb-notification:first-of-type{border-top:0;padding-top:1px}.wb-notification:hover{background:#fbfcfe}
.notif-icon{width:24px;height:24px;border-radius:7px;display:flex;align-items:center;justify-content:center;flex:0 0 24px}.notif-icon .ic{width:13px;height:13px}.notif-mention{background:#eaf2ff;color:var(--brand)}.notif-comment{background:#fff4e9;color:#da891e}.notif-meeting{background:#fbf0ff;color:#a75bc4}.notif-doc{background:#eaf8f0;color:#24a263}
.wb-notification>span:nth-child(2){display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}.wb-notification strong{color:#5d6875;font-size:9.5px;font-weight:400;line-height:1.55}.wb-notification small{color:#b0b6bf;font-size:8px}.unread-pin{width:4px;height:4px;border-radius:50%;background:var(--brand);margin-top:5px}
.team-avatars{display:flex;align-items:center;margin-top:11px}.team-avatars .avatar{width:29px;height:29px;font-size:11px;margin-right:-5px;box-shadow:0 0 0 1.5px #fff}
.team-more{width:25px;height:25px;border-radius:50%;border:1px dashed #c7ced8;background:#fff;color:#9ea7b2;display:flex;align-items:center;justify-content:center;margin-left:9px}.team-more .ic{width:12px;height:12px}
.team-chat-link{margin-top:12px;width:100%;display:flex;align-items:center;gap:5px;color:var(--brand);background:#f7faff;border:1px solid #e7efff;border-radius:6px;padding:7px 8px;font-size:9px}.team-chat-link .ic{width:12px;height:12px}.team-chat-link .ic:last-child{margin-left:auto}
.wb-footer{display:flex;justify-content:space-between;padding:24px 3px 0;color:#b2b9c2;font-size:8.5px}

/* ========== Search / notifications ========== */
.search-overlay{position:fixed;inset:0;z-index:1000;background:rgba(18,25,38,.3);backdrop-filter:blur(7px);display:flex;justify-content:center;align-items:flex-start;padding:9vh 20px 20px}
.search-dialog{width:min(720px,100%);max-height:min(690px,82vh);background:#fff;border-radius:15px;box-shadow:0 30px 90px rgba(15,28,54,.28);display:flex;flex-direction:column;overflow:hidden;animation:modalIn .16s ease both;border:1px solid rgba(255,255,255,.7)}
.search-top{display:flex;align-items:center;gap:10px;height:60px;border-bottom:1px solid var(--line-soft);padding:0 17px;color:#8d96a2}
.search-leading .ic{width:21px;height:21px;color:var(--brand)}
.search-top input{flex:1;border:0;outline:none;background:transparent;font-size:15px;color:var(--text);letter-spacing:-.1px}
.search-top input::placeholder{color:#abb1ba}
.search-clear-btn{border:0;background:#f2f4f7;border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center;color:#8c95a1;padding:0}.search-clear-btn .ic{width:12px;height:12px}
.search-esc{font-size:8.5px;color:#aeb5be;border:1px solid #e4e7ec;border-radius:4px;padding:2px 4px;letter-spacing:.4px}
.search-scopes{display:flex;gap:2px;padding:8px 13px;border-bottom:1px solid var(--line-soft);background:#fcfdfe}
.search-scopes button{border:0;background:transparent;border-radius:5px;padding:4px 9px;color:#8c95a1;font-size:10.5px}
.search-scopes button:hover{background:var(--surface-2);color:var(--text)}.search-scopes button.is-active{background:var(--brand-soft);color:var(--brand);font-weight:500}
.search-body{flex:1;overflow-y:auto;min-height:150px;padding:7px 9px 12px}
.search-section{padding:6px 3px}
.search-section-head,.result-group-head{display:flex;align-items:center;justify-content:space-between;padding:7px 8px 6px;color:#969ea9;font-size:9.5px;font-weight:500}
.search-section-head>span,.result-group-head>span{display:flex;align-items:center;gap:5px}.search-section-head .ic,.result-group-head .ic{width:12px;height:12px}
.search-section-head small,.result-group-head small{color:#b1b8c1;font-weight:400;font-size:8.5px}
.recent-search-row{width:100%;display:flex;align-items:center;gap:9px;border:0;background:transparent;border-radius:7px;padding:7px 8px;text-align:left;color:var(--text-2)}
.recent-search-row:hover{background:var(--surface-2)}.recent-search-row>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.recent-search-row strong{font-size:11px;font-weight:450;color:#4c5663;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recent-search-row small{font-size:9px;color:#a3abb5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.recent-search-row> .ic{width:13px;height:13px;color:#b9c0c9}
.search-result{width:100%;display:flex;align-items:center;gap:9px;border:0;background:transparent;border-radius:8px;padding:8px 9px;text-align:left;color:var(--text)}
.search-result:hover{background:#f5f8fd}
.result-icon{width:29px;height:29px;border-radius:7px;display:flex;align-items:center;justify-content:center;flex:0 0 29px}.result-icon.doc{background:#eaf2ff;color:var(--brand)}.result-icon .ic{width:15px;height:15px}
.result-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.result-copy strong{font-size:11.5px;font-weight:450;color:#424c59;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-copy small{color:#9ba3ae;font-size:9px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.result-sender{color:#a0a8b2;font-weight:400;font-size:9px;margin-left:6px}
.result-kind{font-size:8.5px;color:#b0b7c0;white-space:nowrap}
.result-message-avatar{width:29px;display:flex;justify-content:center;flex:0 0 29px}
.search-tips{display:flex;align-items:center;gap:4px;padding:13px 9px 3px;color:#adb4bd;font-size:8.5px;flex-wrap:wrap}
.keycap{display:inline-flex;align-items:center;justify-content:center;min-width:16px;height:16px;border:1px solid #e2e6ec;border-radius:4px;background:#fbfcfe;color:#8d96a1;font-size:8px}
.tip-divider{width:1px;height:10px;background:var(--line);margin:0 3px}
.search-empty{text-align:center;padding:56px 20px;color:var(--text-3);display:flex;flex-direction:column;align-items:center;gap:5px}
.search-empty .empty-illustration{width:50px;height:50px;border-radius:15px;background:#f6f8fb;color:#a1abb7;display:flex;align-items:center;justify-content:center;margin-bottom:4px}
.search-empty h3{font-size:13px;color:var(--text)}.search-empty p{font-size:10.5px}
.empty-actions{display:flex;gap:7px;margin-top:8px}
.search-footer{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line-soft);padding:8px 16px;color:#aab1ba;font-size:8.5px;background:#fcfdfe}
.search-footer>span{display:flex;align-items:center;gap:4px}.search-footer-right{margin-left:auto}.search-footer-right .ic{width:9px;height:9px}

.drawer-overlay{position:fixed;inset:0;z-index:1000;background:rgba(17,24,39,.26);backdrop-filter:blur(2px);display:flex;justify-content:flex-end}
.notification-drawer{width:min(380px,100%);height:100dvh;background:#fff;box-shadow:-20px 0 60px rgba(20,30,50,.16);display:flex;flex-direction:column;animation:slideIn .2s ease both}
@keyframes slideIn{from{transform:translateX(20px);opacity:0}}
.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:20px 18px 13px}
.drawer-head h2{font-size:17px;font-weight:650;letter-spacing:-.3px}.drawer-head>div>span{display:block;color:#a4abb4;font-size:9.5px;margin-top:3px}
.drawer-head-actions{display:flex;align-items:center;gap:5px}
.drawer-tabs{display:flex;gap:3px;padding:0 15px;border-bottom:1px solid var(--line-soft)}
.drawer-tabs button{border:0;background:transparent;color:#9ca3ad;font-size:10.5px;padding:7px 7px 8px;border-bottom:1.5px solid transparent}.drawer-tabs button.is-active{color:var(--text);font-weight:500;border-color:var(--brand)}
.notifications-list{flex:1;overflow-y:auto;padding:6px 11px 20px}
.notification-group-label{padding:10px 9px 4px;font-size:8.5px;color:#a4abb4}
.notification-row{position:relative;width:100%;display:flex;align-items:flex-start;gap:9px;border:0;background:transparent;border-radius:8px;padding:9px;text-align:left}
.notification-row:hover{background:var(--surface-2)}
.notification-icon{width:29px;height:29px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex:0 0 29px;background:#f3f5f8;color:#8490a0}.notification-icon .ic{width:14px;height:14px}
.notification-mention{background:#eaf2ff;color:var(--brand)}.notification-comment{background:#fff4e9;color:#d89224}.notification-meeting{background:#f4efff;color:#8866db}.notification-doc{background:#eaf8f0;color:#2b9b62}
.notification-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.notification-copy strong{font-size:10.5px;font-weight:400;color:#5b6673;line-height:1.6}.notification-copy small{color:#b0b7c0;font-size:8.5px}
.notification-row.is-unread .notification-copy strong{color:#394350;font-weight:500}
.unread-dot{position:absolute;right:9px;top:13px;width:5px;height:5px;border-radius:50%;background:var(--brand)}
.drawer-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;border-top:1px solid var(--line-soft);color:#aeb5be;font-size:8.5px}
.drawer-foot .text-btn{display:flex;align-items:center;gap:4px;font-size:9.5px}.drawer-foot .ic{width:12px;height:12px}

/* ========== Modals ========== */
.overlay-open { overflow: hidden; }
.modal-overlay{position:fixed;inset:0;z-index:1000;background:rgba(18,25,38,.32);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:20px;animation:overlayIn .14s ease both}
@keyframes overlayIn{from{opacity:0}}
@keyframes modalIn{from{opacity:0;transform:translateY(7px) scale(.99)}}
.modal{width:min(540px,100%);max-height:88vh;background:#fff;border-radius:15px;box-shadow:0 26px 80px rgba(17,30,55,.27);display:flex;flex-direction:column;overflow:hidden;animation:modalIn .17s ease both;border:1px solid rgba(255,255,255,.7)}
.modal-lg{width:min(680px,100%)}.modal-sm{width:min(420px,100%)}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 19px 13px;border-bottom:1px solid var(--line-soft);flex:0 0 auto}
.modal-title-wrap{display:flex;align-items:center;gap:9px;min-width:0}.modal-icon{width:29px;height:29px;border-radius:8px;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;flex:0 0 29px}.modal-icon .ic{width:15px;height:15px}
.modal-head h2{font-size:14.5px;font-weight:650;letter-spacing:-.15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.modal-body{padding:17px 19px;overflow-y:auto;min-height:0}
.modal-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 19px 15px;border-top:1px solid var(--line-soft);background:#fcfdfe;flex:0 0 auto;flex-wrap:wrap}
.modal-foot-spacer{flex:1}
.dialog-form{display:flex;flex-direction:column;gap:13px}
.field-label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#7c8692;font-weight:500}
.field-input{border:1px solid var(--line);border-radius:7px;background:#fff;outline:none;height:34px;padding:0 9px;font-size:12px;color:var(--text);transition:border-color .15s,box-shadow .15s;font-weight:400}
.field-input:focus{border-color:#a7c1f9;box-shadow:0 0 0 3px rgba(51,112,255,.07)}
.field-input::placeholder{color:#b2b8c1}
.field-textarea{height:auto;padding:8px 9px;resize:vertical;min-height:67px;line-height:1.6}
.form-grid{display:grid;gap:10px}.form-grid.two{grid-template-columns:1fr 1fr}
.field-hint{font-size:9px;color:#aab1ba;font-weight:400}
.color-choices{display:flex;gap:13px;flex-wrap:wrap}
.color-choice{display:flex;align-items:center;gap:4px;color:#7d8793;font-size:9.5px;cursor:pointer}
.color-choice input{position:absolute;opacity:0;pointer-events:none}
.color-choice span{width:13px;height:13px;border-radius:50%;background:var(--choice);border:2px solid #fff;box-shadow:0 0 0 1px #d8dde5}
.color-choice input:checked+span{box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--choice)}
.choice-people{display:flex;gap:5px;flex-wrap:wrap}
.person-choice{position:relative;cursor:pointer}.person-choice input{position:absolute;opacity:0;pointer-events:none}
.person-choice>span{display:flex;align-items:center;gap:4px;border:1px solid var(--line);border-radius:99px;padding:2px 7px 2px 3px;font-size:9.5px;color:#6f7a86;background:#fff}
.person-choice input:checked+span{border-color:#a9c3fc;background:var(--brand-faint);color:var(--brand)}
.check-row{display:flex;align-items:center;gap:7px;font-size:10.5px;color:#616c79;cursor:pointer}
.check-row input{accent-color:var(--brand);width:13px;height:13px}.check-row small{color:#aab1ba;margin-left:auto;font-size:8.5px}
.group-people-picker{display:grid;grid-template-columns:1fr 1fr;gap:5px;max-height:270px;overflow-y:auto;border:1px solid var(--line-soft);border-radius:8px;padding:6px}
.group-person{position:relative;display:flex;align-items:center;gap:7px;padding:5px;border-radius:6px;cursor:pointer}.group-person:hover{background:var(--surface-2)}
.group-person input{position:absolute;opacity:0;pointer-events:none}
.group-person>span:nth-child(3){display:flex;flex-direction:column;gap:1px;min-width:0}.group-person strong{font-size:10px;font-weight:450;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.group-person small{font-size:8px;color:#a4abb4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.picker-check{width:14px;height:14px;border-radius:50%;border:1px solid #d4d9e1;margin-left:auto;display:flex;align-items:center;justify-content:center;color:transparent;flex:0 0 14px}
.picker-check .ic{width:9px;height:9px}
.group-person input:checked~.picker-check,.group-person:has(input:checked) .picker-check{background:var(--brand);border-color:var(--brand);color:#fff}
.compose-picker{display:flex;flex-direction:column;gap:2px;max-height:430px;overflow-y:auto}
.compose-person{display:flex;align-items:center;gap:9px;border:0;background:transparent;border-radius:7px;padding:8px;text-align:left;color:var(--text)}
.compose-person:hover{background:var(--surface-2)}
.compose-person>span:nth-child(2){display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.compose-person strong{font-size:11px;font-weight:450}.compose-person small{font-size:9px;color:#a3abb5}
.compose-person>.ic{width:13px;height:13px;color:#b4bac3}
.menu-dialog{display:flex;flex-direction:column;gap:1px}
.menu-dialog-row{display:flex;align-items:center;gap:9px;border:0;background:transparent;border-radius:6px;padding:9px 8px;text-align:left;color:#4f5965;font-size:11px;width:100%}
.menu-dialog-row:hover{background:var(--surface-2)}.menu-dialog-row .ic{width:15px;height:15px;color:#8792a0}.menu-dialog-row>span:nth-child(2){flex:1}
.menu-meta{font-size:8.5px;color:#aab1ba;margin-left:auto}.menu-separator{height:1px;background:var(--line-soft);margin:4px 2px}.muted-row{color:#aab1ba}.menu-dialog .modal-hint{padding:4px 8px}
.members-dialog-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.member-dialog-card{display:flex;align-items:center;gap:8px;padding:7px;border:1px solid var(--line-soft);border-radius:7px}.member-dialog-card>div{display:flex;flex-direction:column;gap:2px;min-width:0}.member-dialog-card strong{font-size:10.5px;font-weight:450}.member-dialog-card small{font-size:8.5px;color:#a4abb4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.member-dialog-card .icon-btn{margin-left:auto}
.files-dialog-list{display:flex;flex-direction:column}
.file-dialog-row{display:flex;align-items:center;gap:9px;border:0;background:transparent;border-bottom:1px solid var(--line-soft);padding:9px 3px;text-align:left;width:100%}.file-dialog-row:hover{background:var(--surface-2)}
.file-dialog-row>span:nth-child(2){display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.file-dialog-row strong{font-size:10.5px;font-weight:450;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-dialog-row small{font-size:8.5px;color:#a4abb4}
.file-dialog-row>.ic{width:14px;height:14px;color:#aab1ba}
.event-detail-time{display:flex;align-items:center;gap:11px;padding:2px 0 15px;border-bottom:1px solid var(--line-soft);margin-bottom:14px}
.event-date-block{width:42px;height:44px;border-radius:8px;background:var(--brand-soft);display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--brand)}
.event-date-block strong{font-size:17px;line-height:1;font-weight:650}.event-date-block span{font-size:8px;margin-top:2px}
.event-detail-time>div:nth-child(2){display:flex;flex-direction:column;gap:3px;flex:1}.event-detail-time>div:nth-child(2) strong{font-size:12px;font-weight:550}.event-detail-time>div:nth-child(2) span{color:#a4abb4;font-size:9px}
.event-color-chip{border-radius:4px;padding:3px 7px;font-size:8.5px;background:#eef3ff;color:#5275b8}.event-color-chip.event-orange{background:#fff6e7;color:#a5781f}.event-color-chip.event-violet{background:#f4efff;color:#795cc5}.event-color-chip.event-green{background:#ebf8f0;color:#2b8d5a}
.event-detail-row{margin:2px 0}
.event-attendees{display:flex;flex-wrap:wrap;gap:5px}.event-attendee{display:flex;align-items:center;gap:4px;border:1px solid var(--line-soft);border-radius:99px;padding:2px 7px 2px 3px;font-size:9.5px;color:#67727f;background:#fbfcfd}
.event-description{font-size:10.5px;line-height:1.75;color:#7c8692;white-space:pre-wrap}
.event-meeting-box{display:flex;align-items:center;gap:9px;background:#f7faff;border:1px solid #e8f0ff;border-radius:8px;padding:10px;margin-top:10px;color:var(--brand)}
.event-meeting-box>div{display:flex;flex-direction:column;gap:2px}.event-meeting-box strong{font-size:10.5px;font-weight:500;color:#4e6d9f}.event-meeting-box span{font-size:8.5px;color:#94a5bd}.event-meeting-box .ic{width:18px;height:18px}
.share-access-row{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:8px;padding:10px;margin-bottom:13px}
.share-access-icon{width:28px;height:28px;border-radius:7px;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center}.share-access-icon .ic{width:15px;height:15px}
.share-access-row>div{flex:1;display:flex;flex-direction:column;gap:2px}.share-access-row strong{font-size:10.5px;font-weight:500}.share-access-row small{font-size:8.5px;color:#a4abb4}
.share-permission-label select{width:100%}
.share-link-box{display:flex;align-items:center;gap:6px;background:#f7f9fc;border:1px solid var(--line);border-radius:7px;padding:5px 6px;margin:11px 0 8px}
.share-link-box input{flex:1;border:0;background:transparent;outline:none;font-size:9.5px;color:#68737f;min-width:0;padding:3px}
.share-note{display:flex;gap:5px;color:#a7aeb7;font-size:8.5px;line-height:1.55}.share-note .ic{width:11px;height:11px;flex:0 0 11px;margin-top:1px}
.settings-profile{background:linear-gradient(120deg,#fbfdff,#f2f6ff);border:1px solid #e9effa;border-radius:10px;padding:13px;margin-bottom:13px}
.settings-profile-head{display:flex;align-items:center;gap:9px}.settings-profile-head>div{flex:1;min-width:0}.settings-profile-head h3{font-size:13px;font-weight:600}.settings-profile-head p{font-size:9px;color:#a1a9b3;margin-top:2px}
.settings-profile-meta{display:flex;gap:13px;color:#98a2ae;font-size:8.5px;margin-top:9px;flex-wrap:wrap}.settings-profile-meta span{display:flex;align-items:center;gap:3px}.settings-profile-meta .ic{width:10px;height:10px}
.settings-section{border-top:1px solid var(--line-soft);padding:12px 2px 4px}
.settings-section h4{font-size:9px;color:#9da5af;font-weight:500;margin-bottom:5px}
.settings-row{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:0;background:transparent;border-radius:6px;padding:8px 7px;text-align:left;color:#59636f;font-size:10.5px}.settings-row:hover{background:var(--surface-2)}
.settings-row>span:first-child{display:flex;align-items:center;gap:7px}.settings-row .ic{width:14px;height:14px;color:#8e98a4}.settings-row>span:nth-child(2){color:#9ba3ad;font-size:9px;margin-left:auto}.settings-row>kbd{font-size:8px}
.settings-row .row-chevron{width:12px;height:12px;color:#b3bac3}
.version-grid{display:grid;grid-template-columns:1fr auto 1fr auto;gap:5px 9px;padding:4px 7px;font-size:9px;color:#a2aab4;align-items:center}.version-grid strong{font-weight:450;color:#59636f;font-size:9px;font-family:var(--mono);text-align:right}
.about-disclaimer{display:flex;gap:5px;border-radius:6px;background:#fbfcfd;border:1px solid var(--line-soft);padding:8px;margin-top:8px;color:#a0a8b2;font-size:8.5px;line-height:1.6}.about-disclaimer .ic{width:11px;height:11px;flex:0 0 11px;margin-top:1px}
.dev-section{background:#fffaf2;border-radius:7px;padding:11px 8px;margin-top:5px;border:1px solid #f6ead8}
.dev-section h4{color:#b08a51}.danger-row{color:#c15858}.danger-row .ic{color:#d88383}.dev-note{font-size:8.5px;color:#b2a38d;padding:3px 7px 0;line-height:1.55}
.settings-foot{display:flex;align-items:center;gap:5px;justify-content:center;border-top:1px solid var(--line-soft);margin-top:10px;padding-top:11px;font-size:8.5px;color:#adb4bd;flex-wrap:wrap}.settings-foot .text-btn{font-size:8.5px}.settings-copyright{margin-left:4px;color:#c0c6ce}
.about-brand{text-align:center;display:flex;flex-direction:column;align-items:center;padding:3px 0 16px}
.about-brand .brand-mark{margin-bottom:9px}.about-brand h3{font-size:18px;letter-spacing:-.3px}.about-brand p{color:#969fa9;font-size:10.5px;line-height:1.7;max-width:360px;margin-top:4px}
.about-facts{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#f8fafc;border:1px solid var(--line-soft);border-radius:8px;padding:10px 12px}
.about-facts>div{display:flex;justify-content:space-between;font-size:9px;color:#a0a8b2;gap:6px}.about-facts strong{font-weight:450;color:#5e6874;font-family:var(--mono);font-size:8.5px}
.about-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:15px 2px 7px}.about-columns h4{font-size:10px;margin-bottom:4px;color:#515c68}.about-columns p{font-size:9.5px;line-height:1.7;color:#8c96a1}
.about-footer{text-align:center;color:#b5bcc4;font-size:8px;letter-spacing:.4px;padding-top:9px}
.announcement-dialog{text-align:center;padding:9px 8px 2px}.announcement-dialog-icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--brand-soft);color:var(--brand);margin:0 auto 12px}.announcement-dialog-icon .ic{width:20px;height:20px}
.announcement-dialog p{font-size:12px;color:#4d5661;line-height:1.8}.announcement-meta{display:block;font-size:8.5px;color:#adb4bd;margin-top:11px}
.confirm-copy{display:flex;gap:9px;padding:2px 1px;color:#67717d;font-size:11px;line-height:1.75}.confirm-copy .ic{width:16px;height:16px;color:#d6922d;flex:0 0 16px;margin-top:2px}
.day-agenda-item{display:flex;align-items:center;gap:9px;width:100%;border:0;background:transparent;border-bottom:1px solid var(--line-soft);padding:9px 2px;text-align:left}.day-agenda-item:hover{background:var(--surface-2)}
.day-agenda-time{width:92px;flex:0 0 92px;color:#8c95a0;font-size:9px;font-variant-numeric:tabular-nums}
.day-agenda-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.day-agenda-main strong{font-size:10.5px;font-weight:500;color:#4e5865;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.day-agenda-main small{font-size:8.5px;color:#a7aeb7}
.day-agenda-item>.ic{width:13px;height:13px;color:#b1b8c1}
.invite-illustration{width:48px;height:48px;border-radius:14px;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;margin:3px auto 11px}.invite-illustration .ic{width:23px;height:23px}
.invite-copy{font-size:10.5px;color:#79838f;line-height:1.7;text-align:center;max-width:330px;margin:0 auto 10px}
.invite-tip{display:flex;align-items:center;gap:4px;color:#a8afb8;font-size:8.5px;margin-top:8px}.invite-tip .ic{width:10px;height:10px}
.app-dialog{text-align:center}.app-dialog-icon{width:52px;height:52px;border-radius:15px;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;margin:1px auto 11px}.app-dialog-icon .ic{width:25px;height:25px}
.app-dialog p{font-size:11px;color:#7e8894;line-height:1.7;max-width:350px;margin:0 auto 10px}
.app-dialog-list{display:flex;flex-direction:column;border-top:1px solid var(--line-soft);margin-top:5px;text-align:left}
.app-dialog-item{display:flex;align-items:center;gap:6px;padding:8px 6px;border-bottom:1px solid var(--line-soft);font-size:9.5px;color:#717c88}.app-dialog-item .ic{width:11px;height:11px;color:#9ba7b5}
.app-dialog-note{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:11px;color:#b0b7c0;font-size:8.5px}.app-dialog-note .ic{width:10px;height:10px}
.focus-modal{text-align:center;padding:7px 12px 2px}.focus-modal-icon{width:48px;height:48px;border-radius:14px;background:var(--brand-soft);color:var(--brand);display:flex;align-items:center;justify-content:center;margin:0 auto 9px}.focus-modal-icon .ic{width:23px;height:23px}
.focus-modal h3{font-size:15px;font-weight:600}.focus-modal p{font-size:10.5px;line-height:1.7;color:#959ea9;margin-top:5px}
.focus-pill{display:inline-flex;align-items:center;gap:4px;border-radius:99px;background:#f6f8fb;padding:4px 9px;font-size:9px;color:#8e98a4;margin-top:11px}.focus-pill .ic{width:11px;height:11px}
.org-chart{display:flex;flex-direction:column;gap:16px}.org-root{display:flex;align-items:center;gap:9px;background:#f8faff;border:1px solid #e7efff;padding:11px;border-radius:9px}.org-root>div{display:flex;flex-direction:column;gap:2px}.org-root strong{font-size:12px;font-weight:600}.org-root span{font-size:9px;color:#98a3b2}
.org-branches{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}.org-dept{border:1px solid var(--line-soft);border-radius:8px;padding:9px;background:#fcfdff}
.org-dept>strong{display:flex;justify-content:space-between;font-size:9px;color:#7b8795;font-weight:500;padding-bottom:6px;border-bottom:1px dashed var(--line-soft);margin-bottom:5px}.org-dept>strong span{color:#aab2bb;font-weight:400}
.org-person{display:flex;align-items:center;gap:4px;font-size:9px;color:#5d6874;padding:3px 0}.org-person small{color:#aab1ba;font-size:8px;margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70px}
.modal-hint{color:var(--text-3);font-size:9.5px;margin-top:10px;line-height:1.6}
.modal-task-list{margin:-4px 0}.modal-task-list .task-row{padding:10px 2px}
.modal-task-list .task-meta{font-size:9px}
.toast-root{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:2000;display:flex;flex-direction:column;align-items:center;gap:7px;pointer-events:none}
.toast{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 8px 30px rgba(19,32,55,.15);padding:9px 13px;font-size:11px;color:#4b5662;opacity:0;transform:translateY(8px);transition:opacity .18s,transform .18s;max-width:min(480px,90vw)}
.toast.is-visible{opacity:1;transform:translateY(0)}.toast .ic{width:15px;height:15px;color:var(--green);flex:0 0 15px}.toast-error .ic{color:var(--danger)}.toast-info .ic{color:var(--brand)}

/* ========== Responsive ========== */
@media (max-width: 1280px) {
  .messenger.has-info{grid-template-columns:290px minmax(0,1fr)}
  .chat-info{position:absolute;right:0;top:0;bottom:0;width:310px;z-index:12;box-shadow:-12px 0 32px rgba(31,35,41,.1)}
  .contacts-layout.has-detail{grid-template-columns:270px minmax(0,1fr) 300px}
  .docs-layout{grid-template-columns:270px minmax(0,1fr)}
  .docs-layout.has-comments{grid-template-columns:270px minmax(0,1fr)}
  .doc-comments{position:absolute;right:0;top:0;bottom:0;width:300px;z-index:14;box-shadow:-12px 0 32px rgba(31,35,41,.1)}
  .docs-layout{position:relative}
  .meetings-layout{grid-template-columns:276px minmax(0,1fr)}
  .calendar-layout{grid-template-columns:256px minmax(0,1fr)}
  .meeting-hero{grid-template-columns:minmax(0,1fr) 300px;gap:20px;padding:28px}
  .meetings-scroll{padding:20px 22px 36px}
}
@media (max-width: 1080px) {
  :root{--rail-w:68px}
  .rail-item{width:58px}.chat-list-pane,.contacts-side,.docs-side,.meetings-side,.calendar-side{border-right-color:#e9ebef}
  .messenger,.messenger.has-info{grid-template-columns:280px minmax(0,1fr)}
  .contacts-layout,.contacts-layout.has-detail{grid-template-columns:250px minmax(0,1fr)}
  .contact-detail{position:absolute;right:0;top:0;bottom:0;width:305px;z-index:12;box-shadow:-12px 0 32px rgba(31,35,41,.1)}
  .contacts-layout{position:relative}
  .docs-layout,.docs-layout.has-comments{grid-template-columns:255px minmax(0,1fr)}
  .doc-canvas{margin:18px 16px 40px;padding:38px 44px 20px}
  .calendar-layout{grid-template-columns:242px minmax(0,1fr)}
  .meetings-layout{grid-template-columns:260px minmax(0,1fr)}
  .wb-columns{grid-template-columns:minmax(0,1.45fr) minmax(270px,.8fr)}
  .app-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
  .meeting-stat-strip{grid-template-columns:repeat(2,1fr)}
}
@media (max-width: 900px) {
  .app-shell{display:flex;flex-direction:column;height:100dvh}
  .app-rail{display:none}
  .view-root{height:calc(100dvh - var(--nav-h));min-height:0}
  .mobile-nav{display:flex;height:var(--nav-h);flex:0 0 var(--nav-h);align-items:stretch;justify-content:space-around;background:rgba(255,255,255,.98);border-top:1px solid var(--line);padding:5px 4px max(5px,env(safe-area-inset-bottom));z-index:40;box-shadow:0 -5px 18px rgba(31,35,41,.04)}
  .mobile-nav-item{border:0;background:transparent;color:#87919d;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:9px;min-width:0;border-radius:8px;padding:2px}
  .mobile-nav-item .ic{width:20px;height:20px}
  .mobile-nav-item.is-active{color:var(--brand)}
  .mobile-icon-wrap{position:relative;display:flex}
  .mobile-badge{position:absolute;top:-5px;right:-9px;background:var(--danger);color:#fff;font-size:7px;line-height:1;border-radius:6px;padding:2px 3px;min-width:12px;text-align:center;border:1.5px solid #fff}
  .messenger,.messenger.has-info{grid-template-columns:1fr;display:block;position:relative;height:100%}
  .chat-list-pane{height:100%;border-right:0}
  .chat-pane{display:none;height:100%;position:absolute;inset:0;z-index:5;background:var(--chat-bg)}
  .messenger.mobile-chat-open .chat-list-pane{display:none}
  .messenger.mobile-chat-open .chat-pane{display:flex}
  .mobile-back{display:inline-flex}
  .chat-header{padding:0 10px;height:58px;flex-basis:58px}
  .chat-header-actions .icon-btn:nth-child(2),.chat-header-actions .icon-btn:nth-child(3){display:none}
  .chat-header-actions .header-separator{display:none}
  .message-scroll{padding:8px 11px 2px}
  .message-main{max-width:86%}
  .composer-wrap{padding:7px 10px calc(7px + env(safe-area-inset-bottom))}
  .composer-footnote{display:none}
  .message-actions{display:none}
  .message-row{padding:7px 2px}
  .message-row:hover{background:transparent}
  .chat-info{position:fixed;top:0;right:0;bottom:var(--nav-h);width:min(340px,92vw);z-index:70}
  .contacts-layout,.contacts-layout.has-detail{display:block;position:relative;height:100%}
  .contacts-side{display:none}.contacts-main{height:100%}
  .contacts-scroll{padding:17px 15px 28px}
  .contact-detail{position:fixed;left:0;right:0;top:0;bottom:var(--nav-h);width:auto;z-index:60;background:#fff}
  .contact-cover{height:125px}.contact-detail-avatar{left:22px;bottom:-30px}
  .org-hero{padding:22px;display:block;min-height:224px}
  .org-hero-copy{max-width:none}.org-hero-stats{margin-top:17px;width:max-content;padding:10px 12px}.org-hero-stats>div{min-width:55px;padding:0 10px}.org-hero-stats strong{font-size:18px}
  .hero-people{right:18px;bottom:15px}.hero-people .avatar:nth-child(n+4){display:none}
  .people-grid{grid-template-columns:1fr 1fr}
  .directory-hint{display:none}
  .calendar-layout{display:block;position:relative;height:100%}
  .calendar-side{display:none}.calendar-main{height:100%}
  .calendar-toolbar{padding:0 12px;height:57px;flex-basis:57px;gap:5px}
  .cal-toolbar-left h2{font-size:14px}.cal-range{display:none}.cal-toolbar-right .btn-primary{display:none}
  .calendar-content{overflow:auto}.week-scroll{overflow:visible}
  .calendar-mobile-agenda{display:none}
  .agenda-view{padding:14px 13px 30px}
  .docs-layout,.docs-layout.has-comments{display:block;height:100%;position:relative}
  .docs-side{display:none}.doc-workbench{height:100%}
  .doc-topbar{height:52px;flex-basis:52px;padding:0 10px}
  .doc-collaborators{display:none}.doc-breadcrumb{max-width:40%}
  .crumb-title{max-width:120px}.doc-share-btn span{display:none}.doc-share-btn{width:31px;padding:0}
  .doc-toolbar{padding:0 7px;gap:1px}.doc-toolbar-right{display:none}
  .doc-tool{width:26px}.block-style-select{width:58px;font-size:9.5px}
  .doc-scroll{background:#f5f6f9}.doc-canvas{margin:0;border:0;border-radius:0;padding:28px 21px 25px;min-height:calc(100% - 0px);box-shadow:none}
  .doc-title{font-size:25px}.doc-meta-line{font-size:8.5px;margin-bottom:17px}.doc-body{font-size:13px;min-height:300px}
  .doc-comments{position:fixed;top:0;right:0;bottom:var(--nav-h);width:min(330px,94vw);z-index:70}
  .meetings-layout{display:block;height:100%}
  .meetings-side{display:none}.meetings-main{height:100%}
  .meetings-scroll{padding:15px 14px 30px}
  .meeting-hero{grid-template-columns:1fr;padding:24px 21px;gap:19px;border-radius:14px}
  .meeting-hero-copy h2{font-size:25px}
  .meeting-preview-card{max-width:320px}
  .meeting-columns{grid-template-columns:1fr;gap:11px;margin-top:11px}
  .meeting-stat-strip{gap:7px;margin-top:11px}.meeting-stat{padding:9px 10px}.stat-icon{width:26px;height:26px}.meeting-stat strong{font-size:13px}
  .workbench-page{height:100%}
  .page-topbar{padding:10px 14px;min-height:58px}
  .search-pill{min-width:0;width:31px;padding:0;justify-content:center}.search-pill span,.search-pill kbd{display:none}
  .wb-title .page-sub{display:none}
  .wb-scroll{padding:14px 13px 30px}
  .wb-hero{grid-template-columns:1fr;padding:21px;gap:18px}
  .wb-hero-copy h2{font-size:23px}
  .wb-focus-card{padding:14px 15px 12px}
  .wb-app-section{margin-top:12px;padding:13px 12px}
  .app-grid{grid-template-columns:1fr 1fr;gap:1px;margin-top:9px}
  .app-tile{padding:7px 5px;gap:7px}.app-icon{width:29px;height:29px;flex-basis:29px}.app-copy small{font-size:7.5px}
  .wb-columns{grid-template-columns:1fr;gap:11px;margin-top:11px}
  .wb-col-side{display:grid;grid-template-columns:1fr 1fr;gap:11px;align-items:start}
  .wb-col-side .team-panel{grid-column:1/-1}
  .announcement-feature{display:block}.announcement-art{min-height:78px;margin-bottom:10px}
  .wb-doc-grid{grid-template-columns:1fr}
  .wb-footer{display:none}
  .modal-overlay{padding:10px;align-items:center}
  .modal{max-height:84vh}.modal-lg{width:100%}
  .modal-head,.modal-body,.modal-foot{padding-left:15px;padding-right:15px}
  .form-grid.two{grid-template-columns:1fr 1fr}
  .group-people-picker{grid-template-columns:1fr}
  .members-dialog-grid{grid-template-columns:1fr}
  .about-columns{grid-template-columns:1fr}
  .settings-profile-meta{gap:7px}.version-grid{grid-template-columns:1fr auto}
  .search-overlay{padding:7px 8px;align-items:flex-start;padding-top:8vh}
  .search-dialog{max-height:82vh}.search-top{height:54px;padding:0 12px}.search-top input{font-size:14px}
  .search-body{padding:5px 4px}.search-footer{display:none}
  .notification-drawer{width:min(360px,94vw)}
  .toast-root{bottom:calc(var(--nav-h) + 13px);width:calc(100% - 26px);left:13px;transform:none;align-items:center}
  .stage-header{padding:0 12px;gap:7px}.stage-title,.stage-status .stage-rec{display:none}.stage-status{gap:8px}
  .stage-room{padding:8px;gap:7px}.stage-grid{grid-template-columns:1fr;grid-template-rows:1.4fr 1fr}
  .stage-side-grid{grid-template-columns:repeat(3,1fr);grid-template-rows:1fr;gap:6px}
  .stage-side-grid .tile-avatar .avatar{width:39px;height:39px;font-size:15px}
  .stage-controls{height:72px;flex-basis:72px;padding:0 10px}
  .stage-control-left,.stage-control-right{display:none}.stage-control-center{width:100%;justify-content:space-evenly;gap:2px}
  .stage-control{min-width:43px;font-size:7.5px}.stage-control .ic{width:17px;height:17px}.stage-control.danger{min-width:49px;padding:7px 10px}
  .stage-chat-drawer{position:fixed;right:8px;top:68px;bottom:80px;width:min(280px,84vw);z-index:3}
}
@media (max-width: 560px) {
  .pane-titlebar{padding:12px 15px 7px}.list-search{margin-left:13px;margin-right:13px}
  .people-grid{grid-template-columns:1fr}
  .page-actions .btn-secondary{display:none}
  .wb-col-side{display:flex}
  .meeting-stat-strip{grid-template-columns:1fr 1fr}
  .meeting-hero-actions .btn{height:33px;font-size:11px;padding:0 11px}
  .preview-video{height:142px}
  .preview-name{bottom:24px}
  .search-scopes{overflow-x:auto}.search-scopes button{white-space:nowrap}
  .modal{width:100%;border-radius:13px}.modal-foot{justify-content:stretch}.modal-foot .btn{flex:1}
  .day-agenda-time{width:72px;flex-basis:72px;font-size:8.5px}
  .event-detail-time{flex-wrap:wrap}
  .share-link-box{flex-direction:column;align-items:stretch}
  .share-link-box .btn{width:100%}
  .group-people-picker{max-height:230px}
  .chat-header-actions .icon-btn[data-action="toggle-info"]{display:none}
  .message-main{max-width:88%}
  .doc-canvas{padding:23px 15px}
  .doc-title{font-size:23px}
  .welcome-line{display:none}
  .calendar-toolbar .cal-nav{display:none}
  .cal-toolbar-left{gap:4px}.cal-toolbar-right .segmented button{padding:0 7px}
  .contacts-scroll{padding:12px 11px 24px}
  .org-hero{padding:19px}.org-hero-copy h2{font-size:23px}.org-hero-stats{margin-top:14px;padding:9px 5px}.org-hero-stats>div{min-width:47px;padding:0 8px}.org-hero-stats strong{font-size:16px}.org-hero-stats span{font-size:8px}
  .hero-people{display:none}.org-hero-copy p{font-size:10.5px}
  .app-grid{grid-template-columns:1fr 1fr}
  .app-tile{flex-direction:column;text-align:center;align-items:center;padding:9px 3px;gap:4px}.app-copy{text-align:center}.app-badge{right:9px}
  .wb-doc-grid{grid-template-columns:1fr}
  .wb-col-side{display:flex}
  .announcement-copy h4{font-size:12px}
  .announcement-copy p{-webkit-line-clamp:3}
  .modal-lg{max-height:90vh}
}
@media (max-height: 680px) and (min-width: 901px) {
  .rail-item{min-height:43px;gap:0}.rail-text{font-size:9px}.rail-brand{height:46px;margin-bottom:0}
  .rail-utility{min-height:31px;height:31px}.rail-avatar{padding-top:2px}
  .pane-titlebar{min-height:56px}.chat-header{height:56px;flex-basis:56px}
  .meetings-scroll,.wb-scroll{padding-top:16px}
  .meeting-hero{padding-top:24px;padding-bottom:22px}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


