/* CourtMerge web tool. Palette from courtmerge-site's assets/style.css (which
   took it from the desktop app's Light.xaml/Dark.xaml), so /app/ looks like the
   rest of the site. No external fonts, no framework. */

:root {
  color-scheme: light dark;

  --window:       #F4F6F9;
  --panel:        #FFFFFF;
  --border:       #E3E7EF;
  --input:        #D5DBE6;
  --text:         #1E2A44;
  --muted:        #626C80;
  --accent:       #26324F;
  --accent-hover: #33456B;
  --accent-text:  #FFFFFF;
  --gold:         #A6852E;
  --stamp-ink:    #2F4FA8;
  --link:         #2557C4;
  --header:       #EEF1F6;
  --selection:    #DCE4F2;
  --notice:       #FDF8EC;
  --notice-border:#EDDFBE;
  --info:         #EEF3FC;
  --info-border:  #CCD9F2;
  --error:        #C0392B;
  --error-bg:     #FDF3F2;
  --focus:        #2557C4;

  --maxw:   1080px;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(30, 42, 68, .06), 0 8px 24px rgba(30, 42, 68, .06);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* The selects' muted chevron, the same grey in both themes. */
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B8496' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --window:       #10141C;
    --panel:        #161B26;
    --border:       #2A3242;
    --input:        #364056;
    --text:         #E7EAF1;
    --muted:        #99A2B3;
    --accent:       #43567F;
    --accent-hover: #55699A;
    --accent-text:  #F3F6FC;
    --gold:         #C9A44A;
    --stamp-ink:    #7C97DC;
    --link:         #7FA6F0;
    --header:       #1E2634;
    --selection:    #2C3852;
    --notice:       #2C2517;
    --notice-border:#453A22;
    --info:         #18233A;
    --info-border:  #2C3B5C;
    --error:        #E4705F;
    --error-bg:     #2A1A18;
    --focus:        #7FA6F0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  }
}

:root[data-theme="dark"] {
  --window:       #10141C;
  --panel:        #161B26;
  --border:       #2A3242;
  --input:        #364056;
  --text:         #E7EAF1;
  --muted:        #99A2B3;
  --accent:       #43567F;
  --accent-hover: #55699A;
  --accent-text:  #F3F6FC;
  --gold:         #C9A44A;
  --stamp-ink:    #7C97DC;
  --link:         #7FA6F0;
  --header:       #1E2634;
  --selection:    #2C3852;
  --notice:       #2C2517;
  --notice-border:#453A22;
  --info:         #18233A;
  --info-border:  #2C3B5C;
  --error:        #E4705F;
  --error-bg:     #2A1A18;
  --focus:        #7FA6F0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--window);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
}

a { color: var(--link); }
h1, h2, p { margin: 0; }
::selection { background: var(--selection); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.spacer { flex: 1; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header { border-bottom: 1px solid var(--border); background: var(--panel); }
.header-row { display: flex; align-items: center; gap: 12px; height: 60px; }
.wordmark {
  font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--text); text-decoration: none;
}
.wordmark span { color: var(--gold); }
.header-link { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--text); text-decoration: none; white-space: nowrap; }
.header-link .icon { width: 16px; height: 16px; color: var(--gold); }
.header-link:hover { text-decoration: underline; }
.badge {
  font-size: .75rem; font-weight: 600; letter-spacing: .02em;
  color: var(--muted); border: 1px solid var(--border); border-radius: 999px;
  padding: 2px 10px; white-space: nowrap;
}

.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  list-style: none; padding: 6px 10px; border-radius: 6px;
  color: var(--muted); font-size: .875rem; font-weight: 600;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--header); color: var(--text); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10;
  margin: 0; padding: 6px; list-style: none; min-width: 180px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 8px 10px; border: 0; border-radius: 6px; background: none;
  color: var(--text); font: inherit; font-size: .9375rem; cursor: pointer; text-align: left;
}
.lang-menu button:hover { background: var(--header); }
.lang-name { display: inline-flex; align-items: center; gap: 10px; }
.flag {
  display: block; flex: none; width: 18px; height: 12px; border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.flag svg { display: block; width: 100%; height: 100%; }

/* The theme button, as on the site: system (half moon), light (sun), dark
   (moon). A click moves to the next one; js/theme.js. */
.theme-toggle {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px;
  background: none; color: var(--muted); cursor: pointer;
}
.theme-toggle:hover { background: var(--header); color: var(--text); }
.theme-icon {
  display: none; width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.theme-icon--auto { display: block; }
:root[data-theme="light"] .theme-icon--auto,
:root[data-theme="dark"] .theme-icon--auto { display: none; }
:root[data-theme="light"] .theme-icon--sun,
:root[data-theme="dark"] .theme-icon--moon { display: block; }

/* ── Hero ───────────────────────────────────────────────────────────── */

/* Full-width band with the same glow as the site's hero: two radial
   gradients in the theme colours, no image. */
.hero-band {
  background:
    radial-gradient(ellipse 55% 75% at 85% 40%, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 45% 60% at 65% 90%, color-mix(in srgb, var(--link) 12%, transparent), transparent 70%);
}
.hero {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 32px; align-items: center; padding: 44px 16px 36px;
}
.eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.lead { margin-top: 12px; font-size: 1.0625rem; color: var(--muted); max-width: 36em; }

/* What you get and the promises, as one row of plain text: no pills, no tiles. */
.gets {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none;
  font-size: .875rem; font-weight: 500; color: var(--muted);
}
.gets li { display: inline-flex; align-items: center; gap: 7px; }
.gets .icon { width: 16px; height: 16px; color: var(--link); }
.gets .promise .icon { color: var(--gold); }

.hero-art svg { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(30, 42, 68, .16)); }
.hero-art .sheet { fill: var(--panel); stroke: var(--border); }
.hero-art .sheet.back { fill: var(--header); }
.hero-art .title { fill: var(--text); }
.hero-art .rule-gold { stroke: var(--gold); stroke-width: 2.5; }
.hero-art .chip { fill: var(--selection); }
.hero-art .link { fill: var(--link); opacity: .55; }
.hero-art .page-no { fill: var(--input); }
.hero-art .seal circle { fill: var(--gold); }
.hero-art .seal path { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

/* What "web tool" means here, folded away under step 1 behind a small
   "How can that be?" link. */
.local-note { margin-top: 12px; font-size: .875rem; }
.local-note summary {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  list-style: none; color: var(--link); font-weight: 500;
}
.local-note summary::-webkit-details-marker { display: none; }
.local-note summary:hover { text-decoration: underline; }
.local-note summary .icon { width: 16px; height: 16px; color: var(--gold); }
/* The selects' chevron after the line, turned up while open, so it reads as
   something that folds back too. */
.local-note summary::after {
  content: ""; width: 13px; height: 13px; background: var(--chevron) no-repeat center / contain;
  transition: transform .15s;
}
.local-note[open] > summary::after { transform: rotate(180deg); }
.local-note p {
  margin-top: 8px; max-width: 760px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--info); border: 1px solid var(--info-border); color: var(--muted);
}
.local-note strong { display: block; margin-bottom: 2px; color: var(--text); font-weight: 600; }

/* ── Cards and steps ───────────────────────────────────────────────── */

.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; margin-bottom: 16px;
}
.step-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 600; }
.step-no {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-size: .8125rem; font-weight: 700;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 35%, transparent);
}
.step-no.done { background: var(--gold); color: #fff; box-shadow: none; }
.step-no .icon { width: 15px; height: 15px; stroke-width: 2.6; }
/* Steps 2 and 3 before there are files: there, but not yet usable. */
.step-later { display: grid; gap: 10px; box-shadow: none; background: transparent; border-style: dashed; }
.step-later .step-title { color: var(--muted); font-weight: 500; }
.step-later .step-no { background: var(--border); color: var(--muted); box-shadow: none; }
.step-later > .muted { font-size: .875rem; padding-left: 36px; }
.step-hint { margin-top: 6px; font-size: .875rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .875rem; }

/* ── Buttons ───────────────────────────────────────────────────────── */

/* After shadcn/ui's button: one solid primary action, outlined secondary ones,
   links that only underline on hover, a soft 3px focus ring instead of an
   outline, and 16px icons. The ring is a box-shadow, so it follows the radius. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 18px; white-space: nowrap;
  text-decoration: none; cursor: pointer; position: relative;
  border-radius: 6px; border: 1px solid transparent;
  font: inherit; font-size: .9375rem; font-weight: 500; line-height: 1.25; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.btn .icon { width: 16px; height: 16px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible, label.btn:focus-within, .icon-btn:focus-visible, .link-btn:focus-visible, .btn-link:focus-visible {
  outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 45%, transparent);
}
.btn-primary {
  background: var(--accent); color: var(--accent-text);
  box-shadow: 0 1px 2px rgba(16, 20, 28, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost {
  background: var(--panel); color: var(--text); border-color: var(--input);
  box-shadow: 0 1px 2px rgba(16, 20, 28, .05);
}
.btn-ghost:hover { background: var(--header); border-color: color-mix(in srgb, var(--accent) 35%, var(--input)); }
.btn-ghost .icon { color: var(--accent); }
/* A link in a row of buttons: same height, underlined only on hover, with an
   arrow that says it opens the site in a new tab. */
.btn-link {
  min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 4px;
  color: var(--link); font-weight: 500; text-decoration: none; border-radius: 4px;
}
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-link .icon { width: 14px; height: 14px; }
.btn-danger { background: var(--error-bg); color: var(--error); border-color: var(--error); }
.btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--error) 14%, var(--error-bg)); }
.btn-small { min-height: 32px; padding: 5px 12px; font-size: .875rem; gap: 6px; }
.btn-large { min-height: 48px; padding: 12px 28px; font-size: 1rem; font-weight: 600; }
.btn:disabled, .btn:has(input:disabled) { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid transparent; border-radius: 6px; background: none;
  color: var(--muted); cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.icon-btn:hover:not(:disabled) { background: var(--header); color: var(--text); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn .icon { width: 16px; height: 16px; }

/* ── Drop zone ─────────────────────────────────────────────────────── */

.dropzone {
  display: grid; justify-items: center; gap: 14px; text-align: center;
  margin-top: 16px; padding: 36px 20px;
  border: 1.5px dashed var(--input); border-radius: var(--radius);
  transition: border-color .15s ease, background-color .15s ease;
}
.dropzone {
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 70%),
    var(--window);
}
.dropzone > .icon {
  width: 60px; height: 60px; padding: 14px; border-radius: 50%; stroke-width: 1.5;
  color: var(--gold); background: color-mix(in srgb, var(--gold) 15%, var(--panel));
}
.dropzone.dragging { border-color: var(--focus); background: var(--info); }
.drop-title { font-size: 1.0625rem; font-weight: 600; }
.drop-text .muted { margin-top: 4px; font-size: .9375rem; }
.drop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fineprint {
  display: inline-flex; align-items: flex-start; gap: 6px; max-width: 560px;
  font-size: .8125rem; color: var(--muted); text-align: left;
}
.fineprint .icon { width: 15px; height: 15px; margin-top: 2px; }

/* For visitors without PDFs at hand: a small case file made in the page (#248). */
.demo-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; font-size: .9375rem; color: var(--muted); }
.link-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; border: 0; border-radius: 4px;
  background: none; color: var(--link); font: inherit; font-weight: 600; cursor: pointer;
}
.link-btn:hover:not(:disabled) { text-decoration: underline; }
.link-btn:disabled { opacity: .55; cursor: not-allowed; }
.link-btn .icon { width: 16px; height: 16px; }
/* "Remove all" (#268): a quiet word beside the buttons, red only when
   pointed at, and a question with the real button once clicked. */
.link-btn.link-danger { min-height: 32px; padding: 0 6px; color: var(--muted); font-weight: 500; }
.link-btn.link-danger:hover:not(:disabled) { color: var(--error); }
.confirm-clear { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.confirm-clear > span { color: var(--text); font-weight: 600; }
.confirm-clear .link-btn { min-height: 32px; padding: 0 6px; font-weight: 500; }

/* Once files are in, the zone shrinks to a bar but keeps taking drops. */
.dropzone.compact {
  grid-template-columns: auto 1fr auto; justify-items: start; text-align: left;
  padding: 16px 20px; gap: 6px 16px;
}
.dropzone.compact > .icon { width: 40px; height: 40px; padding: 9px; }
.dropzone.compact .fineprint { grid-column: 1 / -1; max-width: none; }

/* ── Notices ───────────────────────────────────────────────────────── */

.notice {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--window); font-size: .9375rem;
}
.notice.warning { background: var(--notice); border-color: var(--notice-border); }
.notice.info { background: var(--info); border-color: var(--info-border); }
.notice.error { background: var(--error-bg); border-color: var(--error); color: var(--error); }

/* ── Exhibit list ──────────────────────────────────────────────────── */

.exhibits { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }

/* Each field's label is 18px with 4px under it; the handle, arrows and cross
   sit level with the inputs below it, however tall a long title grows. */
.exhibit {
  --label: 22px;
  display: grid; align-items: start; gap: 6px 12px;
  grid-template-columns: 20px 30px 52px minmax(160px, 1fr) 130px 36px;
  grid-template-areas:
    "handle move number title  pages  remove"
    ".      .    source source source source";
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel);
}
.party-head {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold);
}
.party-head:first-child { margin-top: 0; }
.party-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.exhibit.drop-target { border-color: var(--focus); box-shadow: 0 -3px 0 0 var(--focus); }
.handle { grid-area: handle; height: 36px; margin-top: var(--label); color: var(--muted); cursor: grab; display: grid; place-items: center; }
.handle:active { cursor: grabbing; }
.move { grid-area: move; display: grid; gap: 0; margin-top: calc(var(--label) - 4px); }
.move .icon-btn { height: 22px; }
/* The handle, arrows and cross stay in the background until the row is
   hovered or has focus: the fields are what the visitor reads. */
.handle, .move, .remove { opacity: .55; transition: opacity .15s ease; }
.exhibit:hover :is(.handle, .move, .remove), .exhibit:focus-within :is(.handle, .move, .remove) { opacity: 1; }
@media (hover: none) { .handle, .move, .remove { opacity: 1; } }
.exhibit .field > span { line-height: 18px; }
.f-number { grid-area: number; }
.f-number input { padding: 0 4px; text-align: center; }
.f-title { grid-area: title; }
.f-pages { grid-area: pages; }
/* As tall as the inputs beside it, and red once it is pointed at. */
.remove { grid-area: remove; width: 36px; height: 36px; margin-top: var(--label); }
.remove .icon { width: 18px; height: 18px; }
.exhibit .remove:hover:not(:disabled) { color: var(--error); background: var(--error-bg); }
.source { grid-area: source; display: grid; gap: 4px; min-width: 0; font-size: .8125rem; color: var(--muted); }
/* A long path is cut short, so the tip's icon stays beside the size. */
.source-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.source-path { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-line .tip-btn { flex: none; margin-left: -4px; }
/* The row's party (#268): a small pick, since the heading above names it too. */
.party-pick { flex: none; display: inline-flex; }
.party-pick select {
  appearance: none; -webkit-appearance: none; height: 26px; padding: 0 24px 0 9px;
  border: 1px solid var(--border); border-radius: 13px; cursor: pointer;
  background: var(--window) var(--chevron) no-repeat right 7px center / 13px;
  color: var(--text); font: inherit; font-size: .8125rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.party-pick select:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 35%, var(--input)); }
.party-pick select:focus-visible {
  outline: none; border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent);
}
.party-pick select:disabled { opacity: .5; cursor: not-allowed; }
/* A heavy scan's tip (#263): an icon beside the size, its text on a click. */
.tip-btn {
  display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0;
  border: 0; border-radius: 50%; background: none; color: var(--link); cursor: pointer;
}
.tip-btn .icon { width: 15px; height: 15px; }
.tip-btn:hover, .tip-btn[aria-expanded="true"] { background: var(--info); }
.tip-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.scan-tip {
  margin: 0; padding: 8px 12px; border-radius: 6px;
  background: var(--info); border: 1px solid var(--info-border); color: var(--text); white-space: normal;
}
.scan-tip .btn-link { display: inline-flex; margin-left: 4px; }
/* A small picture of the page the exhibit starts at (#260), so twenty rows
   of the same fields can be told apart. A grey page until it is drawn. */
.exhibits.with-thumbs .exhibit {
  grid-template-columns: 20px 30px 40px 52px minmax(160px, 1fr) 130px 36px;
  grid-template-areas:
    "handle move thumb number title  pages  remove"
    ".      .    thumb source source source source";
}
/* Centred in its row, also when a long title takes a second line. */
.thumb {
  grid-area: thumb; align-self: center; width: 40px; aspect-ratio: 210 / 297;
  border: 1px solid var(--border); border-radius: 3px; background: var(--window); overflow: hidden;
}
.thumb img { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; animation: thumb-in .2s ease; }
@keyframes thumb-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .thumb img { animation: none; } }
.toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); cursor: pointer; }
.toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }

.field { display: grid; gap: 4px; min-width: 0; }
.field > span { font-size: .75rem; font-weight: 600; color: var(--muted); }
/* After shadcn/ui's input and select: the same 6px radius, faint shadow and 3px
   focus ring as the buttons, a darker border on hover, and for the select a
   muted chevron of our own instead of the browser's arrow. */
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; height: 36px; padding: 0 10px;
  border: 1px solid var(--input); border-radius: 6px;
  background: var(--panel); color: var(--text); font: inherit; font-size: .9375rem;
  box-shadow: 0 1px 2px rgba(16, 20, 28, .05);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 30px; text-overflow: ellipsis;
  background-image: var(--chevron);
  background-repeat: no-repeat; background-position: right 9px center; background-size: 16px;
}
/* A title that grows onto a second line rather than being cut off (#268). */
.field textarea {
  display: block; height: auto; min-height: 36px; padding: 7px 10px; resize: none;
  overflow: hidden; line-height: 20px; field-sizing: content;
}
.field input:hover:not(:disabled):not(:focus-visible), .field select:hover:not(:disabled):not(:focus-visible),
.field textarea:hover:not(:disabled):not(:focus-visible) {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--input));
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent);
}
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: .5; cursor: not-allowed; }
.range { display: flex; align-items: center; gap: 6px; }
.range input { padding: 0 6px; text-align: center; }
/* The row's pages (#266): what goes into the bundle, on a button that opens
   the picker. Shaped like the fields beside it; a subset reads in gold. */
.pages-btn {
  display: flex; align-items: center; gap: 6px; width: 100%; height: 36px; padding: 0 10px;
  border: 1px solid var(--input); border-radius: 6px; background: var(--panel); color: var(--text);
  font: inherit; font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 2px rgba(16, 20, 28, .05); transition: border-color .15s ease, box-shadow .15s ease;
}
.pages-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pages-btn .icon { flex-shrink: 0; width: 16px; height: 16px; color: var(--link); }
.pages-btn.subset { border-color: var(--gold); }
.pages-btn.subset .icon { color: var(--gold); }
.pages-btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 35%, var(--input)); }
.pages-btn:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.pages-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Bundle settings ───────────────────────────────────────────────── */

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin-top: 16px; }

.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.check > span { display: grid; gap: 2px; }
.check .muted { font-size: .875rem; }

.build-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.build-row .muted { flex: 1; min-width: 220px; font-size: .875rem; }

/* A CourtMerge Pro option, locked: where its checkbox would be, but quieter,
   with a lock in the box and a small "Pro". Its explanation opens below it. */
.locked-row {
  display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 0;
  border: 0; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer;
}
.locked-row:hover { color: var(--text); }
.locked-row:focus-visible, .locked-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.lock-box {
  display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px;
  border: 1px dashed var(--input); border-radius: 4px; color: var(--gold);
}
.lock-box .icon { width: 12px; height: 12px; }
.locked-btn { color: var(--muted); }
.locked-btn .icon { color: var(--gold); }
.pro-tag {
  padding: 0 6px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 999px;
  color: var(--muted); font-size: .6875rem; font-weight: 600; letter-spacing: .04em; line-height: 1.5;
}
.lock-tip { margin-top: 8px; font-size: .875rem; }
/* A link in a sentence, so as tall as the line rather than a button row. */
.lock-tip .btn-link { min-height: 0; vertical-align: bottom; }
.check + .locked-row, .locked-row + .lock-tip + .locked-row { margin-top: 12px; }
/* Below the button and its hint, the full width of the row. */
.build-row .lock-tip { order: 1; flex-basis: 100%; margin-top: 0; }

.result {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-top: 16px; padding: 16px; border-radius: 8px;
  background: var(--info); border: 1px solid var(--info-border);
}
.result-title { display: flex; align-items: center; gap: 8px; width: 100%; font-weight: 600; }
.result-title .icon { color: var(--link); }
.result .muted { width: 100%; font-size: .8125rem; }
/* The download names the file, and a bundle's name can be longer than a
   phone is wide: the button breaks it rather than push the page sideways. */
.result .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.result .btn .icon { flex: none; }
.size-note {
  display: flex; align-items: flex-start; gap: 8px; width: 100%;
  padding-top: 12px; border-top: 1px solid var(--info-border); font-size: .875rem;
}
.size-note > .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--link); }
.size-note .btn-link { display: inline-flex; margin-left: 4px; }

/* What the desktop app adds, shown under a finished bundle. Quieter than the
   result above it: the bundle is what the visitor came for. */
.upsell {
  margin-top: 12px; padding: 16px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--header);
}
.upsell-title { font-weight: 600; }
.upsell-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: .9375rem; }
.upsell-list li { display: flex; align-items: flex-start; gap: 8px; }
.upsell-list .icon { color: var(--gold); margin-top: 2px; }
.upsell-list li { align-items: center; }
.upsell > .muted { margin-top: 10px; font-size: .875rem; }
.upsell-actions, .desktop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.upsell-actions { margin-top: 12px; }

/* ── Desktop note and footer ───────────────────────────────────────── */

.desktop-note {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); align-items: center; gap: 16px 32px;
  margin-top: 32px; box-shadow: none; background: var(--header);
}
.desktop-note .desktop-actions { margin-top: 16px; }

/* Laptop with a stamped exhibit, and a large scan that comes out small (#249). */
.desktop-art svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 28px rgba(30, 42, 68, .14)); }
.desktop-art .frame { fill: var(--accent); }
.desktop-art .screen { fill: var(--window); }
.desktop-art .base { fill: var(--input); }
.desktop-art .sheet { fill: var(--panel); stroke: var(--border); }
.desktop-art .sheet.back { fill: color-mix(in srgb, var(--link) 14%, var(--panel)); }
.desktop-art .text-line { fill: var(--input); }
.desktop-art .stamp .disc { fill: var(--panel); opacity: .8; }
.desktop-art .stamp .ring { fill: none; stroke: var(--stamp-ink); }
.desktop-art .stamp .ink { fill: var(--stamp-ink); }
.desktop-art .ink-sm { font: 600 9px var(--font); letter-spacing: .12em; }
.desktop-art .ink-lg { font: 700 13px var(--font); letter-spacing: .04em; }
.desktop-art .ink-nr { font: 600 14px var(--font); }
.desktop-art .ink-xs { font: 400 9px var(--font); letter-spacing: .1em; }
.desktop-art .file { fill: var(--panel); stroke: var(--input); stroke-width: 1.4; stroke-linejoin: round; }
.desktop-art .fold { fill: none; stroke: var(--input); stroke-width: 1.4; stroke-linejoin: round; }
.desktop-art .photo { fill: color-mix(in srgb, var(--link) 22%, var(--panel)); }
.desktop-art .hill { fill: color-mix(in srgb, var(--link) 45%, var(--panel)); }
.desktop-art .sun { fill: var(--gold); }
.desktop-art .squeeze { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.desktop-art .seal circle { fill: var(--gold); }
.desktop-art .seal path { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.desktop-note h2 { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; }
.desktop-icon {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold);
}
.desktop-icon .icon { width: 17px; height: 17px; }
.desktop-note p { margin-top: 4px; color: var(--muted); font-size: .9375rem; max-width: 640px; }

.site-footer { margin-top: 48px; padding: 32px 0 40px; border-top: 1px solid var(--border); font-size: .8125rem; color: var(--muted); }
/* The privacy promise under the wordmark, both on the left. */
.footer-top { display: grid; justify-items: start; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.footer-bottom { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-privacy { display: inline-flex; align-items: flex-start; gap: 8px; }
.footer-privacy .icon { width: 16px; height: 16px; margin-top: 1px; color: var(--gold); }
/* Name · site · LinkedIn on one line; on a phone the two links wrap together. */
.footer-maker { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.footer-links { display: inline-flex; align-items: center; gap: 10px; }
.footer-maker > span + .footer-links::before, .footer-links a + a::before { content: "·"; color: var(--muted); }
.footer-links a + a::before { margin-right: 10px; }
@media (max-width: 560px) {
  .footer-links { flex-basis: 100%; }
  .footer-maker > span + .footer-links::before { display: none; }
}
.site-footer a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a .icon { width: 14px; height: 14px; }
.site-footer .wordmark { display: inline; font-size: 1rem; color: var(--text); }
.site-footer .wordmark:hover { text-decoration: none; }

/* ── Busy states ───────────────────────────────────────────────────── */

/* Turned by a transform, which the browser animates on its compositor: it keeps
   turning while the build holds the main thread. */
.spinner {
  display: inline-block; width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite; will-change: transform;
}
.spinner.large { width: 36px; height: 36px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

.overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 16px;
  background: rgba(16, 20, 28, .45);
}
.overlay-card {
  display: grid; justify-items: center; gap: 12px; text-align: center;
  max-width: 420px; padding: 28px 24px;
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
}
.overlay-title { font-size: 1.125rem; font-weight: 600; }

/* The build's phases (#235): a tick for what is done, the spinner on what runs. */
.phases {
  list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 10px;
  justify-self: stretch; text-align: left;
}
.phase { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.phase.active { color: var(--text); font-weight: 600; }
.phase.done { color: var(--text); }
.phase.done .icon { color: var(--gold); }
.phase .spinner, .phase .icon, .phase-dot { width: 18px; height: 18px; }
.phase-dot { flex-shrink: 0; border: 2px solid var(--border); border-radius: 50%; }
.phase .muted { font-weight: 400; font-variant-numeric: tabular-nums; }

/* The preview of a finished bundle (#228): pages under each other in a pop-up
   that takes most of the screen. preview.js draws them into .preview-pages. */
.preview-overlay { padding: 24px 16px; }
.preview-card {
  /* One column no wider than the card, or the long title in the head pushes
     the download and close buttons out of a phone's view. */
  display: grid; grid-template-rows: auto auto 1fr; grid-template-columns: minmax(0, 1fr);
  width: min(900px, 100%); height: calc(100vh - 48px); height: calc(100dvh - 48px); overflow: hidden;
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow);
}
.preview-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--border);
}
.preview-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-title .muted { font-weight: 400; }
.preview-message { display: flex; align-items: center; gap: 8px; margin: 16px 20px 0; }
.preview-pages {
  overflow-y: auto; overscroll-behavior: contain;
  display: grid; align-content: start; gap: 16px; padding: 20px;
  background: var(--window);
}
.preview-page { width: 100%; background: #fff; box-shadow: var(--shadow); }
.preview-page canvas { display: block; width: 100%; height: 100%; }

/* The page picker (#266): the preview's frame, with the pages as a grid of
   small tiles to tick, the tools above and the buttons below. */
.picker-card { grid-template-rows: auto auto 1fr auto; grid-template-columns: minmax(0, 1fr); width: min(960px, 100%); }
.picker-card:focus { outline: none; }
.picker-tools { display: grid; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.picker-tools .scan-tip { margin: 0; }
.picker-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.picker-field { flex: 1 1 220px; max-width: 360px; }
.picker-field input[aria-invalid="true"] { border-color: var(--error); }
.picker-count { align-self: center; margin-left: 4px; font-variant-numeric: tabular-nums; }
/* After shadcn/ui's form description and message: muted help under the
   field, in the error colour while the text doesn't read. */
.picker-zoom { display: flex; gap: 2px; margin-left: auto; align-self: center; }
.picker-help { font-size: .8125rem; color: var(--muted); }
.picker-help.invalid { color: var(--error); }
.picker-pages {
  list-style: none; margin: 0; overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); align-content: start; gap: 16px;
  padding: 16px 20px; background: var(--window);
}
/* A tile is one big checkbox, like picking photos: the box in its corner, a
   ring in the accent colour when ticked, the page faded when not. */
/* Zoom: small tiles to choose from, up to one page per row to read. */
.picker-pages.zoom-0 { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px; }
.picker-pages.zoom-2 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.picker-pages.zoom-3 { grid-template-columns: minmax(0, 640px); justify-content: center; gap: 24px; }
.picker-page button {
  position: relative; display: grid; gap: 6px; width: 100%; padding: 0;
  border: 0; background: none; color: inherit; font: inherit; cursor: pointer; user-select: none;
}
.picker-page button:focus-visible { outline: none; }
.picker-thumb {
  display: block; width: 100%; aspect-ratio: 210 / 297; overflow: hidden;
  border: 1px solid var(--border); border-radius: 6px; background: #fff; opacity: .5;
  transition: opacity .15s ease, box-shadow .15s ease;
}
.picker-thumb canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.picker-page button:hover .picker-thumb { opacity: .8; }
.picker-page.on .picker-thumb { opacity: 1; box-shadow: 0 0 0 2px var(--window), 0 0 0 4px var(--accent); }
.picker-page button:focus-visible .picker-thumb { opacity: 1; box-shadow: 0 0 0 2px var(--window), 0 0 0 4px var(--focus); }
/* shadcn/ui's checkbox: a 4px-rounded square in the accent colour, filled
   with a white tick when on. */
.picker-check {
  position: absolute; top: 8px; left: 8px; display: grid; place-items: center;
  width: 18px; height: 18px; border: 1.5px solid var(--accent); border-radius: 4px;
  background: var(--panel); color: var(--accent-text); box-shadow: 0 1px 2px rgba(16, 20, 28, .1);
}
.picker-page.on .picker-check { background: var(--accent); }
.picker-check .icon { width: 13px; height: 13px; stroke-width: 3; }
/* Turning a page: a small round button in the tile's other corner, there on
   hover and focus, always on a touch screen, which has no hover. */
.picker-page { position: relative; }
.picker-page .picker-rotate {
  position: absolute; top: 4px; right: 4px; width: 30px; height: 30px; padding: 0; border-radius: 50%;
  background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(16, 20, 28, .18);
  opacity: 0; transition: opacity .15s ease;
}
.picker-page:hover .picker-rotate, .picker-page .picker-rotate:focus-visible { opacity: 1; }
@media (hover: none) { .picker-page .picker-rotate { opacity: 1; } }
.picker-number { text-align: center; font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.picker-page.on .picker-number { color: var(--text); font-weight: 600; }
.picker-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); }
@media (max-width: 560px) {
  .picker-pages { padding: 12px; }
  .picker-pages.zoom-1 { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
  /* Two pages across, the size the picker opens at (PickerZoom). */
  .picker-pages.zoom-2 { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .picker-tools, .picker-foot { padding-left: 12px; padding-right: 12px; }
}

.boot { display: grid; justify-items: center; gap: 16px; padding: 48px 16px; text-align: center; }
.load-bar {
  width: min(320px, 100%); height: 6px; overflow: hidden;
  background: var(--border); border-radius: 3px;
}
.load-bar span {
  display: block; height: 100%; width: var(--blazor-load-percentage, 0%);
  background: var(--accent); border-radius: inherit; transition: width .2s ease-out;
}
.load-percent { font-variant-numeric: tabular-nums; }
.load-percent::after { content: var(--blazor-load-percentage-text, ""); }

#blazor-error-ui {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  padding: 12px 16px; background: var(--error-bg); color: var(--error);
  border-top: 1px solid var(--error);
}
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

/* ── Narrow screens ────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
  .hero-art { display: none; }
  .desktop-note { grid-template-columns: minmax(0, 1fr); }
  .desktop-art { max-width: 320px; }
  .exhibit {
    grid-template-columns: 20px 30px 52px minmax(0, 1fr) 36px;
    grid-template-areas:
      "handle move number title  remove"
      ".      .    pages  pages  pages"
      ".      .    source source source";
  }
  .exhibits.with-thumbs .exhibit {
    grid-template-columns: 20px 30px 40px 52px minmax(0, 1fr) 36px;
    grid-template-areas:
      "handle move thumb number title  remove"
      ".      .    thumb pages  pages  pages"
      ".      .    .     source source source";
  }
  .f-pages { max-width: 260px; }
}

@media (max-width: 560px) {
  .card { padding: 18px 16px; }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
  .dropzone.compact { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .dropzone.compact > .icon { display: none; }
  .badge { display: none; }
  /* No room beside the fields here; the file name has to do, and the switch
     for the thumbnails goes with them. */
  .thumb, .toolbar .toggle { display: none; }
  .exhibit, .exhibits.with-thumbs .exhibit {
    grid-template-columns: 20px minmax(0, 1fr) 36px;
    grid-template-areas:
      "handle number remove"
      "move   title  ."
      ".      pages  ."
      ".      source .";
  }
  .f-number { max-width: 72px; }
  .move { margin-top: var(--label); }
  /* The file name first, as long as the line allows; the party under it. */
  .source-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
  .party-pick { grid-row: 2; grid-column: 1 / -1; justify-self: start; }
  /* Stacked in the 20px column beside the title, so they stay off its field. */
  .move .icon-btn { width: 20px; }
}

/* A phone, as quiet as it gets: the lead already says what the bundle has, so
   the hero keeps only the promises; the laptop picture is for a desktop app a
   phone can't run. */
@media (max-width: 560px) {
  .gets li:not(.promise) { display: none; }
  .desktop-art { display: none; }
  /* Under a finished bundle the same offer stands right above it. */
  main:has(.upsell) .desktop-note { display: none; }
}

/* A touch screen has nothing to drag and most can't choose a folder: one
   button, for the files, and the arrows to move a row. */
@media (max-width: 560px) and (pointer: coarse) {
  .drop-text, .drop-actions label:has(input[webkitdirectory]), .handle { display: none; }
  /* Tap a page to tick it; Shift+click has no finger. An error still shows. */
  .picker-help:not(.invalid) { display: none; }
  .drop-actions .btn-ghost { background: var(--accent); color: var(--accent-text); border-color: transparent; }
  .drop-actions .btn-ghost .icon { color: inherit; }
}

/* ── CourtMerge Pro license (#227) ─────────────────────────────────── */

.license-chip {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0;
  font-size: .8125rem; color: var(--muted);
}
.license-chip .icon { width: 15px; height: 15px; flex: none; color: var(--gold); }
.license-holder { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.license-chip .link-btn { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.license-chip .link-btn:hover { color: var(--text); }
.badge-note { display: flex; margin-top: 14px; max-width: 640px; }
.license-note { margin-top: 10px; }
.license-body {
  display: grid; gap: 10px; justify-items: start; margin-top: 8px; max-width: 760px;
  padding: 12px 16px; border-radius: var(--radius);
  background: var(--info); border: 1px solid var(--info-border);
}
.license-body.dragging, .license-note.dragging .license-body { border-color: var(--focus); }
.license-note .license-body p { margin: 0; padding: 0; border: 0; background: none; }
.license-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.license-paste { width: 100%; }
.license-paste textarea {
  min-height: 56px; overflow: auto; field-sizing: fixed; resize: vertical; word-break: break-all;
  font: .8125rem/1.4 ui-monospace, Consolas, monospace;
}
/* No room beside the links on a phone: a line of its own under them. */
@media (max-width: 560px) {
  .site-header .header-row:has(.license-chip) { flex-wrap: wrap; row-gap: 0; height: auto; min-height: 60px; padding-top: 12px; }
  .license-chip { order: 1; flex-basis: 100%; padding: 2px 0 10px; }
  .license-holder { max-width: none; flex: 0 1 auto; }
}
