/* Interface, October 2026.
   Paper and ink, one pixel typeface as the signature, colour only where it carries meaning.
   Loaded last; it owns type, surfaces, the home page, the calendar and the submit page. */

@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Doto"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/doto-latin.woff2") format("woff2"); }

:root {
  --paper: #ebe8e3;
  --surface: #f8f7f4;
  --ink: #1d1b3f;
  --ink-2: #3a3770;
  --muted: #6b6779;
  --line: #d9d4cc;
  --line-soft: #e6e2db;
  --ultra: #4e52cf;
  --verm: #e2553a;
  --lilac: #e9e7f7;
  --radius: 12px;
  --orange: var(--verm);
  --accent: var(--verm);
  --blue: var(--ultra);
  color: var(--ink);
  background: var(--paper);
  font-family: "Instrument Sans", "IBM Plex Sans", system-ui, sans-serif;
}

body, button, input, select, textarea { font-family: "Instrument Sans", "IBM Plex Sans", system-ui, sans-serif; }
h1, h2, h3, h4, .brand-name, .event-wordmark { font-family: "Instrument Sans", system-ui, sans-serif; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
body, .workspace, .topbar { background: var(--paper); color: var(--ink); }
a { color: var(--ink-2); }
.muted, .small-text.muted, .page-head p { color: var(--muted); }
::selection { background: var(--ink); color: #fff; }
:focus-visible { outline: 2px solid var(--ultra); outline-offset: 3px; }

/* ---------- Sidebar ---------- */
.sidebar { background: var(--paper); color: var(--ink); border-right: 1px solid var(--line); }
.brand { padding: 0 12px 30px; }
.brand .brand-name { display: block; font-family: "Doto", sans-serif; font-weight: 900; font-size: 33px; line-height: .9; letter-spacing: -0.04em; color: var(--ink); }
.brand > span:not(.brand-name), .brand i { color: var(--muted); font-style: normal; }
.sidebar .nav-label { color: var(--muted); font-size: .76rem; letter-spacing: 0; text-transform: none; }
.sidebar nav > a { color: var(--ink-2); border-radius: 8px; padding: 9px 12px; font-weight: 450; }
.sidebar nav > a:hover { background: #00000008; color: var(--ink); }
.sidebar nav > a.active { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.sidebar nav > a.active .nav-symbol { color: var(--verm); }
.sidebar .nav-symbol { color: var(--muted); }
.sidebar nav { scrollbar-color: #c6c0b7 transparent; }
@media (min-width: 761px) and (max-height: 960px) { .sidebar nav > a { padding-top: 7px; padding-bottom: 7px; } .brand { padding-bottom: 20px; } }
.organizer-link { color: var(--muted); border-color: var(--line); }
.event-mark p { color: var(--muted); }
.event-mark .techweek-logo { filter: brightness(0); opacity: .8; }

/* ---------- Top bar and page heads ---------- */
.topbar { border-color: var(--line); background: #ebe8e3eb; backdrop-filter: blur(8px); }
.breadcrumb, .edition { color: var(--muted); }
.breadcrumb b { color: var(--ink); font-weight: 500; }
.page-head { border-color: var(--line); padding-bottom: 24px; }
.page-head h1 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1; letter-spacing: -0.035em; font-weight: 500; color: var(--ink); }
.page-head p { font-size: 1rem; max-width: 60ch; }

/* ---------- Controls ---------- */
.button { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-weight: 500; }
.button:hover { border-color: var(--ink); background: #fff; }
.button.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.button.primary:hover { background: #000; border-color: #000; }
.button.large { padding: 15px 22px; font-size: 1.02rem; }
.filter-button, .day-tab { border-radius: 8px; }
.filter-button.active, .day-tab.active, .lab-layout .day-tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-button:hover, .day-tab:hover { border-color: var(--ink); }
input, textarea, select { background: #fff; border-color: #cdc7be; border-radius: 8px; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline-color: var(--ultra); border-color: var(--ultra); }
.code-input { font-family: "Doto", monospace; font-weight: 900; font-size: 2rem; letter-spacing: .3em; text-align: center; padding: 10px; }
.text-link { color: var(--ink-2); }
.tag { background: var(--lilac); color: var(--ink-2); border-radius: 6px; }
.tag.orange { background: #f8e2db; color: #9a3420; }
.notice { background: var(--lilac); border-color: #d4d1ee; color: var(--ink-2); border-radius: 10px; }
.notice.warning, .kit-pending { background: #f8e2db; border-color: #efc2b5; color: #86301f; }

.panel, .resource-card, .hardware-dossier, .hardware-preview, .help-card, .next-step, .event-day,
.venue-arrival, .venue-plan, .venue-detail, .venue-bottom .panel, .arrival-address, .guide-panel, .judges-demo {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none;
}
.resource-card:hover, .hardware-preview:hover { border-color: #b9b2a8; }

/* ---------- Home: the wordmark floating over the film, edge to edge ---------- */
body[data-route="now"] .workspace { padding-left: 0; padding-right: 0; }
body[data-route="now"] main { padding: 0 0 48px; max-width: none; }
body[data-route="now"] .footer { padding-left: 42px; padding-right: 42px; }
.home {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100vh - 77px); margin: 0 0 28px;
  display: grid; grid-template-rows: 1fr auto; background: #111;
}
.home-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: grayscale(1) contrast(1.05) brightness(.6); }
.home::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#0000 60%, #0009); }
.home-mark { align-self: center; justify-self: center; text-align: center; color: #fff; padding: 40px 20px 0; }
.home-mark h1 { margin: 0; color: #fff; font-family: "Doto", sans-serif; font-weight: 900; font-size: clamp(4.5rem, 15vw, 14rem); line-height: .82; letter-spacing: -0.05em; }
.home-mark p { margin: 20px 0 0; font-size: clamp(1rem, 1.6vw, 1.3rem); color: #ffffffd9; letter-spacing: .01em; }
.home-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; padding: 24px 42px; color: #ffffffc4; font-size: .92rem; }
.home-film { margin-left: auto; background: none; border: 1px solid #ffffff73; color: #fff; border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; }
.home-film:hover { background: #ffffff1f; }
.home-below { padding: 0 42px; max-width: 1500px; margin: 0 auto; }

.quicknav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.quicknav a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-decoration: none; color: var(--ink); border-left: 1px solid var(--line); }
.quicknav a:first-child { border-left: 0; }
.quicknav a:hover { background: #fff; }
.quicknav strong { font-weight: 500; font-size: 1rem; }
.quicknav span { color: var(--muted); font-size: .82rem; line-height: 1.35; }

.sponsor-wall { margin: 52px 0 8px; }
.sponsor-wall h2 { font-size: 1.15rem; margin: 0 0 16px; color: var(--muted); font-weight: 450; }
.sponsor-wall ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.sponsor-wall li { display: grid; place-items: center; min-height: 88px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sponsor-wall li img { width: 120px; height: 32px; max-width: 100%; object-fit: contain; }
.sponsor-wall li:has(.sponsor-logo--dark) { background: var(--ink); }
.sponsor-wall li:has(.sponsor-logo--symbol) img { height: 38px; }
.sponsor-wall .sponsor-logo { background: none; padding: 0; width: auto; max-width: 100%; justify-content: center; }
.sponsor-wall .sponsor-name { font-weight: 600; letter-spacing: -0.02em; color: var(--ink-2); }

/* ---------- Event calendar ---------- */
.cal-toolbar { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; margin: 4px 0 14px; }
.cal-days { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.cal-days button { border: 0; background: none; padding: 7px 14px; font: inherit; font-size: .88rem; line-height: 1.3; color: var(--ink-2); cursor: pointer; border-left: 1px solid var(--line); }
.cal-days button:first-child { border-left: 0; }
.cal-days button.active { background: var(--ink); color: #fff; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.cal-key::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.cal-key--official::before { background: linear-gradient(90deg, #cfe6ff 33%, #ffd3ad 33% 66%, #ffc8e6 66%); }
.cal-key--hl::before { background: url("/assets/references/blur/ring.jpg") center/cover; }
.cal-key--booking::before { background: var(--ultra); }
.cal-key--block::before { background: var(--ink); }
.cal-hint { margin-left: auto; color: var(--muted); font-size: .82rem; }
.cal-toolbar .button.small { margin-left: auto; }

.cal { --hour: 52px; --gutter: 58px; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cal-head { display: grid; grid-template-columns: var(--gutter) repeat(var(--cols, 2), minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: #fff; }
.cal[data-days="1"] { --cols: 1; }
.cal[data-days="2"] { --cols: 2; }
.cal-tz { align-self: end; padding: 0 8px 8px; color: var(--muted); font-size: .68rem; text-align: right; }
.cal-dayhead { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px 10px; border-left: 1px solid var(--line-soft); }
.cal-dayhead span { color: var(--muted); font-size: .8rem; }
.cal-dayhead b { font-family: "Doto", sans-serif; font-weight: 900; font-size: 2.1rem; line-height: 1; color: var(--ink); }
.cal-scroll { max-height: min(70vh, 720px); overflow-y: auto; overscroll-behavior: contain; }
.cal-body { display: grid; grid-template-columns: var(--gutter) repeat(var(--cols, 2), minmax(0, 1fr)); position: relative; }
.cal-hour { height: var(--hour); position: relative; }
.cal-hour span { position: absolute; top: -7px; right: 8px; font-size: .68rem; color: var(--muted); background: #fff; padding: 0 2px; }
.cal-hour:first-child span { display: none; }
.cal-col { position: relative; border-left: 1px solid var(--line-soft); touch-action: pan-y; }
.cal-col[data-editable] { cursor: crosshair; }
.cal-slot { height: var(--hour); border-top: 1px solid var(--line-soft); background-image: linear-gradient(var(--line-soft) 1px, transparent 1px); background-size: 100% calc(var(--hour) / 2); background-position: 0 calc(var(--hour) / 2); background-repeat: no-repeat; }
.cal-slot:first-child { border-top: 0; }
.cal-ev {
  position: absolute; display: flex; flex-direction: column; gap: 1px; overflow: hidden;
  padding: 4px 8px; border-radius: 6px; border: 0; text-align: left; font: inherit; font-size: .78rem; line-height: 1.3;
  text-decoration: none; cursor: pointer; z-index: 2;
}
.cal-ev strong { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev span, .cal-ev em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; opacity: .82; }
.cal-ev.is-short { flex-direction: row; gap: 6px; align-items: center; padding-top: 1px; padding-bottom: 1px; }
.cal-ev.is-short em { display: none; }
/* Sessions: clean, vibrant flat colour. Only the opening and the demo get a gradient. */
.cal-ev--official { box-shadow: none; color: var(--ink); background: #e3e1fb; }
.cal-ev--official:hover { outline: 1px solid #1d1b3f40; }
.cal-ev--c-blue { background: #cfe6ff; }
.cal-ev--c-green { background: #c9f2b9; }
.cal-ev--c-orange { background: #ffd3ad; }
.cal-ev--c-pink { background: #ffc8e6; }
.cal-ev--c-coral { background: #ffbfb3; }
.cal-ev--c-yellow { background: #fff0a3; }
.cal-ev--hl { background-size: cover; background-position: center; color: var(--ink); }
.cal-ev--hl strong { font-weight: 600; }
.cal-ev--hl-figure { background-image: linear-gradient(#ffffff40, #ffffff40), url("/assets/references/blur/figure.jpg"); }
.cal-ev--hl-ring { background-image: linear-gradient(#ffffff59, #ffffff59), url("/assets/references/blur/ring.jpg"); }
.cal-ev--booking { background: var(--ultra); color: #fff; z-index: 3; }
.cal-ev--booking.is-pending { background: #7c80dd; outline: 1px dashed #ffffffb3; outline-offset: -3px; }
.cal-ev--block { background: var(--ink); color: #fff; z-index: 4; cursor: grab; user-select: none; touch-action: none; }
.cal-ev--block:active { cursor: grabbing; }
.cal-ev--ghost { opacity: .75; pointer-events: none; }
.cal-resize { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; cursor: ns-resize; }
.cal-resize::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 18px; height: 2px; margin-left: -9px; border-radius: 2px; background: #ffffff80; }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--verm); z-index: 6; pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--verm); }

/* ---------- Submit page ---------- */
.submit-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px; border-radius: 14px; background: var(--ink); color: #fff; margin-bottom: 18px; }
.submit-hero h2 { color: #fff; margin: 0 0 6px; font-size: 1.6rem; }
.submit-hero p { margin: 0; color: #ffffffb8; }
.submit-hero .button.primary { background: #fff; color: var(--ink); border-color: #fff; }
.submit-pending { display: flex; flex-direction: column; gap: 4px; max-width: 34ch; padding: 14px 16px; border: 1px dashed #ffffff66; border-radius: 10px; }
.submit-pending span { color: #ffffffb3; font-size: .88rem; }
.submit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.submit-block { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.submit-block h2, .rubric h2 { margin: 0 0 16px; font-size: 1.35rem; }
.field-list { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: 10px; }
.field-list li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.field-list strong { font-weight: 500; }
.field-list span { display: block; color: var(--muted); font-size: .88rem; }
.consent { margin: 22px 0 0; padding: 16px 18px; border-radius: 10px; background: var(--lilac); }
.consent span { color: var(--muted); font-size: .82rem; }
.consent p { margin: 6px 0 0; color: var(--ink); line-height: 1.5; }
.handwritten-note { margin: 18px 0 0; color: var(--ink-2); line-height: 1.6; font-size: .92rem; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tips li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.tips li:first-child { border-top: 0; padding-top: 0; }
.tips strong { font-weight: 500; }
.tips span { color: var(--ink-2); line-height: 1.55; }
.rubric { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.rubric-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.rubric-head p { margin: 0; color: var(--muted); max-width: 70ch; }
.rubric-list { list-style: none; margin: 0; padding: 0; counter-reset: crit; }
.rubric-list > li { counter-increment: crit; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.rubric-list h3 { margin: 0 0 6px; font-size: 1.1rem; }
.rubric-list h3::before { content: counter(crit); font-family: "Doto", sans-serif; font-weight: 900; margin-right: 10px; color: var(--muted); }
.rubric-list p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.rubric-list dl { margin: 0; display: grid; gap: 6px; }
.rubric-list dl div { display: grid; grid-template-columns: 2rem 1fr; gap: 8px; align-items: baseline; }
.rubric-list dt { font-family: "Doto", sans-serif; font-weight: 900; font-size: 1.15rem; color: var(--ink); }
.rubric-list dd { margin: 0; color: var(--ink-2); }
.rubric-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 20px; }
.rubric-notes h3 { margin: 0 0 8px; font-size: 1rem; }
.rubric-notes p, .rubric-notes li { color: var(--ink-2); line-height: 1.55; font-size: .92rem; }
.rubric-notes p { margin: 0 0 8px; }
.rubric-notes ul { margin: 0; padding-left: 1.1em; }
.rubric-plain { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.rubric-plain summary { cursor: pointer; color: var(--ink-2); }
.rubric-plain pre { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; font-size: .82rem; line-height: 1.55; max-height: 360px; overflow: auto; }

/* ---------- People ---------- */
.people-section { margin-top: 44px; }
.people-section > header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 8px; }
.people-section > header h2 { margin: 0; font-size: 1.4rem; }
.people-section > header span { color: var(--muted); font-size: .85rem; }
.people-list { list-style: none; margin: 0; padding: 0; }
.person { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.person-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.person-mark--logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.person-mark--logo img { object-fit: contain; border-radius: 0; width: 70%; height: 70%; }
.person-mark--dark { background: var(--ink); }
.person-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: "Doto", sans-serif; font-weight: 900; font-size: 1.3rem; color: #fff; background: var(--ink); }
.person h3 { margin: 0; font-size: 1.1rem; }
.person p { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.person-status { font-size: .8rem; border-radius: 6px; padding: 5px 10px; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.person-status--confirmed { border-color: var(--ink); color: var(--ink); }
.judge-portrait { border-radius: 50%; }
.judge-portrait--logo { display: grid; place-items: center; width: 160px; height: 160px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.judge-portrait--logo img { width: 68%; height: 68%; object-fit: contain; }
.judge-portrait--dark { background: var(--ink); }
.judge-portrait--generated { display: grid; place-items: center; font-family: "Doto", sans-serif; font-weight: 900; font-size: 3rem; color: #fff; background: var(--ink); }
.judge-focus { color: var(--muted); }
.judge-role span, .judges-roster-head span, .judges-roster-note { color: var(--muted); }
.judges-demo { background: var(--ink); border-color: var(--ink); color: #fff; }
.judges-demo h2, .judges-demo li, .judges-demo .judge-guide-link { color: #fff; }
.judges-demo p, .judges-demo .judge-day, .judges-demo li span { color: #ffffffb3; }
.judges-demo .judge-guide-link { border-color: #ffffff33; }

/* ---------- Hardware, resources, projects, help ---------- */
.hardware-hero, .hardware-preview-image, .hardware-photo, .venue-plan::before, .photo-lightbox img { background: #efece7; }
.hardware-intro { background: transparent; }
.lab-layout .hardware-option.selected, .hardware-option.selected { background: #fff; border-left-color: var(--ink); box-shadow: inset 3px 0 var(--ink); }
.lab-layout .hardware-option:hover { background: #ffffffa6; }
.hardware-tabs button.active { color: var(--ink); border-color: var(--ink); }
.hardware-tabs button.active span { background: var(--ink); color: #fff; }
.slot, .time-slot { background: #fff; border-color: var(--line); color: var(--ink); border-radius: 8px; }
.slot:hover:not(:disabled) { background: var(--lilac); border-color: var(--ultra); }
.resource-meta, .hardware-track, .kicker { color: var(--muted); }
.project-art { border-radius: 14px; background: var(--ink); }
.project-art .tag { background: #ffffff26; color: #fff; border-color: #ffffff55; }
.project-art a, .project-art summary { color: #fff; }
.help-symbol { color: var(--verm); }
.help-card--contact { border-top: 0; background: var(--ink); border-color: var(--ink); }
.help-card--contact h2, .help-card--contact .kicker { color: #fff; }
.help-card--contact p, .help-card--contact small { color: #ffffffb8; }
.help-card--contact .button.primary { background: #fff; color: var(--ink); border-color: #fff; }
.footer { border-color: var(--line); color: var(--muted); }
.loading-mark { font-family: "Doto", sans-serif; font-weight: 900; }

@media (max-width: 1100px) {
  .quicknav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quicknav a:nth-child(4) { border-left: 0; }
  .quicknav a:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .submit-grid, .rubric-notes { grid-template-columns: 1fr; }
  .rubric-list > li { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 700px) {
  .home { min-height: 64vh; }
  .home-meta { padding: 16px; }
  .home-film { margin-left: 0; }
  .quicknav { grid-template-columns: 1fr 1fr; }
  .quicknav a { border-left: 0; border-top: 1px solid var(--line); }
  .quicknav a:nth-child(-n+2) { border-top: 0; }
  .quicknav a:nth-child(even) { border-left: 1px solid var(--line); }
  .cal { --gutter: 44px; --hour: 48px; }
  .cal-hint { margin-left: 0; }
  .tips li { grid-template-columns: 1fr; gap: 4px; }
  .person { grid-template-columns: 48px minmax(0, 1fr); }
  .person-mark { width: 48px; height: 48px; font-size: 1.1rem; }
  .person-status { grid-column: 2; justify-self: start; }
  .sponsor-wall ul { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Hardware lab: overnight loans ---------- */
.overnight { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) auto; gap: 24px; align-items: center; margin: 28px 0 0; padding: 22px 24px; border-radius: 12px; color: #fff; background: var(--ink); }
.overnight h2 { color: #fff; margin: 0 0 6px; font-size: 1.15rem; }
.overnight p { margin: 0; color: #ffffffc7; line-height: 1.5; font-size: .92rem; }
.overnight ul { margin: 0; padding-left: 1.1em; color: #fff; font-size: .9rem; line-height: 1.5; display: grid; gap: 4px; }
.overnight .button { background: #fff; color: var(--ink); border-color: #fff; white-space: nowrap; }

/* ---------- Venue ---------- */
.venue-page .page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.venue-section-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 30px; }
.venue-section-nav a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; color: var(--ink-2); font-size: .9rem; }
.venue-section-nav a:hover { border-color: var(--ink); }
.venue-block { margin: 0 0 48px; scroll-margin-top: 96px; }
.venue-block > h2, .venue-room-heading h2 { margin: 0 0 18px; font-size: 1.6rem; }
.arrival-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 18px; }
.arrival-video { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #111; object-fit: cover; display: block; }
.arrival-video--pending { display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: #fff;
  background: linear-gradient(#1d1b3f8c, #1d1b3f8c), url("/assets/references/blur/river.jpg") center/cover; }
.arrival-video--pending strong { font-weight: 500; font-size: 1.15rem; }
.arrival-video--pending span:not(.arrival-play) { color: #ffffffc4; font-size: .9rem; }
.arrival-play { width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid #ffffffb3; margin-bottom: 8px; position: relative; }
.arrival-play::after { content: ""; position: absolute; left: 23px; top: 18px; border-left: 16px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.arrival-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.arrival-card strong { font-size: 1.1rem; font-weight: 500; }
.arrival-card address { font-style: normal; color: var(--ink-2); line-height: 1.55; }
.arrival-card .arrival-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.arrival-card p { margin: auto 0 0; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.arrival-copy-status { color: var(--muted); font-size: .82rem; min-height: 1em; }
.arrival-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.arrival-steps li { display: flex; flex-direction: column; }
.arrival-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #ddd; }
.arrival-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arrival-photo--pending { display: grid; place-items: center; background: linear-gradient(#ffffff6b, #ffffff6b), url("/assets/references/blur/pine.jpg") center/cover; }
.arrival-steps li:nth-child(2) .arrival-photo--pending { background-image: linear-gradient(#ffffff6b, #ffffff6b), url("/assets/references/blur/figure.jpg"); }
.arrival-steps li:nth-child(3) .arrival-photo--pending { background-image: linear-gradient(#ffffff6b, #ffffff6b), url("/assets/references/blur/ring.jpg"); }
.arrival-photo--pending span { color: var(--ink-2); font-size: .85rem; }
.arrival-photo b { position: absolute; left: 12px; top: 10px; font-family: "Doto", sans-serif; font-weight: 900; font-size: 2rem; line-height: 1; color: #fff; text-shadow: 0 1px 12px #0006; }
.arrival-steps h3 { margin: 14px 0 6px; font-size: 1.05rem; font-weight: 500; }
.arrival-steps p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: .92rem; }
.venue-room-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.venue-room-heading h2 { margin-bottom: 14px; }
.venue-status { color: var(--muted); font-size: .85rem; }
.venue-status::before { content: none; }
.venue-plan { overflow: hidden; }
.venue-toolbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.venue-caption { background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); }
.venue-detail-top { display: flex; align-items: center; gap: 12px; margin: 22px 0 12px; }
.venue-detail-top label { color: var(--muted); font-size: .9rem; }
.venue-detail { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.venue-detail-title { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; background: #f1eee9; }
.venue-detail-title h2 { margin: 0; font-size: 1.5rem; line-height: 1.1; }
.venue-detail-title p { margin: 0; color: var(--muted); font-size: .9rem; }
.venue-detail-title .text-link { margin-top: auto; }
.venue-detail-body { padding: 24px; }
.venue-detail-purpose { margin: 0 0 18px; color: var(--ink); line-height: 1.55; }
.venue-detail-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.venue-detail-columns h3 { margin: 0 0 6px; font-size: .9rem; font-weight: 600; }
.venue-detail-columns p { margin: 0; color: var(--ink-2); font-size: .88rem; line-height: 1.55; }
.venue-care .care-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px 40px; padding: 28px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.care-lead { margin: 0; font-size: 1.12rem; line-height: 1.55; color: var(--ink); }
.care-list { list-style: none; margin: 0; padding: 0; grid-row: span 2; }
.care-list li { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.care-list li:first-child { border-top: 0; padding-top: 0; }
.care-list strong { font-weight: 500; }
.care-list span { color: var(--ink-2); line-height: 1.5; font-size: .92rem; }
.care-cctv { margin: 0; align-self: end; padding: 14px 16px; border-radius: 10px; background: #f8e2db; color: #7d2a1b; line-height: 1.5; font-size: .92rem; }

@media (max-width: 900px) {
  .overnight { grid-template-columns: 1fr; }
  .arrival-top, .venue-care .care-body, .venue-detail { grid-template-columns: 1fr; }
  .arrival-steps { grid-template-columns: 1fr; }
  .venue-detail-title { border-right: 0; border-bottom: 1px solid var(--line); }
  .venue-detail-columns { grid-template-columns: 1fr; }
  .care-list { grid-row: auto; }
}
@media (max-width: 700px) {
  body[data-route="now"] .footer { padding-left: 18px; padding-right: 18px; }
  .home { min-height: calc(100svh - 64px); }
  .home-meta { padding: 18px; }
  .home-below { padding: 0 18px; }
}
.care-callout { padding: 18px 20px; border-radius: 10px; background: #f8e2db; color: #5e2216; margin: 6px 0 18px; }
.care-callout p { margin: 0 0 10px; line-height: 1.55; }
.care-callout p:last-child { margin: 10px 0 0; }
.care-callout ul { margin: 0; padding-left: 1.1em; line-height: 1.6; }
/* Retire the old step connectors and padding from field-guide.css */
.arrival-steps { padding: 0; border-bottom: 0; gap: 18px; }
.arrival-steps li { padding-left: 0; }
.arrival-steps li:not(:last-child)::after { content: none; }
.arrival-steps p { max-width: none; font-size: .92rem; line-height: 1.55; color: var(--ink-2); }
.arrival-steps h3 { font-weight: 500; letter-spacing: -0.01em; }
.arrival-top { align-items: stretch; }
.person-mark.person-mark--logo { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.person-mark.person-mark--logo.person-mark--dark { background: var(--ink); box-shadow: none; }
.person-mark.person-mark--logo img { width: 74%; height: 74%; object-fit: contain; border-radius: 0; }

/* ---------- Tracks: image on top, rows aligned across cards with subgrid ---------- */
.home-tracks { margin: 40px 0 0; }
.home-tracks .section-head h2 { margin: 0; font-size: 1.4rem; }
.tracks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 14px; }
.track { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; scroll-margin-top: 96px; }
.tracks--compact .track { grid-row: span 4; }
.track > :not(.track-art) { margin-left: 18px; margin-right: 18px; }
.track-art { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.track-art--neural { background-image: url("/assets/references/tracks/neural.jpg"); }
.track-art--voice { background-image: url("/assets/references/tracks/voice.jpg"); }
.track-art--touch { background-image: url("/assets/references/tracks/touch.jpg"); }
.track-art--vision { background-image: url("/assets/references/tracks/vision.jpg"); }
.track-art--open { background-image: url("/assets/references/tracks/open.jpg"); }
.track h3 { margin-top: 16px; margin-bottom: 6px; font-family: "Doto", sans-serif; font-weight: 900; font-size: 1.9rem; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.track .track-line { margin-top: 0; margin-bottom: 10px; color: var(--ink); font-weight: 500; line-height: 1.4; font-size: .98rem; }
.track .track-body { margin-top: 0; margin-bottom: 10px; color: var(--ink-2); line-height: 1.5; font-size: .9rem; }
.track .track-ideas { margin-top: 0; margin-bottom: 14px; padding-left: 1.05em; color: var(--ink-2); font-size: .88rem; line-height: 1.5; display: grid; gap: 4px; align-content: start; }
.track-sponsors { align-self: stretch; padding: 14px 0 18px; border-top: 1px solid var(--line); }
.track-sponsors > span { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 10px; }
.track-sponsors ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.track-sponsor { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--ink-2); }
.track-sponsor img { height: 20px; width: auto; max-width: 96px; object-fit: contain; }
.track-sponsor--symbol img { height: 22px; max-width: 26px; }
.track-sponsor--text { font-weight: 600; }
@media (max-width: 1300px) { .tracks { grid-template-columns: repeat(3, minmax(0, 1fr)); } .track { margin-bottom: 14px; } }
@media (max-width: 700px) { .tracks { grid-template-columns: 1fr; } .track { grid-row: auto; grid-template-rows: auto; } }

/* ---------- Q&A ---------- */
.guide-tabs { margin-bottom: 18px; }
.qa { display: grid; gap: 14px; max-width: 900px; }
.qa-group { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 24px 12px; }
.qa-group h2 { margin: 16px 0 6px; font-size: 1.15rem; }
.qa-group details { border-top: 1px solid var(--line-soft); }
.qa-group details:first-of-type { border-top: 0; }
.qa-group summary { cursor: pointer; padding: 13px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 450; }
.qa-group summary::-webkit-details-marker { display: none; }
.qa-group summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.qa-group details[open] summary::after { content: "−"; }
.qa-group details p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.6; max-width: 70ch; }
.qa-contact { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px; border-radius: 12px; color: #fff;
  background: linear-gradient(#1d1b3fb3, #1d1b3fd9), url("/assets/references/blur/emergence.jpg") center/cover; }
.qa-contact h2 { margin: 0 0 6px; color: #fff; font-size: 1.25rem; }
.qa-contact p { margin: 0; color: #ffffffcc; max-width: 52ch; line-height: 1.5; }
.qa-contact .button.primary { background: #fff; color: var(--ink); border-color: #fff; }
.arrival-wifi { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 0; padding: 12px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line-soft); }
.arrival-wifi dt { color: var(--muted); font-size: .76rem; }
.arrival-wifi dd { margin: 2px 0 0; font-size: .92rem; }
.quicknav { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1300px) { .tracks { grid-template-columns: repeat(3, minmax(0, 1fr)); } .quicknav { grid-template-columns: repeat(4, minmax(0, 1fr)); } .quicknav a:nth-child(5) { border-left: 0; } .quicknav a:nth-child(n+5) { border-top: 1px solid var(--line); } }
@media (max-width: 700px) { .tracks { grid-template-columns: 1fr; } .track { min-height: 0 !important; } }

/* ---------- Reference projects: built with sponsors ---------- */
.project-sets { margin: 0 0 16px; }
.sponsor-projects { display: grid; gap: 34px; }
.sp-group > header { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.sp-group > header h2 { margin: 0; font-size: 1.2rem; }
.sp-group > header .sponsor-logo { width: 96px; height: 28px; }
.sp-group > header .sponsor-logo--dark { padding: 4px 8px; border-radius: 6px; }
.sp-group > header .text-link { margin-left: auto; font-size: .88rem; }
.sp-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sp-card { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.sp-art { display: block; min-height: 220px; background: linear-gradient(#ffffff59, #ffffff59), url("/assets/references/blur/figure.jpg") center/cover; }
.sp-list .sp-card:nth-child(2) .sp-art { background-image: linear-gradient(#ffffff59, #ffffff59), url("/assets/references/blur/ring.jpg"); }
.sp-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-fallback { display: grid; place-items: center; width: 100%; height: 100%; min-height: 220px; }
.sp-fallback .sponsor-logo { width: 60%; height: 48px; justify-content: center; background: #ffffffd9; border-radius: 10px; padding: 8px 12px; }
.sp-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 7px; }
.sp-tags { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .78rem; }
.sp-body h3 { margin: 2px 0 0; font-size: 1.12rem; line-height: 1.25; }
.sp-body h3 a { color: var(--ink); text-decoration: none; }
.sp-body h3 a:hover { text-decoration: underline; }
.sp-who { margin: 0; color: var(--muted); font-size: .84rem; }
.sp-body p { margin: 0; color: var(--ink-2); line-height: 1.5; font-size: .9rem; }
.sp-tech { padding: 10px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line-soft); }
.sp-tech strong { display: block; font-weight: 500; color: var(--ink); font-size: .8rem; margin-bottom: 3px; }
.sp-body .text-link { margin-top: auto; padding-top: 4px; font-size: .88rem; align-self: flex-start; }
@media (max-width: 1250px) { .sp-list { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .sp-card { grid-template-columns: 1fr; } .sp-art, .sp-fallback { min-height: 170px; } .sp-group > header { flex-wrap: wrap; } .sp-group > header .text-link { margin-left: 0; } }
.sp-group > header .sponsor-logo--symbol { width: 32px; }
.track-sponsor img[src*="sensory"] { height: 38px; max-width: 80px; }
.track-sponsor img[src*="pupil-labs"] { height: 24px; }

/* ---------- Interactive wordmark: every lit square is an interface ---------- */
.wordmark { --cols: 51; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: clamp(1px, .18vw, 3px); width: min(calc(100vw - 340px), 1180px); margin: 0 auto; }
.wm-cell { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: transparent; font: inherit; color: inherit; }
.wm-cell:not(.wm-off) { background: #fff; cursor: pointer; transition: transform .18s cubic-bezier(.3,1.6,.5,1), background .18s; }
.wm-cell:not(.wm-off):hover, .wm-cell:not(.wm-off):focus-visible { transform: scale(1.7); background: #ffd3ad; z-index: 5; outline: none; }
.wm-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); width: 132px; transform: translate(-50%, 6px) scale(.9); transform-origin: 50% 100%; opacity: 0; pointer-events: none;
  display: grid; gap: 2px; padding: 6px 6px 8px; border-radius: 8px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 8px 24px #0005; transition: opacity .15s, transform .18s; }
.wm-cell:hover .wm-tip, .wm-cell:focus-visible .wm-tip { opacity: 1; transform: translate(-50%, 0) scale(.59); }
.wm-tip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #eee; display: block; margin-bottom: 4px; }
.wm-tip b { font-size: .95rem; font-weight: 600; line-height: 1.2; }
.wm-tip i { font-style: normal; color: var(--muted); font-size: .85rem; }
.wm-hint { margin-top: 18px; background: none; border: 0; color: #ffffffb3; font: inherit; font-size: .88rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #ffffff59; }
.wm-hint:hover { color: #fff; }
.iface-card { margin: 0; }
.iface-card img { width: 100%; max-height: 52vh; object-fit: contain; background: #f2f0ec; border-radius: 10px; display: block; }
.iface-card figcaption { padding-top: 14px; }
.iface-kind { color: var(--muted); font-size: .85rem; }
.iface-card p { margin: 6px 0 10px; font-size: 1.05rem; line-height: 1.5; color: var(--ink); }
.iface-card small { color: var(--muted); font-size: .76rem; }
.iface-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.iface-list button { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.iface-list img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.iface-list b { display: block; font-weight: 500; font-size: .88rem; line-height: 1.25; }
.iface-list i { font-style: normal; color: var(--muted); font-size: .8rem; }
@media (max-width: 1050px) { .wordmark { width: calc(100vw - 80px); } }
@media (prefers-reduced-motion: reduce) { .wm-cell, .wm-tip { transition: none; } }

/* ---------- Tracks atlas: one chapter per track ---------- */
.atlas-note { margin: 34px 0 30px; max-width: 30ch; font-size: clamp(1.45rem, 2.4vw, 2.05rem); line-height: 1.22; letter-spacing: -0.022em; font-weight: 500; color: var(--ink); text-wrap: balance; }
@media (max-width: 640px) { .atlas-note { margin: 22px 0 20px; } }
.atlas-index { position: sticky; top: 0; z-index: 6; display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 0; margin: 0 0 8px; background: #ebe8e3eb; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.atlas-index a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; color: var(--ink); font-family: "Doto", sans-serif; font-weight: 900; font-size: 1.05rem; }
.atlas-index a:hover { border-color: var(--ink); }
.atlas-swatch { width: 22px; height: 22px; border-radius: 5px; background-size: cover; background-position: center; }
.atlas-swatch--neural { background-image: url("/assets/references/tracks/neural.jpg"); }
.atlas-swatch--voice { background-image: url("/assets/references/tracks/voice.jpg"); }
.atlas-swatch--touch { background-image: url("/assets/references/tracks/touch.jpg"); }
.atlas-swatch--vision { background-image: url("/assets/references/tracks/vision.jpg"); }
.atlas-swatch--open { background-image: url("/assets/references/tracks/open.jpg"); }
.atlas { padding: 46px 0 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 40px; outline: none; }
.atlas-head { display: grid; grid-template-columns: 76px minmax(0, auto) minmax(0, 1fr); gap: 22px; align-items: center; margin-bottom: 26px; }
.atlas-thumb { width: 76px; height: 76px; border-radius: 16px; background-size: cover; background-position: center; filter: saturate(.7) contrast(.95); box-shadow: inset 0 0 0 1px #0000000f; }
.atlas-head h2 { margin: 0; font-family: "Doto", sans-serif; font-weight: 900; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: .9; letter-spacing: -0.03em; color: var(--ink); }
.atlas-line { margin: 8px 0 0; font-size: 1rem; font-weight: 500; color: var(--ink); line-height: 1.35; }
.atlas-body { margin: 0; padding-left: 22px; border-left: 1px solid var(--line); color: var(--ink-2); line-height: 1.55; font-size: .94rem; max-width: 52ch; }
.atlas-problems { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.atlas-problems li { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.atlas-problems h3 { margin: 0; font-size: 1.18rem; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.atlas-problems p { margin: 0; color: var(--ink-2); font-size: .9rem; line-height: 1.55; }
.atlas-problems p span { display: block; margin-bottom: 3px; color: var(--muted); font-size: .76rem; }
.atlas-starts { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.atlas-link { display: inline-flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .8rem; line-height: 1.3; max-width: 100%; }
.atlas-link span { color: var(--muted); font-size: .7rem; }
.atlas-link:hover { border-color: var(--ink); }
.atlas-block h3 { margin: 0 0 14px; font-size: .9rem; font-weight: 500; color: var(--muted); }
.atlas-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.atlas-kits, .atlas-built { list-style: none; margin: 0; padding: 0; }
.atlas-kits li, .atlas-built li { border-top: 1px solid var(--line-soft); }
.atlas-kits a, .atlas-built a { display: grid; gap: 2px; padding: 10px 0; text-decoration: none; color: var(--ink); }
.atlas-kits b, .atlas-built b { font-weight: 500; }
.atlas-kits span, .atlas-built span { color: var(--muted); font-size: .84rem; }
.atlas-kits a:hover b, .atlas-built a:hover b { text-decoration: underline; }
.atlas-empty { padding: 10px 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 1000px) {
  .atlas-head { grid-template-columns: 56px minmax(0, 1fr); gap: 14px 16px; }
  .atlas-head > :last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .atlas-thumb { width: 56px; height: 56px; }
  .atlas-problems, .atlas-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .atlas { padding: 32px 0 28px; }
  .atlas-index { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .atlas-index a { flex: none; }
  .atlas-problems li { padding: 18px; }
}
/* ---------- For agents ---------- */
.agents-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.agents-bar p { margin: 0; color: var(--ink-2); max-width: 64ch; line-height: 1.5; }
.agents-bar code { font-size: .86em; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.agents-actions { display: flex; gap: 8px; }
.agents-md { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0; padding: 24px 26px; max-height: 70vh; overflow: auto; white-space: pre-wrap; word-break: break-word; background: var(--ink); color: #e9e7f7; border-radius: 12px; font-size: .84rem; line-height: 1.6; tab-size: 2; }
.agents-md:focus-visible { outline-offset: 2px; }
.sponsor-link { display: inline-flex; text-decoration: none; color: inherit; border-radius: 6px; }
.sponsor-link:hover { opacity: .75; }
.sponsor-wall li { position: relative; }
.sponsor-wall li .sponsor-link { position: static; justify-content: center; width: 100%; }
.sponsor-wall li .sponsor-link::after { content: ""; position: absolute; inset: 0; }
.sponsor-wall li:hover { background: #fff; }
.track-sponsor a { display: flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.track-sponsor a:hover { opacity: .75; }
.atlas-swatch { filter: saturate(.7); }
/* ---------- Media ---------- */
.gallery-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.gallery-upload p { margin: 0; flex: 1 1 280px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.gallery-queue { flex-basis: 100%; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .86rem; }
.gallery-queue:empty { display: none; }
.gallery-queue li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px solid var(--line); }
.gallery-queue li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-queue li b { font-weight: 500; color: var(--ink); flex: none; }
.gallery-queue li.is-error b { color: var(--verm); flex: 1 1 auto; text-align: right; }
.gallery-empty { display: grid; place-items: center; min-height: 340px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; padding: 24px; }
.gallery-empty p { margin: 0; font-size: 1.05rem; }
.gallery-grid { columns: 3 300px; column-gap: 14px; }
.gallery-item { break-inside: avoid; margin: 0 0 14px; }
.gallery-item img, .gallery-item video { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--line); }
.gallery-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; }
.gallery-open:hover img { opacity: .92; }
.gallery-item figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 2px 0; font-size: .86rem; color: var(--ink-2); line-height: 1.4; }
.gallery-tools { display: flex; gap: 12px; margin-left: auto; flex: none; }
.gallery-tools button { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.gallery-tools button:hover { color: var(--ink); }
body.is-dropping main { outline: 2px dashed var(--ultra); outline-offset: -12px; }
