@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  font-family: Manrope, system-ui, sans-serif;
  color: #edf1f0;
  background: #05080b;
  color-scheme: dark;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 1px solid #eddbb9; outline-offset: 5px; }

.app {
  --gutter: clamp(24px, 4.1vw, 82px);
  --orbit-center: 39%;
  --parallax-x: 0px;
  --parallax-y: 0px;
  --ridge-x: 0px;
  --ridge-y: 0px;
  --accent: #c2d9e7;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 100svh;
  min-height: 420px;
  background: #060a0e;
}

.scene, .sky, .dust, .shade, .ridge { position: absolute; inset: 0; }
.scene { z-index: -1; overflow: hidden; touch-action: none; }
.sky {
  background: url('./assets/desert-sky.webp') center / cover no-repeat;
  filter: brightness(.96) contrast(1.09) saturate(.83);
  transform: translate(var(--parallax-x), var(--parallax-y)) scale(1.028);
  transition: transform .9s cubic-bezier(.18,.76,.18,1), filter 1.2s;
}
.dust {
  background: radial-gradient(ellipse 29% 20% at 50% 72%, #c2cdce28, transparent 80%);
  pointer-events: none;
}
.scene canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.ridge {
  z-index: 2;
  background: url('./assets/desert-ridge.webp') center / 100% 100% no-repeat;
  pointer-events: none;
  filter: brightness(.76) contrast(1.2) saturate(.82);
  transform: translate(var(--ridge-x), var(--ridge-y)) scale(1.009);
  transition: transform 1.2s cubic-bezier(.18,.76,.18,1), opacity .85s;
}
.traveler {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28.7%;
  width: clamp(27px, 3.35vw, 56px);
  height: clamp(60px, 10.4vh, 104px);
  object-fit: contain;
  object-position: center bottom;
  transform: translateX(-50%);
  filter: brightness(1.06) contrast(1.12) drop-shadow(0 2px 6px #000);
  pointer-events: none;
  transition: opacity .8s, transform .8s;
}
.shade {
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(180deg, #00020555, transparent 22%, transparent 65%, #00020515 78%, #010306d9),
    radial-gradient(ellipse 79% 59% at 50% 36%, transparent 52%, #0007);
}

.topbar {
  position: absolute;
  z-index: 10;
  inset: 0 var(--gutter) auto;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.brand, .brand > div, .topright, .topright-status { display: flex; align-items: center; }
.brand { gap: 17px; }
.brand {
  pointer-events: auto;
  appearance: none;
  background: none;
  padding: 7px 0;
  border: 0;
  color: inherit;
  text-align: left;
}
.brand strong, .brand-arabic { transition: color .3s, text-shadow .3s; }
.brand:hover strong, .brand:focus-visible strong { color: white; text-shadow: 0 0 24px #c3e3ef80; }
.brand:hover .brand-arabic { color: #f3d4a2; }
.brand .brand-emblem { transition: transform .6s cubic-bezier(.2,.9,.15,1), box-shadow .4s, border-color .4s; }
.brand:hover .brand-emblem { transform: rotate(32deg) scale(1.09); border-color: #ecfaffbc; box-shadow: 0 0 30px #b7dfff3d, inset 0 0 13px #c6e0f03d; }
.brand > div { gap: 11px; }
.brand-emblem {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #d9dfde76;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #c9dadf0a, inset 0 0 10px #c6e0f01a;
}
.brand-emblem span {
  width: 19px;
  height: 19px;
  border: 1px solid #e8eae7d8;
  border-radius: 50%;
  position: relative;
}
.brand-emblem span::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #ece8d9;
  box-shadow: 0 0 8px #ece8d9;
}
.brand strong { font-size: 17px; letter-spacing: .31em; font-weight: 600; line-height: 1; }
.brand-arabic { font-size: 19px; color: #c7ad81; }
.brand-divider { height: 17px; width: 1px; background: #e1e9eb40; }
.brand-caption, .topright, .left-note, .right-note, .orbit-eyebrow, .orbit-subtitle,
.touch-hint, .rail-index {
  font-size: 9px;
  letter-spacing: .2em;
  font-weight: 600;
}
.brand-caption, .topright { color: #aeb9ba; }
.topright { gap: 29px; }
.mode-toggle {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #afc9d358;
  border-radius: 28px;
  color: #e8f2f2;
  background: #12212a6e;
  min-height: 38px;
  padding: 0 15px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  white-space: nowrap;
  backdrop-filter: blur(9px);
  transition: background .35s,border-color .35s,box-shadow .35s,transform .35s;
}
.mode-toggle:hover,.mode-toggle:focus-visible { background: #1d34408c; border-color: #c9e5f0b0; box-shadow: 0 0 23px #badbeb24; transform: translateY(-1px); }
.mode-toggle[hidden] { display: none; }
.toggle-glyph { display: flex; align-items: center; gap: 3px; height: 12px; }
.toggle-glyph i { width: 3px; height: 3px; border-radius: 50%; background: #d2e9f1; box-shadow: 0 0 7px #c9e9f3; transition: transform .45s; }
.toggle-glyph i:nth-child(2) { transform: scale(1.5); }
.mode-toggle:hover .toggle-glyph i:first-child { transform: translateX(-3px) scale(1.4); }
.mode-toggle:hover .toggle-glyph i:last-child { transform: translateX(3px) scale(1.4); }
.topright-status { gap: 9px; color: #e4d1b0; white-space: nowrap; }
.topright-status span {
  width: 4px;
  height: 4px;
  background: #d8b78a;
  border-radius: 50%;
  box-shadow: 0 0 9px #ddc194;
}

.left-note, .right-note {
  position: absolute;
  z-index: 5;
  top: 48%;
  color: #a6aeb2;
  writing-mode: vertical-rl;
  pointer-events: none;
}
.left-note {
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
  transform: rotate(180deg);
}
.left-note i { width: 1px; height: 46px; background: #d7dadb47; }
.right-note { right: var(--gutter); color: #a0acb1; letter-spacing: .25em; }
.orbit-copy {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: var(--orbit-center);
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  pointer-events: none;
  transition: opacity .7s, transform .8s cubic-bezier(.2,.8,.2,1);
}
.orbit-eyebrow { color: #a4b3b9; letter-spacing: .37em; }
.orbit-name {
  font-size: clamp(14px, 1.69vw, 27px);
  font-weight: 300;
  color: #e1ecf0;
  letter-spacing: .34em;
  padding: 7px 0 7px .34em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
  position: relative;
  border: 0;
  background: none;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 0 30px #beddeb19;
  -webkit-tap-highlight-color: transparent;
}
.orbit-name .letter {
  display: inline-block;
  white-space: pre;
  transform: translate(var(--dx,0px), var(--dy,0px)) rotate(var(--rot,0deg));
  text-shadow: 0 0 25px rgba(190,228,250,var(--bloom,0));
  transition: transform .42s cubic-bezier(.14,.8,.2,1), text-shadow .4s, color .4s;
  will-change: transform;
}
.orbit-name:hover .letter, .orbit-name:focus-visible .letter { color: #f4fbff; }
.orbit-name::after {
  content: '';
  position: absolute;
  left: 27%;
  right: 27%;
  bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg,transparent,var(--accent),transparent);
  box-shadow: 0 0 11px var(--accent);
  opacity: 0;
  transform: scaleX(.15);
  transition: transform .55s cubic-bezier(.18,.9,.2,1), opacity .45s;
}
.orbit-name:hover::after,.orbit-name:focus-visible::after { opacity: .9; transform: scaleX(1); }
.orbit-copy:has(.orbit-name:hover) .orbit-eyebrow { color: #d9e7ec; }
.orbit-copy:has(.orbit-name:hover) .orbit-subtitle { color: #b0ccdb; }
.orbit-copy .orbit-eyebrow, .orbit-copy .orbit-subtitle { transition: color .4s; }
.orbit-copy.is-pulsing .orbit-name::after { opacity: 1; transform: scaleX(1.5); }
.orbit-copy.is-pulsing .orbit-name .letter { text-shadow: 0 0 27px #c9eaffc2; }
.orbit-subtitle { color: #82949f; letter-spacing: .28em; font-weight: 500; }
.touch-hint {
  position: absolute;
  z-index: 9;
  top: calc(var(--orbit-center) + clamp(42px, 14vh, 145px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 4px 18px;
  white-space: nowrap;
  color: #abbabd;
  background: transparent;
  border: 0;
  transition: color .3s, text-shadow .3s, transform .45s cubic-bezier(.2,.85,.2,1), opacity .6s;
}
.touch-hint::before {
  content: '';
  position: absolute;
  inset: -17px -35px;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background: radial-gradient(ellipse,rgba(163,205,232,.26),transparent 68%);
  transition: opacity .55s, transform .55s;
}
.portal-copy { display: grid; justify-items: center; gap: 5px; }
.portal-copy strong { font-size: 11px; font-weight: 600; letter-spacing: .21em; color: #dcebf1; }
.portal-copy small { font-size: 8px; font-weight: 500; letter-spacing: .21em; color: #8ea5ae; transition: color .35s; }
.touch-hint:hover,.touch-hint:focus-visible,.app.is-globe-hovered .touch-hint {
  color: #fff;
  text-shadow: 0 0 18px #c9eaff8a;
  transform: translateX(-50%) scale(1.055);
}
.touch-hint:hover::before,.touch-hint:focus-visible::before,.app.is-globe-hovered .touch-hint::before {
  opacity: .78; transform: scale(1.11);
}
.touch-hint:hover .portal-copy small,.app.is-globe-hovered .portal-copy small { color: #c6dce5; }
.touch-hint:hover .hint-plus,.app.is-globe-hovered .hint-plus { transform: rotate(90deg); }
.hint-dot {
  width: 7px; height: 7px; border: 1px solid #dce8ef; border-radius: 50%;
  box-shadow: 0 0 9px #cae6f1a0;
  animation: portal-breathe 3.8s ease-in-out infinite;
}
.hint-plus { font-size: 15px; font-weight: 300; color: #d5c5aa; transition: transform .38s; }
.app:is(.is-orbit-hovered,.is-globe-hovered) .scene { cursor: pointer; }
@keyframes portal-breathe {
  0%,100% { opacity:.54; transform:scale(.75); box-shadow:0 0 3px #cae6f155; }
  50% { opacity:1; transform:scale(1.22); box-shadow:0 0 16px #cae6f1a0; }
}

.control-rail {
  position: absolute;
  z-index: 10;
  inset: auto var(--gutter) max(25px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 24px;
  padding-top: 17px;
  border-top: 1px solid #c9d9de35;
  pointer-events: none;
}
.rail-left, .rail-center > div, .rail-right { display: grid; gap: 6px; }
.rail-index { color: #a8b5ba; white-space: nowrap; }
.rail-title {
  pointer-events: auto;
  appearance: none;
  background: none;
  color: #edf5f7;
  border: 0;
  padding: 1px 0 3px;
  width: fit-content;
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 400;
  letter-spacing: -.02em;
  text-align: left;
  position: relative;
  transition: color .28s,text-shadow .3s;
}
.rail-title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 3%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  opacity: .75;
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
}
.rail-title:hover,.rail-title:focus-visible { color: #fff; text-shadow: 0 0 23px #bde2ff78; }
.rail-title:hover::after,.rail-title:focus-visible::after { transform: scaleX(1); }
.rail-left > span:last-child { font-size: 11px; color: #9eacb2; }
.rail-center { display: flex; align-items: center; gap: 12px; }
.rail-center strong { font-size: 12px; font-weight: 500; color: #d0dbdd; }
.field-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #c5d7df51;
  border-radius: 50%;
  transition: box-shadow .4s,border-color .4s,transform .6s;
}
.app.is-engaged .field-icon { box-shadow: 0 0 20px #c1e6f45b, inset 0 0 9px #bde5ef26; border-color: #d7f4ffb0; transform: scale(1.1); }
.field-icon i {
  width: 7px;
  height: 7px;
  border: 1px solid #b8d6e2a0;
  border-radius: 50%;
  box-shadow: 0 0 9px #b7d7e37a;
}
.rail-right { justify-items: end; }
.palette { display: flex; margin: -5px -6px -7px 0; pointer-events: auto; }
.color-dot {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  padding: 0;
}
.color-dot[data-color="silver"] { --swatch: #d2dfe4; }
.color-dot[data-color="gold"] { --swatch: #e0ad67; }
.color-dot[data-color="blue"] { --swatch: #79c9ff; }
.color-dot::before, .color-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.color-dot::before { width: 23px; height: 23px; border: 1px solid transparent; transition: border-color .25s,transform .38s cubic-bezier(.2,.9,.2,1),box-shadow .3s; }
.color-dot::after {
  width: 9px;
  height: 9px;
  background: var(--swatch);
  box-shadow: 0 0 9px color-mix(in srgb, var(--swatch) 28%, transparent);
  transition: transform .4s cubic-bezier(.2,.9,.2,1),box-shadow .4s;
}
.color-dot:hover::before,.color-dot:focus-visible::before { border-color: #dee7e7aa; transform: translate(-50%,-50%) scale(1.19); box-shadow: 0 0 17px color-mix(in srgb,var(--swatch) 28%,transparent); }
.color-dot:hover::after,.color-dot:focus-visible::after { transform: translate(-50%,-50%) scale(1.3); box-shadow: 0 0 19px color-mix(in srgb,var(--swatch) 80%,transparent); }
.color-dot.active::before { border-color: #dee7e7c5; }
.color-dot.active::after { box-shadow: 0 0 13px color-mix(in srgb,var(--swatch) 62%,transparent); }

/* The cinematic canvas contracts into an instrument instead of disappearing. */
.app.mode-functional .ridge { opacity: 0; }
.app.mode-functional .traveler { opacity: 0; transform: translate(-50%,12px) scale(.91); }
.app.mode-functional .sky { filter: brightness(.45) contrast(1.1) saturate(.6); }
.app.mode-functional .left-note,.app.mode-functional .right-note { opacity: 0; }
.left-note,.right-note { transition: opacity .65s; }
.app.mode-functional .orbit-copy { opacity: 0; transform: translate(-50%,-51%) scale(.9); pointer-events: none; }
.app.mode-functional .touch-hint { opacity: 0; pointer-events: none; }
/* Data emerges inside the kinetic material itself, with no opaque instrument plate. */
.orb-readout {
  position: absolute;
  z-index: 7;
  left: 27.5%;
  top: calc(var(--orbit-center) + 3.5%);
  transform: translate(-50%,-43%) scale(.9);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(11px,1.7vh,17px);
  width: min(27vw,320px);
  max-width: 78%;
  min-height: 155px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  filter: blur(7px);
  transition: opacity .85s .18s,transform 1s cubic-bezier(.17,.78,.16,1),filter 1s;
  color: #eaf3f5;
  text-shadow: 0 1px 19px #000;
}
.app.mode-functional .orb-readout { opacity: 1; filter: blur(0); transform: translate(-50%,-50%) scale(1); }
.orb-readout-label,.orb-readout-caption {
  font-size: clamp(8px,.68vw,11px);
  font-weight: 600;
  letter-spacing: .24em;
  color: #abc0ca;
  white-space: nowrap;
}
.orb-readout-caption { color: #7897a7; letter-spacing: .17em; }
.orb-readout-value { display: flex; align-items: baseline; justify-content: center; gap: 5px; white-space: nowrap; line-height: 1; }
.orb-readout-value strong {
  font-size: clamp(40px,5.1vw,76px);
  letter-spacing: -.066em;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: #ecf6f8;
  text-shadow: 0 0 29px #c6ecf435;
}
.orb-readout-value span { font-size: clamp(13px,1.27vw,18px); font-weight: 400; color: #a3c3d1; }
.orb-readout[data-mode="assistant"] .orb-readout-value strong { font-size: clamp(20px,2.45vw,36px); letter-spacing: .065em; }
.orb-readout[data-mode="serenity"] .orb-readout-value strong { font-size: clamp(29px,3.7vw,54px); letter-spacing: .06em; }
.orb-readout[data-mode="energy"] .orb-readout-value strong { text-shadow: 0 0 34px #70c7ff70; }
.orb-readout[data-mode="serenity"] .orb-readout-label,
.orb-readout[data-mode="serenity"] .orb-readout-value strong { color: #eddfc9; text-shadow: 0 0 30px #e9b47943; }
.orb-readout-trace { position: relative; display: block; width: clamp(57px,7vw,100px); height: 1px; background: linear-gradient(90deg,transparent,#c9e1e66b,transparent); }
.orb-readout-trace i { position: absolute; top: -2px; left: 49%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 13px var(--accent); }
.orb-readout.is-switching > * { animation: instrument-arrive .65s cubic-bezier(.16,.86,.22,1) both; }
.orb-readout.is-switching > :nth-child(2) { animation-delay: .07s; }
.orb-readout.is-switching > :nth-child(3) { animation-delay: .13s; }
.orb-readout.is-switching > :nth-child(4) { animation-delay: .18s; }
.app.mode-functional.is-globe-hovered .orb-readout-trace i { box-shadow: 0 0 20px var(--accent),0 0 36px var(--accent); }
@keyframes instrument-arrive { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.orbit-functional-note {
  position: absolute;
  z-index: 6;
  left: 27.5%;
  top: 72%;
  transform: translate(-50%,18px);
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .75s .12s,transform .75s .12s;
  white-space: nowrap;
}
.orbit-functional-note span,.orbit-functional-note small {
  font-size: 9px;
  letter-spacing: .2em;
  font-weight: 600;
  color: #788e99;
}
.orbit-functional-note strong { color: #d7e4ea; font-size: 12px; font-weight: 500; letter-spacing: .25em; }
.orbit-functional-note small { font-size: 8px; color: #6b8491; }
.app.mode-functional .orbit-functional-note { opacity: 1; transform: translate(-50%,0); }

.cabin-panel {
  position: absolute;
  z-index: 8;
  left: 55%;
  right: var(--gutter);
  top: clamp(142px, 21.5vh, 242px);
  bottom: clamp(125px, 15.5vh, 180px);
  display: flex;
  flex-direction: column;
  min-width: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
  transition: opacity .7s .15s,transform .9s cubic-bezier(.15,.8,.2,1);
}
.cabin-panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -8% -10% -12% -13%;
  background: radial-gradient(ellipse at 60% 47%, #11202c5c, transparent 68%);
  pointer-events: none;
}
.app.mode-functional .cabin-panel { opacity: 1; pointer-events: auto; transform: translateX(0); }
.cabin-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cabin-meta > span,.cabin-live,.metric-label,.metric-subtitle,.cabin-tabs,.cabin-foot,.inline-note,.sub-control,.climate-adjust > span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
}
.cabin-meta > span:first-child { color: #a5b5bc; }
.cabin-live { color: #cbdde2; display: flex; gap: 9px; align-items: center; }
.cabin-live i { width: 5px; height: 5px; border-radius: 50%; background: #c1d9dc; box-shadow: 0 0 10px #c5e8ec; }
.cabin-panel h1 { margin: clamp(16px, 2.7vh, 28px) 0 11px; font-size: clamp(31px, 3.55vw, 54px); line-height: 1.08; font-weight: 300; letter-spacing: -.055em; color: #edf4f3; }
.cabin-panel h1 em { font-style: normal; color: #b8cdd6; }
.cabin-description { margin: 0 0 clamp(16px, 2.9vh, 30px); color: #96abb5; font-size: clamp(12px,1.03vw,14px); line-height: 1.55; }
.cabin-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-bottom: 1px solid #a5bcc638; }
.cabin-tab { position: relative; padding: 12px 3px 15px; border: 0; background: none; color: #7f919b; font-size: 10px; letter-spacing: .12em; font-weight: 700; transition: color .3s,text-shadow .3s; }
.cabin-tab:first-child { text-align: left; }
.cabin-tab:last-child { text-align: right; }
.cabin-tab:hover,.cabin-tab:focus-visible { color: #dceef5; text-shadow: 0 0 18px #b5deee76; }
.cabin-tab.active { color: #f0f9fa; }
.cabin-tab.active::after { content: ''; position: absolute; height: 2px; background: var(--accent); left: 10%; right: 10%; bottom: -1px; box-shadow: 0 0 15px var(--accent); }
.cabin-tab:first-child.active::after { left: 0; }
.cabin-tab:last-child.active::after { right: 0; }
.cabin-views { margin-top: clamp(14px,2.4vh,25px); min-height: 150px; }
.cabin-view[hidden] { display: none; }
.cabin-readout { display: flex; align-items: center; justify-content: space-between; min-height: clamp(80px, 11vh, 120px); gap: 18px; }
.cabin-readout > div:first-child { display: grid; gap: 9px; }
.metric-label { color: #d0e0e6; }
.metric-subtitle { color: #738f9d; font-size: 10px; font-weight: 400; letter-spacing: .04em; line-height: 1.5; }
.temp-value { display: flex; align-items: baseline; gap: 3px; color: #f2faff; line-height: 1; white-space: nowrap; }
.temp-value output { font-weight: 300; font-size: clamp(42px,4.4vw,64px); font-variant-numeric: tabular-nums; letter-spacing: -.07em; text-shadow: 0 0 32px #d2ecf127; }
.temp-value span { color: #8aabb7; font-size: 16px; font-weight: 400; }
.cabin-action-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: clamp(12px,2.1vh,22px); border-top: 1px solid #9cb7c335; }
.climate-adjust { display: flex; gap: 15px; align-items: center; }
.climate-adjust > span,.sub-control > span { color: #8da3ad; font-size: 9px; }
.climate-adjust button { width: 35px; height: 35px; border: 1px solid #b7d0dc73; border-radius: 50%; background: #24384330; color: #e6f7f9; font-size: 20px; font-weight: 300; transition: background .25s,box-shadow .3s,transform .2s; }
.climate-adjust button:hover,.climate-adjust button:focus-visible { background: #253d4b8a; box-shadow: 0 0 16px #c9eafa29; transform: scale(1.07); }
.climate-adjust button:active { transform: scale(.91); }
.sub-control { display: flex; align-items: center; gap: 10px; }
.sub-control button { border: 0; border-bottom: 1px solid #bad8e296; background: none; color: #e4f1f4; padding: 8px 2px; font-size: 10px; letter-spacing: .12em; }
.panel-action { border: 1px solid #bad7e080; border-radius: 23px; padding: 12px 17px; color: #e8f6f6; background: #1b313c66; font-size: 10px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; transition: box-shadow .3s,background .3s,transform .2s; }
.panel-action:hover,.panel-action:focus-visible { background: #244150ab; box-shadow: 0 0 21px #b1e0f231; }
.panel-action:active { transform: scale(.96); }
.inline-note { color: #90a8b1; font-size: 9px; line-height: 1.5; text-align: right; }
.charge-track { height: 3px; width: 100%; background: #6782904d; margin: 2px 0 17px; overflow: visible; border-radius: 10px; }
.charge-track span { display: block; height: 100%; border-radius: 10px; background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: width .9s; }
.assistant-glyph { height: 50px; display: flex; align-items: center; gap: 4px; }
.assistant-glyph i { display: block; width: 2px; height: 8px; background: #a6c0cc; border-radius: 2px; box-shadow: 0 0 9px #aecbd275; transition: height .5s; }
.assistant-glyph i:nth-child(2),.assistant-glyph i:nth-child(4) { height: 17px; }
.assistant-glyph i:nth-child(3) { height: 28px; }
.app[data-cabin-state="listening"] .assistant-glyph i,.app[data-cabin-state="processing"] .assistant-glyph i { animation: assistant-breathe .75s ease-in-out infinite alternate; }
.app[data-cabin-state="listening"] .assistant-glyph i:nth-child(2),.app[data-cabin-state="processing"] .assistant-glyph i:nth-child(2) { animation-delay: -.25s; }
.app[data-cabin-state="listening"] .assistant-glyph i:nth-child(3),.app[data-cabin-state="processing"] .assistant-glyph i:nth-child(3) { animation-delay: -.47s; }
.app[data-cabin-state="listening"] .assistant-glyph i:nth-child(4),.app[data-cabin-state="processing"] .assistant-glyph i:nth-child(4) { animation-delay: -.13s; }
.serenity-signal { width: 65px; height: 65px; position: relative; }
.serenity-signal i { position: absolute; border-radius: 50%; border: 1px solid #d5c19b61; inset: 7px; box-shadow: 0 0 20px #e5c89b16; }
.serenity-signal i:nth-child(2) { inset: 17px; border-color: #e6d2a082; }
.serenity-signal i:nth-child(3) { inset: 28px; background: #e7c997; border: 0; box-shadow: 0 0 15px #e2c79991; }
.app.is-serenity .serenity-signal { animation: serenity-breathe 4s ease-in-out infinite alternate; }
.cabin-foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; border-top: 1px solid #9db9c234; margin-top: auto; padding-top: 12px; font-size: 8px; color: #8499a5; }
.cabin-foot span:last-child { text-align: right; color: #b8d2dc; }
.app.is-serenity .sky { filter: brightness(.5) sepia(.2) saturate(.75); }
@keyframes assistant-breathe { to { height: 38px; box-shadow: 0 0 17px #c3e5f8b4; } }
@keyframes serenity-breathe { to { transform: scale(1.13); opacity: .73; } }

@media (max-width: 900px) {
  .brand-caption, .brand-divider, .topright-label { display: none; }
  .cabin-panel { left: 52%; }
  .orbit-functional-note { left: 26%; }
}
@media (max-width: 650px) {
  .app { --gutter: 20px; --orbit-center: 36.2%; }
  .topbar { height: max(72px, calc(57px + env(safe-area-inset-top))); }
  .brand { gap: 12px; }
  .brand-emblem { width: 33px; height: 33px; }
  .brand-emblem span { width: 16px; height: 16px; }
  .brand-emblem span::after { inset: 5px; }
  .brand strong, .brand-arabic { font-size: 16px; }
  .topright { gap: 10px; }
  .topright-status { display: none; }
  .mode-toggle { min-height: 35px; padding: 0 10px; gap: 8px; font-size: 8px; letter-spacing: .1em; }
  .left-note, .right-note { display: none; }
  .traveler { width: 31px; height: 74px; }
  .orbit-copy { gap: 11px; }
  .orbit-name { font-size: clamp(12px, 3.5vw, 20px); letter-spacing: .28em; padding-left: .28em; }
  .orbit-eyebrow, .orbit-subtitle { font-size: 7px; }
  .touch-hint { top: calc(var(--orbit-center) + clamp(50px, 15vw, 100px)); font-size: 8px; }
  .control-rail {
    grid-template-columns: 1fr auto;
    inset-block-end: max(19px, env(safe-area-inset-bottom));
    column-gap: 7px;
    padding-top: 13px;
  }
  .rail-index { font-size: 8px; letter-spacing: .13em; }
  .rail-center {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 0;
    gap: 8px;
  }
  .rail-center .rail-index { display: none; }
  .rail-center strong { font-size: 10px; }
  .field-icon { width: 19px; height: 19px; }
  .field-icon i { width: 5px; height: 5px; }
  .color-dot { width: 36px; height: 44px; }
  .orbit-functional-note { top: 39%; left: 50%; gap: 5px; }
  .orb-readout { left: 50%; top: calc(var(--orbit-center) - 11%); width: 75%; min-height: 95px; gap: 7px; }
  .orb-readout-label,.orb-readout-caption { font-size: 7px; letter-spacing: .14em; }
  .orb-readout-value strong { font-size: clamp(30px,10vw,45px); }
  .orb-readout[data-mode="assistant"] .orb-readout-value strong { font-size: 18px; }
  .orb-readout[data-mode="serenity"] .orb-readout-value strong { font-size: 26px; }
  .orb-readout-trace { width: 54px; }
  .orbit-functional-note span,.orbit-functional-note small { font-size: 7px; }
  .orbit-functional-note strong { font-size: 10px; }
  .cabin-panel { left: var(--gutter); right: var(--gutter); top: 45%; bottom: 17%; overflow-y: auto; scrollbar-width: none; }
  .cabin-panel::-webkit-scrollbar { display: none; }
  .cabin-meta > span,.cabin-live { font-size: 8px; }
  .cabin-panel h1 { font-size: clamp(27px,7vw,36px); margin: 10px 0 7px; }
  .cabin-panel h1 br { display: none; }
  .cabin-panel h1 em::before { content: ' '; }
  .cabin-description { font-size: 11px; margin-bottom: 10px; }
  .cabin-tab { padding: 10px 2px 11px; font-size: 8px; letter-spacing: .08em; }
  .cabin-views { margin-top: 7px; min-height: 120px; }
  .cabin-readout { min-height: 75px; }
  .temp-value output { font-size: 40px; }
  .metric-label { font-size: 9px; }
  .metric-subtitle { font-size: 9px; }
  .cabin-action-row { padding-top: 10px; }
  .climate-adjust { gap: 9px; }
  .climate-adjust button { width: 30px; height: 30px; }
  .panel-action { padding: 10px 13px; font-size: 9px; }
  .inline-note { font-size: 8px; }
  .cabin-foot { margin-top: 12px; padding-top: 9px; font-size: 7px; }
}
@media (max-height: 560px) {
  .app { --orbit-center: 40%; }
  .orb-readout { gap: 7px; }
  .orb-readout-value strong { font-size: clamp(30px,4vw,48px); }
  .orb-readout[data-mode="assistant"] .orb-readout-value strong { font-size: clamp(18px,2.3vw,28px); }
  .topbar { height: 64px; }
  .control-rail { padding-top: 9px; inset-block-end: max(12px, env(safe-area-inset-bottom)); }
  .rail-center { bottom: calc(100% + 8px); }
  .cabin-panel { top: 19%; bottom: 22%; overflow-y: auto; }
  .cabin-panel h1 { font-size: clamp(26px,3vw,35px); margin: 8px 0; }
  .cabin-description { margin-bottom: 9px; }
  .cabin-views { margin-top: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .hint-dot { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .sky,.ridge { transform: none !important; }
  .orbit-name .letter { transform: none !important; }
  .assistant-glyph i,.serenity-signal { animation: none !important; }
  .orb-readout.is-switching > * { animation: none !important; }
}
