#filterGroups {
  max-height: 430px;
  overflow: auto;
  padding-right: 4px;
}

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

.error-bar-toggle {
  margin-top: 12px;
  flex-direction: row !important;
  align-items: center;
  color: var(--ink) !important;
}

.error-bar {
  pointer-events: none;
}

.layer-section .choice-title {
  align-items: center;
  margin-bottom: 8px;
}

.layer-section .choice-title h2 {
  margin: 0;
}

.layer-list {
  display: grid;
  gap: 7px;
  max-height: 220px;
  overflow: auto;
}

.layer-empty {
  color: var(--muted);
  font-size: 12px;
}

.layer-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 88px auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.layer-symbol {
  min-height: 28px;
  padding: 3px 6px;
  font-size: 10px;
}

.filter-level-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.filter-level-head span { display: flex; gap: 6px; }
.filter-level-head .link-button { padding: 0; min-height: 22px; font-size: 10px; }

.axis-controls fieldset {
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  align-items: end;
}

.axis-controls select { min-width: 0; width: 100%; }

.manual-points .choice-title { align-items: start; }
.manual-points .choice-title h2 { margin: 0 0 3px; }
.manual-points .choice-title small { display: block; color: var(--muted); font-size: 10px; }
.manual-groups { display: grid; gap: 8px; margin: 9px 0; }
.manual-group { padding: 8px; border: 1px solid var(--line); background: #fff; }
.manual-group-head { display: grid; grid-template-columns: minmax(100px,1fr) 96px 30px; gap: 6px; margin-bottom: 6px; }
.manual-group-head input,.manual-group-head select,.manual-group-head button { min-height: 30px; padding: 4px 6px; }
.manual-group textarea { width: 100%; resize: vertical; }

.workflow-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.workflow-steps > article { position: relative; padding: 18px; background: #fff; }
.workflow-steps h3 { margin: 0 0 10px 34px; }
.workflow-steps p { margin: 0 0 12px 34px; color: var(--muted); font-size: 11px; }
.step-number { position: absolute; top: 15px; left: 16px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 11px; }
.workflow-steps > article.active { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.workflow-steps > article.complete .step-number { background: var(--accent); color: #fff; }
.workflow-status { min-height: 18px; }
#exportTags { display: flex; flex-direction: column; gap: 18px; }
#exportTags > .filter-block { width: 100%; min-width: 0; }
.plot-preparation > label { margin-bottom: 9px; }
.plot-preparation > label.check, .export-preparation-dialog > label.check { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.plot-preparation input[type="checkbox"], .export-preparation-dialog input[type="checkbox"] { width: auto; flex: 0 0 auto; margin: 0; }
.control-help.preparation-help { background: var(--accent-soft); border-left-color: var(--accent); color: var(--muted); }
.export-preparation-dialog { width: min(620px, calc(100vw - 28px)); max-height: calc(100dvh - 28px); overflow: auto; border: 1px solid var(--line); border-radius: 7px; padding: 24px; }
.export-preparation-dialog::backdrop { background: rgba(12,22,20,.45); }
.export-preparation-dialog h2 { margin: 0 0 12px; font-size: 21px; }
.export-preparation-dialog > p { color: var(--muted); line-height: 1.6; font-size: 13px; }
.export-preparation-dialog > label { display: flex; flex-direction: column; gap: 6px; margin: 16px 0; }
.export-preparation-dialog .dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.export-preparation-dialog .dialog-actions button { flex: 1 1 auto; }
.import-format-note { display: flex; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.import-format-note strong { color: var(--text); white-space: nowrap; }
.data-notice { margin: 0 0 14px; position: sticky; top: 66px; z-index: 12; box-shadow: 0 6px 18px rgba(23,42,37,.08); }
.control-help { margin: 0 0 10px; padding: 9px 10px; background: #fff2ee; border-left: 3px solid #d45b4c; color: #744138; font-size: 11px; line-height: 1.5; }
.axis-scale-help { margin: -6px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.choice-count { color: var(--muted); font-size: 10px; font-weight: 400; }
.mini-choices label:has(input:disabled),.choice-grid label:has(input:disabled) { opacity: .42; }
.feedback-dialog p { white-space: pre-line; }
.user-tool-grid { margin-top: 8px; }

.global-toast {
  position: fixed;
  z-index: 1000;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  background: #17312d;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  white-space: pre-line;
  font-size: 12px;
}
.global-toast.error { border-left-color: #d45b4c; background: #44231f; }
.feedback-dialog { width: min(470px, calc(100vw - 32px)); border: 0; padding: 0; }
.feedback-dialog::backdrop { background: rgba(12,22,20,.42); }
.feedback-dialog > div { padding: 24px; }
.feedback-dialog h2 { margin: 0 0 8px; font-size: 19px; }
.feedback-dialog p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; }
.feedback-dialog button { width: 100%; }

.analysis-table-preview { margin-top: 14px; }
.analysis-table-preview .table-wrap { max-height: 360px; }
.analysis-table-preview th { min-width: 110px; position: sticky; background: #edf2f0; }
.analysis-table-preview thead tr:nth-child(1) th { top: 0; }
.analysis-table-preview thead tr:nth-child(2) th { top: 29px; }
.analysis-table-preview thead tr:nth-child(3) th { top: 58px; }

.export-choice-status,
.filter-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.export-choice-status { padding: 10px 0; }
.filter-empty { padding: 5px 0; }

.life-context-nav {
  margin: -8px 0 26px;
  border-bottom: 1px solid var(--line);
}

.life-section-tabs,
.life-tool-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.life-section-tabs button,
.life-tool-tabs button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.life-section-tabs button { font-weight: 650; }
.life-tool-tabs { border-top: 1px solid #edf1ef; }
.life-tool-tabs button { min-height: 38px; font-size: 12px; }
.life-section-tabs button.active,
.life-tool-tabs button.active { border-bottom-color: var(--accent); color: var(--accent); }
.life-section-tabs svg,
.life-tool-tabs svg { width: 16px; height: 16px; }

.structure-import-band .check {
  width: fit-content;
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 12px;
}

.structure-import-band .check input { width: auto; min-height: 0; }
.structure-import-band > .primary { display: inline-flex; align-items: center; gap: 7px; }
.structure-import-band > .primary svg,
#refreshStructureCatalog svg { width: 16px; height: 16px; }
.structure-catalog-downloads { display: flex; flex-wrap: wrap; gap: 5px; }
.structure-catalog-downloads button { border: 1px solid var(--line); background: #fff; border-radius: 3px; }

.early-earth-globe .globe-toolbar { background: rgba(31,18,13,.86); }
.early-earth-globe .globe-tool:hover,
.early-earth-globe .globe-tool.active { border-color: #d18a5f; background: #4b2b1f; }
.early-earth-globe .globe-label { border-left-color: #6fd0c5; background: rgba(24,13,10,.82); }
.early-earth-globe .globe-label.selected { border-left-color: #ffbf69; color: #fff2dc; }

@media(max-width:680px){
  .life-context-nav { margin-top: -4px; }
  .life-section-tabs button,
  .life-tool-tabs button { flex: 1 0 auto; justify-content: center; }
  #mapView .view-head h1 { font-size: 22px; }
  #mapView .view-head .secondary { padding: 0 10px; }
  #structure-dataView .view-head { align-items: flex-start; }
  #refreshStructureCatalog { width: 38px; padding: 0; display: grid; place-items: center; flex: 0 0 38px; }
  #refreshStructureCatalog span { display: none; }
}

.layer-row input {
  width: auto;
  min-height: 0;
}

.layer-copy {
  min-width: 0;
}

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

.layer-copy strong {
  font-size: 12px;
}

.layer-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.layer-remove {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 18px;
}

.plot-tooltip {
  position: absolute;
  z-index: 5;
  width: max-content;
  max-width: min(320px, calc(100% - 24px));
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px;
  background: rgba(24,32,31,.94);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  pointer-events: none;
  font-size: 11px;
  line-height: 1.55;
}

.plot-tooltip strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.plot-tooltip span {
  display: block;
  color: #dce5e2;
}

.plot-point {
  cursor: crosshair;
  transition: opacity .12s;
}
.template-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 12px;
  max-width: min(650px, 62vw);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.map-commandbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(200px, 1fr) repeat(3, minmax(92px, .45fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.map-commandbar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.map-stat {
  min-height: 58px;
  padding: 8px 12px;
  border-left: 2px solid var(--accent);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-stat strong { font-size: 18px; font-weight: 650; }
.map-stat span { color: var(--muted); font-size: 10px; }
.map-stat.muted { border-left-color: #9aa5a2; }

.globe-stage {
  position: relative;
  width: 100%;
  height: min(66vh, 680px);
  min-height: 500px;
  overflow: hidden;
  background: #07110f;
}

.globe-canvas,
.globe-canvas canvas,
.globe-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.globe-canvas canvas { display: block; touch-action: none; }
.globe-labels { pointer-events: none; overflow: hidden; }

.globe-label {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 6px;
  border-left: 2px solid #f0a65a;
  background: rgba(4,15,13,.78);
  color: #f2f6f4;
  font-size: 10px;
  line-height: 1.2;
}

.globe-label.selected { border-left-color: #8be0d2; color: #d9fff8; font-weight: 650; }

.globe-toolbar {
  position: absolute;
  z-index: 6;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(8,24,21,.84);
  backdrop-filter: blur(8px);
}

.globe-tool {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #d9e4e1;
  display: grid;
  place-items: center;
}

.globe-tool:hover,
.globe-tool.active { border-color: #75b9ae; background: #173b35; color: #fff; }
.globe-tool svg { width: 19px; height: 19px; }

.globe-selection {
  position: absolute;
  z-index: 5;
  border: 1px solid #8be0d2;
  background: rgba(88,190,174,.16);
  pointer-events: none;
}

.globe-tooltip {
  position: absolute;
  z-index: 7;
  max-width: 250px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(6,20,17,.94);
  color: #fff;
  pointer-events: none;
  font-size: 11px;
}

.globe-credit {
  position: absolute;
  z-index: 4;
  left: 14px;
  bottom: 10px;
  color: rgba(255,255,255,.58);
  font-size: 9px;
  pointer-events: none;
}

.map-selection-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-top: 22px;
  margin-bottom: 10px;
}

.map-selection-head h2 { margin: 0 0 4px; font-size: 17px; }
.map-selection-head p { margin: 0; color: var(--muted); font-size: 12px; }
.map-selection-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.map-table-wrap { max-height: 380px; }
.map-table-wrap td:first-child { font-weight: 650; }
.map-empty-row { height: 92px; text-align: center; color: var(--muted); }
.map-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.map-pagination .icon-button { display: grid; place-items: center; }
.map-pagination svg { width: 17px; height: 17px; }

.map-plot-filter {
  margin: 12px 0 0;
  padding: 9px 10px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.map-plot-filter strong,
.map-plot-filter small { display: block; }
.map-plot-filter strong { font-size: 11px; }
.map-plot-filter small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.analysis-healthbar {
  min-height: 38px;
  margin-bottom: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.status-dotline { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.status-dotline i { width: 8px; height: 8px; border-radius: 50%; background: #9aa5a2; }
.status-dotline.online i { background: #2d8b78; }
.status-dotline.error i { background: var(--danger); }

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(240px, 290px) minmax(250px, 320px) minmax(360px, 1fr);
  min-height: calc(100vh - 190px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.analysis-module {
  padding-top: 24px;
}

.analysis-module > .band-head {
  align-items: flex-end;
}

.analysis-module .analysis-layout {
  min-height: 640px;
}

.analysis-submit,
.analysis-jobs,
.analysis-detail { min-width: 0; padding: 18px; }
.analysis-submit,
.analysis-jobs { border-right: 1px solid var(--line); }
.analysis-submit form { display: grid; gap: 14px; }
.analysis-submit label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.analysis-submit .check { display: flex; }
.analysis-submit button svg,
.analysis-actions button svg,
#refreshAnalysis svg { width: 16px; height: 16px; }
.analysis-submit button,
.analysis-actions button,
#refreshAnalysis { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }

.analysis-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.analysis-section-head h2 { margin: 0; font-size: 16px; }
.analysis-section-head small { color: var(--muted); }
.analysis-job-list { display: grid; gap: 1px; max-height: calc(100vh - 250px); overflow: auto; background: #fff; }
.analysis-job {
  width: 100%;
  min-height: 74px;
  padding: 12px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
}
.analysis-job:hover,
.analysis-job.active { border-left-color: var(--accent); background: var(--accent-soft); }
.analysis-job strong,
.analysis-job span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analysis-job strong { font-size: 12px; }
.analysis-job span { margin-top: 5px; color: var(--muted); font-size: 10px; }

.analysis-empty { min-height: 320px; display: grid; place-items: center; align-content: center; gap: 10px; background: #fff; color: var(--muted); }
.analysis-empty svg { width: 34px; height: 34px; }
.analysis-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.analysis-detail-head h2 { margin: 3px 0 0; font-size: 20px; }
.mono-label { margin: 0; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.status-pill { padding: 4px 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-pill.running,
.status-pill.queued { border-color: var(--accent); color: var(--accent); }
.status-pill.succeeded { border-color: #2d8b78; color: #1f6e5f; }
.status-pill.failed,
.status-pill.interrupted { border-color: var(--danger); color: var(--danger); }
.analysis-progress { margin: 20px 0 12px; }
.analysis-progress div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 12px; }
.analysis-progress progress { width: 100%; height: 7px; accent-color: var(--accent); }
.analysis-inputs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.analysis-inputs span { max-width: 100%; padding: 4px 7px; border: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.analysis-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.analysis-artifacts { max-height: 260px; }
.analysis-artifacts td:first-child { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.analysis-artifacts button { padding: 4px 7px; font-size: 10px; }
.analysis-preview { max-height: 300px; margin: 14px 0; padding: 12px; overflow: auto; border: 1px solid var(--line); background: #17211f; color: #dbe6e2; font-size: 10px; line-height: 1.5; white-space: pre-wrap; }
.analysis-review { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.analysis-review h3 { margin: 0 0 4px; }
.analysis-review p { margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.analysis-review .check { align-self: end; min-height: 40px; }

.life-database-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 920px; }
.life-database-grid > button { min-height: 150px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; text-align: left; }
.life-database-grid > button:hover { border-color: var(--accent); background: var(--accent-soft); }
.life-database-grid strong,.life-database-grid small { display: block; }
.life-database-grid strong { font-size: 19px; }
.life-database-grid small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.life-choice-icon { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--line); background: #f1f5f3; }
.life-choice-icon svg { width: 27px; height: 27px; color: var(--accent); }
.structure-source-link { display: inline-flex; align-items: center; text-decoration: none; }
.structure-layout { display: grid; grid-template-columns: 285px minmax(0,1fr); min-height: calc(100vh - 175px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.structure-browser { padding: 16px 14px 16px 0; border-right: 1px solid var(--line); }
.structure-browser-head { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; }
.structure-browser-head small { color: var(--muted); }
.structure-list { display: grid; gap: 2px; }
.structure-list-item { min-height: 76px; padding: 12px; border: 0; border-left: 3px solid transparent; border-radius: 0; background: #fff; color: var(--ink); text-align: left; }
.structure-list-item:hover,.structure-list-item.active { border-left-color: var(--accent); background: var(--accent-soft); }
.structure-list-item strong,.structure-list-item span { display: block; }
.structure-list-item strong { font-size: 12px; line-height: 1.4; }
.structure-list-item span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.structure-workbench { min-width: 0; padding: 16px 0 22px 18px; }
.structure-toolbar { min-height: 48px; display: flex; align-items: flex-end; gap: 8px; margin-bottom: 10px; }
.structure-toolbar label { width: 180px; color: var(--muted); font-size: 10px; }
.structure-toolbar select { margin-top: 4px; min-height: 34px; padding: 5px 8px; }
.structure-toolbar button { min-height: 34px; }
.structure-toolbar .active { background: var(--accent); color: #fff; }
.structure-viewport { height: 540px; min-height: 420px; position: relative; overflow: hidden; background: #0e1715; border: 1px solid #263a35; }
.structure-viewport canvas { display: block; }
.structure-loading { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: #cbd8d4; font-size: 12px; pointer-events: none; }
.structure-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-top: 16px; }
.structure-title-row h2 { margin: 3px 0 0; font-size: 19px; }
.structure-title-row a { color: var(--accent); font-size: 11px; }
.structure-metadata { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.structure-metadata div { padding: 10px; border-right: 1px solid var(--line); }
.structure-metadata div:last-child { border-right: 0; }
.structure-metadata dt { color: var(--muted); font-size: 10px; }
.structure-metadata dd { margin: 5px 0 0; font-size: 12px; }
.structure-downloads { display: flex; gap: 8px; }

.conversion-choice-title { align-items: center; margin: 4px 0 8px; }
.conversion-choice-title h3 { margin: 0; font-size: 13px; }
.conversion-field-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
  max-height: 330px;
  margin-bottom: 12px;
  padding: 10px;
  overflow: auto;
  background: #edf2f0;
}
.conversion-field {
  display: grid !important;
  grid-template-columns: auto minmax(0,1fr);
  align-items: start !important;
  gap: 9px !important;
  padding: 9px 10px !important;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink) !important;
}
.conversion-field input { width: auto; min-height: 0; margin-top: 3px; }
.conversion-field-copy { min-width: 0; }
.conversion-field-copy strong,.conversion-field-copy small { display: block; overflow-wrap: anywhere; }
.conversion-field-copy strong { font-size: 12px; }
.conversion-field-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.conversion-field-copy .conversion-error { color: #9a4f28; font-weight: 650; }
.conversion-no-error,.conversion-empty { color: var(--muted); }
.conversion-empty { grid-column: 1 / -1; margin: 6px; font-size: 12px; }

@media (max-width: 1000px) {
  .nav-item .nav-label { display: none; }
}

@media (max-width: 680px) {
  .app-main { padding-bottom: 92px; }
  .band-head { gap: 12px; }
  .template-links { justify-content: flex-start; max-width: none; }
  .map-commandbar { grid-template-columns: 1fr 1fr; }
  .map-commandbar label:first-child { grid-column: 1 / -1; }
  .map-stat { min-height: 50px; }
  .globe-stage { min-height: 410px; height: 52vh; }
  .globe-toolbar { top: 10px; right: 10px; }
  .globe-tool { width: 36px; height: 36px; }
  .map-selection-head { align-items: stretch; flex-direction: column; }
  .map-selection-actions { width: 100%; }
  .map-selection-actions button { flex: 1; }
  .analysis-healthbar { align-items: flex-start; flex-direction: column; }
  .analysis-layout { grid-template-columns: 1fr; min-height: 0; }
  .analysis-submit,
  .analysis-jobs { border-right: 0; border-bottom: 1px solid var(--line); }
  .analysis-job-list { max-height: 320px; }
  .analysis-detail { padding: 18px 8px 34px; }
  .analysis-actions button { flex: 1 1 120px; }
  .analysis-artifacts { max-height: none; overflow: visible; border: 0; }
  .analysis-artifacts table,
  .analysis-artifacts tbody,
  .analysis-artifacts tr,
  .analysis-artifacts td { display: block; width: 100%; }
  .analysis-artifacts thead { display: none; }
  .analysis-artifacts tr { margin-bottom: 10px; border: 1px solid var(--line); background: #fff; }
  .analysis-artifacts td { padding: 7px 10px; border-bottom: 0; white-space: normal; }
  .analysis-artifacts td:first-child { max-width: none; overflow-wrap: anywhere; white-space: normal; }
  .analysis-artifacts td:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
  .life-database-grid { grid-template-columns: 1fr; }
  .life-database-grid > button { min-height: 118px; padding: 18px; }
  .structure-layout { grid-template-columns: 1fr; min-height: 0; }
  .structure-browser { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .structure-list { grid-template-columns: 1fr; }
  .structure-workbench { padding-left: 0; }
  .structure-toolbar { align-items: stretch; flex-wrap: wrap; }
  .structure-toolbar label { width: calc(50% - 4px); }
  .structure-toolbar button { flex: 1; }
  .structure-viewport { height: 58vh; min-height: 390px; }
  .structure-title-row { flex-direction: column; gap: 8px; }
  .structure-metadata { grid-template-columns: 1fr 1fr; }
  .structure-metadata div:nth-child(2) { border-right: 0; }
  .structure-metadata div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .structure-downloads button { flex: 1; }
  .conversion-field-list { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: 1fr; }
  .layer-row { grid-template-columns: auto minmax(0,1fr) auto; }
  .layer-symbol { grid-column: 2; }
  .axis-controls fieldset { grid-template-columns: 1fr 1fr; }
  .axis-controls fieldset label:last-child { grid-column: 1 / -1; }
}

@media (min-width: 681px) and (max-width: 1300px) {
  .analysis-layout { grid-template-columns: minmax(230px, .8fr) minmax(360px, 1.4fr); }
  .analysis-detail { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}

