:root {
  color-scheme: light;
  --ink: #17242d;
  --muted: #61717c;
  --line: #eadde3;
  --paper: #ffffff;
  --wash: #faf6f8;
  --navy: #481426;
  --accent: #c31756;
  --accent-dark: #8f103f;
  --amber: #b96016;
  --red: #b53a3a;
  --shadow: 0 14px 40px rgba(21, 50, 59, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--wash); }
button, input, select { font: inherit; }
button, select, input { border: 1px solid #cbd7da; border-radius: .55rem; background: var(--paper); color: var(--ink); }
button { padding: .58rem .8rem; cursor: pointer; font-weight: 650; }
button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-dark); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(195, 23, 86, .24); outline-offset: 1px; border-color: var(--accent); }
button:disabled { cursor: not-allowed; opacity: .45; }

.hero { min-height: 12.5rem; padding: 2.4rem clamp(1.2rem, 4vw, 4.5rem); display: flex; align-items: end; justify-content: space-between; gap: 2rem; color: #fff; background: radial-gradient(circle at 82% 10%, rgba(255, 143, 182, .38), transparent 30%), linear-gradient(125deg, #35121f 0%, #7d163d 58%, #c31756 100%); }
.brand-lockup { display: flex; align-items: center; gap: 1.15rem; }
.brand-mark { width: clamp(3.5rem, 6vw, 5rem); height: auto; flex: 0 0 auto; border-radius: 1rem; filter: drop-shadow(0 10px 20px rgba(4, 26, 31, .28)); }
.hero h1 { margin: .15rem 0 .4rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 4.4rem); font-weight: 500; letter-spacing: -.04em; }
.subtitle { margin: 0; max-width: 48rem; color: rgba(255,255,255,.78); font-size: 1.05rem; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .13em; font-size: .7rem; font-weight: 800; color: var(--accent); }
.hero .eyebrow { color: #ffd1e1; }
.hero-actions { display: grid; gap: .65rem; min-width: 15rem; }
.language-picker { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; color: rgba(255,255,255,.82); }
.language-picker span { margin: 0 !important; color: inherit !important; }
.language-picker select { width: auto; min-height: 2.2rem; padding: .35rem 2rem .35rem .6rem; border-color: rgba(255,255,255,.28); color: #fff; background: rgba(6, 37, 44, .55); }
.language-picker option { color: var(--ink); background: #fff; }
.dataset-date-line { margin: 0; color: rgba(255,255,255,.7); font-size: .72rem; text-align: right; }
.dataset-date-line time { color: rgba(255,255,255,.92); font-weight: 650; }
.load-panel { min-width: 15rem; padding: .85rem 1rem; border: 1px solid rgba(255,255,255,.22); border-radius: .8rem; background: rgba(6, 37, 44, .38); backdrop-filter: blur(8px); }
.load-panel span { display: block; margin-bottom: .45rem; font-size: .82rem; }
progress { display: block; width: 100%; height: .55rem; accent-color: #ffb1cc; }

main { width: min(1500px, calc(100% - 2rem)); margin: -1.5rem auto 4rem; }
.site-footer { width: min(1500px, calc(100% - 2rem)); margin: -2rem auto 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; text-align: center; }
.site-footer strong { margin-right: .45rem; color: var(--ink); }
.summary { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: var(--shadow); }
.summary div { padding: 1.15rem 1.35rem; border-right: 1px solid var(--line); }
.summary div:last-child { border: 0; }
.summary strong, .summary span { display: block; }
.summary strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 500; }
.summary span { margin-top: .15rem; color: var(--muted); font-size: .77rem; text-transform: uppercase; letter-spacing: .08em; }

.workspace { display: grid; grid-template-columns: minmax(18rem, 23rem) minmax(0, 1fr); gap: 1rem; margin-top: 1rem; align-items: start; }
.sidebar { position: sticky; top: 1rem; display: grid; gap: 1rem; min-width: 0; }
.filters, .selection-panel, .results { border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 8px 25px rgba(21, 50, 59, .05); }
.filters { padding: 1.25rem; }
.filters-heading, .selection-panel-heading, .results-toolbar, .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
h2 { margin: .15rem 0 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 1.65rem; }
.text-button { padding: .3rem; border: 0; background: transparent; color: var(--accent); font-size: .82rem; }
label span:not(.sr-only) { display: block; margin-bottom: .35rem; color: #4d6069; font-size: .73rem; font-weight: 750; letter-spacing: .035em; }
input, select { width: 100%; min-height: 2.55rem; padding: .55rem .65rem; }
.wide-field { display: block; margin-top: 1.15rem; }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem .7rem; margin-top: .9rem; }

.results { min-width: 0; overflow: hidden; }
.results-toolbar { padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line); }
.toolbar-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.toolbar-controls select { width: auto; max-width: 14rem; }
.toolbar-controls button { background: #f8fbfb; }
.selection-panel { padding: 1.25rem; }
.selection-panel-heading h2 strong { margin-left: .25rem; color: var(--accent); font-family: inherit; font-size: 1rem; font-variant-numeric: tabular-nums; }
.picker-selection-title, .picker-actions { display: none; }
.selection-box { margin-top: 1.15rem; padding: 1rem; border: 1px solid #efcad8; border-left: 4px solid var(--accent); border-radius: .75rem; background: #fff7fa; }
.basket-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; }
.basket-picker label { min-width: 0; }
.basket-picker button { padding-inline: .7rem; }
.selection-items { display: grid; gap: .55rem; max-height: 15rem; margin: .85rem 0 0; padding: 0; overflow-y: auto; list-style: none; }
.selection-item { padding-top: .55rem; border-top: 1px solid #efdce3; font-size: .82rem; line-height: 1.35; }
.selection-item-link { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .55rem; width: 100%; padding: 0; border: 0; border-radius: .2rem; background: transparent; font: inherit; line-height: inherit; text-align: left; }
.selection-item-link:hover .selection-item-number, .selection-item-link:hover .selection-item-title { color: var(--accent); text-decoration: underline; }
.selection-item-number { color: var(--accent-dark); font-variant-numeric: tabular-nums; font-weight: 750; }
.selection-item-title { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.selection-empty { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.basket-management { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .85rem; }
.basket-management button { font-size: .84rem; }
.selection-actions { display: grid; gap: .5rem; margin-top: .85rem; }
.selection-actions button { width: 100%; font-size: inherit; }
.basket-only-filter { display: flex; align-items: center; gap: .55rem; padding: .65rem .7rem; border: 1px solid var(--line); border-radius: .65rem; color: var(--ink); cursor: pointer; }
.basket-only-filter input { width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; }
.basket-only-filter span:not(.sr-only) { display: inline; margin: 0; color: inherit; font-size: .84rem; font-weight: 600; letter-spacing: normal; }
.picker-mode .hero { min-height: 7.5rem; padding-block: 1.2rem; align-items: center; }
.picker-mode .brand-mark { width: 3.25rem; }
.picker-mode .hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.picker-mode .subtitle, .picker-mode .site-footer, .picker-mode .basket-picker, .picker-mode .basket-management, .picker-mode .selection-actions, .picker-mode .standard-selection-title { display: none; }
.picker-mode.hide-language-picker .language-picker { display: none; }
.picker-mode main { margin-top: -.8rem; margin-bottom: 1rem; }
.picker-mode .picker-selection-title { display: inline; }
.picker-mode .selection-items { margin-top: 0; }
.picker-mode .picker-actions { position: sticky; bottom: .75rem; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding: .9rem 1rem; border: 1px solid #e3bac9; border-radius: .85rem; background: rgba(255, 247, 250, .97); box-shadow: 0 12px 35px rgba(72, 20, 38, .18); backdrop-filter: blur(8px); }
.picker-actions-copy { display: grid; gap: .15rem; }
.picker-actions-copy strong { color: var(--accent-dark); }
.picker-actions-copy > span { color: var(--muted); font-size: .78rem; }
.picker-action-buttons { display: flex; flex: 0 0 auto; gap: .55rem; }
.primary-button { border-color: var(--accent); color: #fff; background: var(--accent); }
.primary-button:hover:not(:disabled) { color: #fff; background: var(--accent-dark); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: .7rem .8rem; background: #f6f9f9; color: var(--muted); font-size: .68rem; text-align: left; text-transform: uppercase; letter-spacing: .075em; white-space: nowrap; }
td { padding: .82rem; border-top: 1px solid #e8eeee; vertical-align: top; font-size: .85rem; }
.selection-column, .selection-cell { width: 2.8rem; padding-right: .25rem; text-align: center; vertical-align: middle; }
.selection-checkbox { width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; vertical-align: middle; }
tbody tr:hover { background: #f8fbfa; }
tbody tr.selected-row, tbody tr.selected-row:hover { background: #fff1f6; }
.problem-link { color: var(--ink); font-weight: 750; text-decoration: none; }
.problem-link:hover { color: var(--accent); text-decoration: underline; }
.problem-title-button { max-width: 26rem; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: left; }
.problem-title-button:focus-visible { border-color: transparent; border-radius: .2rem; }
.problem-number { display: block; margin-bottom: .15rem; color: var(--muted); font-size: .72rem; }
.metric { font-variant-numeric: tabular-nums; font-weight: 750; }
.metric-sub { display: block; margin-top: .2rem; color: var(--muted); font-size: .72rem; font-weight: 450; }
.tags { display: flex; flex-wrap: wrap; gap: .38rem .3rem; max-width: 28rem; }
.tags + .tags { margin-top: .38rem; }
.tag { display: inline-block; padding: .2rem .44rem; border-radius: 999px; background: #f9e3eb; color: #8f103f; font-size: .67rem; line-height: 1.4; }
.tag.algorithm { background: #edf0f7; color: #405276; }
.tag.warning { background: #fff0df; color: #8c4a13; }
.tag.muted { background: #eff2f3; color: #64727a; }
.details-button { padding: .4rem .58rem; background: transparent; color: var(--accent); font-size: .76rem; }
.row-actions { display: flex; align-items: center; gap: .35rem; white-space: nowrap; }
.action-link { padding: .4rem .5rem; border: 1px solid #d9c8cf; border-radius: .55rem; color: var(--accent-dark); background: transparent; font-size: .76rem; font-weight: 650; text-decoration: none; }
.action-link:hover { border-color: var(--accent); color: var(--accent); }
.empty-state { padding: 3rem; color: var(--muted); text-align: center; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

dialog { width: min(900px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 1rem; color: var(--ink); box-shadow: 0 30px 90px rgba(4, 26, 31, .35); }
dialog::backdrop { background: rgba(8, 30, 36, .58); backdrop-filter: blur(3px); }
.compact-dialog { width: min(28rem, calc(100% - 2rem)); }
.pdf-dialog { width: min(1200px, calc(100% - 2rem)); height: calc(100vh - 2rem); max-height: none; }
.pdf-dialog[open] { display: flex; flex-direction: column; }
.pdf-dialog .dialog-heading { flex: 0 0 auto; }
#pdf-frame { display: block; width: 100%; min-height: 0; flex: 1 1 auto; border: 0; background: #eef1f2; }
.dialog-heading { position: sticky; top: 0; z-index: 1; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.dialog-heading-actions { display: flex; flex: 0 0 auto; align-items: center; gap: .5rem; }
.spoiler-switch { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .78rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.spoiler-switch span:not(.sr-only) { display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: normal; }
.spoiler-switch input { position: relative; width: 2.25rem; height: 1.25rem; min-height: 0; margin: 0; padding: 0; appearance: none; border: 0; border-radius: 999px; background: #cbd3d7; cursor: pointer; transition: background .16s ease; }
.spoiler-switch input::after { position: absolute; top: .16rem; left: .16rem; width: .93rem; height: .93rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); content: ""; transition: transform .16s ease; }
.spoiler-switch input:checked { background: var(--accent); }
.spoiler-switch input:checked::after { transform: translateX(1rem); }
.spoiler-switch input:disabled { cursor: not-allowed; opacity: .55; }
.dialog-selection { display: grid; grid-template-columns: 1.1rem 1fr; align-items: center; gap: .4rem; width: 5.8rem; color: var(--accent-dark); font-size: .8rem; font-weight: 700; line-height: 1; cursor: pointer; }
.dialog-selection span:not(.sr-only) { display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: normal; line-height: 1; }
.icon-button { display: inline-grid; width: 2.4rem; height: 2.4rem; padding: 0; place-items: center; border-radius: 50%; line-height: 1; }
.icon-button svg { display: block; width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
#dialog-content { padding: 1.4rem; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.detail-actions .action-link { font-size: .86rem; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.detail-card { padding: .9rem; border: 1px solid var(--line); border-radius: .7rem; background: #fbfcfc; }
.detail-card h3, .detail-section h3 { margin: 0 0 .5rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.detail-card strong { font-size: 1.15rem; }
.detail-section { margin-top: 1.25rem; }
.detail-section p, .detail-section li { color: #40525c; line-height: 1.55; }
.detail-section > .spoiler-content { margin-top: .38rem; }
.spoiler-content[hidden], .spoiler-notice[hidden] { display: none; }
.spoiler-notice { margin: 1.1rem 0 0; padding: .75rem .9rem; border-left: 3px solid var(--accent); color: var(--muted); background: #fff7fa; font-size: .82rem; }
.approach { margin-top: .65rem; padding: .85rem; border-left: 3px solid var(--accent); background: #fff7fa; }
.approach h4 { margin: 0 0 .35rem; }
.approach p { margin: .25rem 0; font-size: .84rem; }
.details-pdf-button { font-size: .86rem; }
.dialog-form-body { padding: 1.25rem 1.4rem 1.4rem; }
.dialog-form-body label { display: grid; gap: .35rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.dialog-form-body input { width: 100%; min-height: 2.6rem; padding: .55rem .65rem; }
.dialog-confirmation { margin: 0; color: #40525c; line-height: 1.55; }
.dialog-error { margin: .8rem 0 0; padding: .65rem .75rem; border-left: 3px solid var(--red); color: var(--red); background: #fff4f4; font-size: .82rem; }
.dialog-form-actions { display: flex; justify-content: flex-end; gap: .55rem; margin-top: 1.1rem; }
.dialog-form-actions button[type="submit"] { border-color: var(--accent); color: #fff; background: var(--accent); }
.dialog-form-actions button[type="submit"]:hover { color: #fff; background: var(--accent-dark); }

#toast { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 10; max-width: 24rem; padding: .75rem 1rem; border-radius: .65rem; color: #fff; background: var(--navy); box-shadow: var(--shadow); opacity: 0; transform: translateY(.5rem); pointer-events: none; transition: .2s ease; }
#toast.visible { opacity: 1; transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.home-page { min-height: 100vh; overflow-x: hidden; color: #fff; background: #35121f; }
.home-page::before { position: fixed; inset: 0; z-index: -1; background: radial-gradient(circle at 78% 24%, rgba(255, 127, 174, .28), transparent 26%), radial-gradient(circle at 15% 80%, rgba(195, 23, 86, .23), transparent 34%), linear-gradient(135deg, #271018 0%, #55152d 48%, #8f103f 100%); content: ""; }
.home-nav { position: absolute; top: 0; left: 50%; z-index: 2; width: min(1280px, calc(100% - 3rem)); padding: 1.4rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; transform: translateX(-50%); }
.home-brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.home-brand img { width: 2.65rem; height: 2.65rem; border-radius: .72rem; box-shadow: 0 10px 30px rgba(0,0,0,.22); }
.home-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 500; }
.home-language { color: rgba(255,255,255,.76); }
.home-main { width: min(1280px, calc(100% - 3rem)); min-height: 100vh; margin: 0 auto; }
.home-hero { min-height: 100vh; padding: 8rem 0 5rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(22rem, .9fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.home-copy { position: relative; z-index: 1; }
.home-eyebrow { margin: 0 0 1rem; color: #ffc3d8; font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.home-copy h1 { max-width: 13ch; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 7vw, 6.6rem); font-weight: 500; line-height: .98; letter-spacing: -.055em; text-wrap: balance; }
.home-lead { max-width: 43rem; margin: 1.6rem 0 0; color: rgba(255,255,255,.72); font-size: clamp(1rem, 1.8vw, 1.2rem); line-height: 1.65; }
.home-cta { width: fit-content; margin-top: 2rem; padding: .85rem 1.1rem .85rem 1.3rem; display: inline-flex; align-items: center; gap: .85rem; border: 1px solid rgba(255,255,255,.25); border-radius: .8rem; color: #7d163d; background: #fff; box-shadow: 0 18px 45px rgba(27, 5, 13, .28); font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.home-cta:hover { color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 22px 50px rgba(27, 5, 13, .36); }
.home-cta svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-features { margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .65rem; list-style: none; }
.home-features li { padding: .42rem .68rem; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.72); background: rgba(255,255,255,.06); font-size: .76rem; backdrop-filter: blur(6px); }
.home-art { position: relative; min-height: 33rem; display: grid; place-items: center; }
.home-logo-card { position: relative; z-index: 2; width: min(17rem, 55vw); aspect-ratio: 1; padding: 2.5rem; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 3rem; background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.05)); box-shadow: 0 35px 90px rgba(19, 3, 9, .35); backdrop-filter: blur(16px); transform: rotate(4deg); }
.home-logo-card img { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(23, 3, 10, .3)); }
.home-orbit { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.orbit-one { width: 29rem; height: 18rem; transform: rotate(-18deg); }
.orbit-two { width: 20rem; height: 31rem; transform: rotate(28deg); }
.home-topic { position: absolute; z-index: 3; padding: .45rem .72rem; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: #fff; background: rgba(53, 18, 31, .74); box-shadow: 0 10px 28px rgba(0,0,0,.22); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; }
.topic-one { top: 17%; right: 4%; }
.topic-two { bottom: 18%; left: 5%; }
.topic-three { right: 0; bottom: 27%; }
.home-footer { position: absolute; bottom: 1.1rem; left: 50%; width: min(1280px, calc(100% - 3rem)); color: rgba(255,255,255,.47); font-size: .7rem; transform: translateX(-50%); }

@media (max-width: 1050px) {
  .home-hero { grid-template-columns: minmax(0, 1fr) minmax(18rem, .7fr); gap: 2rem; }
  .home-art { min-height: 27rem; transform: scale(.86); }
  .workspace { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .filter-grid { grid-template-columns: repeat(3, 1fr); }
  .results-toolbar { align-items: flex-start; }
}

@media (max-width: 720px) {
  .home-nav, .home-main, .home-footer { width: min(100% - 2rem, 1280px); }
  .home-nav { position: relative; left: auto; transform: none; }
  .home-hero { min-height: auto; padding: 4.5rem 0 6rem; grid-template-columns: 1fr; }
  .home-copy h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .home-art { min-height: 23rem; order: -1; transform: scale(.8); }
  .home-footer { position: static; margin: -3rem auto 0; padding-bottom: 1.2rem; transform: none; }
  .hero { min-height: 15rem; align-items: flex-start; flex-direction: column; }
  .brand-lockup { align-items: flex-start; }
  .brand-mark { width: 3.5rem; margin-top: .25rem; }
  .hero-actions, .load-panel { width: 100%; }
  main { width: min(100% - 1rem, 1500px); }
  .summary { grid-template-columns: 1fr 1fr; }
  .summary div:nth-child(2) { border-right: 0; }
  .summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .filter-grid, .detail-grid { grid-template-columns: 1fr 1fr; }
  .results-toolbar { display: block; }
  .toolbar-controls { justify-content: flex-start; margin-top: 1rem; }
  .picker-mode .hero { min-height: 8rem; flex-direction: row; }
  .picker-mode .hero-actions { width: auto; }
  .picker-mode .load-panel { display: none; }
  .picker-mode .picker-actions { align-items: stretch; flex-direction: column; }
  .picker-mode .picker-action-buttons button { flex: 1; }
  th:nth-child(6), td:nth-child(6) { display: none; }
}

@media (max-width: 480px) {
  .home-nav { align-items: flex-start; }
  .home-brand strong { display: none; }
  .home-art { margin-inline: -2rem; }
  .filter-grid, .detail-grid { grid-template-columns: 1fr; }
  th:nth-child(5), td:nth-child(5) { display: none; }
  .dialog-heading { align-items: flex-start; flex-direction: column; }
  .dialog-heading-actions { width: 100%; flex-wrap: wrap; justify-content: flex-end; }
}
