:root {
  --rail-width: 66px;
  --channel-width: 222px;
  --nav-width: calc(var(--rail-width) + var(--channel-width));
  --topbar-height: 54px;
  --plum-dark: #321b36;
  --plum-sidebar: #48274c;
  --plum-light: #f4eef6;
  --ink: #27222a;
  --muted: #6a6470;
  --line: #e2dfe4;
  --paper: #faf9fb;
  --blue: #704078;
}
#topbar {
  position:fixed; inset:0 0 auto; z-index:12; height:var(--topbar-height);
  display:flex; gap:14px; padding:0 20px 0 15px;
  background:var(--plum-dark); border:0; color:#fbf7fc;
}
.brand-wrap {position:relative; flex:none}
.snack-brand {display:flex; align-items:center; gap:9px; min-height:41px; color:white; border-radius:7px}
.snack-brand img {display:block; border-radius:9px}
.snack-brand b {font:700 23px/1 "Inter","Microsoft YaHei",sans-serif; letter-spacing:-.055em}
.snack-brand span {font-size:13px; font-weight:550; color:#e7d5eb; padding-left:8px; border-left:1px solid #725977}
.brand-popup {
  display:none; position:absolute; left:0; top:100%; z-index:15; padding:10px 14px;
  width:max-content; max-width:min(360px,90vw); color:#fff; background:#241c28;
  border:1px solid #58495c; border-radius:7px; box-shadow:0 6px 20px #2013232c; font-size:14px;
}
.brand-popup strong {color:#ffdaa3; font-weight:800}
.brand-wrap:not(.popup-dismissed):is(:hover,:focus-within) .brand-popup {display:block}
.header-nav {display:flex; gap:9px; align-items:center; font-size:13px; color:#e7d9e9; margin-left:3px}
#topbar .top-icon,#topbar .top-login {color:#f4ecf5}
#topbar .top-icon:hover,#topbar .top-login:hover {background:#ffffff20}
#topbar .search-trigger {
  height:33px; min-width:0; flex:1; max-width:565px; margin:0 auto;
  padding:0 11px; border:1px solid #ffffff26; border-radius:7px;
  color:#faf5fa; background:#604663; text-align:left; font-size:14px;
}
#topbar .search-trigger:hover {background:#705773}
#topbar .search-trigger kbd {margin-left:auto; color:#f4ebf5; background:#ffffff12; border-color:#ffffff35}
#topbar .top-end {margin-left:0; justify-content:flex-end; min-width:36px}
#topbar .top-avatar {border:1px solid #d4bdd5; border-radius:9px; width:32px; height:32px; background:#ead1ee; color:#50295a}
#sidebar {
  inset:var(--topbar-height) auto 0 0; display:flex; flex-direction:row; width:var(--nav-width);
  z-index:7; background:var(--plum-sidebar); color:#f1e7f3; overflow:hidden;
}
.app-rail {display:flex; flex-direction:column; gap:8px; flex:0 0 var(--rail-width); align-items:stretch; padding:13px 5px; background:#39203d}
.rail-item {display:grid; place-items:center; justify-content:center; gap:2px; color:#e9d8ed; font-size:12px; line-height:18px}
.rail-icon {display:grid; width:38px; height:35px; place-items:center; border-radius:10px}
.rail-item:hover .rail-icon {background:#ffffff1a}
.rail-item[aria-current=page] {color:white; font-weight:650}
.rail-item[aria-current=page] .rail-icon {background:#795480; box-shadow:inset 0 0 0 1px #ffffff22}
.room-unread,.room-shortcut .room-unread {display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:19px;height:18px;padding:0 5px;border-radius:12px;background:#f0d5f2;color:#54295e;font:650 11px/1 "Inter","Microsoft YaHei",sans-serif}
.room-shortcut .room-unread {margin-left:auto}
.room-shortcut.has-unread b,.feed-row.has-unread .feed-copy b {font-weight:720}
.room-shortcut.has-unread:not(.current) {color:white}
.rail-icon {position:relative}
.rail-icon>.room-unread {position:absolute;right:-6px;top:-4px;border:1px solid #39203d}
.feed-open>.room-unread {align-self:center;margin-left:auto}
.channel-sidebar {display:flex; flex-direction:column; width:var(--channel-width); min-width:0; flex:1}
.channel-workspace {display:flex; align-items:center; gap:10px; padding:16px 13px; border-bottom:1px solid #ffffff22}
.workspace-tile {display:grid; width:31px; height:32px; flex:none; place-items:center; border-radius:8px; background:#e4c9e8; color:#512d58}
.channel-workspace>div {min-width:0; display:grid; gap:1px}
.channel-workspace small {color:#d7bfdc; font-size:12px}
.channel-workspace b {font-size:16px; font-weight:670; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.nav-scroll {padding:10px 8px 18px; scrollbar-color:#8d7092 transparent}
.channel-overview,.channel-action {
  display:flex; align-items:center; gap:9px; width:100%; padding:7px 9px;
  min-height:34px; border-radius:5px; font-size:14px; text-align:left; color:#f1e6f3;
}
.channel-overview:hover,.channel-action:hover,.channel-heading-toggle:hover,.channel-heading-title:hover {background:#ffffff12; color:white}
.channel-overview[aria-current=page],.channel-action[aria-current=page],.channel-heading-title[aria-current=page],.dir-link.current,.room-shortcut.current {background:#f0dbf0; color:#422344; font-weight:620}
.channel-group {margin:16px 0 0}
.channel-heading {display:flex; align-items:center; justify-content:space-between; gap:4px; padding:0 2px 3px}
.channel-heading-toggle {display:grid; flex:none; width:20px; height:28px; place-items:center; border-radius:4px; color:#c9b1cf}
.channel-heading-title {display:block; flex:1; min-width:0; overflow:hidden; padding:5px 6px; border-radius:4px; color:#e1cbe6; text-align:left; text-overflow:ellipsis; white-space:nowrap; font-size:13px; font-weight:600}
.channel-heading-title[aria-current=page] {color:#422344}
.channel-heading>.nav-add {display:grid; flex:none; width:26px; height:28px; place-items:center; border-radius:4px; color:#eedcf0}
.channel-heading>.nav-add:hover {background:#ffffff18; color:white}
.dir-row {min-height:31px; padding-left:calc(1px + 11px * var(--depth))}
.dir-link {height:30px; color:#efe2f2}
.dir-pad,.dir-fold {width:15px}
.dir-fold,.dir-link svg,.room-shortcut span {color:#c9b1cf}
.dir-link.current svg,.room-shortcut.current span {color:#714477}
.room-shortcut {padding:5px 8px; min-height:30px; color:#ecdeee; font-size:14px; gap:8px}
.case-pin {display:inline-grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:5px;background:transparent;color:#796c80;cursor:pointer}
.case-pin:hover,.case-pin:focus-visible {color:#64376f;background:#85628d1c}
.case-pin[aria-pressed="true"] {color:#704078}
.case-pin[aria-pressed="true"] path:first-child {fill:currentColor}
.case-pin[aria-busy="true"] {opacity:.55;cursor:progress}
.personal-room-row {position:relative;min-width:0}
.personal-room-row .room-shortcut {padding-left:32px}
.personal-room-row .case-pin {position:absolute;left:2px;top:50%;transform:translateY(-50%);color:#c9b1cf}
.personal-room-row .case-pin[aria-pressed="true"],.personal-room-row .case-pin:hover {color:#fff}
.personal-room-row .room-shortcut.current + .case-pin {color:#704078}
.personal-room-row .case-hash {font:16px/1 Consolas,monospace}
.nav-empty {font-size:12px; color:#d5bfd9; padding:6px 10px}
.account-box {margin:0 9px; padding:10px 3px; border-color:#ffffff26}
.account-box small {color:#d4bed9}
.account-box b,.account-action {color:#f7eef9}
.side-avatar {width:31px; height:31px; border-radius:8px; color:#4a2b50; background:#e8d3ed}
.workspace {padding-top:var(--topbar-height); margin-left:var(--nav-width); min-height:100dvh}
#shade {top:var(--topbar-height); z-index:6}
#main.detail-main {height:calc(100dvh - var(--topbar-height)); padding:0}
#main.notes-main {height:calc(100dvh - var(--topbar-height));padding:0;overflow:hidden}
.notes-frame {display:block;width:100%;height:100%;border:0;background:var(--paper)}
.detail-message-list {row-gap:32px}
.detail-message-author {margin-bottom:3px}
@media(max-width:760px){.detail-message-list{row-gap:25px}}
.page-frame {padding:28px clamp(17px,2.45vw,36px) 36px}
.page-heading {margin-bottom:20px}
.btn.primary {background:#6d3e77; border-color:#63346b; box-shadow:none}
.btn.primary:hover {background:#5c3165}
.map-root {background:#513254; border-color:#432748}
.node-symbol.root {background:#714f74; color:#ffdfae}
.home-feed-switch button[aria-pressed=true],.filter-tabs button[aria-pressed=true],.segment button[aria-pressed=true] {color:#61366b; background:#f3edf5}
.home-view .panel-bar,.inbox-view .panel-bar {min-height:54px}
.home-view .section-title>svg,.text-action {color:#775480}
.feed-row:hover,.inbox-view .feed-row:hover {background:#f8f5f9}
.feed-symbol.purple {background:#f2e6f4; color:#865493}
.home-panels {gap:16px}
.signed-out #sidebar,.signed-out #shade {display:none}
.signed-out .workspace {margin-left:0}
.signed-out #topbar {justify-content:space-between}
.signed-out .access-card {margin:clamp(50px,14vh,140px) auto 0; width:min(440px,calc(100% - 34px)); border-color:#ded4e2}
@media(min-width:881px) {
  .nav-collapsed #sidebar {transform:none; width:var(--rail-width)}
  .nav-collapsed .channel-sidebar {display:none}
  .nav-collapsed .workspace {margin-left:var(--rail-width)}
  .signed-out.nav-collapsed .workspace {margin-left:0}
}
@media(min-width:881px) and (max-width:1180px) {
  :root {--rail-width:58px; --channel-width:184px}
  .page-frame {padding-inline:17px}
  .channel-workspace {padding-inline:9px}
}
@media(max-width:880px) {
  :root {--rail-width:58px; --channel-width:223px}
  #sidebar {width:var(--nav-width)}
  .workspace {margin-left:0}
  #topbar {padding-inline:10px; gap:9px}
  .header-nav {order:-1; margin:0}
  .header-location {display:none}
  #topbar .search-trigger {margin-left:auto; margin-right:0; max-width:325px}
}
@media(max-width:640px) {
  :root {--topbar-height:52px}
  .page-frame {padding:20px 12px 28px}
  .snack-brand {gap:6px}
  .snack-brand img {width:26px; height:26px}
  .snack-brand b {font-size:21px}
  .snack-brand span {font-size:12px; padding-left:6px}
  #topbar .search-trigger {flex:0 0 34px; justify-content:center; padding:0; background:transparent; border:0}
  #topbar .search-trigger span,#topbar .search-trigger kbd {display:none}
  .brand-popup {font-size:13px; left:-26px}
}
.profile-device-settings {grid-column:1}
.profile-device-list {padding:0 20px 10px}
.profile-device-row {display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 0; border-bottom:1px solid #e9edf4}
.profile-device-row>div {min-width:0}
.profile-device-row h3 {font-size:15px; font-weight:620}
.profile-device-status {margin-top:3px; color:var(--muted); font-size:13px; line-height:1.5}
.profile-device-row .btn {flex:none; white-space:nowrap}
.profile-device-feedback {padding-top:12px; color:#995735; font-size:13px}
@media(max-width:520px) {
  .profile-device-list {padding-inline:15px}
  .profile-device-row {align-items:flex-start; flex-direction:column; gap:10px}
  .profile-device-row .btn {width:100%}
}
