:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --panel: #ffffff;
  --panel-alt: #f8fbfa;
  --text: #14211f;
  --muted: #61706c;
  --line: #dbe5e1;
  --line-strong: #bdcbc6;
  --accent: #007f73;
  --accent-strong: #005d55;
  --green: #138a45;
  --yellow: #a86f00;
  --red: #bd2f2a;
  --blue: #245a8d;
  --shadow: 0 18px 48px rgba(20, 33, 31, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
  --control: #ffffff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 247, 246, 0.96)),
    var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  height: 68px;
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #10231f;
  color: #d4fff6;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}

.brand span:last-child {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.source-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: auto;
  scrollbar-width: none;
}

.source-strip::-webkit-scrollbar {
  display: none;
}

.source-strip span,
.layer-row span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #344541;
  background: var(--panel-alt);
  font-size: 12px;
  font-weight: 650;
}

.source-strip .ok,
.layer-row .ok {
  border-color: rgba(19, 138, 69, 0.35);
  color: var(--green);
  background: #eefaf3;
}

.source-strip .warn,
.layer-row .warn {
  border-color: rgba(168, 111, 0, 0.32);
  color: var(--yellow);
  background: #fff7e8;
}

.source-strip .bad,
.layer-row .bad {
  border-color: rgba(189, 47, 42, 0.32);
  color: var(--red);
  background: #fff1f0;
}

.top-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 18px;
  padding: 14px 22px 8px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f7fbfa 0%, #eef6f4 58%, #fff8e8 100%);
}

.hero-copy,
.commercial-card,
.account-gate,
.manual-gate {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 18px;
}

.hero-copy .eyebrow {
  margin: 0 0 9px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 850px;
  margin: 0;
  color: #003b5c;
  font-size: 31px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 780px;
  margin: 12px 0 0;
  color: #40534f;
  line-height: 1.5;
}

.hero-actions,
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 13px;
}

.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.value-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(0, 127, 115, 0.2);
  border-radius: 999px;
  background: #effaf7;
  color: #194842;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 750;
}

.commercial-card {
  padding: 16px;
}

.commercial-card h2 {
  margin: 0 0 12px;
  color: #003b5c;
  font-size: 20px;
}

.commercial-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.shop-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.shop-heading p {
  max-width: 360px;
  margin-top: 5px;
}

.shop-heading > span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(19, 138, 69, 0.28);
  background: #effaf3;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.token-pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 9px;
}

.token-pack {
  min-width: 0;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  padding: 9px;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.token-pack:hover {
  border-color: rgba(0, 127, 115, 0.45);
  box-shadow: 0 10px 24px rgba(20, 33, 31, 0.09);
  transform: translateY(-1px);
}

.token-pack.featured {
  border-color: rgba(0, 127, 115, 0.55);
  background: #f2fbf8;
}

.token-pack strong {
  color: #003b5c;
  font-size: 14px;
}

.token-pack .token-amount {
  color: #233b36;
  font-size: 12px;
  font-weight: 800;
}

.token-pack .price {
  color: var(--accent-strong);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.token-pack small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.pricing-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.pricing-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.pricing-list.compact div {
  padding-bottom: 5px;
}

.pricing-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 7px;
}

.pricing-list dt {
  color: var(--text);
  font-weight: 750;
}

.pricing-list dd {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 850;
  white-space: nowrap;
}

.account-gate,
.manual-gate {
  margin: 8px 22px 0;
  padding: 11px 16px;
}

.account-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.account-gate strong,
.manual-gate strong {
  display: block;
  color: #003b5c;
}

.account-gate span,
.manual-gate p {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.commercial-return {
  margin-top: 9px;
  border: 1px solid rgba(36, 90, 141, 0.22);
  border-radius: var(--radius-sm);
  background: #eef6ff;
  color: #17416a;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.commercial-return.success {
  border-color: rgba(19, 138, 69, 0.24);
  background: #eefaf3;
  color: var(--green);
}

.commercial-return.pending {
  border-color: rgba(168, 111, 0, 0.28);
  background: #fff7e8;
  color: #6d4b00;
}

.commercial-return.cancel {
  border-color: rgba(181, 55, 55, 0.24);
  background: #fff1f1;
  color: #9b2424;
}

.manual-gate {
  border-left: 4px solid var(--accent);
}

.manual-gate.blocked {
  border-left-color: var(--yellow);
  background: #fff8e8;
}

.manual-gate.ready {
  border-left-color: var(--green);
  background: #effaf3;
}

.commercial-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 11px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(420px, 1fr) minmax(320px, 380px);
  gap: 16px;
  padding: 16px;
  min-height: calc(100vh - 68px);
}

.panel,
.map-panel {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.planner-panel,
.center-column,
.side-column {
  min-width: 0;
}

.planner-panel {
  padding: 16px;
  overflow: auto;
  max-height: calc(100vh - 100px);
}

.center-column,
.side-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.center-column > *,
.side-column > * {
  min-width: 0;
  width: 100%;
}

.side-column {
  max-height: calc(100vh - 100px);
  overflow: auto;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-heading.compact {
  margin-bottom: 10px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 20px;
  line-height: 1.15;
}

h2 {
  font-size: 17px;
  line-height: 1.2;
}

h3 {
  font-size: 13px;
  line-height: 1.2;
  color: #2d3c38;
  text-transform: uppercase;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 4px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin: 0 0 12px;
  background: var(--panel-alt);
}

legend {
  padding: 0 6px;
  color: #263632;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  color: #2f3d3a;
  font-size: 12px;
  font-weight: 700;
}

.field-grid {
  display: grid;
  gap: 10px;
}

.field-grid.two {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.field-grid.three {
  grid-template-columns: minmax(130px, 1.2fr) minmax(86px, 0.85fr) minmax(92px, 0.9fr);
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--control);
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

input,
select {
  height: 38px;
  padding: 0 10px;
}

textarea {
  resize: vertical;
  padding: 10px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 127, 115, 0.14);
}

.check-row {
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 6px;
  color: #293835;
  font-size: 13px;
  font-weight: 650;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.icon-button,
.tool-button {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: #263632;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
}

.icon-button {
  width: 38px;
  padding: 0;
}

.icon-button.text {
  width: auto;
  padding: 0 12px;
}

.tool-button {
  padding: 0 12px;
  text-decoration: none;
}

.icon-button svg,
.tool-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary,
.tool-button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.tool-button.muted {
  color: var(--muted);
}

.map-panel {
  min-height: 210px;
  position: relative;
  overflow: hidden;
}

.flight-map {
  position: absolute;
  inset: 0;
  min-height: 210px;
  background: #eaf2ef;
  z-index: 1;
}

.map-fallback {
  height: 100%;
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.leaflet-container {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.leaflet-control-attribution {
  font-size: 10px;
}

.leaflet-popup-content {
  margin: 10px 12px;
  color: #20302c;
  font-size: 12px;
  line-height: 1.35;
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 4px;
}

.map-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 402;
  pointer-events: none;
}

.map-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(20, 33, 31, 0.08);
}

.result-panel,
.trace-panel,
.profile-panel,
.servais-panel,
.documents-panel,
.history-panel,
.disclaimer-panel {
  padding: 16px;
}

.trace-panel {
  overflow: hidden;
}

.result-panel {
  border-left: 6px solid var(--yellow);
}

.result-panel.status-green {
  border-left-color: var(--green);
}

.result-panel.status-red {
  border-left-color: var(--red);
}

.result-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.status-orb {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 6px rgba(168, 111, 0, 0.13);
}

.status-green .status-orb {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(19, 138, 69, 0.13);
}

.status-red .status-orb {
  background: var(--red);
  box-shadow: 0 0 0 6px rgba(189, 47, 42, 0.13);
}

#status-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
  color: var(--yellow);
}

.status-green #status-label {
  color: var(--green);
}

.status-red #status-label {
  color: var(--red);
}

.result-summary {
  margin-top: 12px;
  color: #334540;
  font-size: 14px;
}

.operational-summary {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8fbfa;
  padding: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.scenario-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: #10231f;
  color: #d4fff6;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.operational-summary strong,
.operational-summary span {
  display: block;
  line-height: 1.35;
}

.operational-summary strong {
  color: #23332f;
  font-size: 13px;
}

.operational-summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.result-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.clean-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.clean-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  background: var(--panel-alt);
  color: #2d3c38;
  font-size: 13px;
  line-height: 1.35;
}

.clean-list.dense li {
  padding: 8px;
  font-size: 12px;
}

.empty-row {
  color: var(--muted) !important;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: #ffffff;
}

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

th {
  position: sticky;
  top: 0;
  background: #f7faf9;
  color: #2a3935;
  font-weight: 850;
}

td strong {
  display: block;
  font-size: 12px;
}

td span {
  color: var(--muted);
}

.severity {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  font-weight: 850;
}

.severity.green {
  color: var(--green);
  background: #eefaf3;
  border-color: rgba(19, 138, 69, 0.26);
}

.severity.yellow {
  color: var(--yellow);
  background: #fff7e8;
  border-color: rgba(168, 111, 0, 0.28);
}

.severity.red {
  color: var(--red);
  background: #fff1f0;
  border-color: rgba(189, 47, 42, 0.26);
}

.severity.info {
  color: var(--blue);
  background: #eef6ff;
  border-color: rgba(36, 90, 141, 0.22);
}

.layer-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.status-note {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 10px;
  background: var(--panel-alt);
  color: #334540;
  font-size: 12px;
  line-height: 1.4;
}

.status-note.ok-note {
  border-color: rgba(19, 138, 69, 0.24);
  background: #eefaf3;
  color: var(--green);
}

.status-note.warn-note {
  border-color: rgba(168, 111, 0, 0.28);
  background: #fff7e8;
  color: #6d4b00;
}

.manual-status {
  margin-top: 10px;
}

.upload-label {
  margin-top: 10px;
}

.upload-label input {
  height: auto;
  padding: 8px;
  background: #fbfdfc;
}

.url-list {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  max-height: 180px;
  overflow: auto;
}

.url-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdfc;
  padding: 8px;
}

.url-item strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.url-item code {
  display: block;
  white-space: nowrap;
  overflow: auto;
  color: var(--blue);
  font-size: 11px;
}

.zone-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 280px;
  overflow: auto;
}

.zone-empty,
.zone-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfdfc;
  color: #334540;
  font-size: 12px;
  line-height: 1.35;
}

.zone-empty {
  padding: 10px;
}

.zone-empty.ok {
  color: var(--green);
  background: #eefaf3;
}

.zone-empty.bad {
  color: var(--red);
  background: #fff1f0;
}

.zone-item {
  padding: 10px;
  border-left: 4px solid var(--zone-color, var(--accent));
}

.zone-title {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}

.zone-title span {
  color: var(--zone-color, var(--accent));
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.zone-title strong {
  color: var(--text);
  font-size: 13px;
}

.zone-item dl {
  display: grid;
  gap: 4px;
  margin: 0;
}

.zone-item dl div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 8px;
}

.zone-item dt {
  color: var(--muted);
  font-weight: 800;
}

.zone-item dd {
  margin: 0;
  color: #273733;
  overflow-wrap: anywhere;
}

.document-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.doc-button {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-alt);
  color: #273733;
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.doc-button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.doc-button.active {
  border-color: var(--accent);
  background: #effaf7;
}

.history-panel .button-row {
  justify-content: space-between;
}

.privacy-note {
  border-color: rgba(36, 90, 141, 0.2);
  background: #f1f7fc;
  color: #2c4f6a;
}

.history-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.history-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.history-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-alt);
  padding: 9px;
  display: grid;
  gap: 8px;
}

.history-item.active {
  border-color: var(--accent);
  background: #effaf7;
}

.history-main {
  display: grid;
  gap: 3px;
}

.history-main strong {
  color: var(--text);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.history-main span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.history-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.history-actions .tool-button {
  min-height: 31px;
  padding: 0 6px;
  font-size: 11px;
}

#document-preview {
  min-height: 232px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
}

.source-links {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.source-links a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.source-links a:hover {
  text-decoration: underline;
}

@media (max-width: 1180px) {
  .product-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .token-pack-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .workspace {
    grid-template-columns: minmax(310px, 360px) minmax(400px, 1fr);
  }

  .side-column {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  .disclaimer-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .topbar {
    height: auto;
    min-height: 68px;
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 10px;
  }

  .top-actions {
    justify-content: stretch;
  }

  .top-actions .icon-button.text {
    flex: 1;
  }

  .product-hero {
    padding: 12px;
  }

  .hero-copy h1 {
    font-size: 26px;
  }

  .shop-heading {
    display: grid;
  }

  .token-pack-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-list.compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-gate {
    align-items: stretch;
    flex-direction: column;
  }

  .account-gate,
  .manual-gate {
    margin: 10px 12px 0;
  }

  .workspace,
  .side-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace {
    padding: 10px;
  }

  .planner-panel,
  .side-column {
    max-height: none;
    overflow: visible;
  }

  .field-grid.two,
  .field-grid.three,
  .result-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-panel {
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
