/*
 * FoldNet@home's look, taken from the alphafold2-webgpu frontend (web/style.css):
 * a fixed light header, a narrow section rail, white panels under dark dotted
 * heading bars with numbered steps, Roboto with Roboto Mono for numbers, and
 * Material blue for actions. Shared by the browser worker and the coordinator
 * pages. Fonts are self-hosted (no third-party requests).
 */
@font-face { font-family: Roboto; src: url("Roboto.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("RobotoMono.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }

:root { color-scheme: light; font-family: Roboto, Arial, sans-serif; color: #252525; background: #f5f5f5; font-synthesis: none;
  --primary: #1976d2; --primary-dark: #125ba4; --ink: #252525; --muted: #6f6f6f; --line: #d5d5d5; --panel-bar: #454545;
  --danger: #c62828; --warning: #b26a00; --success: #26834a;
  --plddt-vh: #187bd1; --plddt-h: #56b9dc; --plddt-l: #f2c94c; --plddt-vl: #ef6a62; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; padding: 48px 0 0 56px; background: #f5f5f5; }
button, input, select, textarea { font: inherit; }
a { color: var(--primary); }
code { font: .78rem "Roboto Mono", monospace; }

.site-header { position: fixed; z-index: 20; inset: 0 0 auto 0; height: 48px; display: flex; align-items: center; padding: 0 16px 0 30px; border-bottom: 1px solid #c9c9c9; background: #fafafa; box-shadow: 0 2px 4px #0003; }
.brand { display: flex; align-items: center; gap: .55rem; min-width: 0; color: #242424; text-decoration: none; font-size: 1.25rem; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand img { width: 22px; height: 22px; }
.brand small { color: var(--muted); font-size: .8rem; }
.header-links { display: flex; gap: 2.2rem; margin-left: auto; }
.header-links a { color: #303030; text-decoration: none; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.header-links a:hover, .header-links a[aria-current] { color: var(--primary); }
.side-rail { position: fixed; z-index: 10; inset: 48px auto 0 0; width: 56px; display: flex; flex-direction: column; align-items: stretch; border-right: 1px solid #d0d0d0; background: #fafafa; }
.side-rail a { display: grid; place-items: center; height: 55px; border-bottom: 1px solid #e4e4e4; color: #6a6a6a; text-decoration: none; font-size: 1.15rem; }
.side-rail a:hover { color: var(--primary); background: #eeeeee; }

main, footer { width: min(1368px, calc(100% - 16px)); margin-inline: auto; }
.workspace { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, .72fr); gap: 8px; margin-top: 8px; }
.stack { display: grid; gap: 8px; margin-top: 8px; }
/* Grid items may shrink below their content's width, so a wide table scrolls in its .table-wrap instead of widening the page. */
.stack > *, .stack section, .two-up > *, .workspace > *, .result-grid > * { min-width: 0; }
.results { padding-top: 8px; }
.project { margin-top: .4rem; }
.project .card-title { padding-bottom: .5rem; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.panel, .result-card, .reference { min-width: 0; border-radius: 1px; background: #fff; box-shadow: 0 2px 3px #0003; }
.panel-heading, .section-heading { min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0 16px; color: #fff; background-color: var(--panel-bar); background-image: radial-gradient(#ffffff14 1px, transparent 1px); background-size: 7px 7px; }
.panel-heading > div, .section-heading > div { display: flex; align-items: center; gap: .75rem; }
.panel-body { padding: 18px 16px; }
.step { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #aaa; color: #eee; font: .65rem "Roboto Mono", monospace; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: 1.6rem; font-weight: 400; }
h2, h3 { margin: 0; font-weight: 400; }
h2 { font-size: 1.25rem; } h3 { font-size: 1rem; }
.count { color: #e4e4e4; font: .72rem "Roboto Mono", monospace; }
.lead { margin: 0 0 1rem; color: #444; font-size: .9rem; line-height: 1.6; }
.muted { color: var(--muted); }
.form { display: grid; gap: 1.15rem; padding: 22px 16px 18px; }
.field-row { display: grid; gap: 14px; }
.two-columns { grid-template-columns: 1fr 1fr; }
label { display: grid; gap: .42rem; color: #555; font-size: .78rem; font-weight: 500; }
label.inline { display: flex; align-items: center; gap: .5rem; }
label.inline input { width: auto; }
input, select, textarea { width: 100%; border: 1px solid #aaa; border-radius: 2px; outline: 0; padding: .7rem .8rem; color: #222; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 1px 0 var(--primary); }
.hint { color: #7c7c7c; font-size: .7rem; font-weight: 400; line-height: 1.45; }
.primary, .secondary { border: 0; border-radius: 2px; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; box-shadow: 0 2px 3px #0003; }
.primary { display: flex; justify-content: space-between; gap: 1rem; width: max-content; min-width: 240px; padding: .9rem 1rem; color: #fff; background: var(--primary); font-weight: 500; text-decoration: none; }
.primary:hover { background: var(--primary-dark); } .primary:disabled { color: #999; background: #ddd; cursor: not-allowed; box-shadow: none; }
.secondary { padding: .7rem 1rem; color: #345; background: #eee; font-size: .7rem; }
.quiet { width: auto; border: 1px solid #999; border-radius: 2px; padding: .45rem .7rem; color: #444; background: #fff; text-transform: uppercase; font-size: .68rem; cursor: pointer; text-decoration: none; }
.quiet:hover { color: var(--primary); border-color: var(--primary); }
/* On a dark heading bar, a button borrows the bar's palette (as on the engine's results bar). */
.quiet.inverse { border-color: #ffffff66; color: #fff; background: transparent; }
.quiet.inverse:hover { border-color: #fff; color: #fff; background: #ffffff1f; }
.submit-row { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }

/* The run panel: a capability line, then numbered stages down one edge. */
.run-panel { align-self: start; }
.capability-block { display: grid; gap: .55rem; padding: 14px 20px 0; }
.capability { display: grid; grid-template-columns: 30px 1fr; gap: .7rem; align-items: start; line-height: 1.5; color: #777; font: .76rem "Roboto Mono", monospace; }
.capability-dot { justify-self: center; margin-top: .35rem; width: 8px; height: 8px; border-radius: 50%; background: #d49a20; box-shadow: 0 0 0 4px #d49a201d; }
.capability[data-state="ready"] { color: var(--success); } .capability[data-state="ready"] .capability-dot { background: var(--success); box-shadow: 0 0 0 4px #26834a1d; }
.capability[data-state="failed"] { color: var(--danger); } .capability[data-state="failed"] .capability-dot { background: var(--danger); }
.stages { list-style: none; display: grid; padding: 18px 20px 2px; margin: 0; }
.stages li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: .7rem; min-height: 63px; color: #888; }
.stages li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 27px; bottom: 3px; width: 1px; background: #ccc; }
.stages li > span { z-index: 1; display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #aaa; border-radius: 50%; background: #fff; font: .65rem "Roboto Mono", monospace; }
.stages strong, .stages small { display: block; } .stages strong { color: #666; font-size: .78rem; } .stages small { margin-top: .2rem; font: .64rem "Roboto Mono", monospace; }
.stages li[data-state="active"] > span { color: #fff; border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 4px #1976d21c; }
.stages li[data-state="active"] strong, .stages li[data-state="done"] strong { color: #222; }
.stages li[data-state="done"] > span { color: var(--success); border-color: var(--success); }
.stages li[data-state="error"] > span { color: var(--danger); border-color: var(--danger); }
.meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; margin-top: .5rem; }
.meter progress, progress.bar { width: 100%; height: 5px; border: 0; overflow: hidden; background: #ddd; -webkit-appearance: none; appearance: none; }
.meter progress::-webkit-progress-bar, progress.bar::-webkit-progress-bar { background: #ddd; }
.meter progress::-webkit-progress-value, progress.bar::-webkit-progress-value { background: var(--primary); transition: width .18s ease; }
.meter progress::-moz-progress-bar, progress.bar::-moz-progress-bar { background: var(--primary); }
.meter small { min-width: 36px; margin: 0; color: #777; text-align: right; font-size: .56rem; }
.run-status, .run-summary, .run-log-details { margin-inline: 20px; width: calc(100% - 40px); padding-left: calc(30px + .7rem); }
.run-status { padding-top: 14px; border-top: 1px solid #ddd; color: var(--primary); font-size: .8rem; font-weight: 500; }
.run-status[data-state="failed"] { color: var(--danger); } .run-status[data-state="idle"] { color: #777; }
.run-summary { margin-top: .7rem; margin-bottom: 0; color: #444; font-size: .8rem; line-height: 1.6; }
.run-log-details { margin-top: .9rem; margin-bottom: 18px; }
.run-log-details > summary { position: relative; list-style: none; color: var(--primary); font: .72rem "Roboto Mono", monospace; cursor: pointer; }
.run-log-details > summary::-webkit-details-marker { display: none; }
.run-log-details > summary::before { content: "\25b8"; position: absolute; left: -1.05rem; }
.run-log-details[open] > summary::before { content: "\25be"; }
.run-log { max-height: 220px; margin: .6rem 0 0; padding: 0; white-space: pre-wrap; overflow: auto; color: #666; font: .68rem/1.65 "Roboto Mono", monospace; }

/* Numbers: a grid of cells split by hairlines, values in Roboto Mono. */
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; padding: 1px; background: #d5d5d5; box-shadow: 0 2px 3px #0002; }
.score-grid article { display: grid; gap: .3rem; align-content: start; padding: 1.2rem; background: #fff; }
.score-grid span, .score-grid small { color: #777; font-size: .7rem; } .score-grid strong { font: 500 1.65rem "Roboto Mono", monospace; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.result-card { padding: 1.2rem; }
.result-card.wide { grid-column: 1 / -1; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid #ddd; }
.card-title small { color: #777; font: .68rem "Roboto Mono", monospace; text-align: right; }
canvas.plot { display: block; width: 100%; height: auto; margin-top: 1rem; background: #fff; }
.table-wrap { overflow: auto; margin-top: 1rem; } table { width: 100%; border-collapse: collapse; font: .7rem "Roboto Mono", monospace; }
th, td { padding: .65rem; border-bottom: 1px solid #ddd; text-align: right; white-space: nowrap; } th:first-child, td:first-child { text-align: left; } th { color: #777; font-weight: 400; }
td.left, th.left { text-align: left; }
.campaign { padding: .9rem 0; border-bottom: 1px solid #eee; } .campaign:last-child { border-bottom: 0; }
.campaign-head { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; }
.campaign-head > span { color: #777; font: .7rem "Roboto Mono", monospace; }
.campaign-head strong span { font: 500 1.05rem "Roboto Mono", monospace; }
.campaign p { margin: .3rem 0 .5rem; color: #666; font-size: .76rem; }
.chip { display: inline-block; padding: .1rem .5rem; border: 1px solid #bbb; border-radius: 2px; color: #666; font: .64rem "Roboto Mono", monospace; text-transform: uppercase; }
.chip.on { border-color: var(--success); color: var(--success); }
.claim { margin-top: .2rem; padding: .8rem 1rem; border-left: 3px solid var(--primary); background: #f3f8fd; color: #444; font-size: .8rem; line-height: 1.5; }
#viewer { position: relative; width: 100%; height: clamp(320px, 58vh, 520px); margin-top: 1rem; background: radial-gradient(circle, #fff, #eef1f3 72%); }
.marv { background: #fff url("marv-faded.png") no-repeat right 14px bottom -10px / 150px; }
.reference { margin-top: 8px; padding: 1.15rem 1rem; }
.reference h2 { margin-bottom: .55rem; font-size: 1.45rem; } .reference p { margin: .35rem 0; color: #444; font-size: .8rem; line-height: 1.5; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 1rem 2.5rem; color: #888; font-size: .7rem; }

@media (max-width: 900px) { .workspace, .result-grid, .two-up { grid-template-columns: 1fr; } }
@media (max-width: 680px) { body { padding-left: 0; } .side-rail { display: none; } .site-header { padding-inline: 12px; }
  .header-links a:not(:first-child) { display: none; } .header-links { gap: .8rem; } main, footer { width: calc(100% - 12px); }
  .two-columns { grid-template-columns: 1fr; } .brand { font-size: 1.05rem; } .brand small { display: none; } .score-grid { grid-template-columns: 1fr 1fr; } .primary { width: 100%; } }
/* Narrow screens: Marv gets his own space below the panel's content instead of sitting behind it, and headings
   wrap above their labels rather than squeezing into them. */
@media (max-width: 680px) {
  .marv { padding-bottom: 120px; background-size: 120px; background-position: right 12px bottom -8px; }
  .card-title { flex-wrap: wrap; row-gap: .25rem; } .card-title small { text-align: left; }
  .panel-heading, .section-heading { flex-wrap: wrap; row-gap: .2rem; padding-block: .55rem; }
}
@media (max-width: 430px) { .brand { font-size: .9rem; } .score-grid { grid-template-columns: 1fr; } footer { display: grid; gap: .5rem; } }

/*
 * The worker page: one column, one action. Everything a volunteer needs is the
 * button, one line saying what is happening, and, once folding, three numbers
 * and the confidence of the last protein. Settings and the technical view sit
 * behind two disclosures. Scoped to body.minimal; the other pages keep the
 * panel look above.
 */
body.minimal { padding: 0; background: #fff; color: #1d1d1f; -webkit-font-smoothing: antialiased; }
.minimal .topbar { display: flex; align-items: center; justify-content: space-between; max-width: 640px; margin: 0 auto; padding: 14px 24px; }
.minimal .wordmark { font-weight: 500; letter-spacing: -.01em; }
.minimal .topbar nav { display: flex; gap: 1.6rem; }
.minimal .topbar nav a, .minimal footer a, .minimal .quiet-note a { color: inherit; text-decoration: none; border-bottom: 1px solid #d2d2d7; }
.minimal .topbar nav a { border: 0; color: #6e6e73; font-size: .9rem; }
.minimal .topbar nav a:hover { color: #1d1d1f; }
.minimal main { width: auto; max-width: 640px; margin: 0 auto; padding: 0 24px; }

.minimal .hero { text-align: center; padding: 2.5vh 0 1.4rem; }
.minimal h1 { margin: 0; font-size: clamp(2rem, 6vw, 2.8rem); font-weight: 600; line-height: 1.06; letter-spacing: -.035em; }
.minimal .intro { max-width: 30em; margin: .9rem auto 0; color: #6e6e73; font-size: 1.05rem; line-height: 1.5; }
.minimal .go { display: inline-grid; place-items: center; width: 104px; height: 104px; margin-top: 1.4rem; border: 0; border-radius: 50%;
  color: #fff; background: var(--primary); font-size: 1.15rem; font-weight: 500; letter-spacing: .01em; cursor: pointer;
  box-shadow: 0 10px 30px #1976d233; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.minimal .go:hover { transform: scale(1.03); box-shadow: 0 14px 36px #1976d244; }
.minimal .go:active { transform: scale(.98); }
.minimal .go[data-running="1"] { color: #1d1d1f; background: #f5f5f7; box-shadow: inset 0 0 0 1px #d2d2d7; }
.minimal .go:disabled { color: #a1a1a6; background: #f5f5f7; box-shadow: none; cursor: not-allowed; transform: none; }
.minimal #toggle-icon { display: none; }
.minimal .status { min-height: 1.5em; margin: 1.1rem 0 0; font-size: 1.05rem; }
.minimal .status[data-state="failed"] { color: var(--danger); }
.minimal .now { max-width: 280px; margin: .9rem auto 0; }
.minimal .now[data-busy="1"] progress { display: none; }
.minimal .now[data-busy="1"]::after { content: ""; display: block; height: 3px; border-radius: 3px; background-color: #e8e8ed;
  background-image: linear-gradient(90deg, transparent, var(--primary), transparent); background-size: 40% 100%; background-repeat: no-repeat;
  animation: sweep 1.4s ease-in-out infinite; }
@keyframes sweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }
@media (prefers-reduced-motion: reduce) { .minimal .now[data-busy="1"]::after { animation: none; background-position: 50% 0; } }
.minimal progress { width: 100%; height: 3px; border: 0; border-radius: 3px; background: #e8e8ed; appearance: none; overflow: hidden; }
.minimal progress::-webkit-progress-bar { background: #e8e8ed; }
.minimal progress::-webkit-progress-value { background: var(--primary); transition: width .3s ease; }
.minimal progress::-moz-progress-bar { background: var(--primary); }
.minimal .gpu-line { margin: .7rem 0 0; color: #a1a1a6; font-size: .8rem; }
.minimal .gpu-line[data-state="failed"] { color: var(--danger); }

.minimal .session { padding: 2.5rem 0 1rem; border-top: 1px solid #e8e8ed; }
.minimal .figures { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 420px; margin: .9rem auto 0; text-align: center; }
.minimal .figures strong { display: block; font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.minimal .figures span { color: #6e6e73; font-size: .8rem; }
.minimal .plot { display: block; width: 100%; height: auto; margin: 0 0 1.2rem; }
.minimal .total { max-width: 360px; margin: 1.1rem auto 0; }
.minimal .total p { margin: .6rem 0 0; color: #6e6e73; font-size: .85rem; font-variant-numeric: tabular-nums; }
.minimal .gallery { margin: 1.2rem 0 0; }
.minimal .gallery h2 { margin: 0 0 .8rem; color: #6e6e73; font-size: .8rem; font-weight: 400; }
.minimal #gallery-items { display: flex; gap: .9rem; overflow-x: auto; padding-bottom: .4rem; }
.minimal .thumb { flex: 0 0 auto; width: 120px; margin: 0; }
.minimal .thumb canvas { display: block; width: 120px; height: 120px; border-radius: 16px; background: #f5f5f7; }
.minimal .thumb figcaption { margin-top: .35rem; color: #6e6e73; font-size: .7rem; text-align: center; }
/* Wide screens: the pictures stand in a column to the right of the page. */
@media (min-width: 1120px) {
  .minimal:not(.wide) .gallery { position: fixed; top: 84px; right: calc((100vw - 640px) / 2 - 204px); width: 160px; max-height: calc(100vh - 110px);
    margin: 0; overflow-y: auto; }
  .minimal:not(.wide) #gallery-items { flex-direction: column; overflow: visible; }
  .minimal:not(.wide) .thumb, .minimal:not(.wide) .thumb canvas { width: 160px; }
  .minimal:not(.wide) .thumb canvas { height: 160px; }
}

.minimal .project { padding: 1.2rem 0 .6rem; border-top: 1px solid #e8e8ed; }
.minimal .campaign-line { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; margin-bottom: .8rem; font-size: .95rem; }
.minimal .campaign-line .tally { color: #6e6e73; font-variant-numeric: tabular-nums; }
.minimal .campaign-line progress { grid-column: 1 / -1; }
.minimal .quiet-note { margin: .5rem 0 0; color: #6e6e73; font-size: .85rem; line-height: 1.5; }

.minimal details.fold { border-top: 1px solid #e8e8ed; }
.minimal details.fold > summary { padding: .8rem 0; font-size: .95rem; cursor: pointer; list-style: none; }
.minimal details.fold > summary::-webkit-details-marker { display: none; }
.minimal details.fold > summary::after { content: "+"; float: right; color: #a1a1a6; }
.minimal details.fold[open] > summary::after { content: "–"; }
.minimal details.fold[open] { padding-bottom: 1.4rem; }
.minimal details.fold label { display: grid; gap: .4rem; margin-bottom: 1rem; color: #6e6e73; font-size: .85rem; font-weight: 400; }
.minimal details.fold label.check { display: flex; align-items: center; gap: .6rem; color: #1d1d1f; font-size: .95rem; }
.minimal details.fold input:not([type]), .minimal details.fold select { border: 1px solid #d2d2d7; border-radius: 10px; padding: .7rem .8rem; color: #1d1d1f; }
.minimal details.fold input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--primary); }
.minimal .steps { margin: 0 0 1.2rem; padding: 0; list-style: none; }
.minimal .steps li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .55rem 0; font-size: .9rem; color: #a1a1a6; }
.minimal .steps li strong { font-weight: 400; }
.minimal .steps li small { color: #a1a1a6; font-size: .8rem; text-align: right; }
.minimal .steps li[data-state="active"], .minimal .steps li[data-state="done"] { color: #1d1d1f; }
.minimal .steps li[data-state="active"] strong::before { content: "● "; color: var(--primary); }
.minimal .steps li[data-state="done"] strong::before { content: "✓ "; color: var(--success); }
.minimal .steps li[data-state="error"] { color: var(--danger); }
.minimal .steps .meter { grid-column: 1 / -1; display: flex; align-items: center; gap: .6rem; }
.minimal .steps .meter small { min-width: 3em; }
.minimal .facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem 1rem; margin: 0 0 1.2rem; }
.minimal .facts dt { color: #6e6e73; font-size: .75rem; } .minimal .facts dd { margin: .15rem 0 0; font-size: .9rem; }
.minimal table { width: 100%; border-collapse: collapse; font: .8rem Roboto, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.minimal th { color: #6e6e73; font-weight: 400; text-align: right; padding: .4rem .3rem; border-bottom: 1px solid #e8e8ed; }
.minimal td { text-align: right; padding: .4rem .3rem; border-bottom: 1px solid #f5f5f7; }
.minimal th:first-child, .minimal td:first-child { text-align: left; }
.minimal tr.empty td { text-align: left; color: #a1a1a6; }
.minimal details.log { margin-top: 1rem; }
.minimal details.log summary { color: #6e6e73; font-size: .85rem; cursor: pointer; }
.minimal details.log pre { max-height: 240px; overflow: auto; padding: .8rem; border-radius: 10px; background: #f5f5f7; font: .72rem/1.5 "Roboto Mono", monospace; white-space: pre-wrap; }

.minimal footer { display: block; width: auto; max-width: 640px; margin: 3rem auto 0; padding: 0 24px 2.4rem; }
.minimal footer p { margin: 0; padding-top: 1.4rem; border-top: 1px solid #e8e8ed; color: #a1a1a6; font-size: .75rem; line-height: 1.6; }
@media (max-width: 480px) { .minimal .hero { padding-top: 6vh; } .minimal .figures strong { font-size: 1.6rem; } }

/*
 * The coordinator's pages (progress, account, contributor, structure, admin)
 * in the same spare style, in a wider column for their tables: no boxes or
 * dark bars, sections separated by hairlines, numbers set large and quiet.
 */
.minimal.wide .topbar, .minimal.wide main, .minimal.wide footer { max-width: 1000px; }
.minimal .topbar .wordmark { color: #1d1d1f; text-decoration: none; }
.minimal .topbar nav a[aria-current] { color: #1d1d1f; }
.minimal.wide main { padding-bottom: 1rem; }
.minimal.wide .stack, .minimal.wide .results, .minimal.wide .workspace { margin-top: 0; padding-top: 0; }
.minimal.wide .workspace, .minimal.wide .result-grid, .minimal.wide .two-up { gap: 0 3rem; }
.minimal.wide .panel, .minimal.wide .result-card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.minimal.wide .panel-body, .minimal.wide .form { padding: 0; }
.minimal.wide .panel-heading, .minimal.wide .section-heading { min-height: 0; padding: 2.6rem 0 .9rem; color: #1d1d1f; background: none;
  border-top: 1px solid #e8e8ed; }
.minimal.wide main > :first-child .panel-heading:first-child, .minimal.wide main > .stack:first-child > :first-child .panel-heading,
.minimal.wide main > .workspace:first-child .panel-heading { border-top: 0; padding-top: 1.2rem; }
.minimal.wide .panel-heading h2, .minimal.wide .section-heading h2 { margin: 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -.025em; }
.minimal.wide .step { display: none; }
.minimal.wide .count { color: #6e6e73; font: .85rem Roboto, Arial, sans-serif; letter-spacing: 0; }
.minimal.wide .card-title { padding: 1.6rem 0 .3rem; border: 0; }
.minimal.wide .card-title h3 { margin: 0; font-size: 1rem; font-weight: 500; }
.minimal.wide .card-title small { color: #6e6e73; font: .8rem Roboto, Arial, sans-serif; }
.minimal.wide .lead { color: #6e6e73; font-size: 1.05rem; line-height: 1.55; }
.minimal.wide .hint { color: #6e6e73; font-size: .8rem; }
.minimal.wide .score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.6rem 1rem; margin: .6rem 0 0;
  border: 0; background: none; box-shadow: none !important; }
.minimal.wide .score-grid article { padding: 0; border: 0; background: none; }
.minimal.wide .score-grid span { color: #6e6e73; font-size: .8rem; }
.minimal.wide .score-grid strong { display: block; margin: .2rem 0; font: 500 1.9rem Roboto, Arial, sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.minimal.wide .score-grid small { color: #a1a1a6; font-size: .75rem; }
.minimal.wide .campaign { padding: 1rem 0; border-bottom: 1px solid #f0f0f3; }
.minimal.wide .campaign-head { font-size: .95rem; }
.minimal.wide .campaign-head > span, .minimal.wide .campaign-head strong span { color: #6e6e73; font: inherit; font-variant-numeric: tabular-nums; }
.minimal.wide .campaign p { color: #6e6e73; font-size: .8rem; }
.minimal.wide .table-wrap { margin-top: .6rem; }
.minimal.wide td a, .minimal.wide .lead a, .minimal.wide .reference a { color: var(--primary); text-decoration: none; }
.minimal.wide .primary, .minimal.wide .secondary { width: auto; min-width: 0; gap: .6rem; padding: .75rem 1.4rem; border-radius: 980px;
  text-transform: none; letter-spacing: 0; font-weight: 500; box-shadow: none; }
.minimal.wide .primary span[aria-hidden] { display: none; }
.minimal.wide .quiet, .minimal.wide .quiet.inverse { padding: .45rem 1rem; border: 1px solid #d2d2d7; border-radius: 980px; color: #1d1d1f; background: #fff;
  text-transform: none; font-size: .8rem; letter-spacing: 0; }
.minimal.wide .quiet:hover { border-color: #1d1d1f; color: #1d1d1f; }
.minimal.wide .submit-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.minimal.wide label { color: #6e6e73; font-size: .85rem; font-weight: 400; }
.minimal.wide label.inline { color: #1d1d1f; font-size: .95rem; }
.minimal.wide input:not([type="checkbox"]), .minimal.wide select, .minimal.wide textarea { border: 1px solid #d2d2d7; border-radius: 10px; padding: .7rem .8rem; }
.minimal.wide input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--primary); }
.minimal.wide .chip { border-radius: 980px; font: .7rem Roboto, Arial, sans-serif; text-transform: none; }
.minimal.wide .claim { border: 0; border-radius: 12px; background: #f5f5f7; color: #1d1d1f; font-size: .9rem; }
.minimal.wide .reference { margin-top: 2.6rem; padding: 2.4rem 0 0; border-top: 1px solid #e8e8ed; background: none; box-shadow: none; }
.minimal.wide .reference h2 { margin: 0 0 .6rem; font-size: 1.6rem; font-weight: 600; letter-spacing: -.025em; }
.minimal.wide .reference p { color: #6e6e73; line-height: 1.6; }
.minimal.wide #viewer { border-radius: 16px; background: #f5f5f7; }
@media (max-width: 900px) { .minimal.wide .workspace, .minimal.wide .result-grid, .minimal.wide .two-up { grid-template-columns: 1fr; } }

/* Sign-in: a narrow column of plain, full-width choices. */
.minimal .signin { max-width: 380px; margin: 3rem auto 1rem; text-align: center; }
.minimal .signin h1 { margin: 0 0 .6rem; font-size: 2rem; font-weight: 600; letter-spacing: -.03em; }
.minimal .signin .lead { margin: 0 0 2rem; }
.minimal .provider { display: block; width: 100%; margin: 0 0 .7rem; padding: .85rem 1rem; border: 1px solid #d2d2d7; border-radius: 980px;
  color: #1d1d1f; background: #fff; font: 500 .95rem Roboto, Arial, sans-serif; text-align: center; text-decoration: none; cursor: pointer; }
.minimal .provider:hover { border-color: #1d1d1f; }
.minimal .primary-provider, .minimal .email-form .provider { border-color: var(--primary); color: #fff; background: var(--primary); }
.minimal .email-form input { width: 100%; margin: 0 0 .7rem; padding: .85rem 1rem; border: 1px solid #d2d2d7; border-radius: 980px; text-align: center; }
.minimal .signin .or { margin: 1rem 0; color: #a1a1a6; font-size: .8rem; }
.minimal .notice { margin: 1rem 0; padding: .8rem 1rem; border-radius: 12px; background: #f5f5f7; color: #1d1d1f; font-size: .9rem; }
.minimal .signin .fine { margin-top: 1.6rem; }

/* The progress page: one headline number, a pulse, a call to action, then pictures and people. */
.minimal .overview { padding: 4.5rem 0 3.5rem; text-align: center; }
.minimal .overview h1 { max-width: 16em; margin: 0 auto; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.minimal .overview > progress { display: block; max-width: 520px; margin: 1.8rem auto 0; }
.minimal .pulse { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 1rem 0 0; color: #6e6e73; font-size: .95rem; }
.minimal .campaign-list { max-width: 520px; margin: 2.2rem auto 0; text-align: left; }
.minimal .cta { margin-top: 2.6rem; }
.minimal .cta .primary { display: inline-flex; }
.minimal .cta .hint { margin-top: 1rem; }
.minimal .block { padding: 2.4rem 0 1rem; border-top: 1px solid #e8e8ed; }
.minimal .block h2 { margin: 0 0 1.2rem; font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; }
.minimal .block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.minimal .toggle { display: inline-flex; padding: 3px; border-radius: 980px; background: #f5f5f7; }
.minimal .toggle button { padding: .35rem .9rem; border: 0; border-radius: 980px; color: #6e6e73; background: none; font-size: .8rem; cursor: pointer; }
.minimal .toggle button[aria-pressed="true"] { color: #1d1d1f; background: #fff; box-shadow: 0 1px 3px #0000001f; }
.minimal .gallery-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.minimal a.thumb { display: block; width: 140px; color: #6e6e73; text-align: center; text-decoration: none; font-size: .72rem; }
.minimal a.thumb canvas { display: block; width: 140px; height: 140px; margin-bottom: .35rem; border-radius: 16px; background: #f5f5f7; }
.minimal a.thumb:hover canvas { box-shadow: inset 0 0 0 1px #d2d2d7; }
.minimal .about { max-width: 640px; margin: 1.6rem 0 0; }
.minimal .about p { color: #6e6e73; font-size: .9rem; line-height: 1.6; }
@media (max-width: 480px) { .minimal .gallery-row { gap: .6rem; } .minimal a.thumb, .minimal a.thumb canvas { width: calc(50vw - 30px); } .minimal a.thumb canvas { height: calc(50vw - 30px); } }
.minimal #board th:nth-child(2), .minimal #board td:nth-child(2) { text-align: left; }
.minimal #board tr.anonymous td { color: #6e6e73; }

/* The site's pages on top of the folding page while it folds (the page underneath keeps running). */
.minimal .panel-view { position: fixed; z-index: 50; inset: 0; display: flex; flex-direction: column; background: #fff; }
.minimal .panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 10px 24px;
  border-bottom: 1px solid #e8e8ed; background: #fbfbfd; font-size: .85rem; }
.minimal .panel-bar button { padding: .4rem .9rem; border: 1px solid #d2d2d7; border-radius: 980px; color: #1d1d1f; background: #fff; cursor: pointer; }
.minimal .panel-bar span { overflow: hidden; color: #6e6e73; text-overflow: ellipsis; white-space: nowrap; }
.minimal .panel-view iframe { flex: 1; width: 100%; border: 0; }
body.panel-open { overflow: hidden; }
/* A coordinator page shown inside the folding page's view: the view's bar replaces its own top bar and footer. */
body.embedded .topbar, body.embedded footer { display: none; }
body.embedded main { padding-top: 1rem; }
