* { box-sizing: border-box; }

.privacy-notice { max-width: 760px; }
.privacy-notice h1 { font-size: clamp(36px, 7vw, 56px); }
.privacy-notice section { margin-top: 40px; }
.privacy-notice h2 { font-size: clamp(22px, 4vw, 28px); line-height: 1.3; }
.privacy-notice p, .privacy-notice li { line-height: 1.75; }
.privacy-notice a { color: var(--brand-connection); text-underline-offset: 3px; overflow-wrap: anywhere; }
.privacy-contents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; padding: 16px 0; border-block: 1px solid var(--brand-hairline); }
.privacy-contents a { display: flex; align-items: center; min-height: 44px; }
@media (max-width: 560px) { .privacy-contents { grid-template-columns: 1fr; } }

body {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--brand-connection) 20%, var(--brand-canvas)) 0, var(--brand-canvas) 48%);
  color: var(--brand-text);
  font: 16px/1.5 system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { margin-top: 0; }
h1, h2 { text-wrap: balance; }
p { color: var(--brand-text-muted); }
a, button, input { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--brand-focus); outline-offset: 2px; }

.landing-shell { width: min(100%, 960px); margin: auto; padding: clamp(28px, 6vw, 72px) 0; }
.hero { max-width: 820px; }
.brand-symbol { display: block; margin-bottom: 32px; }
.eyebrow { margin-bottom: 12px; color: var(--brand-connection); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.landing-shell h1 { margin-bottom: 12px; font-size: clamp(42px, 10vw, 76px); line-height: 1; letter-spacing: -.05em; }
.lede { max-width: 760px; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.collaboration { margin-top: clamp(72px, 10vw, 120px); }
.section-intro { max-width: 680px; }
.section-intro h2 { margin-bottom: 12px; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.section-intro > p:last-child { font-size: 18px; }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.value-card { min-width: 0; padding: 24px; border-radius: 16px; background: var(--brand-surface); box-shadow: inset 0 0 0 1px var(--brand-hairline); }
.value-card::before { display: block; width: 28px; height: 4px; margin-bottom: 24px; border-radius: 2px; background: var(--brand-connection); content: ""; }
.value-card h3 { margin: 0 0 10px; font-size: 19px; letter-spacing: -.015em; }
.value-card p { margin-bottom: 0; }

.button, button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  background: var(--brand-connection);
  color: var(--brand-on-accent);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary { background: var(--brand-surface-raised); color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand-hairline); }
.button:active, button:active { transform: scale(.98); }
button:disabled { cursor: wait; opacity: .55; }

.form-page, .prejoin-page { display: grid; place-items: center; }
.form-shell { width: min(100%, 620px); padding: 32px; border-radius: 20px; background: color-mix(in srgb, var(--brand-surface) 92%, transparent); box-shadow: 0 24px 80px var(--brand-shadow), 0 0 0 1px var(--brand-hairline); }
.form-shell h1 { margin-bottom: 8px; font-size: clamp(28px, 7vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; }
.checkbox-row { grid-template-columns: 20px 1fr; align-items: center; min-height: 44px; cursor: pointer; }
input[type="checkbox"] { width: 20px; height: 20px; margin: 0; }
input[type="password"] { width: 100%; min-height: 48px; border: 0; border-radius: 10px; padding: 0 14px; background: var(--brand-field); color: var(--brand-text); box-shadow: 0 0 0 1px var(--brand-hairline); font: inherit; font-size: 16px; }
#error { min-height: 24px; margin: 0; color: var(--brand-danger); }
[hidden] { display: none !important; }

.prejoin-shell { width: min(440px, calc(100vw - 32px)); padding: 24px; border-radius: 18px; background: var(--brand-surface); box-shadow: 0 24px 80px var(--brand-shadow), 0 0 0 1px var(--brand-hairline); }
.prejoin-shell h1 { margin-bottom: 6px; font-size: 28px; letter-spacing: -.025em; }
.prejoin-shell .intro { margin-bottom: 24px; }
.join-media { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: var(--brand-field); box-shadow: inset 0 0 0 1px var(--brand-hairline); }
.section-label { margin: 0; color: var(--brand-text-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.join-media-preview { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--brand-media-canvas); object-fit: cover; }
.join-media-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
.join-media-row select { min-width: 0; min-height: 44px; border: 0; border-radius: 9px; padding: 0 10px; background: var(--brand-surface-raised); color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand-hairline); font: inherit; font-size: 16px; }
.media-toggle { width: 44px; min-width: 44px; min-height: 44px; padding: 0; background: var(--brand-control-inactive); color: var(--brand-text); }
.media-toggle[aria-pressed="true"] { background: var(--brand-control-active); color: var(--brand-canvas); }
.media-toggle svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.media-toggle .icon-active { display: none; }
.media-toggle[aria-pressed="true"] .icon-active { display: block; }
.media-toggle[aria-pressed="true"] .icon-inactive { display: none; }
.join-media-status { min-height: 20px; margin: 0; color: var(--brand-text-muted); font-size: 13px; }
.call-access { color: var(--brand-text-muted); }
.call-access summary { width: fit-content; min-height: 44px; padding: 11px 2px; cursor: pointer; }
.call-access-options { display: grid; gap: 14px; padding: 4px 0 8px; color: var(--brand-text); }

.downloads { margin-top: clamp(72px, 10vw, 112px); padding-top: 28px; box-shadow: inset 0 1px var(--brand-hairline); }
.downloads h2 { margin-bottom: 6px; }
.downloads > p { margin-bottom: 16px; }
.download-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.download { display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; min-height: 66px; align-items: center; gap: 12px; border-radius: 12px; padding: 10px 14px; background: var(--brand-surface-raised); color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand-hairline); text-decoration: none; transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.download-icon { width: 34px; height: 34px; fill: none; stroke: var(--brand-connection); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.download-icon text { fill: var(--brand-connection); stroke: none; font: 700 6px/1 system-ui, sans-serif; }
.download-copy { display: grid; gap: 2px; min-width: 0; }
.download-platform { font-size: 15px; font-weight: 700; line-height: 1.25; }
.download-file-type { color: var(--brand-text-muted); font-size: 12px; font-weight: 500; line-height: 1.25; }
.download-arrow { width: 20px; height: 20px; fill: none; stroke: var(--brand-text-muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.download-checksums { margin-top: 12px; color: var(--brand-text-muted); font-size: 13px; }
.download-checksums summary { width: fit-content; min-height: 44px; padding: 12px 4px; color: var(--brand-text-muted); cursor: pointer; }
.checksum-list { display: grid; gap: 1px; overflow: hidden; border-radius: 10px; background: var(--brand-hairline); box-shadow: 0 0 0 1px var(--brand-hairline); }
.checksum { display: grid; grid-template-columns: 70px minmax(0, 1fr) 32px; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px 6px 12px; background: var(--brand-surface); }
.checksum code { overflow: hidden; color: var(--brand-text-muted); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.checksum-copy { position: relative; min-width: 32px; min-height: 32px; border-radius: 7px; padding: 0 7px; background: var(--brand-surface-raised); color: var(--brand-text); font-size: 11px; }
.checksum-copy::before { position: absolute; content: ""; inset: -6px; }

@media (hover: hover) and (pointer: fine) {
  .button:hover { filter: brightness(1.12); }
  .download:hover { background: var(--brand-surface); box-shadow: inset 0 0 0 1px var(--brand-connection); }
  .download:hover .download-arrow { color: var(--brand-connection); stroke: currentColor; }
}

@media (max-width: 520px) {
  body { padding: 16px; }
  .form-shell { padding: 24px; }
  .download-list { grid-template-columns: 1fr; }
  .checksum { grid-template-columns: 64px minmax(0, 1fr) 32px; }
}

@media (max-width: 760px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-card { padding: 20px; }
}

.account-return { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; color: var(--brand-connection); }

body.landing-page { padding: 0; }
.landing-page .landing-shell { width: min(calc(100% - 48px), 960px); }
#downloads { scroll-margin-top: 112px; }

/* All media controls share one circular shape and explicit unavailable palette. */
.media-toggle, .participant-control-button { border-radius: 50%; height: 44px; flex-shrink: 0; }
.media-toggle:disabled, .participant-control-button:disabled { background: var(--brand-control-disabled); color: var(--brand-control-disabled-text); opacity: 1; cursor: not-allowed; box-shadow: inset 0 0 0 1px var(--brand-control-disabled-border); }

.all-downloads { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--brand-connection); }
.release-intro { margin-bottom: 40px; }
.release-history h1 { font-size: clamp(36px, 7vw, 60px); }
.release-list { display: grid; gap: 16px; }
.release-card { min-width: 0; border: 1px solid var(--brand-hairline); border-radius: 14px; background: var(--brand-surface); }
.release-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-height: 76px; padding: 20px 24px; }
.release-version { display: flex; align-items: center; gap: 12px; font: 600 20px ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.release-badge { padding: 4px 9px; border-radius: 6px; color: var(--brand-connection); background: var(--brand-surface-raised); font: 600 12px system-ui, sans-serif; }
.release-card time { color: var(--brand-text-muted); font-size: 14px; }
.release-content { padding: 0 24px 24px; }
.release-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.release-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand-connection); }
.release-checksum-status { min-height: 24px; margin: 8px 0 16px; font-size: 13px; }
.platform-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--brand-surface-raised); color: var(--brand-text); }
.platform-icon svg { width: 30px; height: 30px; }
.release-download-arrow { color: var(--brand-connection); font-size: 24px; padding: 0 12px; }
.release-notice a { color: var(--brand-connection); }
@media (max-width: 520px) { .release-heading { padding: 16px; } .release-content { padding: 0 16px 16px; } .release-card time { font-size: 12px; } }

.platform-downloads { border-top: 1px solid var(--brand-hairline); padding: 24px 0 12px; }
.platform-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.platform-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.platform-packages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.platform-packages li { min-width: 0; }
.package-download { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; gap: 12px; min-height: 76px; padding: 12px 16px; border: 1px solid var(--brand-hairline); border-radius: 10px; background: var(--brand-surface-raised); color: var(--brand-text); text-decoration: none; }
.package-file-icon { width: 40px; height: 44px; fill: none; stroke: var(--brand-connection); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.package-file-icon text { fill: var(--brand-connection); stroke: none; font: 700 7px/1 system-ui, sans-serif; }
.package-download strong { display: block; font-size: 15px; font-weight: 600; }
.package-download small { display: block; margin-top: 3px; color: var(--brand-text-muted); font-size: 12px; }
.package-download .release-download-arrow { padding: 0; }
.package-checksum summary { display: flex; align-items: center; min-height: 44px; color: var(--brand-text-muted); font-size: 12px; cursor: pointer; }
.package-checksum summary::before { content: "+"; margin-right: 7px; }
.package-checksum[open] summary::before { content: "−"; }
.package-checksum summary:focus-visible { outline: 2px solid var(--brand-focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .package-download:hover { border-color: var(--brand-connection); } }
@media (max-width: 700px) { .platform-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .platform-packages { grid-template-columns: 1fr; } }

.release-digest { position: relative; display: block; width: 100%; min-height: 44px; margin: 0 0 12px; padding: 8px 42px 8px 14px; border: 1px solid var(--brand-hairline); border-radius: 8px; background: var(--brand-field); color: var(--brand-text-muted); text-align: left; font-weight: 400; }
.release-digest code { display: block; overflow-wrap: anywhere; white-space: normal; font: 12px/1.7 ui-monospace, monospace; }
.release-digest svg { position: absolute; top: 9px; right: 12px; width: 18px; height: 18px; }
.release-digest .checksum-copied-icon { display: none; }
.release-digest.is-copied .checksum-copy-icon { display: none; }
.release-digest.is-copied .checksum-copied-icon { display: block; color: var(--brand-signal); }
.release-digest:active { transform: none; }
@media (hover: hover) and (pointer: fine) { .release-digest:not(:disabled):hover { border-color: var(--brand-connection); color: var(--brand-text); } }

.license-page h1 { font-size: clamp(32px, 6vw, 54px); overflow-wrap: anywhere; }
.license-page header { margin-block: 24px 32px; }
.license-exports, .license-pagination, .license-files { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-block: 16px; }
.license-page a { color: var(--brand-connection); text-underline-offset: 3px; }
.license-exports a, .license-pagination a, .license-files a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.license-search { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-block: 32px 20px; }
.license-search > div:first-child { flex: 1 1 280px; }
.license-search label { display: block; margin-bottom: 6px; }
.license-search input[type=search], .license-search select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--brand-hairline); border-radius: 8px; background: var(--brand-surface); color: var(--brand-text); font: inherit; }
.license-search input[type=submit] { font: inherit; cursor: pointer; }
.license-table-scroll { overflow-x: auto; border: 1px solid var(--brand-hairline); border-radius: 12px; }
.license-table { width: 100%; border-collapse: collapse; text-align: left; }
.license-table th, .license-table td { padding: 12px 16px; border-bottom: 1px solid var(--brand-hairline); vertical-align: top; }
.license-table thead { background: var(--brand-surface); }
.license-table th[scope=row] { font-weight: 500; }
.license-table th[scope=row] a { display: inline-flex; align-items: center; min-height: 44px; }
.license-table td small { display: block; max-width: 28ch; color: var(--brand-text-muted); overflow-wrap: anywhere; }
.license-version { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.license-text, .license-provenance pre { max-height: 65vh; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 20px; background: var(--brand-surface); border: 1px solid var(--brand-hairline); border-radius: 12px; font: 13px/1.65 ui-monospace, monospace; }
.license-provenance summary { display: list-item; min-height: 44px; padding-block: 10px; cursor: pointer; }
.license-files [aria-current=page] { text-decoration-thickness: 3px; }
@media (max-width: 560px) { .license-search > div, .license-search input[type=submit] { flex: 1 1 100%; } .license-table th, .license-table td { padding: 8px 12px; } }
.license-files { max-height: 240px; overflow: auto; padding-block: 8px; border-block: 1px solid var(--brand-hairline); }
.license-page select:focus-visible, .license-page summary:focus-visible, .license-page [tabindex]:focus-visible { outline: 2px solid var(--brand-focus); outline-offset: 2px; }
