/* App, in the landing's language: serif display, mono labels, pill controls, ink / wall / pigment. */
:root {
  --wall: #f4f5f7; --panel: #ffffff; --ink: #0e1420; --muted: #5a6577; --line: #d3d9e2;
  --pigment: #1f3fd1; --pigment-ink: #ffffff; --pigment-soft: #e4e9fb;
  --good: #1d7a4f; --good-soft: #dff2e8; --warn: #9a6200; --warn-soft: #fbeed3; --bad: #b3261e; --bad-soft: #fbe3e1;
  --display: 'Instrument Serif', 'Times New Roman', serif;
  --body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 14px; --signal: #ffd84a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wall: #10141b; --panel: #181e28; --ink: #e9edf3; --muted: #9aa6b6; --line: #2b3442;
    --pigment: #8ea2ff; --pigment-ink: #0b1020; --pigment-soft: #1d2647;
    --good: #5fd09a; --good-soft: #143325; --warn: #f0b755; --warn-soft: #3a2c10; --bad: #ff8a80; --bad-soft: #3d1917;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wall: #10141b; --panel: #181e28; --ink: #e9edf3; --muted: #9aa6b6; --line: #2b3442;
  --pigment: #8ea2ff; --pigment-ink: #0b1020; --pigment-soft: #1d2647;
  --good: #5fd09a; --good-soft: #143325; --warn: #f0b755; --warn-soft: #3a2c10; --bad: #ff8a80; --bad-soft: #3d1917;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 15px/1.55 var(--body); }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font: 600 1.05rem/1.25 var(--body); margin: 0; }
p { margin: 0; }
a { color: var(--pigment); }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.label { font: 500 0.72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
:focus-visible { outline: 2px solid var(--pigment); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-block: 20px 56px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1 1 0; min-width: 0; }

.top { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.brand { font: 400 1.9rem/1 var(--display); color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: 5px; }
.brand i { width: 9px; height: 9px; border-radius: 50%; background: var(--pigment); display: inline-block; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; border-radius: 99px; color: var(--muted); text-decoration: none; font: 500 0.74rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--wall); }
.demo-flag { font: 500 0.72rem var(--mono); background: var(--warn-soft); color: var(--warn); padding: 5px 12px; border-radius: 99px; }

button, .btn { font: 600 0.92rem var(--body); border: 1.5px solid var(--ink); background: var(--panel); color: var(--ink); padding: 9px 18px; border-radius: 99px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
button:hover, .btn:hover { background: var(--pigment-soft); }
.primary { background: var(--pigment); border-color: var(--pigment); color: var(--pigment-ink); }
.primary:hover { background: var(--pigment); filter: brightness(1.1); }
.quiet { border-color: var(--line); font-weight: 500; }
.danger { border-color: var(--bad); color: var(--bad); }
button[disabled] { opacity: 0.5; cursor: not-allowed; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; width: 100%; }
input, select, textarea { border-radius: 12px; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 0.86rem; font-weight: 500; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.form .wide { grid-column: 1 / -1; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.checks label { flex-direction: row; align-items: center; font-weight: 400; }
.checks input { width: auto; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.facts div { flex: 1 1 150px; background: var(--panel); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
/* Flex, not grid: tiles in the last row stretch, so an odd count never leaves an empty grey cell. */
.facts b { font: 400 2.6rem/1 var(--display); }

.pill { font: 500 0.72rem var(--mono); padding: 3px 8px; border-radius: 99px; white-space: nowrap; background: var(--pigment-soft); color: var(--pigment); }
.pill.must, .pill.strong { background: var(--good-soft); color: var(--good); }
.pill.maybe { background: var(--warn-soft); color: var(--warn); }
.pill.low, .pill.skip { background: var(--bad-soft); color: var(--bad); }

/* match list: one score sheet line per call */
.calls { display: flex; flex-direction: column; border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--panel); }
.call:hover { background: var(--pigment-soft); }
.call { display: grid; grid-template-columns: 62px minmax(0, 1.5fr) minmax(0, 1fr) 230px; gap: 14px; align-items: center; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; width: 100%; font-weight: 400; }
.call:last-child { border-bottom: 0; }
.call.out { opacity: 0.62; }
.score { font: 700 1.55rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.score small { display: block; font: 500 0.62rem var(--mono); color: var(--muted); margin-top: 4px; letter-spacing: 0.06em; }
.call h3 { margin-bottom: 3px; }
.sub { font-size: 0.84rem; color: var(--muted); }
.best { display: flex; gap: 10px; align-items: center; min-width: 0; }
.best img, .thumb { width: 54px; height: 40px; object-fit: cover; border: 1px solid var(--line); flex: none; }
.due { text-align: right; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
@media (max-width: 720px) {
  .call { grid-template-columns: 52px minmax(0, 1fr); }
  .call .best, .call .due { grid-column: 2; }
  .due { align-items: flex-start; text-align: left; flex-direction: row; flex-wrap: wrap; }
}

/* score breakdown */
.bars { display: grid; grid-template-columns: minmax(0, 1fr) 120px 48px; gap: 6px 12px; align-items: center; font-size: 0.86rem; }
.bar { height: 8px; background: var(--line); position: relative; }
.bar span { position: absolute; inset: 0 auto 0 0; background: var(--pigment); }
.rank { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.rank:first-of-type { border-top: 0; }
.rank img { width: 150px; aspect-ratio: 15 / 11; object-fit: cover; border: 1px solid var(--line); }
@media (max-width: 640px) { .rank { grid-template-columns: 1fr; } .bars { grid-template-columns: minmax(0, 1fr) 70px 44px; } }
ul.plain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: 0.9rem; }
.yes li::marker { color: var(--good); } .no li::marker { color: var(--bad); }

/* portfolio: wall labels */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.work { display: flex; flex-direction: column; gap: 10px; }
.work img { width: 100%; aspect-ratio: 15 / 11; object-fit: cover; border: 1px solid var(--line); background: var(--panel); }
.tomb { border-left: 2px solid var(--ink); padding-left: 10px; font-size: 0.86rem; display: flex; flex-direction: column; gap: 1px; }
.tomb b { font: 400 1.3rem/1.1 var(--display); }
.tomb i { font-style: italic; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan.on { border-color: var(--ink); box-shadow: 8px 8px 0 var(--pigment); }
.price { font: 400 3.2rem/1 var(--display); }
.price small { font: 400 0.85rem var(--body); color: var(--muted); }
.meter { height: 10px; background: var(--line); }
.meter span { display: block; height: 100%; background: var(--pigment); }
.note { background: var(--warn-soft); color: var(--warn); padding: 10px 12px; border-radius: var(--r); font-size: 0.88rem; }
.err { background: var(--bad-soft); color: var(--bad); }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--wall); padding: 9px 16px; border-radius: var(--r); font-weight: 500; z-index: 20; }

/* landing */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; padding-block: 36px 28px; }
.hero p.lede { font-size: 1.12rem; max-width: 56ch; color: var(--muted); }
.sheet { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.cmp th, .cmp td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp th { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.scroll { overflow-x: auto; }
section.band { padding-block: 34px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .bar span, .meter span { transition: width 0.4s ease; } }

/* pack as a document (and print) */
.doc { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.doc-page { background: var(--panel); border: 1px solid var(--line); width: 100%; max-width: 820px; min-height: 1040px; padding: 56px 64px; display: flex; flex-direction: column; gap: 22px; }
.doc-head { display: flex; justify-content: space-between; gap: 16px; font: 500 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.doc-text { white-space: pre-wrap; font-size: 1rem; line-height: 1.65; max-width: 62ch; }
.doc-page img { width: 100%; max-height: 620px; object-fit: contain; background: var(--wall); }
.doc-cover { justify-content: center; gap: 28px; }
.doc-cover h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
.doc-kind { font: 500 0.9rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; }
@media (max-width: 640px) { .doc-page { padding: 28px 22px; min-height: 0; } }
@media print {
  .top, .no-print, .toast { display: none !important; }
  body { background: #fff; } .wrap { padding: 0; max-width: none; }
  .doc { gap: 0; } .doc-page { border: 0; max-width: none; min-height: 0; height: 100vh; break-after: page; padding: 18mm; }
}

.doc-sk { display: grid; gap: 18px; } .doc-sk svg { width: 100%; height: auto; max-width: 640px; }
.doc-calc { border-collapse: collapse; width: 100%; max-width: 640px; } .doc-calc th, .doc-calc td { text-align: left; padding: 9px 10px 9px 0; border-top: 1px solid var(--line); vertical-align: top; font-weight: 400; } .doc-calc th { width: 42%; color: var(--muted); } .doc-calc td.mono { text-align: right; }

/* Interface language */
html.i18n-wait body { visibility: hidden; }
.lang-pick { width: auto; font: 500 0.8rem var(--mono, monospace); padding: 5px 8px; border-radius: 99px; border: 1px solid var(--line, #ccc); background: transparent; color: inherit; margin-left: 8px; }
.doc-mood { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 640px; }
.doc-mood img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* A4 landscape, two columns: the layout of real proposal documents (name left, call right on every page). */
.doc.landscape .doc-page { max-width: 1120px; min-height: 0; aspect-ratio: 297 / 210; padding: 40px 52px; gap: 16px; overflow: hidden; }
.doc.landscape .doc-text { columns: 2; column-gap: 44px; max-width: none; font-size: 0.95rem; line-height: 1.55; }
.doc.landscape .doc-head { font-weight: 700; color: var(--ink); letter-spacing: 0.06em; }
.doc.landscape .doc-page img:not(.sheet-img):not(.sheet-side img) { max-height: 440px; }
.doc.landscape .doc-sk { grid-template-columns: 1fr 1fr; }
/* Sketch sheet */
.doc-sheet { background: #fbfaf7; color: #1b1b1b; } .doc .doc-page.doc-sheet .doc-head { color: #1b1b1b; border-color: #ddd8cc; } .doc-sheet .muted { color: #6b6b6b; }
.psheet { display: grid; grid-template-columns: 3fr 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; flex: 1; min-height: 0; }
.sheet-main { position: relative; background: #f6f3ec; border: 1px solid #e6e1d6; min-height: 0; overflow: hidden; }
.doc-page img.sheet-img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: none; background: none; }
.sheet-title { position: absolute; left: 18px; top: 14px; display: flex; flex-direction: column; gap: 2px; font-family: 'Caveat', 'Comic Sans MS', cursive; color: #2b2b2b; background: rgba(251, 250, 247, .78); padding: 6px 10px; }
.sheet-title b { font-size: 1.7rem; font-weight: 600; border-bottom: 1px solid #2b2b2b; }
.sheet-title span { font-size: 1rem; }
.sheet-side { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.doc-page .sheet-side img { width: 100%; flex: 1; min-height: 0; object-fit: cover; max-height: none; background: none; }
.sheet-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid #e6e1d6; }
.sheet-row svg { width: 100%; height: auto; max-height: 170px; border-left: 1px solid #e6e1d6; padding: 4px 8px; } .sheet-row svg:first-child { border-left: 0; }
.sheet-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-family: 'Caveat', 'Comic Sans MS', cursive; font-size: 1.3rem; text-align: center; padding: 16px; }
.sheet-ph.small { border: 1px dashed #d8d2c4; font-size: 1rem; }
.sheet-cap { text-align: center; font-size: 0.95rem; line-height: 1.4; margin: 0; }
label.inline { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; } label.inline select { width: auto; }
@media (max-width: 760px) { .sheet-main { aspect-ratio: 3 / 2; } .psheet { grid-template-columns: 1fr; } .sheet-row { grid-template-columns: 1fr; } .doc.landscape .doc-page { aspect-ratio: auto; } .doc.landscape .doc-text { columns: 1; } }
@media print {
  .doc.landscape .doc-page { aspect-ratio: auto; height: 100vh; padding: 12mm 15mm; }
  .doc-sheet { background: #fff; }
}
.prio { color: #c2671f; }
.plan-svg { width: 100%; height: auto; max-width: 900px; display: block; margin: 10px 0; }
.plan-wrap { overflow-x: auto; } @media (max-width: 640px) { .plan-svg { min-width: 680px; } } @media print { .plan-svg { min-width: 0; } }

/* ---------- Hosted calls: public page, application form, organiser console ---------- */
.flabel { font: 500 0.72rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.good { color: var(--good); } .bad { color: var(--bad); } .warn { color: var(--warn); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; } legend { padding: 0; margin-bottom: 6px; }
.cp { display: flex; flex-direction: column; gap: 22px; }
.cp-head { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.cp-head .eyebrow { font: 500 0.74rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pigment); }
.cp-head .lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0; }
.cp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0; }
.cp-facts div { border-top: 1.5px solid var(--ink); padding-top: 8px; } .cp-facts dt { font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); } .cp-facts dd { margin: 4px 0 0; }
.cp-sec { max-width: 72ch; } .cp-sec h2 { font-size: 1.6rem; margin-bottom: 8px; } .cp-sec p { line-height: 1.6; }
.wc.over { color: var(--bad); font-weight: 600; }
.aw-list { display: flex; flex-direction: column; gap: 14px; }
.aw { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.aw > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--wall); }
.aw > .row { grid-column: 1 / -1; justify-content: flex-end; }
@media (max-width: 640px) { .aw { grid-template-columns: 1fr; } .aw > img { aspect-ratio: 4 / 3; } }
.aw-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.aw-pick .pick { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; align-items: stretch; text-align: left; font-weight: 500; }
.aw-pick .pick img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.oc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.oc-card h3 { margin: 0; font: 400 1.5rem/1.15 var(--display); }
.fb { display: flex; flex-direction: column; gap: 12px; }
.fb-row { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.stage-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.stage-tabs button { padding: 6px 12px; font: 500 0.78rem var(--mono); border-color: var(--line); }
.stage-tabs button.on { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.apps { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.app-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); }
.app-row:first-child { border-top: 0; } .app-row.warn { box-shadow: inset 3px 0 0 var(--bad); }
.app-open { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; border: 0; background: none; padding: 0; text-align: left; font-weight: 400; border-radius: 0; }
.app-open:hover { background: none; } .app-open:hover b { text-decoration: underline; }
.app-open img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--wall); }
.ai-line { font-size: 0.84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-scores { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; text-align: right; font-size: 0.86rem; }
@media (max-width: 720px) { .app-row { grid-template-columns: 24px minmax(0, 1fr); } .app-scores { grid-column: 2; align-items: flex-start; text-align: left; } }
.app-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.app-detail aside { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
@media (max-width: 900px) { .app-detail { grid-template-columns: 1fr; } .app-detail aside { position: static; max-height: none; } }
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.works-grid figure { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; }
.works-grid .zoom { padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--wall); }
.works-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.answers > div { display: flex; flex-direction: column; gap: 4px; } .answers > div > div { line-height: 1.55; overflow-wrap: anywhere; }
#lightbox { position: fixed; inset: 0; background: rgba(10, 12, 16, 0.9); display: flex; align-items: center; justify-content: center; z-index: 30; cursor: zoom-out; padding: 20px; }
#lightbox[hidden] { display: none; } #lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.crit legend { font-size: 0.9rem; }
.scale { display: flex; gap: 6px; flex-wrap: wrap; }
.scale label { flex-direction: row; } .scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale span { min-width: 42px; text-align: center; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font: 500 0.9rem var(--mono); }
.scale input:checked + span { background: var(--ink); color: var(--wall); border-color: var(--ink); }
.scale input:focus-visible + span { outline: 2px solid var(--pigment); outline-offset: 2px; }
.ai-panel { border-color: var(--pigment); } .ai-panel p { margin: 0; line-height: 1.5; }
.team li { padding: 8px 0; border-top: 1px solid var(--line); list-style: none; } .team { padding-left: 0; }
.cp-sec p { margin: 0 0 12px; }
.rank-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.rank-table th, .rank-table td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.rank-table th { font: 500 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-top: 0; white-space: nowrap; }
.rank-table .app-open { grid-template-columns: 44px auto; } .rank-table .app-open img { width: 44px; height: 44px; }
.rank-table select { width: auto; }
.rank-table tr.flag td { background: var(--bad-soft); }
.rank-table .small { font-size: 0.75rem; }
.rank-table .split { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.rank-table tr.cutline td { padding: 0; border-top: 2px dashed var(--pigment); }
.rank-table tr.cutline span { display: block; padding: 4px 12px; font: 500 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--pigment); background: var(--pigment-soft); }
.recs { display: inline-flex; gap: 3px; vertical-align: middle; } .recs i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.recs i.y { background: var(--good); } .recs i.m { background: var(--warn); } .recs i.n { background: transparent; border: 1.5px solid var(--bad); }
.rank-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); overflow: hidden; }
.rank-stats div { padding: 12px 14px; border-left: 1px solid var(--line); display: flex; flex-direction: column; } .rank-stats div:first-child { border-left: 0; }
.rank-stats b { font: 400 1.8rem var(--display); line-height: 1; } .rank-stats span { font: 500 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 4px; }
.scroll { overflow-x: auto; }
.rank-table .nowrap, .rank-table .app-open b { white-space: nowrap; }
/* Events */
.call.ev { grid-template-columns: 62px minmax(0, 1fr) 210px; }
.ev-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.ev-budget { font: 600 0.95rem var(--mono); color: var(--ink); }
.ev-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
table.budget { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.budget td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.budget td.mono { text-align: right; white-space: nowrap; padding-left: 12px; }
table.budget tr.tot td { font-weight: 700; border-top: 1.5px solid var(--ink); }
.small { font-size: 0.76rem; }
.filters { gap: 14px; flex-wrap: wrap; }
form.where { border: 1.5px solid var(--pigment); background: var(--pigment-soft); }
@media (max-width: 760px) { .call.ev { grid-template-columns: 52px minmax(0, 1fr); } .ev-side { grid-column: 2; align-items: flex-start; text-align: left; } .ev-grid { grid-template-columns: 1fr; } }
/* Ranking: quick look at the works; jury discussion; results preview */
.mini { padding: 3px 10px; font-size: 0.75rem; margin-top: 6px; }
.rank-table tr.peek td { background: var(--wall); border-top: 0; }
.peek-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0; }
.peek-row .zoom { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; width: 150px; flex: none; text-align: left; font-size: 0.75rem; font-weight: 400; }
.peek-row img { width: 150px; height: 150px; object-fit: cover; border-radius: 10px; }
.talk-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.talk-list li:first-child { border-top: 0; }
.talk textarea { min-height: 80px; }
.rs-preview summary { cursor: pointer; color: var(--pigment); }
.rs-preview .mail { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--panel); font-family: Georgia, serif; }
@media (max-width: 760px) { .rank-stats { grid-template-columns: repeat(2, 1fr); } .rank-stats div:nth-child(odd) { border-left: 0; } }
.talk-list { list-style: none; padding-left: 0; }
/* First run */
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips .chip { display: inline-flex; }
.chips .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips .chip span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; cursor: pointer; text-transform: capitalize; }
.chips .chip input:checked + span { background: var(--pigment); color: var(--pigment-ink); border-color: var(--pigment); }
.chips .chip input:focus-visible + span { outline: 2px solid var(--pigment); outline-offset: 2px; }
.panel.dim { opacity: 0.6; }

/* Long translations (German, Russian…): no control wider than the screen, long words break instead of overflowing. */
select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
label.inline { flex-wrap: wrap; max-width: 100%; }
h1, h2, h3, .btn, button { overflow-wrap: break-word; hyphens: auto; }
/* Continue with Google */
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 360px; padding: 10px 16px; background: #fff; color: #1f1f1f; border: 1px solid #c7c7c7; border-radius: 6px; font-weight: 500; cursor: pointer; }
.g-btn:hover { background: #f6f7f9; }
.g-btn:disabled { opacity: .6; cursor: wait; }
.g-or { display: flex; align-items: center; gap: 10px; max-width: 360px; font-size: 13px; }
.g-or::before, .g-or::after { content: ''; flex: 1; border-top: 1px solid currentColor; opacity: .3; }
.g-slot { min-height: 44px; }
