Files
rhema-together/web/app/assets/css/main.css
T
vhaudiquet acc545ede7 feat(web): color the file viewer with highlight.js
The viewer rendered every file as plain text, so keywords, strings, and
comments in Rust, TypeScript, and the rest read as one color. Replace
the hand-written scanner explored for this with highlight.js, pinned to
the seventeen languages the viewer can open, so the client bundle stays
near 28KB gzip and unknown files still render as escaped text.

The output is class names only. The .hljs-* classes map onto the
--syntax-* tokens from the palette, so light and dark follow the
existing media query and no color bypasses the stylesheet.
2026-12-01 19:33:16 +01:00

2701 lines
45 KiB
CSS

@font-face {
font-family: "FiraCode Nerd Font Mono";
src: url("../fonts/FiraCodeNerdFontMono-Regular.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "FiraCode Nerd Font Mono";
src: url("../fonts/FiraCodeNerdFontMono-Bold.woff2") format("woff2");
font-weight: 700;
font-style: normal;
font-display: swap;
}
:root {
color-scheme: light dark;
--bg: #f7f6f3;
--surface: #ffffff;
--surface-2: #f1efe9;
--border: #e4e0d8;
--border-strong: #d3cec3;
--text: #1f1d1a;
--muted: #736d63;
--faint: #9a9388;
--accent: #2f6f5e;
--accent-soft: #e7f1ed;
--danger: #a33a2f;
--warn: #8a6519;
--ok: #2f6f5e;
--on-accent: #ffffff;
--overlay: rgba(31, 29, 26, 0.4);
--member-1: #3f6f5a;
--member-2: #8a5a2b;
--member-3: #4f5f8f;
--member-4: #8f4f5a;
--member-5: #6a5a8f;
--member-6: #2f6f6f;
--member-7: #7a6a2f;
--member-8: #5a6a3f;
--syntax-keyword: #6a5a8f;
--syntax-string: #3f6f5a;
--syntax-number: #8a5a2b;
--syntax-def: #2f6f6f;
--syntax-type: #4f5f8f;
--syntax-tag: #8f4f5a;
--syntax-attr: var(--syntax-type);
--syntax-comment: var(--faint);
--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--font-mono: "FiraCode Nerd Font Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
--fs-small: 12px;
--fs-meta: 13px;
--fs-ui: 14px;
--fs-code: 13px;
--fs-section: 16px;
--fs-title: 20px;
--lh-body: 1.5;
--lh-heading: 1.2;
--sp-1: 4px;
--sp-2: 8px;
--sp-3: 12px;
--sp-4: 16px;
--sp-5: 20px;
--sp-6: 24px;
--sp-8: 32px;
--sp-10: 40px;
--sp-12: 48px;
--r-card: 10px;
--r-control: 8px;
--r-avatar: 999px;
--sidebar-w: 232px;
--topbar-h: 56px;
}
@media (prefers-color-scheme: dark) {
:root {
--bg: #12110f;
--surface: #1a1917;
--surface-2: #22201d;
--border: #272521;
--border-strong: #3a3733;
--text: #f2f0ec;
--muted: #a49d92;
--faint: #7d766c;
--accent: #58a58c;
--accent-soft: #1e2f2a;
--danger: #d07366;
--warn: #c9a45c;
--ok: #58a58c;
--on-accent: #12110f;
--overlay: rgba(0, 0, 0, 0.62);
--syntax-keyword: #b9a8dd;
--syntax-string: #8cc4aa;
--syntax-number: #d9b37c;
--syntax-def: #7fc4c4;
--syntax-type: #a3b1e0;
--syntax-tag: #d99aa5;
}
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html,
body,
#__nuxt {
height: 100%;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: var(--font-sans);
font-size: var(--fs-ui);
line-height: var(--lh-body);
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
h1,
h2,
h3,
p {
margin: 0;
}
h1,
h2,
h3 {
font-weight: 600;
line-height: var(--lh-heading);
}
h1 {
font-size: var(--fs-title);
}
h2 {
font-size: var(--fs-section);
}
h3 {
font-size: var(--fs-ui);
}
a {
color: var(--accent);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
button,
input,
textarea,
select {
font: inherit;
color: inherit;
}
button {
cursor: pointer;
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
::selection {
background: var(--accent-soft);
color: var(--text);
}
.mono {
font-family: var(--font-mono);
}
.muted {
color: var(--muted);
}
.faint {
color: var(--faint);
}
.meta {
font-size: var(--fs-meta);
color: var(--muted);
}
.small {
font-size: var(--fs-small);
}
.page {
width: 100%;
max-width: 880px;
margin: 0 auto;
padding: var(--sp-10) var(--sp-8) var(--sp-12);
}
.page-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--sp-4);
margin-bottom: var(--sp-6);
}
.page-title {
font-size: var(--fs-title);
}
.page-sub {
margin-top: var(--sp-1);
color: var(--muted);
font-size: var(--fs-meta);
}
.section {
margin-bottom: var(--sp-10);
}
.section-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--sp-4);
margin-bottom: var(--sp-3);
}
.section-title {
font-size: var(--fs-section);
}
.hint {
color: var(--muted);
font-size: var(--fs-meta);
}
.empty {
color: var(--muted);
font-size: var(--fs-ui);
padding: var(--sp-6) 0;
}
.form {
display: flex;
flex-direction: column;
gap: var(--sp-4);
}
.field {
display: flex;
flex-direction: column;
gap: var(--sp-1);
}
.field-label {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: var(--sp-2);
color: var(--muted);
font-size: var(--fs-meta);
font-weight: 500;
}
.field-optional {
color: var(--faint);
font-weight: 400;
}
.input,
.select,
.textarea {
width: 100%;
min-height: 36px;
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: var(--r-control);
padding: var(--sp-2) var(--sp-3);
color: var(--text);
font-size: var(--fs-ui);
}
.textarea {
resize: vertical;
line-height: var(--lh-body);
}
.input::placeholder,
.textarea::placeholder {
color: var(--faint);
}
.input:focus,
.select:focus,
.textarea:focus {
border-color: var(--accent);
outline: 2px solid var(--accent);
outline-offset: -1px;
}
.input:disabled,
.textarea:disabled {
background: var(--surface-2);
color: var(--faint);
}
.model-trigger {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--sp-3);
width: 100%;
min-height: 36px;
padding: var(--sp-2) var(--sp-3);
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: var(--r-control);
color: var(--text);
font-size: var(--fs-ui);
text-align: left;
}
.model-trigger:hover:not(:disabled) {
background: var(--surface-2);
}
.model-trigger:focus-visible {
border-color: var(--accent);
outline: 2px solid var(--accent);
outline-offset: -1px;
}
.model-trigger:disabled {
background: var(--surface-2);
color: var(--faint);
cursor: not-allowed;
}
.model-trigger > svg {
flex: none;
color: var(--muted);
}
.model-trigger:disabled > svg {
color: var(--faint);
}
.model-trigger-value {
display: flex;
align-items: baseline;
gap: var(--sp-2);
min-width: 0;
}
.model-trigger-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.model-trigger-note {
flex: none;
color: var(--muted);
font-size: var(--fs-small);
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--sp-2);
height: 32px;
padding: 0 var(--sp-3);
border: 1px solid var(--border-strong);
border-radius: var(--r-control);
background: var(--surface);
color: var(--text);
font-size: var(--fs-ui);
font-weight: 500;
line-height: 1;
white-space: nowrap;
}
.btn:hover:not(:disabled) {
background: var(--surface-2);
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-primary {
background: var(--accent);
border-color: var(--accent);
color: var(--on-accent);
}
.btn-primary:hover:not(:disabled) {
background: var(--accent);
filter: brightness(0.96);
}
.btn-danger {
color: var(--danger);
border-color: var(--border-strong);
background: transparent;
}
.btn-danger:hover:not(:disabled) {
background: color-mix(in srgb, var(--danger) 8%, var(--surface));
}
.btn-quiet {
border-color: transparent;
background: transparent;
color: var(--muted);
}
.btn-quiet:hover:not(:disabled) {
background: var(--surface-2);
color: var(--text);
}
.btn-sm {
height: 28px;
padding: 0 var(--sp-2);
font-size: var(--fs-meta);
gap: var(--sp-1);
}
.icon-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
padding: 0;
border: 1px solid transparent;
border-radius: var(--r-control);
background: transparent;
color: var(--muted);
line-height: 1;
}
.icon-btn:hover:not(:disabled) {
background: var(--surface-2);
color: var(--text);
}
.icon-btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.form-error {
color: var(--danger);
font-size: var(--fs-meta);
line-height: var(--lh-body);
}
.signin {
display: flex;
flex-direction: column;
gap: var(--sp-4);
}
.signin .dialog-actions {
margin-top: 0;
}
.signin-actions {
display: flex;
flex-wrap: wrap;
gap: var(--sp-2);
}
.signin-link:hover {
text-decoration: none;
}
.signin-code {
display: flex;
flex-direction: column;
gap: var(--sp-1);
}
.signin-code-value {
align-self: flex-start;
padding: var(--sp-2) var(--sp-3);
border: 1px solid var(--border);
border-radius: var(--r-control);
background: var(--surface-2);
font-family: var(--font-mono);
font-size: var(--fs-code);
letter-spacing: 0.08em;
white-space: pre;
}
.form-note {
color: var(--muted);
font-size: var(--fs-meta);
}
.row {
display: flex;
align-items: center;
gap: var(--sp-2);
}
.spread {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--sp-3);
}
.stack {
display: flex;
flex-direction: column;
gap: var(--sp-3);
}
.avatar {
display: inline-grid;
place-items: center;
width: 28px;
height: 28px;
flex: none;
overflow: hidden;
border-radius: var(--r-avatar);
border: 1px solid color-mix(in srgb, var(--member, var(--muted)) 28%, transparent);
background: color-mix(in srgb, var(--member, var(--muted)) 14%, var(--surface));
color: var(--member, var(--muted));
font-size: var(--fs-small);
font-weight: 600;
line-height: 1;
letter-spacing: 0;
}
.avatar-lg {
width: 32px;
height: 32px;
}
.avatar-sm {
width: 24px;
height: 24px;
font-size: var(--fs-small);
}
.avatar-xl {
width: 72px;
height: 72px;
font-size: var(--fs-section);
}
.avatar-img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.avatar-offline {
opacity: 0.45;
}
.member-name {
color: var(--member, var(--muted));
}
@media (prefers-color-scheme: dark) {
.avatar {
color: color-mix(in srgb, var(--member, var(--muted)) 60%, var(--text));
}
.member-name {
color: color-mix(in srgb, var(--member, var(--muted)) 60%, var(--text));
}
}
.dialog-backdrop {
position: fixed;
inset: 0;
z-index: 100;
display: grid;
place-items: center;
padding: var(--sp-4);
background: var(--overlay);
}
.dialog {
width: min(480px, 100%);
max-height: calc(100vh - var(--sp-8));
overflow-y: auto;
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: var(--r-card);
padding: var(--sp-6);
}
.dialog-wide {
width: min(560px, 100%);
}
.dialog-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: var(--sp-4);
margin-bottom: var(--sp-4);
}
.dialog-title {
font-size: var(--fs-section);
}
.dialog-sub {
margin-top: var(--sp-1);
color: var(--muted);
font-size: var(--fs-meta);
}
.dialog-actions {
display: flex;
justify-content: flex-end;
gap: var(--sp-2);
margin-top: var(--sp-6);
}
.model-picker {
display: flex;
flex-direction: column;
gap: var(--sp-3);
}
.model-search {
position: relative;
}
.model-search-icon {
position: absolute;
left: var(--sp-3);
top: 50%;
transform: translateY(-50%);
color: var(--faint);
pointer-events: none;
}
.model-search-input {
padding-left: var(--sp-8);
}
.model-filter-bar {
display: flex;
align-items: center;
gap: var(--sp-4);
}
.model-check {
display: inline-flex;
align-items: center;
gap: var(--sp-2);
color: var(--muted);
font-size: var(--fs-meta);
}
.model-check input {
accent-color: var(--accent);
}
.model-count {
margin-left: auto;
color: var(--faint);
font-size: var(--fs-small);
}
.model-state {
padding: var(--sp-4) 0;
color: var(--muted);
font-size: var(--fs-ui);
}
.model-list {
max-height: min(52vh, 520px);
overflow-y: auto;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
}
.model-row {
display: flex;
width: 100%;
padding: var(--sp-3) var(--sp-2);
border: 0;
border-bottom: 1px solid var(--border);
background: transparent;
color: var(--text);
text-align: left;
cursor: pointer;
}
.model-row:last-child {
border-bottom: 0;
}
.model-row:hover {
background: var(--surface-2);
}
.model-row:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
.model-row-active,
.model-row-active:hover {
background: var(--accent-soft);
}
.model-row-body {
display: flex;
flex: 1;
flex-direction: column;
gap: var(--sp-1);
min-width: 0;
}
.model-row-head {
display: flex;
align-items: center;
gap: var(--sp-2);
}
.model-row-title {
font-size: var(--fs-ui);
font-weight: 500;
}
.model-row-check {
flex: none;
margin-left: auto;
color: var(--accent);
}
.model-row-id {
color: var(--muted);
font-family: var(--font-mono);
font-size: var(--fs-small);
overflow-wrap: anywhere;
}
.model-row-desc {
display: -webkit-box;
overflow: hidden;
color: var(--muted);
font-size: var(--fs-meta);
line-height: var(--lh-body);
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.model-row-facts {
display: flex;
flex-wrap: wrap;
gap: var(--sp-1) var(--sp-3);
color: var(--muted);
font-size: var(--fs-small);
}
.model-fact {
white-space: nowrap;
}
.model-fact-accent {
color: var(--accent);
}
.model-fact-muted {
color: var(--faint);
}
.model-error {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: var(--sp-3);
padding: var(--sp-4) var(--sp-2);
}
.model-empty {
padding: var(--sp-6) var(--sp-2);
color: var(--muted);
font-size: var(--fs-ui);
text-align: center;
}
.code-block {
margin: 0;
padding: var(--sp-2);
background: var(--surface-2);
border: 1px solid var(--border);
border-radius: var(--r-control);
font-family: var(--font-mono);
font-size: var(--fs-code);
line-height: var(--lh-body);
overflow: auto;
white-space: pre;
tab-size: 2;
}
.code-block,
.viewer-code,
.git-strip pre,
.tool-args,
.tool-name,
.terminal-host .xterm-rows {
font-variant-ligatures: contextual common-ligatures;
font-feature-settings: "calt" 1, "liga" 1;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.app-shell {
display: flex;
min-height: 100vh;
}
.sidebar {
width: var(--sidebar-w);
flex: 0 0 var(--sidebar-w);
position: sticky;
top: 0;
height: 100vh;
display: flex;
flex-direction: column;
border-right: 1px solid var(--border);
background: var(--surface);
}
.sidebar-top {
padding: var(--sp-4) var(--sp-3) var(--sp-2);
}
.sidebar-brand {
display: flex;
align-items: center;
gap: var(--sp-2);
padding: 0 var(--sp-2);
color: var(--text);
font-size: var(--fs-ui);
font-weight: 600;
letter-spacing: 0;
}
.sidebar-brand:hover {
text-decoration: none;
}
.sidebar-brand-mark {
display: block;
width: 26px;
height: 26px;
flex: none;
object-fit: contain;
}
.sidebar-label {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--sp-3) var(--sp-2) var(--sp-1);
color: var(--faint);
font-size: var(--fs-small);
font-weight: 500;
}
.sidebar-rooms {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: 0 var(--sp-2);
}
.sidebar-room {
display: block;
padding: var(--sp-2) var(--sp-2);
border-radius: var(--r-control);
color: var(--text);
font-size: var(--fs-meta);
line-height: var(--lh-body);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sidebar-room:hover {
background: var(--surface-2);
text-decoration: none;
}
.sidebar-room.router-link-active {
background: var(--accent-soft);
color: var(--accent);
}
.sidebar-bottom {
padding: var(--sp-2);
border-top: 1px solid var(--border);
display: flex;
flex-direction: column;
gap: var(--sp-1);
}
.sidebar-link {
display: flex;
align-items: center;
gap: var(--sp-2);
width: 100%;
padding: var(--sp-2);
border: 0;
border-radius: var(--r-control);
background: transparent;
color: var(--muted);
font-size: var(--fs-meta);
text-align: left;
}
.sidebar-link:hover {
background: var(--surface-2);
color: var(--text);
text-decoration: none;
}
.sidebar-account {
display: flex;
align-items: center;
gap: var(--sp-2);
padding: var(--sp-2);
min-width: 0;
}
.sidebar-account-link {
display: flex;
align-items: center;
gap: var(--sp-2);
flex: 1;
min-width: 0;
color: var(--text);
}
.sidebar-account-link:hover {
text-decoration: none;
}
.sidebar-account-link:hover .sidebar-account-name {
color: var(--accent);
}
.sidebar-account-name {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: var(--fs-meta);
}
.main {
flex: 1;
min-width: 0;
min-height: 100vh;
}
.auth-shell {
min-height: 100vh;
display: grid;
place-items: center;
padding: var(--sp-6) var(--sp-4);
}
.auth-panel {
width: min(400px, 100%);
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--r-card);
padding: var(--sp-6);
}
.auth-brand {
display: flex;
align-items: center;
gap: var(--sp-2);
margin-bottom: var(--sp-6);
font-weight: 600;
}
.auth-title {
font-size: var(--fs-title);
margin-bottom: var(--sp-1);
}
.auth-note {
color: var(--muted);
font-size: var(--fs-meta);
margin-bottom: var(--sp-6);
}
.auth-footer {
margin-top: var(--sp-6);
padding-top: var(--sp-4);
border-top: 1px solid var(--border);
color: var(--muted);
font-size: var(--fs-meta);
}
.room-shell {
display: flex;
flex-direction: column;
height: 100vh;
min-width: 0;
overflow: hidden;
}
.room-topbar {
height: var(--topbar-h);
flex: 0 0 var(--topbar-h);
display: flex;
align-items: center;
gap: var(--sp-3);
padding: 0 var(--sp-4);
border-bottom: 1px solid var(--border);
background: var(--bg);
}
.room-name {
font-size: var(--fs-title);
font-weight: 600;
line-height: var(--lh-heading);
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.room-topbar-spacer {
flex: 1;
min-width: var(--sp-2);
}
.presence {
display: flex;
align-items: center;
gap: var(--sp-2);
min-width: 0;
}
.presence-avatars {
display: flex;
align-items: center;
gap: var(--sp-1);
}
.presence-avatars .avatar-btn + .avatar-btn {
margin-left: calc(var(--sp-1) * -1);
}
.avatar-btn {
display: inline-flex;
padding: 0;
border: 0;
border-radius: var(--r-avatar);
background: transparent;
line-height: 0;
cursor: pointer;
}
.avatar-btn:hover .avatar {
box-shadow: 0 0 0 2px var(--accent-soft);
}
.more-people {
padding: 0 var(--sp-1);
border: 0;
background: transparent;
color: var(--muted);
font-size: var(--fs-small);
line-height: var(--lh-body);
}
.more-people:hover {
color: var(--text);
}
.room-body {
flex: 1;
min-height: 0;
display: flex;
}
.chat-column {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
min-height: 0;
}
.chat-scroll {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-anchor: none;
padding: var(--sp-6) var(--sp-4) var(--sp-4);
scrollbar-width: thin;
scrollbar-color: var(--border-strong) transparent;
}
.chat-inner {
width: 100%;
max-width: 760px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: var(--sp-4);
}
.chat-start {
padding-bottom: var(--sp-2);
}
.msg {
min-width: 0;
}
.msg-human {
display: flex;
align-items: flex-start;
gap: var(--sp-3);
}
.msg-human > .avatar {
margin-top: 1px;
}
.msg-body {
flex: 1;
min-width: 0;
}
.msg-head {
display: flex;
align-items: baseline;
gap: var(--sp-2);
margin-bottom: var(--sp-1);
font-size: var(--fs-small);
}
.msg-author {
font-size: var(--fs-small);
font-weight: 600;
}
.msg-time {
color: var(--faint);
font-size: var(--fs-small);
}
.msg-text {
font-size: var(--fs-ui);
line-height: var(--lh-body);
white-space: normal;
overflow-wrap: anywhere;
}
.msg-text > :first-child {
margin-top: 0;
}
.msg-text > :last-child {
margin-bottom: 0;
}
.msg-text p,
.msg-text ul,
.msg-text ol,
.msg-text pre,
.msg-text blockquote,
.msg-text table {
margin: 0 0 var(--sp-2);
}
.msg-text h1,
.msg-text h2,
.msg-text h3,
.msg-text h4,
.msg-text h5,
.msg-text h6 {
margin: var(--sp-3) 0 var(--sp-1);
font-weight: 600;
line-height: var(--lh-heading);
}
.msg-text h1 {
font-size: var(--fs-title);
}
.msg-text h2 {
font-size: var(--fs-section);
}
.msg-text h3,
.msg-text h4,
.msg-text h5,
.msg-text h6 {
font-size: var(--fs-ui);
}
.msg-text ul,
.msg-text ol {
padding-left: var(--sp-5);
}
.msg-text li {
margin: var(--sp-1) 0;
}
.msg-text li > p {
margin: 0;
}
.msg-text blockquote {
padding-left: var(--sp-3);
border-left: 2px solid var(--border-strong);
color: var(--muted);
}
.msg-text blockquote > :last-child {
margin-bottom: 0;
}
.msg-text hr {
margin: var(--sp-3) 0;
border: 0;
border-top: 1px solid var(--border);
}
.msg-text a {
color: var(--accent);
text-decoration: underline;
text-underline-offset: 2px;
}
.msg-text a:hover {
text-decoration-thickness: 2px;
}
.msg-text code {
padding: 0 var(--sp-1);
border-radius: 4px;
background: var(--surface-2);
font-family: var(--font-mono);
font-size: var(--fs-code);
}
.msg-text pre {
padding: var(--sp-2) var(--sp-3);
border: 1px solid var(--border);
border-radius: var(--r-control);
background: var(--surface-2);
overflow-x: auto;
overflow-wrap: normal;
scrollbar-width: thin;
}
.msg-text pre code {
padding: 0;
border-radius: 0;
background: transparent;
font-size: var(--fs-code);
line-height: var(--lh-body);
white-space: pre;
}
.msg-text img {
display: block;
max-width: 100%;
height: auto;
margin: var(--sp-2) 0;
border-radius: var(--r-control);
}
.msg-text table {
display: block;
max-width: 100%;
overflow-x: auto;
border-collapse: collapse;
font-size: var(--fs-meta);
}
.msg-text th,
.msg-text td {
padding: var(--sp-1) var(--sp-2);
border: 1px solid var(--border);
text-align: left;
vertical-align: top;
}
.msg-text th {
background: var(--surface-2);
font-weight: 600;
}
.mention {
color: var(--accent);
font-weight: 600;
}
.msg-agent {
border-left: 2px solid var(--accent);
background: var(--surface);
border-radius: 0 var(--r-card) var(--r-card) 0;
padding: var(--sp-3);
}
.msg-agent-label {
color: var(--accent);
font-size: var(--fs-small);
font-weight: 600;
}
.msg-system {
align-self: center;
max-width: 100%;
color: var(--muted);
font-size: var(--fs-small);
text-align: center;
padding: var(--sp-1) 0;
overflow-wrap: anywhere;
}
.msg-system-danger {
color: var(--danger);
}
.activity {
min-width: 0;
color: var(--muted);
font-size: var(--fs-small);
}
.activity-summary {
cursor: pointer;
padding: var(--sp-1) 0;
color: var(--faint);
line-height: var(--lh-body);
}
.activity-summary:hover {
color: var(--text);
}
.activity-label {
margin-right: var(--sp-1);
color: var(--accent);
font-weight: 600;
}
.activity-result {
color: var(--muted);
}
.activity-state {
color: var(--faint);
}
.activity-state::before,
.activity-error::before {
content: "·";
margin: 0 var(--sp-1);
}
.activity-error {
color: var(--danger);
}
.activity-details {
margin-top: var(--sp-2);
border: 1px solid var(--border);
border-radius: var(--r-card);
background: var(--surface);
padding: var(--sp-3);
display: flex;
flex-direction: column;
gap: var(--sp-2);
}
.activity-draft {
color: var(--muted);
font-size: var(--fs-meta);
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.activity-draft summary {
cursor: pointer;
color: var(--faint);
font-size: var(--fs-small);
}
.activity-foot {
display: flex;
flex-wrap: wrap;
gap: var(--sp-3);
color: var(--faint);
font-size: var(--fs-small);
}
.tool {
border-top: 1px solid var(--border);
padding-top: var(--sp-2);
min-width: 0;
}
.tool-head {
display: flex;
align-items: baseline;
gap: var(--sp-2);
min-width: 0;
font-size: var(--fs-small);
}
.tool-name {
font-family: var(--font-mono);
font-size: var(--fs-code);
color: var(--text);
overflow-wrap: anywhere;
}
.tool-state {
color: var(--faint);
font-size: var(--fs-small);
}
.tool-error {
color: var(--danger);
}
.tool-args {
margin-top: var(--sp-1);
color: var(--muted);
font-family: var(--font-mono);
font-size: var(--fs-small);
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.tool details {
margin-top: var(--sp-1);
}
.tool summary {
cursor: pointer;
color: var(--muted);
font-size: var(--fs-small);
}
.tool-output {
max-height: 240px;
margin-top: var(--sp-1);
overflow: auto;
}
.composer {
flex: 0 0 auto;
padding: var(--sp-3) var(--sp-4) var(--sp-4);
background: var(--bg);
}
.composer-inner {
max-width: 760px;
margin: 0 auto;
border: 1px solid var(--border-strong);
border-radius: var(--r-card);
background: var(--surface);
padding: var(--sp-2);
}
.composer-inner:focus-within {
border-color: var(--accent);
}
.composer-input {
display: block;
width: 100%;
border: 0;
outline: none;
resize: none;
background: transparent;
padding: var(--sp-1) var(--sp-2);
min-height: 28px;
max-height: calc(1.5em * 8);
overflow-y: auto;
font-size: var(--fs-ui);
line-height: var(--lh-body);
overflow-wrap: anywhere;
scrollbar-width: thin;
}
.composer-input::placeholder {
color: var(--faint);
}
.composer-sizer {
position: fixed;
top: -10000px;
left: -10000px;
height: 0;
min-height: 0;
max-height: none;
overflow: hidden;
visibility: hidden;
pointer-events: none;
border: 0;
padding: var(--sp-1) var(--sp-2);
font: inherit;
font-size: var(--fs-ui);
line-height: var(--lh-body);
white-space: pre-wrap;
overflow-wrap: anywhere;
resize: none;
}
.composer-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--sp-2);
padding-top: var(--sp-1);
}
.composer-hint {
color: var(--faint);
font-size: var(--fs-small);
padding-left: var(--sp-2);
}
.composer-buttons {
display: flex;
align-items: center;
gap: var(--sp-1);
}
.room-status {
width: calc(100% - var(--sp-8));
max-width: 760px;
min-height: 18px;
margin: 0 auto var(--sp-1);
display: flex;
flex-direction: column;
gap: 2px;
color: var(--muted);
font-size: var(--fs-small);
}
.room-status-line {
margin: 0;
line-height: 18px;
}
.room-status-error {
color: var(--danger);
}
.new-messages {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: var(--sp-2);
}
.pane-resizer {
flex: 0 0 var(--sp-2);
position: relative;
cursor: col-resize;
touch-action: none;
background: transparent;
}
.pane-resizer::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: calc(50% - 0.5px);
width: 1px;
background: var(--border);
transition: background-color 120ms ease, width 120ms ease, left 120ms ease;
}
.pane-resizer:hover::before,
.pane-resizer:focus-visible::before,
body.pane-resizing .pane-resizer::before {
left: calc(50% - 1px);
width: 2px;
background: var(--accent);
}
.pane-resizer:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
body.pane-resizing,
body.pane-resizing * {
cursor: col-resize !important;
user-select: none !important;
}
.right-pane {
flex: 0 0 var(--pane-width, 44%);
min-width: 380px;
display: flex;
flex-direction: column;
min-height: 0;
background: var(--surface);
container-type: inline-size;
}
.pane-head {
flex: 0 0 44px;
display: flex;
align-items: center;
gap: var(--sp-1);
padding: 0 var(--sp-2);
border-bottom: 1px solid var(--border);
}
.pane-tabs {
display: flex;
align-items: center;
gap: var(--sp-1);
flex: 1;
min-width: 0;
}
.pane-tab {
display: inline-flex;
align-items: center;
gap: var(--sp-1);
height: 28px;
padding: 0 var(--sp-2);
border: 1px solid transparent;
border-radius: var(--r-control);
background: transparent;
color: var(--muted);
font-size: var(--fs-meta);
}
.pane-tab:hover {
background: var(--surface-2);
color: var(--text);
}
.pane-tab.active {
background: var(--accent-soft);
color: var(--accent);
}
.pane-body {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}
.pane-foot {
border-top: 1px solid var(--border);
padding: var(--sp-2) var(--sp-3);
color: var(--faint);
font-size: var(--fs-small);
}
.files {
flex: 1;
min-height: 0;
display: grid;
grid-template-columns: clamp(140px, var(--files-browser-width, 34%), 55%) var(--sp-2) minmax(0, 1fr);
grid-template-rows: minmax(0, 1fr);
}
.files-browser {
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
container-type: inline-size;
}
.files-resizer {
position: relative;
cursor: col-resize;
touch-action: none;
background: transparent;
}
.files-resizer::before {
content: "";
position: absolute;
top: 0;
bottom: 0;
left: calc(50% - 0.5px);
width: 1px;
background: var(--border);
transition: background-color 120ms ease, width 120ms ease, left 120ms ease, height 120ms ease, top 120ms ease;
}
.files-resizer:hover::before,
.files-resizer:focus-visible::before,
body.files-resizing-x .files-resizer::before {
left: calc(50% - 1px);
width: 2px;
background: var(--accent);
}
.files-resizer:focus-visible {
outline: 2px solid var(--accent);
outline-offset: -2px;
}
body.files-resizing-x,
body.files-resizing-x * {
cursor: col-resize !important;
user-select: none !important;
}
body.files-resizing-y,
body.files-resizing-y * {
cursor: row-resize !important;
user-select: none !important;
}
.tree-head {
flex: 0 0 auto;
padding: var(--sp-2);
border-bottom: 1px solid var(--border);
font-size: var(--fs-small);
color: var(--muted);
}
.file-list {
flex: 1;
min-height: 0;
overflow-y: auto;
padding: var(--sp-1);
scrollbar-width: thin;
}
.file-row {
width: 100%;
display: flex;
align-items: center;
gap: var(--sp-1);
padding: var(--sp-1) var(--sp-2);
padding-left: calc(var(--sp-2) + var(--tree-depth, 0) * var(--sp-3));
border: 1px solid transparent;
border-radius: var(--r-control);
background: transparent;
color: var(--text);
font-size: var(--fs-meta);
text-align: left;
}
.file-row:hover {
background: var(--surface-2);
}
.file-row.active {
background: var(--accent-soft);
color: var(--accent);
}
.file-row-name {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-row-size {
color: var(--faint);
font-size: var(--fs-small);
}
.tree-caret {
flex: 0 0 auto;
color: var(--faint);
transition: transform 120ms ease;
}
.tree-caret.open {
transform: rotate(90deg);
}
.tree-caret-gap {
flex: 0 0 auto;
width: 14px;
}
.tree-note {
margin: 0;
padding: var(--sp-1) var(--sp-2);
padding-left: calc(var(--sp-2) + var(--tree-depth, 0) * var(--sp-3) + var(--sp-6));
color: var(--faint);
font-size: var(--fs-small);
line-height: var(--lh-body);
}
.tree-note.error {
color: var(--danger);
}
/* In a narrow list the name matters more than the size, and the indent
for nested rows leaves no room for both. */
@container (max-width: 260px) {
.file-row-size {
display: none;
}
}
.files-viewer {
min-width: 0;
min-height: 0;
display: flex;
flex-direction: column;
}
.viewer-head {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: var(--sp-1);
padding: var(--sp-2);
border-bottom: 1px solid var(--border);
min-width: 0;
}
.viewer-path {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: var(--font-mono);
font-size: var(--fs-small);
color: var(--muted);
}
.viewer-scroll {
flex: 1;
min-height: 0;
overflow: auto;
display: flex;
align-items: flex-start;
background: var(--surface);
scrollbar-width: thin;
}
.gutter {
flex: none;
margin: 0;
padding: var(--sp-2) var(--sp-2) var(--sp-6) var(--sp-3);
color: var(--faint);
font-family: var(--font-mono);
font-size: var(--fs-code);
line-height: var(--lh-body);
text-align: right;
user-select: none;
white-space: pre;
position: sticky;
left: 0;
background: var(--surface);
border-right: 1px solid var(--border);
}
.viewer-code {
margin: 0;
padding: var(--sp-2) var(--sp-3) var(--sp-6);
font-family: var(--font-mono);
font-size: var(--fs-code);
line-height: var(--lh-body);
white-space: pre;
tab-size: 2;
min-width: max-content;
}
.viewer-code .hljs-comment,
.viewer-code .hljs-quote {
color: var(--syntax-comment);
}
.viewer-code .hljs-keyword,
.viewer-code .hljs-selector-tag,
.viewer-code .hljs-literal,
.viewer-code .hljs-section,
.viewer-code .hljs-doctag,
.viewer-code .hljs-meta {
color: var(--syntax-keyword);
}
.viewer-code .hljs-string,
.viewer-code .hljs-regexp,
.viewer-code .hljs-symbol,
.viewer-code .hljs-bullet,
.viewer-code .hljs-template-tag,
.viewer-code .hljs-template-variable,
.viewer-code .hljs-addition,
.viewer-code .hljs-link {
color: var(--syntax-string);
}
.viewer-code .hljs-number {
color: var(--syntax-number);
}
.viewer-code .hljs-title,
.viewer-code .hljs-title.function_,
.viewer-code .hljs-title.class_ {
color: var(--syntax-def);
}
.viewer-code .hljs-type,
.viewer-code .hljs-built_in,
.viewer-code .hljs-class .hljs-title {
color: var(--syntax-type);
}
.viewer-code .hljs-tag,
.viewer-code .hljs-name,
.viewer-code .hljs-selector-id,
.viewer-code .hljs-selector-class,
.viewer-code .hljs-selector-attr,
.viewer-code .hljs-selector-pseudo,
.viewer-code .hljs-deletion {
color: var(--syntax-tag);
}
.viewer-code .hljs-attr,
.viewer-code .hljs-attribute,
.viewer-code .hljs-variable,
.viewer-code .hljs-property,
.viewer-code .hljs-params {
color: var(--syntax-attr);
}
.git-strip {
flex: 0 0 auto;
border-top: 1px solid var(--border);
max-height: 40%;
display: flex;
flex-direction: column;
min-height: 0;
}
.git-strip summary {
cursor: pointer;
padding: var(--sp-2) var(--sp-3);
color: var(--muted);
font-size: var(--fs-small);
user-select: none;
}
.git-strip[open] {
min-height: 120px;
}
.git-strip pre {
margin: 0;
padding: 0 var(--sp-3) var(--sp-3);
overflow: auto;
font-family: var(--font-mono);
font-size: var(--fs-small);
color: var(--muted);
max-height: 100%;
}
.terminal-wrap {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.terminal-bar {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: var(--sp-2);
padding: var(--sp-2) var(--sp-3);
border-bottom: 1px solid var(--border);
font-size: var(--fs-small);
color: var(--muted);
}
.terminal-status {
flex: 1;
min-width: 0;
}
.terminal-host {
flex: 1;
min-height: 0;
padding: var(--sp-2);
overflow: hidden;
}
.terminal-host .xterm {
height: 100%;
}
.preview-wrap {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.preview-bar {
flex: 0 0 auto;
display: flex;
align-items: center;
gap: var(--sp-2);
padding: var(--sp-2);
border-bottom: 1px solid var(--border);
}
.preview-target {
min-width: 0;
overflow: hidden;
color: var(--muted);
font-size: var(--fs-meta);
text-overflow: ellipsis;
white-space: nowrap;
}
.port-field {
width: 88px;
min-height: 28px;
padding: var(--sp-1) var(--sp-2);
font-size: var(--fs-meta);
}
.preview-frame-wrap {
flex: 1;
min-height: 0;
background: var(--surface-2);
}
.preview-frame {
display: block;
width: 100%;
height: 100%;
border: 0;
background: var(--surface);
}
.preview-message {
padding: var(--sp-4);
color: var(--muted);
font-size: var(--fs-meta);
overflow-wrap: anywhere;
}
.preview-full {
position: fixed;
inset: 0;
z-index: 120;
display: flex;
flex-direction: column;
background: var(--surface);
}
.rooms-list {
border-top: 1px solid var(--border);
}
.room-row {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: var(--sp-4);
align-items: center;
padding: var(--sp-3) var(--sp-2);
border-bottom: 1px solid var(--border);
color: var(--text);
}
.room-row:hover {
background: var(--surface-2);
text-decoration: none;
}
.room-row-name {
font-size: var(--fs-ui);
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.room-row-preview {
margin-top: var(--sp-1);
color: var(--muted);
font-size: var(--fs-meta);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.room-row-meta {
display: flex;
align-items: center;
gap: var(--sp-3);
color: var(--faint);
font-size: var(--fs-small);
white-space: nowrap;
}
.profile-card {
display: flex;
align-items: flex-start;
gap: var(--sp-5);
padding: var(--sp-5);
border: 1px solid var(--border);
border-radius: var(--r-card);
background: var(--surface);
}
.profile-body {
display: flex;
flex-direction: column;
gap: var(--sp-1);
min-width: 0;
}
.profile-name {
font-size: var(--fs-section);
font-weight: 600;
line-height: var(--lh-heading);
overflow-wrap: anywhere;
}
.profile-actions {
display: flex;
flex-wrap: wrap;
gap: var(--sp-2);
margin-top: var(--sp-3);
}
.file-input {
display: none;
}
.settings-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: var(--sp-4);
padding: var(--sp-3) 0;
border-bottom: 1px solid var(--border);
}
.settings-row:last-child {
border-bottom: 0;
}
.settings-row-main {
min-width: 0;
}
.settings-row-title {
font-size: var(--fs-ui);
font-weight: 500;
}
.settings-row-detail {
color: var(--muted);
font-size: var(--fs-meta);
overflow-wrap: anywhere;
}
.settings-row-actions {
display: flex;
align-items: center;
gap: var(--sp-2);
flex: none;
}
.key-line {
display: flex;
align-items: flex-start;
gap: var(--sp-2);
min-width: 0;
}
.key-text {
flex: 1;
min-width: 0;
overflow-wrap: anywhere;
font-family: var(--font-mono);
font-size: var(--fs-small);
color: var(--muted);
}
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--sp-3);
}
@media (max-width: 720px) {
.form-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 1099px) {
.pane-resizer {
display: none;
}
.right-pane {
position: fixed;
top: 0;
right: 0;
bottom: 0;
width: min(520px, 100vw);
min-width: 0;
z-index: 60;
border-left: 1px solid var(--border-strong);
}
.right-pane-overlay .pane-head {
padding-right: var(--sp-2);
}
}
@media (min-width: 1100px) {
.chat-column {
min-width: 420px;
}
}
@container (max-width: 430px) {
.files {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: clamp(120px, var(--files-browser-height, 38%), 60%) var(--sp-2) minmax(0, 1fr);
}
.files-browser {
border-right: 0;
border-bottom: 0;
}
.files-resizer {
cursor: row-resize;
}
.files-resizer::before {
top: calc(50% - 0.5px);
bottom: auto;
left: 0;
right: 0;
width: auto;
height: 1px;
}
.files-resizer:hover::before,
.files-resizer:focus-visible::before,
body.files-resizing-y .files-resizer::before {
top: calc(50% - 1px);
left: 0;
right: 0;
width: auto;
height: 2px;
background: var(--accent);
}
}
@media (max-width: 860px) {
.app-shell {
display: block;
}
.sidebar {
position: static;
width: 100%;
height: auto;
flex-direction: row;
align-items: center;
border-right: 0;
border-bottom: 1px solid var(--border);
padding: var(--sp-1) var(--sp-2);
overflow-x: auto;
}
.sidebar-top {
padding: 0;
}
.sidebar-label,
.sidebar-rooms {
display: none;
}
.sidebar-bottom {
flex-direction: row;
align-items: center;
border-top: 0;
margin-left: auto;
padding: 0;
}
.sidebar-link {
width: auto;
flex: none;
justify-content: center;
}
.sidebar-link-text,
.sidebar-account-name {
display: none;
}
.main {
min-height: auto;
}
.page {
padding: var(--sp-6) var(--sp-4) var(--sp-10);
}
.room-shell {
height: calc(100vh - 48px);
}
}
.form-panel {
border: 1px solid var(--border);
border-radius: var(--r-card);
background: var(--surface);
padding: var(--sp-4);
}
.form-panel + .form-panel {
margin-top: var(--sp-3);
}
.panel-title {
font-size: var(--fs-ui);
font-weight: 600;
margin-bottom: var(--sp-3);
}
.confirm-line {
display: flex;
align-items: center;
gap: var(--sp-2);
flex-wrap: wrap;
color: var(--danger);
font-size: var(--fs-meta);
}
.list {
border-top: 1px solid var(--border);
}
.people-section {
margin-bottom: var(--sp-6);
}
.people-list {
display: flex;
flex-direction: column;
max-height: 300px;
overflow-y: auto;
scrollbar-width: thin;
margin: 0;
/* Keep the scrollbar off the buttons at the right edge. */
padding: 0 var(--sp-3) 0 0;
list-style: none;
}
.person-row {
display: flex;
align-items: center;
gap: var(--sp-2);
min-height: 38px;
padding: var(--sp-1) 0;
}
.person-row + .person-row {
border-top: 1px solid var(--border);
}
.person-name {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: var(--fs-ui);
}
.person-role {
color: var(--faint);
font-size: var(--fs-small);
}
.person-confirm {
flex: 1;
}
.composer-error {
max-width: 760px;
margin: var(--sp-1) auto 0;
}
.files-pane {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
.pane-pad {
padding: var(--sp-2);
}
.pane-pad-3 {
padding: var(--sp-3);
}
.pane-note {
padding: 0 var(--sp-3) var(--sp-2);
}
.viewer-note {
padding: var(--sp-1) var(--sp-3);
}
:root {
--ansi-black: #3a3733;
--ansi-red: #a33a2f;
--ansi-green: #2f6f5e;
--ansi-yellow: #8a6519;
--ansi-blue: #4f5f8f;
--ansi-magenta: #8f4f5a;
--ansi-cyan: #2f6f6f;
--ansi-white: #d3cec3;
--ansi-bright-black: #736d63;
--ansi-bright-red: #c25a4d;
--ansi-bright-green: #3f8a74;
--ansi-bright-yellow: #a9832f;
--ansi-bright-blue: #6a7ab0;
--ansi-bright-magenta: #b06a77;
--ansi-bright-cyan: #3f8a8a;
--ansi-bright-white: #f7f6f3;
}
@media (prefers-color-scheme: dark) {
:root {
--ansi-black: #272521;
--ansi-red: #d07366;
--ansi-green: #58a58c;
--ansi-yellow: #c9a45c;
--ansi-blue: #8b9bd0;
--ansi-magenta: #c48290;
--ansi-cyan: #5fa3a3;
--ansi-white: #d3cec3;
--ansi-bright-black: #736d63;
--ansi-bright-red: #e08a7e;
--ansi-bright-green: #74bda3;
--ansi-bright-yellow: #dcc080;
--ansi-bright-blue: #a3b0df;
--ansi-bright-magenta: #d9a0ab;
--ansi-bright-cyan: #7fc0c0;
--ansi-bright-white: #f2f0ec;
}
}
.mt-1 {
margin-top: var(--sp-1);
}
.mt-2 {
margin-top: var(--sp-2);
}
.mt-4 {
margin-top: var(--sp-4);
}
.mt-6 {
margin-top: var(--sp-6);
}
.chat-column {
position: relative;
}
.archive-section {
margin-top: var(--sp-6);
margin-bottom: 0;
}
.chat-area {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
position: relative;
}
.git-strip[open] {
overflow-y: auto;
}
.git-strip pre {
flex: 1;
min-height: 0;
}
details:not([open]) > *:not(summary) {
display: none;
}
.git-strip {
overflow: hidden;
}
/* The sidebar folds to a 64px rail on desktop and remembers the choice. */
.sidebar-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--sp-1);
}
.sidebar-brand {
min-width: 0;
}
.sidebar-toggle {
flex: none;
}
.sidebar-room-initial {
display: none;
}
@media (min-width: 861px) {
.sidebar {
transition: width 160ms ease, flex-basis 160ms ease;
}
.sidebar-collapsed .sidebar {
width: 64px;
flex-basis: 64px;
}
.sidebar-collapsed .sidebar-top {
flex-direction: column;
gap: var(--sp-1);
padding: var(--sp-3) var(--sp-2) var(--sp-2);
}
.sidebar-collapsed .sidebar-brand {
padding: 0;
}
.sidebar-collapsed .sidebar-brand span {
display: none;
}
.sidebar-collapsed .sidebar-toggle {
margin-top: var(--sp-1);
}
.sidebar-collapsed .sidebar-label {
justify-content: center;
padding: var(--sp-3) 0 var(--sp-1);
}
.sidebar-collapsed .sidebar-label-text {
display: none;
}
.sidebar-collapsed .sidebar-rooms {
padding: 0 var(--sp-1);
}
.sidebar-collapsed .sidebar-room {
display: flex;
align-items: center;
justify-content: center;
padding: var(--sp-2) 0;
}
.sidebar-collapsed .sidebar-room-text {
display: none;
}
.sidebar-collapsed .sidebar-room-initial {
display: inline;
font-weight: 600;
}
.sidebar-collapsed .sidebar-room.muted {
display: none;
}
.sidebar-collapsed .sidebar-bottom {
align-items: center;
padding: var(--sp-2) var(--sp-1);
}
.sidebar-collapsed .sidebar-link {
justify-content: center;
padding: var(--sp-2) 0;
}
.sidebar-collapsed .sidebar-link-text {
display: none;
}
.sidebar-collapsed .sidebar-account {
flex-direction: column;
align-items: center;
gap: var(--sp-1);
padding: var(--sp-2) 0;
}
.sidebar-collapsed .sidebar-account-link {
flex: none;
}
.sidebar-collapsed .sidebar-account-name {
display: none;
}
}
@media (max-width: 860px) {
.sidebar-toggle {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
.sidebar {
transition: none;
}
.tree-caret {
transition: none;
}
}