/*
 * Reference-alignment layer, 2026-09-19.
 * Restores the strong LCARS framing in Jon's approved Steve OS / Steve Media
 * mockups. NOT the rejected all-neon jewel theme. Presence is unchanged.
 * No framework, fonts, animation, data, or network dependencies.
 */
:root {
  --bg: #02050b;
  --surface: #06101e;
  --surface-2: #0b192b;
  --border: #31567b;
  --text: #edf4ff;
  --muted: #a9b9d2;
  --accent: #7da9ff;
  --accent-strong: #638dff;
  --cyan: #6ed2ef;
  --orange: #ffb465;
  --purple: #afa0f2;
  --pink: #e69acb;
  --display: 'Bahnschrift Condensed','Arial Narrow','Nimbus Sans Narrow','Liberation Sans Narrow','DejaVu Sans Condensed',sans-serif;
}
body { background: var(--bg); }
h1,h2,h3,.display { font-family: var(--display); }
/* Wide, opaque rails. Glows belong to Steve, not to every interface control. */
.rail { height: 11px; gap: 5px; }
.rail span { min-height: 100%; }
.rail span:nth-child(3) { background: var(--accent-strong); }
.panel { background: #050d18; border-color: var(--border); border-radius: 17px; }
.panel-head { background: var(--orange); color: #0a101b; border: 0; padding: 10px 20px; }
.panel-head h2,.panel-head h3 { color: inherit; text-transform: uppercase; font-weight: 700; }
.btn-primary,.primary-button { background: var(--orange); border-color: var(--orange); color: #101421; }
.btn-primary:hover,.primary-button:hover { background: #ffc589; }
.btn,.secondary-button,.icon-button { border-radius: 8px; }
:focus-visible { outline: 3px solid #91e5ff !important; outline-offset: 4px; }
/* PUBLIC HOUSE: the same family, a quiet private household rather than a console. */
.site-wrap { max-width: 1720px; padding: 0 22px 24px; }
.site-header { padding: 17px 0; gap: 24px; min-height: 96px; }
.site-header .brand { padding-left: 69px; position: relative; gap: 13px; }
.site-header .brand::before { content: ''; position: absolute; left: 0; top: -11px; bottom: -11px; width: 55px; border-radius: 25px 0 0 25px; background: linear-gradient(90deg,var(--orange) 0 61%,transparent 61% 68%,var(--purple) 68% 85%,transparent 85% 90%,var(--accent-strong) 90%); }
.site-header .brand img { width: 46px; height: 46px; }
.site-header .brand strong { font-family: var(--display); font-size: 26px; letter-spacing: .045em; font-weight: 650; }
.site-header .brand small { color: var(--cyan); font-size: 9px; }
.site-nav { border: 1px solid var(--border); border-radius: 17px; padding: 5px 9px; }
.site-nav>a { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }
.site-nav .steve-signin { border-left: 1px solid var(--border); border-radius: 0; padding: 0 8px 0 20px; }
.header-rail { height: 10px; margin-bottom: 18px; }
.home-hero { border: 1px solid #7193be; border-left: 9px solid var(--orange); border-radius: 32px 20px 32px 20px; min-height: 470px; }
.home-hero::before { width: 116px; height: 13px; background: var(--orange); }
.hero-art { opacity: .97; }
.site-wrap .hero-copy { padding: 51px 43px; }
.site-wrap .hero-copy h1 { font-family: var(--display); font-size: clamp(46px,5vw,78px); font-weight: 500; letter-spacing: .005em; }
.site-wrap .hero-intro { max-width: 510px; }
.destination-card { border-color: #3d698d; border-left: 5px solid var(--orange); border-radius: 18px 18px 18px 6px; min-height: 230px; }
.destination-card:nth-child(2) { border-left-color: var(--purple); }
.destination-card:nth-child(3) { border-left-color: var(--accent-strong); }
.destination-card .section-kicker { color: var(--orange); }
.destination-card:nth-child(2) .section-kicker { color: var(--purple); }
.destination-card:nth-child(3) .section-kicker { color: var(--cyan); }
.destination-card h2 { font-family: var(--display); font-weight: 600; font-size: 26px; }
.quiet-banner { border: 1px solid var(--border); border-left: 9px solid var(--purple); border-radius: 22px 8px 22px 8px; padding: 23px; background: #05101c; }
.site-footer { padding: 29px 18px 23px; border-top: 1px solid var(--border); border-left: 14px solid var(--orange); border-radius: 25px 0 0 12px; }
.site-footer .brand strong { font-family: var(--display); font-size: 20px; }
.footer-rail { height: 9px; }
.page-intro h1 { font-weight: 550; }
.gallery-toolbar { border-bottom: 7px solid var(--purple); }
.creator-chips b { border-color: var(--accent); background: #0a1525; }
.filter-tabs button { background: #081321; border-color: var(--border); }
.presence-stage { border-left: 7px solid var(--orange); background: #020811; }
.presence-dock { border-color: #647aab; border-left: 5px solid var(--purple); background: #030c18; }
.chat-panel { border-right: 5px solid var(--purple); }
.age-dialog { border-color: #667daa; border-left: 10px solid var(--orange); border-radius: 30px 16px 30px 16px; }
/* PRIVATE STEVE OS: stout L-frame + consistent segmented navigation. */
.shell { --os-nav: 228px; grid-template-rows: 98px 1fr; padding-bottom: 39px; }
.os-nav { width: var(--os-nav); background: #02060d; border-right: 0; padding: 25px 12px 53px 36px; }
.os-nav::before { width: 22px; top: 106px; bottom: 48px; height: auto; border-radius: 26px 0 0 26px; background: linear-gradient(to bottom,var(--orange) 0 13%,#02050b 13% 14%,var(--pink) 14% 28%,#02050b 28% 29%,var(--purple) 29% 48%,#02050b 48% 49%,var(--accent-strong) 49% 68%,#02050b 68% 69%,var(--purple) 69% 88%,#02050b 88% 89%,var(--orange) 89%); }
.os-nav .brand { position: relative; margin: -13px -3px 0 -22px; padding: 13px 0 12px 10px; min-height: 75px; gap: 5px; }
.os-nav .brand::before { content: ''; position: absolute; left: -14px; top: 0; bottom: 0; width: 15px; border-radius: 26px 0 0 26px; background: var(--orange); }
.os-nav .brand>span { font-family: var(--display); font-size: 29px; font-weight: 700; letter-spacing: -.015em; line-height: 1; white-space: nowrap; }
.os-nav .brand img { width: 29px; height: 37px; }
.os-nav .brand small { font-size: 8px; letter-spacing: .085em; color: var(--cyan); margin-top: 9px; }
.nav-section-label { font-family: var(--display); margin: 18px 2px 11px; font-size: 10px; letter-spacing: .12em; color: var(--cyan); }
.os-nav nav { gap: 5px; }
.os-nav nav button { border: 1px solid #223957; padding: 11px 9px; min-height: 45px; background: #081626; color: #c3cbef; border-radius: 3px 9px 9px 3px; font-family: var(--display); font-size: 14px; line-height: 1.15; font-weight: 600; gap: 9px; }
.os-nav nav button .icon { width: 19px; height: 19px; }
.os-nav nav button::before { content: ''; position: absolute; left: -9px; top: -1px; bottom: -1px; width: 6px; background: var(--purple); border-radius: 4px 0 0 4px; }
.os-nav nav button:nth-child(3n)::before { background: var(--accent-strong); }
.os-nav nav button[aria-current=page] { color: #111522; background: var(--orange); border-color: var(--orange); }
.os-nav nav button[aria-current=page]::before { background: var(--orange); }
.os-nav nav button[aria-current=page] .nav-tick { background: #1d2841; }
.nav-bottom { gap: 14px; padding-top: 22px; }
.nav-bottom .btn { border-color: #335377; }
.app-bar { background: #02050b; padding: 19px 25px 27px; align-items: center; height: 98px; gap: 12px; }
.app-bar::before { content: ''; position: absolute; left: 25px; right: 25px; top: 12px; height: 7px; border-radius: 3px 9px 9px 3px; background: linear-gradient(to right,var(--accent-strong) 0 72%,#02050b 72% 73%,var(--purple) 73% 88%,#02050b 88% 89%,var(--orange) 89%); }
.app-bar::after { left: 25px; right: 25px; height: 11px; border-radius: 0 18px 0 0; background: linear-gradient(to right,var(--orange) 0 17%,#02050b 17% 17.6%,var(--accent-strong) 17.6% 65%,#02050b 65% 65.6%,var(--purple) 65.6% 89%,#02050b 89% 89.6%,var(--orange) 89.6%); }
.app-title { font-family: var(--display); font-size: 23px; line-height: 1.1; font-weight: 600; text-transform: uppercase; color: #bad1ff; letter-spacing: .015em; }
.app-actions { align-items: center; }
.header-presence { min-width: 100px; }
.header-presence steve-presence { width: 53px; height: 53px; }
.app-main { padding: 20px 25px 49px; }
.view { max-width: 1780px; }
.os-bottom-rail { left: 228px; height: 31px; padding: 9px 24px; background: #03080f; border-top: 4px solid var(--purple); color: var(--cyan); }
.os-bottom-rail::after { width: 24px; border-radius: 0 0 15px 0; }
/* The homepage follows the reference: orb + greeting, with live status at right. */
#home-view { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(290px,1fr); column-gap: 17px; row-gap: 15px; align-items: stretch; }
#home-view>.os-hero { grid-column: 1; grid-row: 1; border: 1px solid #5f78a5; border-left: 9px solid var(--orange); border-bottom: 7px solid var(--purple); border-radius: 25px 16px 22px 6px; margin: 0; padding: 19px 17px 23px; display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); gap: 8px; min-height: 425px; background: #020811; }
#home-view .hero-orbit { grid-column: 1; grid-row: 1; width: 100%; height: auto; min-height: 300px; }
#home-view .hero-orbit steve-presence { position: relative; top: auto; width: 100%; height: auto; aspect-ratio: 1; max-width: 435px; }
#home-view .presence-caption { position: static; margin-top: -6px; display: grid; justify-items: center; gap: 1px; }
#home-view .presence-caption .eyebrow { margin: 0; color: var(--cyan); }
#home-view .hero-copy { grid-column: 2; grid-row: 1; padding: 15px 5px; min-width: 0; }
#home-view .hero-copy .eyebrow { font-size: 9px; line-height: 1.65; margin-bottom: 12px; }
#home-view .hero-copy h1 { margin: 0 0 19px; font-family: var(--display); font-size: 48px; font-weight: 650; letter-spacing: -.01em; line-height: 1; color: var(--orange); }
#home-view .hero-copy h1 small { display: block; font-size: 19px; margin-top: 11px; color: var(--cyan); letter-spacing: 0; font-weight: 500; }
#home-view .hero-description { padding: 16px; border: 1px solid #395b86; border-radius: 12px; color: #d6e3f8; background: #061020; font-size: 13px; line-height: 1.8; max-width: none; }
#home-view .hero-buttons { margin: 17px 0 14px; gap: 9px; }
#home-view .hero-buttons .btn { padding: 10px 13px; font-size: 12px; }
#home-view .hero-connection { font-size: 10px; line-height: 1.7; }
#home-view>.home-lower { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 13px; margin: 0; }
#home-view>.home-lower .panel { border: 1px solid #476a90; border-left: 6px solid var(--purple); border-radius: 16px 12px 16px 7px; padding: 17px 17px 12px; flex: 1 0 auto; }
#home-view>.home-lower .panel:first-child { border-left-color: var(--orange); }
#home-view .home-lower h2 { color: var(--accent); font-family: var(--display); text-transform: uppercase; font-weight: 650; font-size: 19px; }
#home-view .home-lower .section-heading { gap: 9px; margin-bottom: 6px; }
#home-view .home-lower .text-button { padding: 5px; min-height: 32px; }
#home-view .home-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 10px 0; }
#home-view .home-metric { border-bottom: 1px solid #223e60; padding: 5px 0 9px; }
#home-view .home-metric strong { font-size: 25px; line-height: 1.2; color: #d3dcff; }
#home-view .home-metric span { font-size: 10px; margin-top: 5px; }
#home-view .small-note { margin: 10px 0 0; font-size: 10px; }
#home-view .home-models #home-models { margin: 13px 0 9px; }
#home-view .home-model-row { margin: 9px 0; font-size: 11px; border-bottom: 1px solid #1c3551; padding-bottom: 7px; }
#home-view>.home-command-strip { grid-column: 1/-1; grid-row: 2; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 0; }
.home-command-strip .btn { min-height: 44px; font-size: 13px; font-family: var(--display); background: #091c31; border-color: #3e699d; }
.home-command-strip .btn:first-child { background: var(--orange); border-color: var(--orange); color: #101522; }
#home-view>.section-heading { grid-column: 1/-1; grid-row: 3; margin: 5px 0 0; padding: 11px 15px; background: var(--orange); color: #121826; border-radius: 18px 7px 18px 0; }
#home-view>.section-heading h2 { text-transform: uppercase; font: 650 20px var(--display); }
#home-view>.section-heading .muted { color: #19213a; }
#home-view>.workspace-grid { grid-column: 1/-1; grid-row: 4; margin: 0; }
.workspace-card { background: #050e1c; border: 1px solid #45678d; border-left: 6px solid var(--accent-strong); border-radius: 15px 10px 15px 4px; padding: 20px; }
.workspace-card:nth-child(2) { border-left-color: var(--orange); }
.workspace-card:nth-child(3) { border-left-color: var(--purple); }
.workspace-card::before { display: none; }
.workspace-card h3 { font-family: var(--display); font-size: 24px; }
.workspace-card>.eyebrow { font-size: 10px; }
/* Existing operational controls, same IDs/contracts, more definite framing. */
.view>.card,.steve-chat-panel,.steve-history-panel { border: 1px solid #456586; border-left: 7px solid var(--purple); border-radius: 19px 12px 19px 5px; background: #050e1c; }
.view>.card:nth-of-type(even) { border-left-color: var(--orange); }
.card .section-title { display: block; background: var(--orange); color: #161622; border-radius: 10px 5px 10px 0; padding: 9px 13px; font-size: 16px; font-weight: 650; margin-bottom: 18px; letter-spacing: .025em; }
.page-intro { padding: 8px 0 17px; margin-bottom: 18px; border-bottom: 7px solid var(--purple); border-radius: 0 0 21px 0; }
.page-intro h1 { font-family: var(--display); text-transform: uppercase; color: #b3cbff; font-size: 34px; }
.page-intro .eyebrow { color: var(--orange); }
.metric { background: #0a1728; border-color: #27496d; }
.metric-value { color: #dae1ff; }
.new-phase-button { min-height: 46px; font-size: 13px; }
body[data-portal-auth=false] .os-bottom-rail { left: 0; }
body[data-portal-auth=false] .app-bar { padding-left: 35px; }
body[data-portal-auth=false] .app-title { color: var(--orange); }
body[data-portal-auth=false] .login-card { border-left: 9px solid var(--orange); }
/* Tablet/mobile reflow, never a scaled-down desktop screenshot. */
@media(min-width:1650px) {
  #home-view>.os-hero { grid-template-columns: 1.16fr 1fr; min-height: 445px; }
  #home-view .hero-copy h1 { font-size: 60px; }
}
@media(max-width:1240px) and (min-width:901px) {
  .shell { --os-nav: 205px; }
  .os-nav { padding-left: 32px; }
  .os-nav .brand>span { font-size: 26px; }
  .os-nav nav button { font-size: 13px; }
  .app-main { padding-left: 17px; padding-right: 17px; }
  .os-bottom-rail { left: 205px; }
  #home-view { grid-template-columns: minmax(0,1.6fr) minmax(255px,1fr); gap: 12px; }
  #home-view>.os-hero { grid-template-columns: 1fr; padding: 12px 18px 20px; }
  #home-view .hero-orbit { grid-column: 1; grid-row: 1; min-height: 230px; max-width: 270px; margin: auto; }
  #home-view .hero-copy { grid-column: 1; grid-row: 2; text-align: center; padding: 12px 0 0; }
  #home-view .hero-copy h1 { font-size: 34px; margin-bottom: 12px; }
  #home-view .hero-copy .eyebrow { display: none; }
  #home-view .hero-buttons { justify-content: center; }
  #home-view .hero-description { padding: 10px; }
  #home-view .hero-connection { justify-content: center; }
}
@media(max-width:1050px) {
  .site-header .brand strong { font-size: 22px; }
  .site-header .brand img { display: none; }
  .site-header .brand { padding-left: 53px; }
  .site-header .brand::before { width: 40px; }
  .site-nav>a { font-size: 12px; padding-left: 12px; padding-right: 12px; }
}
@media(max-width:900px) {
  .shell { --os-nav: 0px; }
  .os-nav { width: 245px; padding-left: 37px; }
  .os-bottom-rail { left: 0; }
  .app-bar { padding-left: 18px; padding-right: 18px; }
  .app-bar::before,.app-bar::after { left: 18px; right: 18px; }
  .app-main { padding: 18px 18px 49px; }
  #home-view { grid-template-columns: 1fr; }
  #home-view>.os-hero { grid-column: 1; grid-row: 1; min-height: 370px; }
  #home-view>.home-command-strip { grid-column: 1; grid-row: 2; }
  #home-view>.home-lower { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: 1fr 1fr; }
  #home-view>.section-heading { grid-column: 1; grid-row: 4; }
  #home-view>.workspace-grid { grid-column: 1; grid-row: 5; }
}
@media(max-width:760px) {
  .site-wrap { padding: 0 15px 20px; }
  .site-header { min-height: 89px; }
  .site-header .brand { padding-left: 42px; }
  .site-header .brand::before { width: 32px; top: -13px; bottom: -13px; border-radius: 18px 0 0 18px; }
  .site-header .brand strong { font-size: 21px; letter-spacing: .02em; }
  .site-header .brand small { font-size: 8px; }
  .site-nav { border: 1px solid #345b86; background: #030b16; border-radius: 13px; }
  .site-nav .steve-signin { border: 0; padding: 10px 12px; }
  .home-hero { min-height: 530px; border-left-width: 7px; border-radius: 24px 12px 24px 6px; }
  .site-wrap .hero-copy { padding: 45px 24px; }
  .site-wrap .hero-copy h1 { font-size: clamp(39px,8vw,62px); }
  .quiet-banner { padding: 20px; }
  .site-footer { margin-top: 36px; padding: 23px 15px; }
  .site-footer .brand strong { font-size: 18px; }
}
@media(max-width:650px) {
  .shell { grid-template-rows: 82px 1fr; }
  .app-bar { height: 82px; padding: 15px 12px 21px; gap: 4px; }
  .app-bar::before { top: 6px; height: 4px; left: 12px; right: 12px; }
  .app-bar::after { height: 7px; left: 12px; right: 12px; }
  .app-title { font-size: 18px; min-width: 0; }
  .header-presence { min-width: 39px; }
  .header-presence steve-presence { width: 42px; height: 42px; }
  .app-main { padding: 14px 12px 49px; }
  #home-view { gap: 13px; }
  #home-view>.os-hero { display: flex; flex-direction: column; min-height: auto; padding: 11px 15px 18px; border-left-width: 7px; gap: 0; }
  #home-view .hero-orbit { width: 100%; height: auto; min-height: 0; padding: 0; }
  #home-view .hero-orbit steve-presence { width: min(100%,280px); height: auto; top: auto; }
  #home-view .presence-caption { margin-top: -8px; }
  #home-view .hero-copy { padding: 20px 0 0; width: 100%; text-align: center; }
  #home-view .hero-copy .eyebrow { display: none; }
  #home-view .hero-copy h1 { font-size: 40px; margin: 0 0 16px; }
  #home-view .hero-copy h1 small { font-size: 18px; margin-top: 9px; }
  #home-view .hero-description { font-size: 13px; margin: 0; width: 100%; padding: 13px; }
  #home-view .hero-buttons { justify-content: center; margin: 14px 0 10px; }
  #home-view .hero-connection { justify-content: center; }
  #home-view>.home-command-strip { grid-template-columns: 1fr 1fr; gap: 8px; }
  .home-command-strip .btn { font-size: 13px; padding: 10px 7px; }
  #home-view>.home-lower { display: flex; flex-direction: column; gap: 13px; }
  #home-view>.home-lower .panel { padding: 17px; }
  #home-view .home-lower .text-button { min-height: 44px; }
  #home-view .home-metric strong { font-size: 27px; }
  #home-view .home-metric span { font-size: 12px; }
  #home-view .home-model-row { font-size: 12px; line-height: 1.5; }
  #home-view>.workspace-grid { grid-template-columns: 1fr; }
  .workspace-card { padding: 18px; }
  .workspace-card h3 { font-size: 24px; }
  .page-intro h1 { font-size: 30px; }
  .card .section-title { font-size: 15px; padding: 9px; }
  .view>.card { padding: 15px; border-left-width: 5px; }
  .os-bottom-rail { font-size: 8px; padding: 7px 14px; }
}

/* Keep artwork and intrinsic card heights when long live data wraps. */
.photo-destination { background: linear-gradient(100deg,#0a192af9,#061526c9),url('/shared/assets/observatory.webp') center/cover; }
#home-view .home-lower .panel { min-height: min-content; }
#home-view .home-lower .section-heading { flex-direction: row; align-items: center; }
@media(max-width:650px) { #home-view .hero-orbit { order: -1; } }
