/* The window: the frame of every public page, drawn as a window of Lucium (data/window.mjs), and what those pages hold. The frame of the application
   (sidebar, toolbar, command bar, menus, toasts) takes its sizes (src/renderer/tokens.css, sidebar.css, command-bar.css of its repository).
   Every colour and every type setting is a token of assets/spaces.css (data/spaces.mjs, the look « Lueur », light and dark, nine spaces):
   this sheet writes no colour of its own (design.test.mjs). assets/site.css is the base of the back office alone. */


:root { --sb-w: 300px; --dur: 0.15s; transition: --frame-a 0.5s ease, --frame-b 0.5s ease; }
/* Reduce motion: no transition at all. A transition of 0.01 ms (transition-property is « all » by default) would still interpolate, for one
   frame, what a child inherits: the items of the phone's drawer stayed « visibility: hidden » for that frame and could not take the focus. */
@media (prefers-reduced-motion: reduce) {
  :root { transition: none; --dur: 0s; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
}

/* ---------- the window ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--frame-a); scroll-padding-top: 64px; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--frame) fixed;
  font: 400 14px/1.4 var(--font-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* The grain of the space (theme.ts « grain », 6 % of noise shown at 45 %). */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n' color-interpolation-filters='sRGB'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0'/><feComponentTransfer><feFuncR type='discrete' tableValues='0 1'/><feFuncG type='discrete' tableValues='0 1'/><feFuncB type='discrete' tableValues='0 1'/><feFuncA type='table' tableValues='0.6 0 0.6'/></feComponentTransfer></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
/* What a script hides stays hidden, whatever display its class gives it. */
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button { cursor: default; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-s); }
.skip:focus { top: 8px; }

/* No z-index here: the drawer of a phone must rise above the scrim, which a stacking context on the window would prevent. */
.window { position: relative; display: grid; grid-template-columns: var(--sb-w) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns 0.11s cubic-bezier(0.25, 1, 0.5, 1); }
:root.sidebar-hidden .window { grid-template-columns: 0 minmax(0, 1fr); }
:root.sidebar-hidden .sidebar { visibility: hidden; }

/* ---------- the sidebar (sidebar.css of the app) ---------- */
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  color: var(--text-on-space); user-select: none; -webkit-user-select: none;
}
.sb-toolbar { display: flex; align-items: center; height: 44px; flex: none; padding: 0 9px 0 14px; }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: var(--light-close); box-shadow: inset 0 0 0 0.5px var(--light-edge); }
.lights i:nth-child(2) { background: var(--light-min); }
.lights i:nth-child(3) { background: var(--light-max); }
.sb-icon { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--text-on-space-2); }
.sb-icon:hover { background: var(--tile-hover); color: var(--text-on-space); }

/* The name of a favourite is read whole: « Communauté », the longest, takes 66 px at 10.5 px; the tiles keep 67.75 px of the 300 px of the
   sidebar (4 px between them instead of the app's 8.7, no inner margin), so that no name is cut. */
.favorites { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px; margin: 4px 9px 10px 8px; flex: none; }
.favorite {
  height: 58px; border-radius: 12px; background: var(--tile); display: grid; grid-template-rows: 1fr auto; place-items: end center; padding: 0 0 6px; gap: 3px;
  text-decoration: none; color: var(--text-on-space);
}
.favorite:hover { background: var(--tile-hover); }
.favorite.active { background: var(--fav-active); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-on-space) 18%, transparent); }
.fav-icon { align-self: center; width: 20px; height: 20px; display: grid; place-items: center; }
.fav-icon svg, .fav-icon img { width: 20px; height: 20px; display: block; }
.favorite-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; letter-spacing: -0.01em; line-height: 1.2; color: var(--text-on-space-2); }
.favorite.active .favorite-name { color: var(--text-on-space); }
.favorite:focus-visible { outline-offset: -2px; }

.sb-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 9px 12px 8px; scrollbar-width: none; }
.sb-scroll::-webkit-scrollbar { width: 0; }
.space-pane.slide-next { animation: space-in-next 0.24s cubic-bezier(0.25, 1, 0.5, 1); }
.space-pane.slide-prev { animation: space-in-prev 0.24s cubic-bezier(0.25, 1, 0.5, 1); }
@keyframes space-in-next { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes space-in-prev { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }

.space-header { display: flex; align-items: center; gap: 4px; height: 36px; margin: 0 0 3px; padding: 0 5px; font-size: 13px; font-weight: 600; line-height: 18px; color: var(--text-on-space); }
.space-emoji { flex: none; font-size: 19px; line-height: 26px; width: 26px; height: 26px; text-align: center; }
.space-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.space-header svg { flex: none; margin-left: 2px; color: var(--text-on-space-2); }

.tree { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pinned-rows > .tab, .pinned-rows > .split-row { margin-left: 16px; }
.tab { position: relative; display: flex; align-items: center; height: 36px; margin: 2px 0 3px; padding: 0 4px 0 0; border-radius: 10px; color: var(--text-on-space); font-size: 14px; line-height: 19px; }
.tab:hover { background: var(--tile-hover); }
.tab.active { background: var(--row-active); }
.tab-main { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; height: 100%; padding: 0 4px 0 9px; border-radius: 10px; text-decoration: none; color: inherit; cursor: default; }
.tab:has(> .tab-main:focus-visible) { outline: var(--focus-width) solid var(--accent); outline-offset: -2px; }
.tab-icon { flex: none; width: 18px; height: 18px; display: grid; place-items: center; }
.favicon { width: 18px; height: 18px; border-radius: 4px; display: block; flex: none; }
.favicon.fallback { display: inline-grid; place-items: center; background: color-mix(in srgb, var(--accent) 20%, var(--tile-active)); color: var(--text-on-space); font-size: 10.5px; font-weight: 700; }
.tab-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tab.asleep .tab-icon { opacity: 0.55; }
.tab.asleep .tab-title { color: var(--text-on-space-2); }
.tab-button { flex: none; width: 26px; height: 26px; border-radius: 6px; display: none; place-items: center; color: var(--text-on-space-2); }
.tab-button:hover { background: var(--tile-active); color: var(--text-on-space); }
.tab:hover > .tab-button, .tab:focus-within > .tab-button { display: inline-grid; }
/* A touch screen has no pointer to hover with: both buttons stay shown, so the row never shifts under the finger (a tap on « … » once landed on ×). */
@media (hover: none) { .tab > .tab-button { display: inline-grid; } }
.tab.menu-open > .tab-button { display: inline-grid; }
.tab.just-moved { background: color-mix(in srgb, var(--accent) 30%, transparent); transition: background 1.2s ease; }
.tab.dragging { opacity: 0.35; }
.tab.drop-before { box-shadow: 0 -2px 0 0 var(--accent); }
.tab.drop-after { box-shadow: 0 2px 0 0 var(--accent); }
.split-row.drop-before { box-shadow: 0 -2px 0 0 var(--accent); }
.split-row.drop-after { box-shadow: 0 2px 0 0 var(--accent); }
:root.is-dragging, :root.is-dragging * { cursor: grabbing !important; }

.split-row { display: flex; gap: 2px; align-items: center; height: 36px; margin: 2px 0 3px; padding: 0 4px; border-radius: 10px; }
.split-row.current { background: var(--row-active); }
.split-pill { flex: 1; min-width: 0; height: 28px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-radius: 6px; font-size: 14px; text-align: left; color: var(--text-on-space); }
.split-pill:hover { background: var(--tile-hover); }
.split-pill.active { background: color-mix(in srgb, var(--text-on-space) 11%, transparent); }
.split-grip { flex: none; width: 14px; display: grid; place-items: center; color: var(--text-on-space-2); }

.folder { display: flex; flex-direction: column; }
.folder-title { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; margin: 2px 0 3px; padding: 0 9px; border-radius: 10px; text-align: left; color: var(--text-on-space); font-size: 14px; line-height: 19px; }
.folder-title:hover { background: var(--tile-hover); }
.folder-title.drop-into { background: color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: inset 0 0 0 2px var(--accent); }
.folder-icon { flex: none; width: 18px; height: 18px; display: grid; place-items: center; overflow: visible; }
.folder-glyph { display: block; flex: none; transform: translateY(-1px); }
.folder-glyph.open { transform: translateY(1px); }
.fg-tint { fill: var(--folder-tint); }
.fg-body { fill: var(--folder-body); stroke: var(--folder-line); }
.folder-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-count { flex: none; color: var(--text-on-space-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.folder-body { display: grid; grid-template-rows: 0fr; grid-template-columns: minmax(0, 1fr); margin-left: 16px; transition: grid-template-rows 0.2s cubic-bezier(0.3, 0.3, 0.5, 1); }
.folder-body.expanded { grid-template-rows: 1fr; }
.folder-body-inner { list-style: none; margin: 0; padding: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.folder-body:not(.expanded) .folder-body-inner { visibility: hidden; }

.today-head { display: flex; align-items: center; gap: 8px; height: 32px; margin: 6px 0 0; padding: 0 9px; color: var(--text-on-space-2); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.today-head.drop-zone, .space-header.drop-zone { box-shadow: inset 0 -2px 0 0 var(--accent); }
.today-all { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; min-height: 28px; padding: 0 8px; border-radius: 6px; color: var(--text-on-space-2); font: 600 12px/1 var(--font-ui); letter-spacing: 0; text-transform: none; }
.today-all:hover { background: var(--tile-hover); color: var(--text-on-space); }
.new-tab { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; margin: 2px 0 3px; padding: 0 9px; border-radius: 10px; text-align: left; color: var(--text-on-space-2); font-size: 14px; }
.new-tab:hover { background: var(--tile-hover); color: var(--text-on-space); }
.new-tab .plus { flex: none; width: 18px; height: 18px; display: inline-grid; place-items: center; }
.new-tab-key { margin-left: auto; font: 400 12px/1 var(--font-ui); letter-spacing: 0.04em; color: var(--text-on-space-2); }
.today-empty { display: grid; gap: 2px; margin: 10px 8px 0; padding: 10px 8px; text-align: center; color: var(--text-on-space-2); font-size: 12px; line-height: 1.4; }
.today-empty b { color: var(--text-on-space); font-size: 13px; }

.sb-footer { flex: none; display: flex; align-items: center; justify-content: space-between; height: 51px; padding: 9px 8px; }
.footer-sides { display: flex; gap: 0; }
.footer-side { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--text-on-space-2); }
.footer-side:hover { background: var(--tile-hover); color: var(--text-on-space); }
.footer-side .ring-track { stroke-opacity: 0.35; }
.spaces { display: flex; gap: 2px; margin: 0 auto; }
.space { width: 34px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; line-height: 1; filter: grayscale(1); opacity: 0.6; }
.space:hover { opacity: 0.9; background: var(--tile-hover); }
.space.current { filter: none; opacity: 1; background: color-mix(in srgb, var(--text-on-space) 9%, transparent); }
.space.drop-into { filter: none; opacity: 1; box-shadow: inset 0 0 0 2px var(--accent); }
.space:focus-visible { outline-offset: -2px; opacity: 1; }

.drag-ghost {
  position: fixed; left: 0; top: 0; z-index: 80; display: flex; align-items: center; gap: 8px; height: 36px; margin: 0; padding: 0 9px; list-style: none;
  border-radius: 10px; background: var(--overlay); color: var(--text); box-shadow: var(--shadow); font-size: 14px; pointer-events: none;
}
.drag-ghost .tab-main { display: flex; align-items: center; gap: 8px; }
.drag-ghost .tab-button { display: none; }

/* ---------- toasts (sidebar.css .toast) ---------- */
.toasts { position: fixed; z-index: 70; left: 8px; bottom: 60px; width: calc(var(--sb-w) - 17px); display: grid; gap: 6px; }
.toast {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 6px 8px 12px; border-radius: 10px; overflow: hidden;
  background: var(--overlay); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; line-height: 1.35;
  animation: toast-in 0.16s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.toast-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.toast-detail { display: block; margin-top: 2px; font-weight: 400; color: var(--text-2); }
.toast-action { flex: none; min-height: 28px; padding: 0 10px; border-radius: 7px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; }
.toast-close { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--text-2); }
.toast-close:hover { background: var(--tile-hover); color: var(--text); }
.toast-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform-origin: left; animation: toast-time var(--toast-ms, 5s) linear forwards; }
.toast:hover .toast-timer, .toast:focus-within .toast-timer { animation-play-state: paused; }
@keyframes toast-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .toast-timer { display: none; } }

/* ---------- menus and popovers (the app's context menu and « Thème » panel) ---------- */
.menu, .popover { position: fixed; z-index: 75; min-width: 220px; max-width: min(340px, calc(100vw - 16px)); padding: 5px; border-radius: 10px; background: var(--overlay); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); font: 13px/1.3 var(--font-ui); }
.menu { display: grid; }
.menu [role='menuitem'] { display: block; width: 100%; min-height: 28px; padding: 5px 10px; border-radius: 6px; text-align: left; }
.menu [role='menuitem']:hover, .menu [role='menuitem']:focus { background: var(--accent); color: var(--on-accent); outline: none; }
.menu .danger { margin-top: 4px; position: relative; }
.menu .danger::before { content: ''; position: absolute; left: 6px; right: 6px; top: -3px; height: 1px; background: var(--line); }
.popover { width: 280px; padding: 12px; }
.appearance-choice { display: flex; margin: 0; padding: 3px; border: 0; border-radius: 9px; background: var(--tile); }
.appearance-choice legend { float: left; width: 100%; margin: 0 0 8px; padding: 0; font-weight: 600; font-size: 13px; }
.appearance-choice label { flex: 1; position: relative; }
.appearance-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.appearance-choice span { display: block; padding: 5px 0; border-radius: 7px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.appearance-choice input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-s); }
.appearance-choice input:focus-visible + span { outline: var(--focus-width) solid var(--accent); outline-offset: 1px; }
.popover-note { margin: 10px 2px 0; color: var(--text-2); font-size: 12px; line-height: 1.4; }

/* ---------- the web view ---------- */
.webview { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0 8px 8px 0; }
:root.sidebar-hidden .webview { margin-left: 8px; }
.wv-top { position: sticky; top: 0; z-index: 20; padding-top: 8px; background: var(--frame) fixed; }
.wv-toolbar {
  display: flex; align-items: center; gap: 4px; height: 40px; padding: 0 8px; border-radius: 10px 10px 0 0;
  background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--text-2);
}
.wv-nav, .wv-tools { display: flex; align-items: center; gap: 2px; flex: none; }
.wv-tools { justify-content: flex-end; min-width: 132px; }
.wv-icon { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--text-2); }
.wv-icon:hover:not(:disabled) { background: var(--tile); color: var(--text); }
.wv-icon:disabled { opacity: 0.4; }
.wv-icon[aria-pressed='true'] { background: var(--accent-soft); color: var(--accent-text); }
.wv-show-sidebar { display: none; }
:root.sidebar-hidden .wv-show-sidebar { display: grid; }
.wv-address {
  flex: 1; min-width: 0; max-width: 560px; height: 30px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 8px; color: var(--text); font-size: 13px; font-weight: 500;
}
.wv-address:hover { background: var(--tile); }
.wv-lock { display: inline-grid; color: var(--text-3); }
.wv-host { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wv-lang { min-width: 30px; height: 30px; padding: 0 6px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; color: var(--text-2); }
.wv-lang:hover { background: var(--tile); color: var(--text); }

.panes { position: relative; display: flex; gap: 6px; flex: 1; min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); }
.pane { flex: 1 1 0; min-width: 0; container-type: inline-size; background: var(--surface); border-radius: 0 0 10px 10px; }
.pane[hidden] { display: none; }
.panes.split .pane { border-radius: 0 0 10px 10px; }
.panes.split[data-ratio='30'] .pane-a { flex-grow: 3; } .panes.split[data-ratio='30'] .pane-b { flex-grow: 7; }
.panes.split[data-ratio='50'] .pane-a { flex-grow: 1; } .panes.split[data-ratio='50'] .pane-b { flex-grow: 1; }
.panes.split[data-ratio='70'] .pane-a { flex-grow: 7; } .panes.split[data-ratio='70'] .pane-b { flex-grow: 3; }
.panes.split .pane.focused { box-shadow: 0 0 0 2px var(--accent); }
.pane-b { position: sticky; top: 48px; align-self: flex-start; }
.demo-frame { display: block; width: 100%; height: calc(100vh - 56px); height: calc(100dvh - 56px); border: 0; border-radius: 0 0 10px 10px; background: var(--page-ground); }
.pane-a .demo-frame { position: sticky; top: 48px; }
.layout-bar {
  position: fixed; z-index: 30; bottom: 16px; left: calc(var(--sb-w) + (100% - var(--sb-w)) / 2); transform: translateX(-50%);
  display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--overlay); border: 1px solid var(--line); box-shadow: var(--shadow); font: 600 12px/1 var(--font-ui);
}
.layout-bar[hidden] { display: none; }
.layout-bar button { min-height: 28px; padding: 0 11px; border-radius: 999px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.layout-bar button:hover { background: var(--tile); color: var(--text); }
.layout-bar button[aria-pressed='true'] { background: var(--accent); color: var(--on-accent); }

.mobile-bar { display: none; }
.scrim { display: none; }

/* ---------- the command bar (command-bar.css: always dark, 640 px, 18 px corners) ---------- */
:root.cb-open body { overflow: hidden; }
.cb-backdrop { position: fixed; inset: 0; z-index: 90; background: var(--cb-backdrop); }
.palette {
  color-scheme: dark; position: absolute; left: 50%; top: clamp(24px, 14vh, 140px); transform: translateX(-50%); width: min(640px, calc(100% - 16px));
  display: flex; flex-direction: column; max-height: calc(100% - 48px); overflow: hidden; border-radius: 18px; border: 1px solid var(--c-edge);
  background: var(--c-surface); color: var(--c-text); box-shadow: var(--c-shadow); font: 13px/1.45 var(--font-ui);
}
.palette.cb-wide { width: min(720px, calc(100% - 16px)); }
.palette :focus-visible { outline: 2px solid var(--cb-accent); outline-offset: 2px; }
.palette kbd { display: inline-block; min-width: 18px; padding: 1px 5px; border: 1px solid var(--c-kbd-line); border-radius: 5px; background: var(--c-surface-2); color: var(--c-text-2); font: 600 11px/1.4 var(--font-ui); text-align: center; }
.palette-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 8px 16px; }
.palette-search { flex: none; display: grid; color: var(--c-text-3); }
.palette-input { flex: 1; min-width: 0; min-height: 28px; padding: 0; border: 0; background: transparent; color: var(--c-text); font-size: 17px; line-height: 1.3; caret-color: var(--cb-accent); }
.palette-input:focus-visible { outline: 0; }
.palette-input::placeholder { color: var(--c-text-3); opacity: 1; }
.cb-strip-close { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--c-tile); color: var(--c-text-2); }
.cb-chips { display: flex; padding: 0 14px 10px 16px; }
.cb-genres { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-genres button { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 10px; border: 1px solid var(--c-line); border-radius: 999px; color: var(--c-text-2); font-size: 11px; font-weight: 600; }
.cb-genres button:hover { background: var(--c-tile); color: var(--c-text); }
.cb-genres button[aria-pressed='true'] { border-color: transparent; background: var(--cb-chip-on); color: var(--c-text); }
.cb-genres kbd { min-width: 0; padding: 0 4px; }
.cb-body { display: grid; grid-template-columns: minmax(0, 1fr); flex: 1 1 auto; min-height: 0; border-top: 1px solid var(--c-line); }
.palette.cb-wide .cb-body { grid-template-columns: minmax(0, 1fr) 250px; }
.results { margin: 0; padding: 6px 8px 8px; list-style: none; max-height: min(380px, calc(100vh - 260px)); overflow-y: auto; }
.cb-section { padding: 10px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-text-3); }
.results [role='option'] { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 8px; border-radius: 9px; color: var(--c-text); cursor: default; }
.results [role='option'][aria-selected='true'] { background: var(--cb-selected); box-shadow: inset 2px 0 0 var(--cb-accent); }
.cb-icon { flex: none; width: 18px; height: 18px; display: grid; place-items: center; color: var(--c-text-2); }
.cb-icon img { border-radius: 4px; }
.cb-label { flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cb-detail { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text-3); }
.cb-kbd { flex: none; margin-left: auto; padding: 2px 8px; border-radius: 6px; background: var(--c-tile); color: var(--c-text); font-size: 11.5px; font-weight: 600; }
.cb-empty { padding: 18px 10px; color: var(--c-text-2); }
.cb-preview { display: grid; align-content: start; gap: 8px; padding: 12px; border-left: 1px solid var(--c-line); }
.cb-big { display: grid; place-items: center; min-height: 104px; border-radius: 12px; background: var(--c-well); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cb-sum { color: var(--c-text-3); font-size: 12px; }
.cb-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 9px 16px; border-top: 1px solid var(--c-line); color: var(--c-text-3); font-size: 12px; }
.cb-foot kbd { margin-right: 2px; }

/* ---------- the page in the web view: Familjen Grotesk ---------- */
.page { --pad-top: clamp(28px, 6.2cqi, 84px); --pad-x: clamp(20px, 6.2cqi, 84px); font-family: var(--font-page); color: var(--text); font-size: var(--page-size); line-height: var(--page-leading); letter-spacing: var(--page-tracking); padding: var(--pad-top) var(--pad-x) 40px; }
.page[hidden] { display: none; }
.page h1, .page h2, .page h3 { font-weight: 700; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
/* The titles speak the brand (Anybody); the text below them stays in the face of the page (Familjen Grotesk). */
.page h1, .page h2 { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); }
.page h2 { font-size: var(--h2-size); line-height: var(--h2-leading); }
.page h3, .page h4 { font-family: var(--font-h3); font-weight: var(--h3-weight); letter-spacing: var(--h3-tracking); }
.page h3 { font-size: var(--h3-size); line-height: 1.25; }
.page p { margin: 0; max-width: 36em; }
.page p + p { margin-top: 0.75em; }
.page a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.page a:hover { text-decoration-thickness: 2px; }
.page strong { font-weight: 650; }
.page kbd, .kbd {
  display: inline-block; min-width: 1.6em; padding: 0.05em 0.4em; border-radius: 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px;
  background: var(--surface-2); color: var(--text); font: 600 0.82em/1.35 var(--font-ui); text-align: center; vertical-align: 0.08em; white-space: nowrap;
}
.page code, .page pre { font-family: var(--mono); font-size: 0.86em; }
.lede { font-size: var(--lede-size); line-height: var(--lede-leading); color: var(--text); max-width: 31em; }
.muted { color: var(--text-2); }
.section { margin-top: clamp(64px, 9cqi, 120px); }
.page h2 + p, .page h2 + .lede { margin-top: 16px; }

/* ---------- the header of the site, at the top of the page in the web view (data/window.mjs, siteHeader) ---------- */
/* Any site shown in Lucium has a header of its own: lucium.app's says its pages in words, at the size of reading. It scrolls with the page,
   and nothing of the window moves for it. On the home page it lies on the field of the space with the first screen under it (.on-space: the
   inks of the frame, assets/spaces.css); elsewhere on the page, over a rule. The page being read is marked by more than a colour: the tile
   behind its name and a bar under it (the download, an underline). What it shows follows the width of the page (container queries: right in
   the split view too): one line beside the sidebar, the name then the download left out as room runs short; two lines on a phone.
   --site-head-h is its height on one line (two on a phone), which the first screen of the home page leaves to it. */
.site-page { padding-top: 0; --site-head-h: 65px; }
.site-head {
  --sh-pad: 12px;
  display: flex; align-items: center; gap: 4px 16px; min-height: var(--site-head-h);
  margin: 0 calc(-1 * var(--pad-x)) clamp(28px, 5cqi, 64px); padding: 10px calc(var(--pad-x) - var(--sh-pad));
  border-bottom: 1px solid var(--line); color: var(--text);
}
.site-head.on-space { margin-bottom: 0; background: var(--frame) fixed; color: var(--text-on-space); border-bottom-color: color-mix(in srgb, var(--text-on-space) 12%, transparent); }
.site-head .sh-brand { flex: none; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 var(--sh-pad); border-radius: 10px; color: inherit; text-decoration: none; }
.site-head .sh-brand .fan { flex: none; width: 27px; height: 22px; }
.sh-wordmark { font: var(--wordmark-weight) 21px/1 var(--wordmark-font); font-stretch: var(--wordmark-stretch); letter-spacing: var(--wordmark-tracking); white-space: nowrap; }
.sh-nav { flex: 1 1 auto; min-width: 0; }
.sh-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; margin: 0; padding: 0; list-style: none; }
.site-head .sh-link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sh-pad); border-radius: 10px;
  color: inherit; font: 600 16px/1.1 var(--font-page); text-decoration: none; white-space: nowrap;
}
.site-head :is(.sh-brand, .sh-link):hover { background: var(--tile-hover); }
.site-head .sh-link[aria-current='page'] { background: var(--tile-active); }
.site-head .sh-link[aria-current='page']::after { content: ''; position: absolute; left: var(--sh-pad); right: var(--sh-pad); bottom: 7px; height: 2px; border-radius: 2px; background: var(--accent); }
.sh-list .sh-get-item { margin-left: auto; }
.site-head .sh-get {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px;
  background: var(--button-bg); color: var(--button-fg); font: var(--button-weight) 15px/1.1 var(--font-page); text-decoration: none; white-space: nowrap;
}
.site-head .sh-get:hover { background: var(--button-hover); }
.site-head.on-space .sh-get { background: var(--space-button-bg); color: var(--space-button-fg); }
.site-head.on-space .sh-get:hover { background: var(--space-button-hover); }
.site-head .sh-get[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.sh-get svg { flex: none; }
/* Beside the sidebar, the name is in its header and the download among the favourites (and on the first screen of the home page). The menu
   and the download take 610 px of a page in French (530 in English), the name 165 more: the thresholds keep some room for both. */
@container (max-width: 899px) { .site-head .sh-brand { display: none; } }
@container (max-width: 699px) { .site-head { --sh-pad: 9px; } .site-head .sh-link { font-size: 15.5px; } .sh-list .sh-get-item { display: none; } }
@container (max-width: 559px) { .site-head { --sh-pad: 6px; } .site-head .sh-link { font-size: 14.5px; } .sh-list { gap: 0; } }
/* A phone: the favourites are in the drawer, the header is the menu at hand: the links at the size of reading, on two lines, the download last. */
@media (max-width: 760px) {
  .site-page { --site-head-h: 101px; }
  .site-head { --sh-pad: 10px; min-height: 0; padding-block: 6px; gap: 0; }
  .site-head .sh-link { font-size: 16px; }
  .sh-list .sh-get-item { display: block; }
  .site-head .sh-get { padding: 0 14px; }
}
@media (max-width: 360px) {
  .site-head { --sh-pad: 7px; }
  .site-head .sh-link { font-size: 15px; }
  .site-head .sh-get { padding: 0 12px; }
  .site-head .sh-get svg { display: none; }
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px;
  background: var(--button-bg); color: var(--button-fg) !important; font: var(--button-weight) var(--button-size)/1 var(--font-page); text-decoration: none !important; white-space: nowrap;
}
.button:hover { background: var(--button-hover); }
/* On the field of the space the button takes the button of the space (assets/spaces.css, --space-button-*). */
.hero.on-space .button { background: var(--space-button-bg); color: var(--space-button-fg) !important; }
.hero.on-space .button:hover { background: var(--space-button-hover); }
.button.quiet { background: var(--tile); color: var(--text) !important; }
.button.quiet:hover { background: var(--tile-hover); }
.button svg { flex: none; }
/* On a narrow phone a long label (« Télécharger Lucium 1.0.0 pour Mac » is 330 px) goes on two lines instead of out of the screen. */
@media (max-width: 760px) { .button { max-width: 100%; padding-block: 8px; white-space: normal; text-align: center; text-wrap: balance; } }

/* The hero: the sentence is laid out as it says, the tabs to the left (against the sidebar), the web to the right. */
.hero { display: grid; gap: clamp(20px, 3cqi, 36px); }
/* Each half of the sentence holds on one line, set where it says: the tabs on the left, the web on the right. */
.hero h1 { font-size: var(--hero-size); line-height: var(--hero-leading); letter-spacing: var(--hero-tracking); font-weight: var(--hero-weight); font-stretch: var(--hero-stretch); }
.hero h1 span { display: block; }
.hero h1 .to-right { text-align: right; }
.hero .lede { margin-top: clamp(4px, 1cqi, 12px); }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.get p { font-size: var(--small-size); line-height: 1.45; color: var(--text-2); max-width: 30em; }

/* A group as in the app's Settings: rows, a label and its explanation on the left, the control on the right. */
.group { margin: 24px 0 0; padding: 0; list-style: none; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); max-width: 52em; }
.group > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 24px; padding: 16px 18px; }
.group > li + li { border-top: 1px solid var(--line); }
.group h3 { font-size: var(--page-size); }
.group p { grid-column: 1; font-size: var(--small-size); line-height: 1.45; color: var(--text-2); max-width: 34em; }
.group .row-control { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
.group .row-control button { min-height: 36px; padding: 0 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); font: 600 14px/1.2 var(--font-ui); text-align: center; max-width: 320px; text-wrap: balance; }
.group .row-control button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-text); }
.group .row-control button:disabled { color: var(--text-3); border-style: dashed; }
@container (max-width: 640px) {
  .group > li { grid-template-columns: minmax(0, 1fr); }
  .group .row-control { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
}

.split-2 { display: grid; grid-template-columns: minmax(0, 30em) minmax(0, 1fr); gap: clamp(24px, 5cqi, 64px); align-items: start; }
@container (max-width: 820px) { .split-2 { grid-template-columns: minmax(0, 1fr); } }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), var(--shadow-s); background: var(--surface-2); }
.shot figcaption { margin-top: 10px; font-size: var(--meta-size); line-height: 1.4; color: var(--text-2); max-width: 40em; }
.shot-button { display: block; width: 100%; padding: 0; border-radius: 10px; cursor: zoom-in; }

.facts { display: grid; gap: 0; margin: 24px 0 0; max-width: 46em; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 4px 16px; padding: 12px 18px; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--text-2); }
@container (max-width: 560px) { .facts > div { grid-template-columns: minmax(0, 1fr); } }

.icons { display: flex; flex-wrap: wrap; gap: 20px 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.icons li { display: grid; justify-items: center; gap: 6px; width: 84px; font-size: 13px; color: var(--text-2); text-align: center; }
.icons img { width: 64px; height: 64px; }

.page-foot { margin-top: clamp(72px, 10cqi, 128px); padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 24px; font-size: var(--meta-size); color: var(--text-2); }
.page-foot h2 { font: 700 var(--meta-size)/1.3 var(--font-page); letter-spacing: 0; color: var(--text); margin-bottom: 8px; }
.page-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.page-foot a { color: var(--text-2); }
.page-foot a:hover { color: var(--accent); }
.page-foot p { font-size: var(--meta-size); }
/* Who designs and maintains Lucium, first and in the ink of the text: the logo of the agency, then the sentence that names it. */
.page-foot .foot-author { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--text); }
.page-foot .foot-author a { color: var(--text); font-weight: 650; text-decoration: underline; text-underline-offset: 0.18em; }
.page-foot .foot-author a:hover { color: var(--accent); }
.page-foot .foot-logo { display: block; flex: none; box-sizing: content-box; width: 48px; height: 28px; padding: 3px 5px; border-radius: 8px; background: var(--logo-ground); }
@container (max-width: 720px) { .page-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .page-foot > :first-child { grid-column: 1 / -1; } }

/* ---------- a phone: the sidebar is a drawer, its foot a bar under the thumb ---------- */
@media (max-width: 760px) {
  /* The bar of the spaces sits over the foot of the screen: what takes the focus (or an anchor) stops above it, not under it. */
  :root { --sb-w: min(320px, 86vw); scroll-padding-top: 56px; scroll-padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .window { display: block; }
  .sidebar {
    position: fixed; z-index: 60; inset: 0 auto 0 0; width: var(--sb-w); transform: translateX(-104%); visibility: hidden;
    background: var(--frame); box-shadow: var(--shadow); transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), visibility 0s linear 0.22s;
  }
  :root.drawer-open .sidebar { transform: none; visibility: visible; transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1); }
  :root.drawer-open .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: var(--scrim); }
  :root.drawer-open body { overflow: hidden; }
  .sidebar .sb-footer { display: none; }
  .webview { margin: 0 6px; }
  :root.sidebar-hidden .webview { margin-left: 6px; }
  .wv-top { padding-top: 6px; }
  .wv-toolbar { height: 44px; padding: 0 4px; gap: 2px; }
  .wv-show-sidebar { display: grid; }
  .wv-nav { display: none; }
  .wv-tools { min-width: 0; }
  .wv-tools [data-action='split'] { display: none; }
  .wv-icon { width: 36px; height: 36px; }
  .wv-address { justify-content: flex-start; padding: 0 8px; background: var(--tile); }
  .panes { min-height: calc(100dvh - 50px - 62px); }
  .demo-frame { height: calc(100dvh - 50px - 62px); }
  .pane-a .demo-frame { top: 50px; }
  .mobile-bar {
    position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    background: var(--frame) fixed; color: var(--text-on-space);
  }
  .mobile-bar .spaces { gap: 6px; }
  .mobile-bar .space { width: 46px; height: 44px; font-size: 20px; border-radius: 12px; }
  .mobile-bar .footer-side { width: 44px; height: 44px; border-radius: 12px; }
  .toasts { left: 8px; right: 8px; width: auto; bottom: 72px; }
  .layout-bar { display: none; }
  .page { --pad-top: 28px; --pad-x: 18px; font-size: var(--page-size-phone); padding-bottom: 32px; }
  .hero h1 { font-size: var(--hero-size-phone); }
  .palette { top: 8px; }
  .palette.cb-wide .cb-body { grid-template-columns: minmax(0, 1fr); }
  .cb-preview { display: none; }
  .cb-foot { display: none; }
  .tab-button { width: 32px; height: 32px; }
}

/* ---------- home: the four shots, the icons ---------- */
.shots-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 28px; max-width: 64em; }
@container (max-width: 560px) { .shots-4 { grid-template-columns: minmax(0, 1fr); } }
.icons-title { margin-top: 40px; font-size: 17px; }
.icons { margin-top: 14px; }
.more-link { margin-top: 28px; }
.list-intro { margin-top: 20px; }
.after-facts { margin-top: 14px; font-size: var(--small-size); }
.final .get { margin-top: 18px; }
/* Badge Product Hunt, servi par le site (aucune requête vers Product Hunt). Deux copies, clair et sombre : le thème suit le choix du visiteur (data-theme) ou, en Auto, le système. */
.ph-badge { margin-top: 18px; }
.get .ph-badge { margin-top: 0; } /* the badge under the download text: the row gap spaces it */
.ph-badge a { display: inline-block; max-width: 100%; line-height: 0; }
.ph-badge img { display: block; width: 196px; max-width: 100%; height: auto; }
.ph-badge .ph-dark { display: none; }
:root[data-theme='dark'] .ph-badge .ph-light { display: none; }
:root[data-theme='dark'] .ph-badge .ph-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .ph-badge .ph-light { display: none; } :root:not([data-theme='light']) .ph-badge .ph-dark { display: block; } }
.final .get p { max-width: 36em; }

/* ---------- the home page reads the palette of the space (a page may, in Lucium: « Thème aux sites ») ---------- */
/* Under the header of the site, on the same field: the two fill the first screen. */
.hero.on-space {
  margin: 0 calc(-1 * var(--pad-x)); padding: clamp(20px, 4.4cqi, 60px) var(--pad-x) clamp(28px, 4cqi, 48px);
  min-height: calc(100vh - 56px - var(--site-head-h)); min-height: calc(100dvh - 56px - var(--site-head-h)); align-content: start;
  background: var(--frame) fixed; color: var(--text-on-space); border-radius: 0 0 10px 10px;
}
.hero.on-space .get p { color: var(--text-on-space-2); }
.hero.on-space .lede { color: var(--text-on-space); }
.hero.on-space kbd { background: var(--frame-kbd); border-color: color-mix(in srgb, var(--text-on-space) 30%, transparent); color: var(--text-on-space); }
.hero-spaces { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: auto; padding-top: clamp(24px, 4cqi, 56px); font-size: var(--small-size); color: var(--text-on-space-2); }
.hero-spaces p { margin: 0; }
.hero-spaces .spaces { margin: 0; gap: 6px; flex-wrap: wrap; }
.hero-spaces .space {
  width: auto; height: 40px; padding: 0 12px 0 9px; gap: 6px; display: inline-flex; align-items: center; border-radius: 11px; filter: none; opacity: 1;
  background: var(--chip-bg); color: var(--text-on-space); font: 600 14px/1 var(--font-ui); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-on-space) 14%, transparent);
}
.hero-spaces .space:hover { background: var(--chip-bg-hover); }
.hero-spaces .space.current { background: var(--chip-current-bg); color: var(--chip-current-fg); box-shadow: var(--shadow-s); }
.hero-space-emoji { font-size: 17px; }
.hs-more { flex-basis: 100%; }
.hero { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
/* The empty part of the first screen, where the fan opens once before it goes to the header of the sidebar. */
.fan-stage { min-height: clamp(110px, 19vh, 260px); }
/* Without an opening to play (already seen, reduced motion, no WebGL) or once it is over, the stage keeps no room: the spaces come up under the button. */
:root[data-fan-still] .fan-stage { display: none; }
:root[data-fan-still] .hero.on-space { min-height: 0; }
@media (prefers-reduced-motion: reduce) { .fan-stage { display: none; } .hero.on-space { min-height: 0; } }
.hero-spaces { margin-top: 0; padding-top: 0; }

/* The sweep of a new space: the browser's view transition, clipped from the side the space lies on. */
:root.wiping { transition: none; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: wipe-next 0.6s cubic-bezier(0.3, 0.85, 0.25, 1); }
:root[data-wipe='prev']::view-transition-new(root) { animation-name: wipe-prev; }
@keyframes wipe-next { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes wipe-prev { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 760px) {
  .hero.on-space { min-height: calc(100dvh - 112px - var(--site-head-h)); }
  /* Under the two-line header of a phone the empty part of the first screen pushed the line « Neuf espaces, neuf couleurs » past the fold
     (857 px for 844 at 390 px): a smaller stage, so that the line is in the first screen. The fan opens in the room that is left. */
  .fan-stage { min-height: clamp(72px, 11vh, 140px); }
  :root[data-fan-still] .hero.on-space { min-height: 0; }
  .hero-spaces .space { height: 44px; padding: 0 12px 0 10px; font-size: 14px; }
}

.on-phone { display: none; }
@media (max-width: 760px) { .on-wide { display: none; } .on-phone { display: inline; } }

/* ---------- the fan of the logo (sidebar-render.js `fan`): the rays turn about the hub, at the origin of the viewBox ---------- */
.fan { display: block; overflow: visible; }
.fan .ray { transform-box: view-box; transform-origin: 0 0; transform: rotate(var(--ang)); }
.fan .r1 { fill: var(--r1); --ang: -56deg; }
.fan .r2 { fill: var(--r2); --ang: -28deg; }
.fan .r3 { fill: var(--r3); --ang: 0deg; }
.fan .r4 { fill: var(--r4); --ang: 28deg; }
.fan .r5 { fill: var(--r5); --ang: 56deg; }
.fan-hub { fill: var(--hub); stroke: var(--hub-ring); stroke-width: 12; }
.fan-core { fill: var(--fan-core); }
/* On a dark ground the hub of a dark palette would vanish: a faint ring (--hub-ring) keeps its edge. */
/* A new space: the fan closes on its hub and opens again in the new colours. */
@keyframes fan-unfold { from { transform: rotate(0deg) scale(0.18); } to { transform: rotate(var(--ang)) scale(1); } }
.fan.unfold .ray { animation: fan-unfold 0.52s cubic-bezier(0.34, 1.45, 0.52, 1) both; }
.fan.unfold .r1, .fan.unfold .r5 { animation-delay: 0.05s; }
@keyframes fan-hub-in { from { transform: scale(0.4); } to { transform: none; } }
.fan.unfold .fan-hub, .fan.unfold .fan-core { transform-box: view-box; transform-origin: 0 0; animation: fan-hub-in 0.3s ease-out both; }
/* Before the opening hands over: nothing but the point of light, which the opening brings. */
.fan.waiting .ray { transform: rotate(0deg) scale(0); }
.fan.waiting .fan-hub, .fan.waiting .fan-core { opacity: 0; }

/* ---------- the brand, where the title of a window sits ---------- */
.sb-brand { display: flex; align-items: center; gap: 8px; min-width: 0; margin-left: 18px; color: var(--text-on-space); }
.sb-brand .fan { flex: none; width: 29px; height: 24px; }
.sb-wordmark { font: var(--wordmark-weight) var(--wordmark-size)/1 var(--wordmark-font); font-stretch: var(--wordmark-stretch); letter-spacing: var(--wordmark-tracking); white-space: nowrap; }
.wv-site-fan { display: none; }
.wv-site-fan .fan { width: 20px; height: 17px; }

/* ---------- the header of a space opens its menu (Sidebar.tsx, space-header-button) ---------- */
.space-header.has-menu { padding: 0; }
.space-header-button { display: flex; align-items: center; gap: 4px; width: 100%; height: 36px; padding: 0 5px; border-radius: 10px; text-align: left; font: inherit; color: inherit; }
.space-header-button:hover, .space-header-button[aria-expanded='true'] { background: var(--tile-hover); }
.space-header-button:focus-visible { outline-offset: -2px; }
.menu .sep { margin-top: 4px; position: relative; }
.menu .sep::before { content: ''; position: absolute; left: 6px; right: 6px; top: -3px; height: 1px; background: var(--line); }

/* ---------- more spaces than room: the row scrolls, as in the app (sidebar.css .spaces) ---------- */
.sb-footer .spaces, .mobile-bar .spaces { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.sb-footer .spaces::-webkit-scrollbar, .mobile-bar .spaces::-webkit-scrollbar { display: none; }
.sb-footer .space, .mobile-bar .space { flex: none; }

/* ---------- the opening of the fan: a canvas over the window that takes no pointer, gone after two seconds ---------- */
.fan-opening { position: fixed; inset: 0; z-index: 85; width: 100vw; height: 100vh; pointer-events: none; }

/* ---------- a phone: the fan of the site in the address bar ---------- */
@media (max-width: 760px) {
  .wv-address.on-site .wv-lock { display: none; }
  .wv-address.on-site .wv-site-fan { display: inline-grid; place-items: center; }
  .mobile-bar .spaces { margin: 0 6px; }
}

/* ---------- the favourites of the site: each tile takes its colour from the tokens, the glyph is white ---------- */
.favorite[data-fav='home'] { --fav-tile: var(--fav-home); }
.favorite[data-fav='features'] { --fav-tile: var(--fav-features); }
.favorite[data-fav='privacy'] { --fav-tile: var(--fav-privacy); }
.favorite[data-fav='community'] { --fav-tile: var(--fav-community); }
.favorite[data-fav='changelog'] { --fav-tile: var(--fav-changelog); }
.favorite[data-fav='faq'] { --fav-tile: var(--fav-faq); }
.favorite[data-fav='download'] { --fav-tile: var(--fav-download); }
.fav-tile { fill: var(--fav-tile); }
.fav-glyph { fill: var(--fav-glyph); }
.fav-line { fill: none; stroke: var(--fav-glyph); }
.fav-cut { fill: none; stroke: var(--fav-tile); }

/* ---------- the home page: the links of the first screen read on its field; the two halves under the features ---------- */
.hero.on-space a:not(.button) { color: var(--text-on-space); text-decoration-thickness: 1px; }
.page .small { font-size: var(--small-size); line-height: 1.45; color: var(--text-2); }
.pair-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5cqi, 64px); max-width: 64em; }
.pair-2 .shot { margin-bottom: 22px; }
.pair-2 h2 { font-size: clamp(23px, 2.6cqi, 30px); }
@container (max-width: 760px) { .pair-2 { grid-template-columns: minmax(0, 1fr); } }
.final-links { margin-top: 18px; font-size: var(--small-size); color: var(--text-2); }

/* ---------- the film: a facade, a link to the video that holds its local poster (assets/site.js swaps it for the player on a click) ---------- */
.film { margin: 40px 0 0; max-width: 46em; }
.film-frame { overflow: hidden; border-radius: 12px; background: var(--surface-2); aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line), var(--shadow-s); }
.film-facade { position: relative; display: block; width: 100%; height: 100%; }
.film-facade:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: -4px; }
.film-facade img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; left: 20px; bottom: 20px; }
.film-play circle { fill: var(--button-bg); }
.film-play path { fill: var(--button-fg); }
.film-facade:hover .film-play circle, .film-facade:focus-visible .film-play circle { fill: var(--button-hover); }
.film-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.film figcaption, .film-note { margin-top: 10px; font-size: var(--meta-size); line-height: 1.4; color: var(--text-2); }
.film-note { margin-top: 4px; }
.film-transcript { margin-top: 8px; font-size: var(--meta-size); }
.film-transcript summary { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.film-transcript ol { display: grid; gap: 6px; margin: 8px 0 0; color: var(--text-2); }
