.observatory-page { background: radial-gradient(ellipse at 65% 15%, #14231d55, transparent 45%), var(--bg); }
.observatory-page .site-header { position: relative; }
.observatory-main { padding-top: 60px; padding-bottom: 20px; max-width: 1680px; }
.observatory-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.observatory-intro h1 { font-size: clamp(48px, 5.4vw, 90px); line-height: 1; margin-top: 16px; }
.observatory-intro .eyebrow { font-size: 9px; }
.intro-description { flex-shrink: 0; padding-bottom: 5px; }
.intro-description p { font-size: 11px; line-height: 1.8; }
.mode-disclaimer { display: block; font-size: 8px; color: var(--lime); margin-top: 14px; }
.experiment-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 20px; }
.experiment-tabs button { display: flex; align-items: center; gap: 16px; padding: 19px 21px; border: 0; border-right: 1px solid var(--line); background: #0d1312; text-align: left; font-size: 12px; color: #c0c9bf; }
.experiment-tabs button:last-child { border-right: 0; }
.experiment-tabs button:hover { background: #19221a; }
.experiment-tabs button[aria-pressed="true"] { background: #d8fa77; color: #172013; }
.experiment-tabs button[aria-pressed="true"] small, .experiment-tabs button[aria-pressed="true"] .tab-number { color: #43532e; }
.experiment-tabs button small { display: block; font-family: var(--mono); font-size: 7px; letter-spacing: .065em; margin-top: 4px; color: #95a18e; }
.tab-number { color: #91a180; font-size: 17px; }
.tab-arrow { margin-left: auto; font-size: 20px; opacity: .35; }
[aria-pressed="true"] .tab-arrow { opacity: 1; }
.observatory-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
.scene-panel, .gate-panel, .reading-panel, .report-panel { border: 1px solid var(--line); background: #0c1211; min-width: 0; }
.scene-heading { padding: 23px 25px 15px; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.scene-heading .mono { font-size: 8px; }
.scene-heading h2 { font-family: var(--body); font-size: 16px; font-weight: 400; line-height: 1.4; letter-spacing: -.015em; margin-top: 8px; }
.playback-state { display: flex; align-items: center; gap: 7px; color: #a2b28d; padding-top: 4px; white-space: nowrap; }
.playback-state::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.playback-state.is-paused::before { background: #78816d; }
.canvas-wrap { position: relative; background: radial-gradient(ellipse at 55% 50%, #17302866, transparent 70%); }
#scene { width: 100%; height: 390px; display: block; }
.canvas-corner { position: absolute; width: 8px; height: 8px; border: solid #8da27c; pointer-events: none; }
.corner-tl { top: 0; left: 16px; border-width: 1px 0 0 1px; }
.corner-br { bottom: 0; right: 16px; border-width: 0 1px 1px 0; }
.scene-legend { padding: 15px 24px 18px; display: flex; align-items: center; gap: 19px; flex-wrap: wrap; color: #aebba4; font-size: 10px; }
.scene-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.particle-key { display: inline-block; width: 6px; height: 6px; }
.electron-key { border-radius: 50%; background: #85e2d9; box-shadow: 0 0 8px #85e2d955; }
.ion-key { background: #efbf7c; }
.field-key { display: inline-block; width: 15px; height: 1px; background: #d8fa77; }
.scene-legend .scale-note { margin-left: auto; font-size: 6px; color: #92a08c; }
.scene-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #111910; font-size: 10px; }
.control-button { border: 1px solid #45543b; background: #192116; padding: 9px 13px; min-height: 36px; font-size: 10px; color: #d5dfc9; }
.control-button:hover { border-color: var(--lime); }
.control-primary { background: var(--lime); color: #172013; border-color: var(--lime); min-width: 72px; }
.speed-control { display: flex; align-items: center; gap: 10px; margin: 0 auto 0 6px; color: #c1cbb6; }
.speed-control input { width: 82px; min-height: 28px; }
.speed-control output { min-width: 30px; font-family: var(--mono); font-size: 9px; }
.check-control { display: flex; align-items: center; gap: 5px; color: #c1cbb6; cursor: pointer; }
.check-control input { accent-color: var(--lime); width: 13px; height: 13px; }
.scene-explanation { padding: 22px 25px; }
.scene-explanation .mono { font-size: 8px; }
.scene-explanation p { margin-top: 10px; font-size: 12px; line-height: 1.9; min-height: 46px; }
.canvas-message { padding: 20px; color: #efbf7c; font-size: 12px; }
.gate-panel { padding: 25px 22px; background: linear-gradient(150deg, #1a2416, #0e1511 50%); }
.panel-eyebrow { display: flex; justify-content: space-between; color: #a3b08c; font-size: 7px; }
.gate-panel h2 { font-size: 36px; line-height: 1.1; margin: 20px 0 16px; }
.gate-badge { font-size: 7px; color: #ead0a2; border: 1px solid #c6a97844; background: #c6a97808; padding: 7px 8px; width: fit-content; }
.gate-intro { font-size: 10px; line-height: 1.85; margin-top: 15px; }
.gate-checks { list-style: none; padding: 0; margin: 19px 0 22px; }
.gate-checks li { padding: 10px 0; border-bottom: 1px solid #303a2e; display: flex; align-items: baseline; gap: 6px; justify-content: space-between; font-size: 10px; color: #b4bfb0; }
.check-status { font-family: var(--mono); font-size: 7px; color: #b6a88c; text-transform: uppercase; }
.gain-target { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gain-target .mono { font-size: 7px; color: #b6c0ab; }
.target-number { font-family: var(--display); font-size: 66px; color: var(--lime); line-height: 1.05; margin-top: 8px; }
.target-number > span { font-size: 28px; padding-left: 4px; }
.gain-formula { color: #bcc9aa; font-size: 10px; max-width: 96px; line-height: 1.9; }
.gate-footnote { font-size: 9px; line-height: 1.85; margin-top: 15px; }
.gate-panel .text-link { font-size: 9px; margin-top: 16px; gap: 18px; }
.observatory-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.reading-panel, .report-panel { padding: 29px; }
.reading-panel > .mono, .report-heading .mono { font-size: 8px; }
.observatory-bottom h2 { font-size: 37px; line-height: 1.12; margin: 17px 0; }
.observatory-bottom p { font-size: 11px; line-height: 1.9; }
.experiment-flow { display: flex; list-style: none; padding: 0; margin: 24px 0; gap: 8px; }
.experiment-flow li { flex: 1; padding: 10px 8px; border: 1px solid var(--line); color: #bfcdb2; font-size: 9px; line-height: 1.6; }
.experiment-flow span { display: block; font-family: var(--mono); color: var(--lime); margin-bottom: 7px; font-size: 8px; }
.reading-panel .reading-note { color: #95a18e; font-size: 10px; }
.reading-panel .text-link { margin-top: 22px; font-size: 10px; }
.report-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.report-heading .local-label { font-size: 6px; color: #a3b58e; }
.drop-zone { display: flex; align-items: center; gap: 20px; border: 1px dashed #566446; padding: 22px; margin-top: 22px; background: #d8fa7703; }
.drop-zone.is-dragging { background: #d8fa7715; border-color: var(--lime); }
.upload-mark { font-size: 35px; color: var(--lime); }
.drop-zone > div { min-width: 0; }
.file-label { display: block; color: #dbe8ca; font-size: 12px; cursor: pointer; }
.drop-hint { display: block; color: #a1ad96; font-size: 9px; margin-top: 4px; }
#report { display: block; max-width: 100%; font-size: 10px; color: #a1ad96; margin-top: 12px; }
#report::file-selector-button { background: #26301e; border: 1px solid #566446; color: #e2edcf; padding: 7px 11px; margin-right: 10px; cursor: pointer; font: inherit; }
.report-status-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 14px; }
.report-status-row #report-status { font-size: 9px; color: #bbc8ae; overflow-wrap: anywhere; }
.clear-report { color: var(--lime); font-size: 9px; padding: 3px 0; border: 0; border-bottom: 1px solid #536048; background: none; white-space: nowrap; }
.report-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0; margin: 18px 0; }
.report-summary > div { border: 1px solid var(--line); padding: 12px; min-width: 0; }
.report-summary dt { font: 8px var(--mono); color: #96a48b; line-height: 1.5; }
.report-summary dd { margin: 6px 0 0; font-size: 12px; overflow-wrap: anywhere; color: #d9e1ce; }
.report-body { max-height: 320px; margin: 16px 0 0; overflow: auto; overflow-wrap: anywhere; white-space: pre-wrap; background: #080d0b; border: 1px solid var(--line); padding: 15px; font: 10px/1.9 var(--mono); color: #c0ceb3; }
.report-panel .report-footnote { font-size: 9px; color: #95a18e; margin-top: 18px; }
.observatory-outro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 35px 0 25px; }
.observatory-outro > .mono { font-size: 8px; color: #95a18e; }
@media (min-width: 1550px) { #scene { height: 440px; } }
@media (max-width: 1200px) {
  .observatory-intro { align-items: flex-start; }
  .observatory-intro h1 { font-size: 62px; max-width: 520px; }
  .intro-description { padding-top: 28px; }
  .observatory-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 16px; }
  .experiment-tabs button { padding: 17px 14px; gap: 10px; }
  .scene-controls { gap: 12px; }
  .scene-legend .scale-note { display: none; }
  .speed-control { margin-right: 0; }
}
@media (max-width: 950px) {
  .observatory-main { padding-top: 40px; }
  .observatory-intro { display: block; }
  .observatory-intro h1 { max-width: none; font-size: 8vw; }
  .intro-description { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; }
  .mode-disclaimer { margin-top: 0; }
  .observatory-layout { grid-template-columns: 1fr; }
  .gate-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 35px; padding: 25px; }
  .gate-panel > :not(.gate-checks) { grid-column: 1; }
  .gate-panel .gate-checks { grid-column: 2; grid-row: 1 / 8; margin: 0; }
  .gate-panel h2 { margin-top: 14px; }
  .gain-target { justify-content: flex-start; gap: 30px; margin-top: 14px; }
  .observatory-bottom { grid-template-columns: 1fr; }
  .gate-panel .text-link { width: fit-content; }
}
@media (max-width: 600px) {
  .observatory-intro { margin-bottom: 26px; }
  .observatory-intro h1 { font-size: clamp(42px, 12vw, 70px); line-height: .97; }
  .observatory-intro h1 .outline-word { display: block; margin-top: 4px; }
  .observatory-intro .eyebrow { font-size: 7px; }
  .intro-description { display: block; padding-top: 18px; }
  .mode-disclaimer { margin-top: 15px; font-size: 7px; }
  .experiment-tabs { grid-template-columns: 1fr 1fr; }
  .experiment-tabs button { padding: 16px 12px; font-size: 11px; gap: 9px; }
  .experiment-tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .experiment-tabs button:nth-child(2) { border-right: 0; }
  .experiment-tabs button small { font-size: 6px; }
  .tab-number { font-size: 13px; }
  .tab-arrow { font-size: 17px; }
  .scene-heading { padding: 20px 17px 13px; gap: 8px; }
  .scene-heading h2 { font-size: 13px; }
  .scene-heading .mono { font-size: 6px; }
  #scene { height: 310px; }
  .scene-legend { padding: 14px 17px; gap: 16px; font-size: 9px; }
  .scene-controls { padding: 15px; gap: 12px 9px; }
  .speed-control { margin-left: 0; gap: 6px; }
  .speed-control input { width: 55px; }
  .control-button { padding: 9px 10px; }
  .control-primary { min-width: 60px; }
  .scene-explanation { padding: 20px 17px; }
  .scene-explanation p { font-size: 11px; }
  .gate-panel { display: block; padding: 24px; }
  .gate-panel .gate-checks { margin: 18px 0; }
  .gate-checks li { font-size: 11px; padding-block: 12px; }
  .reading-panel, .report-panel { padding: 23px; }
  .report-heading { align-items: flex-start; }
  .report-heading .local-label { max-width: 60px; text-align: right; }
  .observatory-bottom h2 { font-size: 32px; }
  .drop-zone { padding: 18px 13px; gap: 12px; }
  .upload-mark { font-size: 25px; }
  .observatory-outro { flex-direction: column; align-items: flex-start; gap: 10px; }
  .observatory-outro > .mono { font-size: 7px; }
}
@media (max-width: 380px) {
  .observatory-main { padding-inline: 16px; }
  .tab-arrow { display: none; }
  .experiment-tabs button { padding-inline: 10px; }
  .scene-controls .speed-control { flex-basis: 100%; }
  .scene-controls .speed-control input { width: 90px; }
}
