/* Oratio civic astrolabe. Brass pixels preserve the adopted concept; data and
   ship zones remain independent, accessible elements. */
.lounge-console {
  --lounge-top: clamp(84px, 14dvh, 124px);
  --lounge-news-width: min(41vw, 480px);
  grid-template-columns: var(--lounge-news-width) min(44vw, 560px, calc(100dvh - 350px));
}
.orbital-display {
  --orb-gold: #d1b078; --orb-gold-dim: #8c744b; --orb-cyan: #b6f1f1;
  --orb-amber: #ffd18b; --orb-ink: #030e14; --orb-muted: #9bafb6;
  container-type: inline-size;
  min-block-size: 0; max-height: none; overflow: visible; border: 0;
  background: none; box-shadow: none; color: #e5ecea;
  font: 13px/1.5 "Yu Gothic UI", Meiryo, sans-serif;
}
.orbital-display *, .orb-detail-dialog * { box-sizing: border-box; }
.orb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; padding: 0 5%; }
.orbital-display .orb-top h2 { margin: 0; font: 12px/1.4 "Share Tech Mono", Consolas, monospace; letter-spacing: .13em; color: #e8d7b6; }
.orb-top h2 span { color: #b2bbc0; font: 11px/1.4 "Yu Gothic UI", sans-serif; letter-spacing: .1em; }
#orb-motion { min-height: 30px; padding: 4px 7px; color: #b1c1c4; font-size: 11px; border: 1px solid #aa926333; border-radius: 3px; background: #030e14cc; white-space: nowrap; }
#orb-motion:hover { color: #f6e5bd; border-color: #aa9263aa; }
#orb-motion:disabled { opacity: .75; cursor: default; }
.orb-message { margin: 4px 7%; color: var(--orb-amber); font-size: 12px; }
.orb-instrument { position: relative; width: 100%; aspect-ratio: 1; isolation: isolate; }
.orb-brass { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; z-index: 2; }
.orb-inner-glass { position: absolute; inset: 12% 13%; border-radius: 50%; background: radial-gradient(ellipse, #07202be8 0, #020b12db 64%, transparent 70%); z-index: -1; }
.orb-signature { position: absolute; left: 28%; right: 28%; top: 19%; text-align: center; color: #c7b68e; font: 10px/1.2 "Share Tech Mono", monospace; letter-spacing: .24em; }
.orb-motion-track { position: absolute; inset: 13%; border: 1px solid transparent; border-top-color: #a8eaf15c; border-right-color: #a8eaf122; border-radius: 50%; transform: rotate(-27deg); animation: orb-revolve 38s linear infinite; pointer-events: none; z-index: 1; }
.orb-motion-track span { position: absolute; left: calc(50% - 3px); top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #d8ffff; box-shadow: 0 0 8px 2px #aeffffaa, 0 0 20px #92eaf055; }
.orb-counter-orbit { position: absolute; inset: 24% 6%; border: 1px solid #d4b2733a; border-radius: 50%; transform: rotate(-27deg); pointer-events: none; z-index: 0; }
.orb-counter-orbit:after { content: ""; position: absolute; left: 11%; top: 13%; width: 4px; height: 4px; border-radius: 50%; background: var(--orb-gold); box-shadow: 0 0 7px #e1c28b; animation: orb-breathe 5s ease-in-out infinite; }
.orb-pod { position: absolute; top: 12%; z-index: 4; width: 43%; padding: 11px 17px 10px; min-width: 0; background: linear-gradient(125deg, #0a2027fa, #02080ded); border: 1px solid #ac8b53; border-radius: 52% 52% 22px 22px / 35px 35px 22px 22px; box-shadow: inset 0 0 0 2px #050c11, inset 0 0 0 3px #9c804d55, 0 7px 12px #0006; color: #e9f1ef; text-align: left; transition: transform .23s ease, box-shadow .23s, border-color .23s; }
.orb-population { left: 0; transform: rotate(-3deg); }
.orb-market { right: 0; transform: rotate(3deg); }
.orb-pod:before { content: ""; position: absolute; bottom: 12px; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #f5deb0, #836537 55%, #221d15 75%); border: 1px solid #be9f67; }
.orb-market:before { left: auto; right: -4px; }
.orb-pod:hover, .orb-pod:focus-visible { transform: translateY(-5px) rotate(0); border-color: #f5d9a4; box-shadow: inset 0 0 0 2px #050c11, inset 0 0 0 3px #ad915a, 0 10px 24px #83dce41a; }
.orb-pod:active { transform: translateY(-1px); }
.orb-pod-label { display: flex; justify-content: space-between; gap: 6px; margin-bottom: 1px; color: #e1d5b8; font-size: 12px; }
.orb-pod-label>span { color: #9c8760; }
.orb-pod>strong { display: block; font: 30px/1.25 "Share Tech Mono", Consolas, monospace; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 400; }
.orb-pod-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--orb-cyan); font: 11px/1.5 "Share Tech Mono", "Yu Gothic UI", sans-serif; white-space: nowrap; }
.orb-pod-bottom svg { width: 35%; height: 20px; flex: none; overflow: visible; }
.orb-pod svg polyline, .orb-detail-trend polyline { stroke: #a8eff0; stroke-width: 1.5; stroke-linejoin: round; }
.orb-pod svg circle, .orb-detail-trend circle { fill: #d0ffff; }
.orb-map { position: absolute; z-index: 3; left: 9%; top: 32%; width: 82%; height: 37%; }
.orb-ship { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 5px #80e5ef22); }
.orb-ship path, .orb-ship circle, .orb-ship ellipse { vector-effect: non-scaling-stroke; }
.orb-map-zone { stroke: #8cdae1; stroke-width: .85; fill: none; transition: fill .35s, stroke .35s; }
.orb-map-zone>path:not([fill]) { fill: none; }
.orb-space-zone { stroke: #a9dbe022; stroke-dasharray: 2 8; }
.orb-zone-halo { opacity: 0; stroke-dasharray: 2 4; }
.orb-map-zone.has-alert { stroke: var(--orb-amber); fill: #f9ba4d22; }
.orb-map-zone.has-alert .orb-zone-halo { opacity: 1; fill: none; animation: orb-alert-pulse 3.6s ease-in-out infinite; }
.orb-map-zone.has-warning { stroke: #ff907f; fill: #ef5f5322; }
.orb-map-leader { opacity: 0; fill: none; stroke: #eec379; stroke-width: .9; }
.orb-map-leader.is-visible { opacity: 1; }
.orb-map-leader circle { fill: #ffd99a; }
.orb-map-callout { position: absolute; left: 20%; top: 2%; max-width: 70%; color: #f3cd8b; font-size: 11px; line-height: 1.4; padding: 2px 5px; background: #031019ca; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orb-map-note { position: absolute; bottom: -1%; left: 12%; right: 12%; color: #829ea5; font-size: 10px; text-align: center; letter-spacing: .05em; }
.orb-scan { position: absolute; inset: 17% 10% 15%; clip-path: polygon(0 50%,100% 0,78% 35%,84% 65%,100% 100%); pointer-events: none; overflow: hidden; }
.orb-scan:after { content: ""; display: block; width: 22%; height: 100%; background: linear-gradient(90deg, transparent, #a1e9ec18, transparent); animation: orb-scan 10s linear infinite; }
.orb-zone-button { position: absolute; display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; transform: translate(-50%, -50%); }
.orb-zone-button>span { width: 6px; height: 6px; border-radius: 50%; border: 1px solid #83aeb8; background: #0b2934; transition: box-shadow .2s, transform .2s; }
.orb-zone-button:hover>span, .orb-zone-button:focus-visible>span { box-shadow: 0 0 0 7px #b4eced24, 0 0 10px #a2eaeb; transform: scale(1.3); }
.orb-zone-button.has-alert>span { background: #ffd18b; border-color: #fff0ce; box-shadow: 0 0 9px #ffcb79; }
.orb-zone-button.has-warning>span { background: #ff907f; border-color: #ffe0d6; }
.orb-zone-city { left: 48.7%; top: 50%; }
.orb-zone-aft { left: 69%; top: 50%; }
.orb-zone-hull { left: 21%; top: 50%; }
.orb-zone-space { left: 80%; top: 12%; }
.orb-chronometer { position: absolute; z-index: 4; left: 27%; right: 20%; top: 73%; padding: 5px 6px 4px; border: 1px solid #a78b57; border-radius: 23px 10px; background: linear-gradient(115deg, #05151beb, #020a11f5); box-shadow: inset 0 0 0 2px #030a0d, inset 0 0 0 3px #c2a26640; text-align: center; }
#orb-calendar { display: block; font-size: 11px; color: #e8d6b7; white-space: nowrap; }
#orb-clock { display: block; color: #e7faf5; font: 31px/1.1 "Share Tech Mono", Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.orb-clock-caption { font-size: 9px; color: #82989d; letter-spacing: .12em; }
.orb-bulletins { margin: -6% 5% 0; z-index: 5; position: relative; background: #030c12ed; border: 1px solid #a68a5559; border-radius: 13px 4px; padding: 7px 10px 6px; box-shadow: inset 0 0 0 2px #040b11, 0 6px 20px #0004; }
.orb-bulletin-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.orb-bulletin-heading h3 { margin: 0; font-size: 11px; font-weight: 400; letter-spacing: .1em; color: #c7b287; }
#orb-alert-count { min-height: 25px; font-size: 11px; color: #bdd1d4; padding: 1px 3px; }
#orb-alert-count:hover { color: #f5d9a4; }
.orb-alert-line { width: 100%; min-height: 32px; display: flex; align-items: center; gap: 9px; padding: 2px 0; font-size: 12px; text-align: left; color: #e9e6d9; }
.orb-alert-line>span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orb-severity { flex: none; color: var(--orb-amber); font-size: 10px; border: 1px solid #e1b26466; padding: 0 4px; border-radius: 2px; }
.severity-warning .orb-severity { color: #ffb1a0; border-color: #ff907f77; }
.orb-alert-arrow { margin-left: auto; color: var(--orb-gold); transition: transform .2s; }
.orb-alert-line:hover .orb-alert-arrow { transform: translate(2px, -2px); }
.orb-alert-empty { margin: 4px 0; color: #a9cdd0; font-size: 12px; }
.orb-asof { margin: 1px 0 0; color: #80969d; font: 10px/1.5 "Share Tech Mono", "Yu Gothic UI", sans-serif; }
.orb-links { display: grid; grid-template-columns: .7fr 1fr 1.5fr; gap: 7px; margin: 9px 5% 0; position: relative; z-index: 5; }
.orb-links button { position: relative; min-height: 41px; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 5px; padding: 7px 10px; border: 1px solid #8e764b; border-radius: 22px 11px; background: linear-gradient(130deg, #102128f0, #030a10ed 75%); color: #e5e5da; font-size: 12px; box-shadow: inset 0 0 0 2px #030b12, inset 0 0 0 3px #b59d6433; text-align: left; transition: transform .2s, border-color .2s, box-shadow .2s; }
.orb-links button span { color: #bcdfdf; transition: transform .2s; }
.orb-links button:hover, .orb-links button:focus-visible { transform: translateY(-3px); border-color: #eed6a1; box-shadow: inset 0 0 0 2px #030b12, inset 0 0 0 3px #c4a66d88, 0 4px 17px #bfdbbe1f; }
.orb-links button:hover span { transform: translateX(3px); }
.orb-links button:active { transform: translateY(1px); }
.orb-detail-dialog { width: min(560px, calc(100vw - 32px)); max-height: min(80dvh, 720px); padding: 22px; border: 1px solid #b0935e; border-radius: 10px; color: #d7e8e8; background: #07131c; box-shadow: 0 20px 80px #000b; font: 14px/1.65 "Yu Gothic UI", Meiryo, sans-serif; }
.orb-detail-dialog::backdrop { background: #010409b3; backdrop-filter: blur(3px); }
.orb-detail-dialog>header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid #c5a46444; }
.orb-detail-dialog>header p { margin: 0 0 4px; color: #bfaa80; font: 11px/1.5 "Share Tech Mono", monospace; letter-spacing: .13em; }
.orbital-display .orb-detail-dialog h2 { font: 400 21px/1.5 "Yu Gothic UI", sans-serif; letter-spacing: .02em; color: #eef5ee; }
.orb-detail-close { min-width: 44px; min-height: 44px; border: 1px solid #a587554d; border-radius: 50%; font-size: 24px; color: #d1b078; }
.orb-detail-close:hover { background: #d1b07815; }
.orb-detail-number { color: #c6f0ed; font: 32px/1.3 "Share Tech Mono", monospace; margin: 20px 0 8px; }
.orb-detail-trend { display: block; width: 100%; height: 100px; margin-top: 12px; }
.orb-detail-meta { color: #9ab0b6; font-size: 12px; margin: 8px 0; }
.orb-detail-dialog table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 12px; }
.orb-detail-dialog th { font-weight: 400; color: #cfbf99; text-align: left; }
.orb-detail-dialog :is(td, th) { padding: 8px 4px; border-bottom: 1px solid #9eaa9730; }
.orb-detail-dialog td:not(:first-child), .orb-detail-dialog th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.orb-alert-record { margin-top: 18px; padding-bottom: 12px; border-bottom: 1px solid #c5a46433; }
.orb-alert-record-kind { font-size: 11px; color: #f1c57f; }
.orb-alert-record h3 { margin: 5px 0; font-size: 16px; color: #f0eee2; }
.orb-alert-record p { margin: 6px 0; }
.orb-disclosure { margin-top: 20px; border-top: 1px solid #c5a46433; padding-top: 16px; font-size: 12px; color: #9ab0b6; }
.orbital-display button:focus-visible { outline: 2px solid #c1eff0; outline-offset: 3px; }
.orb-data-updated .orb-pod>strong { animation: orb-data-flash .65s ease-out; }
.orb-still *, .orb-still *:before, .orb-still *:after { animation-play-state: paused !important; transition-duration: 0s !important; }
.orb-voyage-paused .orb-motion-track, .orb-voyage-paused .orb-counter-orbit:after { animation-play-state: paused; }
@keyframes orb-revolve { to { transform: rotate(333deg); } }
@keyframes orb-breathe { 0%,100% { opacity: .9; } 50% { opacity: .35; } }
@keyframes orb-alert-pulse { 0%,100% { stroke-opacity: .9; } 50% { stroke-opacity: .35; } }
@keyframes orb-scan { from { transform: translateX(-100%); } to { transform: translateX(550%); } }
@keyframes orb-data-flash { from { color: #fff5c8; text-shadow: 0 0 14px #f9d28588; } to { color: #e9f1ef; text-shadow: none; } }
@container (max-width: 470px) {
  .orb-pod { padding: 10px 12px 8px; }
  .orb-pod>strong { font-size: 25px; }
  .orb-pod-label { font-size: 11px; }
  .orb-pod-bottom { font-size: 10px; gap: 3px; }
  .orb-pod-bottom svg { width: 28%; height: 16px; }
  #orb-clock { font-size: 27px; }
  #orb-calendar { font-size: 10px; }
  .orb-map-callout { font-size: 10px; }
  .orb-signature { top: 8%; left: 23%; right: 23%; font-size: 9px; }
  .orb-links button { font-size: 11px; padding-inline: 8px; }
  .orb-top { padding-inline: 3%; }
  .orb-top h2 span { display: none; }
}
@container (max-width: 360px) {
  .orb-pod { padding: 9px 10px 7px; width: 45%; top: 12%; }
  .orb-pod>strong { font-size: 22px; }
  .orb-pod-bottom svg { display: none; }
  .orb-chronometer { left: 23%; right: 16%; }
  .orb-map-callout { max-width: 80%; left: 8%; }
  .orb-map-note { font-size: 9px; }
  .orb-links { gap: 4px; margin-inline: 2%; }
  .orb-links button { font-size: 10px; padding-inline: 7px; }
}
@media (max-width: 760px), (max-aspect-ratio: 29 / 25) {
  .lounge-console { inset-block-start: 43dvh; }
  .orbital-display { max-inline-size: 520px; width: 100%; margin: 20px auto 18px; min-block-size: 0; }
  .orb-top { min-height: 36px; }
  .orb-bulletins { margin-top: -4%; }
  .orb-links button, #orb-alert-count { min-height: 44px; }
  .orb-detail-dialog { padding: 18px; }
  .orb-detail-dialog table { font-size: 11px; }
}
@media (max-height: 700px) and (min-width: 761px) and (min-aspect-ratio: 29 / 25) {
  .lounge-console { --lounge-top: 76px; grid-template-columns: var(--lounge-news-width) min(44vw, 400px); }
  .orbital-display { max-height: calc(100dvh - 150px); overflow: auto; scrollbar-width: thin; scrollbar-color: #8d774f #050f15; }
}
@media (prefers-reduced-motion: reduce) {
  .orbital-display *, .orbital-display *:before, .orbital-display *:after { animation: none !important; transition: none !important; }
}
