// Design tokens — two design languages selected by :
//
// instrument dense, neutral-cool tool (the default; the bare :root in the
// first block doubles as its light set and as a fallback for any
// document that somehow reaches this stylesheet without data-ui)
// ledger warm paper, hairline rules, serif display face
//
// data-theme="dark" (settings.rs SaveProfileForm.theme) flips either language.
// Component rules below read only these custom properties; the per-UI skins
// (_instrument.scss, _ledger.scss) add overrides on top.
@use "instrument";
@use "ledger";
// Instrument, light: warm-gray ground, quiet borders, shared accent family.
:root,
[data-ui="instrument"] {
color-scheme: light;
--bg: #f2f2f0;
--surface: #fbfbfa;
--border: #dcdcd8;
--border-strong: #d0d0cb;
--ink: #1a1b1d;
--muted: #6b7078;
--muted-soft: #6b7078;
--accent: #46557b;
--accent-tint: #eef0f5;
--accent-ink: #2f3c5c;
--field-bg: #f5f5f3;
--surface-sunken: #e9e9e7;
--surface-muted: #f5f5f3;
--ink-soft: #3d4045;
--row-hover: #ececea;
--panel-sunken: #eeeeec;
--border-soft: #d3d3ce;
--scrim: rgba(26, 27, 29, 0.46);
--danger: #a04a24;
--danger-tint: #f9ece4;
--danger-tint-soft: #fdf6f2;
--danger-tint-alt: #fbf1ec;
--danger-border: #e8c9b8;
--danger-border-soft: #eddcd3;
--danger-border-alt: #ecd0bf;
--warn-ink: #7a5c1e;
--warn-tint: #f7f0dd;
--warn-tint-soft: #fdfaf1;
--warn-border: #e6d7ae;
--positive: #5c7b46;
--positive-ink: #4a6636;
--positive-tint: #eef3e9;
--positive-border: #d3e0c6;
--accent-strong: #5a6a94;
--accent-border: #d6dbe8;
--accent-border-strong: #d8dce6;
--avatar-tone-1: #7b6846;
--avatar-tone-3: #7b4655;
--avatar-tone-4: #46707b;
--violet-tint: #f1eaf7;
--violet-border: #ddc4ec;
--violet-ink: #6a3f82;
--font-sans: system-ui, sans-serif;
--font-mono: 'IBM Plex Mono', ui-monospace, monospace;
--font-display: var(--font-sans);
--control-h: 32px;
--control-h-lg: 40px;
--rule-strong: #d0d0cb;
--radius: 3px;
--radius-sm: var(--radius);
--radius-md: 3px;
--radius-lg: 3px;
--topbar-height: 56px;
--shadow-1: none;
--shadow-2: none;
--shadow-3: none;
--dur-fast: 120ms;
--ease: ease-out;
}
// Instrument, dark: near-black neutral-cool; tint fills go translucent and
// tint borders go alpha so the ground shows through.
[data-ui="instrument"][data-theme="dark"] {
color-scheme: dark;
--bg: #0d0e10;
--surface: #14161a;
--border: #23262c;
--border-strong: #2e323a;
--ink: #e6e4de;
--muted: #7d8590;
--muted-soft: #4a4f58;
--accent: #8ba1e8;
--accent-tint: rgba(139, 161, 232, 0.14);
--accent-ink: #b9c6ee;
--field-bg: #101216;
--surface-sunken: #101216;
--surface-muted: #0f1013;
--ink-soft: #c9c7c0;
--row-hover: #1a1d22;
--panel-sunken: #101216;
--border-soft: #1f2226;
--scrim: rgba(0, 0, 0, 0.75);
--danger: #e0906a;
--danger-tint: rgba(224, 144, 106, 0.13);
--danger-tint-soft: rgba(224, 144, 106, 0.07);
--danger-tint-alt: rgba(224, 144, 106, 0.05);
--danger-border: rgba(224, 144, 106, 0.45);
--danger-border-soft: rgba(224, 144, 106, 0.3);
--danger-border-alt: rgba(224, 144, 106, 0.35);
--warn-ink: #d4b16a;
--warn-tint: rgba(212, 177, 106, 0.14);
--warn-tint-soft: rgba(212, 177, 106, 0.07);
--warn-border: rgba(212, 177, 106, 0.4);
--positive: #9db98a;
--positive-ink: #b4cba3;
--positive-tint: rgba(157, 185, 138, 0.13);
--positive-border: rgba(157, 185, 138, 0.4);
--accent-strong: #7e93d9;
--accent-border: #3a4152;
--accent-border-strong: #2b3b63;
--avatar-tone-1: #937d58;
--avatar-tone-3: #96606e;
--avatar-tone-4: #5b93a1;
--violet-tint: rgba(185, 138, 151, 0.14);
--violet-border: rgba(185, 138, 151, 0.4);
--violet-ink: #b98a97;
--font-sans: system-ui, sans-serif;
--font-mono: 'IBM Plex Mono', ui-monospace, monospace;
--font-display: var(--font-sans);
--control-h: 32px;
--control-h-lg: 40px;
--rule-strong: #2e323a;
--radius: 3px;
--radius-sm: var(--radius);
--radius-md: 3px;
--radius-lg: 3px;
--topbar-height: 56px;
--shadow-1: none;
--shadow-2: none;
--shadow-3: none;
--dur-fast: 120ms;
--ease: ease-out;
}
// Ledger, light: warm paper; hairline rules carry structure, ink carries
// emphasis. Tint trio stays on the proven warm palette.
[data-ui="ledger"] {
color-scheme: light;
--bg: #f6f1e6;
--surface: #f6f1e6;
--border: #ddd5c2;
--border-strong: #221f18;
--ink: #221f18;
--muted: #7a7466;
--muted-soft: #a39b88;
--accent: #46557b;
--accent-tint: #eef0f5;
--accent-ink: #2f3c5c;
--field-bg: #f1ebdd;
--surface-sunken: #efe9da;
--surface-muted: #f2ecdf;
--ink-soft: #4a453a;
--row-hover: #efe9da;
--panel-sunken: #f1ebdd;
--border-soft: #cfc6b0;
--scrim: rgba(34, 31, 24, 0.46);
--danger: #a04a24;
--danger-tint: #f9ece4;
--danger-tint-soft: #fdf6f2;
--danger-tint-alt: #fbf1ec;
--danger-border: #e8c9b8;
--danger-border-soft: #eddcd3;
--danger-border-alt: #ecd0bf;
--warn-ink: #7a5c1e;
--warn-tint: #f7f0dd;
--warn-tint-soft: #fdfaf1;
--warn-border: #e6d7ae;
--positive: #5c7b46;
--positive-ink: #4a6636;
--positive-tint: #eef3e9;
--positive-border: #d3e0c6;
--accent-strong: #5a6a94;
--accent-border: #d6dbe8;
--accent-border-strong: #d8dce6;
--avatar-tone-1: #7b6846;
--avatar-tone-3: #7b4655;
--avatar-tone-4: #46707b;
--violet-tint: #f1eaf7;
--violet-border: #ddc4ec;
--violet-ink: #6a3f82;
--font-sans: system-ui, sans-serif;
--font-mono: 'IBM Plex Mono', ui-monospace, monospace;
--font-display: 'Newsreader', Georgia, serif;
--control-h: 32px;
--control-h-lg: 40px;
--rule-strong: #221f18;
--radius: 2px;
--radius-sm: var(--radius);
--radius-md: 2px;
--radius-lg: 2px;
--topbar-height: 56px;
--shadow-1: none;
--shadow-2: none;
--shadow-3: none;
--dur-fast: 120ms;
--ease: ease-out;
}
// Ledger, dark: dimmed paper ground; semantic hues lifted for contrast, tint
// fills translucent over the paper tone.
[data-ui="ledger"][data-theme="dark"] {
color-scheme: dark;
--bg: #171511;
--surface: #171511;
--border: #3a352a;
--border-strong: #e8e2d4;
--ink: #e8e2d4;
--muted: #97907f;
--muted-soft: #6e6757;
--accent: #9db0dd;
--accent-tint: rgba(157, 176, 221, 0.14);
--accent-ink: #c3cfee;
--field-bg: #1c1915;
--surface-sunken: #14120e;
--surface-muted: #1c1915;
--ink-soft: #cfc8b6;
--row-hover: #201c16;
--panel-sunken: #1b1814;
--border-soft: #2e2a20;
--scrim: rgba(0, 0, 0, 0.75);
--danger: #d28a5a;
--danger-tint: rgba(210, 138, 90, 0.13);
--danger-tint-soft: rgba(210, 138, 90, 0.07);
--danger-tint-alt: rgba(210, 138, 90, 0.05);
--danger-border: rgba(210, 138, 90, 0.45);
--danger-border-soft: rgba(210, 138, 90, 0.3);
--danger-border-alt: rgba(210, 138, 90, 0.35);
--warn-ink: #d4b16a;
--warn-tint: rgba(212, 177, 106, 0.14);
--warn-tint-soft: rgba(212, 177, 106, 0.07);
--warn-border: rgba(212, 177, 106, 0.4);
--positive: #a3bd8b;
--positive-ink: #b8cda4;
--positive-tint: rgba(163, 189, 139, 0.13);
--positive-border: rgba(163, 189, 139, 0.4);
--accent-strong: #8497c9;
--accent-border: #3f4658;
--accent-border-strong: #2c3550;
--avatar-tone-1: #937d58;
--avatar-tone-3: #96606e;
--avatar-tone-4: #5b93a1;
--violet-tint: rgba(201, 163, 222, 0.14);
--violet-border: rgba(201, 163, 222, 0.4);
--violet-ink: #c9a3de;
--font-sans: system-ui, sans-serif;
--font-mono: 'IBM Plex Mono', ui-monospace, monospace;
--font-display: 'Newsreader', Georgia, serif;
--control-h: 32px;
--control-h-lg: 40px;
--rule-strong: #e8e2d4;
--radius: 2px;
--radius-sm: var(--radius);
--radius-md: 2px;
--radius-lg: 2px;
--topbar-height: 56px;
--shadow-1: none;
--shadow-2: none;
--shadow-3: none;
--dur-fast: 120ms;
--ease: ease-out;
}
* { box-sizing: border-box; }
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font-family: var(--font-sans);
font-size: 13px;
}
// The board page owns the viewport: chrome and the occasional refusal line
// keep their natural height, the stage absorbs the rest, the document never
// scrolls.
body:has(.board-stage) {
// dvh follows the browser chrome phones raise and lower; vh is the fallback
// for engines without it.
height: 100vh;
height: 100dvh;
overflow: hidden;
display: flex;
flex-direction: column;
> * { flex: none; }
> .board-stage { flex: 1; min-height: 0; }
}
body:has(.settings-shell) {
height: 100vh;
height: 100dvh;
overflow: hidden;
display: flex;
flex-direction: column;
> * { flex: none; }
> .settings-shell { flex: 1; min-height: 0; }
}
// A profile is one column of its own; it pans inside itself like every other
// page here, and the document never grows a scrollbar.
body:has(.people-shell) {
height: 100vh;
height: 100dvh;
overflow: hidden;
display: flex;
flex-direction: column;
> * { flex: none; }
> .people-shell { flex: 1; min-height: 0; }
}
// The account screens take the same lock: the card centers in what is left
// of the viewport, and a card taller than it (a landscape phone) pans inside
// the stage instead of growing the document.
body:has(.auth-stage) {
height: 100vh;
height: 100dvh;
overflow: hidden;
display: flex;
flex-direction: column;
> * { flex: none; }
> .auth-stage {
flex: 1;
min-height: 0;
overflow-y: auto;
scrollbar-width: none;
&::-webkit-scrollbar { display: none; }
}
}
a {
color: var(--accent);
transition: color var(--dur-fast) var(--ease);
&:hover { color: var(--accent-ink); }
}
.topbar {
height: var(--topbar-height);
background: var(--surface);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
gap: 16px;
padding: 0 24px;
}
// The brand lockup is the one thing the two skins do NOT restyle: same
// monogram, same face, same size in Instrument and Ledger, light and dark.
// The mark takes the ink from `currentColor` and the tittle from the accent,
// so it re-tints with the theme without a second drawing.
.wordmark {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
color: inherit;
&:hover { color: inherit; }
&-mark {
flex: none;
display: block;
width: 24px;
height: 24px;
}
// The word without the mark, on the sign-in and setup pages: nothing else
// in that chrome, so it can take the room the topbar version cannot.
&-lone &-text {
font-size: 18px;
letter-spacing: 0.01em;
}
&-tittle {
fill: var(--accent);
}
// Lower case, and not by taste: capitalised, the dotted `i` becomes `I` and
// the name reads as the English word. The tittle is the Turkish one, in the
// word as it is in the mark.
&-text {
font-family: var(--font-mono);
font-size: 15px;
font-weight: 500;
letter-spacing: 0.02em;
}
}
.topbar-nav-links {
display: flex;
gap: 16px;
margin-left: auto;
}
// The spacer's flex-grow eats the free space before auto margins see any, so
// inside the chrome the nav's auto margin does the pushing instead.
.topbar > .spacer { display: none; }
.topbar-nav {
font-family: var(--font-mono);
font-size: 10px;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--muted);
text-decoration: none;
// A two-word label ("Mail rules") folds under pressure and reads as two
// stacked links; the nav gives up room some other way.
white-space: nowrap;
padding-bottom: 2px;
&:hover { color: var(--ink); }
&-on {
color: var(--ink);
box-shadow: inset 0 -2px 0 var(--ink);
}
}
// The family behind the monogram: the sibling apps' wordmarks, middots
// between, in a flyout that hangs under the mark and shows on hover or on
// keyboard focus (the mark is a link, so it focuses itself). Absolutely
// placed, so the chrome keeps the bare monogram's width; it stays in the
// DOM so the links are reachable by tab, which is what opens it for a
// keyboard. No gap between mark and flyout, so the pointer can travel down
// into it without it closing.
.wordmark-family {
position: relative;
display: flex;
// The mark keeps its width at every width: the page nav beside it is the
// region that pans under the finger, this never squishes.
flex: none;
&:hover .app-switcher,
&:focus-within .app-switcher {
opacity: 1;
transform: translate(0, 0);
pointer-events: auto;
}
}
.app-switcher {
position: absolute;
top: 100%;
left: 0;
// Over the page, under the house dropdown's panel (60), which may open
// from a row the flyout hangs across.
z-index: 50;
display: flex;
align-items: center;
gap: 10px;
padding: 6px 12px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow-2);
opacity: 0;
transform: translate(0, -4px);
pointer-events: none;
transition: opacity 120ms ease, transform 120ms ease;
&-mark {
font-family: var(--font-mono);
font-size: 13px;
font-weight: 500;
letter-spacing: 0.02em;
color: var(--muted);
text-decoration: none;
// The flyout shrink-fits to the monogram's width; without this the
// health dot wraps off its key. It grows right instead, over the page
// nav, under the house dropdown's panel.
white-space: nowrap;
&:hover { color: var(--ink); }
}
&-sep { color: var(--muted-soft); }
}
// The wordmark flyout's per-service state dot: green while the service's
// /healthz answers ok, muted when it does not — the same light iz's
// connection card and im's flyout carry, one green across the family.
.health-dot {
display: inline-block;
width: 0.55rem;
height: 0.55rem;
border-radius: 50%;
margin-right: 0.4rem;
vertical-align: baseline;
&.health-on { background: #2e9e5b; }
&.health-off { background: var(--muted); }
}
.scaffold-note {
margin: 24px;
padding: 20px 24px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
color: var(--muted);
}
// The public card's image preview is a bare `` — no class of its own —
// so a picture wider than the card must shrink to it instead of widening
// the page. Nothing that already fits changes size.
.scaffold-note img { max-width: 100%; }
// --- Account screens (FirstLogin artboard) ---------------------------------
.auth-stage {
min-height: calc(100vh - var(--topbar-height));
display: flex;
align-items: center;
justify-content: center;
padding: 0 40px 40px;
}
.auth-column {
width: 520px;
max-width: 100%;
display: flex;
flex-direction: column;
gap: 10px;
}
.auth-card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 28px 28px;
display: flex;
flex-direction: column;
gap: 18px;
box-shadow: var(--shadow-2);
form {
display: flex;
flex-direction: column;
gap: 20px;
}
}
.auth-head {
display: flex;
flex-direction: column;
gap: 6px;
}
.auth-title {
font-size: 18px;
font-weight: 600;
letter-spacing: -0.01em;
}
.auth-sub {
font-size: 13px;
color: var(--muted);
line-height: 1.5;
}
.auth-field {
display: flex;
flex-direction: column;
gap: 6px;
}
.auth-label {
font-family: var(--font-mono);
font-size: 10px;
letter-spacing: 0.08em;
color: var(--muted-soft);
text-transform: uppercase;
}
// The address an invited member signs in as: shown, never edited.
.auth-locked {
display: flex;
align-items: center;
gap: 8px;
height: 40px;
padding: 0 12px;
background: var(--panel-sunken);
border: 1px solid var(--border-strong);
border-radius: var(--radius);
}
.auth-locked-value {
font-family: var(--font-mono);
font-size: 13px;
color: var(--muted);
flex-grow: 1;
}
.auth-submit {
height: var(--control-h-lg);
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
background: var(--accent);
color: var(--surface);
border: 0;
border-radius: var(--radius);
cursor: pointer;
font-family: var(--font-sans);
&:disabled {
opacity: 0.45;
cursor: default;
}
}
.auth-submit-text {
font-size: 13px;
font-weight: 600;
}
.auth-key {
font-family: var(--font-mono);
font-size: 10px;
background: var(--accent-strong);
border-radius: var(--radius-sm);
padding: 1px 4px;
}
.auth-problem {
font-size: 13px;
color: var(--danger);
background: var(--danger-tint-alt);
border: 1px solid var(--danger-border-soft);
border-radius: var(--radius);
padding: 10px 12px;
}
.auth-note {
font-size: 13px;
color: var(--muted);
background: var(--panel-sunken);
border: 1px solid var(--border-soft);
border-radius: var(--radius);
padding: 10px 12px;
}
.auth-alt {
font-size: 12px;
color: var(--muted);
text-decoration: none;
align-self: center;
&:hover { color: var(--accent-ink); }
}
// -- the board (Main and EmptyBoard artboards) -------------------------------
.spacer { flex-grow: 1; }
.user-menu { position: relative; }
.user-menu-trigger {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 0;
background: none;
border: none;
font-family: inherit;
font-size: 13px;
color: var(--muted);
cursor: pointer;
transition: color var(--dur-fast) var(--ease);
&:hover { color: var(--accent-ink); }
}
.user-menu-panel {
position: absolute;
top: 100%;
right: 0;
z-index: 30;
width: 220px;
padding: 8px;
background: var(--surface);
border: 1px solid var(--border-strong);
border-radius: var(--radius-md);
box-shadow: var(--shadow-2);
visibility: hidden;
opacity: 0;
pointer-events: none;
transition: opacity var(--dur-fast) var(--ease), visibility var(--dur-fast) var(--ease);
}
.user-menu:hover .user-menu-panel,
.user-menu:focus-within .user-menu-panel {
visibility: visible;
opacity: 1;
pointer-events: auto;
}
.user-menu.user-menu-esc .user-menu-panel { visibility: hidden; opacity: 0; pointer-events: none; }
.user-menu-name {
padding: 4px 10px 0;
font-size: 13px;
font-weight: 600;
}
.user-menu-email {
padding: 2px 10px 0;
font-size: 12px;
color: var(--muted);
word-break: break-all;
}
.user-menu-role {
padding: 2px 10px 6px;
font-size: 12px;
color: var(--muted-soft);
text-transform: capitalize;
}
.user-menu-item {
display: flex;
align-items: center;
width: 100%;
height: 32px;
padding: 0 10px;
border-radius: var(--radius-sm);
border: none;
background: none;
font-family: inherit;
font-size: 13px;
color: var(--ink-soft);
text-decoration: none;
text-align: left;
cursor: pointer;
transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
&:hover { background: var(--row-hover); color: var(--ink); }
}
.user-menu-item-form { display: block; }
.filterbar {
min-height: 52px;
background: var(--surface);
border-bottom: 1px solid var(--border);
display: flex;
align-items: center;
flex-wrap: wrap;
row-gap: 8px;
gap: 14px;
padding: 8px 24px;
}
// The drive page's create-folder form sits inside the filterbar, where the
// column form's stacking (gap, padding, top rule) would blow the 40px
// instrument bar apart and float oddly centred in ledger too: inline here,
// so the row fits the bar in both skins.
.filterbar .tag-form {
flex-direction: row;
align-items: center;
gap: 10px;
padding: 0;
border-top: none;
}
// The drive's + menu trigger is a details summary wearing the primary button
// skin; the disclosure marker stays hidden, the '+' is literal text. The
// open panel is the house `.user-menu-panel` — no bar-local rules, no script.
.drive-add-trigger {
list-style: none;
&::marker, &::-webkit-details-marker { display: none; }
}
.segmented {
display: flex;
align-items: center;
background: var(--panel-sunken);
border: 1px solid var(--border-strong);
border-radius: var(--radius);
padding: 2px;
gap: 2px;
}
.chip {
display: flex;
align-items: center;
height: 24px;
padding: 0 10px;
border-radius: var(--radius);
font-size: 11px;
font-weight: 600;
&-overdue {
background: var(--danger-tint);
color: var(--danger);
}
&-blocked {
background: var(--warn-tint);
color: var(--warn-ink);
}
&-role,
&-admin,
&-shared,
&-connected,
&-off {
text-transform: capitalize;
}
&-role { background: var(--surface-sunken); border: 1px solid var(--border-strong); color: var(--ink-soft); }
&-admin,
&-shared { background: var(--panel-sunken); border: 1px solid var(--border-strong); color: var(--muted); }
&-connected { background: var(--positive-tint); color: var(--positive-ink); }
&-off { background: var(--warn-tint); color: var(--warn-ink); }
}
.board-stage {
position: relative;
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
padding: 20px 24px 24px 24px;
}
.board-columns {
flex: 1;
min-height: 0;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
gap: 16px;
align-items: stretch;
}
.column {
background: var(--surface-sunken);
border-radius: var(--radius-lg);
padding: 12px;
display: flex;
flex-direction: column;
gap: 10px;
min-height: 120px;
}
.column-head {
display: flex;
align-items: center;
gap: 8px;
padding: 2px 4px;
}
.column-name {
font-size: 13px;
font-weight: 600;
}
.column-count {
font-family: var(--font-mono);
font-size: 11px;
font-variant-numeric: tabular-nums;
color: var(--muted-soft);
background: var(--panel-sunken);
border-radius: var(--radius);
padding: 1px 6px;
}
.column-cards {
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
min-height: 0;
overflow-y: auto;
scrollbar-width: none;
&::-webkit-scrollbar { display: none; }
}
.column-empty {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
min-height: 60px;
border: 1px dashed var(--border-strong);
border-radius: var(--radius-md);
background: var(--surface-sunken);
font-size: 12px;
color: var(--muted-soft);
}
.card {
// The card is an anchor so it has an address; it must not read as one.
display: block;
text-decoration: none;
color: inherit;
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-md);
padding: 10px 12px;
box-shadow: var(--shadow-1);
cursor: pointer;
transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
&:hover {
background: var(--row-hover);
border-color: var(--border-strong);
}
}
/* Where a dragged card may land. Only columns it is not already in light up:
the card's own column is not a destination. */
.column-drop {
outline: 1px dashed var(--border-strong);
outline-offset: 4px;
border-radius: var(--radius-md);
background: var(--accent-tint);
}
.card-done {
background: var(--surface-muted);
box-shadow: none;
.card-title { color: var(--muted); }
}
.card-keys {
display: flex;
align-items: baseline;
gap: 6px;
font-family: var(--font-mono);
font-size: 10px;
}
.card-key { color: var(--muted); }
.card-blocks,
.card-blocked-by { color: var(--warn-ink); }
.card-title {
font-size: 13px;
font-weight: 600;
line-height: 1.4;
margin-top: 4px;
}
.card-foot {
display: flex;
align-items: center;
gap: 6px;
margin-top: 10px;
flex-wrap: wrap;
}
.card-deadline {
display: flex;
align-items: center;
font-family: var(--font-mono);
font-size: 11px;
font-variant-numeric: tabular-nums;
color: var(--muted);
background: var(--surface-sunken);
border-radius: var(--radius-sm);
padding: 2px 6px;
&-overdue {
color: var(--danger);
background: var(--danger-tint);
}
&-none {
color: var(--muted-soft);
background: transparent;
padding-left: 0;
}
}
.card-comments,
.card-subtasks {
font-family: var(--font-mono);
font-size: 11px;
color: var(--muted);
}
.card-tag {
font-family: var(--font-mono);
font-size: 11px;
color: var(--muted);
background: var(--surface-sunken);
border-radius: var(--radius-sm);
padding: 2px 6px;
}
/// Parts still open is the same warning the blocker chips carry: this card
/// cannot reach the done column yet.
.card-subtasks-open { color: var(--warn-ink); }
.avatars {
display: flex;
align-items: center;
min-width: 0;
overflow: hidden;
// The data-name tooltip pokes above the row; hovering drops the clip so it
// is not cut off by the overlap truncation.
&:has(.avatar:hover) { overflow: visible; }
}
.avatar {
width: 22px;
height: 22px;
border-radius: 50%;
border: 2px solid var(--surface);
color: var(--surface);
font-family: var(--font-mono);
font-size: 10px;
display: flex;
align-items: center;
justify-content: center;
position: relative;
& + & { margin-left: -8px; }
&-none {
border: 1px dashed var(--border-strong);
background: transparent;
}
// The modal asks for two other sizes: 18px inside an assignee chip, 28px
// beside a comment. The border is the board's overlap trick and has no job
// on a lone avatar, so these drop it.
//
// They are written as `.avatar.avatar-sm` on purpose: the Instrument skin
// sizes `.avatar` from a `[data-ui]` scope, which outweighs a lone class —
// a plain `.avatar-lg` lost to it, and every size modifier collapsed to
// 18px on that skin without anybody noticing.
&.avatar-sm {
width: 18px;
height: 18px;
border: none;
font-size: 10px;
}
&.avatar-lg {
width: 28px;
height: 28px;
border: none;
font-size: 11px;
flex: none;
}
// The profile page's own picture: the one place a face is the subject of
// the screen rather than a mark beside somebody's name.
&.avatar-xl {
width: 92px;
height: 92px;
border: none;
font-size: 30px;
font-weight: 500;
flex: none;
}
// A bare avatar carries `data-name`; hovering raises a house tooltip in
// place of the native `title`.
&[data-name]:hover::after {
content: attr(data-name);
position: absolute;
bottom: calc(100% + 6px);
left: 50%;
transform: translateX(-50%);
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 3px 8px;
font-size: 11px;
color: var(--ink-soft);
box-shadow: var(--shadow-2);
white-space: nowrap;
z-index: 30;
pointer-events: none;
}
&-tone-0 { background: var(--accent); }
&-tone-1 { background: var(--avatar-tone-1); }
&-tone-2 { background: var(--positive); }
&-tone-3 { background: var(--avatar-tone-3); }
&-tone-4 { background: var(--avatar-tone-4); }
}
// A photo avatar is the same box with the picture where the tone fill was;
// size and shape ride the shared .avatar classes.
img.avatar {
object-fit: cover;
display: block;
}
// The topbar face: the initials block stays beneath and the photo, when im
// has one, covers it — a missing photo hides itself (see `avatar_script` in
// `layout.rs`) and the initials show through. One grid cell shared by both,
// so no absolute positioning and no second copy of the avatar's size; the
// overlap rule for grouped faces is unwound here, where the pair is one face.
.avatar-stack {
display: inline-grid;
flex: none;
> * { grid-area: 1 / 1; }
> .avatar + .avatar { margin-left: 0; }
}
// The avatar leads the profile panel. Without a photo it is itself the
// upload control — the file input rides its `form` attribute to a hidden
// sibling form, so nothing nests inside the profile form. With one, the
// click opens the photo viewer and a Change button owns the picker instead.
.identity-row {
display: flex;
align-items: center;
gap: 14px;
}
// The two faces of the profile picture box: the picker label and, once a
// photo exists, the viewer trigger. The person page's own card wears the
// trigger too — the box rules are shared, the size is not.
.avatar-upload,
.avatar-view {
position: relative;
flex: none;
cursor: pointer;
// The name tooltip has no job on your own picture.
.avatar[data-name]:hover::after { content: none; }
}
// The settings row's picture is 64px whatever size class the avatar wears;
// the person card's keeps its xl.
.identity-row .avatar-upload .avatar,
.identity-row .avatar-view .avatar {
width: 64px;
height: 64px;
font-size: 20px;
}
// The trigger is the label's box with a button's chrome stripped.
.avatar-view {
appearance: none;
background: none;
border: none;
padding: 0;
}
.avatar-upload {
// The upload affordance: a veil and a plus over the picture, on hover or
// keyboard focus only.
&::after {
content: "+";
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgb(0 0 0 / 0.4);
border-radius: 50%;
color: #fff;
font-size: 24px;
font-weight: 300;
opacity: 0;
transition: opacity var(--dur-fast) var(--ease);
pointer-events: none;
}
&:hover::after,
&:has(.file-upload-input:focus-visible)::after { opacity: 1; }
}
// -- the card context menu ---------------------------------------------------
//
// A right-click opens this at the cursor; `card_menu_script` (board.rs) sets
// its position and the `card-menu-open` class, and a document click closes
// whichever one is open. The panel and its rows wear the same floating-list
// chrome as the assignee and link pickers (`.pop-panel`/`.pop-list`/`.pop-row`).
.card-menu {
display: none;
position: fixed;
z-index: 25;
min-width: 160px;
&-open { display: block; }
}
.card-menu-move { position: relative; }
.card-menu-submenu {
display: none;
position: absolute;
left: 100%;
top: 0;
margin-left: 4px;
min-width: 140px;
}
.card-menu-move:hover > .card-menu-submenu,
.card-menu-move-trigger:focus + .card-menu-submenu { display: block; }
.card-menu-danger { color: var(--danger); }
// -- the task detail modal --------------------------------------------------
//
// The modal is a view. Every region that can be changed is a `