:root {
  --graphite: #15242c;
  --graphite-2: #24373e;
  --paper: #f7f8f4;
  --mist: #e8f0ef;
  --sky: #afc8cf;
  --moss: #506e5d;
  --survey: #ef6a3a;
  --survey-soft: #f6b49b;
  --line: #cdd9d7;
  --muted: #6f7e81;
  --white: #fff;
  --display: "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --body: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Roboto Mono", Consolas, monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
label:has(input:focus-visible) {
  outline: 3px solid color-mix(in srgb, var(--survey), transparent 35%);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 24px;
  color: var(--mist);
  background-color: var(--graphite);
  background-image:
    radial-gradient(circle at 20% 18%, transparent 0 75px, rgba(175, 200, 207, .08) 76px 77px, transparent 78px 110px, rgba(175, 200, 207, .05) 111px 112px, transparent 113px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  overflow: hidden;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.brand-mark {
  position: relative;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  border: 1px solid rgba(232, 240, 239, .45);
  border-radius: 50%;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 6px 3px 7px;
  border: 2px solid var(--survey);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-21deg);
}

.brand-mark span {
  position: absolute;
  width: 6px;
  height: 6px;
  left: 15px;
  top: 15px;
  border-radius: 50%;
  background: var(--mist);
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .08em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--sky);
  font: 9px/1 var(--mono);
  letter-spacing: .22em;
}

.new-job-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 32px 0 34px;
  padding: 12px 14px;
  color: var(--graphite);
  border: 0;
  border-radius: 4px;
  background: var(--mist);
  font-weight: 650;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.new-job-button:hover {
  transform: translateY(-1px);
  background: var(--white);
}

.new-job-button span {
  color: var(--survey);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.rail-heading {
  display: flex;
  justify-content: space-between;
  padding: 0 4px 11px;
  border-bottom: 1px solid rgba(175, 200, 207, .22);
  color: var(--sky);
  font: 10px/1 var(--mono);
  letter-spacing: .14em;
}

.job-list {
  min-height: 120px;
  flex: 1;
  margin: 9px -8px 20px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(175, 200, 207, .25) transparent;
}

.job-list-empty {
  padding: 20px 12px;
  color: rgba(232, 240, 239, .48);
  font-size: 12px;
  line-height: 1.8;
}

.job-item {
  width: 100%;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px 12px;
  color: rgba(232, 240, 239, .7);
  border: 0;
  border-radius: 5px;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.job-item:hover,
.job-item.active {
  color: var(--white);
  background: rgba(232, 240, 239, .08);
}

.job-item.active {
  box-shadow: inset 2px 0 var(--survey);
}

.job-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
}

.job-state-dot.running {
  background: var(--survey);
  box-shadow: 0 0 0 4px rgba(239, 106, 58, .12);
  animation: breathe 1.8s ease-in-out infinite;
}

.job-state-dot.completed { background: #78a787; }
.job-state-dot.failed { background: #d66a62; }

.job-item-copy {
  min-width: 0;
}

.job-item-copy strong,
.job-item-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-item-copy strong {
  font-size: 12px;
  font-weight: 600;
}

.job-item-copy small {
  margin-top: 4px;
  color: rgba(175, 200, 207, .65);
  font: 9px/1.2 var(--mono);
}

.job-item > small {
  color: rgba(175, 200, 207, .52);
  font: 9px/1 var(--mono);
}

.server-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  border: 1px solid rgba(175, 200, 207, .16);
  border-radius: 5px;
  background: rgba(0, 0, 0, .08);
}

.server-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c59856;
  box-shadow: 0 0 0 4px rgba(197, 152, 86, .12);
}

.server-dot.online {
  background: #79aa88;
  box-shadow: 0 0 0 4px rgba(121, 170, 136, .12);
}

.server-dot.offline {
  background: #d66a62;
  box-shadow: 0 0 0 4px rgba(214, 106, 98, .12);
}

.server-state small,
.server-state strong {
  display: block;
}

.server-state small {
  color: rgba(175, 200, 207, .65);
  font: 9px/1 var(--mono);
  letter-spacing: .08em;
}

.server-state strong {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 550;
}

.workspace {
  position: relative;
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
}

.rail-backdrop {
  display: none;
}

.workspace::before {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  right: -260px;
  top: -210px;
  border: 1px solid rgba(80, 110, 93, .11);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(80, 110, 93, .025), 0 0 0 112px rgba(80, 110, 93, .018);
  pointer-events: none;
}

.mobile-header {
  display: none;
}

.upload-view {
  width: min(1180px, calc(100% - 80px));
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, .82fr) minmax(480px, 1.18fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: center;
  margin: 0 auto;
  padding: 54px 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--moss);
  font: 10px/1.2 var(--mono);
  letter-spacing: .2em;
}

.intro-copy h1,
.job-header h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -.04em;
}

.intro-copy h1 {
  font-size: clamp(45px, 5.3vw, 76px);
  line-height: 1.14;
}

.intro-copy h1 span {
  position: relative;
  color: var(--survey);
  white-space: nowrap;
}

.intro-copy h1 span::after {
  content: "";
  position: absolute;
  left: 2px;
  right: -6px;
  bottom: 3px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-radius: 50%;
  transform: rotate(-2deg);
}

@media (max-width: 1080px) {
  .desktop-title-break { display: none; }
}

.lede {
  max-width: 440px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.process-line {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
  margin-top: 38px;
  color: var(--graphite-2);
  font: 10px/1 var(--mono);
  letter-spacing: .08em;
}

.process-line i {
  height: 1px;
  flex: 1;
  background: var(--line);
}

.upload-console,
.auth-console {
  position: relative;
  padding: 38px 42px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 24px 80px rgba(21, 36, 44, .08);
  overflow: hidden;
  isolation: isolate;
}

.upload-console { min-height: 820px; }

.auth-console {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-heading {
  position: relative;
  max-width: 390px;
}

.auth-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(35px, 4vw, 51px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.auth-heading h2 span { color: var(--survey); }

.auth-heading p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 34px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(247, 248, 244, .88);
}

.auth-switch button {
  min-height: 40px;
  color: var(--muted);
  border: 0;
  border-radius: 3px;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.auth-switch button.active {
  color: var(--graphite);
  background: var(--white);
  box-shadow: 0 1px 6px rgba(21, 36, 44, .09), inset 0 -2px var(--survey);
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.auth-form label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font: 9px/1 var(--mono);
  letter-spacing: .12em;
}

.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, .88);
  outline: 0;
}

.auth-form input:focus { border-color: var(--moss); }
.auth-form input::placeholder { color: #9aa7a7; font-size: 11px; }
.auth-form .auth-submit { margin-top: 4px; }

.auth-hint {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.account-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.account-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--sky);
  border-radius: 50%;
}

.account-mark::before {
  content: "";
  position: absolute;
  inset: 6px 3px;
  border: 1px dashed var(--survey);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.account-identity small,
.account-identity strong { display: block; }
.account-identity small { color: var(--muted); font: 8px/1 var(--mono); letter-spacing: .1em; }
.account-identity strong { margin-top: 5px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; }

.credit-balance {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.credit-balance small,
.credit-balance span { color: var(--muted); font-size: 9px; }
.credit-balance strong { color: var(--survey); font: 22px/1 var(--mono); }

.account-strip > button {
  padding: 7px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, .7);
  font-size: 9px;
  cursor: pointer;
}

.activation-pass {
  position: relative;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 16px 18px;
  color: var(--mist);
  border-left: 3px solid var(--survey);
  background: var(--graphite);
}

.activation-pass::before,
.activation-pass::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: calc(50% - 6px);
  border-radius: 50%;
  background: var(--paper);
}

.activation-pass::before { left: -8px; }
.activation-pass::after { right: -6px; }
.activation-pass > div:first-child small,
.activation-pass > div:first-child strong,
.activation-pass > div:first-child span { display: block; }
.activation-pass > div:first-child small { color: var(--survey-soft); font: 8px/1 var(--mono); letter-spacing: .13em; }
.activation-pass > div:first-child strong { margin-top: 7px; font-size: 12px; }
.activation-pass > div:first-child span { margin-top: 4px; color: var(--sky); font-size: 9px; }

.activation-entry {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.activation-entry input {
  min-width: 0;
  padding: 10px 11px;
  color: var(--graphite);
  border: 0;
  border-radius: 3px 0 0 3px;
  background: var(--mist);
  outline: 0;
  font: 9px/1 var(--mono);
  text-transform: uppercase;
}

.activation-entry button {
  padding: 10px 12px;
  color: var(--white);
  border: 0;
  border-radius: 0 3px 3px 0;
  background: var(--survey);
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.activation-entry button:disabled { opacity: .55; cursor: wait; }

.flight-map {
  position: absolute;
  inset: -34px -30px auto auto;
  width: 112%;
  height: 74%;
  z-index: -1;
  opacity: .72;
  pointer-events: none;
}

.contour {
  fill: none;
  stroke: var(--sky);
  stroke-width: 1;
  opacity: .5;
}

.orbit-path {
  fill: none;
  stroke: var(--survey);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 10;
}

.gaussian-dots circle {
  fill: var(--moss);
  opacity: .35;
}

.capture-modes {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.capture-modes legend {
  padding: 0;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(247, 248, 244, .86);
}

.mode-switch label {
  min-width: 0;
  cursor: pointer;
}

.mode-switch input {
  position: absolute;
  opacity: 0;
}

.mode-switch span {
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px 9px;
  border-radius: 3px;
  color: var(--muted);
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.mode-switch label:not(:last-child) span {
  border-right: 1px solid color-mix(in srgb, var(--line), transparent 28%);
}

.mode-switch small {
  overflow: hidden;
  font: 7px/1 var(--mono);
  letter-spacing: .08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-switch strong {
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.mode-switch input:checked + span {
  color: var(--graphite);
  background: var(--white);
  box-shadow: 0 1px 7px rgba(21, 36, 44, .1), inset 0 -2px var(--survey);
}

.drop-zone {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px;
  border: 1px dashed color-mix(in srgb, var(--moss), transparent 35%);
  border-radius: 50% 47% 48% 52% / 52% 48% 53% 47%;
  text-align: center;
  background: rgba(247, 248, 244, .84);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: var(--survey);
  background: rgba(255, 255, 255, .94);
  transform: scale(1.006);
}

.drop-zone.has-file {
  border-style: solid;
  border-color: var(--moss);
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-glyph {
  position: relative;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid var(--sky);
  border-radius: 50%;
}

.upload-glyph::before,
.upload-glyph::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--survey);
  transform: translate(-50%, -50%);
}

.upload-glyph::before { width: 18px; height: 2px; }
.upload-glyph::after { width: 2px; height: 18px; }

.upload-glyph i {
  position: absolute;
  inset: 7px;
  border: 1px dashed var(--moss);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}

.drop-zone strong {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  white-space: nowrap;
}

.drop-zone > span:not(.upload-glyph) {
  max-width: 350px;
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.choose-file {
  padding: 8px 17px;
  color: var(--graphite);
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--white);
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}

.photo-selection {
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.7;
}

.photo-guide, .photo-order { color: var(--muted); }
.photo-selection-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.photo-selection-header button {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  padding: 5px 9px;
  cursor: pointer;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 0;
  list-style: none;
}
.photo-grid li { position: relative; min-width: 0; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--paper); }
.photo-grid span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--graphite);
  font-size: 18px;
  cursor: pointer;
}
.photo-selection button:disabled { opacity: .5; cursor: default; }

.reconstruction-settings {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
  margin-top: 32px;
}

.field-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font: 9px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quality-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
}

.quality-switch label {
  cursor: pointer;
}

.quality-switch input {
  position: absolute;
  opacity: 0;
}

.quality-switch span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 3px;
  color: var(--muted);
}

.quality-switch input:checked + span {
  color: var(--graphite);
  background: var(--white);
  box-shadow: 0 1px 5px rgba(21, 36, 44, .08);
}

.quality-switch strong { font-size: 11px; }
.quality-switch small { font: 9px/1 var(--mono); }

.setting-note {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.setting-note strong,
.setting-note small {
  display: block;
}

.setting-note strong {
  font: 10px/1.3 var(--mono);
}

.setting-note small {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.start-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 15px 18px 15px 20px;
  color: var(--white);
  border: 0;
  border-radius: 4px;
  background: var(--graphite);
  font-weight: 650;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.start-button:not(:disabled):hover {
  background: var(--survey);
  transform: translateY(-1px);
}

.start-button:disabled {
  color: rgba(255, 255, 255, .4);
  cursor: not-allowed;
}

.start-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.upload-progress {
  margin-top: 26px;
}

.upload-progress > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
}

.upload-progress strong { font: 10px/1 var(--mono); }

progress {
  width: 100%;
  height: 4px;
  display: block;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  appearance: none;
}

progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--survey); }
progress::-moz-progress-bar { background: var(--survey); }

.job-view {
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto;
  padding: 52px 0 70px;
}

.job-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
}

.job-header .eyebrow { margin-bottom: 10px; }

.job-header h1 {
  max-width: 780px;
  overflow: hidden;
  font-size: clamp(32px, 4vw, 54px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-pill {
  flex: 0 0 auto;
  padding: 8px 13px;
  color: var(--moss);
  border: 1px solid color-mix(in srgb, var(--moss), transparent 52%);
  border-radius: 99px;
  background: rgba(80, 110, 93, .06);
  font-size: 11px;
  font-weight: 650;
}

.state-pill.running { color: var(--survey); border-color: var(--survey-soft); background: rgba(239, 106, 58, .06); }
.state-pill.failed { color: #a6423c; border-color: #e3aaa6; background: #fff3f1; }

.trajectory-progress {
  display: grid;
  grid-template-columns: 145px minmax(260px, 1fr) minmax(260px, .72fr);
  gap: clamp(30px, 5vw, 75px);
  align-items: center;
  padding: 42px 0;
}

.progress-orbit {
  position: relative;
  width: 132px;
  height: 132px;
}

.progress-orbit svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-orbit circle {
  fill: none;
  stroke-width: 3;
}

.orbit-track {
  stroke: var(--line);
  stroke-dasharray: 2 6;
}

.orbit-value {
  stroke: var(--survey);
  stroke-linecap: round;
  stroke-dasharray: 320.44;
  stroke-dashoffset: 320.44;
  transition: stroke-dashoffset .8s ease;
}

.progress-orbit > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 42px;
}

.progress-orbit strong {
  font: 35px/1 var(--display);
  font-weight: 500;
}

.progress-orbit small {
  margin-left: 2px;
  color: var(--muted);
  font: 10px/1 var(--mono);
}

.progress-copy h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 29px;
  font-weight: 600;
}

.progress-copy p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.retry-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 9px 15px;
  color: var(--graphite);
  border: 1px solid var(--survey);
  border-radius: 3px;
  background: rgba(255, 255, 255, .64);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, opacity .18s ease;
}

.retry-button span {
  color: var(--survey);
  font: 17px/1 var(--mono);
}

.retry-button:not(:disabled):hover {
  color: var(--white);
  background: var(--survey);
}

.retry-button:not(:disabled):hover span { color: currentColor; }
.retry-button:disabled { cursor: wait; opacity: .5; }

.stage-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 22px;
}

.stage-track i {
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}

.stage-track i.active { background: var(--survey); }

.job-facts {
  margin: 0;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.job-facts div {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
}

.job-facts dt {
  color: var(--muted);
  font-size: 10px;
}

.job-facts dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font: 10px/1.3 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .6fr);
  gap: 22px;
  animation: reveal .5s ease both;
}

.viewer-panel,
.delivery-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.viewer-panel {
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 2px 3px 17px;
}

.panel-heading .field-label { margin-bottom: 5px; }
.panel-heading strong { font-family: var(--display); font-size: 17px; }

.panel-heading a {
  color: var(--moss);
  font-size: 11px;
  text-decoration: none;
}

.viewer-frame-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  background: #080c0e;
  overflow: hidden;
}

.viewer-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.viewer-tip {
  position: absolute;
  right: 13px;
  bottom: 12px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, .65);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 3px;
  background: rgba(8, 12, 14, .66);
  font-size: 9px;
  pointer-events: none;
}

.delivery-panel {
  padding: 25px;
}

.metric-primary {
  padding: 13px 0 23px;
  border-bottom: 1px solid var(--line);
}

.metric-primary strong,
.metric-primary span {
  display: block;
}

.metric-primary strong {
  font: 38px/1 var(--display);
  letter-spacing: -.03em;
}

.metric-primary span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.metric-grid div {
  padding: 19px 0;
}

.metric-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.metric-grid div:nth-child(even) { padding-left: 19px; }
.metric-grid div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }

.metric-grid strong,
.metric-grid span { display: block; }
.metric-grid strong { font: 16px/1.2 var(--mono); }
.metric-grid span { margin-top: 6px; color: var(--muted); font-size: 9px; }

.share-card {
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--line);
}

.share-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.share-card-heading .field-label {
  margin: 0;
}

.share-state {
  color: var(--muted);
  font: 9px/1 var(--mono);
  letter-spacing: .08em;
}

.share-state.active {
  color: var(--moss);
}

.share-state.active::before {
  content: "";
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: #78a787;
  box-shadow: 0 0 0 3px rgba(120, 167, 135, .14);
}

.share-card p {
  margin: 10px 0 13px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.share-link {
  display: block;
  margin: -2px 0 12px;
  overflow: hidden;
  color: var(--moss);
  font: 9px/1.4 var(--mono);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-link:hover {
  color: var(--survey);
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.share-actions button {
  min-height: 40px;
  padding: 10px 13px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.share-actions button:disabled {
  opacity: .48;
  cursor: wait;
}

.share-primary {
  color: var(--white);
  border: 1px solid var(--graphite);
  background: var(--graphite);
}

.share-primary:hover:not(:disabled) {
  border-color: var(--survey);
  background: var(--survey);
}

.share-revoke {
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
}

.share-revoke:hover:not(:disabled) {
  color: #a6423c;
  border-color: #d9aaa6;
}

.downloads {
  margin-top: 16px;
}

.downloads a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 2px;
  color: var(--graphite);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  text-decoration: none;
}

.downloads a:hover strong { color: var(--survey); }
.downloads strong { color: var(--moss); font: 9px/1 var(--mono); }

.public-share {
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  color: var(--mist);
  background: #080c0e;
}

.share-shell {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #080c0e;
}

.share-viewer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #080c0e;
}

.share-overlay {
  position: absolute;
  top: max(22px, env(safe-area-inset-top));
  left: max(22px, env(safe-area-inset-left));
  right: max(22px, env(safe-area-inset-right));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  max-width: 960px;
  padding: 14px 16px;
  border: 1px solid rgba(232, 240, 239, .18);
  border-radius: 5px;
  background: rgba(16, 27, 32, .86);
  box-shadow: 0 15px 50px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
  pointer-events: none;
  z-index: 3;
}

.share-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-brand .brand-mark {
  width: 35px;
  height: 35px;
  flex-basis: 35px;
}

.share-brand .brand-mark span {
  left: 13px;
  top: 13px;
}

.share-brand strong,
.share-brand small {
  display: block;
}

.share-brand strong {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: .07em;
}

.share-brand small {
  margin-top: 3px;
  color: var(--sky);
  font: 8px/1 var(--mono);
  letter-spacing: .18em;
}

.share-scene {
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid rgba(232, 240, 239, .18);
}

.share-live {
  color: var(--survey-soft);
  font: 8px/1 var(--mono);
  letter-spacing: .16em;
}

.share-live i {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: #79aa88;
  box-shadow: 0 0 0 4px rgba(121, 170, 136, .12);
}

.share-scene h1 {
  margin: 5px 0 0;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 500;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-immersive {
  padding: 10px 12px;
  color: var(--mist);
  border: 1px solid rgba(232, 240, 239, .26);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 650;
  text-decoration: none;
  pointer-events: auto;
}

.share-immersive:hover {
  color: var(--white);
  border-color: var(--survey);
}

.share-guide {
  position: absolute;
  left: 50%;
  bottom: max(18px, calc(env(safe-area-inset-bottom) + 8px));
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  color: rgba(232, 240, 239, .66);
  border: 1px solid rgba(232, 240, 239, .14);
  border-radius: 3px;
  background: rgba(8, 12, 14, .72);
  font-size: 9px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.share-guide i {
  position: relative;
  width: 18px;
  height: 8px;
  border-left: 1px solid var(--survey);
  border-right: 1px solid var(--survey);
}

.share-guide i::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 3px;
  height: 1px;
  background: var(--survey);
}

.share-gallery-toggle {
  position: absolute;
  left: max(22px, env(safe-area-inset-left));
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 10px));
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  color: var(--mist);
  border: 1px solid rgba(232, 240, 239, .22);
  border-radius: 3px;
  background: rgba(16, 27, 32, .88);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
  cursor: pointer;
  z-index: 4;
}

.share-gallery-toggle:hover {
  border-color: var(--survey);
}

.share-gallery-toggle i {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(232, 240, 239, .5);
  border-radius: 50%;
}

.share-gallery-toggle i::before {
  content: "";
  position: absolute;
  inset: 4px 2px;
  border: 1px solid var(--survey);
  border-right-color: transparent;
  border-radius: 50%;
  transform: rotate(-24deg);
}

.share-gallery-toggle span {
  font-size: 10px;
  font-weight: 650;
}

.share-gallery-toggle strong {
  min-width: 20px;
  padding-left: 9px;
  color: var(--survey-soft);
  border-left: 1px solid rgba(232, 240, 239, .17);
  font: 10px/1 var(--mono);
}

.share-gallery-panel {
  position: absolute;
  left: max(22px, env(safe-area-inset-left));
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, calc(env(safe-area-inset-bottom) + 10px));
  max-width: 1040px;
  padding: 15px;
  color: var(--mist);
  border: 1px solid rgba(232, 240, 239, .2);
  border-radius: 5px;
  background: rgba(16, 27, 32, .93);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .32);
  backdrop-filter: blur(18px);
  z-index: 5;
}

.share-gallery-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 1px 2px 13px;
}

.share-gallery-panel > header small,
.share-gallery-panel > header strong {
  display: block;
}

.share-gallery-panel > header small {
  color: var(--survey-soft);
  font: 8px/1 var(--mono);
  letter-spacing: .14em;
}

.share-gallery-panel > header strong {
  margin-top: 5px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
}

.share-gallery-panel > header button,
.photo-dialog button {
  min-height: 38px;
  padding: 8px 11px;
  color: var(--mist);
  border: 1px solid rgba(232, 240, 239, .2);
  border-radius: 3px;
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.share-gallery-panel > header button:hover,
.photo-dialog button:hover:not(:disabled) {
  border-color: var(--survey);
}

.gallery-track {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 7px 1px 2px;
  overflow-x: auto;
  scrollbar-color: rgba(175, 200, 207, .35) transparent;
  scrollbar-width: thin;
}

.gallery-track::before {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 64px;
  height: 1px;
  background: rgba(239, 106, 58, .52);
  pointer-events: none;
}

.gallery-item {
  position: relative;
  width: 154px;
  flex: 0 0 154px;
  padding: 0;
  overflow: hidden;
  color: var(--mist);
  border: 1px solid rgba(232, 240, 239, .14);
  border-radius: 3px;
  text-align: left;
  background: #101b20;
  cursor: pointer;
}

.gallery-item:hover,
.gallery-item.active {
  border-color: var(--survey);
}

.gallery-item img {
  width: 100%;
  height: 87px;
  display: block;
  object-fit: cover;
}

.gallery-item > strong {
  position: absolute;
  left: 8px;
  top: 75px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--graphite);
  border: 2px solid #101b20;
  border-radius: 50%;
  background: var(--survey);
  font: 8px/1 var(--mono);
}

.gallery-item > span {
  display: block;
  padding: 12px 9px 9px 41px;
}

.gallery-item b,
.gallery-item small {
  display: block;
}

.gallery-item b {
  font-size: 9px;
  font-weight: 650;
}

.gallery-item small {
  margin-top: 4px;
  color: var(--sky);
  font: 8px/1 var(--mono);
}

.photo-dialog {
  width: min(94vw, 1500px);
  height: min(94dvh, 980px);
  padding: 0;
  overflow: hidden;
  color: var(--mist);
  border: 1px solid rgba(232, 240, 239, .24);
  border-radius: 5px;
  background: #080c0e;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .52);
}

.photo-dialog::backdrop {
  background: rgba(3, 7, 9, .86);
  backdrop-filter: blur(8px);
}

.photo-dialog-bar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(232, 240, 239, .15);
}

.photo-dialog-bar div {
  min-width: 0;
}

.photo-dialog-bar small,
.photo-dialog-bar strong,
.photo-dialog-bar span {
  display: inline-block;
}

.photo-dialog-bar small {
  margin-right: 12px;
  color: var(--survey-soft);
  font: 8px/1 var(--mono);
  letter-spacing: .13em;
}

.photo-dialog-bar strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
}

.photo-dialog-bar span {
  margin-left: 15px;
  color: var(--sky);
  font: 9px/1 var(--mono);
}

.photo-dialog figure {
  height: calc(100% - 124px);
  display: grid;
  place-items: center;
  margin: 0;
  background: #05080a;
}

.photo-dialog figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.photo-dialog nav {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  border-top: 1px solid rgba(232, 240, 239, .15);
}

.photo-dialog nav span {
  color: rgba(232, 240, 239, .58);
  font-size: 9px;
  text-align: center;
}

.photo-dialog button:disabled {
  opacity: .35;
  cursor: default;
}

.log-panel {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}

.log-panel summary {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.log-panel summary::-webkit-details-marker { display: none; }
.log-panel summary span { font-size: 11px; font-weight: 650; }
.log-panel summary small { color: var(--muted); font: 9px/1 var(--mono); }

.log-panel pre {
  max-height: 360px;
  margin: 0;
  padding: 20px;
  overflow: auto;
  color: #c7d7d2;
  border-radius: 0 0 4px 4px;
  background: #101b20;
  font: 10px/1.65 var(--mono);
  white-space: pre-wrap;
  word-break: break-word;
}

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 13px 17px;
  color: var(--white);
  border-radius: 4px;
  background: var(--graphite);
  box-shadow: 0 12px 40px rgba(21, 36, 44, .18);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 20;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #953e38; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px rgba(239, 106, 58, .04); } }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1080px) {
  .shell { grid-template-columns: 250px minmax(0, 1fr); }
  .rail { padding-inline: 17px; }
  .upload-view { width: min(760px, calc(100% - 54px)); grid-template-columns: 1fr; gap: 45px; padding: 60px 0 80px; }
  .intro-copy { max-width: 650px; }
  .upload-console { min-height: 790px; }
  .auth-console { min-height: 600px; }
  .trajectory-progress { grid-template-columns: 132px 1fr; }
  .job-facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .job-facts div { display: block; }
  .job-facts dd { margin-top: 6px; }
  .result-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .shell { display: block; }
  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 320px);
    height: 100vh;
    height: 100dvh;
    display: flex;
    padding-top: max(28px, env(safe-area-inset-top));
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    transform: translateX(-105%);
    transition: transform .25s ease;
    z-index: 30;
  }
  body.jobs-open { overflow: hidden; }
  body.jobs-open .rail { transform: translateX(0); }
  .rail-backdrop {
    position: fixed;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(10, 18, 22, .48);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 25;
  }
  body.jobs-open .rail-backdrop { opacity: 1; pointer-events: auto; }
  .workspace::before { display: none; }
  .mobile-header {
    position: sticky;
    top: 0;
    min-height: calc(64px + env(safe-area-inset-top));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    color: var(--mist);
    background: rgba(21, 36, 44, .96);
    backdrop-filter: blur(14px);
    z-index: 10;
  }
  .brand.compact { gap: 9px; }
  .brand.compact .brand-mark { width: 31px; height: 31px; flex-basis: 31px; }
  .brand.compact .brand-mark span { left: 11px; top: 11px; }
  .brand.compact strong { font-size: 16px; }
  .mobile-actions { display: flex; gap: 7px; }
  .mobile-new,
  .mobile-jobs { min-height: 44px; padding: 8px 12px; border-radius: 3px; font-size: 11px; font-weight: 650; }
  .mobile-new { color: var(--graphite); border: 0; background: var(--mist); }
  .mobile-jobs { color: var(--mist); border: 1px solid rgba(232, 240, 239, .3); background: transparent; }
  .upload-view,
  .job-view { width: calc(100% - 24px); }
  .upload-view { min-height: calc(100dvh - 64px - env(safe-area-inset-top)); padding: 42px 0 60px; }
  .intro-copy h1 { font-size: 42px; }
  .lede { font-size: 13px; }
  .process-line { margin-top: 27px; }
  .upload-console,
  .auth-console { min-height: 0; padding: 25px 18px 22px; }
  .auth-heading h2 { font-size: 37px; }
  .auth-heading p { font-size: 12px; }
  .auth-switch { margin-top: 27px; }
  .account-strip { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .account-strip > button { grid-column: 1 / -1; min-height: 38px; }
  .activation-pass { grid-template-columns: 1fr; gap: 13px; padding: 16px; }
  .activation-entry input { font-size: 8px; }
  .activation-entry button { min-height: 42px; }
  .capture-modes { margin-bottom: 18px; }
  .mode-switch { grid-template-columns: 1fr 1fr; }
  .mode-switch label:nth-child(2) span { border-right: 0; }
  .mode-switch label:nth-child(-n + 2) span { border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 28%); }
  .mode-switch span { min-height: 48px; padding: 7px 10px; }
  .flight-map { opacity: .46; }
  .drop-zone { min-height: 235px; padding: 24px 20px; }
  .drop-zone strong { max-width: 260px; font-size: 18px; }
  .reconstruction-settings { grid-template-columns: 1fr; gap: 20px; }
  .setting-note { padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .job-view { padding: 28px 0 max(48px, env(safe-area-inset-bottom)); }
  .job-header { align-items: flex-start; padding: 0 3px 20px; }
  .job-header h1 { max-width: min(72vw, 270px); font-size: 29px; line-height: 1.15; overflow-wrap: anywhere; white-space: normal; }
  .trajectory-progress { grid-template-columns: 98px 1fr; gap: 19px; padding: 30px 0; }
  #jobView[data-state="completed"] .trajectory-progress { display: none; }
  .progress-orbit { width: 94px; height: 94px; }
  .progress-orbit > div { padding-top: 30px; }
  .progress-orbit strong { font-size: 25px; }
  .progress-copy h2 { font-size: 22px; }
  .retry-button { min-height: 44px; }
  .stage-track { margin-top: 15px; }
  .job-facts { grid-template-columns: 1fr; }
  .job-facts div { display: grid; grid-template-columns: 78px 1fr; }
  .job-facts dd { margin-top: 0; }
  .result-layout { gap: 14px; padding-top: 14px; }
  .viewer-panel { padding: 8px; }
  .panel-heading { padding: 5px 5px 14px; }
  .panel-heading a { min-height: 44px; display: inline-flex; align-items: center; }
  .viewer-frame-wrap { height: clamp(380px, 58svh, 560px); aspect-ratio: auto; }
  .viewer-tip { right: 9px; bottom: 9px; }
  .delivery-panel { padding: 21px 18px; }
  .share-actions button { min-height: 44px; }
  .downloads a { min-height: 46px; padding-block: 12px; }
  .log-panel summary { min-height: 48px; align-items: center; }
  .toast { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); }

  .share-overlay {
    top: max(10px, env(safe-area-inset-top));
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 11px 12px;
  }
  .share-brand .brand-mark { width: 31px; height: 31px; flex-basis: 31px; }
  .share-brand .brand-mark span { left: 11px; top: 11px; }
  .share-brand strong { font-size: 15px; }
  .share-brand small { display: none; }
  .share-scene { grid-column: 1 / -1; grid-row: 2; padding: 10px 0 0; border-top: 1px solid rgba(232, 240, 239, .16); border-left: 0; }
  .share-scene h1 { margin-top: 5px; font-size: 20px; }
  .share-immersive { padding: 9px 10px; }
  .share-guide { bottom: max(12px, calc(env(safe-area-inset-bottom) + 6px)); max-width: calc(100vw - 24px); white-space: nowrap; }
  .share-gallery-toggle {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(58px, calc(env(safe-area-inset-bottom) + 51px));
    min-height: 44px;
  }
  .share-gallery-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    padding: 14px max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 6px 6px 0 0;
  }
  .gallery-item { width: 145px; flex-basis: 145px; }
  .photo-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
  .photo-dialog-bar {
    min-height: 103px;
    align-items: flex-start;
    padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
  }
  .photo-dialog-bar small,
  .photo-dialog-bar strong,
  .photo-dialog-bar span { display: block; }
  .photo-dialog-bar small { margin: 0 0 7px; }
  .photo-dialog-bar strong { font-size: 17px; }
  .photo-dialog-bar span { margin: 7px 0 0; line-height: 1.35; }
  .photo-dialog figure { height: calc(100% - 163px - env(safe-area-inset-bottom)); }
  .photo-dialog nav {
    min-height: calc(60px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr 1fr;
    padding: 8px max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }
  .photo-dialog nav span { display: none; }
  .photo-dialog nav button:last-child { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
