:root {
  color-scheme: light;
  --ink: #17232b;
  --muted: #6d7b84;
  --subtle: #91a0a9;
  --line: #d9e1e5;
  --line-strong: #c5d0d5;
  --canvas: #edf3f5;
  --panel: #f9fbfb;
  --white: #ffffff;
  --teal: #0e7f78;
  --teal-dark: #09655f;
  --teal-soft: #d9eeeb;
  --coral: #ed744f;
  --amber: #d99b32;
  --blue: #3c79ad;
  --violet: #8064b3;
  --shadow: 0 16px 40px rgba(33, 54, 65, 0.11);
  --topbar-h: 58px;
  --rail-w: 338px;
  --inspector-w: 346px;
}

.flow-print-view { display: none; }
@page { size: A4 landscape; margin: 10mm; }
@media print {
  html, body { margin: 0 !important; padding: 0 !important; width: 100% !important; height: auto !important; overflow: visible !important; background: white !important; }
  body:has(#flowPrintView) > :not(#flowPrintView) { display: none !important; }
  #flowPrintView {
    display: block !important; position: relative; width: 100%;
    margin: 0; overflow: visible;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  #flowPrintView .print-report-header { display: grid; grid-template-columns: 55mm minmax(0, 1fr) 65mm; align-items: center; gap: 5mm; padding-bottom: 3mm; margin-bottom: 3mm; border-bottom: 0.5mm solid #0e7f78; break-inside: avoid; }
  #flowPrintView .print-brand { display: flex; align-items: center; gap: 3mm; }
  #flowPrintView .print-brand img { width: 12mm; height: 12mm; object-fit: contain; }
  #flowPrintView .print-brand strong { display: block; font-size: 14pt; letter-spacing: 0.5mm; }
  #flowPrintView .print-brand small { display: block; font-size: 8pt; color: #566c75; }
  #flowPrintView .print-project h1 { margin: 0; font-size: 16pt; overflow-wrap: anywhere; }
  #flowPrintView .print-project p { margin: 1mm 0 0; font-size: 9pt; color: #566c75; overflow-wrap: anywhere; }
  #flowPrintView .print-meta { display: grid; gap: 1mm; text-align: right; font-size: 8pt; }
  #flowPrintView .print-figure { position: relative; height: 120mm; break-inside: avoid; }
  #flowPrintView .print-figure > img { display: block; width: 100%; height: 100%; object-fit: contain; }
  #flowPrintView .print-boundaries { margin-top: 3mm; font-size: 9pt; }
  #flowPrintView .print-boundaries h2 { margin: 0 0 2mm; font-size: 11pt; break-after: avoid; }
  #flowPrintView .print-boundaries h2 small { margin-left: 3mm; font-size: 8pt; font-weight: 400; color: #566c75; }
  #flowPrintView table { width: 100%; border-collapse: collapse; table-layout: fixed; }
  #flowPrintView th, #flowPrintView td { padding: 1.5mm 2mm; text-align: left; border-bottom: 0.2mm solid #d9e1e5; overflow-wrap: anywhere; vertical-align: top; }
  #flowPrintView th { background: #edf3f5; }
  #flowPrintView th:nth-child(1) { width: 22%; }
  #flowPrintView th:nth-child(2) { width: 13%; }
  #flowPrintView th:nth-child(3) { width: 10%; }
  #flowPrintView tr { break-inside: avoid; }
  #flowPrintView thead { display: table-header-group; }
  #flowPrintView .print-legend {
    display: block; position: absolute; inset: auto 5mm 5mm auto;
    width: 70mm; min-width: 0; max-width: 70mm; padding: 3mm;
    background: white; border: 0.3mm solid #bdcfd5; border-radius: 2mm; box-shadow: none;
  }
  #flowPrintView .legend-head { font-size: 10pt; margin-bottom: 2mm; }
  #flowPrintView .legend-head small { font-size: 9pt; }
  #flowPrintView .legend-scale { height: 3mm; }
  #flowPrintView .legend-values { font-size: 9pt; margin-top: 2mm; }
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: Bahnschrift, "Aptos", "Segoe UI", sans-serif;
}

button,
input,
select { font: inherit; }

button { color: inherit; }

.auth-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 22%, rgba(65, 177, 163, 0.22), transparent 32%),
    radial-gradient(circle at 82% 76%, rgba(237, 116, 79, 0.16), transparent 31%),
    linear-gradient(145deg, #f8fbfa 0%, #e8f0f1 100%);
}

.auth-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: linear-gradient(rgba(55, 91, 101, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(55, 91, 101, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.auth-card {
  position: relative;
  width: min(440px, 100%);
  padding: 40px;
  border: 1px solid rgba(177, 196, 202, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 90px rgba(28, 60, 68, 0.16);
  text-align: center;
  backdrop-filter: blur(18px);
  animation: auth-card-in 360ms ease-out both;
}

.auth-card .auth-app-icon { width: 58px; height: 58px; margin: 0 auto 22px; }
.auth-card h1 { margin: 8px 0 10px; font-size: clamp(28px, 6vw, 38px); letter-spacing: -0.04em; }
.auth-card p { margin: 0 auto 24px; max-width: 340px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.auth-card .button { min-height: 42px; padding-inline: 22px; }
.auth-card small { display: block; margin-top: 15px; color: var(--subtle); font-size: 9px; }

.remote-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--teal-dark);
  font-size: 9px;
  font-weight: 800;
}

.remote-user::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #35a778; box-shadow: 0 0 0 3px rgba(53, 167, 120, 0.12); }
.remote-user button { padding: 4px 7px; border: 0; border-radius: 10px; background: #eef4f4; color: var(--muted); font-size: 8px; cursor: pointer; }

.app-shell {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(420px, 1fr) var(--inspector-w);
  grid-template-rows: var(--topbar-h) minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
}

.topbar {
  grid-column: 1 / -1;
  z-index: 30;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(280px, 1fr) auto;
  align-items: center;
  height: var(--topbar-h);
  background: rgba(250, 252, 252, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 16px rgba(24, 47, 58, 0.045);
  backdrop-filter: blur(14px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.brand-block strong {
  display: block;
  font-family: "Aptos Display", Bahnschrift, sans-serif;
  font-size: 15px;
  letter-spacing: 0.18em;
}

.brand-block small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.24em;
}

.brand-app-icon { display: block; width: 37px; height: 37px; flex: 0 0 auto; border-radius: 10px; object-fit: cover; }

.project-crumbs {
  position: relative;
  min-width: 240px;
  padding: 0 12px;
}
.project-context-row { display: flex; align-items: center; gap: 5px; max-width: 410px; }
.project-context-row .crumb-button { flex: 1; }
.project-save-button { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; transition: 140ms ease; }
.project-save-button:hover { border-color: #aec3c8; background: #eaf3f3; }
.project-save-button img { opacity: 0.76; }

.crumb-button {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 10px;
  align-items: center;
  width: min(360px, 100%);
  min-width: 0;
  padding: 7px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.crumb-button:hover { background: #edf3f4; }
.crumb-button .eyebrow { grid-column: 1; }
.crumb-button > span:nth-child(2) { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.crumb-button .chevron { grid-column: 2; grid-row: 1 / 3; color: var(--muted); }

.eyebrow {
  color: var(--subtle);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-menu {
  position: absolute;
  z-index: 80;
  top: 49px;
  left: 12px;
  width: 330px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.menu-heading { padding: 7px 8px 9px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.project-list { display: grid; gap: 3px; max-height: 290px; overflow: auto; }
.project-open,
.menu-new { width: 100%; padding: 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.project-open:hover,
.menu-new:hover { background: #edf5f4; }
.project-list-row { display: grid; grid-template-columns: minmax(0, 1fr) 32px; align-items: center; border-radius: 8px; }
.project-list-row.active { background: #edf5f4; }
.project-open { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; }
.project-type-icon { width: 21px; height: 21px; object-fit: contain; }
.project-open > span { min-width: 0; }
.project-open strong, .project-open small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-open strong { display: block; font-size: 12px; }
.project-open small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.project-delete { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: transparent; opacity: 0.55; cursor: pointer; }
.project-delete:hover { background: #f8dfdc; opacity: 1; }
.project-delete:disabled { cursor: not-allowed; opacity: 0.22; }
.project-delete img { width: 15px; height: 15px; }
.menu-new { margin-top: 7px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; color: var(--teal); font-weight: 700; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}

.top-cost-summary {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  min-width: 176px;
  padding: 5px 12px 6px;
  border: 1px solid #c9dadd;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 3px 12px rgba(24, 47, 58, 0.07);
  text-align: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.top-cost-summary span { color: var(--subtle); font-size: 7px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.top-cost-summary strong { margin-top: 1px; color: var(--teal-dark); font-size: 12px; font-variant-numeric: tabular-nums; }
.top-cost-summary small { margin-top: 1px; color: var(--muted); font-size: 7px; }
.top-cost-summary.active { border-color: #62b5ae; background: #f2fbf9; }

.system-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #50636c;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.system-chip i { width: 7px; height: 7px; border-radius: 50%; background: #a0afb6; box-shadow: 0 0 0 3px rgba(126, 145, 154, 0.1); }
.system-chip.online i { background: #2ba572; box-shadow: 0 0 0 3px rgba(43, 165, 114, 0.12); }
.system-chip.degraded i { background: var(--amber); box-shadow: 0 0 0 3px rgba(217, 155, 50, 0.13); }
.system-chip.offline i { background: #d95750; box-shadow: 0 0 0 3px rgba(217, 87, 80, 0.12); }
.system-chip.checking i { animation: pulse 1.2s infinite; }
.normalization-chip b { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 5px; background: #e5f1ef; color: var(--teal-dark); font-size: 8px; letter-spacing: 0.03em; }

.save-state { display: flex; align-items: center; gap: 7px; margin-right: 5px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #9aabb4; }
.status-dot.ready,
.save-state .status-dot { background: #32a876; box-shadow: 0 0 0 3px rgba(50, 168, 118, 0.1); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 140ms ease;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-ghost { border-color: var(--line-strong); background: var(--white); }
.button-ghost:hover { border-color: #aebdc4; background: #f7fafb; }
.button-primary { background: var(--teal); color: white; box-shadow: 0 5px 14px rgba(14, 127, 120, 0.18); }
.button-primary:hover { background: var(--teal-dark); }
.button-primary.blocked { background: #82999d; box-shadow: none; cursor: help; }
.button-primary.blocked:hover { transform: none; background: #748b8f; }
.button-run { background: #18323b; color: white; box-shadow: 0 5px 14px rgba(24, 50, 59, 0.18); }
.button-run:hover { background: #0f252d; }
.button-run.blocked { background: #66777e; box-shadow: none; cursor: help; }
.button-run.blocked:hover { transform: none; background: #596a71; }
.button-danger { background: #b8453d; color: white; box-shadow: 0 5px 14px rgba(184, 69, 61, 0.18); }
.button-danger:hover { background: #96362f; }
.button-danger-outline { border-color: #d59a95; background: #fff7f6; color: #a43b34; }
.button-danger-outline:hover { border-color: #b8453d; background: #fbe9e7; }
.button:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }
.ui-icon { display: block; width: 18px; height: 18px; flex: 0 0 auto; object-fit: contain; }
.icon-xs { width: 13px; height: 13px; }
.icon-sm { width: 17px; height: 17px; }
.icon-rail { width: 23px; height: 23px; }
.icon-invert { filter: brightness(0) invert(1); }
.action-with-icon { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; }
.full-width { width: 100%; }

.left-rail {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
}

.rail-tabs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  gap: 5px;
  overflow: hidden;
  padding: 8px 6px;
  background: #e7eef0;
  border-right: 1px solid var(--line);
}

.variant-rail-section { display: grid; min-height: 0; gap: 4px; }
.variant-create-button,
.variant-rail-button {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 4px 1px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #687b84;
  cursor: pointer;
}
.variant-create-button { min-height: 42px; border: 1px dashed rgba(120, 145, 154, 0.5); background: rgba(255, 255, 255, 0.38); }
.variant-create-button > span { position: relative; display: grid; place-items: center; width: 22px; height: 20px; }
.variant-create-button img,
.variant-rail-button img { width: 19px; height: 19px; object-fit: contain; opacity: 0.76; }
.variant-create-button b { position: absolute; right: -2px; bottom: -3px; display: grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; background: var(--teal); color: white; font-size: 10px; line-height: 1; }
.variant-create-button small,
.variant-rail-button small { display: -webkit-box; max-width: 48px; overflow: hidden; font-size: 7px; font-weight: 750; line-height: 1.12; text-align: center; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.variant-create-button:hover:not(:disabled),
.variant-rail-button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.62); }
.variant-create-button:disabled { cursor: not-allowed; opacity: 0.45; }
.variant-rail-list { display: grid; min-height: 0; max-height: min(31vh, 230px); gap: 3px; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
.variant-rail-item { position: relative; min-width: 0; }
.variant-rail-item .variant-rail-button { width: 100%; }
.variant-rail-delete { position: absolute; right: 3px; bottom: 3px; display: grid; width: 18px; height: 18px; padding: 3px; border: 0; border-radius: 5px; background: rgba(255, 255, 255, 0.88); opacity: 0; place-items: center; box-shadow: 0 1px 4px rgba(48, 72, 82, 0.14); transition: opacity 140ms ease, background 140ms ease; }
.variant-rail-delete img { width: 11px; height: 11px; opacity: 0.66; }
.variant-rail-item:hover .variant-rail-delete, .variant-rail-delete:focus-visible { opacity: 1; }
.variant-rail-delete:hover { background: #fae8e6; }
.variant-rail-delete:disabled { cursor: not-allowed; filter: grayscale(1); opacity: 0.35; }
.variant-rail-button { min-height: 46px; }
.variant-rail-button.active { color: var(--teal-dark); background: var(--white); box-shadow: inset 3px 0 var(--teal), 0 3px 10px rgba(48, 72, 82, 0.08); }
.variant-rail-button .variant-status { position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: #a2afb4; }
.variant-rail-button .variant-status.queued,
.variant-rail-button .variant-status.running { background: #2786bc; box-shadow: 0 0 0 2px rgba(39, 134, 188, 0.12); }
.variant-rail-button .variant-status.finished { background: #2ba572; }
.variant-rail-button .variant-status.failed { background: #d95750; }
.rail-separator { height: 1px; margin: 1px 5px 0; background: rgba(149, 169, 176, 0.42); }
.rail-workspaces { display: grid; flex: 0 0 auto; gap: 4px; }

@media (hover: none) {
  .variant-rail-delete { opacity: 1; }
}

.rail-tab {
  display: grid;
  place-items: center;
  gap: 3px;
  min-height: 52px;
  padding: 6px 2px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #71818a;
  cursor: pointer;
}

.rail-tab small { font-size: 8px; font-weight: 700; }
.rail-tab:hover { color: var(--ink); background: rgba(255,255,255,0.55); }
.rail-tab.active { color: var(--teal-dark); background: var(--white); box-shadow: 0 4px 12px rgba(48, 72, 82, 0.09); }

.model-tree {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.panel-heading { display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 12px 13px 10px 16px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 2px 0 0; font-size: 16px; font-weight: 650; }
.icon-button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.tree-content { grid-row: 2; min-width: 0; min-height: 0; overflow: auto; padding: 8px; }
.workflow-actions { grid-row: 3; display: grid; gap: 7px; min-width: 0; padding: 10px 11px 11px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(247, 250, 250, 0.97), #eef4f4); box-shadow: 0 -8px 22px rgba(32, 59, 68, 0.045); }
.workflow-action-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.workflow-action-head span { color: #40545d; font-size: 8px; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.workflow-action-head small { min-width: 0; overflow: hidden; color: var(--muted); font-size: 7px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.workflow-actions > .button { min-height: 34px; }

.tree-group { margin-bottom: 4px; }
.tree-group > summary {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 6px;
  min-height: 35px;
  padding: 6px 8px;
  border-radius: 7px;
  list-style: none;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.tree-group > summary::-webkit-details-marker { display: none; }
.tree-group > summary:hover { background: #edf3f4; }
.tree-group > summary::after { content: ""; grid-column: 3; grid-row: 1; width: 12px; height: 12px; background: url("./icons/chevron-down.png") center / contain no-repeat; opacity: 0.55; }
.tree-group:not([open]) > summary::after { transform: rotate(-90deg); }
.tree-group > summary .count-badge { grid-column: 3; margin-right: 17px; }
.tree-icon { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #d7e3e7; border-radius: 6px; background: #edf4f6; }
.tree-icon img { width: 15px; height: 15px; object-fit: contain; }
.count-badge { display: inline-grid; place-items: center; min-width: 18px; height: 17px; padding: 0 5px; border-radius: 8px; background: #e7edef; color: var(--muted); font-size: 9px; }

.tree-children { margin-left: 12px; padding-left: 10px; border-left: 1px solid #dde5e8; }
.empty-tree { padding: 7px 7px 8px 13px; color: var(--subtle); font-size: 10px; line-height: 1.45; }
.tree-row,
.tree-action,
.tree-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 31px;
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  font-size: 10px;
}

button.tree-row,
.tree-action { cursor: pointer; }
.physics-volume-tree { display: grid; gap: 3px; margin: 4px 7px 8px 30px; padding-left: 7px; border-left: 1px solid var(--line-strong); }
.physics-volume-tree > small { padding: 6px 5px; color: var(--subtle); font-size: 8px; line-height: 1.35; }
.volume-tree-row { grid-template-columns: 20px minmax(0, 1fr) auto; padding: 6px 5px; border-radius: 7px; }
.volume-tree-row > span { min-width: 0; }
.volume-tree-row strong, .volume-tree-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.volume-tree-row strong { font-size: 9px; }
.volume-tree-row small { margin-top: 2px; color: var(--subtle); font-size: 7px; }
.volume-tree-row .row-meta { max-width: 72px; }
.volume-tree-row.active { background: #d8f3ef; color: #075d58; box-shadow: inset 3px 0 #20a79d; }
.tree-row:hover,
.tree-action:hover { background: #eaf2f2; }
.tree-row.active { background: var(--teal-soft); color: #075d58; }
.row-dot { width: 7px; height: 7px; border-radius: 50%; }
.row-dot.teal { background: var(--teal); }
.row-dot.blue { background: var(--blue); }
.row-dot.amber { background: var(--amber); }
.tree-row-icon { width: 16px; height: 16px; object-fit: contain; opacity: 0.82; }
.row-meta { color: var(--subtle); font-size: 8px; }
.tree-action { grid-template-columns: 1fr; color: var(--teal-dark); font-weight: 700; }
.tree-action.action-with-icon { display: flex; }
.upload-action input,
.upload-hero input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tree-toggle { position: relative; grid-template-columns: auto 1fr auto; cursor: pointer; }
.tree-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}
.tree-toggle:focus-within { outline: 2px solid rgba(14, 127, 120, 0.28); outline-offset: -2px; }
.tree-toggle i { position: relative; width: 28px; height: 16px; border-radius: 8px; background: #cbd5da; transition: 150ms; }
.tree-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: white; transition: 150ms; box-shadow: 0 1px 3px rgba(0,0,0,0.18); }
.tree-toggle input:checked + span + i { background: var(--teal); }
.tree-toggle input:checked + span + i::after { transform: translateX(12px); }
.mesh-quick-controls { display: grid; gap: 6px; margin: 3px 7px 8px 29px; padding: 8px; border: 1px solid #d7e3e6; border-radius: 9px; background: linear-gradient(145deg, #fbfdfd, #f1f6f6); }
.mesh-summary-row { cursor: default; }
.tree-field > span,
.tree-range > span,
.result-quick-range > span { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; color: #50636c; font-size: 8px; font-weight: 750; }
.tree-select { width: 100%; min-height: 30px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; color: var(--ink); font-size: 9px; outline: 0; }
.tree-number { width: 100%; min-height: 30px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 6px; background: white; color: var(--ink); font-size: 9px; outline: 0; }
.tree-select:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(14, 127, 120, 0.08); }
.tree-number:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(14, 127, 120, 0.08); }
.tree-range output,
.result-quick-range output { color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.tree-range input,
.result-quick-range input { display: block; margin: 0; }
.tree-range small { display: flex; justify-content: space-between; margin-top: 2px; color: var(--subtle); font-size: 7px; }
.tree-range small b { font-weight: 650; }
.mesh-quick-controls .tree-toggle { margin: 0 -4px; padding-inline: 4px; }
.mesh-estimate-stats { padding: 8px 9px; border: 1px solid #cfe1e1; border-radius: 7px; background: rgba(255, 255, 255, 0.75); }
.mesh-estimate-stats strong,
.mesh-estimate-stats small { display: block; }
.mesh-estimate-stats strong { color: var(--teal-dark); font-size: 8px; }
.mesh-estimate-stats small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.4; }
.mesh-cost-estimate { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; padding: 9px; border: 1px solid #cfe1e1; border-left: 3px solid #84979e; border-radius: 7px; background: white; }
.mesh-cost-estimate.safe { border-left-color: #249c73; background: #f5fbf8; }
.mesh-cost-estimate.warning { border-left-color: #d99a32; background: #fffaf0; }
.mesh-cost-estimate.blocked { border-left-color: #cf5148; background: #fff6f5; }
.mesh-cost-estimate span, .mesh-cost-estimate strong { display: block; }
.mesh-cost-estimate span { color: var(--subtle); font-size: 6px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.mesh-cost-estimate strong { margin-top: 2px; color: var(--ink); font-size: 8px; }
.mesh-cost-estimate > small { grid-column: 1 / -1; color: var(--muted); font-size: 7px; line-height: 1.4; }
.mesh-load-action { min-height: 30px; padding: 6px 8px; border: 1px solid #c7d8dc; background: white; color: var(--teal-dark); font-size: 8px; text-align: center; justify-content: center; }
.mesh-load-action:disabled { color: var(--subtle); background: #f4f7f8; cursor: not-allowed; }
.result-quick-range { display: block; margin: -2px 8px 6px 31px; padding: 7px 9px 8px; border-left: 2px solid var(--teal); border-radius: 0 6px 6px 0; background: #edf6f5; }
.result-quick-range > span { margin-bottom: 3px; }
.field-swatch { width: 8px; height: 20px; border-radius: 3px; }
.field-swatch.velocity { background: linear-gradient(#e55944, #f2c84b, #45ad88, #2864a8); }
.field-swatch.pressure { background: linear-gradient(#9d3d93, #dc6786, #f3aa58); }
.field-swatch.temperature { background: linear-gradient(#244d8f, #2ca6a4, #f0d264, #c93643); }
.field-swatch.vorticity { background: linear-gradient(#153b66, #2d94a2, #e4bd4f); }

.condition-item { margin: 3px 0; border-radius: 7px; background: #f2f6f7; overflow: hidden; }
.condition-type-group { margin: 4px 0; border: 1px solid #dce6e9; border-radius: 8px; background: #f8fbfb; }
.condition-type-group > summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 7px; padding: 8px; list-style: none; cursor: pointer; font-size: 10px; font-weight: 800; }
.condition-type-group > summary::-webkit-details-marker { display: none; }
.condition-type-list { padding: 0 5px 5px; }
.condition-item summary { display: grid; grid-template-columns: auto 1fr auto; gap: 7px; align-items: center; padding: 7px; list-style: none; cursor: pointer; font-size: 10px; }
.condition-item summary::-webkit-details-marker { display: none; }
.condition-color { width: 9px; height: 9px; border-radius: 3px; }
.condition-faces { color: var(--muted); font-size: 8px; }
.condition-actions { display: flex; justify-content: flex-end; gap: 5px; padding: 0 7px 7px 23px; }
.condition-actions .condition-icon-action { display: grid; place-items: center; width: 28px; height: 27px; padding: 5px; border: 1px solid #d7e2e5; border-radius: 6px; background: white; cursor: pointer; transition: 130ms ease; }
.condition-actions .condition-icon-action:hover { border-color: #a9c4c7; background: #eaf4f3; transform: translateY(-1px); }
.condition-actions .condition-icon-action img { width: 16px; height: 16px; object-fit: contain; opacity: 0.78; }
.condition-actions .condition-icon-action.danger:hover { border-color: #e3b6b2; background: #fbecea; }
.condition-actions .condition-icon-action.danger img { filter: sepia(1) saturate(4) hue-rotate(315deg); }
.thermal-note, .result-data-note { margin: -5px 0 12px; color: var(--subtle); font-size: 8px; line-height: 1.45; }
.result-data-note { margin: 7px 8px 9px; }
.tree-toggle.is-disabled { opacity: 0.48; cursor: not-allowed; }

.job-card { display: grid; gap: 10px; margin: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.job-card-head { display: flex; align-items: center; gap: 10px; }
.job-result-meta { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.job-state { width: 10px; height: 10px; border-radius: 50%; background: #a5b1b7; }
.job-state.running { background: var(--amber); animation: pulse 1.4s infinite; }
.job-state.finished { background: #33a877; }
.job-state.failed { background: #dc5a51; }
.job-state.cancelled { background: #7f8d93; }
.job-card strong,
.job-card small { display: block; }
.job-card strong { font-size: 11px; }
.job-card small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.job-progress { display: grid; gap: 5px; }
.job-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-progress span { min-width: 0; overflow: hidden; color: #50636c; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.job-progress strong { flex: 0 0 auto; color: var(--teal-dark); font-size: 9px; font-variant-numeric: tabular-nums; }
.job-progress > i { display: block; height: 7px; overflow: hidden; border-radius: 4px; background: #dfe7e9; }
.job-progress > i > b { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #46aaa0); transition: width 300ms ease; }
.job-card .job-duration { margin: -2px 0 0; color: #536b74; font-variant-numeric: tabular-nums; }
.job-card .job-error { margin: 0; padding: 7px 8px; border-radius: 7px; background: #fbe9e7; color: #9f342d; line-height: 1.4; }
.job-mesh-adjustment { margin: 0; padding: 7px 8px; border-radius: 7px; background: #fff5d9; color: #74581d !important; line-height: 1.4; }
.convergence-badge { display: grid; gap: 2px; padding: 8px 9px; border: 1px solid; border-radius: 8px; }
.convergence-badge strong { font-size: 10px; }
.convergence-badge small { margin: 0; line-height: 1.4; }
.convergence-badge.converged { border-color: #aad8c6; background: #e9f7f1; color: #176e50; }
.convergence-badge.not-converged { border-color: #e6c27d; background: #fff6df; color: #855e16; }
.convergence-badge.unknown { border-color: #cdd9dd; background: #f3f7f8; color: #5a6d75; }
.result-run-card { display: grid; gap: 4px; margin: 6px 4px 10px; padding: 11px; border: 1px solid #cfe0e4; border-radius: 9px; background: linear-gradient(135deg, #f7fbfb, #eaf3f5); }
.result-run-card strong { font-size: 11px; }
.result-run-card small { color: var(--muted); font-size: 8px; line-height: 1.45; }
.result-integrity { width: max-content; margin-top: 3px; padding: 3px 6px; border-radius: 8px; background: #dff2ea; color: #18704f; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.result-convergence { width: max-content; margin-top: 3px; padding: 3px 6px; border-radius: 8px; font-size: 7px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.result-convergence.converged { background: #dff2ea; color: #18704f; }
.result-convergence.not-converged { background: #fff0cd; color: #825b14; }
.result-convergence.unknown { background: #e8eef0; color: #596d75; }

.viewport-column { grid-column: 2; grid-row: 2; display: grid; grid-template-rows: 58px 47px minmax(0, 1fr) 27px; min-width: 0; min-height: 0; background: var(--canvas); }
.workflow-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; padding: 0 9px; overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(252, 253, 253, 0.97); }
.workflow-nav button { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: 1fr 1fr; column-gap: 7px; align-items: end; min-width: 0; padding: 9px 12px 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); text-align: left; cursor: pointer; }
.workflow-nav button:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -7px; width: 14px; height: 1px; background: var(--line-strong); }
.workflow-nav button > span { grid-row: 1 / 3; display: grid; place-items: center; align-self: center; width: 23px; height: 23px; border: 1px solid var(--line-strong); border-radius: 50%; background: #f3f6f7; color: #60737c; font-size: 9px; font-weight: 800; }
.workflow-nav strong { align-self: end; min-width: 0; overflow: hidden; color: #3a4d56; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-nav small { align-self: start; min-width: 0; overflow: hidden; color: var(--subtle); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.workflow-nav button.complete > span { border-color: var(--teal); background: var(--teal); color: white; }
.workflow-nav button.complete > span::before { content: "✓"; }
.workflow-nav button.complete > span { font-size: 0; }
.workflow-nav button.complete > span::before { font-size: 10px; }
.workflow-nav button.active { border-bottom-color: var(--teal); background: linear-gradient(to bottom, transparent, rgba(14, 127, 120, 0.035)); }
.workflow-nav button.active > span { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); }
.workflow-nav button.blocked > span { border-color: #e2c280; background: #fff8e9; color: #9b6a15; }
.viewport-toolbar { z-index: 4; display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(247, 250, 250, 0.92); border-bottom: 1px solid var(--line); }
.tool-group { display: flex; align-items: center; gap: 3px; }
.tool-group.compact { gap: 2px; }
.orientation-control { position: relative; }
.orientation-menu-button .turn-symbol { display: grid; place-items: center; min-width: 23px; height: 18px; border: 1px solid #8aa2ab; border-radius: 5px; color: var(--teal-dark); font-size: 8px; font-weight: 850; }
.orientation-menu { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; width: 245px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255, 255, 255, 0.98); box-shadow: 0 16px 40px rgba(28, 54, 63, 0.18); }
.orientation-menu-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.orientation-menu-head strong { color: var(--ink); font-size: 11px; }
.orientation-menu-head small { color: var(--muted); font-size: 8px; }
.orientation-home { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #f5f9f9; color: var(--ink); cursor: pointer; text-align: left; }
.orientation-home > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 6px; background: white; color: var(--teal-dark); font-size: 16px; }
.orientation-home i { display: flex; flex-direction: column; font-style: normal; }
.orientation-home strong { font-size: 10px; }
.orientation-home small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.orientation-axis-grid { display: grid; grid-template-columns: 28px 1fr 1fr; gap: 5px; margin-top: 9px; }
.orientation-axis-grid .axis-name { display: grid; place-items: center; border-radius: 6px; background: #f0f5f6; font-size: 10px; font-weight: 900; }
.orientation-axis-grid .axis-x { color: #c83d39; }
.orientation-axis-grid .axis-y { color: #25864f; }
.orientation-axis-grid .axis-z { color: #2d6fbe; }
.orientation-axis-grid button { min-height: 29px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); cursor: pointer; font-size: 9px; font-weight: 750; }
.orientation-home:hover, .orientation-axis-grid button:hover { border-color: var(--teal); background: var(--teal-soft); }
.orientation-menu > p { margin: 9px 1px 0; color: var(--muted); font-size: 8px; line-height: 1.45; }
.tool-button,
.icon-tool,
.view-cube-button { border: 1px solid transparent; border-radius: 7px; background: transparent; cursor: pointer; }
.tool-button { display: flex; align-items: center; gap: 6px; min-height: 31px; padding: 5px 9px; color: var(--muted); font-size: 10px; font-weight: 700; }
.tool-button:hover,
.icon-tool:hover { background: white; border-color: var(--line); }
.tool-button.active { background: white; border-color: var(--line-strong); color: var(--teal-dark); box-shadow: 0 2px 7px rgba(36, 62, 72, 0.07); }
.icon-tool { width: 30px; height: 30px; color: var(--muted); font-size: 15px; }
.coordinate-system-button > span { display: flex; align-items: end; justify-content: center; gap: 1px; font-size: 7px; font-weight: 900; font-style: normal; }
.coordinate-system-button i { font-style: normal; }
.coordinate-system-button i:nth-child(1) { color: #d94b45; }
.coordinate-system-button i:nth-child(2) { color: #2e9b5d; }
.coordinate-system-button i:nth-child(3) { color: #3979cf; }
.coordinate-system-button.active { border-color: var(--line-strong); background: white; box-shadow: 0 2px 7px rgba(36, 62, 72, 0.07); }
.tool-separator { width: 1px; height: 21px; margin: 0 3px; background: var(--line); }
.viewport-toolbar-spacer { flex: 1; }
.selection-pill { padding: 5px 9px; border: 1px solid var(--line); border-radius: 12px; background: #f8fbfb; color: var(--muted); font-size: 9px; }
.selection-pill span { color: var(--teal-dark); font-weight: 800; }
.view-cube-button { display: grid; place-items: center; width: 35px; height: 31px; border-color: var(--line); background: white; color: #59727d; font-size: 8px; font-weight: 800; }

.viewer { position: relative; min-height: 0; overflow: hidden; background: radial-gradient(circle at 48% 42%, #fbfdfd 0, #e8eff1 70%, #dfe8eb 100%); }
.viewer canvas { display: block; width: 100%; height: 100%; outline: 0; }
.empty-state { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.empty-state h1 { margin: 5px 0 7px; font-family: "Aptos Display", Bahnschrift, sans-serif; font-size: clamp(25px, 4vw, 39px); font-weight: 560; letter-spacing: -0.035em; }
.empty-state p { max-width: 490px; margin: 0 0 19px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty-illustration { position: relative; width: 94px; height: 74px; margin-bottom: 18px; }
.empty-illustration span { position: absolute; inset: 9px 19px; border: 1px solid #72929d; transform: skewY(-24deg) rotate(30deg); background: rgba(255,255,255,0.45); }
.empty-illustration span:nth-child(2) { inset: 17px 11px; border-color: var(--teal); }
.empty-illustration span:nth-child(3) { inset: 25px 3px; border-color: var(--coral); }
.upload-hero { position: relative; }
.geometry-loading { position: absolute; z-index: 8; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(232, 240, 242, 0.68); pointer-events: auto; backdrop-filter: blur(5px); }
.geometry-loading[hidden] { display: none; }
.geometry-loading-card { display: grid; grid-template-columns: 54px minmax(220px, 1fr) auto; align-items: center; gap: 13px; width: min(470px, calc(100% - 32px)); padding: 17px 19px 16px; border: 1px solid rgba(166, 188, 195, 0.95); border-radius: 14px; background: rgba(252, 254, 254, 0.98); box-shadow: 0 18px 54px rgba(26, 52, 62, 0.18); }
.geometry-loading-mark { position: relative; width: 48px; height: 42px; }
.geometry-loading-mark span { position: absolute; inset: 6px 11px; border: 2px solid #6f919b; transform: skewY(-22deg) rotate(30deg); background: rgba(255,255,255,0.45); animation: geometry-pulse 1.4s ease-in-out infinite; }
.geometry-loading-mark span:nth-child(2) { inset: 11px 6px; border-color: var(--teal); animation-delay: 120ms; }
.geometry-loading-mark span:nth-child(3) { inset: 16px 1px; border-color: var(--coral); animation-delay: 240ms; }
.geometry-loading-copy { min-width: 0; }
.geometry-loading-copy strong, .geometry-loading-copy small { display: block; }
.geometry-loading-copy strong { color: var(--ink); font-family: "Aptos Display", Bahnschrift, sans-serif; font-size: 15px; font-weight: 650; }
.geometry-loading-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.geometry-loading-percent { color: var(--teal-dark); font-size: 11px; font-weight: 850; font-variant-numeric: tabular-nums; }
.geometry-loading-track { grid-column: 2 / 4; height: 8px; overflow: hidden; border-radius: 5px; background: #dce7e9; }
.geometry-loading-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), #4cb8a4); transition: width 180ms ease; }
.geometry-loading.indeterminate .geometry-loading-percent { color: var(--muted); }
.geometry-loading.indeterminate .geometry-loading-track i { width: 38% !important; animation: geometry-progress 1.15s ease-in-out infinite; }
.job-error-details { margin-top: 7px; border: 1px solid #e6c8c2; border-radius: 7px; background: #fff9f7; }
.job-error-details summary { cursor: pointer; padding: 7px 9px; color: #8c3f33; font-size: 9px; font-weight: 750; }
.job-error-details pre { max-height: 150px; margin: 0; overflow: auto; padding: 8px 9px; border-top: 1px solid #ecd6d1; color: #5e413d; font: 8px/1.45 Consolas, monospace; white-space: pre-wrap; word-break: break-word; }
@keyframes geometry-progress { from { transform: translateX(-105%); } to { transform: translateX(275%); } }
@keyframes geometry-pulse { 0%, 100% { opacity: .42; } 50% { opacity: 1; } }
@media (max-width: 640px) {
  .geometry-loading { padding: 12px; }
  .geometry-loading-card { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 9px; width: 100%; padding: 14px; }
  .geometry-loading-mark { width: 38px; height: 36px; }
  .geometry-loading-copy strong { font-size: 13px; }
  .geometry-loading-copy small { font-size: 9px; }
}
.viewer-overlay { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.readiness-widget { --readiness: 0deg; position: absolute; z-index: 5; left: 14px; bottom: 14px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: min(320px, calc(100% - 28px)); min-height: 58px; padding: 8px 10px; border: 1px solid rgba(186, 202, 208, 0.9); border-radius: 10px; background: rgba(252, 253, 253, 0.92); box-shadow: 0 8px 24px rgba(31, 55, 65, 0.09); color: var(--ink); text-align: left; cursor: pointer; pointer-events: auto; backdrop-filter: blur(10px); }
.readiness-widget:hover { border-color: #a9c0c5; background: rgba(255, 255, 255, 0.97); }
.readiness-gauge { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(var(--teal) var(--readiness), #dfe7ea 0); }
.readiness-gauge::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: white; }
.readiness-gauge b { position: relative; z-index: 1; color: #40545d; font-size: 8px; }
.readiness-widget > span:nth-child(2) { min-width: 0; }
.readiness-widget strong, .readiness-widget small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.readiness-widget strong { font-size: 10px; }
.readiness-widget small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.readiness-widget > i { padding: 4px 6px; border-radius: 6px; background: #edf4f4; color: var(--teal-dark); font-size: 8px; font-style: normal; font-weight: 800; }
.readiness-widget.ready .readiness-gauge { background: var(--teal); }
.readiness-widget.ready > i { background: #dff2ea; color: #19714f; }
.mode-hint { min-width: 0; overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
kbd { padding: 1px 4px; border: 1px solid #cbd6da; border-bottom-width: 2px; border-radius: 4px; background: white; color: #40545d; font-size: 8px; }
.field-legend { position: absolute; right: 14px; bottom: 14px; width: min(330px, calc(100% - 28px)); padding: 10px 12px 9px; border: 1px solid rgba(171,191,198,0.92); border-radius: 10px; background: rgba(251,253,253,0.95); box-shadow: 0 8px 24px rgba(30,54,64,0.12); backdrop-filter: blur(10px); }
.legend-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 10px; font-weight: 800; }
.legend-head small { color: var(--muted); font-size: 9px; font-weight: 650; }
.legend-scale { height: 10px; border: 1px solid rgba(38,70,83,0.12); border-radius: 6px; background: linear-gradient(90deg, #2758a5, #28a2a0, #c8d147, #f09949, #ca3d50); }
.legend-values { display: flex; justify-content: space-between; margin-top: 5px; color: #40545d; font-size: 8px; font-variant-numeric: tabular-nums; font-weight: 700; }
.viewport-statusbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 0 10px; background: #f8fafa; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.viewport-statusbar > div { display: flex; align-items: center; gap: 6px; }
.viewport-statusbar > div:first-child { min-width: 0; overflow: hidden; }
.viewport-statusbar > div:first-child > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.statusbar-meta { gap: 12px !important; }

.inspector { grid-column: 3; grid-row: 2; display: grid; grid-template-rows: 45px minmax(0, 1fr) auto; min-width: 0; min-height: 0; background: var(--panel); border-left: 1px solid var(--line); }
.inspector-tabs { display: flex; align-items: end; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); }
.inspector-tab { position: relative; height: 44px; padding: 0 9px; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; cursor: pointer; }
.inspector-tab::after { content: ""; position: absolute; right: 8px; bottom: -1px; left: 8px; height: 2px; border-radius: 1px; background: transparent; }
.inspector-tab.active { color: var(--ink); }
.inspector-tab.active::after { background: var(--teal); }
.inspector-tab span { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 3px; border-radius: 8px; background: #e6edef; font-size: 8px; }
.inspector-body { min-height: 0; overflow: auto; }
.inspector-section { padding: 16px; }
.inspector-section.divided { border-top: 1px solid var(--line); }
.section-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.section-title-row h2 { margin: 3px 0 0; font-family: "Aptos Display", Bahnschrift, sans-serif; font-size: 17px; font-weight: 600; }
.large-count { display: grid; place-items: center; min-width: 32px; height: 27px; padding: 0 8px; border-radius: 8px; background: var(--teal-soft); color: var(--teal-dark); font-size: 12px; font-weight: 800; }
.section-copy { margin: 10px 0 15px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.field-label { display: block; margin: 11px 0 5px; color: #4d6069; font-size: 9px; font-weight: 750; }
.input,
.unit-input { width: 100%; min-height: 34px; border: 1px solid var(--line-strong); border-radius: 7px; background: white; color: var(--ink); font-size: 10px; outline: 0; }
.input { padding: 7px 9px; }
.input:focus,
.unit-input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,127,120,0.09); }
.unit-input { display: grid; grid-template-columns: 1fr auto; align-items: center; overflow: hidden; }
.unit-input input { width: 100%; min-width: 0; height: 32px; padding: 7px 9px; border: 0; outline: 0; background: transparent; font-size: 10px; }
.unit-input em { align-self: stretch; display: grid; place-items: center; padding: 0 8px; border-left: 1px solid var(--line); background: #f2f6f7; color: var(--muted); font-size: 8px; font-style: normal; }
.unit-select { align-self: stretch; min-width: 62px; padding: 0 7px; border: 0; border-left: 1px solid var(--line); background: #f2f6f7; color: #4d6069; font-size: 9px; outline: 0; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 14px; }
.conversion-preview { min-height: 16px; margin: -6px 0 11px; color: var(--teal-dark); font-size: 9px; line-height: 1.45; }
.direction-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.direction-actions .button { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.value-grid label > span,
.form-stack label > span { display: block; margin-bottom: 4px; color: #5c6e76; font-size: 8px; font-weight: 700; }
.form-stack { display: grid; gap: 10px; padding-top: 10px; }
.form-stack output { float: right; color: #0b6b70; font: inherit; font-variant-numeric: tabular-nums; }
.result-probe-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.result-probe-actions .button { min-height: 32px; padding: 6px 8px; font-size: 9px; }
.result-probe-actions .button.active { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-dark); box-shadow: inset 0 0 0 1px rgba(14, 127, 120, 0.08); }
.result-probe-actions .button span { font-size: 14px; line-height: 0; vertical-align: -1px; }
.result-probe-item { display: grid; grid-template-columns: auto minmax(0, 1fr) 22px; align-items: center; gap: 7px; padding: 4px 5px 4px 7px; border: 1px solid rgba(181, 198, 204, 0.72); border-radius: 6px; background: rgba(255, 255, 255, 0.8); }
.result-probe-item span { color: var(--muted); font-size: 8px; font-weight: 750; }
.result-probe-item strong { overflow: hidden; color: var(--ink); font-size: 9px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.result-probe-item button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; }
.result-probe-item button:hover { background: #f5e8e7; color: #a43b34; }
.tree-group > .result-probe-actions { margin: 7px 8px 0; }
.result-slice-list { display: grid; gap: 5px; margin: 5px 8px 8px; }
.result-slice-list > small { color: var(--subtle); font-size: 8px; line-height: 1.4; }
.result-slice-entry { overflow: hidden; border: 1px solid rgba(181, 198, 204, 0.72); border-radius: 7px; background: rgba(255, 255, 255, 0.82); }
.result-slice-entry.active { border-color: #76b9b4; box-shadow: inset 3px 0 var(--teal); }
.result-slice-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) 22px 24px; align-items: center; gap: 3px; padding: 4px; background: transparent; }
.result-slice-item.active { background: var(--teal-soft); }
.result-slice-select { min-width: 0; padding: 2px 3px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.result-slice-select strong, .result-slice-select small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-slice-select strong { color: var(--ink); font-size: 9px; }
.result-slice-select small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.slice-state-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0 10px 5px; }
.slice-state-row:empty { display: none; }
.slice-state { font-size: 10px; color: var(--muted); }
.slice-state.loading { color: #825b14; }
.slice-state.failed { color: #a0322c; }
.slice-retry { border: 0; background: transparent; color: var(--teal-dark); font: inherit; font-size: 10px; text-decoration: underline; cursor: pointer; }
.quality-indicator { display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 7px; font-size: 12px; font-weight: 650; line-height: 1.35; }
.quality-indicator i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.quality-indicator.green { background: #e9f7f1; color: #176e50; }
.quality-indicator.orange { background: #fff3dc; color: #935410; }
.quality-indicator.red { background: #fdeae8; color: #a0322c; }
.quality-details { margin: 5px 0; }
.quality-details summary { cursor: pointer; list-style: none; }
.quality-details summary::-webkit-details-marker { display: none; }
.quality-details summary .quality-indicator::after { content: "+"; padding-left: 4px; }
.quality-details[open] summary .quality-indicator::after { content: "-"; }
.quality-details > small { display: block; padding: 6px 8px; line-height: 1.5; }
.result-slice-visibility { position: relative; display: grid; place-items: center; width: 28px; height: 24px; border-radius: 5px; cursor: pointer; }
.result-slice-visibility:hover { background: rgba(14, 127, 120, 0.08); }
.result-slice-visibility input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.result-slice-visibility img { width: 15px; height: 15px; opacity: 0.42; }
.result-slice-visibility input:checked + img { opacity: 0.92; }
.result-slice-delete { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 15px; }
.result-slice-delete:hover { background: #f5e8e7; color: #a43b34; }
.result-slice-expand { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: 17px; line-height: 1; transition: transform 120ms ease; }
.result-slice-expand:hover { background: rgba(14, 127, 120, 0.08); color: var(--teal-dark); }
.result-slice-expand.expanded { transform: rotate(90deg); }
.result-slice-probes { display: grid; gap: 4px; margin: 0 5px 5px 35px; padding: 5px; border-left: 2px solid rgba(14, 127, 120, 0.2); border-radius: 0 0 5px 5px; background: rgba(242, 247, 247, 0.78); }
.result-slice-probes[hidden] { display: none; }
.result-slice-probes > small { color: var(--subtle); font-size: 8px; line-height: 1.4; }
.result-probes-clear { justify-self: end; padding: 2px 3px; border: 0; background: transparent; color: #8d4c48; cursor: pointer; font-size: 7px; }
.result-probes-clear:hover { color: #a43b34; text-decoration: underline; }
.material-reference { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #d5e3e5; border-radius: 9px; background: linear-gradient(135deg, #f7fbfb, #edf5f5); }
.material-reference > img { width: 26px; height: 26px; padding: 4px; border-radius: 7px; background: white; }
.material-reference strong, .material-reference small { display: block; }
.material-reference strong { font-size: 10px; }
.material-reference small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.material-reference > b { padding: 3px 5px; border-radius: 5px; background: #dfecea; color: var(--teal-dark); font-size: 7px; letter-spacing: 0.05em; }
.mesh-refinement-preview { padding: 10px 11px; border: 1px solid #cfe0e4; border-radius: 9px; background: linear-gradient(135deg, #f7fbfb, #edf6f5); }
.mesh-refinement-preview strong, .mesh-refinement-preview small { display: block; }
.mesh-refinement-preview strong { color: var(--teal-dark); font-size: 9px; }
.mesh-refinement-preview small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.mesh-anisotropic-toggle { margin-top: 2px; }
.mesh-anisotropic-controls { display: grid; gap: 6px; padding: 8px; border: 1px solid #cfe0e4; border-radius: 9px; background: #f7fafa; }
.mesh-anisotropic-controls[hidden] { display: none; }
.mesh-axis-slider { display: grid; gap: 4px; }
.mesh-axis-slider > span { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; }
.mesh-axis-slider b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; color: white; font-size: 9px; }
.mesh-axis-slider output { color: var(--teal-dark); font-weight: 750; }
.mesh-axis-slider input { width: 100%; accent-color: var(--teal); }
.mesh-axis-slider.axis-x b { background: #d65c50; }
.mesh-axis-slider.axis-y b { background: #3b9b70; }
.mesh-axis-slider.axis-z b { background: #4d82c4; }
.mesh-auto-toggle { min-height: 34px; padding: 5px 2px; }
.mesh-budget-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.local-refinement-editor,
.wall-refinement-editor { margin-top: 3px; padding-top: 6px; border-top: 1px solid var(--line); }
.local-refinement-editor > summary,
.wall-refinement-editor > summary { display: flex; align-items: center; gap: 7px; min-height: 27px; list-style: none; color: #41545d; font-size: 9px; font-weight: 800; cursor: pointer; }
.local-refinement-editor > summary::-webkit-details-marker,
.wall-refinement-editor > summary::-webkit-details-marker { display: none; }
.local-refinement-editor > summary::after,
.wall-refinement-editor > summary::after { content: ""; width: 12px; height: 12px; margin-left: auto; background: url("./icons/add.png") center / contain no-repeat; opacity: 0.58; }
.local-refinement-editor[open] > summary::after,
.wall-refinement-editor[open] > summary::after { background-image: url("./icons/subtract.png"); }
.local-refinement-add { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 6px; margin-top: 6px; }
.local-refinement-add .button { min-height: 36px; padding: 7px 9px; font-size: 9px; }
.local-refinement-list { display: grid; gap: 6px; margin-top: 8px; }
.local-refinement-list > small { padding: 9px; color: var(--subtle); font-size: 8px; text-align: center; }
.local-refinement-item { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: center; border: 1px solid #d7e3e6; border-radius: 8px; background: #f7fafa; overflow: hidden; }
.local-refinement-item > button { border: 0; background: transparent; cursor: pointer; }
.local-refinement-item > button:first-child { display: grid; grid-template-columns: 9px minmax(0, 1fr); gap: 2px 7px; padding: 8px; text-align: left; }
.local-refinement-item > button:first-child span { grid-row: 1 / 3; align-self: center; width: 8px; height: 22px; border-radius: 3px; background: #68b7bb; }
.local-refinement-item b, .local-refinement-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.local-refinement-item b { color: var(--ink); font-size: 9px; }
.local-refinement-item small { color: var(--muted); font-size: 7px; }
.local-refinement-item > button:last-child { width: 28px; height: 28px; padding: 7px; opacity: .55; }
.wall-refinement-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.wall-refinement-options label > span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 7px; font-weight: 750; }
.wall-refinement-editor > small { display: block; margin-top: 6px; color: var(--subtle); font-size: 7px; line-height: 1.35; }
.simulation-quick-controls { display: grid; gap: 6px; margin: 3px 7px 8px 29px; padding: 8px; border: 1px solid #d7e3e6; border-radius: 9px; background: linear-gradient(145deg, #fbfdfd, #f1f6f6); }
.simulation-estimate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.simulation-estimate-grid > div,
.simulation-method { padding: 7px 8px; border: 1px solid #cfe1e1; border-radius: 7px; background: white; }
.simulation-estimate-grid span,
.simulation-method span { display: block; color: var(--subtle); font-size: 6px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.simulation-estimate-grid strong,
.simulation-method strong { display: block; margin-top: 2px; color: var(--ink); font-size: 8px; }
.simulation-stop-criterion { padding: 7px 8px; border-left: 2px solid var(--teal); border-radius: 0 6px 6px 0; background: #edf6f5; color: #536b74; font-size: 7px; line-height: 1.4; }
.local-refinement-item > button:last-child:hover { background: #f4dfdc; opacity: 1; }
.local-refinement-item img { width: 100%; height: 100%; object-fit: contain; }
.material-thermal-grid { margin: 0; }
.material-model-note { margin: -1px 0 2px; padding: 8px 9px; border-left: 2px solid #d7a649; background: #fff8e9; color: #79643d; font-size: 8px; line-height: 1.45; }
.inspector-section details > summary,
.filter-editor > summary { list-style: none; color: #41545d; font-size: 10px; font-weight: 800; cursor: pointer; }
.inspector-section details > summary::-webkit-details-marker { display: none; }
.inspector-section details > summary::after { content: ""; float: right; width: 12px; height: 12px; background: url("./icons/add.png") center / contain no-repeat; opacity: 0.58; }
.inspector-section details[open] > summary::after { background-image: url("./icons/minus.png"); }
.filter-editor { margin-top: 13px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f7fafa; }
input[type="range"] { width: 100%; accent-color: var(--teal); }
.inspector-footer { display: grid; gap: 7px; padding: 10px; border-top: 1px solid var(--line); background: rgba(248,251,251,0.96); }
.activity-log { display: grid; gap: 10px; padding: 14px; }
.activity-empty { padding: 18px 10px; color: var(--subtle); font-size: 10px; text-align: center; }
.activity-entry { position: relative; padding: 2px 0 12px 18px; border-left: 1px solid var(--line); }
.activity-entry::before { content: ""; position: absolute; top: 3px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.activity-entry strong { display: block; font-size: 10px; }
.activity-entry small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.validation-panel { display: flex; flex-direction: column; }
.validation-panel-head { padding: 17px 16px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(145deg, #fbfdfd, #f0f6f6); }
.validation-panel-head h2 { margin: 3px 0 6px; font-size: 18px; font-weight: 650; }
.validation-panel-head p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.validation-list { display: grid; gap: 7px; padding: 12px; }
.validation-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: white; text-align: left; cursor: pointer; }
.validation-item:hover { border-color: #b9cbd0; background: #fbfdfd; }
.validation-item > i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #edf1f2; color: #75858c; font-size: 10px; font-style: normal; font-weight: 900; }
.validation-item.pass > i { background: #dff2ea; color: #1b7955; }
.validation-item.warning > i { background: #fff2d7; color: #a46d11; }
.validation-item.error > i { background: #fbe4e1; color: #b34841; }
.validation-item strong, .validation-item small { display: block; }
.validation-item strong { font-size: 10px; }
.validation-item small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.validation-item > b { color: var(--subtle); font-size: 13px; }
.validation-panel-footer { margin-top: auto; padding: 13px; border-top: 1px solid var(--line); background: #f7fafa; }
.validation-panel-footer strong, .validation-panel-footer small { display: block; }
.validation-panel-footer strong { font-size: 10px; }
.validation-panel-footer small { margin: 4px 0 10px; color: var(--muted); font-size: 8px; line-height: 1.45; }

.project-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: 0 24px 80px rgba(24,45,54,0.24); }
.project-dialog::backdrop { background: rgba(28,45,53,0.36); backdrop-filter: blur(4px); }
.project-dialog form { position: relative; padding: 25px; }
.project-dialog h2 { margin: 5px 0 7px; font-size: 24px; }
.project-dialog p { margin: 0 0 17px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.dialog-close { position: absolute; top: 13px; right: 13px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: #f0f4f5; cursor: pointer; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 20px; }
.variant-source-card { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 11px; border: 1px solid #cfe0df; border-radius: 9px; background: #f4f9f8; }
.variant-source-card > img { width: 22px; height: 22px; opacity: 0.72; }
.variant-source-card span { min-width: 0; }
.variant-source-card small,
.variant-source-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variant-source-card small { color: var(--muted); font-size: 8px; }
.variant-source-card strong { margin-top: 2px; color: var(--teal-dark); font-size: 11px; }
.analysis-mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.analysis-mode-card { position: relative; display: block; cursor: pointer; }
.analysis-mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.analysis-mode-card span { display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #f8fafb; transition: 150ms ease; }
.analysis-mode-card img { width: 27px; height: 27px; flex: 0 0 auto; object-fit: contain; }
.analysis-mode-card i { min-width: 0; font-style: normal; }
.analysis-mode-card strong { display: block; color: var(--ink); font-size: 11px; }
.analysis-mode-card small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.analysis-mode-card input:checked + span { border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 2px rgba(14,127,120,0.08); }
.danger-eyebrow { color: #a43e37; }
.delete-project-card { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #ead1ce; border-radius: 9px; background: #fdf8f7; }
.delete-project-card img { opacity: 0.72; }
.delete-project-card strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.dialog-warning { margin-top: 12px; padding: 11px 12px; border-left: 3px solid #c65148; border-radius: 0 8px 8px 0; background: #f9ecea; }
.dialog-warning strong, .dialog-warning small { display: block; }
.dialog-warning strong { color: #8e342e; font-size: 10px; }
.dialog-warning small { margin-top: 3px; color: #795e5b; font-size: 9px; line-height: 1.45; }

.worker-group { margin-top: 10px; }
.worker-list { display: grid; gap: 7px; padding: 5px 6px 7px; }
.worker-card { position: relative; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 10px 9px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafb; }
.worker-card > div { min-width: 0; }
.worker-card strong, .worker-card small, .worker-card em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.worker-card strong { color: var(--ink); font-size: 10px; }
.worker-card small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.worker-card em { margin-top: 4px; color: #8b9aa0; font-size: 7px; font-style: normal; }
.worker-status-dot { width: 8px; height: 8px; margin-top: 2px; border-radius: 50%; background: #9aa7ac; }
.worker-card.online .worker-status-dot { background: #27a47b; box-shadow: 0 0 0 3px rgba(39,164,123,.12); }
.worker-card.working .worker-status-dot { background: #2786bc; box-shadow: 0 0 0 3px rgba(39,134,188,.12); animation: pulse 1.7s infinite; }
.worker-card.revoked { opacity: .55; }
.worker-status-label { padding: 2px 5px; border-radius: 10px; background: #e8edef; color: #65757b; font-size: 7px; font-weight: 700; }
.worker-card.online .worker-status-label { background: #e1f3ed; color: #187458; }
.worker-card.working .worker-status-label { background: #e1eef7; color: #276d94; }
.worker-card-actions { position: absolute; right: 7px; bottom: 7px; display: flex; align-items: center; gap: 4px; }
.worker-card-actions .worker-revoke { width: 22px; height: 22px; padding: 5px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; opacity: .52; }
.worker-revoke:hover { background: #f5dfdc; opacity: 1; }
.worker-revoke img { width: 100%; height: 100%; object-fit: contain; }
.worker-wake { display: flex; align-items: center; gap: 4px; min-height: 22px; padding: 3px 7px; border: 1px solid #b9d9d5; border-radius: 6px; background: #e4f3f1; color: #096c67; font-size: 7px; font-weight: 800; cursor: pointer; }
.worker-wake img { width: 11px; height: 11px; object-fit: contain; }
.worker-wake:hover { border-color: #86bbb5; background: #d5ece9; }
.worker-wake:disabled { opacity: .45; cursor: not-allowed; }
.job-worker { display: flex; align-items: center; gap: 5px; margin: 8px 0; padding: 6px 8px; border-radius: 7px; background: #eef4f5; color: #49636d; font-size: 8px; font-weight: 700; }
.job-worker img { width: 14px; height: 14px; object-fit: contain; }
.worker-dialog { width: min(540px, calc(100vw - 30px)); }
.worker-enrollment-state { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 4px 12px; align-items: center; margin-top: 16px; padding: 14px; border: 1px solid #cfe0e4; border-radius: 10px; background: linear-gradient(135deg, #f3f8f9, #eef5f3); }
.worker-enrollment-state img { grid-row: 1 / 3; width: 38px; height: 38px; object-fit: contain; }
.worker-enrollment-state strong { font-size: 11px; }
.worker-enrollment-state small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.copy-field { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 6px; }
.copy-field .input { min-width: 0; font-family: "IBM Plex Mono", monospace; font-size: 9px; }
.copy-field .icon-button { align-self: stretch; width: 34px; height: auto; }
.enrollment-code { letter-spacing: .03em; }
.worker-setup-steps { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 7px 9px; align-items: center; margin-top: 15px; padding: 12px; border-radius: 9px; background: #f7f9fa; }
.worker-setup-steps span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--teal); color: white; font-size: 8px; font-weight: 800; }
.worker-setup-steps p { margin: 0; color: #53666d; font-size: 9px; line-height: 1.4; }
.worker-download { text-decoration: none; }

.toast-region { position: fixed; z-index: 200; right: 18px; bottom: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 260px; max-width: 380px; padding: 11px 13px; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 9px; background: rgba(255,255,255,0.96); box-shadow: var(--shadow); font-size: 10px; animation: toast-in 180ms ease-out; }
.toast.error { border-left-color: #d9524b; }
.toast strong { display: block; margin-bottom: 2px; }
.toast small { color: var(--muted); }

[hidden] { display: none !important; }

/* Public product landing page */
.flow-landing { position: fixed; z-index: 900; inset: 0; overflow: auto; background: #f7faf9; color: #12242b; scroll-behavior: smooth; }
.landing-nav { position: sticky; z-index: 10; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; padding: 0 max(28px, calc((100vw - 1180px) / 2)); border-bottom: 1px solid rgba(24, 64, 67, 0.09); background: rgba(247, 250, 249, 0.9); backdrop-filter: blur(18px); }
.landing-brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: inherit; text-decoration: none; }
.landing-brand img { width: 38px; height: 38px; border-radius: 10px; }
.landing-brand strong, .landing-brand small { display: block; }
.landing-brand strong { font-size: 13px; letter-spacing: .16em; }
.landing-brand small { margin-top: 2px; color: #718187; font-size: 7px; letter-spacing: .21em; }
.landing-nav-links { display: flex; gap: 30px; }
.landing-nav-links a { color: #52656b; font-size: 11px; font-weight: 650; text-decoration: none; }
.landing-nav-links a:hover { color: #08766e; }
.landing-nav > .landing-button { justify-self: end; }
.landing-button { min-height: 42px; padding: 0 19px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 750; cursor: pointer; transition: 160ms ease; }
.landing-button:hover { transform: translateY(-1px); }
.landing-button.primary { background: #087b72; color: white; box-shadow: 0 9px 24px rgba(8, 123, 114, .18); }
.landing-button.primary:hover { background: #06675f; }
.landing-button.secondary { border-color: #b9c8c8; background: transparent; color: #183239; }
.landing-button.secondary:hover { border-color: #749b98; background: #edf5f3; }
.landing-hero { display: grid; grid-template-columns: minmax(330px,.72fr) minmax(700px,1.42fr); gap: clamp(36px, 4vw, 62px); align-items: center; width: min(1420px, calc(100% - 56px)); min-height: min(790px, calc(100vh - 72px)); margin: 0 auto; padding: 72px 0 82px; }
.landing-kicker { display: inline-flex; align-items: center; gap: 9px; color: #087b72; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.landing-kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.landing-hero h1 { margin: 20px 0 23px; font-size: clamp(46px, 5.1vw, 74px); line-height: .99; letter-spacing: -.055em; }
.landing-hero h1 em { color: #0a8278; font-style: normal; }
.landing-hero-copy > p { max-width: 570px; margin: 0; color: #5c6d73; font-family: "Aptos", "Segoe UI", sans-serif; font-size: 16px; line-height: 1.7; }
.landing-rate { display:flex; align-items:center; gap:13px; margin-top:28px; color:#17353a; }.landing-rate > strong { font-size:34px; line-height:1; letter-spacing:-.045em; }.landing-rate > span { display:grid; gap:3px; font-size:11px; font-weight:750; }.landing-rate small { color:#74868a; font-size:9px; font-weight:550; }
.landing-hero-actions { display: flex; align-items: center; gap: 23px; margin-top: 32px; }
.landing-text-link { color: #425b61; font-size: 11px; font-weight: 750; text-underline-offset: 4px; }
.landing-proof { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 27px; color: #56696e; font-size: 9px; }
.landing-proof span { display: inline-flex; align-items: center; gap: 5px; }
.landing-proof img { width: 11px; height: 11px; object-fit: contain; }
.landing-status { margin-top: 18px !important; padding: 11px 13px; border-left: 3px solid #0a8278; background: #e7f2f0; color: #2c514f !important; font-size: 11px !important; }
.session-launch { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 50% 35%, #f8fcfb 0, #e8f1f1 58%, #dce8e9 100%); }
.session-launch[hidden] { display: none; }
.session-launch-card { display: flex; width: min(430px, 100%); align-items: center; flex-direction: column; padding: 45px 42px 38px; border: 1px solid rgba(153,181,181,.55); border-radius: 20px; background: rgba(255,255,255,.88); box-shadow: 0 28px 80px rgba(18,53,57,.14); text-align: center; backdrop-filter: blur(14px); }
.session-launch-card > img { width: 66px; height: 66px; margin-bottom: 22px; border-radius: 15px; object-fit: contain; box-shadow: 0 10px 25px rgba(26,74,75,.13); }
.session-launch-card h1 { margin: 12px 0 9px; color: #18373b; font-size: 27px; letter-spacing: -.035em; }
.session-launch-card p { min-height: 40px; margin: 0; color: #65787c; font: 12px/1.65 "Aptos", "Segoe UI", sans-serif; }
.session-launch-progress { overflow: hidden; width: 100%; height: 4px; margin: 25px 0 4px; border-radius: 4px; background: #dce8e7; }
.session-launch-progress i { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#087b72,#48b6a7); animation: session-launch-progress 1.25s ease-in-out infinite; }
.session-launch-card .button { margin-top: 19px; }
@keyframes session-launch-progress { from { transform: translateX(-110%); } to { transform: translateX(340%); } }
.landing-product { overflow: hidden; min-width: 0; border: 1px solid #c9d4d5; border-radius: 18px; background: white; box-shadow: 0 36px 90px rgba(20, 52, 57, .17); transform: perspective(1500px) rotateY(-1.3deg) rotateX(.7deg); }
.landing-product-bar { display: grid; grid-template-columns: minmax(105px,.75fr) minmax(120px,1fr) auto auto; align-items: center; gap: 15px; height: 46px; padding: 0 13px; border-bottom: 1px solid #dbe3e3; background: #f7f9f9; color: #687a7f; font-size: 7px; }
.landing-product-bar > span { display: flex; align-items: center; min-width: 0; }
.landing-mini-brand { gap: 6px; color: #173239; letter-spacing: .08em; }
.landing-mini-brand img { width: 23px; height: 23px; border-radius: 6px; }
.landing-project-context,.landing-credit-chip { flex-direction: column; align-items: flex-start !important; gap: 2px; }
.landing-product-bar small { color: #8b999c; font-size: 6px; letter-spacing: .08em; }
.landing-product-bar strong { overflow: hidden; max-width: 100%; color: #40545a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.landing-service-chip { justify-content: center; gap: 5px; padding: 6px 8px; border: 1px solid #cfe1de; border-radius: 6px; background: #edf7f4; color: #087b72; white-space: nowrap; }
.landing-service-chip i { width: 6px; height: 6px; border-radius: 50%; background: #2aa57f; box-shadow: 0 0 0 3px rgba(42,165,127,.1); }
.landing-product-body { display: grid; grid-template-columns: 50px 145px minmax(300px,1fr) 164px; height: 405px; }
.landing-mini-rail { display: flex; flex-direction: column; gap: 8px; padding: 12px 5px; border-right: 1px solid #dbe3e3; background: #102d32; }
.landing-mini-rail span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 6px; color: #9db2b4; font-size: 6px; text-align: center; }
.landing-mini-rail span.active { background: #23494d; color: #9fe1d8; }
.landing-mini-rail img { width: 16px; height: 16px; object-fit: contain; filter: brightness(0) invert(1); opacity: .82; }
.landing-mini-rail small { font-size: 6px; }
.landing-product-tree { display: flex; flex-direction: column; gap: 4px; padding: 16px 11px 12px; border-right: 1px solid #dbe3e3; background: #f8faf9; }
.landing-product-tree > b { margin: 0 7px 1px; color: #87969a; font-size: 6px; letter-spacing: .13em; }
.landing-product-tree h3 { margin: 0 7px 8px; color: #213a40; font-size: 14px; }
.landing-product-tree > span { display: grid; grid-template-columns: 16px 1fr 5px; align-items: center; gap: 5px; padding: 7px 7px; border-radius: 6px; color: #64767a; font-size: 7px; }
.landing-product-tree > span.active { background: #e4f1ef; color: #087b72; font-weight: 700; }
.landing-product-tree > span > img { width: 14px; height: 14px; object-fit: contain; }
.landing-product-tree > span > i { width: 4px; height: 4px; border-radius: 50%; background: #30a283; }
.landing-product-tree > div { margin-top: auto; padding: 10px 8px; border: 1px solid #d5e2e1; border-radius: 8px; background: white; }
.landing-product-tree small,.landing-product-tree strong { display: block; }
.landing-product-tree small { color: #89979a; font-size: 6px; }
.landing-product-tree strong { margin-top: 4px; color: #087b72; font-size: 8px; }
.landing-product-tree strong img { width: 10px; height: 10px; vertical-align: -2px; }
.landing-product-center { display: flex; min-width: 0; flex-direction: column; background: #edf3f4; }
.landing-progress { display: grid; grid-template-columns: repeat(5,1fr); align-items: center; min-height: 38px; padding: 0 10px; border-bottom: 1px solid #dae3e4; background: #fbfcfc; }
.landing-progress span { position: relative; display: flex; align-items: center; gap: 4px; color: #7c8d91; font-size: 6px; white-space: nowrap; }
.landing-progress span:not(:last-child)::after { content: ""; position: absolute; right: 5px; width: 18%; height: 1px; background: #cedadb; }
.landing-progress b { display: grid; place-items: center; width: 14px; height: 14px; border: 1px solid #bbc9ca; border-radius: 50%; font-size: 6px; }
.landing-progress .done { color: #087b72; }
.landing-progress .done b { border-color: #087b72; background: #087b72; color: white; }
.landing-product-tools { display: flex; gap: 5px; min-height: 32px; align-items: center; padding: 0 9px; border-bottom: 1px solid #dbe3e3; background: #f6f8f8; }
.landing-product-tools span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border: 1px solid #d2dddd; border-radius: 5px; background: white; color: #63767a; font-size: 6px; }
.landing-product-tools img { width: 10px; height: 10px; object-fit: contain; }
.landing-cfd-view { position: relative; overflow: hidden; min-height: 0; flex: 1; background: radial-gradient(circle at 60% 45%, #f6fbfb 0, #e8eff0 70%); }
.landing-cfd-object { display: block; width: 100%; height: 100%; object-fit: cover; }
.landing-legend { position: absolute; right: 17px; bottom: 18px; width: 128px; height: 8px; border-radius: 4px; background: linear-gradient(90deg,#273a91,#207db4,#38ad8a,#e9d63d,#ee8a2d,#d63130); box-shadow: 0 0 0 1px rgba(255,255,255,.8); }
.landing-result-chip { position: absolute; top: 15px; right: 16px; padding: 7px 9px; border: 1px solid rgba(170,189,190,.7); border-radius: 6px; background: rgba(255,255,255,.88); color: #52666a; font-size: 8px; }
.landing-product-properties { display: flex; flex-direction: column; gap: 10px; padding: 15px 12px; border-left: 1px solid #dbe3e3; background: #f9fbfa; }
.landing-product-properties > small { color: #8b999c; font-size: 6px; letter-spacing: .12em; }
.landing-product-properties h3 { margin: -5px 0 2px; color: #203a40; font-size: 14px; }
.landing-product-properties label { display: grid; gap: 3px; color: #78898d; font-size: 6px; }
.landing-product-properties label strong { overflow: hidden; padding: 6px; border: 1px solid #d6e0df; border-radius: 5px; background: white; color: #435b60; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.landing-property-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.landing-opacity { display: grid; grid-template-columns: 1fr auto; gap: 5px; align-items: center; color: #78898d; font-size: 6px; }
.landing-opacity i { grid-column: 1/3; height: 3px; border-radius: 2px; background: linear-gradient(90deg,#087b72 15%,#d5dfdf 15%); }
.landing-opacity small { font-size: 6px; }
.landing-property-toggle { display: flex; justify-content: space-between; align-items: center; color: #78898d; font-size: 6px; }
.landing-property-toggle i { position: relative; width: 20px; height: 10px; border-radius: 10px; background: #087b72; }
.landing-property-toggle i::after { content: ""; position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: white; }
.landing-product-foot { display: flex; justify-content: space-between; align-items: center; height: 39px; padding: 0 15px; border-top: 1px solid #dbe3e3; color: #6e7f83; font-size: 8px; }
.landing-product-foot span { display: inline-flex; align-items: center; gap: 5px; }
.landing-product-foot img { width: 10px; height: 10px; object-fit: contain; }
.landing-product-foot strong { color:#1a343a; }
.landing-section { width: min(1180px, calc(100% - 56px)); margin: 0 auto; padding: 100px 0; }
.landing-section-intro { max-width: 760px; margin-bottom: 48px; }.landing-section-intro h2 { margin: 17px 0 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.04em; }.landing-section-intro p { margin: 19px 0 0; color: #65767b; font-family:"Aptos","Segoe UI",sans-serif; font-size: 14px; line-height:1.65; }
.product-areas-section { padding-top: 92px; border-top: 1px solid #dce5e4; }
.landing-product-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.landing-product-areas article { display: grid; grid-template-columns: 62px 1fr 18px; align-items: center; gap: 22px; min-height: 172px; padding: 28px; border: 1px solid #d4e1df; border-radius: 15px; background: linear-gradient(135deg,#fff,#f0f7f5); box-shadow: 0 12px 32px rgba(25,61,63,.06); }
.landing-product-areas article.thermal { background: linear-gradient(135deg,#fff,#f6f3ed); }
.landing-product-areas article > img:first-child { width: 62px; height: 62px; object-fit: contain; }
.landing-product-areas article > div > span { color: #0a8178; font-size: 8px; font-weight: 850; letter-spacing: .15em; }
.landing-product-areas h3 { margin: 7px 0 8px; font-size: 22px; }
.landing-product-areas p { margin: 0; color: #64777b; font-family: "Aptos","Segoe UI",sans-serif; font-size: 11px; line-height: 1.55; }
.landing-product-areas .area-arrow { width: 13px; height: 13px; opacity: .55; transform: rotate(-90deg); }
.benefits-section { border-top: 1px solid #dce5e4; }.landing-benefit-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }.landing-benefit-grid article { min-height: 220px; padding: 25px; border: 1px solid #dbe4e3; border-radius: 12px; background:white; }.landing-benefit-grid article > img { width: 42px; height: 42px; object-fit: contain; }.landing-benefit-grid h3 { margin: 30px 0 12px; font-size:18px; }.landing-benefit-grid p { margin:0; color:#68797d; font-family:"Aptos","Segoe UI",sans-serif; font-size:11px; line-height:1.65; }
.workflow-section { width:100%; padding-inline:max(28px,calc((100vw - 1180px)/2)); background:#102d32; color:white; }.workflow-section .landing-kicker { color:#63c7ba; }.landing-steps { display:grid; grid-template-columns:1fr auto 1fr auto 1fr auto 1fr; align-items:center; gap:18px; }.landing-steps article { display:flex; align-items:center; gap:13px; }.landing-steps article > img { width:36px; height:36px; padding:8px; border:1px solid #4f7476; border-radius:50%; object-fit:contain; filter:brightness(0) invert(1); opacity:.82; }.landing-steps span { font-size:12px; }.landing-steps > i { width:38px; height:1px; background:#48666a; }
.workflow-section .landing-section-intro p { color:#a9bebf; }.landing-workflow-detail { display:grid; grid-template-columns:repeat(5,1fr); gap:1px; overflow:hidden; border:1px solid #36565a; border-radius:16px; background:#36565a; }.landing-workflow-detail article { position:relative; min-height:255px; padding:25px 21px; background:#15363b; }.landing-workflow-detail article:nth-child(even) { background:#173b40; }.landing-workflow-detail article > span { color:#5f898b; font-size:9px; font-weight:800; letter-spacing:.15em; }.landing-workflow-detail img { display:block; width:42px; height:42px; margin:29px 0 25px; object-fit:contain; filter:brightness(0) invert(1); opacity:.9; }.landing-workflow-detail h3 { margin:0 0 12px; font-size:16px; }.landing-workflow-detail p { margin:0; color:#a9bcbe; font-family:"Aptos","Segoe UI",sans-serif; font-size:10px; line-height:1.65; }
.comparison-section { padding-bottom: 80px; }.landing-comparison { overflow:hidden; border:1px solid #d8e2e1; border-radius:14px; background:white; }.comparison-row { display:grid; grid-template-columns:1.05fr 1.15fr 1fr 1fr; min-height:58px; border-top:1px solid #e3e9e8; }.comparison-row:first-child { border-top:0; }.comparison-row > * { display:flex; align-items:center; padding:13px 18px; border-left:1px solid #e3e9e8; font-size:10px; }.comparison-row > *:first-child { border-left:0; }.comparison-row b { color:#56686c; }.comparison-row strong { background:#edf7f4; color:#087b72; }.comparison-row.head { min-height:47px; background:#f3f6f5; }.comparison-row.head > * { font-size:9px; letter-spacing:.08em; text-transform:uppercase; }.comparison-note { display:block; margin-top:12px; color:#859397; font-family:"Aptos","Segoe UI",sans-serif; font-size:9px; }
.workflow-comparison { max-width:820px; margin:42px auto 0; overflow:hidden; border:1px solid #d7e2e0; border-radius:14px; background:white; box-shadow:0 18px 46px rgba(22,55,57,.06); }.workflow-comparison > div { display:grid; grid-template-columns:1fr 1fr; min-height:56px; border-top:1px solid #e3eae9; }.workflow-comparison > div:first-child { border-top:0; background:#eff5f3; }.workflow-comparison span,.workflow-comparison b,.workflow-comparison strong { display:flex; align-items:center; padding:14px 22px; font-size:11px; }.workflow-comparison strong { border-left:1px solid #dce7e5; color:#087b72; }
.calculator-section { border-top:1px solid #dce5e4; }.compute-calculator { display:grid; grid-template-columns:1.35fr .85fr; overflow:hidden; border:1px solid #cbdcda; border-radius:18px; background:white; box-shadow:0 24px 70px rgba(22,59,59,.08); }.calculator-controls { display:grid; gap:29px; padding:38px; }.calculator-controls label { display:grid; gap:14px; }.calculator-controls label > span { display:flex; justify-content:space-between; align-items:center; color:#496065; font-size:11px; font-weight:700; }.calculator-controls output { color:#087b72; font-size:14px; }.calculator-controls input { width:100%; accent-color:#087b72; }.calculator-controls small { display:flex; justify-content:space-between; color:#8b999c; font-size:8px; }.calculator-result { display:flex; flex-direction:column; justify-content:center; padding:38px; background:linear-gradient(145deg,#0e3539,#0a5a55); color:white; }.calculator-result > span { color:#9fc4c0; font-size:9px; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }.calculator-result > strong { margin:12px 0 7px; font-size:46px; letter-spacing:-.05em; }.calculator-result > small { color:#c6ddda; font-size:10px; }.calculator-result > i { margin-top:26px; color:#83aaa7; font-family:"Aptos","Segoe UI",sans-serif; font-size:9px; font-style:normal; line-height:1.5; }
.pricing-section { width:100%; padding-inline:max(28px,calc((100vw - 900px)/2)); background:#eaf2f0; }.pricing-section .landing-section-intro { text-align:center; margin-inline:auto; }.pricing-section .landing-kicker::before { display:none; }.landing-pricing-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; max-width:760px; margin:auto; }.price-card { position:relative; padding:32px; border:1px solid #cddbd9; border-radius:15px; background:rgba(255,255,255,.75); }.price-card.featured { border-color:#0a847a; background:white; box-shadow:0 20px 50px rgba(28,70,67,.12); }.price-name { color:#0a8178; font-size:9px; font-weight:850; letter-spacing:.16em; }.price-tag { position:absolute; top:16px; right:16px; padding:5px 7px; border-radius:4px; background:#dbefeb; color:#087b72; font-size:7px; font-weight:850; }.price-card h3 { margin:17px 0 4px; font-size:39px; letter-spacing:-.04em; }.price-card h3 small { color:#7b8a8d; font-size:12px; font-weight:500; }.price-card > p { margin:0 0 25px; color:#748387; font-size:10px; }.price-card ul { min-height:90px; margin:0 0 26px; padding:0; list-style:none; }.price-card li { display:flex; align-items:center; gap:8px; margin:10px 0; color:#506469; font-size:10px; }.price-card li img { width:12px; height:12px; object-fit:contain; }.price-card .landing-button { width:100%; }
.pricing-footnote { max-width:760px; margin:22px auto 0; color:#718481; font-family:"Aptos","Segoe UI",sans-serif; font-size:9px; line-height:1.55; text-align:center; }
.trust-section { border-top:1px solid #dce5e4; }.trust-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; }.trust-grid article { display:grid; gap:8px; min-height:125px; padding:24px; border:1px solid #d6e2e0; border-radius:12px; background:linear-gradient(145deg,#fff,#f3f8f6); }.trust-grid strong { color:#087b72; font-size:16px; }.trust-grid span { color:#63767a; font-family:"Aptos","Segoe UI",sans-serif; font-size:10px; line-height:1.55; }
.faq-section { border-top:1px solid #dce5e4; }.faq-list { max-width:850px; }.faq-list details { border-top:1px solid #d5e1df; }.faq-list details:last-child { border-bottom:1px solid #d5e1df; }.faq-list summary { position:relative; padding:23px 44px 23px 0; color:#213b40; font-size:14px; font-weight:700; cursor:pointer; list-style:none; }.faq-list summary::-webkit-details-marker { display:none; }.faq-list summary::after { content:"+"; position:absolute; right:8px; color:#087b72; font-size:20px; font-weight:400; }.faq-list details[open] summary::after { content:"−"; }.faq-list p { max-width:760px; margin:-4px 0 24px; color:#65777b; font-family:"Aptos","Segoe UI",sans-serif; font-size:11px; line-height:1.7; }
.landing-final-cta { display:flex; align-items:center; flex-direction:column; padding:92px 28px; background:radial-gradient(circle at 50% 0,#1c5354,#102d32 62%); color:white; text-align:center; }.landing-final-cta .landing-kicker { color:#78d2c6; }.landing-final-cta .landing-kicker::before { display:none; }.landing-final-cta h2 { margin:18px 0 10px; font-size:clamp(32px,4vw,48px); letter-spacing:-.04em; }.landing-final-cta p { margin:0 0 27px; color:#a9bebf; font-family:"Aptos","Segoe UI",sans-serif; font-size:12px; }.landing-final-cta .landing-button { background:#ecf8f5; color:#086e66; box-shadow:none; }
.landing-footer { display:flex; justify-content:space-between; align-items:center; min-height:110px; padding:20px max(28px,calc((100vw - 1180px)/2)); background:#102d32; color:#d7e4e3; }.landing-footer p,.landing-footer > span { color:#789699; font-size:9px; }
.landing-footer > span a { color:#9eb7b8; text-underline-offset:3px; }
.billing-balance-card { display:grid; grid-template-columns:1fr auto; gap:5px; padding:18px; margin:18px 0; border:1px solid #cfe0dd; border-radius:11px; background:#edf7f4; }.billing-balance-card span { color:#087b72; font-size:9px; font-weight:800; letter-spacing:.12em; }.billing-balance-card strong { grid-row:1/3; grid-column:2; align-self:center; color:#087b72; font-size:27px; }.billing-balance-card small { color:#6e8583; font-size:9px; }.billing-topups { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; }.billing-topups button { min-height:42px; border:1px solid #b9cfcc; border-radius:8px; background:white; color:#087b72; font-size:11px; font-weight:750; cursor:pointer; }.billing-topups button:hover { border-color:#087b72; background:#edf7f4; }
.billing-storage { display:grid; grid-template-columns:1fr auto; gap:7px 12px; margin:-7px 0 18px; color:#526a68; font-size:10px; }.billing-storage strong { color:#173f3c; font-size:10px; }.billing-storage i { --storage-fill:0%; grid-column:1/-1; display:block; height:6px; overflow:hidden; border-radius:999px; background:#dce9e7; }.billing-storage i::after { content:""; display:block; width:var(--storage-fill); height:100%; border-radius:inherit; background:#0b8d80; transition:width .2s ease; }
.billing-plan-cards { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:18px 0; }.billing-plan-cards article { padding:15px; border:1px solid #d7e2e0; border-radius:10px; background:#f8faf9; }.billing-plan-cards article.recommended { border-color:#8bbdb7; background:#edf7f4; }.billing-plan-cards article > span { color:#087b72; font-size:8px; font-weight:850; letter-spacing:.13em; }.billing-plan-cards article > strong { display:block; margin:8px 0 6px; color:#173c3a; font-size:20px; }.billing-plan-cards article > strong small { color:#748481; font-size:9px; }.billing-plan-cards p { min-height:30px; margin:0 0 12px; color:#677a7d; font-size:9px; line-height:1.45; }.billing-plan-cards .button { width:100%; }.billing-subscription-note { padding:10px 12px; border-left:3px solid #0b8d80; background:#f0f7f5; color:#526967; font-size:9px; }

@media (max-width: 900px) {
  .landing-nav { grid-template-columns:1fr auto; }.landing-nav-links { display:none; }.landing-hero { grid-template-columns:1fr; width:min(760px,calc(100% - 56px)); padding-top:54px; }.landing-product { transform:none; }.landing-product-body { grid-template-columns:50px 145px minmax(0,1fr); }.landing-product-properties { display:none; }.landing-benefit-grid { grid-template-columns:1fr 1fr; }.landing-steps { grid-template-columns:1fr 1fr; }.landing-steps > i { display:none; }.landing-workflow-detail { grid-template-columns:repeat(2,1fr); }.landing-workflow-detail article:last-child { grid-column:1/-1; min-height:210px; }.trust-grid { grid-template-columns:1fr 1fr; }.comparison-row { grid-template-columns:.9fr 1.1fr; }.comparison-row > *:nth-child(n+3) { display:none; }.landing-footer { gap:20px; }
}
@media (max-width: 560px) {
  .landing-nav { min-height:64px; padding-inline:18px; }.landing-nav .landing-button { padding-inline:13px; }.landing-hero,.landing-section { width:calc(100% - 36px); }.landing-hero { min-height:auto; padding:48px 0 60px; }.landing-hero h1 { font-size:43px; }.landing-rate > strong { font-size:29px; }.landing-hero-actions { align-items:flex-start; flex-direction:column; }.landing-proof { flex-direction:column; }.landing-product-bar { grid-template-columns:1fr auto; }.landing-project-context,.landing-service-chip { display:none !important; }.landing-product-body { grid-template-columns:46px minmax(0,1fr); height:315px; }.landing-product-tree,.landing-product-properties { display:none; }.landing-mini-rail { padding-inline:3px; }.landing-progress span { font-size:0; }.landing-progress span:not(:last-child)::after { right:0; width:26%; }.landing-product-tools span { font-size:0; }.landing-legend { width:90px; }.landing-product-areas,.landing-benefit-grid,.landing-pricing-grid,.trust-grid { grid-template-columns:1fr; }.landing-product-areas article { grid-template-columns:48px 1fr 14px; gap:15px; padding:21px; }.landing-product-areas article > img:first-child { width:48px; height:48px; }.landing-product-areas h3 { font-size:19px; }.landing-benefit-grid article { min-height:170px; }.landing-benefit-grid h3 { margin-top:25px; }.landing-steps,.landing-workflow-detail { grid-template-columns:1fr; }.landing-workflow-detail article:last-child { grid-column:auto; }.workflow-section,.pricing-section { padding-inline:18px; }.workflow-comparison span,.workflow-comparison b,.workflow-comparison strong { padding:12px; font-size:9px; }.compute-calculator { grid-template-columns:1fr; }.calculator-controls,.calculator-result { padding:26px 22px; }.calculator-result > strong { font-size:39px; }.comparison-row > * { padding-inline:10px; }.landing-footer { align-items:flex-start; flex-direction:column; }.landing-footer p { display:none; }.billing-topups,.billing-plan-cards { grid-template-columns:1fr 1fr; }
}

@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes auth-card-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

@media (min-width: 1800px) and (min-height: 1000px) {
  :root {
    --topbar-h: 68px;
    --rail-w: 390px;
    --inspector-w: 410px;
  }

  .topbar-actions { gap: 10px; padding-inline: 18px; }
  .brand-block { gap: 14px; padding-inline: 22px; }
  .brand-app-icon { width: 43px; height: 43px; }
  .brand-block strong { font-size: 17px; }
  .brand-block small { font-size: 10px; }
  .crumb-button { width: min(440px, 100%); padding: 9px 13px; }
  .crumb-button > span:nth-child(2) { font-size: 15px; }
  .eyebrow { font-size: 11px; }
  .system-chip { min-height: 36px; padding-inline: 12px; font-size: 11px; }
  .normalization-chip b { width: 23px; height: 23px; font-size: 10px; }
  .save-state { font-size: 12px; }
  .remote-user { font-size: 11px; }
  .remote-user button { font-size: 10px; }
  .button { min-height: 40px; padding: 9px 16px; font-size: 13px; }
  .ui-icon { width: 21px; height: 21px; }
  .icon-xs { width: 15px; height: 15px; }
  .icon-sm { width: 20px; height: 20px; }
  .icon-rail { width: 27px; height: 27px; }

  .left-rail { grid-template-columns: 72px minmax(0, 1fr); }
  .rail-tabs { gap: 6px; padding: 10px 7px; }
  .rail-tab { min-height: 62px; }
  .rail-tab small { font-size: 10px; }
  .variant-create-button { min-height: 48px; }
  .variant-rail-button { min-height: 54px; }
  .variant-create-button small, .variant-rail-button small { max-width: 56px; font-size: 9px; }
  .variant-create-button img, .variant-rail-button img { width: 22px; height: 22px; }
  .panel-heading { min-height: 76px; padding: 15px 16px 12px 19px; }
  .panel-heading h2 { font-size: 19px; }
  .icon-button { width: 34px; height: 34px; }
  .tree-content { padding: 11px; }
  .workflow-actions { gap: 9px; padding: 13px 14px 14px; }
  .workflow-action-head span { font-size: 10px; }
  .workflow-action-head small { font-size: 9px; }
  .workflow-actions > .button { min-height: 40px; }
  .tree-group > summary { grid-template-columns: 26px 1fr auto; min-height: 42px; gap: 8px; padding: 8px 10px; font-size: 13px; }
  .tree-icon { width: 26px; height: 26px; }
  .tree-icon img { width: 18px; height: 18px; }
  .count-badge { min-width: 22px; height: 20px; font-size: 11px; }
  .tree-row, .tree-action, .tree-toggle { min-height: 38px; padding: 7px 10px; font-size: 12px; }
  .tree-row-icon { width: 19px; height: 19px; }
  .row-meta, .condition-faces { font-size: 10px; }
  .empty-tree { font-size: 12px; }
  .physics-volume-tree > small { font-size: 10px; }
  .volume-tree-row strong { font-size: 11px; }
  .volume-tree-row small { font-size: 9px; }
  .condition-type-group > summary, .condition-item summary { font-size: 12px; }
  .condition-actions .condition-icon-action { width: 34px; height: 33px; padding: 7px; }
  .condition-actions .condition-icon-action img { width: 19px; height: 19px; }
  .thermal-note, .result-data-note { font-size: 10px; }
  .job-card strong, .result-run-card strong { font-size: 13px; }
  .job-card small { font-size: 11px; }
  .job-result-meta, .result-run-card small { font-size: 10px; }
  .worker-card strong { font-size: 12px; }
  .worker-card small { font-size: 10px; }
  .worker-card em, .worker-status-label { font-size: 9px; }
  .result-integrity { font-size: 9px; }

  .viewport-column { grid-template-rows: 68px 55px minmax(0, 1fr) 32px; }
  .workflow-nav button { grid-template-columns: 29px minmax(0, 1fr); padding: 11px 14px 10px; }
  .workflow-nav button > span { width: 28px; height: 28px; font-size: 11px; }
  .workflow-nav strong { font-size: 11px; }
  .workflow-nav small { font-size: 9px; }
  .viewport-toolbar { gap: 10px; padding: 8px 13px; }
  .tool-button { min-height: 37px; padding: 7px 11px; font-size: 12px; }
  .icon-tool { width: 36px; height: 36px; }
  .selection-pill, .mode-hint { font-size: 11px; }
  .view-cube-button { width: 42px; height: 37px; font-size: 10px; }
  kbd { font-size: 10px; }
  .viewport-statusbar { padding-inline: 13px; font-size: 10px; }
  .readiness-widget { grid-template-columns: 49px minmax(0, 1fr) auto; width: min(380px, calc(100% - 32px)); min-height: 68px; padding: 10px 12px; }
  .readiness-gauge { width: 45px; height: 45px; }
  .readiness-gauge b, .readiness-widget small, .readiness-widget > i { font-size: 10px; }
  .readiness-widget strong { font-size: 12px; }
  .field-legend { width: min(360px, calc(100% - 32px)); padding: 11px 13px 10px; }
  .legend-head { margin-bottom: 8px; font-size: 11px; }
  .legend-head small { font-size: 10px; }
  .legend-scale { height: 11px; }
  .legend-values { margin-top: 6px; font-size: 9px; }

  .inspector { grid-template-rows: 54px minmax(0, 1fr) auto; }
  .inspector-tab { height: 53px; padding-inline: 12px; font-size: 12px; }
  .inspector-tab span { min-width: 20px; height: 20px; font-size: 10px; }
  .inspector-section { padding: 20px; }
  .section-title-row h2 { font-size: 21px; }
  .section-copy { font-size: 12px; }
  .field-label { margin-top: 13px; font-size: 11px; }
  .input, .unit-input { min-height: 41px; font-size: 12px; }
  .input { padding: 9px 11px; }
  .unit-input input { height: 39px; padding: 9px 11px; font-size: 12px; }
  .unit-input em, .unit-select { font-size: 10px; }
  .value-grid label > span, .form-stack label > span { font-size: 10px; }
  .form-stack { gap: 13px; padding-top: 13px; }
  .conversion-preview { font-size: 11px; }
  .direction-actions .button { min-height: 40px; font-size: 12px; }
  .material-reference strong { font-size: 12px; }
  .material-reference small, .material-model-note, .mesh-refinement-preview small { font-size: 10px; }
  .material-reference > b { font-size: 9px; }
  .mesh-refinement-preview strong { font-size: 11px; }
  .mesh-cost-estimate strong { font-size: 10px; }
  .mesh-cost-estimate > small, .local-refinement-item small { font-size: 9px; }
  .local-refinement-item b { font-size: 11px; }
  .inspector-section details > summary, .filter-editor > summary { font-size: 12px; }
  .filter-editor { padding: 13px; }
  .inspector-footer { gap: 9px; padding: 13px; }
  .activity-entry strong, .validation-item strong, .validation-panel-footer strong { font-size: 12px; }
  .activity-entry small, .validation-item small, .validation-panel-footer small, .validation-panel-head p { font-size: 10px; }
  .validation-panel-head h2 { font-size: 21px; }
  .toast { min-width: 310px; padding: 14px 16px; font-size: 12px; }
}

@media (max-width: 1120px) {
  :root { --rail-w: 285px; --inspector-w: 310px; }
  .save-state { display: none; }
  .normalization-chip { display: none; }
  .workflow-nav button { padding-inline: 7px; }
  .workflow-nav small { display: none; }
  .workflow-nav button { grid-template-rows: 1fr; }
  .workflow-nav button > span { grid-row: 1; }
  .workflow-nav strong { align-self: center; }
}

.boundary-turbulence { margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.boundary-turbulence summary, .solver-observations summary { cursor: pointer; font-weight: 650; }
.boundary-turbulence .form-stack { margin-top: 12px; }
.solver-observations { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.solver-observations p { margin: 10px 0; font-size: .88em; line-height: 1.5; }
.observation-port { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.observation-port small { font-size: .82em; line-height: 1.4; }

@media (max-width: 850px) {
  html,
  body { overflow: auto; }
  .app-shell { --topbar-h: 106px; position: static; inset: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--topbar-h) 66vh auto auto; height: auto; min-height: 100vh; }
  .topbar { position: sticky; top: 0; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 56px 50px; }
  .top-cost-summary { display: none; }
  .brand-block { border-right: 0; padding-inline: 12px; }
  .project-crumbs { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
  .project-context-row { max-width: none; }
  .project-context-row .crumb-button { min-height: 40px; background: #edf3f4; }
  .project-context-row .project-save-button { width: 40px; height: 40px; }
  .project-menu { top: calc(100% + 4px); right: 12px; width: auto; max-width: 410px; }
  .topbar-actions { grid-column: 2; grid-row: 1; }
  .system-chip { display: none; }
  .topbar-actions .button-ghost { display: none; }
  .remote-user button { display: none; }
  .left-rail { grid-column: 1; grid-row: 3; grid-template-columns: 52px 1fr; min-height: 430px; border-top: 1px solid var(--line); }
  .viewport-column { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); grid-template-rows: 58px auto minmax(0, 1fr) 27px; }
  .viewport-toolbar { flex-wrap: wrap; }
  .orientation-menu { left: auto; right: 0; }
  .viewport-statusbar { overflow: hidden; }
  .empty-state { padding-bottom: 94px; }
  .workflow-nav { overflow-x: auto; }
  .workflow-nav button { min-width: 112px; }
  .readiness-widget { width: min(280px, calc(100% - 28px)); }
  .inspector { grid-column: 1; grid-row: 4; min-height: 560px; border-top: 1px solid var(--line); border-left: 0; }
}
