:root {
  color-scheme:light;
  --ink:#302b2a; --muted:#746b67; --tertiary:#9a8f89;
  --coral:#cf5e50; --coral-dark:#7e1829; --coral-soft:#fff0e9;
  --apricot:#f6a45d; --cream:#fbf7f1; --paper:#fffdfa; --mint:#dff2e8;
  --lavender:#ece8f7; --sky:#e7f1f6; --line:#e9e0d8; --line-strong:#d9cec5;
  --danger:#b53b48; --shadow:0 16px 50px rgba(86,57,43,.14); --soft-shadow:0 8px 28px rgba(86,57,43,.09);
  font-family:Inter,"Hiragino Sans","Yu Gothic UI","Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
* { box-sizing:border-box; }
html,body { margin:0; min-height:100%; }
body { color:var(--ink); background:var(--cream); font-size:14px; }
button,input,textarea,select { font:inherit; }
button { color:inherit; border:0; background:none; cursor:pointer; }
button:disabled { cursor:not-allowed; opacity:.48; }
a { color:inherit; }
svg { display:block; width:20px; height:20px; }
[hidden] { display:none !important; }
::selection { background:#ffd5c5; color:#3b2721; }
:focus-visible { outline:3px solid rgba(238,104,71,.32); outline-offset:2px; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.button {
  display:inline-flex; justify-content:center; align-items:center; gap:7px; min-height:37px; padding:8px 13px;
  border:1px solid var(--line-strong); border-radius:10px; background:#fff; font-weight:700; font-size:12px;
  transition:transform .14s ease,background .14s ease,border-color .14s ease;
}
.button:hover { background:#fff8f4; border-color:#d7bdb1; }
.button:active { transform:translateY(1px); }
.button.primary { color:#fff; background:var(--coral-dark); border-color:var(--coral-dark); box-shadow:0 5px 15px rgba(184,70,47,.22); }
.button.primary:hover { background:var(--coral-dark); border-color:var(--coral-dark); }
.button.danger { color:#fff; background:var(--danger); border-color:var(--danger); }
.button.wide { width:100%; }
.icon { display:inline-grid; place-items:center; width:36px; height:36px; padding:0; border-radius:10px; flex:none; }
.icon:hover { background:rgba(93,68,57,.08); }
.icon.outlined { border:1px solid var(--line); background:#fff; }
.icon.outlined:hover { color:var(--coral-dark); background:var(--coral-soft); border-color:#f5c6b6; }

.desk { height:100dvh; display:grid; grid-template-rows:64px minmax(0,1fr); overflow:hidden; background:#fff; }
.topbar {
  position:relative; z-index:5; display:grid; grid-template-columns:auto auto minmax(180px,530px) 1fr; align-items:center; gap:13px;
  padding:0 18px; color:#fff; background:var(--coral-dark); box-shadow:0 2px 14px rgba(130,55,35,.18);
}
.on-brand { color:#fff; }
.on-brand:hover { background:rgba(255,255,255,.17); }
.brand { display:inline-flex; align-items:center; gap:10px; color:inherit; text-decoration:none; font-size:20px; font-weight:850; letter-spacing:-.045em; white-space:nowrap; }
.brand-light { font-weight:560; opacity:.88; }
.brand-mark { width:31px; height:31px; border-radius:8px; background:url("/icons/icon-192.png") center / cover no-repeat; flex:none; }
.global-search {
  justify-self:center; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:9px;
  width:min(100%,530px); min-height:39px; padding:7px 10px; color:#fffaf7; background:rgba(126,44,26,.18);
  border:1px solid rgba(255,255,255,.25); border-radius:12px; text-align:left; font-size:12px;
}
.global-search:hover { background:rgba(113,38,23,.28); }
.global-search svg { width:17px; height:17px; }
kbd { color:#fff; font:10px/1.3 ui-monospace,monospace; border:1px solid rgba(255,255,255,.38); padding:2px 5px; border-radius:5px; }
.account { justify-self:end; display:flex; align-items:center; gap:10px; white-space:nowrap; }
.avatar-button { color:inherit; border:2px solid rgba(255,255,255,.64); border-radius:13px; padding:0; background:rgba(255,255,255,.12); }
.avatar-button:hover { background:rgba(255,255,255,.24); }
.install-button { display:flex; align-items:center; gap:6px; min-height:34px; padding:6px 10px; color:#fff; border:1px solid rgba(255,255,255,.42); border-radius:10px; font-size:11px; font-weight:750; }
.install-button:hover { background:rgba(255,255,255,.14); }
.install-button svg { width:15px; height:15px; }
.demo-badge { border:1px solid rgba(255,255,255,.45); border-radius:6px; color:#fff; padding:3px 7px; font-size:9px; font-weight:750; }
.connection { color:#fff; font-size:10px; display:inline-flex; align-items:center; gap:6px; }
.connection::before { content:""; width:7px; height:7px; border-radius:50%; background:#d6ffd9; box-shadow:0 0 0 3px rgba(255,255,255,.15); }
.connection.offline::before { background:#ffe08c; }

.workspace { position:relative; display:grid; grid-template-columns:264px minmax(0,1fr) 326px; min-height:0; transition:grid-template-columns .18s ease; }
.desk.nav-collapsed .workspace { grid-template-columns:0 minmax(0,1fr) 326px; }
.desk.details-collapsed .workspace { grid-template-columns:264px minmax(0,1fr) 0; }
.desk.nav-collapsed.details-collapsed .workspace { grid-template-columns:0 minmax(0,1fr) 0; }
.sidebar {
  position:relative; z-index:3; min-width:0; min-height:0; display:flex; flex-direction:column; overflow:auto; padding:18px 12px 9px;
  background:var(--cream); border-right:1px solid var(--line);
}
.desk.nav-collapsed .sidebar { visibility:hidden; padding-inline:0; }
.workspace-label { display:flex; align-items:center; gap:10px; min-width:220px; padding:3px 7px 18px; }
.workspace-label b,.workspace-label small { display:block; }
.workspace-label b { font-size:13px; }
.workspace-label small { color:var(--tertiary); margin-top:2px; font-size:10px; }
.workspace-icon,.room-symbol { display:grid; place-items:center; width:37px; height:37px; flex:none; color:#a84831; background:#ffe7dc; border:1px solid #f7d2c2; border-radius:13px; }
.workspace-icon svg { width:17px; height:17px; }
.room-symbol { width:45px; height:45px; border-radius:15px; }
.room-symbol svg { width:22px; height:22px; }
.nav-main { display:grid; gap:3px; padding-bottom:13px; border-bottom:1px solid var(--line); }
.nav-main button { display:flex; align-items:center; gap:10px; min-height:39px; padding:7px 9px; width:100%; border-radius:10px; font-size:12px; font-weight:720; }
.nav-main button:hover { background:#fff1ea; color:#a6442d; }
.nav-main svg { color:#a85b47; width:18px; height:18px; }
.nav-conversations { min-width:238px; padding-top:12px; }
.nav-heading { display:flex; align-items:center; justify-content:space-between; padding:0 3px 4px 8px; }
.nav-heading h2 { display:flex; align-items:center; gap:6px; margin:0; color:#8b5c4f; font-size:10px; font-weight:850; letter-spacing:.045em; }
.nav-heading h2 svg { width:13px; height:13px; }
.nav-heading .icon { width:29px; height:29px; }
.nav-heading .icon svg { width:15px; height:15px; }
.dm-heading { margin-top:19px; padding-top:12px; border-top:1px dashed #ded2c8; }
.dm-heading h2 { color:#675d85; }
.nav-list { display:grid; gap:3px; }
.nav-list .empty-note { padding:6px 8px; }
.nav-row { display:flex; align-items:center; gap:9px; min-width:0; width:100%; min-height:40px; padding:7px 8px; border-radius:11px; font-size:12px; font-weight:680; text-align:left; }
.nav-row:hover { background:#fff; }
.nav-row.selected { color:#9d402a; background:#ffe7dc; box-shadow:inset 3px 0 var(--coral); }
#dm-list .nav-row.selected { color:#564879; background:var(--lavender); box-shadow:inset 3px 0 #8c7ab7; }
.nav-title { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; margin-right:auto; }
.row-symbol { display:grid; place-items:center; width:24px; color:#aa694f; flex:none; }
.row-symbol svg,.nav-star svg,.nav-quiet svg { width:15px; height:15px; }
.nav-star { color:var(--coral); }
.nav-quiet { color:var(--tertiary); }
.unread { min-width:20px; padding:0 5px; border-radius:10px; color:#fff; background:var(--coral-dark); text-align:center; font:750 10px/20px sans-serif; }
#dm-list .unread { background:#74649e; }
.sidebar-foot { display:flex; align-items:center; gap:7px; margin-top:auto; padding:15px 8px 4px; color:var(--muted); }
.sidebar-foot button { font-size:11px; padding:5px 0; }
.sidebar-foot svg { width:15px; height:15px; }

.conversation { position:relative; display:flex; flex-direction:column; min-height:0; min-width:0; overflow:hidden; background:#fff; }
.conversation-head { display:flex; align-items:center; gap:12px; min-height:88px; padding:15px clamp(15px,2.5vw,35px); border-bottom:1px solid var(--line); flex:none; }
.conversation-titles { min-width:0; flex:1; }
.conversation-kind { display:block; margin-bottom:2px; color:var(--coral-dark); font-size:8px; font-weight:900; letter-spacing:.1em; }
.conversation-titles h1 { margin:0; font-size:21px; font-weight:820; letter-spacing:-.035em; line-height:1.25; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.conversation-titles p { margin:4px 0 0; color:var(--muted); font-size:11px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.header-actions { display:flex; gap:7px; }
.announcement { display:flex; align-items:center; gap:9px; padding:8px clamp(15px,2.5vw,35px); background:#fff7e6; border-bottom:1px solid #f4dec0; color:#77512b; flex:none; }
.announcement-icon { display:grid; place-items:center; width:27px; height:27px; color:#bd672a; background:#ffe6bd; border-radius:9px; }
.announcement-icon svg { width:15px; height:15px; }
.announcement-copy { display:flex; align-items:baseline; gap:8px; min-width:0; flex:1; padding:1px; text-align:left; }
.announcement-copy b { flex:none; font-size:10px; }
.announcement-copy span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:11px; }
.announcement-count { padding:3px 7px; border:1px solid #efd5ad; border-radius:8px; background:#fff; font-size:10px; font-weight:700; }
.timeline { min-height:0; flex:1 1 auto; overflow:auto; overscroll-behavior-y:contain; scrollbar-gutter:stable; background:linear-gradient(#fff,#fffdfa); }
#messages { max-width:900px; margin:0 auto; padding:18px clamp(14px,2.5vw,35px) 25px; }
.date-rule { display:flex; align-items:center; justify-content:center; gap:13px; margin:8px 0 19px; color:var(--tertiary); font-size:10px; font-weight:700; }
.date-rule::before,.date-rule::after { content:""; height:1px; flex:1; background:var(--line); }
.message { position:relative; display:flex; gap:11px; min-width:0; margin:2px -8px 7px; padding:9px 8px; border-radius:14px; scroll-margin-block:15px; user-select:text; -webkit-touch-callout:default; }
.message:hover,.message:focus-within { background:#fdf8f4; }
.message.highlight { background:#fff0e8; box-shadow:inset 3px 0 var(--coral); }
.message-content { min-width:0; flex:1; }
.message header { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
.message header b { font-size:13px; font-weight:800; overflow-wrap:anywhere; }
.message header time,.message header small { color:var(--tertiary); font-size:9px; }
.message header .you { color:#9d4b36; padding:1px 4px; border-radius:4px; background:#ffe8de; font-weight:700; }
.message-pin { color:#bf652f; transform:translateY(2px); }
.message-pin svg { width:13px; height:13px; }
.message-text,.message-deleted { margin:5px 0 0; font-size:13px; line-height:1.78; white-space:pre-wrap; overflow-wrap:anywhere; }
.message-text a { color:#b64831; text-decoration-color:#e7ad9d; text-underline-offset:2px; }
.message-deleted { color:var(--tertiary); font-style:italic; }
.message-actions { position:absolute; z-index:1; right:8px; top:-12px; display:flex; opacity:0; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:var(--soft-shadow); }
.message:hover .message-actions,.message:focus-within .message-actions { opacity:1; }
.message-actions .icon { width:31px; height:29px; }
.message-actions svg { width:15px; height:15px; }
.quoted { display:flex; align-items:center; gap:7px; max-width:100%; margin:7px 0 2px; padding:5px 9px; color:#765f55; background:#f9f3ee; border-left:3px solid #e8a78f; border-radius:2px 8px 8px 2px; font-size:10px; }
.quoted span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.quoted strong { flex:none; white-space:nowrap; }
.quoted svg { width:13px; height:13px; }
.message-mentions { display:flex; gap:4px; flex-wrap:wrap; margin-top:5px; }
.message-mentions span { padding:2px 6px; color:#7e4b82; background:#f4eaf5; border-radius:7px; font-size:10px; font-weight:700; }
.message-meta,.reactions { display:flex; align-items:center; gap:5px; }
.message-meta { justify-content:space-between; min-height:26px; margin-top:3px; }
.reactions { flex-wrap:wrap; }
.reaction { min-height:25px; padding:1px 7px; border:1px solid var(--line); border-radius:9px; background:#fffaf7; line-height:20px; font-size:11px; font-weight:700; }
.reaction.active { color:#9b402a; border-color:#edb9a7; background:#ffe8de; }
.reaction-add { width:27px; height:25px; opacity:0; }
.message:hover .reaction-add,.message:focus-within .reaction-add { opacity:1; }
.receipt-button { display:flex; align-items:center; gap:4px; padding:3px 5px; color:var(--tertiary); font-size:9px; white-space:nowrap; }
.receipt-button:hover { color:var(--coral-dark); }
.receipt-button svg { width:12px; height:12px; }
.avatar { display:grid; place-items:center; width:36px; height:36px; flex:none; overflow:hidden; border-radius:13px; color:#7a4636; background:#f7ddcf; font-size:10px; font-weight:850; }
.avatar.tiny { width:24px; height:24px; border-radius:8px; font-size:9px; }
.avatar.small { width:31px; height:31px; border-radius:10px; font-size:10px; }
.avatar.large { width:47px; height:47px; border-radius:16px; font-size:17px; }
.avatar-button .avatar { width:33px; height:33px; border-radius:11px; }
.avatar.custom { font-size:17px; }
.avatar.c1,.avatar-leaf { color:#336654; background:#dcefe5; }
.avatar.c2,.avatar-wave { color:#3d6474; background:#dcecf2; }
.avatar.c3,.avatar-plum { color:#72537f; background:#eee4f1; }
.avatar.c4,.avatar-rose { color:#904f68; background:#f5e1e8; }
.avatar.c5,.avatar-amber { color:#835b2c; background:#f7e7cc; }
.avatar-slate { color:#4f5b63; background:#e4e9ec; }
.avatar-sun { color:#8b5e22; background:#f9e9bf; }
.avatar-sky { color:#3f6685; background:#e0edf7; }
.message-attachments { display:flex; gap:7px; flex-wrap:wrap; margin-top:9px; }
.message-attachment { display:flex; align-items:center; gap:9px; max-width:310px; overflow:hidden; border:1px solid var(--line); border-radius:11px; background:#fff; text-decoration:none; }
.message-attachment.photo { width:min(100%,290px); }
.message-attachment.photo img { display:block; width:100%; max-height:230px; object-fit:cover; }
.message-video { width:min(100%,330px); margin:0; overflow:hidden; border:1px solid var(--line); border-radius:11px; background:#2e2927; }
.message-video video { display:block; width:100%; max-height:260px; background:#2e2927; }
.message-video figcaption { padding:6px 8px; overflow:hidden; color:#f7efea; font-size:9px; white-space:nowrap; text-overflow:ellipsis; }
.message-attachment.document { padding:8px 10px; }
.message-attachment.document span:nth-child(2) { display:grid; min-width:0; }
.message-attachment.document b { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:11px; }
.message-attachment.document small { color:var(--tertiary); font-size:9px; }
.attachment-file-icon { display:grid; place-items:center; width:30px; height:30px; color:#a64a34; background:var(--coral-soft); border-radius:8px; }
.attachment-file-icon svg { width:16px; height:16px; }
.history-more { display:flex; gap:8px; justify-content:center; margin:4px 0 16px; }
.history-more .button { min-height:32px; padding:5px 9px; font-size:10px; }
.timeline-empty { padding:clamp(45px,10vh,110px) 10px; color:var(--muted); text-align:center; }
.timeline-empty .workspace-icon { margin:0 auto 13px; width:50px; height:50px; }
.timeline-empty h2 { margin:0; color:var(--ink); font-size:18px; }
.timeline-empty p { margin:7px 0 16px; font-size:12px; }
.action-grid { display:flex; gap:8px; flex-wrap:wrap; }

.composer-area { flex:none; align-self:center; width:100%; max-width:900px; padding:8px clamp(14px,2.5vw,35px) max(11px,env(safe-area-inset-bottom)); background:linear-gradient(transparent,#fff 18%); }
.composer { overflow:hidden; border:1px solid #dacbc2; border-radius:15px; background:#fff; box-shadow:0 5px 18px rgba(87,57,43,.08); }
.composer:focus-within { border-color:#e89980; box-shadow:0 0 0 3px rgba(238,104,71,.10); }
.composer textarea { display:block; width:100%; min-height:55px; max-height:min(30vh,240px); resize:vertical; padding:12px 13px 2px; border:0; outline:none; border-radius:15px 15px 0 0; color:var(--ink); background:#fff; font-size:13px; }
.composer textarea::placeholder { color:#9a8d87; }
.compose-footer,.compose-tools,.send-tools,.compose-mode { display:flex; align-items:center; }
.compose-footer { justify-content:space-between; gap:5px; padding:4px 8px 7px; }
.compose-tools,.send-tools { gap:6px; }
.compose-tools .icon { width:31px; height:31px; color:#75645d; }
#room-scope { display:flex; align-items:center; gap:4px; color:var(--tertiary); font-size:9px; }
#room-scope svg { width:12px; height:12px; }
.send-hint,.composer-note { color:var(--tertiary); font-size:9px; }
.composer-note { min-height:13px; margin-top:4px; }
.send { min-height:33px; padding:5px 10px 5px 12px; font-size:11px; }
.send svg { width:14px; height:14px; }
.compose-mode { gap:6px; margin:6px 8px 0; padding:3px 5px 3px 8px; color:#774e42; background:#fff0e9; border-radius:8px; font-size:10px; }
.compose-mode span:nth-child(2) { min-width:0; flex:1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.compose-mode svg { width:13px; height:13px; }
.compose-mode button { width:25px; height:25px; }
.upload-preview { display:flex; gap:5px; flex-wrap:wrap; padding:7px 9px 0; }
.upload-chip { display:flex; align-items:center; gap:5px; max-width:210px; padding:3px 5px 3px 7px; color:#685b55; background:#f8f3ef; border-radius:8px; font-size:9px; }
.upload-chip > span:nth-child(2) { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.upload-chip svg { width:12px; height:12px; }
.upload-chip .icon { width:20px; height:20px; }
.jump-latest { position:absolute; z-index:2; right:25px; bottom:126px; box-shadow:var(--soft-shadow); }

.details { min-width:0; min-height:0; overflow:auto; padding:17px 16px; background:#fffaf6; border-left:1px solid var(--line); }
.desk.details-collapsed .details { visibility:hidden; padding-inline:0; }
.details-title { display:flex; align-items:center; justify-content:space-between; min-height:32px; }
.details-title h2 { margin:0; font-size:13px; font-weight:820; }
.detail-close { width:30px; height:30px; }
.detail-tabs { display:grid; grid-template-columns:repeat(5,1fr); gap:3px; margin:10px 0 13px; padding:3px; background:#f1e9e2; border-radius:11px; }
.detail-tab { display:grid; justify-items:center; gap:2px; min-width:0; padding:6px 1px; border-radius:8px; color:#81736d; font-size:8px; font-weight:750; }
.detail-tab svg { width:14px; height:14px; }
.detail-tab.active { color:#9d422d; background:#fff; box-shadow:0 2px 8px rgba(82,52,39,.08); }
.details-main { padding:4px 0 17px; }
.room-kind { display:inline-flex; align-items:center; gap:5px; padding:3px 7px; color:#9d4b36; background:#ffe9df; border-radius:7px; font-size:9px; font-weight:750; }
.room-kind svg { width:12px; height:12px; }
.details-main h3 { margin:9px 0 4px; font-size:17px; font-weight:820; overflow-wrap:anywhere; }
.details-main p,.pane-intro { color:var(--muted); font-size:10px; line-height:1.7; }
.details-main p { margin:0; }
.pane-intro { margin:0 0 12px; }
.details-section { padding:14px 0; border-top:1px solid var(--line); }
.details-sub { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; color:var(--tertiary); font-size:10px; }
.details-sub h3 { display:flex; align-items:center; gap:6px; margin:0; color:var(--ink); font-size:11px; }
.details-sub svg { width:14px; height:14px; color:#a85a43; }
.pin-card { display:grid; gap:3px; width:100%; margin-top:5px; padding:8px 9px; color:#78554a; background:#fff1e9; border:1px solid #f2d2c3; border-radius:9px; font-size:10px; line-height:1.55; text-align:left; overflow-wrap:anywhere; }
.pin-card:hover { background:#ffe8dc; }
.pin-name { color:#9c4932; font-weight:780; }
.members { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.members li { display:flex; align-items:center; gap:8px; min-width:0; }
.member-role { padding:1px 4px; color:#695a85; background:#eee9f7; border-radius:4px; font-size:8px; }
.person-link { padding:3px 0; font-size:10px; overflow-wrap:anywhere; }
.person-link:hover,.text-button:hover { text-decoration:underline; }
.person-link:disabled { opacity:1; }
.text-button { padding:6px 0; color:#a64630; font-size:10px; font-weight:720; }
.subtle-action { color:#7c6961; }
.media-tabs { display:grid; grid-template-columns:repeat(4,1fr); gap:3px; margin-bottom:10px; padding:3px; background:#f0e8e1; border-radius:10px; }
.media-tab { display:flex; justify-content:center; align-items:center; gap:4px; min-height:31px; color:#7e706a; border-radius:8px; font-size:9px; font-weight:730; }
.media-tab svg { width:13px; height:13px; }
.media-tab.active { color:#9b422e; background:#fff; }
.library-list,.article-list { display:grid; gap:7px; }
.empty-panel { display:grid; justify-items:center; gap:7px; padding:22px 10px; color:var(--muted); background:#fff; border:1px dashed var(--line-strong); border-radius:11px; text-align:center; }
.empty-panel > svg { width:22px; height:22px; color:#a85b45; }
.empty-panel b { color:var(--ink); font-size:11px; }
.empty-panel p { margin:0; font-size:9px; }
.library-item { display:flex; align-items:center; gap:8px; min-width:0; padding:7px; border:1px solid var(--line); border-radius:10px; background:#fff; text-decoration:none; }
.library-item:hover { border-color:#e2b7a7; background:#fff9f6; }
.library-icon { display:grid; place-items:center; width:32px; height:32px; flex:none; color:#a54b34; background:#fff0e8; border-radius:9px; }
.library-icon svg { width:15px; height:15px; }
.library-copy { display:grid; min-width:0; flex:1; }
.library-copy b { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:10px; }
.library-copy small { color:var(--tertiary); font-size:8px; }
.library-item > svg { width:13px; height:13px; color:var(--tertiary); }
.image-item img { width:48px; height:42px; object-fit:cover; border-radius:7px; background:#eee; }
.library-more { width:100%; }
.note-editor { width:100%; min-height:250px; resize:vertical; padding:10px; color:var(--ink); background:#fffdf5; border:1px solid #e5d8c8; border-radius:10px; line-height:1.7; font-size:11px; }
.task-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; margin-bottom:11px; }
.task-form input,.article-form input { min-width:0; padding:8px 9px; border:1px solid var(--line-strong); border-radius:9px; background:#fff; font-size:10px; }
.task-list { display:grid; gap:6px; }
.task-row { display:flex; align-items:flex-start; gap:7px; padding:8px; border:1px solid var(--line); border-radius:9px; background:#fff; font-size:10px; line-height:1.45; }
.task-row input { margin:1px 0 0; accent-color:var(--coral); }
.task-row.done span { color:var(--tertiary); text-decoration:line-through; }
.article-row { position:relative; display:grid; }
.article-card { position:relative; display:grid; gap:4px; padding:10px 30px 10px 10px; border:1px solid var(--line); border-radius:10px; background:#fff; text-decoration:none; }
.article-card:hover { border-color:#e0b2a0; }
.article-card > svg { position:absolute; top:10px; right:9px; width:14px; height:14px; color:#a55a43; }
.article-card b { font-size:11px; }
.article-card p { margin:0; color:var(--muted); font-size:9px; line-height:1.5; }
.article-card small { color:var(--tertiary); font-size:8px; }
.article-provider { width:max-content; padding:2px 5px; color:#83558b; background:#f1e8f3; border-radius:5px; font-size:8px; font-weight:750; }
.article-remove { justify-self:end; padding:4px 2px; color:#9c4a3b; font-size:8px; text-decoration:underline; }
.article-form { display:grid; gap:6px; margin-top:8px; padding-top:12px; border-top:1px solid var(--line); }
.article-form h3 { margin:0; font-size:11px; }

dialog { width:min(560px,calc(100% - 22px)); max-height:min(88dvh,760px); padding:0; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:0 24px 90px rgba(70,41,29,.28); }
dialog::backdrop { background:rgba(60,39,31,.52); backdrop-filter:blur(2px); }
.dialog-header { position:sticky; z-index:2; top:0; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px 12px 19px; background:#fffdfa; border-bottom:1px solid var(--line); }
.dialog-header h2 { margin:0; font-size:16px; }
.dialog-body { display:grid; gap:14px; padding:17px 19px 20px; }
.dialog-body input,.dialog-body textarea,.login-form input { width:100%; min-height:42px; padding:9px 11px; color:var(--ink); background:#fffdfa; border:1px solid var(--line-strong); border-radius:10px; }
.dialog-body label,.login-form label { display:block; font-size:11px; font-weight:750; }
.dialog-body textarea { resize:vertical; }
.stack { display:grid; gap:8px; }
.stack input + label { margin-top:5px; }
.form-note,.form-copy { color:var(--muted); font-size:11px; line-height:1.65; }
.form-note { display:flex; align-items:center; gap:6px; }
.form-note svg { width:14px; height:14px; }
.form-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:6px; }
.invite-panel { display:grid; gap:14px; }
.invite-qr { width:min(232px,75vw); aspect-ratio:1; justify-self:center; border:1px solid var(--line); border-radius:14px; background:#fffaf3; }
.invite-copy { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px; align-items:center; }
.invite-url { min-width:0; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:10px; }
.invite-preview { display:grid; justify-items:center; gap:9px; padding:8px 4px; text-align:center; }
.invite-preview h3,.invite-preview p { margin:0; }
.invite-preview p,.invite-preview small { color:var(--muted); }
.form-error { margin-bottom:8px; color:var(--danger); font-size:11px; }
.results { display:grid; gap:6px; }
.result { display:flex; align-items:center; gap:10px; min-width:0; padding:8px; background:#fffdfa; border:1px solid var(--line); border-radius:10px; text-align:left; overflow-wrap:anywhere; font-size:11px; }
button.result:hover { background:#fff2eb; }
.result-content { display:grid; gap:3px; min-width:0; }
.result-content span,.result-content small,.result-title small { color:var(--tertiary); font-size:10px; }
.result-right { margin-left:auto; color:var(--tertiary); }
.result .small-button { margin-left:auto; white-space:nowrap; padding:5px 8px; font-size:10px; }
.message-result { display:grid; gap:3px; color:#604f48; }
.result-title { display:flex; align-items:baseline; flex-wrap:wrap; gap:7px; }
.empty-note { margin:0; padding:6px 0; color:var(--tertiary); font-size:10px; }
.pick { min-width:42px; font-size:20px; }
.message-menu { display:grid; gap:6px; }
.message-menu .button { justify-content:flex-start; }
.menu-excerpt { margin:0; padding:8px 10px; color:var(--muted); background:#f8f3ef; border-radius:9px; font-size:10px; }
.help-list h3 { margin:0; font-size:12px; }
.help-list p { margin:3px 0 13px; color:var(--muted); font-size:11px; }
.mention-list { display:grid; gap:5px; }
.mention-person { display:flex; align-items:center; gap:8px; width:100%; padding:7px; border-radius:10px; text-align:left; font-size:11px; }
.mention-person:hover { background:#fff0e8; }
.toast { position:fixed; z-index:20; right:16px; bottom:16px; max-width:min(90%,500px); padding:11px 15px; color:#fff; background:#4a3a34; border-radius:11px; box-shadow:var(--shadow); font-size:11px; }

.settings-section { padding:3px 0 17px; border-bottom:1px solid var(--line); }
.settings-heading { display:flex; align-items:flex-start; gap:10px; margin-bottom:10px; }
.settings-heading h3,.settings-heading p { margin:0; }
.settings-heading h3 { font-size:13px; }
.settings-heading p { margin-top:2px; color:var(--muted); font-size:10px; line-height:1.5; }
.settings-icon { display:grid; place-items:center; width:31px; height:31px; flex:none; color:#a94e37; background:#ffede5; border-radius:9px; }
.settings-icon svg { width:15px; height:15px; }
.profile-preview,.onboarding-preview { display:flex; align-items:center; gap:10px; padding:9px; background:#fff8f3; border-radius:11px; }
.profile-preview div,.onboarding-preview div { display:grid; }
.profile-preview b,.onboarding-preview b { font-size:12px; }
.profile-preview small,.onboarding-preview small { color:var(--muted); font-size:9px; }
.avatar-field { margin:5px 0 0; padding:0; border:0; }
.avatar-field legend { margin-bottom:7px; font-size:11px; font-weight:750; }
.avatar-picker { display:grid; grid-template-columns:repeat(8,1fr); gap:5px; }
.avatar-choice { display:grid; place-items:center; min-width:0; height:39px; padding:3px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.avatar-choice[aria-checked="true"] { border-color:var(--coral); box-shadow:0 0 0 2px rgba(238,104,71,.16); }
.avatar-choice .avatar { pointer-events:none; }
.switch-row { display:grid!important; grid-template-columns:auto 1fr; align-items:start; gap:9px; padding:9px; background:#fffdfa; border:1px solid var(--line); border-radius:10px; }
.switch-row input { width:17px!important; min-height:auto!important; margin:2px 0 0; accent-color:var(--coral); }
.switch-row span { display:grid; gap:2px; }
.switch-row b { font-size:10px; }
.switch-row small { color:var(--muted); font-size:9px; line-height:1.5; font-weight:500; }
.field-status { display:flex; align-items:center; justify-content:space-between; }
.verification-status { padding:2px 6px; color:#8b6358; background:#f2ebe6; border-radius:6px; font-size:8px; font-weight:750; }
.verification-status.verified { color:#35634e; background:#dff1e7; }
.privacy-note { display:flex; align-items:flex-start; gap:6px; margin:2px 0; color:#6f625c; font-size:9px; line-height:1.55; }
.privacy-note svg { width:13px; height:13px; flex:none; margin-top:1px; }
.notice-modes { display:grid; gap:6px; }
.notice-mode { display:grid!important; grid-template-columns:auto 1fr; align-items:start; gap:8px; padding:9px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.notice-mode:has(input:checked) { border-color:#e8a58e; background:#fff4ee; }
.notice-mode.disabled { opacity:.55; }
.notice-mode input { width:16px!important; min-height:auto!important; margin:2px 0 0; accent-color:var(--coral); }
.notice-mode span { display:grid; gap:2px; }
.notice-mode b { font-size:10px; }
.notice-mode small { color:var(--muted); font-size:9px; font-weight:500; }
.install-settings { display:grid; gap:9px; }
.sign-out { padding-top:4px; }
.install-guide { display:grid; justify-items:center; gap:8px; text-align:center; }
.install-guide h3,.install-guide p { margin:0; }
.install-guide p { color:var(--muted); font-size:11px; line-height:1.7; }
.install-hero { display:grid; place-items:center; width:60px; height:60px; color:#a64931; background:#ffebe1; border-radius:18px; }
.install-hero svg { width:27px; height:27px; }

.onboarding-dialog { width:min(500px,calc(100% - 22px)); }
.onboarding-dialog #onboarding-body { padding:0; }
.onboarding-card { display:grid; gap:11px; padding:26px; }
.onboarding-card h1 { margin:0; font-size:25px; line-height:1.25; letter-spacing:-.04em; }
.onboarding-mark { display:flex; justify-content:center; margin-bottom:4px; }
.onboarding-mark .brand-mark { width:47px; height:47px; }
.field-hint { margin-top:-7px; color:var(--tertiary); font-size:9px; }

.login {
  --login-wine:#64192d; --login-paper:#fffdf8;
  display:grid; grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr); min-height:100dvh;
  color:#2e2528; background:#f4ede5;
}
.login-intro {
  position:relative; isolation:isolate; overflow:hidden; display:flex; flex-direction:column; justify-content:center; gap:clamp(28px,4.4vh,48px);
  min-width:0; padding:clamp(38px,5.7vw,88px); color:#fff9ef;
  background:linear-gradient(145deg,#26121f 0%,#461427 50%,#711d32 100%);
}
.login-intro::before {
  content:""; position:absolute; z-index:-1; width:min(48vw,660px); aspect-ratio:1; right:-24%; top:-26%;
  border:1px solid rgba(255,245,220,.14); border-radius:50%; box-shadow:0 0 0 72px rgba(255,245,220,.025),0 0 0 144px rgba(255,245,220,.018);
}
.login-intro::after {
  content:""; position:absolute; z-index:-1; inset:auto 5% 0 auto; width:44%; height:1px;
  background:linear-gradient(90deg,transparent,rgba(246,224,182,.5)); box-shadow:0 -104px rgba(246,224,182,.09),0 -208px rgba(246,224,182,.06);
}
.login-brand { display:inline-flex; align-items:center; gap:13px; width:max-content; color:#fffaf1; text-decoration:none; font-size:27px; font-weight:490; letter-spacing:-.045em; }
.login-brand b { font-weight:800; }
.login-brand-icon { display:block; width:54px; height:54px; border-radius:15px; box-shadow:0 13px 28px rgba(12,3,10,.3); }
.login-kicker { margin:0 0 11px!important; color:#e8caaa!important; font-size:11px!important; font-weight:780; letter-spacing:.12em; }
.login-lead h1 { max-width:720px; margin:0 0 20px; font-size:clamp(38px,4.45vw,68px); line-height:1.12; letter-spacing:-.055em; white-space:pre-line; text-wrap:balance; }
.login-lead p { max-width:610px; margin:0; color:#eedce0; font-size:clamp(12px,1.15vw,15px); line-height:1.95; }
.login-features { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; width:min(100%,720px); }
.login-feature { display:flex; align-items:flex-start; gap:11px; min-width:0; padding:14px; background:rgba(255,250,241,.075); border:1px solid rgba(255,248,232,.15); border-radius:15px; backdrop-filter:blur(8px); }
.login-feature-icon { display:grid; place-items:center; width:34px; height:34px; flex:none; color:#f4d7a8; background:rgba(250,224,179,.1); border:1px solid rgba(250,224,179,.16); border-radius:10px; }
.login-feature-icon svg { width:17px; height:17px; }
.login-feature h2 { margin:0 0 4px; color:#fffaf2; font-size:12px; line-height:1.4; }
.login-feature p { margin:0; color:#d9c8cd; font-size:10px; line-height:1.65; }
.login-footnote { margin:0; color:#bd9da6; font-family:Georgia,"Yu Mincho",serif; font-size:11px; letter-spacing:.055em; }
.login-main { display:grid; place-items:center; min-width:0; padding:42px clamp(28px,5vw,72px); background:radial-gradient(circle at 90% 2%,#fff 0,transparent 31%),#f4ede5; }
.login-card { width:min(100%,480px); padding:clamp(25px,3vw,39px); background:var(--login-paper); border:1px solid rgba(80,44,48,.1); border-radius:24px; box-shadow:0 24px 70px rgba(55,28,39,.13); }
.login .eyebrow { margin:0; color:#8b3245; font-size:9px; font-weight:850; letter-spacing:.15em; }
.login-card > h2 { margin:5px 0 10px; color:#35262b; font-size:30px; line-height:1.25; letter-spacing:-.04em; }
.login-description { margin:0 0 22px; color:#6f6266; font-size:11px; line-height:1.8; }
.login-form { display:grid; gap:14px; }
.login-form label { color:#44363a; font-size:11px; }
.login-form input { margin:6px 0 0; min-height:48px; padding:10px 12px; background:#fff; border-color:#d9cbc9; border-radius:12px; font-size:13px; }
.login-form input:focus { outline:0; border-color:#8f3247; box-shadow:0 0 0 3px rgba(124,34,54,.12); }
.entry-code-field { display:grid; }
.entry-code-field .field-hint,.sms-step .field-hint { margin-top:6px; }
.login .field-hint { color:#8b7e80; font-size:9px; line-height:1.5; }
.provider-buttons { display:grid; gap:9px; }
.provider { display:grid; grid-template-columns:40px 1fr 40px; min-height:49px; border-radius:12px; text-align:center; font-size:12px; }
.provider::after { content:""; }
.provider-google { color:#41373a; background:#fff; border-color:#d7ccca; }
.provider-google:hover { background:#fbf7f4; border-color:#bfaeaa; }
.provider-line { color:#fff; background:#117b49; border-color:#117b49; }
.provider-line:hover { color:#fff; background:#0d6a3e; border-color:#0d6a3e; }
.provider-mark { display:grid; place-items:center; width:29px; height:29px; border-radius:8px; font-weight:900; }
.provider-mark.google { color:#8c263c; background:#f8edf0; font:800 17px/1 Arial,sans-serif; }
.provider-mark.line { color:#117b49; background:#fff; font-size:7px; letter-spacing:-.04em; }
.provider-divider { display:flex; align-items:center; gap:10px; color:#96898b; font-size:9px; }
.provider-divider::before,.provider-divider::after { content:""; height:1px; flex:1; background:#e6dcda; }
.sms-auth { display:grid; gap:12px; padding:15px; background:#faf6f1; border:1px solid #e9ded9; border-radius:15px; }
.sms-heading { display:flex; align-items:center; gap:10px; }
.sms-heading h3,.login-assurance h3 { margin:0; font-size:11px; }
.sms-heading p { margin:2px 0 0; color:#806f73; font-size:9px; }
.sms-mark { display:grid; place-items:center; width:38px; height:32px; flex:none; color:#7d263b; background:#f1e2e4; border-radius:9px; font-size:8px; font-weight:900; letter-spacing:.04em; }
.sms-privacy { margin:0; color:#786a6d; font-size:9px; line-height:1.65; }
.sms-privacy a { color:#74283b; text-underline-offset:2px; }
.sms-step { display:grid; }
.sms-start,.sms-verify { width:100%; min-height:45px; margin-top:12px; color:#fff; background:var(--login-wine); border-color:var(--login-wine); }
.sms-start:hover,.sms-verify:hover { color:#fff; background:#4d1223; border-color:#4d1223; }
.sms-status { margin:8px 0 0; color:#6e5f62; font-size:9px; line-height:1.6; }
.sms-error { margin:0; padding:8px 10px; background:#fff0f1; border-radius:8px; line-height:1.5; }
.sms-secondary-actions { display:flex; justify-content:space-between; gap:12px; margin-top:10px; }
.sms-resend,.sms-change { padding:3px 0; color:#7b2c40; font-size:9px; text-decoration:underline; text-underline-offset:3px; }
.auth-unavailable { padding:12px; color:#715b61; background:#f5efeb; border-radius:10px; line-height:1.65; }
.login-assurance { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; margin-top:20px; padding:14px; color:#67585c; background:#f8f3ed; border:1px solid #e8dcd6; border-radius:14px; }
.login-assurance-icon { display:grid; place-items:center; width:30px; height:30px; color:#77273b; background:#f0e1e3; border-radius:9px; }
.login-assurance-icon svg { width:15px; height:15px; }
.login-assurance p { margin:5px 0 0; font-size:9px; line-height:1.7; }
.login-assurance a { display:inline-block; margin-top:7px; color:#76283c; font-size:9px; font-weight:750; text-underline-offset:3px; }
.login-demo { margin-top:3px; padding:15px; background:#fffaf1; border:1px solid #eadfcf; border-radius:14px; }
.login-demo > b { color:#49383d; font-size:11px; }
.login-demo p { margin:4px 0 11px; color:#796c6e; font-size:9px; line-height:1.65; }
.demo-start { display:flex; flex-wrap:wrap; gap:7px; }
.demo-user { color:#782a3f; padding:7px 10px; background:#fff; border-color:#d9c9c7; font-size:10px; }
.demo-entry { width:100%; min-height:42px; color:#fff; background:#6f263b; border-color:#6f263b; font-size:10px; text-decoration:none; }
.demo-entry:hover { color:#fff; background:#581a2d; border-color:#581a2d; }
.legal-links { margin:15px 2px 0; color:#8e8183; font-size:9px; line-height:1.7; }
.legal-links a { color:#6e283a; text-underline-offset:3px; }

@media (max-width:1180px) {
  .workspace { grid-template-columns:225px minmax(0,1fr) 292px; }
  .desk.nav-collapsed .workspace { grid-template-columns:0 minmax(0,1fr) 292px; }
  .desk.details-collapsed .workspace { grid-template-columns:225px minmax(0,1fr) 0; }
  .desk.nav-collapsed.details-collapsed .workspace { grid-template-columns:0 minmax(0,1fr) 0; }
  .nav-conversations,.workspace-label { min-width:199px; }
}
@media (max-width:960px) {
  .workspace,.desk.details-collapsed .workspace { grid-template-columns:220px minmax(0,1fr); }
  .desk.nav-collapsed .workspace,.desk.nav-collapsed.details-collapsed .workspace { grid-template-columns:0 minmax(0,1fr); }
  .details { position:absolute; z-index:4; right:0; top:0; bottom:0; width:min(326px,88vw); box-shadow:-12px 0 36px rgba(75,48,36,.13); }
  .desk.details-collapsed .details { display:none; }
}
@media (max-width:900px) {
  .login { grid-template-columns:1fr; }
  .login-intro { min-height:auto; padding:42px clamp(28px,7vw,64px); }
  .login-lead h1 { font-size:clamp(38px,8vw,58px); }
  .login-main { padding:34px 24px 42px; }
  .login-card { width:min(100%,520px); }
}
@media (max-width:720px) {
  .desk { grid-template-rows:56px minmax(0,1fr); }
  .topbar { display:flex; gap:7px; padding:0 9px; }
  .brand { font-size:17px; gap:7px; }
  .brand-mark { width:28px; height:28px; }
  .global-search { display:flex; justify-content:center; width:35px; min-width:35px; min-height:35px; margin-left:auto; padding:0; }
  .global-search span:nth-child(2),.global-search kbd,.account .connection,.install-button span:last-child { display:none; }
  .account { gap:6px; }
  .install-button { width:35px; min-height:35px; padding:0; justify-content:center; }
  .demo-badge { display:none; }
  .workspace,.desk.nav-collapsed .workspace,.desk.details-collapsed .workspace,.desk.nav-collapsed.details-collapsed .workspace { grid-template-columns:minmax(0,1fr); }
  .sidebar,.desk.nav-collapsed .sidebar { display:none; visibility:visible; }
  .desk.nav-open .sidebar { display:flex; position:absolute; z-index:6; left:0; top:0; bottom:0; width:min(295px,88vw); padding:16px 12px 9px; box-shadow:14px 0 40px rgba(61,39,30,.22); }
  .desk.nav-open .workspace::after { content:""; position:absolute; z-index:5; inset:0; background:rgba(59,38,30,.28); }
  .details { top:0; }
  .conversation-head { min-height:70px; padding:10px 10px; gap:8px; }
  .conversation-titles h1 { font-size:17px; }
  .conversation-titles p { font-size:9px; }
  .conversation-kind { font-size:7px; }
  .room-symbol,.avatar.large { width:39px; height:39px; border-radius:13px; }
  .room-symbol svg { width:18px; height:18px; }
  .header-actions { gap:3px; }
  .header-actions .icon { width:30px; height:33px; }
  .header-actions svg { width:15px; height:15px; }
  .announcement { padding:7px 10px; }
  .announcement-copy { display:grid; gap:1px; }
  .announcement-copy b { font-size:8px; }
  .announcement-copy span { font-size:9px; }
  #messages { padding:14px 11px 20px; }
  .message { gap:8px; padding:8px 6px; margin-inline:-4px; }
  .message > .avatar { width:31px; height:31px; border-radius:10px; font-size:13px; }
  .message-actions { top:2px; right:3px; opacity:1; }
  .message-actions button:not(:last-child) { display:none; }
  .reaction-add { opacity:1; }
  .message header { gap:5px; padding-right:30px; }
  .message-text { font-size:12px; }
  .composer-area { padding:7px 9px max(6px,env(safe-area-inset-bottom)); }
  .composer textarea { min-height:51px; font-size:12px; }
  .send-hint,#room-scope { display:none; }
  .compose-tools { gap:1px; }
  .compose-tools .icon { width:30px; }
  .jump-latest { right:12px; bottom:114px; }
  .toast { top:65px; right:10px; bottom:auto; pointer-events:none; }
  dialog { max-height:90dvh; }
  .dialog-body { padding:15px; }
  .avatar-picker { grid-template-columns:repeat(4,1fr); }
  .login-intro { padding:25px 20px 29px; gap:23px; }
  .login-brand { gap:10px; font-size:22px; }
  .login-brand-icon { width:43px; height:43px; border-radius:12px; }
  .login-kicker { margin-bottom:8px!important; font-size:9px!important; }
  .login-lead h1 { margin-bottom:13px; font-size:34px; line-height:1.15; white-space:normal; }
  .login-lead p { font-size:11px; line-height:1.75; }
  .login-features { gap:7px; }
  .login-feature { display:grid; gap:7px; padding:10px; }
  .login-feature-icon { width:29px; height:29px; }
  .login-feature h2 { font-size:10px; }
  .login-feature p { font-size:9px; line-height:1.55; }
  .login-footnote { font-size:9px; }
  .login-main { align-items:start; padding:20px 12px 32px; }
  .login-card { padding:23px 18px; border-radius:19px; }
  .login-card > h2 { font-size:25px; }
  .login-description { margin-bottom:18px; }
  .sms-secondary-actions { flex-wrap:wrap; }
  .onboarding-card { padding:21px 17px; }
  .onboarding-card h1 { font-size:21px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; }
}
