/* ===== MaskLM design system (28 Oct 22:40) =====
   Component library: Pico CSS v2.0.6 (loaded before this file: buttons, form fields, checkboxes, ranges, tables,
   tooltips, light/dark themes) + the Inter typeface. Below: Pico tuned to a compact scale and an indigo accent, and the
   app's own tokens (--bg, --panel, --ink, ...) aliased to Pico's so every component follows one palette in both themes. */
html { font-size: 15px; }
:root { --pico-font-family-sans-serif: Inter, system-ui, "Segoe UI", Roboto, sans-serif; --pico-font-family: var(--pico-font-family-sans-serif);
  --pico-border-radius: .6rem; --pico-spacing: 1rem; --pico-typography-spacing-vertical: .75rem; --pico-line-height: 1.55;
  --pico-form-element-spacing-vertical: .5rem; --pico-form-element-spacing-horizontal: .8rem; --pico-font-weight: 400; }
:root:not([data-theme=dark]), [data-theme=light] {
  --pico-background-color: #f7f7f8; --pico-card-background-color: #ffffff; --pico-color: #18181b; --pico-muted-color: #5b5b66; --pico-muted-border-color: #e4e4e9;
  --pico-primary: #4f46e5; --pico-primary-background: #4f46e5; --pico-primary-border: #4f46e5; --pico-primary-underline: rgba(79, 70, 229, .4);
  --pico-primary-hover: #4338ca; --pico-primary-hover-background: #4338ca; --pico-primary-hover-border: #4338ca; --pico-primary-focus: rgba(79, 70, 229, .22); --pico-primary-inverse: #fff;
  --pico-form-element-background-color: #ffffff; --pico-form-element-border-color: #d9d9e0; --pico-form-element-focus-color: #4f46e5;
  --m-soft: #f0f0f3; --m-shadow: 0 1px 2px rgba(16, 16, 32, .05), 0 1px 1px rgba(16, 16, 32, .03); --m-shadow-lg: 0 12px 32px rgba(16, 16, 32, .12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) {
  --pico-background-color: #0f0f12; --pico-card-background-color: #17171c; --pico-color: #ececf1; --pico-muted-color: #a0a0ab; --pico-muted-border-color: #2a2a32;
  --pico-primary: #8b85ff; --pico-primary-background: #6d66f0; --pico-primary-border: #6d66f0; --pico-primary-underline: rgba(139, 133, 255, .45);
  --pico-primary-hover: #a7a2ff; --pico-primary-hover-background: #7f78ff; --pico-primary-hover-border: #7f78ff; --pico-primary-focus: rgba(139, 133, 255, .28); --pico-primary-inverse: #fff;
  --pico-form-element-background-color: #121216; --pico-form-element-border-color: #34343d; --pico-form-element-focus-color: #8b85ff;
  --m-soft: #202027; --m-shadow: 0 1px 2px rgba(0, 0, 0, .4); --m-shadow-lg: 0 14px 36px rgba(0, 0, 0, .5); } }
[data-theme=dark] {
  --pico-background-color: #0f0f12; --pico-card-background-color: #17171c; --pico-color: #ececf1; --pico-muted-color: #a0a0ab; --pico-muted-border-color: #2a2a32;
  --pico-primary: #8b85ff; --pico-primary-background: #6d66f0; --pico-primary-border: #6d66f0; --pico-primary-hover: #a7a2ff; --pico-primary-hover-background: #7f78ff;
  --pico-primary-hover-border: #7f78ff; --pico-primary-focus: rgba(139, 133, 255, .28); --pico-primary-inverse: #fff;
  --pico-form-element-background-color: #121216; --pico-form-element-border-color: #34343d; --m-soft: #202027; --m-shadow: 0 1px 2px rgba(0, 0, 0, .4); --m-shadow-lg: 0 14px 36px rgba(0, 0, 0, .5); }
/* app tokens follow Pico's */
:root, [data-theme] { --bg: var(--pico-background-color); --panel: var(--pico-card-background-color); --ink: var(--pico-color); --mute: var(--pico-muted-color);
  --line: var(--pico-muted-border-color); --soft: var(--m-soft); --field: var(--pico-form-element-background-color); --acc: var(--pico-primary-background);
  --acc-ink: var(--pico-primary-inverse); --good: #15803d; --bad: #c2410c; --redact: var(--pico-color); --hl-a: .22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --good: #4ade80; --bad: #fb923c; } }
[data-theme=dark] { --good: #4ade80; --bad: #fb923c; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--pico-font-family); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--pico-primary); text-underline-offset: 3px; }
/* Pico's block margins are replaced by layout gaps */
p, h1, h2, h3, table, label, details, section, form, fieldset, ul, ol { margin-bottom: 0; }
h1, h2, h3 { margin-top: 0; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.25rem; font-weight: 650; }
h3 { font-size: 1.05rem; font-weight: 600; }

/* header: light, sticky, translucent */
header.top { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; padding: 10px 28px;
  background: color-mix(in srgb, var(--panel) 86%, transparent); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
header.top .brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
header.top .brand svg { width: 26px; height: 26px; }
header.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; justify-content: flex-start; }
header.top nav a, header.top details.menu summary { color: var(--mute); text-decoration: none; padding: 6px 12px; border-radius: 8px; font-size: .93rem; font-weight: 500; }
header.top nav a:hover, header.top details.menu summary:hover { color: var(--ink); background: var(--soft); }
header.top nav a.on, header.top details.menu summary.on { color: var(--pico-primary); background: color-mix(in srgb, var(--acc) 10%, transparent); text-decoration: none; }

main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 72px; display: flex; flex-direction: column; gap: 20px; }
.sub { margin: 6px 0 0; color: var(--mute); max-width: 900px; font-size: 1rem; line-height: 1.6; }
.row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* card */
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--m-shadow); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lab { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin: 0; }

/* buttons: secondary by default (outlined), .pri = primary, .on = selected */
/* :not(.__x) lifts these above Pico's :is(button,[type=button],...) selectors */
button:not(.__x), .btn { font: inherit; font-size: .9rem; font-weight: 500; min-height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--pico-form-element-border-color);
  background: var(--panel); color: var(--ink); cursor: pointer; width: auto; margin: 0; box-shadow: 0 1px 1px rgba(0, 0, 0, .03); transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
button:not(.__x):hover, button:not(.__x):focus { background: var(--soft); border-color: var(--pico-form-element-border-color); color: var(--ink); }
button:not(.__x):focus-visible { outline: none; box-shadow: 0 0 0 3px var(--pico-primary-focus); }
button.pri:not(.__x) { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); font-weight: 600; }
button.pri:not(.__x):hover, button.pri:not(.__x):focus { background: var(--pico-primary-hover-background); border-color: var(--pico-primary-hover-background); color: var(--acc-ink); }
button.on:not(.__x) { background: color-mix(in srgb, var(--acc) 12%, var(--panel)); color: var(--pico-primary); border-color: color-mix(in srgb, var(--acc) 55%, transparent); }
button:not(.__x):disabled { opacity: .55; cursor: progress; }

/* form fields (Pico styles; compact here) */
input:not([type=checkbox]):not([type=radio]):not([type=range]), textarea, select { font: inherit; font-size: .92rem; color: var(--ink); background-color: var(--field);
  border: 1px solid var(--pico-form-element-border-color); border-radius: 9px; padding: 8px 11px; width: 100%; height: auto; margin-bottom: 0; box-shadow: none; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus, textarea:focus, select:focus { border-color: var(--pico-primary); box-shadow: 0 0 0 3px var(--pico-primary-focus); outline: none; }
select { width: auto; padding-right: 2.2rem; }
textarea { resize: vertical; line-height: 1.55; }
input[type=checkbox] { margin: 0 6px 0 0; }
input[type=range] { margin: 0; height: 1.25rem; }
label { margin-bottom: 0; }

/* tables */
table { border-collapse: collapse; width: 100%; font-size: .9rem; margin: 0; background: transparent; }
td, th { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; background: transparent; color: var(--ink); }
th { font-size: .7rem; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
table tr:hover td { background: color-mix(in srgb, var(--soft) 60%, transparent); }
.tbl { overflow-x: auto; }

.tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--panel); min-width: 120px; }
.tile b { display: block; font-size: 18px; }
.doc { white-space: pre-wrap; font-size: .95rem; line-height: 1.85; max-height: 560px; overflow: auto; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.doc.short { max-height: 380px; }
.m { border-radius: 4px; padding: 0 2px; border-bottom: 2px solid; cursor: pointer; }
.m.dim { opacity: .35; }
.red { background: var(--redact); color: transparent; border-radius: 3px; }
.red.q { background: repeating-linear-gradient(45deg, var(--redact) 0 3px, var(--mute) 3px 6px); }
.ok { color: var(--good); font-weight: 600; } .no { color: var(--bad); font-weight: 600; }
.note { font-size: .82rem; color: var(--mute); margin: 0; line-height: 1.5; }
.err { color: var(--bad); white-space: pre-wrap; }
.busy { color: var(--mute); font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); max-width: 720px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0, 0, 0, .4); }
.kept { background: color-mix(in srgb, var(--acc) 20%, transparent); border-bottom: 2px solid var(--acc); }
.drop { border: 2px dashed var(--pico-form-element-border-color); border-radius: 12px; padding: 22px; text-align: center; color: var(--mute); background: var(--field); }
.drop.over { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 6%, var(--field)); }
svg text { fill: var(--ink); }
[hidden] { display: none !important; }

/* ---- interactive layer (28 Oct, "creative and fun") ---- */
@keyframes popin { from { opacity: 0; transform: translateY(3px) scale(.96); background-size: 0 100%; } to { opacity: 1; transform: none; } }
.pop { display: inline; animation: popin .35s ease-out both; }
@media (prefers-reduced-motion: reduce) { .pop, .tile, .gnode { animation: none !important; transition: none !important; } }
.m:focus-visible, .red:focus-visible, .chip:focus-visible, .tile:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.card { position: absolute; z-index: 50; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 13px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; border-radius: 999px; padding: 0 10px; }
.chip.off { opacity: .45; text-decoration: line-through; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.red.op { background: var(--soft); color: var(--ink); border: 1px dashed var(--mute); font-size: 12px; padding: 0 3px; }
.red.op.q { background: var(--soft); }
.m.revealed { background: transparent; border-bottom: 2px dashed; }
.diff-ours { outline: 2px solid #2563eb; outline-offset: 1px; }
.diff-base { outline: 2px solid #ea580c; outline-offset: 1px; }
.tag { font-size: 11px; border-radius: 999px; padding: 0 6px; border: 1px solid var(--line); }
.tag.ours { color: #2563eb; border-color: #2563eb; } .tag.base { color: #ea580c; border-color: #ea580c; }
.slider { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.slider input[type=range] { width: 180px; accent-color: var(--acc); }
.big { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kbd { font: 11px ui-monospace, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 4px; }
/* RAG tiles */
.tiles100 { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 700px) { .tiles100 { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.tile { aspect-ratio: 1; border-radius: 4px; background: var(--soft); border: 1px solid var(--line); cursor: pointer; padding: 0; min-height: 0;
  transition: transform .4s ease, opacity .4s ease, background .3s ease; position: relative; font-size: 9px; color: var(--mute); }
.tile.reading { animation: pulse .8s ease-in-out infinite; border-color: var(--acc); }
@keyframes pulse { 50% { transform: scale(.85); } }
.tile.read { opacity: .28; transform: scale(.72); }
.tile.kept { opacity: 1; transform: scale(1); background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.tile.gold::after { content: ""; position: absolute; right: 2px; top: 2px; width: 6px; height: 6px; border-radius: 50%; background: #eab308; }
.bar2 { height: 14px; border-radius: 7px; background: var(--soft); overflow: hidden; }
.bar2 > div { height: 100%; background: var(--acc); transition: width .8s cubic-bezier(.2,.8,.2,1); }
/* KG */
.gwrap { position: relative; touch-action: none; }
.gtools { position: absolute; right: 8px; top: 8px; display: flex; gap: 4px; }
.gtools button { min-height: 30px; padding: 0 9px; }
.gnode { cursor: grab; }
.gnode:focus { outline: none; } .gnode:focus-visible circle { stroke-width: 4; }
@keyframes grow { from { transform: scale(0); } to { transform: scale(1); } }
.gnew { animation: grow .5s ease-out both; transform-box: fill-box; transform-origin: center; }
.setcard { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-height: 60px; flex: 1 1 200px; }
.setcard b { font-size: 14px; }
.progress { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; } .progress > div { height: 100%; background: var(--acc); transition: width .4s; }
.tile2 { border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; background: var(--panel); min-width: 96px; }
.tile2 b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
#banner b { color: var(--acc); }


/* Playground mode switch (Solo / VS): the active mode is filled, the other is an outlined link */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); align-self: flex-start; }
.seg a { display: flex; flex-direction: column; gap: 1px; padding: 8px 18px; text-decoration: none; color: var(--mute); min-width: 180px; }
.seg a + a { border-left: 1px solid var(--line); }
.seg a b { color: var(--ink); font-size: 15px; }
.seg a span { font-size: 12px; }
.seg a:hover { background: var(--soft); }
.seg a.on { background: var(--acc); color: var(--acc-ink); cursor: default; }
.seg a.on b, .seg a.on span { color: var(--acc-ink); }
.seg a:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; }

/* ===== UI quality pass (28 Oct 22:20): spacing, alignment, readable controls ===== */
main { gap: 20px; padding: 24px 20px 64px; }
h1 { font-size: 24px; line-height: 1.25; }
.sub { max-width: 920px; line-height: 1.55; margin-top: 6px; }
.box { padding: 16px 18px; gap: 12px; }
.box > .lab:first-child { margin-bottom: -2px; }
.note { line-height: 1.5; }
.row { gap: 20px; }
label { cursor: pointer; }

/* buttons: one height, clear primary, compact icon buttons */
button, .btn { min-height: 36px; border-radius: 8px; }
button.pri { padding: 0 18px; }
button.icon { min-height: 32px; width: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; color: var(--mute); }
button.icon:hover { color: var(--bad); border-color: var(--bad); }

/* schema tables (types, fields, node types, relationships): full-width inputs, aligned rows, sensible column widths */
table.schema { table-layout: fixed; }
table.schema td { vertical-align: middle; padding: 5px 6px; }
table.schema th { padding: 4px 6px; }
table.schema input, table.schema select { width: 100%; }
table.schema col.c-del { width: 44px; }
table.schema col.c-name { width: 28%; }
table.schema col.c-kind { width: 120px; }
table.schema .empty td { color: var(--mute); font-size: 13px; padding: 10px 6px; border-bottom: 1px dashed var(--soft); }

/* labelled control toolbar: groups with a small label above, separated by space, wrapping cleanly */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 28px; }
.toolbar .group { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.toolbar .group > .lab { margin: 0; }
.toolbar .group .inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar .push { margin-left: auto; }

/* actions row: secondary left, primary right */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.actions .spacer { flex: 1 1 auto; }
.actions .hint { font-size: 12px; color: var(--mute); }

/* RAG tile grid: tiles are plain squares, not buttons with button padding */
.tiles100 { gap: 5px; }
.tiles100 .tile { all: unset; box-sizing: border-box; aspect-ratio: 1; width: 100%; border-radius: 4px; background: var(--soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--mute); cursor: pointer; position: relative;
  transition: transform .4s ease, opacity .4s ease, background .3s ease; }
.tiles100 .tile:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.tiles100 .tile.reading { animation: pulse .8s ease-in-out infinite; border-color: var(--acc); }
.tiles100 .tile.read { opacity: .3; transform: scale(.78); }
.tiles100 .tile.kept { opacity: 1; transform: none; background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 600; }

/* comparison panes: equal height, headings aligned */
#sides > .box { min-height: 100%; }
#sides .doc { max-height: 520px; }
.side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }

/* home: cards in three columns, calmer fact tiles */
.uses { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 960px) { .uses { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 620px) { .uses { grid-template-columns: 1fr !important; } }
.facts .fact b { font-size: 17px !important; line-height: 1.3; margin: 4px 0; }

/* phone width */
@media (max-width: 620px) {
  main { padding: 16px 14px 48px; }
  h1 { font-size: 20px; }
  .seg a { min-width: 0; flex: 1 1 140px; }
  .toolbar { gap: 12px 16px; }
  table.schema col.c-name { width: 34%; }
}

/* ===== design system: components on top of Pico (28 Oct 22:40) ===== */
.chip { min-height: 32px; border-radius: 999px; padding: 0 12px; font-size: .86rem; }
.chip.off { opacity: .5; }
.tag { border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 600; }
.card { border-radius: 12px; box-shadow: var(--m-shadow-lg); padding: 12px 14px; }
.kbd { font: 500 .7rem ui-monospace, SFMono-Regular, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; background: var(--panel); color: var(--mute); }
.tile2 { border-radius: 12px; padding: 10px 14px; background: var(--panel); }
.tile2 b { font-size: 1.15rem; }
.seg { border-radius: 12px; box-shadow: var(--m-shadow); border-color: var(--line); }
.seg a { padding: 10px 20px; }
.seg a.on { background: var(--acc); }
.progress, .bar2 { background: var(--soft); }
.big { letter-spacing: -.02em; }
/* header menu (Use cases) on the light header */
header.top details.menu { position: relative; margin: 0; }
header.top details.menu summary { list-style: none; cursor: pointer; margin: 0 !important; line-height: inherit; display: block; }
/* Pico adds a bottom margin to an open summary, which re-centred the header item and made it jump */
header.top details.menu[open] > summary { margin-bottom: 0 !important; }
header.top details.menu summary::after { display: none !important; }
header.top details.menu summary::-webkit-details-marker { display: none; }
header.top .menu-list { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 250px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; display: flex; flex-direction: column; box-shadow: var(--m-shadow-lg); }
header.top .menu-list a { padding: 9px 12px; border-radius: 8px; color: var(--ink); }
header.top .menu-list a:hover, header.top .menu-list a:focus-visible { background: var(--soft); color: var(--ink); }
header.top .menu-list a.on { color: var(--pico-primary); background: color-mix(in srgb, var(--acc) 10%, transparent); }
@media (max-width: 620px) { header.top { padding: 10px 14px; gap: 6px 12px; } header.top .menu-list { position: absolute; } }
/* graph surface */
#graph { background: var(--field) !important; border-color: var(--line) !important; border-radius: 12px !important; }
.uses .use { border-radius: 14px; }
.uses .use:hover { box-shadow: var(--m-shadow-lg); }

body > main { padding: 28px 24px 72px; }
@media (max-width: 620px) { body > main { padding: 18px 14px 48px; } }

button.icon:not(.__x) { min-height: 32px; width: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; color: var(--mute); }
button.icon:not(.__x):hover { color: var(--bad); border-color: var(--bad); background: var(--panel); }
button.chip:not(.__x) { min-height: 32px; border-radius: 999px; padding: 0 12px; font-size: .86rem; }
button.chip.off:not(.__x) { opacity: .5; }
.tiles100 button.tile:not(.__x) { all: unset; box-sizing: border-box; aspect-ratio: 1; width: 100%; border-radius: 4px; background: var(--soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--mute); cursor: pointer; position: relative; transition: transform .4s ease, opacity .4s ease, background .3s ease; }
.tiles100 button.tile.reading:not(.__x) { animation: pulse .8s ease-in-out infinite; border-color: var(--acc); }
.tiles100 button.tile.read:not(.__x) { opacity: .3; transform: scale(.78); }
.tiles100 button.tile.kept:not(.__x) { opacity: 1; transform: none; background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 600; }
.setcard:not(.__x) { text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; min-height: 64px; flex: 1 1 200px; border-radius: 12px; }
.setcard.on:not(.__x) { box-shadow: 0 0 0 2px var(--pico-primary-focus); }
.gtools button:not(.__x) { min-height: 30px; padding: 0 10px; background: var(--panel); }
/* Pico turns [role=group] into a full-width joined button bar; keep our chip groups as separate pills */
.chips[role=group] { display: flex; width: auto; margin: 0; box-shadow: none; border-radius: 0; gap: 6px; }
.chips[role=group] > button:not(.__x) { flex: none; border-radius: 999px; }
/* hero number tiles share one row */
.tiles.heroes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .tiles.heroes { grid-template-columns: 1fr; } }
/* MaskLM wordmark: "LM" in the accent */
header.top .brand svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 6px rgba(99, 102, 241, .35)); }
header.top .brand em { font-style: normal; font-weight: 800; background: linear-gradient(135deg, #6366f1, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* errors: a visible notice instead of loose red text (shown only when there is a message) */
.err:not(:empty) { display: block; padding: 12px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--bad) 40%, var(--line));
  background: color-mix(in srgb, var(--bad) 8%, var(--panel)); color: var(--ink); font-size: .95rem; }
.err:not(:empty)::before { content: "⚠ "; color: var(--bad); font-weight: 700; }
/* version badge, footer, waitlist dialog */
header.top .vbadge { font-size: .72rem; font-weight: 600; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; margin-left: -18px; white-space: nowrap; }
@media (max-width: 620px) { header.top .vbadge { display: none; } }
footer.site { border-top: 1px solid var(--line); background: var(--panel); margin-top: 40px; padding: 36px 24px 28px; }
footer.site .cols { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
footer.site .cols > div { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
footer.site a { color: var(--ink); text-decoration: none; font-size: .92rem; }
footer.site a:hover { color: var(--pico-primary); }
footer.site .fine { max-width: 1240px; margin: 24px auto 0; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
dialog .nform { display: flex; flex-direction: column; gap: 10px; }
dialog .nint { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: .92rem; }
dialog .nconsent { font-size: .86rem; color: var(--mute); display: flex; gap: 8px; align-items: flex-start; }
dialog .nconsent input { margin-top: 3px; }
