/* tool.css: dixith.com/search and dixith.com/backup, built on tokens.css (the family
 * design kit, DESIGN-PHILOSOPHY.md version 1.2). One file for both tools, identical
 * copies in each; site-tools-dev/sync-engines.sh copies it and the check fails if a
 * copy differs.
 *
 * The bar and footer are the hub's (dixith-hub/labs/hub.css). Lists sit on the page;
 * cards are solid in dark and milk in light, without blur (the glass budget, 4.7):
 * the only blurred layers are the bar once scrolled and the suggestion list.
 */

/* ---------------------------------------------------------------- the Indian-script faces (6.3) */
@font-face {
  font-family: 'Dixith Kannada'; font-weight: 700; font-style: normal; font-display: swap;
  src: local('Noto Serif Kannada Bold'), local('NotoSerifKannada-Bold'), url('fonts/noto-serif-kannada-700.woff2') format('woff2');
  unicode-range: U+0C80-0CFF, U+0964-0965, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Dixith Devanagari'; font-weight: 700; font-style: normal; font-display: swap;
  src: local('Noto Serif Devanagari Bold'), local('NotoSerifDevanagari-Bold'), url('fonts/noto-serif-devanagari-700.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A8E0-A8FF;
}
:root {
  --display: 'Fraunces', 'Dixith Kannada', 'Dixith Devanagari', Georgia, 'Times New Roman', serif;
  --col: 780px;
}

/* ---------------------------------------------------------------- page */
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
main.wrap { max-width: calc(var(--col) + 40px); padding-bottom: 24px; min-height: 60vh; }
body.tool-backup main.wrap { max-width: 1000px; }
:lang(kn), :lang(sa), :lang(hi), :lang(mr) { line-height: 1.6; }
h1, h2, h3 { overflow-wrap: anywhere; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-2); color: var(--ink); font-weight: 600; }
.skip:focus { left: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
code, kbd { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .88em; background: var(--bg-2); padding: 1px 6px; border-radius: 6px; }
kbd { box-shadow: inset 0 0 0 1px var(--line-2); }
mark { background: color-mix(in srgb, var(--accent) 16%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; font-weight: 600; }
:root[data-theme="dark"] mark, :root.auto-dark mark { background: color-mix(in srgb, var(--accent) 24%, transparent); }
p { margin: 0 0 12px; }

/* ---------------------------------------------------------------- the bar (the hub's) */
.top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); transition: background .2s, box-shadow .2s; }
.top .wrap { display: flex; align-items: center; gap: 10px; height: 60px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg, var(--accent-2), var(--accent)); color: #fff; }
:root[data-theme="dark"] .brand-mark, :root.auto-dark .brand-mark { color: var(--on-accent); }
.brand-mark svg { width: 18px; height: 18px; }
.tool-tag { font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.tool-tag:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.top nav a { color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 11px; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current] { background: var(--hover); color: var(--ink); text-decoration: none; }
body.scrolled .top { background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(22px); backdrop-filter: saturate(180%) blur(22px); box-shadow: inset 0 -1px 0 var(--line); }
html:not([data-theme="dark"]):not(.auto-dark) body.scrolled .top { background: linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(255, 255, 255, .76)); box-shadow: inset 0 -1px 0 var(--glass-rim), 0 1px 0 rgba(20, 22, 30, .05); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { body.scrolled .top { background: var(--surface-2); } }

/* ---------------------------------------------------------------- footer (the hub's) */
.foot { padding: 40px 0 calc(48px + env(safe-area-inset-bottom, 0px)); color: var(--ink-2); font-size: 14px; }
.foot .row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); }
.foot p { margin: 0; max-width: 38em; line-height: 1.5; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); font-weight: 600; }
.foot a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- type */
.srch-title, .adminhead h1, .page-title { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 6vw, 44px); line-height: 1.1; letter-spacing: -.02em; margin: 34px 0 10px; }
.srch-has .srch-title { display: none; }
.lede { font-size: 18px; line-height: 1.5; color: var(--ink-2); max-width: 40em; margin: 0 0 22px; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -.005em; margin: 0 0 10px; }
h3 { font-size: 15px; font-weight: 700; margin: 16px 0 8px; }
.small { font-size: 13px; color: var(--ink-2); }
.hint { color: var(--ink-2); font-size: 14px; line-height: 1.5; margin: 8px 0; }
.empty { color: var(--ink-2); font-style: normal; }
.label { display: block; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- notices */
.note { border-radius: 16px; padding: 12px 16px; margin: 14px 0; font-size: 15px; line-height: 1.5; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.note p { margin: 0 0 6px; } .note p:last-child { margin: 0; }
.note-ok { background: color-mix(in srgb, var(--good) 10%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--good) 30%, transparent); }
.note-warn { background: color-mix(in srgb, var(--p2) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p2) 36%, transparent); }
.note-bad { background: color-mix(in srgb, var(--late) 10%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--late) 34%, transparent); }
.note-bad strong { color: var(--late); }

/* ---------------------------------------------------------------- cards (solid in dark, milk in light, no blur) */
.card { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); padding: 18px 20px; margin: 16px 0; }
html:not([data-theme="dark"]):not(.auto-dark) .card { background: var(--milk); box-shadow: var(--shadow-glass), inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px rgba(20, 22, 30, .05); }
.card.narrow { max-width: 420px; }
.card > h2:first-child { margin-top: 0; }
details.card > summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .2s var(--ease); margin-right: 4px; }
details.card[open] > summary::after { transform: rotate(-135deg); }
details.card[open] > summary { margin-bottom: 8px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols > .card { margin: 0; }
.cols + .cols, .cols + .card, .card + .cols { margin-top: 16px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.explain { margin: 8px 0 0; padding-left: 20px; line-height: 1.6; }
.explain li { margin: 4px 0; }

/* ---------------------------------------------------------------- forms */
label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 10px 0 6px; }
:where(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), textarea, select) {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 13px; padding: 10px 13px; min-height: 44px; outline: none; transition: border-color .15s, box-shadow .15s; max-width: 100%;
}
textarea { width: 100%; line-height: 1.5; resize: vertical; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card.narrow input, .pinform input { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
form.inline { display: inline; margin: 0; }
.row form.inline { display: inline-flex; }
.btn { border: 0; cursor: pointer; }
.btn:not(.primary):not(.soft):not(.ghost):not(.danger) { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn:not(.primary):not(.soft):not(.ghost):not(.danger):hover { background: var(--hover); }
.mini { display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border: 0; cursor: pointer; white-space: nowrap; }
.mini:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.mini.danger { color: var(--late); background: color-mix(in srgb, var(--late) 9%, transparent); }
.mini.danger:hover { background: color-mix(in srgb, var(--late) 16%, transparent); }
@media (pointer: coarse) { .mini { min-height: 44px; } }

/* ---------------------------------------------------------------- the search box */
.searchbox { position: relative; display: flex; gap: 10px; align-items: stretch; margin: 6px 0 18px; }
.srch-has .searchbox { margin-top: 26px; }
.sb-field { position: relative; flex: 1; display: flex; align-items: center; }
.sb-field input[type=search] {
  width: 100%; min-height: 54px; padding: 12px 44px 12px 48px; border-radius: 16px; font-size: 18px;
  background: var(--surface); box-shadow: var(--shadow-1); -webkit-appearance: none; appearance: none;
}
html:not([data-theme="dark"]):not(.auto-dark) .sb-field input[type=search] { box-shadow: var(--shadow-glass), inset 0 1px 0 var(--glass-edge); }
.sb-field input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.sb-field input[type=search]:focus, html:not([data-theme="dark"]):not(.auto-dark) .sb-field input[type=search]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-1); }
.sb-icon { position: absolute; left: 16px; width: 21px; height: 21px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.sb-kbd { position: absolute; right: 14px; font-size: 12px; font-weight: 700; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 6px; padding: 1px 7px; pointer-events: none; }
.sb-field input:focus ~ .sb-kbd, .sb-field input:not(:placeholder-shown) ~ .sb-kbd { display: none; }
@media (pointer: coarse) { .sb-kbd { display: none; } }
.searchbox .sb-go { min-height: 54px; border-radius: 16px; padding: 0 22px; font-size: 16px; }
@media (max-width: 520px) { .searchbox .sb-go { padding: 0 16px; } .sb-field input[type=search] { font-size: 17px; } }

/* Suggestions: a floating list, glass-strong (sheets and dialogs, 4.1). */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; padding: 6px; max-height: min(60vh, 440px); overflow-y: auto;
  background: var(--glass-strong); -webkit-backdrop-filter: saturate(180%) blur(28px); backdrop-filter: saturate(180%) blur(28px);
  border-radius: 18px; box-shadow: var(--shadow-2), inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--line);
}
html:not([data-theme="dark"]):not(.auto-dark) .suggest { background: linear-gradient(180deg, rgba(255, 255, 255, .94), var(--glass-strong) 50%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .suggest { background: var(--surface); } }
.sg-head { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); padding: 8px 12px 4px; }
.sg { display: flex; align-items: baseline; gap: 10px; justify-content: space-between; min-height: 44px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.sg:hover, .sg[aria-selected="true"] { background: var(--accent-soft); }
.sg-t { color: var(--ink); font-weight: 550; overflow: hidden; text-overflow: ellipsis; }
.sg-page .sg-t { color: var(--accent-ink); }
.sg-s { font-size: 12px; color: var(--ink-2); white-space: nowrap; }

/* ---------------------------------------------------------------- browse chips (before a search) */
.browse { margin: 8px 0 18px; }
.browse-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 20px 0 10px; }
.browse .chips { margin-bottom: 10px; }
.chip b { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: 12px; }
.chip.on b { color: var(--accent-ink); }
.chips-soft .chip { background: var(--bg-2); box-shadow: none; }
html:not([data-theme="dark"]):not(.auto-dark) .chip:not(.on) { background: var(--milk); }
html:not([data-theme="dark"]):not(.auto-dark) .chips-soft .chip:not(.on) { background: color-mix(in srgb, var(--bg-2) 80%, transparent); }
.chip[lang] { font-weight: 600; }

/* ---------------------------------------------------------------- results */
.resulthead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 4px 0 8px; }
.resultcount { margin: 0; color: var(--ink-2); font-size: 15px; }
.resultcount strong { color: var(--ink); }
.seg a { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.seg a:hover { text-decoration: none; color: var(--ink); }
.seg a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
@media (pointer: coarse) { .seg a { min-height: 44px; } }
.didyoumean { font-size: 16px; margin: 6px 0 12px; }
.facets { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.facet { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.facet-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); min-width: 78px; }
@media (max-width: 600px) { .facet { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; } .facet::-webkit-scrollbar { display: none; } .facet .chip { flex: none; } .facet-h { flex: none; min-width: 0; margin-right: 4px; } .facet { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 24px; } }

ol.results { list-style: none; margin: 0 0 20px; padding: 0; }
.hit { display: flex; gap: 16px; padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.hit:last-child { border-bottom: 0; }
.rbody { min-width: 0; flex: 1; }
.rimg { flex: none; width: 112px; height: 63px; object-fit: cover; border-radius: 12px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); margin-top: 3px; order: 2; }
@media (max-width: 520px) { .rimg { width: 84px; height: 47px; border-radius: 10px; } }
.rtitle { display: inline; font-size: 18px; font-weight: 650; line-height: 1.35; color: var(--accent-ink); }
.rtitle:lang(kn) { font-family: var(--font); font-weight: 700; }
.rtitle mark { background: transparent; color: inherit; padding: 0; font-weight: 800; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 0; }
.rurl { font-size: 13px; color: var(--ink-2); margin: 3px 0 6px; overflow-wrap: anywhere; }
.rsnip { margin: 0 0 6px; color: var(--ink); font-size: 15px; line-height: 1.55; }
.rsnip:lang(kn), .rsnip:lang(sa), .rsnip:lang(hi) { line-height: 1.7; }
.rmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-2); }
.rmeta span + span::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); vertical-align: middle; margin: -2px 10px 0 -8px; }
.pinned { margin-bottom: 8px; }
.pinned .hit { display: block; padding: 16px 18px; border: 0; border-radius: 20px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); margin-bottom: 12px; }
.pin-label { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }
.card.empty h2 { font-family: var(--display); font-size: 22px; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 24px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; padding: 0 10px; border-radius: 12px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.pager a { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); background: var(--surface); }
.pager a:hover { text-decoration: none; background: var(--hover); }
.pager .here { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.pager .gap { color: var(--ink-2); min-width: 20px; }
.pager .pg-step { padding: 0 14px; }
@media (pointer: coarse) { .pager a, .pager span { min-width: 44px; min-height: 44px; } }

.tips summary { font-size: 16px; }

/* ---------------------------------------------------------------- administrator pages */
.signin { max-width: 460px; }
.adminhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin-bottom: 8px; }
.adminhead h1 { margin-bottom: 4px; }
.adminhead .row { margin: 0 0 10px; }
.admintabs { display: flex; gap: 4px; overflow-x: auto; margin: 6px 0 16px; padding: 4px; background: var(--bg-2); border-radius: 14px; scrollbar-width: none; }
.admintabs::-webkit-scrollbar { display: none; }
.admintabs a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
@media (max-width: 520px) { .admintabs { flex-wrap: wrap; overflow: visible; } .admintabs a { padding: 0 11px; min-height: 38px; } }
.admintabs a:hover { text-decoration: none; color: var(--ink); background: var(--hover); }
.admintabs a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
@media (pointer: coarse) { .admintabs a { min-height: 44px; } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.tile { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--line); padding: 14px 16px; color: var(--ink-2); font-size: 13px; line-height: 1.35; }
.tile .n { display: block; font-family: var(--display); font-weight: 700; font-size: 24px; color: var(--ink); line-height: 1.15; margin-bottom: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile.good .n { color: var(--good); } .tile.warn .n { color: var(--p2); } .tile.bad .n { color: var(--late); }
html:not([data-theme="dark"]):not(.auto-dark) .tile { -webkit-backdrop-filter: none; backdrop-filter: none; }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding: 4px 0; }
.bar { flex: 1; min-width: 3px; height: max(var(--h), 2px); border-radius: 4px 4px 2px 2px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); opacity: .85; }
.bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: var(--z); background: color-mix(in srgb, var(--ink) 55%, transparent); }

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.links { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 12px; }
table.links th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.links td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.links tr:last-child td { border-bottom: 0; }
table.links .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.links .actions { white-space: nowrap; text-align: right; }
table.links .actions form { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (min-width: 641px) { table.links td.actions { min-width: 200px; } }
table.links.compact td { padding: 7px 10px; }
@media (max-width: 640px) {
  table.links, table.links thead, table.links tbody, table.links tr, table.links td { display: block; }
  table.links thead { display: none; }
  table.links tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.links td { border: 0; padding: 3px 0; text-align: left !important; }
  table.links .actions { text-align: left; }
  table.links .actions form { justify-content: flex-start; }
}
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.filterbar input:not([type=checkbox]):not([type=radio]) { flex: 1 1 220px; }
.filterbar label { display: flex; align-items: center; gap: 8px; margin: 0; }
ul.plain { list-style: none; margin: 6px 0; padding: 0; }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
ul.plain li:last-child { border-bottom: 0; }
ul.plain.tiny li { font-size: 14px; }
ul.plain li > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
ul.plain li .small { flex: 1 1 auto; }
ul.plain ul.plain { width: 100%; }

/* ---------------------------------------------------------------- backup: sets, health and runs */
.health { display: flex; gap: 14px; align-items: flex-start; }
.health-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 18%, transparent); }
.health-dot.warn { background: var(--p2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p2) 20%, transparent); }
.health-dot.bad { background: var(--late); box-shadow: 0 0 0 4px color-mix(in srgb, var(--late) 18%, transparent); }
.sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 14px 0; }
.set { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.set h2 { margin: 0; font-size: 17px; }
.set .when { font-size: 14px; color: var(--ink-2); margin: 0; }
.set .state { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.set .row { margin-top: auto; padding-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.pill.good { background: color-mix(in srgb, var(--good) 13%, transparent); color: var(--good); }
.pill.warn { background: color-mix(in srgb, var(--p2) 15%, transparent); color: color-mix(in srgb, var(--p2) 70%, var(--ink)); }
.pill.bad { background: color-mix(in srgb, var(--late) 12%, transparent); color: var(--late); }
.pill.lock { background: var(--accent-soft); color: var(--accent-ink); }
.changes { font-size: 13px; color: var(--ink-2); margin-top: 3px; }
.changes b { color: var(--ink); font-weight: 600; }
.store-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--bg-2); margin: 8px 0; }
.store-bar i { display: block; height: 100%; }
.store-bar i:nth-child(1) { background: var(--accent); } .store-bar i:nth-child(2) { background: var(--accent-2); }
.store-bar i:nth-child(3) { background: color-mix(in srgb, var(--accent) 45%, var(--bg-2)); } .store-bar i:nth-child(4) { background: var(--good); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend span:nth-child(1) i { background: var(--accent); } .legend span:nth-child(2) i { background: var(--accent-2); }
.legend span:nth-child(3) i { background: color-mix(in srgb, var(--accent) 45%, var(--bg-2)); } .legend span:nth-child(4) i { background: var(--good); }
.danger-box { border-radius: 16px; padding: 12px 16px; margin: 10px 0; background: color-mix(in srgb, var(--late) 8%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--late) 30%, transparent); }
.danger-box strong { color: var(--late); }
.checks { display: grid; gap: 6px; margin: 8px 0; }
.checks label { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); margin: 0; min-height: 36px; }
.checks input { width: 20px; height: 20px; accent-color: var(--accent); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 8px 0; font-size: 14px; }
dl.facts dt { color: var(--ink-2); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 760px) { .top nav a.hide-s { display: none; } }
@media (max-width: 460px) { .top nav a.hide-xs { display: none; } .brand-name { display: none; } }
@media (max-width: 640px) { .wrap { padding: 0 16px; } main.wrap { padding: 0 16px 20px; } .lede { font-size: 17px; } .card { padding: 16px; } }
@media (pointer: coarse) { .top nav a { min-height: 44px; display: inline-flex; align-items: center; } }

/* ---------------------------------------------------------------- motion (10) */
@media (prefers-reduced-motion: no-preference) {
  main.wrap > * { animation: rise .32s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .suggest:not([hidden]) { animation: pop .18s var(--ease) both; }
  @keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }

@media print {
  .top, .foot, .backdrop, .searchbox, .facets, .pager { display: none !important; }
  body { background: #fff; color: #000; }
}
.minihead { margin: 14px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
