/* Every colour is a token, so the dark palette at the foot of this file needs only to re-point them — no rule is written twice. */ /* One declaration per token: light-dark() picks a side from the resolved color-scheme, so the theme toggle only has to change `color-scheme` and no rule below ever needs a dark twin. */ :root { color-scheme: light dark; --bg: light-dark(#f4f6fa, #121316); --surface: light-dark(#ffffff, #1c1e22); /* A second surface for rails and inset cards, so nesting reads without a second border everywhere. */ --raised: light-dark(#fafbfd, #23262b); --fg: light-dark(#1b1c1f, #e6e8ec); --muted: light-dark(#5e6572, #9ba1ad); --border: light-dark(#e1e4ea, #333740); --divider: light-dark(#eef0f4, #262930); /* Both sides clear AA on --surface, --bg and --accent-soft alike, which is what the compose pill, the active folder, the tab rail and the setup checklist all need. */ --accent: light-dark(#3a55c8, #9db1ff); --accent-soft: light-dark(#eceffd, #242a3e); --on-accent: light-dark(#ffffff, #0e1430); --hover: light-dark(#f1f3f7, #262a31); --warn: light-dark(#c5221f, #f28b82); --on-warn: light-dark(#ffffff, #3c0d0a); --ok-bg: light-dark(#e6f4ea, #1d3826); --ok-fg: light-dark(#137333, #81c995); --alert-bg: light-dark(#feefc3, #3d3520); --alert-fg: light-dark(#7a4f01, #fdd663); --toast-bg: light-dark(#1b1c1f, #e6e8ec); --toast-fg: light-dark(#e6e8ec, #1b1c1f); --backdrop: light-dark(rgba(27, 28, 31, 0.34), rgba(0, 0, 0, 0.62)); --shadow-near: light-dark(rgba(23, 26, 38, 0.10), rgba(0, 0, 0, 0.50)); --shadow-far: light-dark(rgba(23, 26, 38, 0.08), rgba(0, 0, 0, 0.34)); --ui: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace; /* Cards and dialogs take --radius; anything hit-sized takes --radius-sm, so a small button never wears a curve it is too short to carry. */ --radius: 12px; --radius-sm: 8px; --radius-pill: 999px; --shadow: 0 1px 2px var(--shadow-near), 0 6px 18px -8px var(--shadow-far); --shadow-lg: 0 2px 6px var(--shadow-near), 0 24px 56px -16px var(--shadow-far); } /* The toggle pins a side; without the attribute the system decides. */ :root[data-theme="light"] { color-scheme: light; } :root[data-theme="dark"] { color-scheme: dark; } * { box-sizing: border-box; } [hidden] { display: none !important; } body { margin: 0; display: flex; flex-direction: column; height: 100vh; height: 100dvh; /* mobile browser chrome eats the last row of 100vh */ font: 14px/1.55 var(--ui); color: var(--fg); background: var(--surface); } button { font: inherit; border: 0; border-radius: var(--radius-sm); background: none; color: var(--accent); padding: 7px 14px; cursor: pointer; white-space: nowrap; transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease; } button:hover { background: var(--hover); } button:disabled { color: var(--muted); cursor: default; } button:disabled:hover { background: none; } /* Line icons from the sprite in index.html; they take their colour from the button, so no icon needs a palette of its own. */ .sprite { display: none; } .icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .icon-only { padding: 8px; display: inline-flex; } input, textarea { font: inherit; padding: 8px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--fg); } /* Keyboard focus was invisible: buttons carry no border and the input ring used --accent-soft, which is near-white on white. */ :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } input:focus, textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); } details > summary { width: fit-content; padding: 2px 0; font-size: 12px; color: var(--muted); cursor: pointer; } details > summary:hover { color: var(--accent); } /* --- top bar --------------------------------------------------------------- */ .topbar { display: flex; align-items: center; gap: 16px; padding: 11px 18px; border-bottom: 1px solid var(--border); } .brand { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; } .search { flex: 1; min-width: 0; /* an input's intrinsic size is its flex floor otherwise, and it overflows narrow bars */ max-width: 640px; margin: 0 auto; background: var(--hover); border: 0; border-radius: var(--radius-pill); padding: 9px 16px; } .search:focus { background: var(--surface); outline: 2px solid var(--accent); } .top-actions { display: flex; align-items: center; gap: 4px; } .top-actions .icon-only { color: var(--muted); } .top-actions .icon-only:hover { color: var(--fg); } .account { font-size: 13px; color: var(--muted); margin-right: 4px; } .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 500; display: flex; align-items: center; justify-content: center; user-select: none; } /* --- layout ------------------------------------------------------------------ */ main { flex: 1; min-height: 0; display: flex; background: var(--bg); } .rail { width: 200px; padding: 12px 8px; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; } /* The one primary action here, so it carries a solid fill rather than the soft one it shares with selected rows — and its box edge lines up with the folder buttons below, so the rail reads as a single column. */ .compose { align-self: stretch; display: flex; align-items: center; gap: 14px; margin: 2px 0 18px; padding: 12px 16px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-weight: 500; } .compose:hover { background: var(--accent); box-shadow: var(--shadow); } #folders button { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 9px 16px; color: var(--fg); font-weight: 500; } #folders .label { flex: 1; } #folders button:hover { background: var(--hover); } #folders button.active { background: var(--accent-soft); color: var(--accent); } #folders .count { color: var(--accent); font-weight: 500; margin-left: 8px; } .listpane { display: flex; flex-direction: column; min-width: 360px; max-width: 460px; background: var(--surface); border-right: 1px solid var(--border); } .list { flex: 1; min-height: 0; overflow-y: auto; } /* Fetch acts on the mailbox, so it sits over the mailbox rather than in the account cluster — and it can stand down in the contacts folder. */ .toolbar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-bottom: 1px solid var(--border); } .toolbar .tools { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; } .toolbar .primary { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; } #import-form input { flex: 1; min-width: 0; /* an input's intrinsic width is its flex floor otherwise */ font-family: var(--mono); font-size: 12px; padding: 5px 10px; } /* The fetch icon turns while a session is open. */ .toolbar .primary:disabled .icon { animation: spin 1.1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } @media (prefers-reduced-motion: reduce) { .toolbar .primary:disabled .icon { animation: none; } } .list-status { margin-left: auto; padding-right: 6px; font-size: 12px; color: var(--muted); } /* Message rows are