@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');
:root { color-scheme: dark; --bg: #10171a; --panel: #172226; --line: #314348; --text: #dde2eb; --muted: #a6b3ba; --mint: #a5d7c6; --coral: #ff7184; --yellow: #ecd38a; --max: 1200px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 'Source Sans 3', sans-serif; letter-spacing: 0; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--mint); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: 'Barlow Semi Condensed', 'Source Sans 3', sans-serif; font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: 0; overflow-wrap: anywhere; }
h1 { font-size: 52px; } h2 { font-size: 38px; } h3 { font-size: 25px; }
p { margin: 0 0 1em; } figure { margin: 0; }
.wrap { width: min(100% - 64px, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: 14px; }
.eyebrow { color: var(--mint); font-size: 12px; font-weight: 700; margin-bottom: 16px; }
.icon { flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip-link { position: fixed; z-index: 20; top: -100px; left: 16px; padding: 12px 20px; background: var(--mint); color: var(--bg); }
.skip-link:focus { top: 12px; }
.topbar { border-bottom: 1px solid var(--line); background: #10171af2; }
.topbar-inner { width: min(100% - 64px, var(--max)); min-height: 84px; margin: auto; display: flex; gap: 36px; align-items: center; }
.wordmark { display: inline-flex; flex-shrink: 0; align-items: center; gap: 9px; font: 700 25px 'Barlow Semi Condensed', sans-serif; white-space: nowrap; }
.beta-tag { font: 600 10px 'Source Sans 3', sans-serif; color: var(--mint); border: 1px solid #496a62; border-radius: 3px; padding: 2px 5px; }
.primary-nav { display: flex; gap: 28px; margin-left: auto; align-items: center; font-size: 15px; }
.primary-nav a { display: flex; align-items: center; min-height: 44px; color: var(--muted); }
.primary-nav a:hover { color: var(--mint); }
.header-actions { display: flex; gap: 18px; align-items: center; }
.language-form { margin: 0; display: flex; align-items: center; gap: 4px; }
.language-form select { width: 126px; min-height: 44px; font-size: 14px; padding: 8px; }
.language-button, .account-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; }
.language-button { min-width: 44px; color: var(--muted); }
.account-button { border-left: 1px solid var(--line); padding-left: 22px; }
.site-hero { padding-block: 52px 40px; }
.hero-heading { max-width: 760px; margin: auto; text-align: center; }
.hero-brand { display: flex; align-items: center; justify-content: center; gap: 20px; }
.hero-brand img { width: 80px; height: 80px; flex-shrink: 0; }
.hero-heading h1 { color: var(--mint); font-size: 88px; font-weight: 700; }
.hero-subtitle { font-size: 27px; margin: 18px 0; }
.hero-intro > p:first-child { font-size: 19px; max-width: 640px; margin-inline: auto; }
.hero-heading .actions, .hero-heading .release-meta { justify-content: center; }
.hero-heading .actions { gap: 24px; }
.release-warning { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); font-size: 12px; margin-top: 12px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 18px; border: 1px solid transparent; border-radius: 4px; font-weight: 600; font-size: 15px; text-align: center; line-height: 1.35; transition: background-color .15s, border-color .15s; }
.primary { background: var(--mint); color: #11231e; }
.primary:hover { background: #c5e9dd; color: #11231e; }
.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.secondary:hover { border-color: var(--mint); background: #1c2a2d; }
.release-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; margin: 16px 0 3px; }
.product-stage { width: 100%; padding: 0; }
.product-enlarge { display: block; position: relative; width: 100%; padding: 0; border: 1px solid var(--line); background: var(--panel); border-radius: 5px; overflow: hidden; }
.product-enlarge img { width: 100%; aspect-ratio: 16/7.5; object-fit: cover; object-position: top; }
.zoom-control { display: grid; place-items: center; position: absolute; bottom: 12px; right: 12px; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--bg); border-radius: 4px; color: var(--text); }
.product-stage figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0 24px; font-size: 12px; color: var(--muted); }
.product-stage figcaption a { display: inline-flex; gap: 8px; align-items: center; }
.coral-dot { width: 6px; height: 6px; background: var(--coral); border-radius: 50%; flex-shrink: 0; }
.feature-band { border-block: 1px solid var(--line); background: #142024; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.feature-grid article { padding: 32px 32px 28px 0; }
.feature-grid article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.feature-grid .icon { color: var(--mint); margin-bottom: 14px; }
.feature-grid h2 { font-size: 24px; margin-bottom: 10px; }
.feature-grid p { font-size: 15px; color: var(--muted); margin: 0; }
.section-space { padding-block: 72px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-title p:not(.eyebrow) { color: var(--muted); margin: 12px 0 0; }
.section-title > div { min-width: 0; }
.text-link { color: var(--mint); display: inline-flex; align-items: center; gap: 9px; font-size: 15px; min-height: 44px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.session-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.session-card { border: 1px solid var(--line); background: #152024; border-radius: 5px; overflow: hidden; min-width: 0; transition: border-color .15s; }
.session-card:hover { border-color: #74988b; }
.session-image { position: relative; display: block; aspect-ratio: 16/9; border-bottom: 1px solid var(--line); }
.session-image img { width: 100%; height: 100%; object-fit: contain; }
.trace-label { position: absolute; left: 14px; top: 12px; font-size: 9px; color: var(--muted); }
.session-card-body { padding: 20px; }
.circuit-name { color: var(--mint); font-size: 12px; font-weight: 600; margin: 0 0 8px; overflow-wrap: anywhere; }
.session-card h3 { font-size: 24px; margin-bottom: 7px; }
.car-name { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.session-stats { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; padding: 8px 0 16px; }
.session-stats span { font-size: 12px; color: var(--muted); }
.session-stats strong { display: block; font: 600 30px 'Barlow Semi Condensed', sans-serif; font-variant-numeric: tabular-nums; margin-top: 4px; }
.session-author { border-top: 1px solid var(--line); padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 13px; }
.session-author span { min-width: 0; display: flex; align-items: center; gap: 7px; overflow-wrap: anywhere; }
.session-author .icon { width: 15px; height: 15px; flex-basis: 15px; }
.empty-state { padding: 46px 20px; border-block: 1px solid var(--line); text-align: center; background-image: linear-gradient(90deg, transparent, #172528, transparent); }
.empty-state > .icon { width: 28px; height: 28px; color: var(--mint); margin-bottom: 16px; }
.empty-state h2, .empty-state h3 { font-size: 29px; }
.empty-state p { color: var(--muted); margin: 12px auto 22px; max-width: 540px; }
.join-band { background: #1b2b2a; border-block: 1px solid #39534d; }
.join-content { display: flex; gap: 50px; align-items: center; justify-content: space-between; padding-block: 46px; }
.join-content p:not(.eyebrow) { max-width: 700px; color: #bccdc8; margin: 14px 0 0; }
.join-content .btn { flex-shrink: 0; }
.footer { padding: 34px 0 28px; border-top: 1px solid var(--line); }
.footer-main { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-main > span { color: var(--muted); font-size: 13px; }
.footer-main nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; }
.legal-note { color: var(--muted); font-size: 12px; margin-top: 18px; }
.page-section { padding-block: 52px 80px; min-height: 65vh; }
.page-heading { margin-bottom: 36px; }
.page-heading .btn { flex-shrink: 0; }
.page-lede { color: var(--muted); margin-top: 18px; font-size: 19px; }
.filter-bar { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr auto; gap: 14px; padding: 24px 0; border-block: 1px solid var(--line); align-items: end; }
.filter-bar > div { min-width: 0; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
input:not([type=checkbox]), select, textarea { color: var(--text); background: #152025; border: 1px solid #4c626b; border-radius: 4px; min-height: 46px; padding: 10px 12px; width: 100%; min-width: 0; }
input::placeholder, textarea::placeholder { color: #94a6af; }
input[type=file] { padding: 12px; font-size: 14px; }
input[type=file]::file-selector-button { background: #29423b; color: #cfe5dd; border: 1px solid #4c6b60; padding: 7px 10px; border-radius: 3px; margin-right: 14px; font: inherit; cursor: pointer; }
textarea { resize: vertical; }
.results-heading { display: flex; gap: 20px; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 14px; color: var(--muted); }
.results-heading h2 { font-size: 28px; color: var(--text); }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px; margin-top: 32px; }
.narrow { max-width: 720px; }
.back-link { margin-bottom: 24px; }
.stack-form { margin-top: 28px; }
.form-field { margin-bottom: 22px; }
.checkbox-field { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.checkbox-field input { appearance: auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--mint); }
.checkbox-field label { font-weight: 400; margin: 0; cursor: pointer; padding-bottom: 10px; }
.field-help { color: var(--muted); font-size: 13px; margin-top: 7px; }
.field-help ul { padding-left: 18px; margin-block: 8px; }
.field-error, .form-errors { color: #ff9dab; font-size: 14px; margin-top: 8px; }
.field-error ul, .form-errors ul { padding-left: 18px; }
.checkbox-field .field-error { grid-column: 2; }
.form-errors { border-left: 3px solid var(--coral); padding: 8px 16px; background: #352128; }
.notice { background: #1c302c; border-left: 3px solid var(--mint); padding: 16px 20px; font-size: 15px; margin-block: 24px; }
.notice.warning { background: #302b1e; border-color: var(--yellow); color: #eee0b5; }
.notice-stack .notice { margin-bottom: 0; }
.auth-section { max-width: 440px; padding-block: 56px 80px; min-height: 70vh; }
.auth-heading > img { margin-bottom: 22px; }
.auth-heading h1 { font-size: 42px; }
.auth-heading p:not(.eyebrow) { color: var(--muted); margin-top: 16px; }
.full-width { width: 100%; }
.auth-links { margin-top: 26px; font-size: 15px; }
.auth-links a { color: var(--mint); }
.auth-links p { margin-top: 18px; }
.profile-line { display: flex; align-items: center; gap: 18px; padding: 28px 0; border-block: 1px solid var(--line); }
.profile-line h2 { font-size: 28px; }
.profile-line p { color: var(--muted); margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.profile-line > div:not(.avatar) { min-width: 0; }
.avatar { width: 52px; height: 52px; background: #294038; color: var(--mint); display: grid; place-items: center; border-radius: 4px; flex-shrink: 0; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-left: auto; }
.profile-actions form { margin: 0; }
.publication-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); padding: 24px 0; }
.publication-row p:not(.circuit-name) { color: var(--muted); font-size: 14px; margin: 8px 0 0; overflow-wrap: anywhere; }
.publication-row h3 { font-size: 25px; }
.account-danger { margin-top: 48px; }
.icon-button { width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); display: inline-grid; place-items: center; }
.icon-button:hover { color: var(--mint); border-color: var(--mint); }
.danger { color: #ff9bab; }
.danger-button { background: #48252f; color: #ffd7df; border-color: #986270; }
.danger-button:hover { background: #65333f; color: #fff; }
.badge { display: inline-block; font: 500 12px 'Source Sans 3', sans-serif; padding: 4px 8px; border: 1px solid #8b7747; color: var(--yellow); border-radius: 3px; vertical-align: middle; }
.session-detail { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 40px; border-block: 1px solid var(--line); padding-block: 28px; }
.recorded-map img { width: 100%; aspect-ratio: 16/9; object-fit: contain; }
.recorded-map figcaption { font-size: 12px; color: var(--muted); padding-top: 12px; }
.detail-facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-facts dt { font-size: 13px; color: var(--muted); }
.detail-facts dd { margin: 4px 0 0; font: 600 30px 'Barlow Semi Condensed', sans-serif; }
.detail-facts .timing { color: var(--mint); font-size: 42px; font-variant-numeric: tabular-nums; }
.detail-facts p { color: var(--muted); font-size: 15px; }
.session-description { padding-block: 26px 0; max-width: 820px; overflow-wrap: anywhere; }
.hash-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 24px; border-bottom: 1px solid var(--line); font-size: 13px; }
.hash-line code { overflow-wrap: anywhere; min-width: 0; flex: 1 1 350px; color: var(--muted); font-family: Consolas, monospace; }
.copy-feedback { width: 100%; }
.info-content { max-width: 850px; }
.info-content h2 { margin: 34px 0 18px; font-size: 30px; }
.info-content h3 { margin: 26px 0 16px; font-size: 24px; }
.info-content p, .info-content li { color: #b7c4cb; }
.info-content a:not(.btn) { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.info-content ol, .info-content ul { padding-left: 24px; }
.info-content li { padding-left: 5px; margin-bottom: 10px; }
.info-content code { overflow-wrap: anywhere; font-size: 14px; color: #dce7e1; }
.release-details { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding-block: 24px; margin: 24px 0; border-block: 1px solid var(--line); }
.release-details dt { font-size: 13px; color: var(--muted); }
.release-details dd { margin: 6px 0 0; font-size: 18px; }
.image-dialog { border: 1px solid var(--line); padding: 44px 12px 12px; background: var(--bg); max-width: min(96vw,1600px); max-height: 95vh; color: var(--text); }
.image-dialog::backdrop { background: #000c; }
.image-dialog img { max-height: calc(95vh - 60px); width: auto; object-fit: contain; }
.dialog-close { position: absolute; right: 4px; top: 0; border: 0; }
@media (min-width: 1600px) { .product-enlarge img { aspect-ratio: 16/7; } }
@media (max-width: 1050px) {
  .topbar-inner { gap: 20px; } .primary-nav { gap: 18px; }
  .hero-heading { gap: 30px; grid-template-columns: .85fr 1.15fr; } .hero-heading h1 { font-size: 76px; } .hero-subtitle { font-size: 24px; } .hero-intro > p:first-child { font-size: 17px; }
  .filter-bar { grid-template-columns: 1fr 1fr 1fr; } .search-field { grid-column: span 2; } .filter-bar .btn { width: 100%; }
  .session-grid { gap: 14px; } .session-card-body { padding: 16px; } .join-content { gap: 28px; }
}
@media (max-width: 780px) {
  .wrap, .topbar-inner { width: calc(100% - 40px); } .topbar-inner { flex-wrap: wrap; gap: 0 20px; padding-top: 16px; } .header-actions { margin-left: auto; }
  .primary-nav { order: 3; width: 100%; justify-content: space-between; margin: 12px 0 0; padding-bottom: 6px; gap: 12px; } .account-button { padding-left: 12px; }
  .hero-heading { grid-template-columns: 1fr; gap: 24px; } .site-hero { padding-top: 32px; } .hero-heading h1 { font-size: 72px; } .hero-subtitle { font-size: 24px; } .hero-intro > p:first-child { max-width: 600px; }
  .product-enlarge img { aspect-ratio: 16/9; object-fit: contain; } .product-stage figcaption { flex-wrap: wrap; gap: 6px; padding-bottom: 20px; }
  .feature-grid { grid-template-columns: 1fr; } .feature-grid article, .feature-grid article + article { padding: 22px 0; border-left: 0; } .feature-grid article + article { border-top: 1px solid var(--line); }
  .feature-grid .icon { float: left; margin: 3px 16px 0 0; } .feature-grid h2 { font-size: 24px; margin-bottom: 6px; } .feature-grid p { margin-left: 36px; }
  .section-space { padding-block: 44px; } .section-title { align-items: flex-start; flex-direction: column; gap: 18px; } .session-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .join-content { flex-direction: column; align-items: flex-start; padding-block: 32px; } .page-section { padding-block: 36px 56px; } h1 { font-size: 42px; } h2 { font-size: 32px; }
  .session-detail { grid-template-columns: 1fr; gap: 16px; } .profile-line { flex-wrap: wrap; } .profile-actions { width: 100%; margin-left: 0; } .footer-main nav { margin-left: 0; width: 100%; } .auth-section { padding-top: 40px; }
}
@media (max-width: 500px) {
  .topbar-inner { gap: 0 10px; } .wordmark { font-size: 23px; gap: 6px; } .wordmark img { width: 30px; height: 30px; } .beta-tag { font-size: 9px; }
  .header-actions { gap: 2px; } .account-button { padding-left: 8px; min-width: 42px; } .account-button span { display: none; } .primary-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; font-size: 14px; }
  .hero-heading h1 { font-size: 56px; } .hero-brand { gap: 10px; } .hero-brand img { width: 48px; height: 48px; } .hero-heading .actions { align-items: stretch; gap: 8px; } .hero-heading .btn { flex: 1 1 100%; } .hero-heading { padding-bottom: 0; }
  .hero-heading .eyebrow { margin-bottom: 10px; } .hero-subtitle { margin-top: 8px; } .hero-intro > p:first-child { font-size: 17px; } .hero-intro .small { font-size: 12px; }
  .session-grid { grid-template-columns: 1fr; } .filter-bar { grid-template-columns: 1fr 1fr; } .search-field { grid-column: 1 / -1; }
  .publication-row { grid-template-columns: minmax(0,1fr) 44px; gap: 12px; } .publication-row > .muted { grid-column: 1; grid-row: 2; font-size: 13px; } .publication-row > .icon-button { grid-column: 2; grid-row: 1 / 3; }
  .release-details { grid-template-columns: 1fr 1fr; } .footer-main { gap: 16px; } .footer-main nav { gap: 16px; font-size: 13px; } .auth-heading h1 { font-size: 36px; } .notice { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }