/* Florir V2 tokens. Rules and usage: DESIGN.md. Every component in both themes, live: library.html.
   Four layers, each "florir", "twain" or "luft" (the app from 11.11.2026), so a duel can swap one thing at a time:
     data-palette  colors
     data-type     fonts and weights
     data-form     radii, card edges, labels and icon stroke
     data-mark     wordmark and flower
   Put all four on the same element (Florir.brand(el, "twain") in screens.js does it). Some tokens read another
   layer's token, and that only resolves right when the layers sit on one element.
   Colors are light-dark(light, dark) and follow color-scheme: light by default, dark from the system unless
   <html data-theme="light">, forced with <html data-theme="dark">, and data-mode="light|dark" pins one frame.
   Blocks: 1 font, 2 mode, 3 constants, 4 palette, 5 type, 6 form, 7 mark. */

/* ---------- 1. Font: Outfit, local, OFL (fonts/LICENSE-outfit.txt) ---------- */
@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- 2. Mode ---------- */
:root { color-scheme: light; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}
:root[data-theme="dark"] { color-scheme: dark; }
[data-mode="light"] { color-scheme: light; }
[data-mode="dark"] { color-scheme: dark; }

/* ---------- 3. Constants: the same in both themes (iPhone points, 1 CSS px = 1 pt) ---------- */
:root {
  --fs-large: 34px;    /* large title, one per screen */
  --fs-title: 28px;    /* screen title under a back button */
  --fs-h2: 22px;       /* card titles, the question */
  --fs-h3: 20px;
  --fs-body: 17px;     /* body, rows, buttons */
  --fs-callout: 16px;
  --fs-sub: 15px;      /* meta lines, segmented control */
  --fs-foot: 13px;     /* footnotes, dates, credits */
  --fs-cap: 12px;      /* tab labels, eyebrow labels (Florir) */
  --lh-body: 1.41;     /* 24/17 */
  --lh-snug: 1.27;
  --lh-tight: 1.2;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --gutter: 16px;      /* screen side margin */

  --r-pill: 999px;     /* everything you can press */
  --r-tag: 8px;
  --r-display: 47px;   /* iPhone 15 display corner */
  --tap: 44px;         /* smallest tap target */
  --status-h: 47px;
  --home-h: 34px;

  --bezel: #0E0E10;    /* the device around the screen, not part of the app */
  --error: light-dark(#A4262C, #FFB4AB);  /* red means error and nothing else */
  --media-scrim: rgb(0 0 0 / 45%);        /* round buttons on top of photos */
  --media-shade: rgb(0 0 0 / 58%);        /* behind text on video: white holds 5.3:1 even over white pixels */
  --on-media: #FFFFFF;
  --on-media-track: rgb(255 255 255 / 35%);  /* the scrub track on top of video */

  --dur: 200ms;
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* Motion (Emil Kowalski's rules, DESIGN.md): what comes in eases out, what moves on the screen eases in and out,
     a sheet has the drawer curve, a press answers in 140 ms. Nothing eases in, and nothing in the UI is over 300 ms
     except a sheet. */
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --dur-press: 140ms;
  --dur-sheet: 420ms;
  --ill-draw: 600ms;   /* a stroke drawing on, in drawings (tegning.js) */
}

/* ---------- 4. Palette ---------- */
/* Florir: offwhite, forest green and sage. Sage marks the next step. */
[data-palette="florir"] {
  --bg: light-dark(#FAFAF6, #121814);
  --surface: light-dark(#FFFFFF, #1B231E);
  --surface-2: light-dark(#F1F2EC, #242E27);
  --ink: light-dark(#1F2B24, #EEF1EC);
  --heading: light-dark(#304D3C, #D5E3D8);
  --muted: light-dark(#4F5B53, #B4BFB7);
  --faint: light-dark(#5F6A62, #A3AFA6);
  --hairline: light-dark(rgb(48 77 60 / 14%), rgb(238 241 236 / 12%));

  --action-bg: light-dark(#304D3C, #BFD8C5);   /* one primary button per card */
  --action-ink: light-dark(#FFFFFF, #10201A);
  --selected-bg: light-dark(#304D3C, #BFD8C5);
  --selected-ink: light-dark(#FFFFFF, #10201A);
  --progress: light-dark(#304D3C, #A9CDB3);
  --track: light-dark(rgb(48 77 60 / 16%), rgb(238 241 236 / 16%));

  --next-bg: light-dark(#E6ECE2, #243328);
  --next-ink: light-dark(#1F2B24, #EEF1EC);
  --next-muted: light-dark(#4F5B53, #B4BFB7);
  --next-action-bg: light-dark(#304D3C, #BFD8C5);
  --next-action-ink: light-dark(#FFFFFF, #10201A);
  --next-progress: light-dark(#304D3C, #A9CDB3);
  --next-track: light-dark(rgb(48 77 60 / 18%), rgb(238 241 236 / 16%));
  --next-stamp: light-dark(#D3DDCD, #2C3F31);   /* the faint stamp in the next step, tone in tone */

  --glass: light-dark(rgb(255 255 255 / 72%), rgb(27 35 30 / 72%));
  --glass-edge: light-dark(rgb(48 77 60 / 12%), rgb(238 241 236 / 12%));
  --focus: light-dark(#304D3C, #BFD8C5);

  --ill-line: var(--ink);                       /* drawings: the line */
  --ill-tone: light-dark(#E3E9DF, #2E3A32);     /* the disc and the tone under the line */
  --ill-paper: var(--surface);                  /* shapes filled inside the line */
  --ill-past: light-dark(#B7C2B9, #5B6A60);     /* what she has talked about */
  --ill-now: var(--next-bg);                    /* what she talks about now */
}

/* Twain: cream, butter and coal from the Twain OS day palette, as a fixed theme. Dark is the night phase.
   Butter means "this is your next step" and is used for nothing else. */
[data-palette="twain"] {
  --bg: light-dark(#F9F6EB, #252836);
  --surface: light-dark(#FDFCF9, #2E3242);
  --surface-2: light-dark(#F3EFE0, #383D50);
  --ink: light-dark(#2C2C2C, #F2EFE4);
  --heading: light-dark(#2C2C2C, #F2EFE4);
  --muted: light-dark(#5D574C, #B9BDCB);
  --faint: light-dark(#676155, #AEB2C1);
  --hairline: light-dark(rgb(44 44 44 / 10%), rgb(242 239 228 / 10%));

  --action-bg: light-dark(#2C2C2C, #F2EFE4);
  --action-ink: light-dark(#FFFFFF, #2C2C2C);
  --selected-bg: light-dark(#2C2C2C, #F2EFE4);
  --selected-ink: light-dark(#FFFFFF, #2C2C2C);
  --progress: light-dark(#2C2C2C, #F2EFE4);
  --track: light-dark(rgb(44 44 44 / 16%), rgb(242 239 228 / 18%));

  --next-bg: light-dark(#FDD861, #E3D89A);
  --next-ink: light-dark(#2C2C2C, #1F2230);
  --next-muted: light-dark(#4A4640, #3A3D4A);
  --next-action-bg: light-dark(#2C2C2C, #1F2230);
  --next-action-ink: light-dark(#FFFFFF, #F2EFE4);
  --next-progress: light-dark(#2C2C2C, #1F2230);
  --next-track: light-dark(rgb(44 44 44 / 18%), rgb(31 34 48 / 22%));
  --next-stamp: light-dark(#F4C63A, #D6C87C);   /* the faint stamp in the next step, tone in tone */

  --glass: light-dark(rgb(253 252 249 / 72%), rgb(46 50 66 / 72%));
  --glass-edge: light-dark(rgb(44 44 44 / 10%), rgb(242 239 228 / 12%));
  --focus: light-dark(#2C2C2C, #F2EFE4);

  /* Drawings: the tones are the Twain OS chart tones (--series-track, --series-3), so a drawing sits on cream
     like a chart does. Butter behind what she talks about now, as for the next step. */
  --ill-line: var(--ink);
  --ill-tone: light-dark(#EAE5D3, #3F4457);
  --ill-paper: var(--surface);
  --ill-past: light-dark(#C9C4B4, #6E7388);
  --ill-now: var(--next-bg);
}

/* Mørkegrønn (F2, chosen by Markus 12.10.2026 in duel 10; design/merge-plan-10.md). Off-white, forest green and light
   text on the green. The values are the PALETTES entry in duell-9.html / duell-10.html, written out with the same
   derivation as css() there: the green is the next step (--next-*), and the ink is the logo and the text. The landing,
   the app (main.js), the app icon and the launch screen use it. In dark mode the green is lighter, or the button would
   vanish into the background. */
[data-palette="morkegronn"] {
  --bg: light-dark(#F5F5EE, #0F1712);
  --surface: light-dark(#FCFCF8, #17211A);
  --surface-2: light-dark(#ECEDE3, #1F2B23);
  --ink: light-dark(#1F3427, #ECEFE7);
  --heading: var(--ink);
  --muted: light-dark(#4F5C53, #B1BCB2);
  --faint: light-dark(#59665D, #A5B1A7);
  --hairline: light-dark(rgb(31 52 39 / 11%), rgb(236 239 231 / 11%));

  --action-bg: var(--ink);
  --action-ink: light-dark(#FFFFFF, #0F1712);
  --selected-bg: var(--ink);
  --selected-ink: var(--action-ink);
  --progress: var(--ink);
  --track: light-dark(rgb(31 52 39 / 16%), rgb(236 239 231 / 16%));

  --next-bg: light-dark(#24513A, #376F50);
  --next-ink: #F3F1E6;
  --next-muted: #F3F1E6;
  --next-action-bg: #F3F1E6;
  --next-action-ink: light-dark(#24513A, #376F50);
  --next-progress: #F3F1E6;
  --next-track: rgb(243 241 230 / 20%);
  --next-stamp: light-dark(#2E6247, #3D7858);   /* the faint stamp in the next step, tone in tone. Dark was #417D5C in duel 10: 4.30:1 under the text on it, now 4.6:1 */

  --glass: light-dark(rgb(252 252 248 / 72%), rgb(23 33 26 / 72%));
  --glass-edge: light-dark(rgb(31 52 39 / 10%), rgb(236 239 231 / 10%));
  --focus: var(--ink);

  --ill-line: var(--ink);
  --ill-tone: light-dark(#E3E8DC, #26342B);
  --ill-paper: var(--surface);
  --ill-past: light-dark(#B7C2B4, #5B6B60);
  /* "Now" is the next-step green, but light in light mode: the line is dark ink, and on #24513A it held 1.5:1.
     #A8D5BA holds 8.2:1 under the line. Dark is --next-bg, 5.1:1 under the light line. */
  --ill-now: light-dark(#A8D5BA, #376F50);
}

/* Duel option: butter as the next step on the Florir palette (row M5). */
[data-next="butter"] {
  --next-bg: light-dark(#FDD861, #E3D89A);
  --next-ink: light-dark(#2C2C2C, #1F2230);
  --next-muted: light-dark(#4A4640, #3A3D4A);
  --next-action-bg: light-dark(#2C2C2C, #1F2230);
  --next-action-ink: light-dark(#FFFFFF, #F2EFE4);
  --next-progress: light-dark(#2C2C2C, #1F2230);
  --next-track: light-dark(rgb(44 44 44 / 18%), rgb(31 34 48 / 22%));
  --next-stamp: light-dark(#F4C63A, #D6C87C);   /* the faint stamp in the next step, tone in tone */
}

/* ---------- 4b. Luft: the atmospheres (11.11.2026, design/luft.html) ----------
   Markus 11.11: no accent colours, other main colours beside green, and the play of colour in a sky with a white
   card in front of it. So each palette here is one scene: the main hue as a pale sky (--sky, --sky-2), a warm light
   low in it (--glow), cloud-white surfaces, and the hue's own deep shade as the ink and the one action. There is no
   second hue. Three roles: deep is what you press (--action-*), the pale hue is what is chosen or going on now
   (--tint, --tint-2), white is what things lie on. Every text pair holds AA in both themes (tests/luft.test.mjs).
   The values are worked out in OKLCH from the hue of each (tools/luft-farger.mjs writes this block). */
[data-palette="eng"] {
  --sky: light-dark(#C6E2CC, #113121); --sky-2: light-dark(#E0EFE3, #0E2016); --glow: light-dark(#FDF4DB, #0E2016);
  --bg: light-dark(#F6F9F6, #08120D); --surface: light-dark(#FDFEFD, #132018); --surface-2: light-dark(#E9F2EB, #1C2C23);
  --tint: light-dark(#D6ECDA, #223E2E); --tint-2: light-dark(#C0DDC6, #345642); --ink: light-dark(#133624, #EBF3EC);
  --muted: light-dark(#425549, #B2C3B6); --faint: light-dark(#4B5B51, #A3B3A6); --action-bg: light-dark(#123422, #C6E4CD);
  --action-top: light-dark(#224B35, #DAF0DF); --action-ink: light-dark(#F7FBF8, #001C0D); --ill-past: light-dark(#B5C1B8, #4F5F55);
}
[data-palette="himmel"] {
  --sky: light-dark(#C3DCF6, #1A2947); --sky-2: light-dark(#DEECFB, #121C2D); --glow: light-dark(#FFF0CF, #121C2D);
  --bg: light-dark(#F6F8FB, #0A101A); --surface: light-dark(#FDFEFF, #151C2A); --surface-2: light-dark(#E9F0F8, #1F2838);
  --tint: light-dark(#D3E8FD, #283652); --tint-2: light-dark(#BDD8F3, #3A4D6F); --ink: light-dark(#162746, #EAF1F8);
  --muted: light-dark(#455065, #B1C0CF); --faint: light-dark(#4D5768, #A1B0BF); --action-bg: light-dark(#152544, #C3DEF9);
  --action-top: light-dark(#253A60, #D9ECFF); --action-ink: light-dark(#F7FBFE, #061432); --ill-past: light-dark(#B4BFCA, #515B6D);
}
[data-palette="sjo"] {
  --sky: light-dark(#BBE2E3, #043039); --sky-2: light-dark(#DAEFF0, #091F24); --glow: light-dark(#FFEFD1, #091F24);
  --bg: light-dark(#F4F9F9, #061215); --surface: light-dark(#FCFEFE, #0F1F23); --surface-2: light-dark(#E6F2F3, #182B30);
  --tint: light-dark(#CEECEE, #193C44); --tint-2: light-dark(#B5DDDF, #2A545E); --ink: light-dark(#002E37, #E7F3F3);
  --muted: light-dark(#3D545A, #ADC3C4); --faint: light-dark(#475A5F, #9DB3B4); --action-bg: light-dark(#002C35, #BBE4E6);
  --action-top: light-dark(#09424D, #D2F0F2); --action-ink: light-dark(#F6FBFC, #001A21); --ill-past: light-dark(#B1C1C2, #4B5F64);
}
[data-palette="syrin"] {
  --sky: light-dark(#DBD4F2, #292449); --sky-2: light-dark(#EBE8F9, #1B182E); --glow: light-dark(#FFEEE0, #1B182E);
  --bg: light-dark(#F8F7FB, #0F0E1B); --surface: light-dark(#FEFDFF, #1C1A2B); --surface-2: light-dark(#F0EEF7, #272539);
  --tint: light-dark(#E7E1FA, #353154); --tint-2: light-dark(#D6CFEF, #4B4771); --ink: light-dark(#272148, #F1EFF8);
  --muted: light-dark(#4E4C66, #BFBBCD); --faint: light-dark(#555469, #AFABBD); --action-bg: light-dark(#251F46, #DDD5F5);
  --action-top: light-dark(#393262, #EBE5FE); --action-ink: light-dark(#FAF9FE, #160E33); --ill-past: light-dark(#BEBBC9, #59586E);
}
[data-palette="morgen"] {
  --sky: light-dark(#F0D0D0, #411D28); --sky-2: light-dark(#F8E6E5, #2A141A); --glow: light-dark(#FFEFD5, #2A141A);
  --bg: light-dark(#FBF7F7, #180C0F); --surface: light-dark(#FFFDFD, #27171B); --surface-2: light-dark(#F8ECEC, #352126);
  --tint: light-dark(#F8DEDE, #4C2B35); --tint-2: light-dark(#ECCBCB, #683F4A); --ink: light-dark(#3F1A25, #F8EDED);
  --muted: light-dark(#61484E, #CBB8B8); --faint: light-dark(#665055, #BBA9A9); --action-bg: light-dark(#3E1824, #F3D1D1);
  --action-top: light-dark(#572A38, #FCE2E2); --action-ink: light-dark(#FEF9F8, #2A0714); --ill-past: light-dark(#C8BABA, #6A5459);
}
/* What the components read, the same in every atmosphere. */
:is([data-palette="eng"], [data-palette="himmel"], [data-palette="sjo"], [data-palette="syrin"], [data-palette="morgen"]) {
  --heading: var(--ink);
  --hairline: color-mix(in srgb, var(--ink) 9%, transparent);
  --selected-bg: var(--tint-2);   /* chosen is the pale hue, never the deep one: deep is for what you press */
  --selected-ink: var(--ink);
  --progress: var(--ink);
  --track: color-mix(in srgb, var(--ink) 12%, transparent);

  --next-bg: var(--tint-2);       /* what is going on now: the line being read, the point on the board */
  --next-ink: var(--ink);
  --next-muted: var(--ink);
  --next-action-bg: var(--action-bg);
  --next-action-ink: var(--action-ink);
  --next-progress: var(--ink);
  --next-track: color-mix(in srgb, var(--ink) 12%, transparent);
  --next-stamp: var(--tint);

  --glass: light-dark(color-mix(in srgb, var(--surface) 74%, transparent), color-mix(in srgb, var(--surface-2) 72%, transparent));
  --glass-edge: light-dark(rgb(255 255 255 / 70%), rgb(255 255 255 / 9%));
  --focus: var(--ink);

  --ill-line: var(--ink);
  --ill-tone: var(--surface-2);
  --ill-paper: var(--surface);
  --ill-now: var(--tint-2);

  /* The sky behind the app: the hue at the top, the warm light where a horizon would be, and the page colour under
     it. The light is one band across the whole width. (A brighter spot at the left, like a sun, read as a stain on
     pages with little on them, so there is none.) In the dark theme the light is the sky's own hue. The stops follow
     an ease curve, so no edge shows. */
  --backdrop:
    radial-gradient(170% 30% at 50% 66%, color-mix(in srgb, var(--glow) 88%, transparent) 0%, color-mix(in srgb, var(--glow) 46%, transparent) 46%, transparent 86%),
    linear-gradient(180deg, var(--sky) 0%, color-mix(in srgb, var(--sky) 70%, var(--sky-2)) 16%, var(--sky-2) 36%,
      color-mix(in srgb, var(--sky-2) 50%, var(--bg)) 56%, color-mix(in srgb, var(--sky-2) 16%, var(--bg)) 78%, var(--bg) 100%);
}

/* ---------- 5. Type ---------- */
/* Florir: ui-serif is New York on iPhone and in Safari, Georgia elsewhere. Text in the system font. */
[data-type="florir"] {
  --font-display: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --font-text: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --fw-display: 500;
  --fw-strong: 600;
  --tracking-display: -0.01em;
  --quote-style: italic;
}
/* Twain: Outfit everywhere, light titles. */
[data-type="twain"] {
  --font-display: "Outfit", "Avenir Next", Avenir, -apple-system, system-ui, sans-serif;
  --font-text: "Outfit", "Avenir Next", Avenir, -apple-system, system-ui, sans-serif;
  --fw-display: 300;
  --fw-strong: 500;
  --tracking-display: -0.02em;
  --quote-style: normal;
}

/* Luft: Outfit everywhere, titles in medium and drawn tight, so the deep ink carries the page. */
[data-type="luft"] {
  --font-display: "Outfit", "Avenir Next", Avenir, -apple-system, system-ui, sans-serif;
  --font-text: "Outfit", "Avenir Next", Avenir, -apple-system, system-ui, sans-serif;
  --fw-display: 500;
  --fw-strong: 500;
  --tracking-display: -0.022em;
  --quote-style: normal;
}

/* ---------- 6. Form ---------- */
/* Florir: white cards with a hairline, uppercase eyebrow labels. */
[data-form="florir"] {
  --r-card: 20px;
  --r-tile: 12px;
  --r-media: 16px;
  --card-bg: var(--surface);
  --inset-bg: var(--surface-2);    /* icon circles, fields and secondary buttons inside a card */
  --card-edge: var(--hairline);
  --label-case: uppercase;
  --label-tracking: .08em;
  --label-size: 12px;
  --label-weight: 600;
  --label-color: var(--heading);
  --icon-stroke: 1.75;
  --r-field: var(--r-tile);
  --btn-h: var(--tap);
  --card-shadow: none;
  --float-shadow: 0 8px 24px rgb(0 0 0 / 10%);
  --btn-shadow: none;
  --btn2-bg: var(--inset-bg);
  --btn2-shadow: inset 0 0 0 1px var(--hairline);
  --action-fill: var(--action-bg);
  --next-card: var(--next-bg);
  --next-action-fill: var(--next-action-bg);
  --field-bg: var(--inset-bg);
  --field-edge: var(--faint);
  --seg-bg: var(--surface-2);
  --seg-edge: var(--hairline);
  --seg-thumb: var(--selected-bg);
  --selected-edge: none;
  --press: 1;
  --seg-thumb-ink: var(--selected-ink);
  --seg-thumb-shadow: none;
  --chip-bg: transparent;
  --chip-shadow: inset 0 0 0 1px var(--hairline);
  --icon-disc: var(--inset-bg);
  --tab-on: var(--track);
  --row-thumb: 56px;
  --r-thumb: var(--r-tile);
  --field-pad: 14px;
  --splash-bg: var(--next-bg);
}
/* Twain: tone layers without borders, larger radii, labels in sentence case. */
[data-form="twain"] {
  --r-card: 24px;
  --r-tile: 16px;
  --r-media: 20px;
  --card-bg: var(--surface-2);
  --inset-bg: var(--surface);
  --card-edge: transparent;
  --label-case: none;
  --label-tracking: 0;
  --label-size: 15px;
  --label-weight: 500;
  --label-color: var(--muted);
  --icon-stroke: 1.75;   /* Twain OS: Lucide at 1.75 */
  --r-field: var(--r-tile);
  --btn-h: var(--tap);
  --card-shadow: none;
  --float-shadow: 0 8px 24px rgb(0 0 0 / 10%);
  --btn-shadow: none;
  --btn2-bg: var(--inset-bg);
  --btn2-shadow: inset 0 0 0 1px var(--hairline);
  --action-fill: var(--action-bg);
  --next-card: var(--next-bg);
  --next-action-fill: var(--next-action-bg);
  --field-bg: var(--inset-bg);
  --field-edge: var(--faint);
  --seg-bg: var(--surface-2);
  --seg-edge: var(--hairline);
  --seg-thumb: var(--selected-bg);
  --selected-edge: none;
  --press: 1;
  --seg-thumb-ink: var(--selected-ink);
  --seg-thumb-shadow: none;
  --chip-bg: transparent;
  --chip-shadow: inset 0 0 0 1px var(--hairline);
  --icon-disc: var(--inset-bg);
  --tab-on: var(--track);
  --row-thumb: 56px;
  --r-thumb: var(--r-tile);
  --field-pad: 14px;
  --splash-bg: var(--next-bg);
}

/* Luft: white cards that lie on the sky with a soft shadow, and radii that follow each other inwards: a card is 28,
   what lies 8 inside it is 20, a field is 16. The shadow has the palette's own ink in it, never black, and in the dark
   theme a card is lifted by being lighter and by a thin light on its upper edge instead. */
[data-form="luft"] {
  --r-card: 28px;
  --r-tile: 20px;
  --r-media: 20px;
  --r-field: 16px;
  --r-tag: 999px;
  --card-bg: var(--surface);
  --inset-bg: var(--surface-2);
  --card-edge: transparent;
  --label-case: none;
  --label-tracking: 0;
  --label-size: 15px;
  --label-weight: 500;
  --label-color: var(--muted);
  --icon-stroke: 1.75;

  --shade: light-dark(var(--ink), #000);
  --edge-light: inset 0 1px 0 light-dark(rgb(255 255 255 / 90%), rgb(255 255 255 / 7%));
  --card-shadow: var(--edge-light), 0 0 0 1px color-mix(in srgb, var(--shade) 5%, transparent),
    0 1px 2px color-mix(in srgb, var(--shade) 5%, transparent), 0 10px 28px -10px color-mix(in srgb, var(--shade) 16%, transparent);
  --float-shadow: var(--edge-light), 0 0 0 1px color-mix(in srgb, var(--shade) 6%, transparent),
    0 2px 6px color-mix(in srgb, var(--shade) 6%, transparent), 0 18px 40px -12px color-mix(in srgb, var(--shade) 26%, transparent);
  --btn-h: 50px;
  --btn-shadow: inset 0 1px 0 rgb(255 255 255 / 16%), 0 1px 2px color-mix(in srgb, var(--shade) 20%, transparent),
    0 8px 18px -8px color-mix(in srgb, var(--shade) 42%, transparent);
  --btn2-bg: var(--surface);
  --btn2-shadow: var(--edge-light), 0 0 0 1px color-mix(in srgb, var(--shade) 9%, transparent), 0 2px 6px -2px color-mix(in srgb, var(--shade) 12%, transparent);
  --action-fill: linear-gradient(180deg, var(--action-top), var(--action-bg));
  --next-card: var(--surface);
  --next-action-fill: var(--action-fill);
  --field-bg: var(--surface-2);
  --field-edge: transparent;
  --seg-bg: color-mix(in srgb, var(--ink) 7%, transparent);
  --seg-edge: transparent;
  --seg-thumb: light-dark(var(--surface), var(--tint-2));   /* in the dark the thumb is lighter than its track, like everything chosen */
  --press: .6;
  --selected-edge: inset 0 0 0 1.5px var(--ink);   /* the pale hue alone vanishes on the sky: what is chosen also has an edge of ink */
  --seg-thumb-ink: var(--ink);
  --seg-thumb-shadow: 0 0 0 1px color-mix(in srgb, var(--shade) 5%, transparent), 0 1px 2px color-mix(in srgb, var(--shade) 10%, transparent),
    0 4px 10px -4px color-mix(in srgb, var(--shade) 18%, transparent);
  --chip-bg: var(--surface);
  --chip-shadow: 0 0 0 1px color-mix(in srgb, var(--shade) 9%, transparent);
  --icon-disc: var(--tint);
  --tab-on: var(--tint);
  --row-thumb: 64px;
  --r-thumb: 16px;
  --field-pad: 16px;
  --splash-bg: var(--backdrop), var(--bg);
}

/* ---------- 7. Mark (placeholder flower, same drawing in both) ---------- */
[data-mark="florir"] {
  --mark-font: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --mark-size: 15px;
  --mark-weight: 600;
  --mark-case: uppercase;
  --mark-tracking: .2em;
  --mark-ink: light-dark(#304D3C, #D5E3D8);
  --mark-edge: transparent;
  --mark-pad: 0;
  --flower: light-dark(#6F8FD6, #8FA9E6);
  --stem: light-dark(#4D7A5A, #7FAA8A);
}
[data-mark="twain"] {
  --mark-font: "Outfit", "Avenir Next", Avenir, -apple-system, system-ui, sans-serif;
  --mark-size: 17px;
  --mark-weight: 300;
  --mark-case: lowercase;
  --mark-tracking: .02em;
  --mark-ink: light-dark(#2C2C2C, #F2EFE4);
  --mark-edge: currentColor;
  --mark-pad: 3px 12px 3px 9px;
  --flower: light-dark(#2C2C2C, #F2EFE4);
  --stem: light-dark(#2C2C2C, #F2EFE4);
}

[data-mark="luft"] {
  --mark-font: "Outfit", "Avenir Next", Avenir, -apple-system, system-ui, sans-serif;
  --mark-size: 20px;
  --mark-weight: 500;
  --mark-case: none;
  --mark-tracking: -0.02em;
  --mark-ink: var(--ink);
  --mark-edge: transparent;
  --mark-pad: 0;
  --flower: var(--ink);
  --stem: var(--ink);
}
