/* Derby Platform — stylesheet matched to peerleaderscitrus.com (Peer Leaders in Engineering).
   Brand language: Source Sans Pro, light uppercase letter-spaced headings, checkered-flag strips,
   near-black #161616 bands, brand yellow #fcb900 call-to-action bands, green #4f824f accents,
   mint #90ee90 photo frames, square outlined buttons. */
:root {
  --ink: #161616; --ink-2: #272727; --heading: #1b1b1b; --text: #5e5e5e; --muted: #8a8a8a; --muted-2: #a4a4a4;
  --paper: #ffffff; --paper-2: #f7f7f7; --line: #e3e3e3; --line-2: #c9c9c9;
  --yellow: #fcb900; --yellow-2: #e3a600; --yellow-soft: #fff4d1;
  --green: #4f824f; --green-2: #3d673d; --mint: #90ee90; --mint-soft: #e9f8e9;
  --logo-green: #00dd75; --logo-teal: #017e9b; --logo-blue: #0055a3;
  --ok: #4f824f; --bad: #b00020; --warn: #8a5a00;
  --radius: 0px; --shadow: 0 1px 2px rgba(0,0,0,.06);
  --font: "Source Sans 3", "Source Sans Pro", Arial, Helvetica, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --stripe: repeating-linear-gradient(135deg, #fcb900 0 9px, #161616 9px 18px);
  --grid: linear-gradient(rgba(0,85,163,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(0,85,163,.07) 1px, transparent 1px), linear-gradient(rgba(0,85,163,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(0,85,163,.13) 1px, transparent 1px);
  --track: .1em;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.55; font-size: 17px; }
a { color: var(--green); }
a:hover { color: var(--green-2); }
h1, h2, h3 { color: var(--heading); line-height: 1.2; text-transform: uppercase; font-weight: 400; letter-spacing: var(--track); }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 .35em; font-weight: 600; letter-spacing: .08em; }
h2 { font-size: 1.35rem; margin: 1.8em 0 .7em; }
h3 { font-size: .95rem; margin: 0 0 .6em; font-weight: 600; }
p { margin: .4em 0 .9em; }
strong { color: var(--heading); }
small, .muted { color: var(--muted); font-size: .92em; }
code { background: var(--paper-2); padding: .1em .4em; border: 1px solid var(--line); font-size: .9em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
.hp { position: absolute; left: -9999px; }

/* header: dark band like the main site's logo band */
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--yellow); }
.checker { height: 10px; background: repeating-conic-gradient(#fff 0 25%, var(--ink) 0 50%) 0 0 / 20px 20px; }
.site-footer .checker { background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.nav-row { display: flex; align-items: center; gap: 1.2rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; padding: .5rem 0; white-space: nowrap; }
.brand:hover { color: var(--yellow); }
.brand-flag { width: 44px; height: 32px; background: url("https://img1.wsimg.com/isteam/ip/1b885765-d090-40fc-889a-8ea56cdf44f5/PLIE%20block%20logo.png/:/rs=w:200") center / contain no-repeat; border: 0; transform: none; }
.site-nav { display: flex; gap: .1rem; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: #fff; text-decoration: none; padding: .55rem .5rem; font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
.site-nav .live-link { color: var(--logo-green); }
.nav-toggle, .nav-burger { display: none; }
@media (max-width: 900px) {
  .nav-burger { display: block; margin-left: auto; font-size: 1.6rem; cursor: pointer; padding: .3rem .6rem; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: .6rem; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}
@media (max-width: 480px) { .brand { font-size: .8rem; } .nav-row { flex-wrap: nowrap; } .nav-toggle:checked ~ .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); padding: .4rem 16px .8rem; } }

/* flashes */
.flash { padding: .8rem 1rem; margin: 1rem 0; border: 1px solid; }
.flash ul { margin: 0; padding-left: 1.2rem; }
.flash-success { background: var(--mint-soft); border-color: var(--mint); color: var(--green-2); }
.flash-error { background: #fdecef; border-color: #f0a9b4; color: #7a0014; }

/* buttons: square, outlined, uppercase (main-site style) */
.btn { display: inline-block; padding: .65rem 1.6rem; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; font-family: inherit; line-height: 1.3; background: transparent; color: var(--ink); transition: background .15s, color .15s; }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); } .btn-primary:hover { background: var(--yellow-2); border-color: var(--yellow-2); color: var(--ink); }
.btn-secondary { background: var(--ink); color: #fff; } .btn-secondary:hover { background: #000; color: var(--yellow); }
.btn-ghost { background: transparent; color: var(--green); border-color: var(--green); } .btn-ghost:hover { background: var(--green); color: #fff; }
.btn-sm { padding: .35rem .9rem; font-size: .72rem; }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }

/* hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; padding: 2.2rem 2rem 2.4rem; margin-top: 1.4rem; position: relative; border: 1px solid var(--line-2); background-color: #fff; background-image: var(--grid); background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px; }
.hero::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-2); pointer-events: none; }
.hero > * { position: relative; }
.hero .eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--green); margin: 0 0 .4em; font-size: .7rem; }
.hero .tagline { font-size: 1.15rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .2em; margin: 0 0 .9em; line-height: 1.3; }
.hero .when-where { font-size: 1.05rem; }
.cta-row { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1rem 0 1.4rem; }
.tminus { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .35rem; }
.countdown { display: flex; gap: .5rem; }
.countdown div { background: var(--ink); color: #fff; padding: .5rem .8rem; min-width: 68px; text-align: center; }
.countdown span { display: block; font-family: var(--mono); font-size: 1.55rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--yellow); }
.countdown small { font-family: var(--mono); color: #cfcfcf; text-transform: uppercase; letter-spacing: .14em; font-size: .6rem; }
.hero-svg { width: 100%; height: auto; }
.title-block { display: grid; grid-template-columns: repeat(4, auto); border: 1px solid var(--ink); background: #fff; font-family: var(--mono); font-size: .66rem; letter-spacing: .04em; margin-top: 1rem; width: fit-content; max-width: 100%; margin-left: auto; }
.title-block div { padding: .35rem .7rem; border-right: 1px solid var(--ink); color: var(--heading); white-space: nowrap; }
.title-block div:last-child { border-right: 0; }
.title-block span { display: block; font-size: .56rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
@media (max-width: 760px) { .title-block { grid-template-columns: 1fr 1fr; margin-left: 0; } .title-block div:nth-child(2) { border-right: 0; } .title-block div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); } }
.hero-sm { padding: 2rem 0 .6rem; }
.hero-sm p { font-size: 1.08rem; max-width: 70ch; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding: 1.4rem 1rem 1.6rem; } .hero-art { order: -1; } .hero .tagline { font-size: 1rem; } }

/* section titles with flanking rules (main-site "Who We Are" layout, in uppercase instead of script) */
.script-title { display: flex; align-items: center; gap: 1.2rem; font-size: 1.35rem; margin: 2.2rem 0 1.2rem; }
.script-title::before, .script-title::after { content: ""; flex: 1; height: 0; border-top: 1px dashed var(--ink); }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.tile { background: #fff; border: 1px solid var(--line-2); padding: 1.2rem; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: .3rem; border-top: 6px solid transparent; border-image: var(--stripe) 6; transition: transform .15s; }
.tile:hover { transform: translateY(-2px); color: var(--text); }
.tile strong { text-transform: uppercase; font-size: .85rem; letter-spacing: .1em; font-weight: 600; color: var(--heading); }
.tile-ico { font-size: 1.5rem; }

/* steps */
.step-list { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.step-list li { counter-increment: s; background: #fff; border: 1px solid var(--line); padding: 1rem 1rem 1rem 3.2rem; position: relative; }
.step-list li::before { content: counter(s); position: absolute; left: .9rem; top: .9rem; width: 1.7rem; height: 1.7rem; background: var(--yellow); color: var(--ink); border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.step-list strong { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .2rem; }

/* divisions / cards */
.div-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.div-card { background: var(--ink); color: #e6e6e6; padding: 1.1rem; border-top: 6px solid transparent; border-image: var(--stripe) 6; }
.div-card strong { text-transform: uppercase; letter-spacing: .1em; font-size: .95rem; display: block; color: #fff; }
.div-card .ages { color: var(--yellow); font-weight: 700; display: block; }
.div-card .muted { color: #bdbdbd; display: block; }
.div-card p { margin-bottom: 0; }
.card { background: #fff; border: 1px solid var(--line); padding: 1.2rem 1.3rem; margin-bottom: 1rem; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card form h2, form.card h2 { margin-top: 1.1em; } form.card > h2:first-of-type { margin-top: .2em; }
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 1.4rem; align-items: start; margin: 1rem 0 2rem; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.side .card { padding: 1rem 1.1rem; }
.prose h2 { margin-top: 1.2em; font-size: 1.15rem; }
.prose ul { padding-left: 1.3rem; }
.toc { padding-left: 1.2rem; margin: 0; } .toc li { margin: .25em 0; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.2rem; margin: 0; }
.dl dt { font-weight: 700; color: var(--muted); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; padding-top: .15em; } .dl dd { margin: 0; }

/* posts: mint photo frames like the main site */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.post-card { background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-bottom: 5px solid var(--mint); }
.post-card p { padding: .8rem 1rem 0; margin: 0; flex: 1; }
.post-card footer { padding: .6rem 1rem .9rem; color: var(--muted); font-size: .85rem; }

/* footer */
.site-footer { background: var(--paper-2); color: var(--text); margin-top: 3rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--green); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.6rem 0 2rem; }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.table.compact th, .table.compact td { padding: .35rem .4rem; font-size: .93rem; }
.table td small { display: block; color: var(--muted); font-size: .8em; }
.num { text-align: right; font-family: var(--mono); font-size: .92em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.good { color: var(--ok); font-weight: 700; } .bad { color: var(--bad); font-weight: 700; }
.timeline .time { white-space: nowrap; font-family: var(--mono); font-weight: 600; color: var(--green); width: 7rem; }
tr.winner td { background: var(--yellow-soft); font-weight: 700; }
td.lane { font-family: var(--mono); font-weight: 600; color: var(--heading); width: 2.6rem; }
.status { display: inline-block; font-family: var(--mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; padding: .15rem .5rem; background: var(--paper-2); color: var(--muted); font-weight: 700; vertical-align: middle; }
.status-running, .status-approved, .status-complete, .status-sent { background: var(--mint-soft); color: var(--green-2); }
.status-staged, .status-pending, .status-waitlist, .status-queued { background: var(--yellow-soft); color: var(--warn); }
.status-void, .status-withdrawn, .status-rejected, .status-declined, .status-failed { background: #fdecef; color: var(--bad); }
.badge-live { display: inline-block; background: var(--bad); color: #fff; font-size: .75rem; padding: .25rem .6rem; vertical-align: middle; animation: blink 1.4s infinite; letter-spacing: .1em; }
@keyframes blink { 50% { opacity: .55; } }
.pulse { animation: blink 1s infinite; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); margin-bottom: .6rem; padding: .2rem 1rem; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--heading); padding: .7rem 0; list-style: none; position: relative; padding-right: 2rem; }
.faq-item summary::after { content: "+"; position: absolute; right: .2rem; top: .5rem; font-size: 1.4rem; color: var(--green); }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding-bottom: .8rem; }

/* forms */
form label { display: block; font-weight: 600; color: var(--heading); margin: .7rem 0; font-size: .95rem; }
form label small { display: block; font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], input:not([type]), select, textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid var(--line-2); border-radius: 0; font: inherit; color: var(--heading); margin-top: .25rem; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--yellow); border-color: var(--ink); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.inline-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--text); }
label.check input { margin-top: .3rem; width: auto; accent-color: var(--green); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; } @media (max-width: 700px) { .check-grid { grid-template-columns: 1fr; } }
.form-narrow { max-width: 620px; }
.signature { font-size: 1.25rem; font-style: italic; letter-spacing: .04em; }
.waiver-text { max-height: 70vh; overflow: auto; font-size: .95rem; }
.waiver-text p { margin: 0 0 .8em; }

/* site map */
.site-map { width: 100%; height: auto; }
.site-map .z { stroke: var(--ink); stroke-width: 2; }
.z-pit { fill: #fcb900; } .z-tech { fill: #ffd56b; } .z-ops { fill: #a9d3e8; } .z-reg { fill: #90ee90; } .z-drop { fill: #fff0bf; }
.z-park { fill: #d9d9d9; } .z-spect { fill: #d6ebd6; } .z-aid { fill: #ff8a8a; } .z-fun { fill: #cfe9f6; } .z-util { fill: #e0e0e0; }
.site-map .lbl { font: 700 13px/1 var(--font); fill: var(--ink); text-transform: uppercase; letter-spacing: 1px; } .site-map .lbl-sm { font: 600 11px/1 var(--font); fill: var(--ink); }
.site-map .zone:hover .z { stroke: var(--green); stroke-width: 4; }
.map-embed { aspect-ratio: 16/10; overflow: hidden; border: 1px solid var(--line); } .map-embed iframe { width: 100%; height: 100%; border: 0; }
.legend { list-style: none; padding: 0; margin: 0; } .legend li { display: flex; gap: .5rem; align-items: center; margin: .3em 0; }
.legend .sw { width: 18px; height: 18px; border: 1px solid var(--ink); display: inline-block; }
.legend .z-pit { background: #fcb900; } .legend .z-tech { background: #ffd56b; } .legend .z-ops { background: #a9d3e8; } .legend .z-reg { background: #90ee90; }
.legend .z-park { background: #d9d9d9; } .legend .z-spect { background: #d6ebd6; } .legend .z-aid { background: #ff8a8a; } .legend .z-fun { background: #cfe9f6; }

/* estimator */
.est-form h2 { font-size: 1rem; margin-top: 1em; }
.est-out { background: var(--ink); color: #e6e6e6; border-color: var(--ink); }
.big-stat span { font-family: var(--mono); font-size: 3.4rem; font-weight: 600; display: block; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.big-stat small, .stat-row small { font-family: var(--mono); color: #bdbdbd; text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; display: block; }
.stat-row { display: flex; gap: 1.5rem; margin: 1rem 0; } .stat-row span { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; display: block; color: #fff; }
#est-chart { width: 100%; height: auto; background: #fff; }
.est-out .muted { color: #bdbdbd; }
.est-out .btn-ghost { color: var(--yellow); border-color: var(--yellow); } .est-out .btn-ghost:hover { background: var(--yellow); color: var(--ink); }
.level-tabs { display: flex; gap: .5rem; margin: 1rem 0 0; flex-wrap: wrap; }
.level-tab { flex: 1 1 180px; background: #fff; border: 1px solid var(--line-2); padding: .6rem .9rem; text-align: left; cursor: pointer; font-family: inherit; }
.level-tab span { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--heading); }
.level-tab small { color: var(--muted); }
.level-tab.active { border-color: var(--ink); background: var(--yellow); }
.level-tab.active span, .level-tab.active small { color: var(--ink); }
.choice-group { border-top: 1px solid var(--line); padding: .8rem 0 .2rem; }
.choice-group .cg-label, .choice-group > label { font-weight: 700; margin: 0 0 .4rem; text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; color: var(--heading); }
.choice-group output { float: right; color: var(--green); }
.choices { display: flex; gap: .5rem; flex-wrap: wrap; }
.choices label { flex: 1 1 140px; margin: 0; font-weight: 600; color: var(--heading); background: #fff; border: 1px solid var(--line-2); padding: .55rem .7rem; cursor: pointer; display: flex; gap: .4rem; align-items: center; }
.choices label:has(input:checked) { border-color: var(--ink); background: var(--yellow-soft); }
.choices input { width: auto; margin: 0; accent-color: var(--green); }
.choice-group .why { margin: .5rem 0 .4rem; color: var(--text); font-size: .92rem; min-height: 1.3em; }
input[type=range] { width: 100%; accent-color: var(--green); margin: .4rem 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.bad-val { color: #ff9c9c !important; font-size: 2.4rem !important; }
.energy-bar { display: flex; height: 34px; overflow: hidden; gap: 2px; background: var(--paper-2); margin: .4rem 0 .6rem; }
.eseg { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .8rem; min-width: 0; transition: width .25s; }
.energy-legend li { font-size: .9rem; display: flex; gap: .5rem; align-items: center; } .energy-legend li strong { margin-left: auto; font-variant-numeric: tabular-nums; }
#energy-table tr.total td { font-weight: 700; border-top: 2px solid var(--ink); }
#estimator[data-level="easy"] .min-int, #estimator[data-level="easy"] .adv-only, #estimator[data-level="intermediate"] .adv-only { display: none; }
.concepts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; } @media (max-width: 700px) { .concepts { grid-template-columns: 1fr; } }
.concept { background: var(--paper-2); border-left: 3px solid var(--yellow); padding: .7rem .9rem; } .concept strong { display: block; text-transform: uppercase; font-size: .75rem; letter-spacing: .1em; color: var(--green); margin-bottom: .2rem; } .concept p { margin: 0; font-size: .93rem; }
.equations p { font-size: .9rem; } .equations code { font-size: .9em; }
#sweep-chart { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); }
.learn h3 { margin-top: 1em; } .learn h3:first-child { margin-top: 0; }

/* heats / results */
.heat-grid, .board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.heat-card { background: #fff; border: 1px solid var(--line); margin-bottom: 1rem; overflow: hidden; }
.heat-card header { padding: .6rem .9rem; background: var(--paper-2); font-weight: 700; color: var(--heading); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
.heat-card.active { outline: 3px solid var(--yellow); }
.heat-card.active header { background: var(--yellow); color: var(--ink); }
.heat-card table { margin: 0; } .heat-card td { padding: .5rem .9rem; }

/* stream */
.video { aspect-ratio: 16/9; background: #000; overflow: hidden; } .video iframe { width: 100%; height: 100%; border: 0; }
.video.placeholder { display: grid; place-items: center; color: #fff; text-align: center; padding: 1rem; background: var(--ink); } .video.placeholder .muted { color: #bdbdbd; }

/* admin */
.admin { background: #f3f3f3; }
.admin-header { background: var(--ink); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin: 1rem 0; }
.stat { background: #fff; border: 1px solid var(--line); padding: .8rem 1rem; }
.stat span { font-family: var(--mono); font-size: 1.7rem; font-weight: 600; display: block; color: var(--heading); } .stat small { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .6rem; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: end; margin: .5rem 0 1rem; } .filters label { margin: 0; min-width: 150px; }
.inline-form { display: inline; } .inline-form button { margin-right: .2rem; }
.console { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; } @media (max-width: 900px) { .console { grid-template-columns: 1fr; } }
.console .big-controls { display: flex; gap: .6rem; flex-wrap: wrap; margin: .6rem 0; }
.console .big-controls .btn { font-size: 1rem; padding: .9rem 1.4rem; }
.device-ok { color: var(--ok); } .device-stale { color: var(--bad); }
.table .actions { white-space: nowrap; }
.table input, .table select, .table textarea { margin: 0; padding: .35rem .5rem; }
textarea.wide { min-height: 5rem; }
.key { font-family: var(--mono); font-size: .8rem; word-break: break-all; }
