/* ==========================================================================
   Pack 10 — Topographic Contour Islands (2026)
   ZERO straight borders or SaaS boxes. Every component is an organic contour
   elevation island that rises on hover and depresses into a crater on click.
   Surveyor Vellum (Light) | Bathymetric Abyss (Dark)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-serif: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wavy-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='6' viewBox='0 0 32 6'%3E%3Cpath d='M0 3 Q 8 0 16 3 T 32 3' fill='none' stroke='%235a6860' stroke-opacity='0.35' stroke-width='1.1'/%3E%3C/svg%3E");
}

html,
body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.52;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #07090b;
}

button,
input {
  font-family: inherit;
  color: inherit;
}

button {
  outline: none;
  border: none;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.pane ::selection {
  background: var(--inv-bg);
  color: var(--inv-fg);
}

input,
textarea {
  caret-color: var(--fg);
}

.pane {
  scrollbar-color: var(--contour-mid) var(--ground);
  scrollbar-width: thin;
}

/* ==========================================================================
   THEMES — SURVEYOR VELLUM (LIGHT) | BATHYMETRIC ABYSS (DARK)
   ========================================================================== */

.theme-light {
  --ground: #ede9df;
  --plateau: rgba(244, 241, 234, 0.9);
  --plateau-hi: rgba(251, 249, 244, 0.96);
  --plateau-fill: #e1dcd0;

  --fg: #151c18;
  --fg-muted: #424e47;
  --fg-faint: #57635c;

  --inv-bg: #17241e;
  --inv-fg: #f3f0e8;

  --contour-outer: rgba(24, 38, 31, 0.22);
  --contour-mid: rgba(24, 38, 31, 0.38);
  --contour-summit: rgba(24, 38, 31, 0.56);
  --rule: rgba(24, 38, 31, 0.16);

  --survey-teal: #155c54;
  --survey-teal-fill: rgba(21, 92, 84, 0.12);
  --survey-amber: #7d4e12;
  --survey-amber-fill: rgba(125, 78, 18, 0.12);

  --danger: #b5221b;
  --danger-fill: rgba(181, 34, 27, 0.1);
  --danger-ring: rgba(181, 34, 27, 0.52);

  --popover-bg: #f6f3ec;
  --popover-shadow: 0 14px 32px -8px rgba(18, 28, 22, 0.2);
}

.theme-dark {
  --ground: #07090b;
  --plateau: rgba(13, 18, 22, 0.9);
  --plateau-hi: rgba(19, 26, 32, 0.96);
  --plateau-fill: #131b21;

  --fg: #eaf1f4;
  --fg-muted: #9eb1ba;
  --fg-faint: #8196a0;

  --inv-bg: #e4eff2;
  --inv-fg: #080c0f;

  --contour-outer: rgba(138, 198, 214, 0.22);
  --contour-mid: rgba(138, 198, 214, 0.36);
  --contour-summit: rgba(138, 198, 214, 0.56);
  --rule: rgba(138, 198, 214, 0.16);

  --survey-teal: #5fd1c4;
  --survey-teal-fill: rgba(95, 209, 196, 0.14);
  --survey-amber: #f0b254;
  --survey-amber-fill: rgba(240, 178, 84, 0.14);

  --danger: #ff6b60;
  --danger-fill: rgba(255, 107, 96, 0.14);
  --danger-ring: rgba(255, 107, 96, 0.56);

  --popover-bg: #0f151a;
  --popover-shadow: 0 16px 38px -8px rgba(0, 0, 0, 0.85);
}

/* ==========================================================================
   SPLIT LAYOUT & STICKY 100VH CARTOGRAPHIC SEA
   ========================================================================== */

.split-root {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.pane {
  position: relative;
  color: var(--fg);
  background: var(--ground);
  overflow: clip;
  padding: 0;
}

.pane.theme-light {
  border-right: 1px solid var(--rule);
}

.pane-bg-canvas {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  height: 100vh;
  margin-bottom: -100vh;
  pointer-events: none;
  z-index: 0;
}

.pane-inner {
  position: relative;
  z-index: 1;
  padding: 28px 36px 96px;
}

.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--contour-mid);
}

.pane-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pane-index {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--inv-bg);
  color: var(--inv-fg);
}

.pane-meta {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

.pane-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 620px;
  margin: 0 auto;
}

.sec {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sec:has([data-open='true']) {
  position: relative;
  z-index: 60;
}

.sec-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.sec-label::after {
  content: '';
  flex: 1;
  height: 6px;
  background-image: var(--wavy-rule);
  background-repeat: repeat-x;
  background-position: center;
}

/* ==========================================================================
   TOPOGRAPHIC CONTOUR ISLAND ENGINE (Zero Straight Borders)
   ========================================================================== */

[data-topo] {
  position: relative;
  isolation: isolate;
}

.tp-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}

.tp-ring {
  fill: none;
  stroke: var(--contour-outer);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    transform 240ms var(--ease),
    stroke 200ms var(--ease),
    fill 200ms var(--ease);
}

.tp-ring.tp-summit {
  fill: var(--plateau);
  stroke: var(--contour-mid);
  stroke-width: 1.15;
}

/* Interactive elevation rise on hover + crater depression on press
   Scoped with direct child (> .tp-svg >) so hovering a card never leaks into nested buttons! */
.tp-interactive:hover > .tp-svg > .tp-ring {
  stroke: var(--contour-summit);
  transform: scale(calc(1 + var(--ring-idx, 0) * 0.015));
}

.tp-interactive:hover > .tp-svg > .tp-summit {
  fill: var(--plateau-hi);
}

.tp-interactive:active:not(:disabled) > .tp-svg > .tp-ring {
  transform: scale(calc(1 - var(--ring-idx, 0) * 0.02));
}

/* Solid summit peak (active nav, primary action, featured pro) */
.tp-peak > .tp-svg > .tp-ring {
  stroke: var(--contour-mid);
}

.tp-peak > .tp-svg > .tp-summit,
.tp-peak.tp-interactive:hover > .tp-svg > .tp-summit {
  fill: var(--inv-bg);
  stroke: var(--inv-bg);
}

.tp-peak.tp-interactive:hover > .tp-svg > .tp-ring:not(.tp-summit) {
  stroke: var(--contour-summit);
}

.tp-peak,
.tp-btn.tp-peak,
.tp-nav-item.tp-peak,
.tp-seg-btn.tp-peak,
.tp-rail-item.tp-peak {
  color: var(--inv-fg);
}

.tp-peak:hover,
.tp-btn.tp-peak:hover,
.tp-nav-item.tp-peak:hover,
.tp-seg-btn.tp-peak:hover,
.tp-rail-item.tp-peak:hover {
  color: var(--inv-fg);
}

.tp-danger:hover > .tp-svg > .tp-summit {
  fill: var(--danger);
  stroke: var(--danger);
}

/* Danger escarpment (crimson contour isolines) */
.tp-danger > .tp-svg > .tp-ring {
  stroke: var(--danger-ring);
}

.tp-danger > .tp-svg > .tp-summit {
  fill: var(--danger-fill);
  stroke: var(--danger);
}

.tp-danger,
.tp-btn.tp-danger,
.tp-marker-btn.tp-danger {
  color: var(--danger);
}

.tp-danger:hover,
.tp-btn.tp-danger:hover,
.tp-marker-btn.tp-danger:hover {
  color: #ffffff;
}

/* ==========================================================================
   01 · NAVIGATION (Archipelago Contour Islands)
   ========================================================================== */

.tp-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tp-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tp-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-muted);
  transition: color 160ms var(--ease);
}

.tp-nav-item:hover {
  color: var(--fg);
}

.tp-nav-item.tp-peak {
  font-weight: 600;
  color: var(--inv-fg);
}

.tp-nav-item.tp-peak:hover {
  color: var(--inv-fg);
}

.tp-compass-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
}

/* ==========================================================================
   02 · ACTION BUTTONS & GEODESIC MARKERS
   ========================================================================== */

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  transition: color 160ms var(--ease);
}

.tp-btn.tp-peak {
  font-weight: 600;
}

.tp-btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 12.5px;
}

.tp-btn-ghost {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg-muted);
}

.tp-btn-ghost:hover {
  color: var(--fg);
}

.tp-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  color: var(--fg-faint);
}

.tp-btn:disabled .tp-ring {
  stroke-dasharray: 3 3;
}

/* Geodesic survey icon markers */
.tp-marker-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: color 160ms var(--ease);
}

/* ==========================================================================
   03 · INPUTS & CONTROLS (Wavy Transect, Ridge Switcher, Basin/Peak Toggles, Mountain Ridge Slider)
   ========================================================================== */

.tp-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tp-transect-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding-bottom: 4px;
  background-image: var(--wavy-rule);
  background-repeat: repeat-x;
  background-position: bottom;
}

.tp-input-icon {
  position: absolute;
  left: 6px;
  color: var(--fg-muted);
  pointer-events: none;
  display: flex;
}

.tp-transect-input {
  width: 100%;
  height: 36px;
  padding: 0 8px 0 30px;
  background: transparent;
  border: none;
  color: var(--fg);
  font-size: 13.5px;
}

.tp-transect-input::placeholder {
  color: var(--fg-faint);
}

.tp-transect-input:focus {
  outline: none;
}

.tp-transect-wrap:has(.tp-transect-input:focus) {
  box-shadow: 0 2px 0 var(--fg);
}

.tp-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Chained Ridge Peaks Segmented Control */
.tp-seg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tp-seg-btn {
  height: 38px;
  padding: 0 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg-muted);
}

.tp-seg-btn:hover {
  color: var(--fg);
}

/* Basin / Summit Beacon Toggles */
.tp-toggles {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tp-toggle {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  border: 1.5px solid var(--contour-summit);
  background: var(--plateau);
  transition: background 180ms var(--ease), border-color 180ms var(--ease);
}

.tp-toggle::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.5px solid var(--fg-muted);
  background: transparent;
  transition: transform 200ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

.tp-toggle[aria-checked='true'] {
  background: var(--inv-bg);
  border-color: var(--inv-bg);
}

.tp-toggle[aria-checked='true']::after {
  transform: translateX(20px);
  background: var(--inv-fg);
  border-color: var(--inv-fg);
}

/* Mountain Ridge Cross-Section Profile Slider */
.tp-ridge-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tp-ridge-wrap {
  position: relative;
  flex: 1;
  height: 44px;
  display: flex;
  align-items: center;
}

.tp-ridge-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tp-ridge-bg {
  fill: none;
  stroke: var(--contour-mid);
  stroke-width: 1.5;
}

.tp-ridge-fill {
  fill: var(--survey-teal-fill);
  stroke: var(--survey-teal);
  stroke-width: 2;
}

.tp-slider {
  position: relative;
  width: 100%;
  height: 44px;
  touch-action: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.tp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--inv-bg);
  border: 2px solid var(--ground);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  transition: transform 140ms var(--ease);
}

.tp-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.tp-slider-val {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: right;
  color: var(--fg);
}

/* ==========================================================================
   04 · CARDS (Organic Elevation Islands — Zero Straight Edges)
   ========================================================================== */

.tp-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 8px 4px;
}

.tp-island-card {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tp-card-title {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.008em;
  color: var(--fg-muted);
}

.tp-elev-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--survey-teal);
  background: var(--survey-teal-fill);
  padding: 2px 8px;
  border-radius: 999px;
}

.tp-elev-tag.is-amber {
  color: var(--survey-amber);
  background: var(--survey-amber-fill);
}

.tp-elev-tag.is-muted {
  color: var(--fg-muted);
  background: var(--plateau-fill);
}

.tp-metric {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.tp-metric small {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-faint);
  margin-left: 5px;
}

.tp-card-sub {
  font-size: 12px;
  color: var(--fg-faint);
}

.tp-ridge-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--rule);
  overflow: hidden;
  margin-top: 4px;
}

.tp-ridge-bar-fill {
  height: 100%;
  background: var(--survey-teal);
}

.tp-island-wide {
  grid-column: 1 / -1;
  padding: 22px 26px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tp-card-wide-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--fg);
}

.tp-card-wide-desc {
  font-size: 12.5px;
  color: var(--fg-muted);
}

/* ==========================================================================
   05 · DIALOG PLATEAU & SURVEY TRAIL CONTEXT MENU
   ========================================================================== */

.tp-split-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 8px 4px;
}

.tp-dialog-island {
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-dialog-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--fg);
}

.tp-dialog-body {
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.tp-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
}

/* Ridge-Trail Waypoint Menu (Zero Box!) */
.tp-trail-menu {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 16px;
}

.tp-trail-menu::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 1.5px;
  border-left: 1.5px dashed var(--contour-mid);
}

.tp-trail-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  text-align: left;
  transition: transform 140ms var(--ease), color 140ms var(--ease);
}

.tp-trail-item::before {
  content: '';
  position: absolute;
  left: -14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ground);
  border: 1.5px solid var(--contour-summit);
  transition: background 140ms var(--ease);
}

.tp-trail-item:hover {
  transform: translateX(4px);
}

.tp-trail-item:hover::before {
  background: var(--fg);
}

.tp-trail-item.is-danger {
  color: var(--danger);
}

.tp-trail-item.is-danger::before {
  border-color: var(--danger);
}

.tp-trail-item.is-danger:hover::before {
  background: var(--danger);
}

/* ==========================================================================
   06 · HEADER & BREADCRUMBS (Survey Traverse Line)
   ========================================================================== */

.tp-traverse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px 12px;
  background-image: var(--wavy-rule);
  background-repeat: repeat-x;
  background-position: bottom;
}

.tp-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tp-crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-crumbs strong {
  color: var(--fg);
  font-weight: 700;
}

.tp-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.tp-avatar-coord {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fg-muted);
}

/* ==========================================================================
   07 · SIDEBAR RAIL & ACCORDION (Meridian Spine + Strata Faults)
   ========================================================================== */

.tp-rail-grid {
  display: grid;
  grid-template-columns: 195px 1fr;
  gap: 18px;
  align-items: start;
}

.tp-meridian {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 12px;
}

.tp-rail-heading {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  padding: 0 8px 8px;
}

.tp-rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  transition: color 140ms var(--ease);
}

.tp-rail-item:hover {
  color: var(--fg);
}

.tp-rail-item.tp-peak {
  color: var(--inv-fg);
}

.tp-rail-item-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tp-rail-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.tp-strata {
  display: flex;
  flex-direction: column;
}

.tp-acc-item {
  padding: 2px 0;
  background-image: var(--wavy-rule);
  background-repeat: repeat-x;
  background-position: bottom;
}

.tp-acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  text-align: left;
}

.tp-acc-chevron {
  display: inline-flex;
  color: var(--fg-muted);
  transition: transform 200ms var(--ease);
}

.tp-acc-item[data-open='true'] .tp-acc-chevron {
  transform: rotate(180deg);
}

.tp-acc-panel {
  display: none;
  padding: 0 4px 14px;
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.55;
}

.tp-acc-item[data-open='true'] .tp-acc-panel {
  display: block;
}

/* ==========================================================================
   08 · DATA TABLE (Open Surveyed Elevation Transect — Zero Outer Box)
   ========================================================================== */

.tp-table {
  width: 100%;
  border-collapse: collapse;
}

.tp-table th {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1.5px solid var(--contour-summit);
}

.tp-table td {
  padding: 12px 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  border-bottom: 1px dashed var(--rule);
  vertical-align: middle;
}

.tp-table tr:last-child td {
  border-bottom: none;
}

.tp-table-title {
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
}

.tp-table-muted {
  font-family: var(--font-mono);
  color: var(--fg-muted);
  font-size: 12px;
}

.tp-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* ==========================================================================
   09 · FORM FIELDS (Field Survey Log — Zero Rectangular Boxes)
   ========================================================================== */

.tp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}

.field:has(.tp-dropdown[data-open='true']) {
  z-index: 50;
}

.field-full {
  grid-column: 1 / -1;
}

.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.tp-line-input {
  width: 100%;
  height: 36px;
  padding: 0 2px 4px;
  background: transparent;
  background-image: var(--wavy-rule);
  background-repeat: repeat-x;
  background-position: bottom;
  border: none;
  color: var(--fg);
  font-size: 14px;
}

.tp-line-input:focus {
  outline: none;
  box-shadow: 0 2px 0 var(--fg);
}

.tp-line-input.is-error {
  box-shadow: 0 2px 0 var(--danger);
  color: var(--danger);
}

.field-error {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
  min-height: 16px;
}

.tp-dropdown {
  position: relative;
}

.tp-dropdown-btn {
  width: 100%;
  height: 36px;
  padding: 0 4px 4px;
  background: transparent;
  background-image: var(--wavy-rule);
  background-repeat: repeat-x;
  background-position: bottom;
  color: var(--fg);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-dropdown[data-open='true'] .tp-dropdown-btn {
  box-shadow: 0 2px 0 var(--fg);
}

.tp-dropdown-list {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 8px;
  border-radius: 14px;
  background: var(--popover-bg);
  border: 1px solid var(--contour-mid);
  box-shadow: var(--popover-shadow);
  z-index: 60;
  flex-direction: column;
  gap: 2px;
}

.tp-dropdown[data-open='true'] .tp-dropdown-list {
  display: flex;
}

.tp-dropdown-opt {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}

.tp-dropdown-opt:hover {
  background: var(--plateau-fill);
  color: var(--fg);
}

.tp-dropdown-opt.is-selected {
  background: var(--inv-bg);
  color: var(--inv-fg);
  font-weight: 600;
}

.tp-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.tp-check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
  user-select: none;
}

.tp-check-ring {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1.5px solid var(--contour-summit);
  background: var(--plateau);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--inv-fg);
  flex-shrink: 0;
  transition: background 140ms var(--ease), border-color 140ms var(--ease);
}

.tp-check-label[data-checked='true'] .tp-check-ring {
  background: var(--inv-bg);
  border-color: var(--inv-bg);
}

/* ==========================================================================
   10 · TOAST & STATUS BANNER (Contour Dispatch Islands)
   ========================================================================== */

.tp-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 8px 4px;
}

.tp-toast,
.tp-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px;
}

.tp-toast-text {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.tp-banner-text {
  font-size: 13px;
  color: var(--fg-muted);
}

/* ==========================================================================
   11 · PRICING ISLANDS (Base Camp vs. High Summit)
   ========================================================================== */

.tp-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 8px 4px;
}

.tp-price-island {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tp-price-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tp-price-name {
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--fg);
}

.tp-price-val {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tp-price-num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.tp-price-period {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--fg-faint);
}

.tp-price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg-muted);
}

.tp-price-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-price-list li::before {
  content: '△';
  font-size: 8.5px;
  line-height: 1;
  color: var(--survey-teal);
  transform: translateY(-0.5px);
}

/* ==========================================================================
   12 · SKELETON LOADER (Sonar Contour Sweep)
   ========================================================================== */

.tp-skel-island {
  padding: 22px 26px;
  margin: 8px 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tp-skel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tp-skel-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--fg);
}

@keyframes tpContourPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.85; }
}

.tp-skel-wave {
  height: 10px;
  border-radius: 999px;
  background: var(--plateau-fill);
  animation: tpContourPulse 1.8s ease-in-out infinite;
}

.tp-skel-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tp-skel-orb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tp-skel-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tp-loaded-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px;
}

.tp-loaded-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
}

.tp-loaded-sub {
  font-size: 12px;
  color: var(--fg-muted);
}

.ico {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .tp-skel-wave {
    animation: none;
  }
  .tp-ring {
    transition-duration: 80ms;
  }
}

@media (max-width: 1080px) {
  .split-root {
    grid-template-columns: 1fr;
  }
  .pane.theme-light {
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
}
