/* Spcxtaa design system: Contour, Zenith version. The one shared copy, and since 3.0.0 the one look.
   It is copied into every product by kits/design/copy.mjs. It defines the variables every product's
   own styles are built on, and Zenith's own below them (surfaces, depth, skies).

   Zenith is light and open. One sun stands directly overhead: the tops of things catch the light,
   shadows fall straight down, and every page is a stage with a horizon. Surfaces are white and
   raised on soft shadows, corners are round, and a world can bring its own sky (the .sky-* classes)
   under the same sun, type and shapes.
   Three type voices, each with one job:
   - Archivo reads: body, small headings, controls. Its width axis sets controls slightly wide
     (font-stretch 106% to 112%).
   - Spcxtaa Display sets headlines, figures, codes and small capital labels, in capitals.
   - Spcxtaa Wordmark names: "spcxtaa", its divisions, products and projects, in lowercase.
   Color: red (--accent) is the mark and the one main call to action on a page. Every other main
   action is an ink fill (--action). Blue is focus, green is done, amber is waiting, crimson is
   danger. The wider palette (--blue, --green, --amber, --violet, --cyan) marks things and draws
   backdrops, never body text. Gradients are for backgrounds only, never for content panels. */

/* 1. Fonts. The files sit beside this one, so nothing is fetched from another site. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('./fonts/archivo-latin-ext-wdth-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('./fonts/archivo-latin-wdth-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Spcxtaa Display'; font-weight: 400; font-display: swap; src: url('./fonts/SpcxtaaDisplay-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Spcxtaa Display'; font-weight: 700; font-display: swap; src: url('./fonts/SpcxtaaDisplay-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Spcxtaa Wordmark'; font-weight: 400; font-display: block; src: url('./fonts/SpcxtaaWordmark-Regular.woff2') format('woff2'); }

/* 2. Tokens: clear noon. Every text color passes 4.5:1 on --ground and --s1. */
:root {
  /* Zenith's own: the sky and what stands under it. */
  --sky: #edf0f4;
  --sky-hi: #fbfcfd;
  --floor: #e1e5eb;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --plate: #ffffff;
  --sunken: #e8ebf0;
  --highlight: rgba(255, 255, 255, .9);
  --shade: 14 20 32;
  --action: #0e1420;
  --action-hi: #273042;
  --on-action: #ffffff;
  /* A world's own color: its play button, steps and badges. At noon it is ink. */
  --tint: #0e1420;
  --tint-hi: #273042;
  --on-tint: #ffffff;
  --focus: #2f6bff;
  --danger: #b3202c;
  --danger-wash: #fbebec;
  --ok-wash: #e5f3ea;
  --ascii-ink: rgba(14, 20, 32, .62);
  /* The palette: marks and backdrops, never body text. */
  --blue: #2f6bff;
  --green: #12a35a;
  --amber: #f2a20c;
  --amber-deep: #c98200;
  --violet: #7b61ff;
  --cyan: #0ea5c6;
  /* Depth: light from straight above. */
  --r1: 10px;
  --r2: 14px;
  --r3: 22px;
  --r4: 34px;
  --pill: 999px;
  --lift-1: inset 0 1px 0 var(--highlight), 0 1px 2px rgb(var(--shade) / .06), 0 12px 24px -16px rgb(var(--shade) / .28);
  --lift-2: inset 0 1px 0 var(--highlight), 0 2px 4px rgb(var(--shade) / .05), 0 30px 56px -30px rgb(var(--shade) / .34);
  --lift-3: inset 0 1px 0 var(--highlight), 0 4px 10px rgb(var(--shade) / .06), 0 60px 110px -54px rgb(var(--shade) / .5);

  /* The names every look defines. */
  --ink: #0e1420;
  --ink-2: #394150;
  --ink-3: #576071;
  --line: rgba(14, 20, 32, .1);
  --line-2: rgba(14, 20, 32, .18);
  --accent: #e00b16;
  --accent-hi: #f5222d;
  --accent-ink: #ffffff;
  --ice: #1f55d8;
  --ok: #0f6b3b;
  --warn: #8a5a00;
  --warn-mark: #f2a20c;
  --on-art: #ffffff;
  --on-art-2: #dbe4f2;
  --glass: rgba(255, 255, 255, .72);
  --edge: none;
  --glow: rgba(47, 107, 255, .4);
  --field-line: rgba(14, 20, 32, .18);
  --field-line-hover: rgba(14, 20, 32, .3);
  --sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --tech: 'Spcxtaa Display', 'Archivo', ui-sans-serif, system-ui, sans-serif;
  --name: 'Spcxtaa Wordmark', 'Archivo', ui-sans-serif, sans-serif;
  --t-instant: 90ms;
  --t-fast: 140ms;
  --t-base: 280ms;
  --t-slow: 640ms;
  --t-cine: 1600ms;
  --t-float: 9s;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: linear(0, .039, .134, .258, .393, .524, .644, .748, .833, .901, .952, .989, 1.013, 1.028, 1.036, 1.038, 1.037, 1.034, 1.029, 1.024, 1.019, 1.014, 1.01, 1.007, 1.004, 1.002, 1.001, 1, .999, .999, .999, .999, .999, .999, .999, .999, .999, 1, 1, 1, 1);
  color-scheme: light;
}

/* 3. Skies. A page, or one part of it, takes a sky by class; everything under it follows.
   Light skies keep noon's inks; the dark ones (ember, rift, night) turn the inks and surfaces. */
.sky-clear { --sky: #dfeaf8; --sky-hi: #f6f9fd; --floor: #d3e0f0; --surface-2: #f2f6fb; --tint: #5fd02c; --tint-hi: #74dd44; --on-tint: #0b1a04; }
.sky-meadow { --sky: #dcecfb; --sky-hi: #f5faff; --floor: #d9efc9; --surface-2: #f1f7fd; --tint: #5fd02c; --tint-hi: #74dd44; --on-tint: #0b1a04; }
.sky-shore { --sky: #dcefee; --sky-hi: #f4fbfb; --floor: #f1e3d2; --surface-2: #f2f8f8; --tint: #ff7a2f; --tint-hi: #ff8d4b; --on-tint: #1d0b02; }
.sky-ember, .sky-rift, .sky-night {
  --surface: rgba(255, 255, 255, .06);
  --surface-2: rgba(255, 255, 255, .04);
  --sunken: rgba(0, 0, 0, .28);
  --highlight: rgba(255, 255, 255, .14);
  --shade: 0 0 0;
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .22);
  --glass: rgba(16, 18, 28, .62);
  --danger: #ff8a92;
  --danger-wash: rgba(255, 90, 100, .12);
  --ok: #6fdc9e;
  --ok-wash: rgba(80, 220, 150, .12);
  --ascii-ink: rgba(176, 196, 255, .62);
  --field-line: rgba(255, 255, 255, .22);
  --field-line-hover: rgba(255, 255, 255, .34);
  color-scheme: dark;
}
.sky-ember { --sky: #1d0b18; --sky-hi: #4a1630; --floor: #130610; --plate: #1a1424; --ink: #fff3ec; --ink-2: #e7cfc6; --ink-3: #c9a8a3; --tint: #ffc23d; --tint-hi: #ffd166; --on-tint: #1d0b02; --action: #fff3ec; --action-hi: #ffffff; --on-action: #1d0b18; --focus: #ffd166; }
.sky-rift { --sky: #0e0c22; --sky-hi: #2b2160; --floor: #08071a; --plate: #1a1424; --ink: #f2efff; --ink-2: #d2cdea; --ink-3: #aea8cc; --tint: #e8b84a; --tint-hi: #f3c965; --on-tint: #160f02; --action: #f2efff; --action-hi: #ffffff; --on-action: #0e0c22; --focus: #f3c965; }
.sky-night { --sky: #0b0e15; --sky-hi: #1e2636; --floor: #080a10; --plate: #131823; --ink: #f1f3f7; --ink-2: #cfd4dd; --ink-3: #a3abb9; --action: #f1f3f7; --action-hi: #ffffff; --on-action: #0b0e15; --focus: #8fb0ff; }
/* The shared names, from each sky's own. */
:root, .sky-clear, .sky-meadow, .sky-shore, .sky-ember, .sky-rift, .sky-night {
  --ground: var(--sky);
  --s1: var(--surface);
  --s2: var(--surface-2);
  --s3: var(--sunken);
  --s4: var(--floor);
  --danger-text: var(--danger);
  --info: var(--ice);
  --field-line-focus: var(--focus);
}

/* 4. Shared pieces */
.label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font: 400 12px/1.3 var(--tech); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
/* A name set in the logo's lettering: "spcxtaa" plus a division, product or project. */
.lockup { display: inline-flex; gap: .3em; margin: 0; font: 400 24px/1 var(--name); white-space: nowrap; color: var(--ink); }
.lockup b { font-weight: 400; color: var(--ink); }
/* Status marks: a small sun. Red by default; the other signals by class; .off is an outline. */
.gem { display: inline-block; flex-shrink: 0; width: 8px; height: 8px; box-sizing: border-box; border-radius: 50%; background: var(--accent); }
.gem.ok { background: var(--green); }
.gem.warn { background: var(--warn-mark); }
.gem.ice { background: var(--blue); }
.gem.off { background: transparent; border: 1.5px solid var(--ink-3); }

/* 5. App pieces (since 2.5.0). An app in Zenith puts the class z-app on its <html>, and everything below is
   under html.z-app, so the website, which never carries it, is untouched. html.z-app is one step stronger
   than an app's own rule for the same part, so the kit's look wins wherever the app had a rule of its own. The class names are the ones Cloud,
   Media and Assets already share in Atrium (the rail and its foot, sections, rows, buttons, fields,
   status marks, tabs, dialogs); an app whose markup names them otherwise maps its own onto this look.
   The look: noon sky behind, a floating white side menu, sections on raised white plates with round
   corners, rows parted by hairlines, pill buttons with an ink fill for the main action, round marks. */
html.z-app {
  --rail: 256px;
  --cut: 0px;
  /* Parts of one whole, by tone: the inks, darkest first. */
  --bar-1: #0e1420;
  --bar-2: #394150;
  --bar-3: #576071;
  --bar-4: #7a8394;
  --bar-5: #9aa3b2;
  --bar-rest: #b8c0cc;
  --bar-held: #d5dbe3;
  /* Parts that are things, such as projects: Atrium's order, checked for colour blindness, kept apart from
     the state colours. */
  --series-1: #009d9e;
  --series-2: #9d98f2;
  --series-3: #a8558a;
  --series-4: #3ca2e0;
  --series-rest: #576071;
}
html.z-app, html.z-app body { background: var(--sky) linear-gradient(180deg, var(--sky-hi), var(--sky) 420px) no-repeat; }
html.z-app .cut { clip-path: none; border-radius: var(--r2); }

/* The side menu: a white plate floating on the sky, its items pills. In admin mode it turns night. */
html.z-app .rail { background: var(--surface); border: 0; box-shadow: var(--lift-2); }
@media (min-width: 861px) {
  html.z-app .shell { grid-template-columns: calc(var(--rail) + 16px) minmax(0, 1fr); }
  html.z-app .rail { top: 16px; height: calc(100vh - 32px); margin: 16px 0 16px 16px; border-radius: var(--r3); }
}
/* On a phone the side menu is a drawer from the left edge, round on its open side. */
@media (max-width: 860px) {
  html.z-app .rail { border-radius: 0 var(--r3) var(--r3) 0; }
}
html.z-app .rail nav { padding: 0 12px; gap: 2px; }
html.z-app .rail nav a { min-height: 40px; padding: 9px 14px; border: 0; border-radius: var(--pill); font-size: 14.5px; font-stretch: 104%; transition: background var(--t-fast) var(--ease-out), color var(--t-fast); }
html.z-app .rail nav a:hover { background: var(--surface-2); color: var(--ink); }
html.z-app .rail nav a.active { background: var(--action); color: var(--on-action); font-weight: 600; }
html.z-app .rail nav a.active .code, html.z-app .rail nav a.active .count { color: var(--on-art-2); }
html.z-app .rail nav .nav-group { margin: 22px 14px 8px; }
html.z-app .shell.admin .rail { background: #131823; color: #f1f3f7; box-shadow: var(--lift-2), inset 0 1px 0 rgba(255, 255, 255, .08); }
html.z-app .shell.admin .rail nav a { color: #cfd4dd; }
html.z-app .shell.admin .rail nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
html.z-app .shell.admin .rail nav a.active { background: #f1f3f7; color: #0b0e15; }
html.z-app .admin-tag { border-radius: var(--pill); background: rgba(255, 255, 255, .14); color: #fff; font: 600 11px/1.3 var(--sans); letter-spacing: .04em; }
/* The top bar floats as a glass bar over the sky, as the website's header does: on a computer it lines up
   with the page's edges beside the side menu, so nothing runs edge to edge and stops at the menu. */
html.z-app .topbar { top: calc(12px + env(safe-area-inset-top, 0px)); min-height: 56px; margin: 12px 12px 0; padding-inline: 16px 12px; border: 0; border-radius: var(--r3); background: var(--glass); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: var(--lift-1); }
@media (min-width: 861px) {
  html.z-app .topbar { top: 16px; margin: 16px clamp(20px, 4vw, 64px) 0; max-width: calc(1320px - 2 * clamp(20px, 4vw, 64px)); padding-inline: 24px 16px; }
}
html.z-app .avatar, html.z-app .rail-avatar { border-radius: 50%; }
/* A count of what needs someone is crimson, the colour of problems; red stays the mark's. */
html.z-app .badge, html.z-app .rail-admin-count { border-radius: var(--pill); background: var(--danger); }
/* The arrow that opens a row is quiet: the whole row opens, so the arrow is a small chevron that darkens
   when the row is hovered, not a button of its own. */
html.z-app .go { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--ink-3); }
html.z-app a.row:hover .go, html.z-app button.row:hover .go, html.z-app .go-link:hover .go { background: none; border-color: transparent; color: var(--ink); }
/* Capitals label things; values read as words. Times, sizes and counts in rows are Archivo with even
   figures, and a link back is words. */
html.z-app .num, html.z-app .when { font-family: var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none; }
html.z-app .num small, html.z-app .when small { font: 400 12px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-3); }
html.z-app .when { color: var(--ink-2); font-size: 14px; }
html.z-app .back { font: 600 13.5px/1.2 var(--sans); font-stretch: 104%; letter-spacing: 0; text-transform: none; }

/* The name at the top of the side menu (3.0.0): the mark and the product's word, set from the left, so a longer word
   never moves anything; the foot gives the full name and the version. */
html.z-app .rail .brand { justify-content: flex-start; gap: 12px; padding-left: 28px; padding-right: 24px; }

/* The foot of the side menu: the same markup in every app (the design README). */
html.z-app .rail-foot { margin-top: auto; display: grid; gap: 14px; padding: 20px 24px calc(22px + env(safe-area-inset-bottom, 0px)); color: var(--ink); font: 400 14px/1.55 var(--sans); }
html.z-app .rail-foot [hidden] { display: none; }
html.z-app .rail-admin { display: grid; gap: 10px; }
html.z-app .rail-admin:empty { display: none; }
html.z-app .rail-admin-note { font: 400 9px/1.4 var(--tech); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
html.z-app .rail-admin-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; box-sizing: border-box; width: 100%; min-height: 42px; margin: 0; padding: 0 8px 0 16px; border: 0; border-radius: var(--pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); color: inherit; font: 600 13.5px/1.2 var(--sans); font-stretch: 106%; letter-spacing: 0; text-transform: none; text-decoration: none; cursor: pointer; transition: background var(--t-fast); }
html.z-app a.rail-admin-box { justify-content: center; padding: 0 16px; }
html.z-app .rail-admin-box:hover { background: var(--sunken); }
html.z-app .rail-admin-count { display: grid; place-items: center; min-width: 22px; height: 22px; box-sizing: border-box; padding: 0 6px; background: var(--danger); color: #fff; font: 600 11px/1 var(--sans); }
html.z-app .rail-me { display: flex; align-items: center; gap: 12px; min-width: 0; margin: -5px 0; padding: 5px 0; color: inherit; text-decoration: none; }
html.z-app .rail-me:hover .rail-name, html.z-app .rail-me[aria-current] .rail-name { text-decoration: underline 1px; text-underline-offset: 3px; }
html.z-app .rail-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; background: var(--action); color: var(--on-action); font: 400 11px/1 var(--tech); letter-spacing: .08em; }
html.z-app .rail-who { display: grid; min-width: 0; }
html.z-app .rail-name, html.z-app .rail-username { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.z-app .rail-name { font-weight: 600; }
html.z-app .rail-username { color: var(--ink-2); font-size: 12px; }
html.z-app .rail-app { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font: 400 10px/1.4 var(--tech); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
html.z-app .rail-app code { font: inherit; letter-spacing: .08em; }
html.z-app .rail-foot.ink { color: #f1f3f7; }
html.z-app .rail-foot.ink .rail-admin-note, html.z-app .rail-foot.ink .rail-username, html.z-app .rail-foot.ink .rail-app { color: #a3abb9; }
html.z-app .rail-foot.ink .rail-app { border-top-color: rgba(255, 255, 255, .12); }
html.z-app .rail-foot.ink .rail-admin-box { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
html.z-app .rail-foot.ink .rail-admin-box:hover { background: rgba(255, 255, 255, .14); }
html.z-app .rail-foot.ink .rail-avatar { background: #f1f3f7; color: #0b0e15; }

/* Sections sit on raised white plates; their heading is a quiet capital label over a hairline. */
html.z-app .panel { margin-top: 24px; padding: 24px 28px 20px; background: var(--surface); border-radius: var(--r3); box-shadow: var(--lift-1); }
html.z-app .panel-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
html.z-app .panel-head h2, html.z-app .part-head { font: 700 13px/1.4 var(--tech); letter-spacing: .16em; color: var(--ink); }
html.z-app .part-head { border-bottom: 1px solid var(--line); }

/* Rows: a table on a wide screen, parted by hairlines; a row that opens something lifts on hover. */
html.z-app .row { border-top-color: var(--line); }
html.z-app .row.head { font: 400 10px/1.4 var(--tech); letter-spacing: .16em; color: var(--ink-3); }
html.z-app button.row, html.z-app a.row { border-radius: var(--r1); }
html.z-app button.row:hover, html.z-app a.row:hover { background: var(--surface-2); }

/* Buttons: pills. The main action is an ink fill; the rest are white with a hairline ring. */
html.z-app .button { min-height: 42px; padding: 0 18px; border: 0; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font: 600 14px/1.2 var(--sans); font-stretch: 106%; letter-spacing: 0; text-transform: none; clip-path: none; transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) var(--ease-out); }
html.z-app .button:hover:not(:disabled) { background: var(--surface-2); }
html.z-app .button.primary { padding-right: 18px; background: var(--action); color: var(--on-action); box-shadow: var(--lift-1); clip-path: none; }
html.z-app .button.primary:hover:not(:disabled) { background: var(--action-hi); transform: translateY(-1px); }
html.z-app .button.primary:focus-visible { background: var(--action); outline: 2px solid var(--focus); outline-offset: 3px; }
html.z-app .button.danger { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 45%, transparent); color: var(--danger); }
html.z-app .button.quiet { background: transparent; box-shadow: none; color: var(--ink-2); }
html.z-app .button.quiet:hover:not(:disabled) { background: var(--surface-2); color: var(--ink); }
html.z-app .button.menu { width: 44px; padding: 0; }

/* Fields: soft wells with round corners; the focus is a blue ring. A .control is the well around its
   input (Cloud and Media); a bare field is its own well. */
html.z-app .control, html.z-app :where(input:not([type=checkbox], [type=radio], [type=range], [type=file]), select, textarea) { border: 1px solid var(--field-line); border-radius: var(--r2); background-color: var(--surface-2); box-shadow: none; }
html.z-app .control:focus-within, html.z-app :where(input:not([type=checkbox], [type=radio], [type=range], [type=file]), select, textarea):focus { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); outline: none; }
html.z-app .control input, html.z-app .control select { border: 0; border-radius: 0; background: none; box-shadow: none; }
/* A switch (role="switch", Media's .toggle) is a pill with a round knob; on is green. */
html.z-app .toggle { border: 0; border-radius: var(--pill); background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line-2); }
html.z-app .toggle i { top: 4px; left: 4px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(var(--shade) / .3); }
html.z-app .toggle[aria-checked="true"] { background: var(--green); box-shadow: none; }
html.z-app .toggle[aria-checked="true"] i { background: #fff; }

/* Status marks: a small round sun and words. Tags are pills. */
html.z-app .status { font: 500 13px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
html.z-app .status i { width: 8px; height: 8px; border-radius: 50%; }
html.z-app .status.live i { background: var(--blue); }
html.z-app .tag { padding: 3px 10px; border: 0; border-radius: var(--pill); background: var(--sunken); color: var(--ink-2); font: 600 11px/1.3 var(--sans); font-stretch: 106%; letter-spacing: 0; text-transform: none; }

/* Tabs are pills on the sky; the current one is ink. A switch is a sunken track with a raised choice. */
html.z-app .tabs { gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
html.z-app .tabs button { min-height: 36px; padding: 0 14px; border-radius: var(--pill); box-shadow: none; font: 600 13.5px/1 var(--sans); font-stretch: 106%; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
html.z-app .tabs button:hover { background: var(--surface-2); }
html.z-app .tabs button.active { background: var(--action); color: var(--on-action); box-shadow: none; }
html.z-app .tabs button.active b { color: var(--on-art-2); }
html.z-app .switch { gap: 2px; padding: 3px; border: 0; border-radius: var(--pill); background: var(--sunken); }
html.z-app .switch button { min-height: 34px; padding: 0 14px; border-radius: var(--pill); font: 600 13px/1 var(--sans); font-stretch: 106%; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
html.z-app .switch button.active { background: var(--surface); color: var(--ink); box-shadow: var(--lift-1); }
html.z-app .switch button.active .count { color: var(--ink-3); }

/* Field labels read in words, not capitals. Meters are round-ended. A notice that needs someone is a
   tinted plate. */
html.z-app .field > span, html.z-app .field-label { font: 600 13px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
html.z-app progress, html.z-app progress::-webkit-progress-bar { border-radius: var(--pill); }
html.z-app progress::-webkit-progress-value { border-radius: var(--pill); }
html.z-app progress::-moz-progress-bar { border-radius: var(--pill); }
html.z-app .note.warn, html.z-app .note.signal { border: 0; border-radius: var(--r2); background: #fdf3dc; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn-mark) 45%, transparent); }
html.z-app .note.signal { background: var(--danger-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 35%, transparent); }

/* Dialogs float highest; admin mode's is night. */
html.z-app .dialog { border: 0; border-radius: var(--r4); box-shadow: var(--lift-3); background: var(--surface); }
html.z-app .dialog.admin { background: #131823; color: #f1f3f7; }
html.z-app .toast { border-radius: var(--pill); box-shadow: var(--lift-2); }

/* Skeletons (since 2.6.0): a quiet shape standing where something is still loading, or where a picture did not come,
   so a screen never shows a blank hole. Its size comes from where it stands; .line is a line of text, .round a
   mark or a face, .still a shape that stays (a picture that failed). It stops moving for anyone who asked for less
   motion. */
html.z-app .skeleton { display: block; border-radius: var(--r1); background: linear-gradient(90deg, var(--sunken) 0%, var(--surface-2) 45%, var(--sunken) 90%) 0 0 / 300% 100%; animation: z-skeleton 1.6s ease-in-out infinite; }
html.z-app .skeleton.line { height: .8em; border-radius: 6px; }
html.z-app .skeleton.round { border-radius: 50%; }
html.z-app .skeleton.still { animation: none; background: var(--sunken); }
@keyframes z-skeleton { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { html.z-app .skeleton { animation: none; } }
