:root {
  color-scheme: light;
  --app-header-logo-size: clamp(82px, 8.6vw, 108px);
  --ink: #14201f;
  --muted: #66736f;
  --line: #ddd8a9;
  --paper: #ffffdd;
  --panel: #fffff2;
  --field: #fffff7;
  --green: #1f7a5a;
  --cyan: #16788b;
  --amber: #b8731f;
  --red: #b94d42;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

html:lang(zh-Hans) {
  font-size: 96%;
}

html:lang(zh-Hans),
html:lang(zh-Hans) body {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "PingFang SC", "Source Han Sans SC", "Segoe UI", Arial, sans-serif;
}

html:lang(zh-Hans) button,
html:lang(zh-Hans) input,
html:lang(zh-Hans) select {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "PingFang SC", "Source Han Sans SC", Inter, ui-sans-serif, sans-serif;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  white-space: nowrap;
}

button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  min-height: 38px;
  padding: 0 14px;
}

button:hover {
  border-color: var(--green);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.app-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 620px);
  gap: 18px;
  align-items: center;
  min-height: calc(var(--app-header-logo-size) + 28px + 1px);
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: #f8f8f8;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(58px, 8vw, 86px);
  height: auto;
  object-fit: contain;
}

.app-brand-panel {
  min-width: 0;
}

.app-header .app-brand-lockup {
  gap: 16px;
  align-items: center;
}

.app-header .app-brand-lockup > div {
  transform: translateX(4px);
}

.app-header .brand-logo {
  width: var(--app-header-logo-size);
  flex: 0 0 auto;
  transform: translateY(6px);
}

.app-header h1 {
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 0.95;
  margin: 0;
}

.admin-header h1 {
  white-space: nowrap;
}

.app-header .eyebrow {
  margin-bottom: 7px;
}

.header-tools {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px;
  align-items: end;
}

.language-control {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.language-control span,
.token-panel label,
.analysis-form label > span,
.pro-options-title,
.pro-options label span,
.upgrade-notice strong,
.trial-contact-panel a,
.report-toolbar button,
.pager-controls button {
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 1.28rem;
}

.token-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel);
}

.token-panel label,
.analysis-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.token-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

input,
select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  padding: 0 11px;
}

.app-shell {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  padding: 24px clamp(18px, 4vw, 48px) 48px;
}

.query-panel,
.report-panel {
  min-width: 0;
}

.section-head,
.report-toolbar,
.chart-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.analysis-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.request-state {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.runtime-info {
  margin: -2px 0 0;
  border: 1px solid #ead8ad;
  border-radius: 6px;
  background: #fffff2;
  color: #66736f;
  padding: 8px 10px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
}

.progress-wrap {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #ead8ad;
  border-radius: 999px;
  background: #fff8de;
}

.progress-wrap[hidden] {
  display: none;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5aa469, #d4849f);
  transition: width 0.34s ease;
}

.sample-panel {
  margin-top: 22px;
}

.trial-contact-panel {
  margin-top: 16px;
  border: 1px solid #e4abc0;
  border-radius: 8px;
  background: #fff6fa;
  padding: 12px;
}

.trial-contact-panel h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.trial-contact-panel p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.trial-contact-panel a {
  display: inline-flex;
  margin-top: 10px;
  border: 1px solid #d58da3;
  border-radius: 6px;
  background: #fff;
  color: #8f2c4c;
  padding: 7px 10px;
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.sample-panel h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.sample-list {
  display: grid;
  gap: 8px;
}

.sample-card {
  display: grid;
  gap: 3px;
  width: 100%;
  height: auto;
  min-height: 68px;
  padding: 10px 12px;
  text-align: left;
}

.sample-card.saved-result-card {
  border-left-width: 5px;
}

.sample-card.saved-result-card[data-status="completed"] {
  border-left-color: #6fb284;
  background: #f6fff1;
}

.sample-card.saved-result-card[data-status="running"] {
  border-left-color: #d6a54a;
  background: #fff9e8;
}

.sample-card.saved-result-card[data-status="queued"] {
  border-left-color: #68a7bd;
  background: #f1fbff;
}

.sample-card.saved-result-card[data-status="failed"] {
  border-left-color: #d98c83;
  background: #fff3f1;
}

.sample-card strong {
  display: block;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-card span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.sample-card .saved-result-caption {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.pager-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.pager-controls[hidden] {
  display: none;
}

.pager-controls button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
}

.sample-panel .pager-controls {
  justify-content: space-between;
}

.checkbox-row {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  color: var(--ink) !important;
  column-gap: 10px !important;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.checkbox-row input:disabled + span {
  color: var(--muted);
}

.pro-options {
  display: grid;
  gap: 10px;
  border: 1px solid #d2b04c;
  border-radius: 8px;
  background: #fffde2;
  padding: 12px;
}

.pro-options-title {
  color: #8d5f08;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.upgrade-notice {
  display: grid;
  gap: 4px;
  border: 1px solid #d2b04c;
  border-radius: 8px;
  background: #fff8cc;
  color: var(--ink);
  padding: 11px 12px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.upgrade-notice[hidden] {
  display: none;
}

.upgrade-notice strong {
  color: #8d5f08;
}

.upgrade-notice span {
  color: var(--muted);
  white-space: pre-line;
}

.upgrade-contact-link {
  justify-self: start;
  margin-top: 3px;
  border: 1px solid #d58da3;
  border-radius: 6px;
  background: #fff;
  color: #8f2c4c;
  padding: 6px 10px;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.deep-research-notice {
  border-style: dashed;
}

.primary-action {
  margin-top: 6px;
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.report-sheet {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(18px, 3vw, 30px);
  box-shadow: 0 18px 50px rgba(29, 42, 38, 0.08);
}

.report-sheet.is-pending {
  display: grid;
  min-height: 640px;
  place-items: center;
}

.report-sheet.is-pending .print-report-body {
  display: none;
}

.report-sheet.is-pending::before {
  content: attr(data-loading-label);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 900;
}

.print-report-brand {
  display: none;
}

.print-report-qr {
  display: none;
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 20px;
  align-items: stretch;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 20px;
}

.report-hero h3 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  letter-spacing: 0;
}

.report-hero p {
  color: var(--muted);
}

.report-note {
  margin-top: 6px;
  color: #44514d;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.report-note[hidden] {
  display: none;
}

.score-block {
  display: grid;
  align-self: start;
  place-items: center;
  min-height: 112px;
  padding: 16px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3ffe8;
  color: #1f7a5a;
}

.score-block[hidden] {
  display: none;
}

.score-block[data-score-level="medium"] {
  border-color: #d6a54a;
  background: #fff6d9;
  color: #9a6413;
}

.score-block[data-score-level="high"] {
  border-color: #d98c83;
  background: #fff0ee;
  color: #b94d42;
}

.score-block span {
  display: block;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}

.score-block small {
  color: currentColor;
  font-weight: 800;
}

.summary-grid,
.visual-grid,
.insight-grid,
.imagery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.summary-grid {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.imagery-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.imagery-grid figure {
  margin: 0;
}

.image-frame {
  position: relative;
}

.imagery-grid .preview-hero {
  grid-column: span 3;
}

.imagery-grid .preview-derived {
  grid-column: span 2;
}

.imagery-grid img,
.timeline-images img {
  display: block;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #eef2ef;
}

.imagery-grid img {
  aspect-ratio: 16 / 10.5;
  border-radius: 8px;
}

.image-scale {
  --scale-width: 28%;
  position: absolute;
  left: 10px;
  bottom: 9px;
  z-index: 2;
  display: grid;
  gap: 3px;
  width: var(--scale-width);
  min-width: 46px;
  max-width: 42%;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.image-scale::after {
  content: "";
  display: block;
  height: 6px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-top: 0;
  background: transparent;
}

.image-scale:empty,
.image-scale[hidden] {
  display: none;
}

.map-colorbar {
  margin-top: 7px;
}

.map-colorbar-ramp {
  display: block;
  width: 100%;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.difference-colorbar .map-colorbar-ramp {
  background: linear-gradient(90deg, #f874ea 0%, #8f4fd0 24%, #1c3a4e 50%, #23c9bf 76%, #53ecb6 100%);
}

.intensity-colorbar .map-colorbar-ramp {
  background: linear-gradient(90deg, #f874ea 0%, #8f4fd0 24%, #1c3a4e 50%, #23c9bf 76%, #53ecb6 100%);
}

.dem-colorbar .map-colorbar-ramp {
  background: linear-gradient(90deg, #34388c 0%, #1689d0 18%, #10bf84 38%, #e5ee86 62%, #8b6b56 86%, #f4f0e6 100%);
}

.map-colorbar-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.map-colorbar-labels span:nth-child(2) {
  text-align: center;
}

.imagery-grid figcaption {
  margin-top: 7px;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-section {
  margin-top: 22px;
}

.timeline-images {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.timeline-subhead {
  margin-top: 18px;
}

.timeline-images figure {
  margin: 0;
}

.timeline-images img {
  aspect-ratio: 1.15 / 1;
  border-radius: 8px;
}

.timeline-images .image-scale {
  left: 6px;
  bottom: 6px;
  min-width: 30px;
  font-size: 0.55rem;
  gap: 2px;
}

.timeline-images .image-scale::after {
  height: 2px;
}

.timeline-images figcaption {
  margin-top: 5px;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
  overflow: visible;
  white-space: pre-line;
}

.table-section {
  margin-top: 22px;
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric-print-grid {
  display: none;
}

.source-data-groups {
  display: grid;
  gap: 10px;
}

.source-data-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.source-data-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.source-data-group-head small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.source-data-extra {
  border-top: 1px solid var(--line);
}

.source-data-extra summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  color: var(--green);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
  list-style: none;
}

.source-data-extra summary::-webkit-details-marker {
  display: none;
}

.source-data-extra summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.76rem;
  line-height: 1;
}

.source-data-extra[open] summary::before {
  content: "-";
}

.source-data-extra summary small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.source-data-group .table-wrap {
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}

.source-data-groups table {
  min-width: 1280px;
  table-layout: auto;
}

.source-data-groups th,
.source-data-groups td {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.source-data-groups th:nth-child(1),
.source-data-groups td:nth-child(1) {
  width: 12%;
}

.source-data-groups th:nth-child(2),
.source-data-groups td:nth-child(2) {
  width: 12%;
}

.source-data-groups th:nth-child(3),
.source-data-groups td:nth-child(3) {
  width: 17%;
}

.source-data-groups th:nth-child(4),
.source-data-groups td:nth-child(4) {
  width: 18%;
}

.source-data-groups th:nth-child(5),
.source-data-groups td:nth-child(5) {
  width: 41%;
  overflow-wrap: normal;
  word-break: normal;
}

.source-data-print-groups {
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  font-size: 0.82rem;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--green);
  font-size: 0.72rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
  line-height: 1.35;
  word-break: normal;
  overflow-wrap: normal;
}

td:nth-child(1),
td:nth-child(2),
td:nth-child(3),
th:nth-child(1),
th:nth-child(2),
th:nth-child(3) {
  white-space: nowrap;
}

.metric-group-row td {
  background: #ffffe8;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-grid p,
.insight-grid li {
  color: var(--muted);
  line-height: 1.65;
}

.summary-grid p {
  padding-left: 12px;
  text-align: justify;
  text-align-last: left;
}

#sceneList li,
#dataSourceList li {
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.print-scene-data-list {
  display: none;
}

.chart-block {
  min-width: 0;
}

.anomaly-section {
  margin-top: 22px;
}

.anomaly-section .chart-title h4 {
  font-size: 1rem;
  line-height: 1.2;
}

.anomaly-section .chart-title p {
  font-size: 0.82rem;
}

.anomaly-reasons {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.chart-title h4 {
  margin-bottom: 0;
}

.chart-title {
  align-items: flex-end;
  margin-bottom: 10px;
}

.chart-title p {
  margin: 0;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.admin-link {
  display: inline-grid;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 800;
}

.admin-header-tools .toolbar-actions {
  justify-content: end;
}

.admin-shell {
  display: grid;
  gap: 22px;
  padding: 24px clamp(18px, 4vw, 48px) 48px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.admin-stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  min-width: 0;
  padding: 10px;
}

.admin-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stat strong {
  display: block;
  margin-top: 6px;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  white-space: nowrap;
}

.admin-section {
  min-width: 0;
}

.admin-chart-section {
  display: grid;
  gap: 12px;
}

.admin-chart-canvas {
  width: 100%;
  height: 360px;
}

.admin-token-form {
  display: grid;
  grid-template-columns: minmax(96px, 0.7fr) minmax(110px, 0.85fr) 104px 96px 148px 118px 154px auto;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}

.admin-settings-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 170px)) auto;
  gap: 12px;
  align-items: end;
  margin: 14px 0 0;
}

.admin-link-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 14px 0 0;
}

.admin-settings-form button {
  justify-self: start;
  min-width: 78px;
  padding: 0 12px;
}

.admin-link-form button {
  justify-self: start;
  min-width: 78px;
  padding: 0 12px;
}

.admin-token-form label,
.admin-settings-form label,
.admin-link-form label,
.admin-check {
  display: grid;
  grid-template-rows: auto 38px;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-form-check {
  padding-left: 10px;
}

.admin-token-form .admin-input {
  min-width: 0;
}

.admin-link-form .admin-input {
  min-width: 0;
}

.admin-token-form .admin-check span,
.admin-section th {
  white-space: nowrap;
}

.admin-check input {
  width: 18px;
  min-height: 18px;
  align-self: center;
  margin: 0;
}

#tokenTableBody td:nth-child(8),
#tokenTableBody td:nth-child(9),
#tokenTableBody td:nth-child(10) {
  text-align: center;
}

#tokenTableBody input[type="checkbox"] {
  vertical-align: middle;
  margin: 0;
}

.admin-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-status[data-kind="ok"] {
  color: var(--green);
}

.admin-status[data-kind="error"] {
  color: var(--red);
}

.admin-input {
  min-width: 130px;
  min-height: 34px;
}

.admin-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.cache-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.danger-action {
  border-color: #d9aaa3;
  color: #9d2f20;
}

.insight-grid ul {
  margin: 0;
  padding-left: 20px;
}

.report-notice {
  margin-top: 22px;
  border-top: 1px solid #d9aaa3;
  padding-top: 14px;
  color: #9d2f20;
}

.report-notice p {
  padding-left: 12px;
  color: #9d2f20;
  font-size: 0.86rem;
  line-height: 1.55;
  white-space: pre-line;
}

.report-notice h4 {
  color: #9d2f20;
}

html:lang(zh-Hans) .report-notice p {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 0.82rem;
}

.site-footer {
  padding: 10px clamp(18px, 4vw, 48px) 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: right;
}

@media (max-width: 980px) {
  .app-header,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .token-panel {
    max-width: none;
  }

  .header-tools {
    grid-template-columns: 1fr;
  }

  .imagery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .imagery-grid .preview-hero,
  .imagery-grid .preview-derived {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .report-hero,
  .summary-grid,
  .visual-grid,
  .insight-grid,
  .table-grid,
  .imagery-grid,
  .admin-grid,
  .admin-settings-form,
  .admin-link-form,
  .admin-token-form {
    grid-template-columns: 1fr;
  }

  .section-head,
  .report-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 6mm;

    @bottom-right {
      content: counter(page) "/" counter(pages);
      color: #26332f;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 7pt;
      font-weight: 900;
      line-height: 1.2;
      vertical-align: top;
    }
  }

  html,
  body {
    background: #fff;
    color: #111;
    font-size: 7pt;
  }

  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .app-header,
  .query-panel,
  .report-toolbar,
  .site-footer {
    display: none;
  }

  .app-shell {
    display: block;
    padding: 0;
  }

  .report-panel {
    display: block;
    width: 100%;
  }

  .report-sheet {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 12mm 0 0;
    background: #fff;
    color: #111816;
    font-size: 7pt;
  }

  .report-sheet p,
  .report-sheet li,
  .report-sheet td,
  .report-sheet figcaption,
  .report-sheet small,
  .chart-title p,
  .report-hero p,
  .report-note,
  .summary-grid p,
  .insight-grid li,
  .anomaly-reasons,
  .report-notice p,
  .map-colorbar-labels,
  .print-report-qr,
  .print-report-qr small {
    color: #1f2926;
  }

  .report-sheet h3,
  .report-sheet h4,
  .report-sheet h5,
  .report-sheet th,
  .metric-group-row td {
    color: #10231d;
  }

  .table-wrap,
  .print-qr-code {
    border-color: #aeb8b1;
  }

  .print-report-brand {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: 9.2mm;
    background: #fff;
  }

  .print-report-brand-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 4mm;
    width: 100%;
    margin-bottom: 1mm;
    padding-top: 0.6mm;
    padding-bottom: 1.35mm;
    border-bottom: 1px solid #d8ded9;
  }

  .print-report-brand-row > div {
    display: flex;
    align-items: center;
    gap: 2.4mm;
    min-width: 0;
  }

  .print-report-brand img {
    width: auto;
    height: 5.8mm;
    max-width: 10mm;
    display: block;
    object-fit: contain;
  }

  .print-report-brand span {
    color: #1d2a26;
    font-size: 18pt;
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: 0;
  }

  .print-report-brand-row p {
    flex: 1 1 auto;
    margin: 0;
    color: #b94d82;
    font-size: 8.4pt;
    font-weight: 900;
    line-height: 1;
    padding-bottom: 0.55mm;
    text-align: right;
  }

  .print-report-qr {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 9;
    display: grid;
    grid-template-columns: 18mm minmax(0, 1fr);
    align-items: end;
    gap: 1.8mm;
    max-width: 172mm;
    color: #26332f;
    line-height: 1.1;
  }

  .print-qr-code {
    width: 18mm;
    height: 18mm;
    padding: 0.8mm;
    border: 1px solid #d8ded9;
    background: #fff;
  }

  .print-qr-code svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .print-report-qr p {
    margin: 0;
    font-size: 5.8pt;
    font-weight: 900;
  }

  .print-report-qr-text {
    align-self: end;
    margin-bottom: 1mm;
  }

  .print-report-qr small {
    display: block;
    max-width: 150mm;
    margin-top: 1mm;
    color: #26332f;
    font-size: 4.3pt;
    font-weight: 800;
    line-height: 1.18;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
  }

  .summary-grid p {
    padding-left: 1.5mm;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 6.2pt;
    line-height: 1.24;
    text-align: justify;
    text-align-last: left;
    margin: 0;
  }

  .anomaly-section {
    break-before: page;
    padding-top: 10.8mm;
  }

  .report-hero {
    grid-template-columns: minmax(0, 1fr) 22mm;
    gap: 3mm;
    padding-bottom: 2mm;
    border-bottom-width: 1px;
  }

  .report-hero h3 {
    margin-bottom: 0.5mm;
    font-size: 13pt;
  }

  .report-hero p {
    font-size: 6.6pt;
    line-height: 1.18;
  }

  .report-note {
    margin-top: 0.7mm;
    font-size: 6.1pt;
    line-height: 1.18;
  }

  .score-block {
    min-height: 17mm;
    padding: 1.8mm 1mm;
    border-radius: 2mm;
  }

  .score-block span {
    font-size: 18pt;
  }

  .score-block small {
    font-size: 5.8pt;
  }

  .summary-grid,
  .visual-grid,
  .insight-grid,
  .imagery-grid {
    gap: 2.3mm;
    margin-top: 2.4mm;
  }

  .summary-grid {
    padding-bottom: 2mm;
  }

  .summary-grid p,
  .insight-grid li,
  .report-notice p {
    font-size: 6.2pt;
  }

  .insight-grid li {
    line-height: 1.18;
  }

  .summary-grid h4,
  .chart-title h4,
  .insight-grid h4,
  .report-notice h4,
  .table-section h4 {
    font-size: 7.3pt;
    margin-bottom: 0.6mm;
  }

  .chart-title p,
  .imagery-grid figcaption,
  .timeline-images figcaption {
    font-size: 5.8pt;
    line-height: 1.22;
    padding-bottom: 0.2mm;
    margin-bottom: 0.8mm;
  }

  .chart-title {
    align-items: flex-end;
    margin-bottom: 1mm;
  }

  .imagery-grid figcaption {
    min-height: 2.1mm;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: normal;
  }

  .imagery-grid .preview-derived figcaption {
    font-size: 5.3pt;
  }

  .chart-title h4,
  .chart-title p {
    margin-bottom: 0;
  }

  .imagery-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .imagery-grid .preview-hero {
    grid-column: span 3;
  }

  .imagery-grid .preview-derived {
    grid-column: span 2;
  }

  .imagery-grid img {
    aspect-ratio: 16 / 6.8;
    border-radius: 1.5mm;
  }

  .imagery-grid .image-scale {
    left: 1.8mm;
    bottom: 1.5mm;
    min-width: 8mm;
    font-size: 4.7pt;
    gap: 0.45mm;
  }

  .imagery-grid .image-scale::after {
    height: 0.7mm;
    border-width: 0.25mm;
    border-top: 0;
  }

  .map-colorbar {
    margin-top: 0.9mm;
  }

  .map-colorbar-ramp {
    height: 1.3mm;
    border-color: #bfc9c3;
  }

  .map-colorbar-labels {
    margin-top: 0.35mm;
    font-size: 4.6pt;
    line-height: 1;
  }

  .timeline-section,
  .table-section,
  .anomaly-section {
    margin-top: 2.4mm;
  }

  .visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  canvas {
    width: 100% !important;
    height: 36mm !important;
    max-height: none;
    border-radius: 1.5mm;
  }

  .anomaly-section canvas {
    height: 40mm !important;
  }

  .timeline-subhead {
    margin-top: 2.4mm;
  }

  .timeline-images {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1mm;
  }

  .timeline-images img {
    aspect-ratio: 1.55 / 1;
    border-radius: 1mm;
  }

  .timeline-images .image-scale {
    left: 1mm;
    bottom: 0.9mm;
    min-width: 5.5mm;
    font-size: 3.5pt;
    gap: 0.25mm;
  }

  .timeline-images .image-scale::after {
    height: 0.45mm;
    border-width: 0.18mm;
    border-top: 0;
  }

  .timeline-images figcaption {
    font-size: 4.6pt;
    line-height: 1.18;
    margin-top: 0.4mm;
  }

  .anomaly-reasons {
    margin-top: 0.9mm;
    padding-left: 4.2mm;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 6.2pt;
    line-height: 1.22;
    list-style: disc outside;
  }

  .anomaly-reasons li {
    margin: 0 0 0.35mm;
    padding: 0;
    white-space: nowrap;
  }

  .table-grid {
    gap: 2.2mm;
  }

  .table-wrap {
    overflow: visible;
    border-radius: 1.5mm;
  }

  .metric-table-screen {
    display: none;
  }

  .source-data-groups {
    display: none;
  }

  .metric-print-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1mm;
  }

  .source-data-print-groups {
    display: grid;
    gap: 1mm;
  }

  .source-data-print-group h5 {
    display: flex;
    align-items: baseline;
    gap: 1.8mm;
    margin: 0 0 0.5mm;
    color: #315147;
    font-size: 5.8pt;
    font-weight: 900;
  }

  .source-data-print-title {
    text-transform: uppercase;
  }

  .source-data-print-count {
    color: #52615c;
    font-size: 5.4pt;
    font-weight: 900;
  }

  .source-data-print-group table {
    table-layout: fixed;
  }

  .source-data-print-group th,
  .source-data-print-group td {
    overflow: hidden;
    padding: 0.55mm 0.62mm;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .source-data-print-group th:nth-child(1),
  .source-data-print-group td:nth-child(1) {
    width: 10%;
  }

  .source-data-print-group th:nth-child(2),
  .source-data-print-group td:nth-child(2) {
    width: 10%;
  }

  .source-data-print-group th:nth-child(3),
  .source-data-print-group td:nth-child(3) {
    width: 16%;
  }

  .source-data-print-group th:nth-child(4),
  .source-data-print-group td:nth-child(4) {
    width: 23%;
  }

  .source-data-print-group th:nth-child(5),
  .source-data-print-group td:nth-child(5) {
    width: 41%;
    overflow-wrap: normal;
    word-break: normal;
  }

  .metric-print-grid table {
    table-layout: fixed;
  }

  .metric-print-grid th,
  .metric-print-grid td {
    padding: 0.55mm 0.62mm;
  }

  .metric-print-grid th:nth-child(1),
  .metric-print-grid td:nth-child(1) {
    width: 30%;
  }

  .metric-print-grid th:nth-child(2),
  .metric-print-grid td:nth-child(2) {
    width: 16%;
  }

  .metric-print-grid th:nth-child(3),
  .metric-print-grid td:nth-child(3) {
    width: 54%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  table {
    min-width: 0;
    font-size: 5.5pt;
  }

  th,
  td {
    padding: 0.65mm 0.85mm;
    border-bottom-color: #b8c0ba;
    line-height: 1.02;
  }

  th {
    font-size: 5.2pt;
  }

  .metric-group-row td {
    font-size: 5.2pt;
  }

  .insight-grid {
    grid-template-columns: 1.12fr 1.88fr;
    column-gap: 1.5mm;
  }

  .insight-grid ul {
    margin-top: 1.2mm;
    padding-left: 4.2mm;
    list-style: disc outside;
  }

  .insight-grid li {
    margin-bottom: 0.45mm;
  }

  #sceneList,
  #dataSourceList {
    display: none;
  }

  .print-scene-data-list {
    display: block;
    column-count: 2;
    column-fill: balance;
    column-gap: 2.2mm;
    margin: 1.2mm 0 0;
    padding-left: 5mm;
    list-style: disc outside;
  }

  .print-scene-data-list li {
    break-inside: avoid;
    margin: 0 0 0.45mm;
    font-size: 6.2pt;
    line-height: 1.18;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .report-notice {
    margin-top: 2.6mm;
    padding-top: 1.2mm;
    padding-bottom: 1.2mm;
    border-bottom: 1px solid #d9aaa3;
  }

  .report-notice p {
    margin: 0;
    padding-left: 1.5mm;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 5.6pt;
    line-height: 1.28;
    white-space: pre-line;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .report-hero,
  .summary-grid,
  .imagery-grid,
  .timeline-section,
  .visual-grid,
  .anomaly-section,
  canvas,
  figure {
    break-inside: avoid;
  }
}

.landing {
  min-height: 100vh;
  background: var(--paper);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px clamp(18px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
  background: #f8f8f8;
}

.landing-brand {
  border: 0 !important;
  padding: 0 !important;
}

.landing-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.landing-brand {
  gap: 10px;
}

.landing-nav strong {
  font-size: 1.4rem;
  letter-spacing: 0;
}

.landing-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.landing-nav-links a,
.landing-actions a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 11px;
  text-decoration: none;
  font-weight: 800;
}

.hero-brand {
  margin-bottom: 20px;
}

.landing .brand-logo {
  width: clamp(36px, 4.2vw, 48px);
}

.landing .landing-nav-logo {
  width: clamp(130px, 14vw, 180px);
}

.hero-brand .brand-logo {
  width: clamp(64px, 8vw, 96px);
}

.landing-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(430px, calc(100vh - 182px), 690px);
  padding: clamp(30px, 5vw, 58px) clamp(18px, 5vw, 52px);
  overflow: hidden;
  background: #121b18;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 19, 16, 0.9) 0%, rgba(10, 19, 16, 0.72) 40%, rgba(10, 19, 16, 0.22) 100%),
    linear-gradient(0deg, rgba(10, 19, 16, 0.34), rgba(10, 19, 16, 0.04));
  pointer-events: none;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 221, 255, 0.72);
  border-radius: 8px;
  pointer-events: none;
}

.landing-image-tiles {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  padding: 0;
  background: #121b18;
}

.landing-image-tiles img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(1.05) contrast(1.04);
}

.landing-image-tiles .tile-large {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.landing-image-tiles .tile-sar {
  grid-column: 2;
  grid-row: 1;
}

.landing-image-tiles .tile-change {
  grid-column: 2;
  grid-row: 2;
}

.landing-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
}

.landing-copy .eyebrow {
  color: #ffddff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.34);
}

.landing-copy h1 {
  color: #ffffff;
  font-size: clamp(2.35rem, 4.7vw, 3.8rem);
  margin-bottom: 16px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32);
}

.landing-lede {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.92rem, 1.25vw, 1.04rem);
  line-height: 1.42;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.34);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.landing-actions .landing-primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.landing-actions .landing-trial,
.landing-nav-links a:last-child {
  border-color: #d58da3;
  background: #fff6fa;
  color: #8f2c4c;
}

.landing-actions a:not(.landing-primary):not(.landing-trial) {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.86);
  color: #1f342c;
}

.trial-note {
  max-width: 620px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
}

.landing-image-caption {
  position: absolute;
  right: clamp(18px, 3.6vw, 42px);
  bottom: clamp(18px, 3vw, 34px);
  z-index: 3;
  max-width: min(520px, calc(100% - 44px));
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  padding: 0;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.18;
  text-align: right;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.54);
  text-transform: uppercase;
}

.landing-visual {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(20, 32, 31, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 32, 31, 0.14) 1px, transparent 1px),
    linear-gradient(135deg, #31473d, #59765f 36%, #1f4d66 37%, #172d34 48%, #776a51 49%, #a9966f);
  background-size: 34px 34px, 34px 34px, cover;
}

.architecture-visual {
  display: grid;
  grid-template-columns: 1fr 34px 1fr;
  grid-template-rows: 1fr 34px 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(20, 32, 31, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 32, 31, 0.08) 1px, transparent 1px),
    #f5f8f5;
  background-size: 28px 28px;
}

.sample-visual {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 12px;
  justify-self: start;
  width: min(100%, clamp(520px, 56vw, 720px));
  min-height: clamp(260px, 29vw, 365px);
  padding: 16px;
  background: #ffddff;
}

.sample-mosaic {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-height: clamp(190px, 21vw, 275px);
}

.sample-tile {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(183, 105, 124, 0.34);
  border-radius: 8px;
  background: #0c1514;
}

.sample-tile-main {
  grid-row: 1 / span 2;
}

.sample-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sample-tile figcaption {
  position: absolute;
  left: 4px;
  top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sample-visual-readout {
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.sample-visual-readout {
  position: relative;
  display: grid;
  gap: 0;
  padding: 13px 14px 12px;
}

.sample-visual-readout span,
.sample-visual-readout small {
  color: var(--muted);
  font-weight: 800;
}

.sample-visual-readout span {
  font-size: 0.72rem;
  text-transform: uppercase;
}

.sample-visual-readout span {
  margin-top: 10px;
}

.sample-visual-readout strong {
  font-size: clamp(1.16rem, 1.75vw, 1.48rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.sample-visual-readout small {
  font-size: 0.76rem;
  line-height: 1.2;
}

.arch-node,
.arch-output {
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(31, 122, 90, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(20, 32, 31, 0.08);
}

.arch-node span,
.arch-output span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.arch-node strong,
.arch-output strong {
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.arch-node small,
.arch-output small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.arch-web {
  grid-column: 1;
  grid-row: 1;
}

.arch-analysis {
  grid-column: 3;
  grid-row: 1;
}

.arch-data {
  grid-column: 3;
  grid-row: 3;
}

.arch-output {
  grid-column: 1;
  grid-row: 3;
}

.arch-flow {
  position: relative;
}

.arch-flow::before,
.arch-flow::after {
  content: "";
  position: absolute;
  background: var(--green);
}

.arch-flow-a {
  grid-column: 2;
  grid-row: 1;
}

.arch-flow-a::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
}

.arch-flow-a::after {
  right: 0;
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.arch-flow-b {
  grid-column: 3;
  grid-row: 2;
}

.arch-flow-b::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
}

.arch-flow-b::after {
  left: calc(50% - 5px);
  bottom: 0;
  width: 10px;
  height: 10px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.map-strip {
  position: absolute;
  inset: auto -12% 80px -8%;
  height: 72px;
  rotate: -17deg;
  background: rgba(46, 123, 139, 0.58);
}

.map-strip-b {
  inset: 82px -10% auto -14%;
  rotate: 21deg;
  background: rgba(184, 115, 31, 0.45);
}

.map-chip,
.map-readout {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(20, 32, 31, 0.16);
}

.map-chip {
  left: 28px;
  top: 28px;
  display: grid;
  gap: 2px;
  padding: 14px 18px;
}

.map-chip span,
.map-readout span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.map-chip strong {
  font-size: 1.5rem;
}

.map-readout {
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 7px;
  padding: 12px 14px;
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.88fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
  padding: clamp(24px, 3.6vw, 42px) clamp(18px, 5vw, 52px);
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.pricing-head {
  align-self: center;
  max-width: 420px;
}

.pricing-head h2 {
  font-size: clamp(1.35rem, 2.35vw, 1.95rem);
  line-height: 1;
  margin-bottom: 16px;
  white-space: nowrap;
}

.pricing-head p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 1180px;
  justify-self: end;
}

.pricing-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.pricing-card-featured {
  border-color: #d58da3;
  background: #fff6fa;
}

.pricing-card-muted {
  background: #fffff7;
}

.pricing-kicker {
  display: block;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin: 4px 0 0;
  font-size: 1.08rem;
}

.pricing-price {
  margin: 8px 0 0;
  color: #8f2c4c;
  font-size: 1.28rem;
  font-weight: 900;
}

.pricing-price span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.pricing-token-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.pricing-card li {
  white-space: nowrap;
}

.pricing-action {
  display: inline-grid;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d58da3;
  border-radius: 6px;
  background: #fff;
  color: #8f2c4c;
  padding: 0 10px;
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.pricing-action-live {
  border-color: #8f2c4c;
  background: #8f2c4c;
  color: #fff;
  box-shadow: 0 8px 18px rgba(143, 44, 76, 0.18);
}

.pricing-action-live:hover {
  border-color: #6f2139;
  background: #6f2139;
  color: #fff;
}

.landing-band,
.architecture {
  padding: clamp(34px, 6vw, 66px) clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.legal-note {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 7px clamp(18px, 5vw, 52px);
  border-top: 1px solid #d9aaa3;
  border-bottom: 1px solid #d9aaa3;
  background: #fff6fa;
  color: #9d2f20;
}

.legal-copy {
  display: grid;
  gap: 2px;
  max-width: none;
}

.legal-copy p {
  color: #9d2f20;
  line-height: 1.18;
  margin-bottom: 0;
  font-size: 0.72rem;
}

.legal-copy p:last-child {
  margin-bottom: 0;
}

.legal-note h2 {
  color: #9d2f20;
  font-size: 0.86rem;
  margin-bottom: 0;
}

.landing-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  background: var(--panel);
}

.landing-band p,
.architecture p {
  color: var(--muted);
  line-height: 1.65;
}

.landing-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.landing-points span,
.architecture-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 14px;
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.architecture-grid h3 {
  margin: 0 0 8px;
}

@media (max-width: 860px) {
  .landing-hero,
  .landing-band,
  .pricing-section,
  .architecture-grid,
  .legal-note {
    grid-template-columns: 1fr;
  }

  .pricing-head {
    max-width: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card li {
    white-space: normal;
  }

  .landing-visual {
    min-height: 300px;
  }

  .sample-mosaic {
    min-height: 300px;
  }

  .architecture-visual {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .arch-web,
  .arch-analysis,
  .arch-data,
  .arch-output,
  .arch-flow-a,
  .arch-flow-b {
    grid-column: auto;
    grid-row: auto;
  }

  .arch-flow {
    display: none;
  }
}

@media print {
  .print-compact-hidden {
    display: none !important;
  }
}
