/* Inter, served from here (K-104e, Decision 55): the two subsets Google Fonts serves for this family, with the same
   unicode ranges, so a page loads nothing from another host — no address and no user agent reaches Google on a page
   load, which is the same promise the showcase site makes (K-103). The files never change, so they are cached for a
   year (register-static.ts) and are part of the app shell, which is why the camera and the binder open offline with
   their own type. Admin's font trial (K-85c) is the one thing that still fetches from Google, per browser, when it is
   turned on. Replacing the family: put the new subsets in app/fonts/ with their licence and change these two rules. */
@font-face{font-family:"Inter";font-style:normal;font-weight:300 800;font-display:swap;
  src:url(/fonts/inter-latin-ext.woff2) format("woff2");
  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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:300 800;font-display:swap;
  src:url(/fonts/inter-latin.woff2) format("woff2");
  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}

/* Design tokens. Everything in the UI reads these — the page (app/index.html) and the React views
   (packages/web) alike; no colour, radius or shadow is written anywhere else. Spec: PRD E-3, TECH.md §5.

   Three layers:
   1. Theme values: the light theme here, the dark one below (system setting, or data-theme).
   2. Semantic tokens: what a colour is for (background, complete, on the way, lent …). Components
      use these.
   3. Component tokens: set on the component's own class from the semantic ones (e.g. --vs-* on
      .mc-viewswitch, --ring-* on .mc-ring), so a component can be restyled in one place.

   The colours are the proposal Darkroom from the components page (packages/web/src/design/palettes.ts, Decision 21):
   neutral grey without a tint so the card art carries the colour, green for complete, blue for focus and on the way,
   tighter corners, strong blur. The
   price-cap coral stays as the user tuned it (E-15). A test keeps this file and the proposal the same. */

:root{
  /* ---------- surfaces and text ---------- */
  --bg:#E4E4E4;            /* the page */
  --surface:#F4F4F4;       /* panels, buttons, sheets */
  --ink:#262626;           /* text: a dark charcoal, not near-black (E-3, 2026-10-09: "slightly more gray"), 11.9:1 on the page */
  --muted:#646464;         /* secondary text */
  --line:#CBCBCB;          /* dividers, and the edges of panels and rows */
  --line-strong:#808080;   /* the edge of what is filled in or chosen — fields, chips, segmented choices: 3:1 on the background (E-3, WCAG 1.4.11); softened from #7A7A7A 2026-10-09 */
  /* a chip — the filter bar's, the filter sheet's and the property picker's: a surface pill with the strong edge */
  --chip-bg:var(--surface); --chip-line:var(--line-strong); --chip-ink:var(--ink);
  --pocket:#D6D6D6;        /* an empty pocket / missing card */
  /* The second pass under a raised mark (2026-10-28: "it shall feel embossed"): drawn a pixel down and right of the
     ink one, lighter than the surface here and darker than it on the dark theme, so the mark stands out of the
     surface in both rather than lying printed on it. */
  --emboss:#FFFFFF;
  --card-off:rgba(228,228,228,.85); /* over a card left out of a goal's section in the tree (K-22j): stronger than --card-dim, so out reads apart from missing */
  --card-dim:rgba(228,228,228,.6); /* over a card whose goal isn't met: the page's colour, so the card sinks into it; the image itself is never filtered (E-9b) */
  --card-dim-focus:rgba(228,228,228,.28); /* the same, lighter, over the carousel's card in focus — the one opened to be read (K-9, UI-valen FRG-4) */
  --card-turn-shade:rgba(0,0,0,.26); /* over a face turning away as a card is turned over (K-9d): black and not the page's colour, because this is light the face no longer catches, where --card-dim is a card sinking into the page */
  /* popovers, the toast, the hover tip and the offline chip (the pop level, below): dark in both themes (2026-10-08, "Do
     dark popovers"), a little lighter than the dark theme's so it isn't a hole in a light page; translucent for the blur */
  --popover:rgba(24,24,24,.93);
  --popover-line:#333333;
  --ink-on-light:#1B1B1B;  /* text on light accents (gold, amber) in both themes */
  /* help-only marks (the card sheet's add line, K-15c): a neutral pair readable on the page */
  --subtle-mark-bg:#D0D0D0; --subtle-mark-ink:#262626; --subtle-icon:var(--muted);

  /* ---------- meaning ---------- */
  --own:#276B43;           /* complete and owned: green, as a full ring should be (Decision 132) */
  --action:#E2B13C;        /* primary actions and the brand gold (the logo's front card, Decision 132) */
  --on-action:#141414;     /* text on --action: 9.3:1 */
  --action-ink:#755610;    /* gold as text or outline on the light page and surface: 5.3:1 on --bg, 5.9:1 on --surface */
  --part:#B9831C;          /* started, progress */
  --cap:#E35D52;           /* price cap, warnings, errors (light coral, as the user wanted): dots, marks and surfaces */
  --cap-ink:#B3372D;       /* the same red as text, an edge or a button's fill: 5.5:1 on a surface, 4.7:1 on the page (E-3) */
  --on-cap-ink:#FFFFFF;    /* text on a --cap-ink fill: 6.0:1 */
  --value-up:var(--own); --value-down:var(--cap-ink); /* a copy's change since it came in, up and down (K-13i) */
  --danger-strong:#9B2C24; /* a strong red fill under light ink (over 7:1): the − on a taken card while hovered, pressed or focused */
  /* The focus ring, and only that (--focus-ring). The page's own ink, never a colour of its own *(2026-10-31: "I
     think in general that we should remove all of these blue borders in the app. None of those shall be there. If we
     want to do a focus state ourselves, we do that with the mono color branded border")*: it is written as the ink
     token, so the ring takes the ink of whatever surface it is drawn on — the page, the dark popover, either theme. */
  --focus:var(--ink);
  --way:#1863BD;           /* on the way, pending — and the blue that marks what is chosen, dropped on or acted on (TOK-9) */
  --cart:#B5CCE8;          /* in the cart / on the way */
  --buy:#D9B65E;           /* to buy, changed by the cart */
  --check:#4FB07A;         /* the cart completes it */
  /* Profil's offline storage bar (K-104e): distinguishable in lightness, not hue alone. */
  --storage-goal:#3D7A55;
  --storage-set:#6B8F3A;
  --storage-cards:#4A6FA5;
  --storage-scanner:#8A6B4A;
  --storage-phone:#7A5A9A;
  --storage-other:#6B6B72;
  /* The price history's lines (K-92d): one colour per finish — the chart draws one currency at a time, so what the
     colours have to tell apart is plain, foil and etched, never euro from dollar. Measured rather than picked: every
     pair clears the OKLab ΔE floor under simulated protanopia and deuteranopia against this theme's panel, and the
     dark theme gets its own three steps below rather than the same hex on a darker ground. Blue and violet, the first
     choice, failed at ΔE 2.8. **Tritanopia is the exception**: the dark triple's worst pair is 5.3, under the floor,
     which is allowed only because identity never rests on colour here — the toggles are a labelled legend and the
     crosshair names each line. */
  --price-plain:#1F6FB2; --price-foil:#D1761E; --price-etched:#0A6B3C;
  --pricechart-h:104px;      /* the price chart's box: the same height whatever the card, so the panel never jumps */
  --pricekey-dot:9px;        /* a series' swatch in the legend and in the crosshair's tip */
  --pricecur-w:34px;         /* € and $ as equal-width chips, so the switch does not shift when it is pressed */
  --lent:#3FA0AA;          /* lent to a deck */
  --swap:var(--buy);       /* a copy of the wrong variant, to swap (K-32c): a square, apart from the cap's round dot */
  --cover:#2A2A2A;         /* the binder's cover */

  /* ---------- on images (cards) — the same in both themes ---------- */
  --login-foot-bg:#141414; --login-foot-ink:#FFFFFF; --login-foot-muted:rgba(255,255,255,.72); /* the sign-in page's foot, in both themes */
  --on-image:#FFFFFF;                  /* text and icons on card images */
  /* A dark plate on an image or the camera's picture: the disc behind rings and counts, the camera's round buttons, the
     cover's pencil. White ink on it over a white picture ≈ 9.4:1, over a black one ≈ 19:1. */
  --on-image-plate:rgba(18,18,18,.78);
  --on-image-plate-track:rgba(255,255,255,.18); /* a ring's track on the plate */
  --ring-done-on-image:#7FCB97;        /* a complete ring on an image */
  --ring-way-on-image:#CFE0F5;         /* on the way, on an image */
  --scan-bg:#000000;                   /* the camera's view (K-15b), dark in both themes */
  --scan-shade:rgba(0,0,0,.45);        /* outside the card's frame */
  --scan-shade-ring:0 0 0 100vmax var(--scan-shade); /* … drawn as a ring around the frame that reaches every edge */
  --scan-frame:rgba(255,255,255,.9);   /* the frame the card goes in */
  /* The shutter sits on the panel (K-15b), not on the video: the panel's ink, so it stands out in both themes ("Avtryckare
     är vit i day mode", 2026-10-05) — a ring with a filled disc inside; grey while the reader isn't ready. */
  --cam-shutter-ring:var(--ink); --cam-shutter-bg:var(--ink); --cam-shutter-off:var(--line);
  --cam-shutter-dim:.45; --cam-spin-track:color-mix(in srgb, var(--surface) 40%, transparent); --cam-spin-ink:var(--surface);
  --scan-hold:#E8C46A;                 /* the frame while a card lies still, before it is read */
  --scan-read:#7FCB97;                 /* the frame when the card has been read */
  /* The controls floating over the camera's picture (Auto, the torch, ×; 2026-10-05): the plate on images with light
     ink, readable over a black and a white picture alike (the dimmed ink of Auto off ≈ 6:1 over white, 11:1 over
     black), and a faint edge so the plate shows on a black picture too. The same in both themes. */
  --cam-ctl-ink:var(--on-image); --cam-ctl-ink-off:rgba(255,255,255,.75); --cam-ctl-line:rgba(255,255,255,.22);
  /* a language's flag: Flagpack's 4:3 flag cropped to a pill (E-3, 2026-10-09: "Crop those flags!"), centred, with a
     thin edge so light flags hold against the background */
  --flag-edge:rgba(128,128,128,.35);
  --swatch-edge:rgba(0,0,0,.15); /* a colour sample's edge (the components page's proposals) */
  --flag-m-w:24px; --flag-m-h:16px; --flag-l-w:36px; --flag-l-h:24px; /* the flag pills, 3:2: m on rows and chips, l in the pickers (Flagpack's m and l files, Decision 42) */
  /* the property picker (PropPicker, K-17d): its chip, and the popover's list */
  /* A chip that holds a mark (a condition's pill, a flag) has the same inset on all four sides, and its corner is the
     mark's corner plus the inset plus the border, so the curves run parallel (E-3, 2026-10-09: "the pill nm shall always
     have same px distance to the border of the button"). The pill has a height of its own, the chips' height follows
     from it, and the text chips (finish, place) share that height (K-15c). The flag in a chip is as high as the
     condition's pill, one mark height for both, 3:2 wide, with the same inset (E-3, 2026-10-10: "Ensure flag and NM have
     same padding in buttons, now flag looks like it has more padding"); flags outside a chip keep --flag-m/l. */
  --chip-pill-inset:var(--sp-2); --chip-mark-h:20px; --cond-pill-h:var(--chip-mark-h);
  --chip-flag-w:calc(var(--chip-mark-h) * 3 / 2);
  --prop-chip-h:calc(var(--chip-mark-h) + 2 * var(--chip-pill-inset) + 2 * var(--edge-1));
  --prop-chip-x:var(--sp-4); --prop-pop-min:180px; --prop-pop-max:min(360px, 50dvh); --prop-opt-h:36px;
  /* the condition pills, as Cardmarket colours them: mint blue, near mint green … poor red; dark text on all */
  /* the rarity pills (K-14k, 2026-10-10: "Rarity should be color + txt?" — the letter the card prints): common black,
     uncommon silver, rare gold and mythic orange-red each a still band from -a to -b (metallic), special purple, bonus
     grey; their letter is --rar-ink (common is only an outline in --rar-common). 4.5:1 at both ends, both themes (contrast.test.ts). */
  --rar-common:#262626; --rar-ink:#1C1C1E;
  --rar-uncommon-a:#E3E8EE; --rar-uncommon-b:#AEB7C1; --rar-rare-a:#F1D78C; --rar-rare-b:#C99A2E;
  --rar-mythic-a:#F8A866; --rar-mythic-b:#EC6B3B; --rar-special:#B993E8; --rar-bonus:#B8B8B8;
  /* the filter bar's P/T box and loyalty shield (K-14k): like a card's frame corner and a planeswalker's shield — light
     paper with dark figures on the light theme, the reverse on the dark (contrast.test.ts) */
  --pt-bg:#F1EEE6; --pt-ink:#1C1C1E; --pt-line:#8C8577; --loy-bg:#2B2B2E; --loy-ink:#FFFFFF;
  --cond-mt:#5DB9E0; --cond-nm:#5FC07F; --cond-ex:#A3CF5E; --cond-gd:#E3CF52; --cond-lp:#F0A447; --cond-pl:#EC8452; --cond-po:#E86A6A;
  /* a foil finish's pill in a chip (K-17d, 2026-10-10: "make the Foil pill foily, non foil can be as it is"): a still
     holographic band, light in both themes like the condition pills, dark text */
  --foil-pill:linear-gradient(115deg,#a6eee0 0%,#f4c3ea 38%,#fde7a4 68%,#f3c4ea 100%); --foil-pill-ink:#1c1c1e;
  --foil-pill-sheen:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.75) 50%,transparent 80%);
  --foil-sheen:linear-gradient(115deg,transparent 25%,rgba(150,255,235,.38) 40%,rgba(255,160,235,.38) 50%,rgba(255,235,140,.38) 60%,transparent 75%); /* a foil copy's shimmer */
  /* the loading skeleton (E-9): an even grey tile and one soft, wide sheen that sweeps across it, like a foil's shimmer but grey */
  --skel-base:var(--pocket); --skel-sheen:rgba(255,255,255,.4);
  --skel-dur:1.3s; --skel-runs:3; /* the sheen sweeps this many times, then the tile is plain grey: an image still loading after ~4 s doesn't keep a layer animating (E-9b) */
  --tile-iw:120px; --tile-ih:167px; /* a card tile's size while skipped off screen, until the browser knows its own */
  /* CardPickGrid (Choose parts' cards, 2026-10-05): the cards, their round + / − and a part's height before it is laid out */
  --pick-w:76px; --pick-gap:var(--sp-3); --pick-cap-dot:8px; --parts-set-title:var(--fs-l); --parts-indent:var(--sp-6);
  /* The tree's levels (K-22j, 2026-10-11): an open set's or section's body hangs on a rail under its checkbox. */
  --parts-indent-at:var(--sp-5);
  --pick-n:var(--on-image); --pick-n-bg:rgba(0,0,0,.6);
  /* Select mode in All cards (K-13c): the tick in a card's corner — an empty ring on the image, filled in the chosen
     blue with a white tick when ticked — and the chosen card's frame */
  --sel-box:24px; --sel-box-bg:rgba(0,0,0,.45); --sel-box-line:var(--on-image); --sel-on:var(--way); --sel-tick:var(--on-image); --sel-frame:3px;
  --sel-tick-size:16px; --sel-inner:#000; /* a 1 px black line inside the blue frame, between it and the image (2026-10-10), in both themes */
  /* The current row in the data grid (K-13e): where you stand, a tint and the gold line down its edge — never the
     filled look of a ticked row (K-13c), so the two can be told apart and a row can be both. */
  --row-cur:#EDEAE1;
  /* The − on a taken card (K-22d): a neutral dark chip, as the rings and counts on images, and red only while it is
     hovered, pressed or focused (decided 2026-10-06, UI-valen ROR-5, Decision 50 — before, 2026-10-05: "a dark red
     background to pop better", which made a grid of 198 taken cards a pattern of red dots). The red is --cap's,
     darkened so the light icon has over 7:1 on it; the + is --action. */
  --pick-minus-bg:var(--on-image-plate); --pick-minus-ink:var(--on-image); --pick-minus-hot:var(--danger-strong);
  /* a list row's thumbnail (K-7): it sets the row's height, the name wrapping to at most two lines beside it (MOB-7) */
  --list-thumb-w:42px;
  --cols-grip:16px; /* the handle the Columns sheet's rows are dragged by (K-13d) */
  /* The data grid header's drag indicator (K-13d, 2026-10-28: "two rows of dots is better"): two rows of three dots,
     each dot whole inside a box that is exactly the grid, so none is cut in half by its edge. */
  --grip-dot:1px; --grip-step:4px; --grip-w:8px; --grip-h:12px;
  /* What you can take hold of: the header's own left padding plus the room the label is indented by, so the target
     runs from the cell's edge to where the title starts and leaves no dead strip between the two (2026-10-28, Anders:
     "the drag hoover area needs to be slightly wider atleast almost directly edge to edge with title start"). The
     dots stay at its left, where they were. */
  --grip-indent:var(--sp-5); --grip-hit:calc(var(--sp-4) + var(--grip-indent));
  /* A line you drag to resize, while the pointer is on it: the gold the app acts in, as wide as the side panel's own
     grip, so the two read as the same control (2026-10-28, Anders: "the drag line shall be yellow between the colums,
     and thicker as in the panel drag line"). */
  --drag-line:calc(2 * var(--edge-3) + var(--edge-1));
  --rename-pen:32px; --rename-pen-icon:16px; /* RenameText's pencil after a name (ROR-4) */
  --copiescap-gap:var(--sp-5); /* CopiesCapRow: between the copies (row 1) and the cap's sentence (row 2) */
  --pick-toggle:26px; --pick-toggle-inset:3px; --pick-section-h:240px; --pick-cell-h:106px; /* a card in the pick grid at its narrowest, for content-visibility */
  /* The card sheet's parts (K-9, K-17): Varianter och platser and Historik at the app's section heading size (h2) — a
     Section at the sheet level (SLÅ-2); --section-gap between a view's sections, as the panels had */
  --sheetpart-title:var(--fs-l); --sheetpart-weight:var(--fw-head); --sheetpart-gap:var(--sp-6); --section-gap:var(--sp-7);
  /* A settings view (Profile, K-79; Admin's menu, K-83): the section menu and the groups lie on the float level
     (--float-*); the content stops at a readable width, a clear step from the menu. */
  --settings-w:720px; --settings-gap:var(--sp-9); --side-w:240px; /* the gutter on both sides of the section, a clear step from the menu (K-79) */
  /* Changed offline, waiting for the network (K-104f/g): a blue cloud with an up-arrow in the card's corner, and the
     chip's and badge's edge. Blue is what is on its way (Decision 21). */
  --pending:var(--way); --pend-size:20px; --pend-size-sm:13px; --pend-pad:var(--sp-1); --pend-inset:5px; --pend-stroke:2.2;
  --pend-bg:rgba(255,255,255,.96); /* the disc behind the cloud on a card: light here, dark in the dark theme */
  /* A count on a menu tab (K-51k item 5, Förvaring's cards to put away): ink on the page, so it follows the theme */
  --tab-badge-bg:var(--ink); --tab-badge-fg:var(--bg); --tab-badge-h:18px;
  /* A section head's count (E-3, 2026-11-12): quiet, not the bell's alert — light grey here, the card tiles' dark count
     plate in the dark theme ("so dark as on the cards in dark mode" — "something light gray matching in light mode") */
  --count-quiet-bg:var(--line); --count-quiet-ink:var(--ink);
  /* A place's bell (K-60p): its count pill (the tab badge's) sits over the bell's top right corner */
  --bell-pill-top:calc(-1 * var(--sp-1)); --bell-pill-right:calc(-1 * var(--sp-1));

  /* ---------- overlays and depth ---------- */
  --overlay:rgba(10,10,10,.5);         /* behind the carousel, with blur */
  --overlay-blur:24px;
  --modal-backdrop:rgba(10,10,10,.55);  /* behind a popup (confirm): dimmed and blurred, so the popup has the focus */
  --confirm-items-max:40vh;             /* a popup's list of what the action does (K-45e): it scrolls past this */
  --modal-blur:16px;                    /* behind sheets and drawers */
  --shadow-1:0 1px 2px rgba(0,0,0,.25);
  --shadow-2:0 6px 20px rgba(0,0,0,.25);
  --shadow-3:0 12px 40px rgba(0,0,0,.45);
  --shadow-sheet:0 -8px 30px rgba(0,0,0,.25);
  --shadow-pop:0 10px 24px -12px rgba(0,0,0,.35);
  /* The copies behind a small picture's top one (K-17): one card line per copy, turned from the bottom edge and filled
     with the surface behind the row, so the lines never cross each other. The ink lies between a row's line and its
     secondary text — 60 % of the way here, 25 % on the dark theme, where the same mix reads too strong (tuned on the
     drawing 2026-10-30: "line color needs to be between secondary text and row line"). */
  --pile-fill:var(--surface);
  --pile-ink:color-mix(in oklab, var(--line), var(--muted) 60%);
  --pile-line:1.5px;       /* the card line's own width */
  --pile-turn:3deg;        /* how far each copy behind is turned, like a held hand */
  --bar-edge-below:inset 0 -1px 0 var(--line); --bar-edge-above:inset 0 1px 0 var(--line); /* a bar's dividing line */

  /* ---------- the logo (Decision 131) — the same in both themes, since it has its own black outline ---------- */
  /* scripts/logo.ts reads these for app/icons/logo.svg; ui/BrandMark.ts colours the app bar's live mark with them. */
  --brand-ink:#141414;        /* the outline and the lines between the cards */
  --brand-gold:#E2B13C;       /* the gold card's front (the same gold as --action, Decision 132) */
  --brand-gold-top:#F2CC66;   /* … its top edge */
  --brand-gold-side:#B98A26;  /* … its side edge */
  --brand-grey-top:#8A8A8A;   /* a grey card's top edge */
  --brand-grey-face:#7A7A7A;  /* … its front, seen only while the front card is grey (hover) */
  --brand-grey-side:#6A6A6A;  /* … its side edge */
  --brand-wall-front:#4A4A4A; /* the box's front wall */
  --brand-wall-side:#3A3A3A;  /* … its right wall */
  --brand-lift:-7px;          /* how far a hovered card rises, in the logo's 64 units */

  /* ---------- the binder (black plastic sheets, chrome rings) — the same in both themes ---------- */
  /* Component tokens that live here rather than on a class: --binder-* is the binder's plastic sheets (decided
     2026-10-07, TOK-9 option 1: "sheet" is only the sheet from the bottom, --bs-*, and its parts, --sheetpart-*). */
  --binder-page:#151515;               /* a binder page */
  --binder-edge:rgba(255,255,255,.05);
  --binder-stack:#171717;              /* the edges of the leaves underneath */
  --binder-stack-gloss:rgba(255,255,255,.07);
  --binder-label:#8E8E8E;              /* "Page 3" */
  --binder-part:var(--binder-label);   /* a part's name above its pocket, faint (K-47d) */
  --binder-part-gap:var(--sp-6);             /* the room above each row of pockets for that name (K-47d) */
  --binder-holes:rgba(255,255,255,.035);
  --binder-holes-edge:rgba(255,255,255,.06);
  --binder-hole:rgba(0,0,0,.85);
  --binder-pocket-gloss:rgba(255,255,255,.10);
  --binder-pocket-gloss-2:rgba(255,255,255,.03);
  --binder-pocket-gloss-3:rgba(255,255,255,.06);
  --binder-pocket-edge:rgba(255,255,255,.14);
  --binder-pocket-number:#9E9E9E;
  --binder-pocket-muted:#636363;
  --binder-empty:rgba(255,255,255,.025);
  --binder-empty-edge:rgba(255,255,255,.08);
  --binder-striped:rgba(255,255,255,.07);
  --binder-ghost:color-mix(in srgb, var(--binder-page) 78%, transparent); /* over a missing card's placeholder beside ✎'s outline (K-51o): the page's colour, so the card is faint; the image is never filtered (E-9b) */
  --binder-shade:#000000;              /* a leaf darkens as it turns */
  --spine-ring-h:7px;                  /* a ring on the spine, centred on its point */
  --chrome:linear-gradient(to bottom,#FFFFFF 0%,#E3E7EA 18%,#9AA2A9 42%,#5D646A 55%,#C9CED3 72%,#F4F6F7 86%,#8D949A 100%);
  --chrome-shadow:0 2px 3px rgba(0,0,0,.45);
  --chrome-pin-shade:rgba(0,0,0,.4);
  --book-shadow:0 10px 26px -12px rgba(0,0,0,.45);
  --book-edge:rgba(255,255,255,.06);
  --hole-shadow:inset 0 1px 2px var(--binder-hole),0 0 0 1px var(--binder-pocket-gloss); /* a punched hole in the strip */
  --on-way-edge:#7DB3F0;               /* a pocket on the way */
  /* A card's status label on its image (K-49b): on the way light blue, lying elsewhere amber, in a deck neutral grey
     (K-49: the deck's business, not a to-do), on the image's plate. */
  --status-plate:var(--on-image-plate); --status-ink:var(--on-image); --status-way:var(--on-way-edge); --status-away:var(--part);
  --status-deck:var(--binder-pocket-number);
  /* A copy marked missing (K-105e): the warning red, its label's edge on the plate and its pill in the card sheet. */
  --status-missing:var(--cap); --missing-mark:var(--cap-ink);

  /* ---------- Magic ---------- */
  --rarity-common:#525252; --rarity-uncommon:#8E99A6; --rarity-rare:#B8962E; --rarity-mythic:#C4622D;
  --mana-w-edge:#B9AD86;
  /* Scryfall's light discs (W, colourless, generic) are near the surface's grey in the light theme (1.08:1): a thin ring
     in --mana-w-edge around them (2:1, enough for a shape with a symbol in it); none in dark, where they stand out.
     An outline drawn inside the symbol's own box (2026-10-09: a ring outside it was cut off by the card sheet's
     overflow:hidden line), so no container clips it. */
  --mana-light-ring:var(--edge-1) solid var(--mana-w-edge);
  /* The filter's colours are their mana symbols (K-14, 2026-10-09), at the chips' mark height (--chip-mark-h, E-3,
     2026-10-10: "Mana colors also need 4px padding"); how far one not chosen is dimmed — plainly off, still readable. */
  --csym-off-opacity:.45;
  /* The dark dots (common rarity) are near the dark theme's surfaces: a thin ring in
     --line-strong around them there (3:1 on a surface); none in light, where they stand out. */
  --dark-dot-ring:none;
  /* The five colours and colourless as fills (K-45j): a deck's pip bars, each in its mana's colour; dark has its own. */
  --mana-w:#C9B45E; --mana-u:#2F6DB5; --mana-b:#4A4248; --mana-r:#C8452F; --mana-g:#3B8A4F; --mana-c:#9A958C;
  /* A deck's donut by main type (K-45j): the spell types a fixed categorical order, Other and the lands recessive greys. */
  --deckpart-creature:#3B6FB6; --deckpart-planeswalker:#8A63C4; --deckpart-battle:#C2507A; --deckpart-artifact:#7A8A99;
  --deckpart-enchantment:#2E9A8A; --deckpart-instant:#D27A2C; --deckpart-sorcery:#B8962E; --deckpart-other:#9C9C9C;
  --deckpart-land:#CFCFCF;
  --deckdonut-size:120px; --deckdonut-ring:8; /* the ring's width in the SVG's 100 units: thin */
  --dearest-row:1.4em;       /* a row of the Most valuable tile: three reserved, so it never changes size (K-45j) */

  /* ---------- shape and type ---------- */
  --r-xs:2px; --r-s:3px; --r-m:5px; --r-l:8px; --r-xl:10px; --r-pill:999px; /* a circle is 50%, written as such */
  /* A card's picture (2026-10-07, NY-1): the shape of Scryfall's images and a corner that scales with the size, so a
     34 px thumbnail and the carousel's card have the same rounding (.mc-cardimg in chrome.css). */
  --card-ratio:488/680; --card-r:4.5%/3.3%;
  /* Edges drawn as shadows (rings, inner edges, a band): their widths, and the halo that lifts a dot off a pocket. */
  --edge-1:1px; --edge-1-5:1.5px; --edge-2:2px; --edge-3:3px; --edge-3-neg:-3px;
  --dot-halo:0 0 0 var(--edge-1-5) var(--pocket);
  /* Inter (decided 2026-10-08, Decision 55; Archivo before): the family; Admin's font trial (K-85c) overrides it per
     browser, on the root's style. Inter has no width axis: what must fit narrow takes --ls-tight, never a cut text. */
  --font-family:"Inter";
  --font:var(--font-family),system-ui,-apple-system,"Segoe UI",sans-serif;
  --ls-tight:-.02em; /* numbers and labels in a tight box: a number or a table (.num), a pocket, a ring, a long card name (Archivo's narrow width before) */
  --ls-head:-.01em;  /* the big titles (h1, the wordmark) */
  --ls-label:.02em;  /* small labels set apart: Profil's initials, a condition pill, the components page's part headings */
  /* Line heights (decided 2026-10-07, TOK-6 option 1, Decision 62): three, and nothing else writes one (type-scale.test.ts).
     tight: headings, names and numbers on one or two lines. text: rows, lists and pills. loose: running text, the page's
     body. The only literals left are 1 and 0 for a glyph centred in a fixed box (a pocket, a round − / +, a chip), and a
     px height the same rule gives its box (a badge, a check mark). */
  --lh-tight:1.15; --lh-text:1.3; --lh-loose:1.45;
  /* The type scale (decided 2026-10-06, UI-valen TYP-1 option 2: "Fyra steg (12 · 14 · 17 · 28)", Decision 50): every text
     in the app is one of four sizes and four weights; nothing outside this file writes a size or a weight of its own
     (type-scale.test.ts). s: secondary text, labels, captions, chips. m: body text, rows, buttons, fields on a computer.
     l: headings, sheet titles, fields on a phone (16 px or more, so iOS doesn't zoom in, E-8). l2: a view's title on a phone
     (2026-10-22: "22 everywhere"). xl: titles, big numbers. */
  --fs-s:12px; --fs-m:14px; --fs-l:17px; --fs-l2:22px; --fs-xl:28px;
  /* The spacing scale (decided 2026-10-07, TOK-5 option 1, Decision 62): seven steps near the values the app had, and every
     padding, margin and gap outside this file is one of them (spacing.test.ts). 1 hairline nudges and inner gaps · 2
     an icon and its text, chips · 3 a row's inner padding · 4 between rows and controls · 5 a panel's or a field's inside
     · 6 between sections, a sheet's side · 7 between groups. The component tokens below that hold a space point here. */
  --sp-1:2px; --sp-2:4px; --sp-3:6px; --sp-4:8px; --sp-5:12px; --sp-6:18px; --sp-7:24px; --sp-8:32px; --sp-9:40px;
  /* The round icon button's size; the toolbar row is at least as tall as it, so a view without a chevron keeps the row's height (K-4b). */
  --iconbtn:42px;
  --fw-text:400; --fw-strong:600; --fw-head:700; --fw-display:780;
  /* Sizes that are part of a component's geometry, not text in the scale: a number inside a pocket or a thumbnail, the
     check in a pocket's corner, the spark line's labels in its SVG, a flag's code chip as high as the flag, the
     initials filling Profil's circles, a ring's text in its 40-unit SVG. */
  /* the card's name in the card sheet, a notch or two above --fs-l, smaller as it gets longer (K-9, 2026-10-15: "card
     name font size could be a notch or two bigger") */
  --fs-sheet-name:21px; --fs-sheet-name-long:19px; --fs-sheet-name-longer:17px;
  --fs-pocket:9.5px; --fs-pocket-mark:7px; --fs-thumb-nr:9px; --fs-pick-nr:10px;
  --fs-flag-code:10px; --fs-flag-code-l:11px; --fs-initials-l:32px;
  --ring-text-surface:11px; --ring-text-image:10.5px;
  /* The ring's text fits inside its 26.8-unit inner circle with room to spare (K-28b, 2026-10-08: "Text is cutting
     circle"): four characters ("100%", "1/40") and five or more ("12/12") step down, and a "%" is .7 of its number. */
  --ring-text-4:9px; --ring-text-5:8px; --ring-text-unit:.7em;

  /* ---------- the frame (E-8, K-1): the bars, the page's width and the floating buttons ---------- */
  --bar-h:56px;      /* the app bar and the phone's tab bar, the same height; the safe-area insets come on top */
  /* The view's own bar: the title row and the toolbar under it (K-4h). One value, so what stands below the bar — an
     empty state centred in what is left — knows where the bar ends without measuring it. */
  --view-bar-h:calc(var(--tb-h) + var(--iconbtn) + 2 * var(--bar-air));
  --tabbar-h:68px;   /* the phone's tab bar, taller than --bar-h so the icons, labels and the count pill have room; the safe-area inset comes on top (K-1) */
  --tab-me:23px; --tab-me-ini:10px; /* Profil's figure in the phone's tab bar: as large as the tabs' icons (MOB-2) */
  --offline-chip-h:24px; /* the offline chip under the app bar (K-104) */
  --offline-band:calc(var(--offline-chip-h) + var(--sp-3) * 2); /* the room it takes: the chip with a step above and below */
  --offline-ms:200ms; /* the chip fading and sliding in (the content under it moves at once) */
  --cloud-turn-ms:900ms; --cloud-turns:60; /* the sync cloud's spin (K-112z): one turn, and at most this many while a push or pull runs */
  --page-w:1180px;   /* the content's width; the bars run edge to edge, their content keeps to this on a phone (K-4i) */
  --page-x:var(--sp-6);     /* the page's side margin, also the bars' */
  --grid-edge:100px;        /* the data grid's least margin out towards the window as columns are added (K-4i) */
  --preview-w:300px;        /* the card shown under the pointer (K-9c): large enough to read its rules text */
  --focus-ring:2px solid var(--focus); /* the focus ring (NY-8, 2026-10-07): one width and colour for every control */
  --focus-ring-offset:2px; /* its gap; a control that differs sets only this */
  /* Focus drawn inside a control's own edge instead of around it, for a shape a ring outside cannot follow: WebKit
     draws an outline at the element's own radius, so on a rounded field the corners came out wide and the sides tight
     (2026-10-23, the search field). --focus-in-w is the width the control asks for. */
  --focus-edge:var(--focus);
  --focus-in:inset 0 0 0 var(--focus-in-w,var(--edge-1)) var(--focus);
  --find-ring-w:4px; /* a card found by the binder's search (K-47e): the focus ring at this width, to read on a gold-edged pocket */
  --find-ms:.5s; /* one blink of that ring (K-47e) */
  --find-blinks:3; /* how many times it blinks, so the card is easy to pick out (K-47e) */
  --hit:44px;        /* the smallest tap target on a phone (E-8): what a finger hits, whatever the mark's visible size */
  --strip-stripe:6px; /* a section that doesn't fit is striped (K-51l, 2026-10-15): one stripe's width */
  --strip-over:color-mix(in srgb, var(--cap) 22%, var(--surface)); /* its stripes over the surface: the cap's red, softened */
  --strip-seg-min:88px; /* a section bar field's least width (K-51l, 2026-10-15): its name stays readable and tappable; the bar wraps past it */
  --section-goal:var(--ink); /* a section from a goal in the section bar (K-46, decided 2026-10-19) */
  --section-manual:var(--muted); /* a section filled by hand */
  --section-on:var(--bg); /* text and icons on a section field */
  /* A section's sheet (K-51l, the sketches approved 2026-10-15): its facts' boxes, and the small numbered pages of Layout and Starts */
  --fact-min:88px; --fact-h:56px;        /* a fact's least width and height: as high as its content, never lower */
  --mini-pocket:18px; --mini-pocket-s:10px; /* a small page's pocket, in Layout and in Starts */
  --mini-ratio:63 / 88;                  /* a pocket's shape: a card's */
  --mini-tile-min:96px;                  /* Layout's tiles side by side down to this */
  --mini-row-label:88px;                 /* Starts' label beside its pages */
  --mini-card:#B7B7B7;                   /* a card already in the storage (K-51l): grey, and it carries no number */
  --mini-new:var(--action);              /* the cards this goal puts in (K-51l): the brand gold, numbered (Decision 132) */
  --mini-pile:color-mix(in srgb, var(--mini-new) 82%, #000);
  --mini-pile-back:color-mix(in srgb, var(--mini-new) 66%, #000);
  --mini-pile-edges:var(--edge-1) calc(-1 * var(--edge-1)) 0 0 var(--mini-pile),var(--edge-2) calc(-1 * var(--edge-2)) 0 0 var(--mini-pile-back);
  --mini-empty:color-mix(in srgb, var(--cover) 74%, #000000); /* an empty pocket: blacker than the page it lies on */
  --mini-empty-ring:color-mix(in srgb, var(--cover) 58%, var(--on-image)); /* its hairline, so a pocket still reads as one */
  --mini-here:var(--own);                /* a move's pocket, filled (K-58c) */
  --mini-from:var(--on-image);           /* the pocket the card leaves, outlined (K-58c) */
  --guide-card:132px;                    /* the card in the move guide (K-58c) */
  --guide-card-s:56px;                   /* … and while it lies low on a phone */
  --chip-h-phone:30px; /* a filter chip's visible height on a phone; the rows are spaced so their 44 px targets don't overlap */
  --fab-size:56px;   /* every floating button, round and icon only */
  --fab-clear:72px;  /* room under Lägg till's rows for the floating buttons, so the last row isn't under them */
  --login-brandmark:72px; --login-brandmark-lg:88px; /* the sign-in and invite pages: the logo above the name (K-86, 2026-10-21) */
  --page-bottom:64px; /* the page's room at the bottom, under the last section */
  /* The widest the bars' own content gets (K-4i, 2026-10-23: "they are left and right anchored up to 1400, then after
     that they are centered and capped at 1400"): the app bar's row, a view's title row, its toolbar and the filter
     bar all stop here and centre, while their background goes on running the window. */
  --bar-w:1400px;
  /* A bar's side padding: the page's own margin until the window is wider than --bar-w, then what centres --bar-w in
     it. One measure, so the app bar, the title row, the toolbar and the filter bar can never line up differently.
     In the window's own units, not %: a bar reaches past its column with a negative margin, so a percentage there
     would measure the column it escaped from, and the scrollbar's gutter is no room (--sbw, as --bar-bleed).
     Beside a docked panel it caps the column, not the window (K-4i, decided 2026-11-03): the panel's width
     (--panel-w, K-13e) is room taken. A token made of others takes them where it is set, so the view with the panel,
     the app bar and the title row set it again with the same formula (chrome.css). */
  --bar-pad:max(var(--page-x), calc((100vw - var(--sbw,0px) - var(--panel-w,0px) - var(--bar-w)) / 2));
  --fab-gap:var(--sp-5);    /* between them, and to the edges and the tab bar */
  /* The bulk bar (K-13c, 2026-10-15: "mobile select bar is too crammed desktop y spacing was betters"): the sketch's air —
     12/18 px padding, 12 px between its two rows, 40 px buttons — the same on a phone and a computer; on a wide window it
     floats in the middle, no wider than this. */
  --bulk-pad-y:var(--sp-5); --bulk-pad-x:var(--sp-6); --bulk-pad-b:var(--sp-6); --bulk-gap:var(--sp-5); --bulk-btn-h:40px; --bulk-max-w:880px;
  --bulk-icon:18px; --bulk-caret:14px; /* Tags ▾ and Move's icon and Tags' ▾ (K-13c) */
  --dial-r:calc(var(--fab-size) + var(--fab-gap) * 2.5); /* how far a dial's buttons fly out from the + (K-15); room between the up and the up-left one */
  /* + → Product (K-22j): a product's picture in the list and in the preview, its cards' small pictures, a part's height before it is laid out */
  --prod-pic-w:72px; --prod-pic-h:52px; --prod-scene-w:120px; --prod-pic-big-h:132px; --prod-photo-w:52px; --prod-photo-big-h:220px; --prod-part-h:180px;
  --dial-r-wide:calc(var(--fab-size) * 2.25); /* four buttons 30° apart (K-22j): far enough out that their 56 px don't touch */
  --dial-t:240ms;   /* the dial opening or closing */
  --dial-stagger:35ms; /* between one dial button and the next */
  --fab-off-bg:var(--surface); --fab-off-fg:var(--muted); --fab-off-border:var(--muted); /* a dial's choice that is greyed but keeps its slot (K-46: a binder's Card before it has a section): a dashed edge and a muted icon */
  --scan-debug-pic:112px; /* the measurements overlay's picture of what the detector sees (K-15b) */
  --cam-peek:292px;  /* the fullscreen camera's captured list lying low: head, the summary and the shutter row with its note (K-15b) */
  --cam-top:64px;    /* room over the camera's frame for the self-timer's state and the round buttons */
  --cam-shutter:68px; /* the camera's round Read button */
  --cam-spin:26px; --cam-spin-ms:800ms; /* the spinner inside it while a read goes (2026-10-05) */
  --cam-frame-min:160px; /* the camera's frame never gets lower than this, also in a short window */
  --scan-frame-ratio:63/88; /* the frame a real card is held in: a printed card's 63 × 88 mm, not its picture (--card-ratio) */
  /* A card caught glows out from the frame's edge, never over the card (K-15b, 2026-10-05: "ramen glöder till utåt"):
     the read green for a sure read, the pending blue for one that wasn't sure. --cam-glow-dur = GLOW_MS in
     CaptureFeedback.ts. */
  --cam-glow-sure:var(--scan-read); --cam-glow-unsure:var(--pending); --cam-glow-dur:450ms; --cam-glow-size:18px;
  /* The camera's collapsed panel: the summary left, Add N with where the cards land right ("'13 kort' tar kanske 75%
     av bredden … Knappen 'Lägg till 7' kan ta 25%"). */
  --cam-cap-split:3fr 1fr;
  /* Lägg till's rows (K-15, 2026-10-05: "the card can be slightly bigger atleast very close to the row edges"): the card's
     picture is this wide and the row's padding this small, so that the picture, in the card's shape, reaches the row's
     top and bottom edges. On a phone the row has two lines and the picture spans both. */
  --addrow-thumb:40px; --addrow-inset:var(--sp-1);
  /* The card's picture on a shopping list's row (K-36): as wide as the add list's, which is the other list one reads
     a card off rather than clicks. */
  --buyrow-thumb:40px;
  --addrow-thumb-phone:50px; --addrow-row-gap:var(--sp-3);

  /* ---------- Storage's grid of places (K-44c) ---------- */
  --empty-icon:48px;        /* a view's empty state's icon (K-4e) */
  /* A big choice tile (ChoiceTiles, K-21): New goal's three kinds. The chosen one has the ink edge and the page's fill. */
  --tile-bg:var(--surface); --tile-edge:var(--line); --tile-on-edge:var(--ink); --tile-on-bg:var(--bg); --tile-edge-w:2px;
  --tile-pic:44px;          /* the picture's size */
  --tile-min:180px;         /* narrowest tile side by side; below three of them the tiles stack */
  --placetile-min:160px;   /* narrowest tile: two columns on a 390 px phone, more on a computer */
  --prints-min:104px;      /* Change print's grid (K-60b): three prints across a 390 px phone */
  --placetile-gap:var(--sp-5);
  --placetile-ratio:4 / 3;  /* the picture's shape, as the goal cards' in the computer's grid */
  --placetile-fan-w:34%;    /* one card of a box's fan, of the picture's width */
  --placetile-strip:rgba(0,0,0,.55); /* the name's strip on a tile's picture: black, see-through, in both themes */
  --placetile-unsorted:#2A2A2D;      /* Unsorted's tile: near-black grey, in both themes */
  --placetile-unsorted-ink:#55555B;  /* its icon in the recess, dim */
  /* Unsorted's recess, pressed in: the upper edge in shadow, the lower edge catching light. */
  --placetile-press:inset 0 3px 6px rgba(0,0,0,.65),inset 0 -1px 0 rgba(255,255,255,.10);
  --placetile-spine:14%;    /* the binder's spine with its rings */
  --placetile-ring:var(--ring-surface-size); /* never smaller than a ring on a surface (K-28b) */
  /* ---------- a view's folding group head (FoldGroup, CardsView; 2026-10-12: "maybe have a backdrop color") ---------- */
  --sechead-bg:var(--surface);   /* a step up from the page, in both themes */
  --sechead-fg:var(--ink);
  --sechead-ring:var(--line-strong); /* hovered: an outline, the backdrop stays (2026-10-14) */
  --sechead-min-h:52px;          /* room for two rows: the name and a line under it (2026-10-14) */
  --sechead-radius:var(--r-s);
  /* ---------- the goal cards in Mål (K-20b) ---------- */
  --goalcard-min:300px;     /* narrowest card: 1 column on a phone, 2 at mid width, 3 (at most) on a computer */
  --goalcard-gap:var(--sp-5);
  --goalcard-ratio:16 / 9;  /* the art's shape in one full-width column (förval) */
  --goalcard-ratio-grid:4 / 3; /* … and in the computer's grid (förval) */
  --goalcard-shade:linear-gradient(to bottom, transparent 50%, rgba(10,10,10,.82)); /* only under the text; the art itself is never tinted */
  /* The artist's credit in the cover's corner: smaller and fainter ("smaller and fainter", 2026-10-05), but still
     readable on a close look — Scryfall's terms require it with art_crop. Never below ~10px; the faint chip and the
     shadow keep it legible on light art. */
  --goalcard-credit-size:9px; /* 2026-10-05, "lower the artist name even further": 10 → 9 px, fainter */
  --goalcard-credit-ink:rgba(255,255,255,.88);
  --goalcard-credit-opacity:.6;
  --goalcard-credit-chip:rgba(12,12,12,.26);
  --goalcard-credit-shadow:0 0 2px rgba(0,0,0,.7);
  --goalcard-count-size:var(--fs-s); /* the count under the ring ("212/263") */
  /* A ring on a surface — a list row, a section heading, a status tile (K-28b): never smaller than this, so its text, 11
     of the ring's 40 units, is 11 px and "100%" or "12/12" still fits inside. */
  --ring-surface-size:40px;

  /* ---------- the sheet from the bottom (K-3, K-9): every sheet, and the carousel's card sheet ---------- */
  --bs-bg:var(--surface);
  --bs-radius:var(--r-xl);
  --bs-shadow:var(--shadow-sheet);
  --bs-overlay:var(--overlay);                /* behind it, dimmed … */
  --bs-blur:var(--overlay-blur);              /* … and blurred */
  --bs-w:560px;                               /* centred and no wider on a computer */
  --bs-spring:cubic-bezier(.22,1.18,.36,1);  /* rises and settles like a spring: a little past, then back */
  --bs-ms:.38s;
  --bs-top-gap:var(--sp-5);                          /* a sheet's top never comes closer than this under the status bar / notch (E-8) */
  --bs-top:calc(env(safe-area-inset-top,0px) + var(--bs-top-gap)); /* the highest a sheet's top may go: its × stays tappable (2026-10-05) */
  --bs-cap:calc(100dvh - var(--bs-top));      /* so a sheet is never taller than this */
  --bs-kb-gap:var(--sp-5);                           /* over the keyboard: this much of the visible window stays above the sheet (E-8) */
  --bs-min-auto:200px;                        /* a sheet as high as its content is never lower (2026-10-15), as the card drawer's floor */
  --bs-min-form:50dvh;                       /* a form sheet (New goal) is never lower: it doesn't jump as suggestions come and go */
  --search-h:36px;                            /* the one search field (SearchField, E-3b): its height … */
  --search-r:calc(var(--r-m) + var(--sp-1)); /* … its corners: rounded, not a pill (2026-10-23: "the search field is
                                                 really badly rounded … we can reduce the roundness on it"), the view
                                                 switch's beside it (2026-11-10: "The roundness on the search field") … */
  --search-r-band:calc(var(--search-r) + (var(--hit) - var(--search-h)) / 2); /* … that corner's height on a phone,
                                                 where the tap band is border: drawn, it is --search-r round … */
  --search-room-start:34px;                    /* … room for the magnifier before the text … */
  --search-room-end:calc(var(--search-h) - 2px); /* … and for the round × after it (geometry, not spacing) */
  --search-fs:var(--fs-m);                           /* … and text; 16 px on a phone so iOS doesn't zoom (E-8) */
  /* How wide the toolbar's search box may grow on a computer (K-4b, 2026-10-23: "limit search bar it can no be this
     long"): the bars run the whole window now, and a field the width of a 1920 px screen reads as a mistake. A phone
     has no cap — there the row's rest is exactly what it should take. */
  --search-max:300px;
  --field-clear:32px;                          /* the round × inside a field (ClearButton): the search's, the price's */
  --field-clear-room:calc(var(--field-clear) + 4px); /* … and the room a field keeps for it after its text */
  --suggest-max:min(320px, 40dvh);            /* a suggestion popover's height; it scrolls inside */
  --select-pop-max:min(360px, calc(100vw - 24px)); /* a Select's list: at most this wide; as high as the room allows */
  --pop-edge:var(--sp-5);                     /* the least a popover keeps from the visible edges, inside the safe area (E-3b) */
  --stepper-btn:32px; --stepper-w:6ch;        /* the number field's − / + (NumberStepper; --hit on a phone) and its value's width */
  --suggest-z:6;                              /* over the sheet's content */
  /* ---------- fields (E-3, 2026-10-06): every text field, number field, text area and choice, one look ---------- */
  /* A field is lighter than both the page and a sheet in the light theme and darker than both in the dark one, with a
     border, so it reads as a place to type wherever it lies; the search keeps its pill shape with the same fill and edge. */
  --field-bg:#FFFFFF; --field-ink:var(--ink); --field-line:var(--line-strong); --field-r:var(--r-m); --field-h:40px; --field-x:var(--sp-5);
  --field-arrow:var(--muted); /* a choice's ⌄, drawn, not the browser's */
  --off-opacity:.45; /* a button that is off (nothing to do yet): plainly off, in every view (K-4, 2026-10-06) */
  --chip-off-opacity:.35; /* a chip with one choice only: off, a little fainter than a button (K-17, 2026-11-13: "opacity 30-40%") */
  /* the filter bar (K-14k): one row of chips, at the top of the filter sheet and above the cards */
  --fbar-h:34px;                              /* fixed: a chip more or less never moves the cards */
  --fbar-gap:var(--sp-4);                     /* in the filter sheet: the band under the sticky bar, so a row scrolled up never touches it (2026-10-10) */
  --chips-row-gap:var(--sp-3);                /* between a chip group's wrapped rows: chips holding marks are taller (2026-10-10: "the rows shall not collide") */
  --mark-glyph:14px;                          /* the glyph in a copy's mark pill (ui/marks.ts): the room a 20 px pill has */
  --mark-pill-w:34px;                         /* a mark pill's least width: NM's (32.6 px measured), so C, U, R … are pills, not discs (2026-10-10) */
  --fchip-x:var(--muted);                     /* the chip's ✕ */
  --fchip-ms:160ms;                           /* a new chip fades and grows in, once */

  /* ---------- motion (K-48b): cards in and out of pockets, boxes and decks ---------- */
  --motion-in:380ms;                          /* a card sliding into a pocket or the grid */
  --motion-out:320ms;                         /* a card lifting out and fading */
  --motion-hop:260ms;                         /* ×N when the count changes */
  --ease-settle:cubic-bezier(.2,.9,.3,1.15);  /* lands with a slight overshoot */
  --ease-lift:cubic-bezier(.4,0,.8,.4);       /* leaves faster and faster */
  --motion-rise:-14%;                         /* how far a card travels in or out of the grid (of its own height) */
  --motion-sleeve:-62%;                       /* how far above its pocket a card starts, or ends when it lifts out */
  /* ---------- time (2026-10-07): every transition and animation reads one of these, never a literal time ---------- */
  --ms-1:150ms;  /* a hover, a colour or a switch's knob changing */
  --ms-2:200ms;  /* fading in or out, closing, a chevron turning, a popover popping in */
  --ms-3:280ms;  /* sliding: the carousel's cards, the camera's newest card */
  --ms-4:420ms;  /* a sheet rising */
  --ease-glide:cubic-bezier(.2,.8,.2,1);      /* slows to a stop without overshoot: the carousel's cards sliding */
  --foil-ms:1.6s;                             /* one sweep of a foil's shimmer (it runs six times, then stops) */
  --foil-card-ms:3.4s;                        /* and over a card in the carousel, where the band travels the whole
                                                 width of a card and not a thumbnail's: slower, or it reads as a
                                                 flicker rather than a sheen (2026-10-26: "it is a bit too fast") */
  --card-perspective:1100px;                  /* how deep a card leans: the foil's tilt (K-13g), a few degrees, where a
                                                 near camera would bend the picture rather than catch the light */
  --turn-perspective:720px;                   /* and how deep it turns (K-9d). A nearer camera than the lean's, because
                                                 a half-turn passes edge-on: at 1100px over a card this size the near
                                                 edge barely grows and the turn reads as a flat picture being scaled
                                                 (2026-10-29: "the flipper of the card needs more work") */
  --turn-ms:480ms;                            /* the card in focus turning over (K-9d): one half-turn, long enough to
                                                 read as a card being turned in the hand and not a cut */
  --ease-turn:cubic-bezier(.32,1.28,.5,1);    /* and how it settles: a card turned in the hand carries past the end and
                                                 comes back. The carousel's own --ease-glide stops dead, which is right
                                                 for something sliding and wrong for something with momentum */
  --ring-glide-ms:250ms;                      /* the card sheet's ring gliding to the next card's fill on a swipe */
  --scan-pulse-ms:1s;                         /* the camera's frame pulsing while a card is read */
  /* ---------- layers (2026-10-07): what lies over what, for the whole page. Inside a component, 0–9 orders its own
     parts and is not a layer. ---------- */
  --z-sticky:20;    /* a sticky title bar or control row in the content */
  --z-fab:25;       /* the floating buttons */
  --z-bars:30;      /* the app bar, the tab bar and the offline chip */
  --z-overlay:50;   /* the camera in full screen, Overview's hover tip */
  --z-sheet:55;     /* a sheet from the bottom, with its backdrop */
  --z-carousel:60;  /* the carousel over everything that isn't a message */
  --z-toast:70;     /* a toast: over the carousel and a sheet, never hidden by them */
  --z-popover:85;   /* a popover, over whatever opened it */
  --z-tip:87;       /* the tooltip (ui/TooltipLayer), over a popover whose control it names */
  --z-closed:90;    /* the site closed for maintenance (K-91e): over everything, nothing of the app shows behind it */
  --z-upright:95;   /* a phone on its side (E-8): over everything, even the closed screen, until it is turned back */
  /* ---------- what floats (E-3, decided 2026-10-07, SLÅ-6 option 1, Decision 53): two levels, nothing in between ---------- */
  /* A list or menu that opens under what it belongs to — a search field's suggestions, Lägg till's hits — lies on the
     surface: the float level. A popover, the toast, the hover tip and the offline chip stand apart from the page, dark
     in both themes (2026-10-08) and with the blur behind: the pop level. Within a level the edge, the corner and the shadow are the same; a row
     under the pointer or the keys is --*-at. */
  --float-bg:var(--surface); --float-ink:var(--ink); --float-line:var(--line); --float-shadow:var(--shadow-pop); --float-r:var(--r-m);
  --float-at:var(--bg);
  /* The hit under the pointer or the arrows, and the row whose prints are open (K-15f). */
  --float-hover:var(--bg);
  /* The picker under the search field (K-15f): the cards found, or one card's prints, in one box with one scroll —
     opening a card's prints makes it much taller, so it takes most of the window rather than a fixed 420 px. */
  --hits-max-h:min(70dvh, 620px);
  --prints-one-w:260px;     /* a card with one print, shown large enough to be sure of it (K-15f) */
  --pop-arrow-size:12px; /* the popover's arrow, a turned square centred on its point */
  --pop-bg:var(--popover); --pop-line:var(--popover-line); --pop-shadow:var(--shadow-3); --pop-r:var(--r-l);
  --pop-blur:var(--modal-blur);
  /* What lies on the pop level, the same in both themes: the dark theme's ink, lines and accents. On the light theme's
     popover over white (the worst case behind the blur, #282828) the ink is 11.4:1, the muted 5.3:1 and the blue 4.8:1;
     a test keeps them over 4.5:1. The rule after :root hands them to everything inside. */
  --pop-ink:#E2E2E2; --pop-muted:#9B9B9B; --pop-rule:#3A3A3A; --pop-line-strong:#757575;
  --pop-surface:#282828; --pop-field:#1D1D1D; --pop-at:#303030; --pop-pill-tint:24%; --pop-pill-ink-mix:30%;
  --pop-focus:var(--pop-ink); --pop-way:#4B95EA; --pop-own:#55B572; --pop-action:#E2B13C; --pop-on-action:#141414; --pop-action-ink:#E2B13C;
  --pop-cap:#F4A49B;
  /* ---------- the tooltip (E-3, 2026-11-12): one small dark pill for every control's name, ui/TooltipLayer ---------- */
  --tip-bg:#2A2A2A; --tip-ink:#F2F2F2; --tip-r:var(--r-pill); --tip-shadow:var(--shadow-2);
  --tip-fs:var(--fs-s); --tip-pad:var(--sp-1) var(--sp-3); --tip-max-w:240px;
  --tip-fade-ms:120ms; /* the fade in; it goes at once, and with reduced motion it comes at once too */
  /* ---------- the toast (E-9): one for the whole app, the page's and React's alike ---------- */
  /* At the top, centred, just under the app bar: never behind the tab bar or the floating buttons at the bottom. The
     pop level (SLÅ-6). */
  --toast-bg:var(--pop-bg); --toast-ink:var(--pop-ink); --toast-line:var(--pop-line); --toast-shadow:var(--pop-shadow);
  --toast-r:var(--pop-r); --toast-blur:var(--pop-blur); --toast-gap:var(--sp-4);
  --toast-swipe-ms:160ms; /* a swiped toast springs back or leaves (ui/swipeDismiss.ts) */
  /* ---------- a place's colour (K-44b, decided 2026-10-09, Decision 64) ---------- */
  /* The palette a binder, box or deck may have, on its icon wherever it is named (PlaceIcon) and on the colour choice's
     swatches; none ("Ingen") is the neutral --muted icon. 32 since 2026-11-12, in the colour choice's order (8 a row:
     the original eight, then a light, a deep and a dark row). Each 3:1 or more against the page, a surface and a field
     in the light theme; the dark theme and the pop level take the lighter --pop-place-*, 3:1 or more on #303030. A test
     measures them. */
  --place-red:#C2362B; --place-orange:#B35400; --place-yellow:#8A6A00; --place-green:#2D7A36; --place-teal:#00766E; --place-blue:#1F62BF; --place-purple:#7A42B8; --place-grey:#666666;
  --place-rose:#D35570; --place-coral:#CD5630; --place-amber:#B07306; --place-lime:#618B03; --place-mint:#089174; --place-sky:#0586CA; --place-violet:#7457D1; --place-pink:#CD5394;
  --place-crimson:#9C012B; --place-rust:#A24102; --place-bronze:#704A02; --place-emerald:#02703F; --place-cyan:#058DA0; --place-indigo:#3738AC; --place-magenta:#A81BA3; --place-slate:#3A4E68;
  --place-maroon:#671029; --place-brown:#663C23; --place-olive:#646104; --place-forest:#104A17; --place-petrol:#02515F; --place-navy:#113375; --place-plum:#632267; --place-sand:#827353;
  --pop-place-red:#F2776C; --pop-place-orange:#F09A4A; --pop-place-yellow:#E3C34A; --pop-place-green:#6CC27B; --pop-place-teal:#4CC3B6; --pop-place-blue:#6EA9F0; --pop-place-purple:#B98BE8; --pop-place-grey:#A3A3A3;
  --pop-place-rose:#FE9EAD; --pop-place-coral:#FEA387; --pop-place-amber:#FFC57C; --pop-place-lime:#B7EC69; --pop-place-mint:#6EF3CE; --pop-place-sky:#6BC0FF; --pop-place-violet:#B6AAFF; --pop-place-pink:#FEC4DE;
  --pop-place-crimson:#DE4356; --pop-place-rust:#F0834E; --pop-place-bronze:#C39553; --pop-place-emerald:#61DA92; --pop-place-cyan:#59DFF8; --pop-place-indigo:#8B9BFE; --pop-place-magenta:#ED66E5; --pop-place-slate:#9CB3D1;
  --pop-place-maroon:#C96B7B; --pop-place-brown:#D09E83; --pop-place-olive:#B2B04F; --pop-place-forest:#649C66; --pop-place-petrol:#5FABBE; --pop-place-navy:#5D85CE; --pop-place-plum:#C781CB; --pop-place-sand:#E0CFAC;
  --place-icon:18px;       /* in a choice, a chip and a group's head */
  --family-icon:24px;      /* a family's set icon in its group's head in Mål (K-20c) */
  --place-row-icon:24px;   /* at the start of Förvaring's rows */
  --place-hit-name:10em;   /* the least room for a card's name in Move cards here's rows before its buttons go under it (K-60m) */
  --place-inline:1.15cap; --place-inline-drop:-0.12em; /* in a sentence: the capitals' height, sitting on the baseline (PlaceText) */
  /* a pill (K-109, ui/Pill.ts, 2026-11-13: "Soft tint"): a wash of its place colour, the text that colour mixed toward
     the ink; the dark theme and the pop level wash stronger and mix less, as their place colours are already light */
  --pill-h:28px; --pill-close:20px; --pill-weight:550; --pill-tint:14%; --pill-ink-mix:58%; --pill-x-hover:16%;
  --swatch:20px;           /* a colour's dot: the colour choice's button and None in its grid */
  --swatch-grid:28px;      /* a colour's dot in the colour choice's grid, as big as its cell allows */
  --swatch-ring:2px;       /* the chosen swatch's ring */
  /* the shared spinner (.mc-spin, ui.css): the camera's shutter */
  --spin-size:16px; --spin-w:2px; --spin-ms:800ms;
  /* ---------- the box seen from above (prototype on the components page, 2026-10-09) ---------- */
  /* Cards stand on edge in a row going into the screen; the one at the flip point is lifted and faces you, those behind
     lean back and step up and away, those already flipped tip forward and fade. storage/BoxFlip.ts sets each card's
     distance from the flip point (--bf-d) and storage/boxflip.css turns it into a transform with these. */
  --boxflip-h:min(74vh, 600px);          /* the box's window */
  --boxflip-card-w:min(58%, 250px);      /* a standing card's width */
  --boxflip-floor:var(--sp-6);           /* where the cards' bottoms stand, above the window's bottom */
  --boxflip-wall-h:calc(var(--boxflip-floor) + var(--boxflip-lift)); /* the box's front wall: up to the lifted card, hiding the bottoms of the standing ones */
  --boxflip-lift:72px;                   /* how far the card at the flip point is pulled up, clear of the wall */
  --boxflip-depth:16px;                  /* how far behind the one in front each card stands */
  --boxflip-rise:20px;                   /* how far up each card behind shows its top edge … */
  --boxflip-reach:7;                     /* … flattening out with distance, as in a real box */
  --boxflip-tilt:9deg;                   /* how far a standing card leans back */
  --boxflip-tip:68deg;                   /* how far a flipped card tips forward before it is gone */
  --boxflip-perspective:1100px;
  --boxflip-eye:-35%;                    /* the eye above the box, looking down into it */
  --boxflip-tab-h:24px;                  /* a divider's tab above the cards */
  --boxflip-inside:#C9C9C9; --boxflip-inside-far:#B4B4B4; /* the box's floor and far end */
  --boxflip-wall:#D8D8D8; --boxflip-wall-edge:#EDEDED;
  --boxflip-card-shadow:0 -1px 0 rgba(255,255,255,.35),0 2px 8px rgba(0,0,0,.28);
  --boxflip-wall-shadow:inset 0 2px 0 var(--boxflip-wall-edge),0 -6px 14px rgba(0,0,0,.18);
  --boxflip-divider:#EBEBEB;             /* a divider's card */
  --boxflip-tab-bg:var(--ink); --boxflip-tab-ink:var(--bg); /* an automatic divider's tab (per set) */
  --boxflip-tab-manual-bg:var(--part); --boxflip-tab-manual-ink:var(--ink-on-light); /* a divider of one's own (Trade) */
}

/* The pop level is dark in both themes (E-3, decided 2026-10-08, Decision 53): inside a popover, the toast, the hover tip
   and the offline chip the page's own tokens are the pop level's, so what lies in them — a list and its active row, a
   chip, a field, a button, a link, the focus ring — reads light on dark without rules of its own. A token made of others
   takes them where it is set, so those are set again here. A fixed scope, not a state that changes while the page is
   used. A Select's list opened from inside a popover (the copy menu's location) is on this level too (.dark). */
.mc-pop,.mc-floatpop.dark,.mc-toast,.tip,.mc-offline{
  --bg:var(--pop-field); --surface:var(--pop-surface); --ink:var(--pop-ink); --muted:var(--pop-muted); --line:var(--pop-rule);
  --line-strong:var(--pop-line-strong); --pocket:var(--pop-at); --focus:var(--pop-focus); --way:var(--pop-way); --pending:var(--pop-way);
  --own:var(--pop-own); --action:var(--pop-action); --on-action:var(--pop-on-action); --action-ink:var(--pop-action-ink);
  --cap:var(--pop-cap); --cap-ink:var(--pop-cap); --on-cap-ink:var(--pop-field);
  --chip-bg:var(--pop-surface); --chip-line:var(--pop-line-strong); --chip-ink:var(--pop-ink); --fchip-x:var(--pop-muted);
  --field-bg:var(--pop-field); --field-ink:var(--pop-ink); --field-line:var(--pop-line-strong); --field-arrow:var(--pop-muted);
  --focus-ring:2px solid var(--pop-focus); --dot-halo:0 0 0 var(--edge-1-5) var(--pop-at);
  --place-red:var(--pop-place-red); --place-orange:var(--pop-place-orange); --place-yellow:var(--pop-place-yellow); --place-green:var(--pop-place-green); --place-teal:var(--pop-place-teal); --place-blue:var(--pop-place-blue); --place-purple:var(--pop-place-purple); --place-grey:var(--pop-place-grey);
  --place-rose:var(--pop-place-rose); --place-coral:var(--pop-place-coral); --place-amber:var(--pop-place-amber); --place-lime:var(--pop-place-lime); --place-mint:var(--pop-place-mint); --place-sky:var(--pop-place-sky); --place-violet:var(--pop-place-violet); --place-pink:var(--pop-place-pink);
  --place-crimson:var(--pop-place-crimson); --place-rust:var(--pop-place-rust); --place-bronze:var(--pop-place-bronze); --place-emerald:var(--pop-place-emerald); --place-cyan:var(--pop-place-cyan); --place-indigo:var(--pop-place-indigo); --place-magenta:var(--pop-place-magenta); --place-slate:var(--pop-place-slate);
  --place-maroon:var(--pop-place-maroon); --place-brown:var(--pop-place-brown); --place-olive:var(--pop-place-olive); --place-forest:var(--pop-place-forest); --place-petrol:var(--pop-place-petrol); --place-navy:var(--pop-place-navy); --place-plum:var(--pop-place-plum); --place-sand:var(--pop-place-sand);
  --subtle-mark-bg:var(--pop-at); --subtle-mark-ink:var(--pop-ink); --subtle-icon:var(--pop-muted);
  --pill-tint:var(--pop-pill-tint); --pill-ink-mix:var(--pop-pill-ink-mix);
  color-scheme:dark}

/* On a phone (under 760 px, E-8) the side margin is half the computer's, so the cards get the room (2026-10-05: "margins
   left-right could be halfed"). The page (.wrap) and the bars (.mc-bar-in) both take --page-x, so they stay lined up.
   A fixed layout value, not a state that changes while the page is used. */
@media (max-width:760px){ :root{ --page-x:calc(var(--sp-6) / 2); } }
/* A phone has little room beside the field, so the picker takes what there is (K-15f). */
@media (max-width:760px){ :root{ --hits-max-h:min(78dvh, 720px); } }
/* The browser's own parts of a field — a choice's open list, a spinner — follow the theme (KOM-5: the country list was
   white in the dark theme). */
:root{color-scheme:light}

/* The dark theme: the system setting, unless the page says light; or data-theme="dark". */
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --bg:#1D1D1D; --surface:#282828; --ink:#E2E2E2; --muted:#9B9B9B; --line:#3A3A3A; --pocket:#303030; --emboss:#121212;
  --subtle-mark-bg:#4A4A4A; --subtle-mark-ink:#E8E8E8; --row-cur:#33312C;
  --pile-ink:color-mix(in oklab, var(--line), var(--muted) 25%);
  --own:#55B572; --action-ink:#E2B13C;
  --part:#D7A343; --cap:#F4A49B; --way:#4B95EA; --cart:#24456A; --buy:#E0BF72; --check:#9BE0B4;
  --storage-goal:#6BC48A; --storage-set:#A8C96A; --storage-cards:#8AB4E8; --storage-scanner:#C4A67A; --storage-phone:#B49AD8; --storage-other:#A0A0A8;
  --price-plain:#2E7CC4; --price-foil:#C9752A; --price-etched:#2E9E6E;
  --lent:#62BCC6; --cover:#111111; --popover:rgba(6,6,6,.93); --pend-bg:var(--popover); --count-quiet-bg:var(--on-image-plate); --count-quiet-ink:var(--on-image); --card-dim:rgba(29,29,29,.55); --card-off:rgba(29,29,29,.82); --card-dim-focus:rgba(29,29,29,.26); --card-turn-shade:rgba(0,0,0,.34); --skel-sheen:rgba(255,255,255,.06);
  --goalcard-credit-ink:rgba(255,255,255,.82); --goalcard-credit-opacity:.56; --goalcard-credit-chip:rgba(0,0,0,.28);
  --danger-strong:#A8362C; --field-bg:var(--bg); color-scheme:dark; --rar-common:#E2E2E2;
  --pt-bg:#3A3935; --pt-ink:#F1EEE6; --loy-bg:#E2E2E2; --loy-ink:#1C1C1E;
  --line-strong:#757575; --cap-ink:var(--cap); --on-cap-ink:var(--bg); --mana-light-ring:none; --dark-dot-ring:0 0 0 1px var(--line-strong);
  --boxflip-inside:#2C2C2C; --boxflip-inside-far:#202020; --boxflip-wall:#3A3A3A; --boxflip-wall-edge:#565656; --boxflip-divider:#3C3C3C;
  --place-red:var(--pop-place-red); --place-orange:var(--pop-place-orange); --place-yellow:var(--pop-place-yellow); --place-green:var(--pop-place-green); --place-teal:var(--pop-place-teal); --place-blue:var(--pop-place-blue); --place-purple:var(--pop-place-purple); --place-grey:var(--pop-place-grey);
  --place-rose:var(--pop-place-rose); --place-coral:var(--pop-place-coral); --place-amber:var(--pop-place-amber); --place-lime:var(--pop-place-lime); --place-mint:var(--pop-place-mint); --place-sky:var(--pop-place-sky); --place-violet:var(--pop-place-violet); --place-pink:var(--pop-place-pink);
  --place-crimson:var(--pop-place-crimson); --place-rust:var(--pop-place-rust); --place-bronze:var(--pop-place-bronze); --place-emerald:var(--pop-place-emerald); --place-cyan:var(--pop-place-cyan); --place-indigo:var(--pop-place-indigo); --place-magenta:var(--pop-place-magenta); --place-slate:var(--pop-place-slate);
  --place-maroon:var(--pop-place-maroon); --place-brown:var(--pop-place-brown); --place-olive:var(--pop-place-olive); --place-forest:var(--pop-place-forest); --place-petrol:var(--pop-place-petrol); --place-navy:var(--pop-place-navy); --place-plum:var(--pop-place-plum); --place-sand:var(--pop-place-sand);
  --pill-tint:var(--pop-pill-tint); --pill-ink-mix:var(--pop-pill-ink-mix);
  --mana-w:#E3D49A; --mana-u:#5A97DB; --mana-b:#9A8F98; --mana-r:#E2674F; --mana-g:#5DB073; --mana-c:#B5B0A6;
  --deckpart-creature:#6A9BE0; --deckpart-planeswalker:#AC8BE0; --deckpart-battle:#E07AA0; --deckpart-artifact:#9AAAB8;
  --deckpart-enchantment:#4FC2B0; --deckpart-instant:#E89A55; --deckpart-sorcery:#D4B45A; --deckpart-other:#7A7A7A;
  --deckpart-land:#4E4E4E;
  --tip-bg:#4A4A4A; } }
:root[data-theme="dark"]{
  --bg:#1D1D1D; --surface:#282828; --ink:#E2E2E2; --muted:#9B9B9B; --line:#3A3A3A; --pocket:#303030; --emboss:#121212;
  --subtle-mark-bg:#4A4A4A; --subtle-mark-ink:#E8E8E8; --row-cur:#33312C;
  --pile-ink:color-mix(in oklab, var(--line), var(--muted) 25%);
  --own:#55B572; --action-ink:#E2B13C;
  --part:#D7A343; --cap:#F4A49B; --way:#4B95EA; --cart:#24456A; --buy:#E0BF72; --check:#9BE0B4;
  --storage-goal:#6BC48A; --storage-set:#A8C96A; --storage-cards:#8AB4E8; --storage-scanner:#C4A67A; --storage-phone:#B49AD8; --storage-other:#A0A0A8;
  --price-plain:#2E7CC4; --price-foil:#C9752A; --price-etched:#2E9E6E;
  --lent:#62BCC6; --cover:#111111; --popover:rgba(6,6,6,.93); --pend-bg:var(--popover); --count-quiet-bg:var(--on-image-plate); --count-quiet-ink:var(--on-image); --card-dim:rgba(29,29,29,.55); --card-off:rgba(29,29,29,.82); --card-dim-focus:rgba(29,29,29,.26); --card-turn-shade:rgba(0,0,0,.34); --skel-sheen:rgba(255,255,255,.06);
  --goalcard-credit-ink:rgba(255,255,255,.82); --goalcard-credit-opacity:.56; --goalcard-credit-chip:rgba(0,0,0,.28);
  --danger-strong:#A8362C; --field-bg:var(--bg); color-scheme:dark; --rar-common:#E2E2E2;
  --pt-bg:#3A3935; --pt-ink:#F1EEE6; --loy-bg:#E2E2E2; --loy-ink:#1C1C1E;
  --line-strong:#757575; --cap-ink:var(--cap); --on-cap-ink:var(--bg); --mana-light-ring:none; --dark-dot-ring:0 0 0 1px var(--line-strong);
  --boxflip-inside:#2C2C2C; --boxflip-inside-far:#202020; --boxflip-wall:#3A3A3A; --boxflip-wall-edge:#565656; --boxflip-divider:#3C3C3C;
  --place-red:var(--pop-place-red); --place-orange:var(--pop-place-orange); --place-yellow:var(--pop-place-yellow); --place-green:var(--pop-place-green); --place-teal:var(--pop-place-teal); --place-blue:var(--pop-place-blue); --place-purple:var(--pop-place-purple); --place-grey:var(--pop-place-grey);
  --place-rose:var(--pop-place-rose); --place-coral:var(--pop-place-coral); --place-amber:var(--pop-place-amber); --place-lime:var(--pop-place-lime); --place-mint:var(--pop-place-mint); --place-sky:var(--pop-place-sky); --place-violet:var(--pop-place-violet); --place-pink:var(--pop-place-pink);
  --place-crimson:var(--pop-place-crimson); --place-rust:var(--pop-place-rust); --place-bronze:var(--pop-place-bronze); --place-emerald:var(--pop-place-emerald); --place-cyan:var(--pop-place-cyan); --place-indigo:var(--pop-place-indigo); --place-magenta:var(--pop-place-magenta); --place-slate:var(--pop-place-slate);
  --place-maroon:var(--pop-place-maroon); --place-brown:var(--pop-place-brown); --place-olive:var(--pop-place-olive); --place-forest:var(--pop-place-forest); --place-petrol:var(--pop-place-petrol); --place-navy:var(--pop-place-navy); --place-plum:var(--pop-place-plum); --place-sand:var(--pop-place-sand);
  --pill-tint:var(--pop-pill-tint); --pill-ink-mix:var(--pop-pill-ink-mix);
  --mana-w:#E3D49A; --mana-u:#5A97DB; --mana-b:#9A8F98; --mana-r:#E2674F; --mana-g:#5DB073; --mana-c:#B5B0A6;
  --deckpart-creature:#6A9BE0; --deckpart-planeswalker:#AC8BE0; --deckpart-battle:#E07AA0; --deckpart-artifact:#9AAAB8;
  --deckpart-enchantment:#4FC2B0; --deckpart-instant:#E89A55; --deckpart-sorcery:#D4B45A; --deckpart-other:#7A7A7A;
  --deckpart-land:#4E4E4E;
  --tip-bg:#4A4A4A; }
