:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #091513;
  color: #f5f8f6;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top right, #183d35 0, #091513 38rem); }
main { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 5rem; }
.hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: .25rem; font-size: clamp(2.2rem, 7vw, 4.2rem); letter-spacing: -.055em; line-height: .95; }
h2 { margin-bottom: .3rem; font-size: 1.25rem; letter-spacing: -.02em; }
.eyebrow { margin-bottom: .35rem; color: #80d4ae; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lede, .muted { color: #acc1ba; }
.lede { font-size: 1.05rem; }
.card { margin: 1rem 0; padding: 1.25rem; border: 1px solid #294840; border-radius: 18px; background: rgba(17, 39, 34, .94); box-shadow: 0 14px 40px rgba(0, 0, 0, .2); }
.session-card { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.session-card > div:first-child { min-width: 180px; }
.grow { flex: 1 1 260px; }
.button-row { display: flex; gap: .6rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
label, legend { color: #c7d8d2; font-size: .86rem; font-weight: 700; }
input, select, button { font: inherit; }
input, select { display: block; width: 100%; margin-top: .35rem; padding: .72rem .78rem; border: 1px solid #48695f; border-radius: 10px; outline: none; background: #f9fbfa; color: #10211d; }
input:focus, select:focus { border-color: #80d4ae; box-shadow: 0 0 0 3px rgba(128, 212, 174, .2); }
button { padding: .72rem 1rem; border: 1px solid transparent; border-radius: 10px; background: #82d9b0; color: #092018; font-weight: 800; cursor: pointer; }
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .48; cursor: wait; }
button.secondary { border-color: #48695f; background: transparent; color: #d7e5e0; }
button.danger { border-color: #945c59; background: transparent; color: #ffc4bf; }
button.small { padding: .45rem .65rem; font-size: .8rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.wide { grid-column: 1 / -1; }
fieldset { margin: 0; padding: .75rem; border: 1px solid #35574e; border-radius: 12px; }
.check { display: inline-flex; align-items: center; margin-right: 1.4rem; gap: .45rem; }
.check input { width: auto; margin: 0; accent-color: #82d9b0; }
.primary-action { justify-self: start; }
.inline-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .65rem; }
.token-form { grid-template-columns: 1fr minmax(130px, .3fr) auto; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.chip, .badge { display: inline-flex; align-items: center; padding: .35rem .58rem; border-radius: 999px; background: #274a40; color: #d8eee5; font-size: .78rem; font-weight: 800; }
.badge.success { background: #235e46; color: #d9ffeb; }
.badge.warning { background: #654f22; color: #ffe3a3; }
.badge.failure { background: #6a3332; color: #ffd0cc; }
.badge.neutral { background: #283c37; color: #b8cac4; }
.stack { display: grid; gap: .7rem; }
.job, .token-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem; border: 1px solid #31534a; border-radius: 12px; background: #0e2822; }
.job-main, .token-main { min-width: 0; }
.job-title { overflow: hidden; margin: 0 0 .25rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.job-meta, .variant-meta { margin: 0; color: #9eb8af; font-size: .8rem; }
.progress { width: min(220px, 32vw); height: 7px; margin-top: .55rem; overflow: hidden; border-radius: 999px; background: #29443d; }
.progress span { display: block; height: 100%; border-radius: inherit; background: #82d9b0; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .85rem; }
.media-card { overflow: hidden; border: 1px solid #31534a; border-radius: 14px; background: #0e2822; }
.media-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #19352e; }
.thumbnail-placeholder { display: grid; width: 100%; aspect-ratio: 16 / 9; place-items: center; background: #19352e; color: #79968c; font-size: .8rem; }
.media-body { padding: .85rem; }
.media-title { margin-bottom: .55rem; font-size: 1rem; }
.variant-row { display: flex; justify-content: space-between; gap: .5rem; padding: .38rem 0; border-top: 1px solid #294840; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; margin-bottom: 1rem; }
.summary { padding: .75rem; border-radius: 12px; background: #0e2822; }
.summary strong { display: block; font-size: 1.35rem; }
.summary span { color: #9eb8af; font-size: .75rem; }
.search { width: min(260px, 45vw); }
.status { flex-basis: 100%; margin: 0; color: #b6ccc4; }
.status.error { color: #ffb8b2; }
.secret-once { margin: 1rem 0; padding: .85rem; overflow-wrap: anywhere; border: 1px solid #927834; border-radius: 12px; background: #3f351c; color: #ffeca9; }
.empty-message:empty::after { content: "Nothing to show."; color: #9eb8af; }
.empty-message { color: #9eb8af; }
@media (max-width: 680px) {
  main { width: min(100% - 1rem, 1080px); padding-top: 1rem; }
  .hero, .section-heading { align-items: flex-start; }
  .form-grid, .summary-grid { grid-template-columns: 1fr 1fr; }
  .inline-form, .token-form { grid-template-columns: 1fr; }
  .job, .token-row { align-items: flex-start; flex-direction: column; }
  .progress { width: 100%; }
}
