:root {
  --ux-bg: #f3f6f5;
  --ux-surface: #ffffff;
  --ux-surface-soft: #edf2f0;
  --ux-ink: #101817;
  --ux-muted: #60706c;
  --ux-faint: #87938f;
  --ux-line: #d8e1de;
  --ux-line-strong: #bcc9c5;
  --ux-brand: #176b5b;
  --ux-brand-dark: #0f4c41;
  --ux-found: #356b75;
  --ux-established: #2f6b4f;
  --ux-certified: #2458a6;
  --ux-refuted: #93424b;
  --ux-unresolved: #6d6087;
  --ux-shadow: 0 18px 48px rgba(20, 40, 35, .08);
  --ux-font: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body.florn-product {
  margin: 0;
  background: var(--ux-bg);
  color: var(--ux-ink);
  font-family: var(--ux-font);
  line-height: 1.45;
  letter-spacing: 0;
}

.florn-product *,
.florn-product *::before,
.florn-product *::after { box-sizing: border-box; }

.product-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  max-width: none;
  min-height: 62px;
  margin: 0;
  padding: 0 max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  align-items: center;
  gap: 28px;
  color: var(--ux-ink);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--ux-line);
  backdrop-filter: blur(12px);
}

.product-nav .brand-mark {
  justify-self: start;
  color: var(--ux-ink);
  font-size: 1.02rem;
  letter-spacing: .08em;
}

.product-nav .brand-o { color: var(--ux-brand); }

.product-nav-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-nav-link {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 6px;
  color: var(--ux-muted);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
}

.product-nav-link:hover,
.product-nav-link:focus-visible {
  color: var(--ux-ink);
  background: var(--ux-surface-soft);
}

.product-nav-link[aria-current="page"] {
  color: var(--ux-brand-dark);
  background: #e4efeb;
}

.product-nav-meta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.account-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--ux-line-strong);
  border-radius: 6px;
  background: var(--ux-surface);
  color: var(--ux-brand-dark);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: 0;
}

.account-nav-link:hover,
.account-nav-link:focus-visible {
  background: #e4efeb;
  color: var(--ux-brand-dark);
}

.account-nav-link.is-primary {
  background: var(--ux-brand-dark);
  border-color: var(--ux-brand-dark);
  color: #fff;
}

.account-nav-link.is-primary:hover,
.account-nav-link.is-primary:focus-visible {
  background: #0b3c34;
  border-color: #0b3c34;
  color: #fff;
}

.lang-select {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  color: var(--ux-faint);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.lang-select .lang-row {
  display: grid;
  grid-template-columns: 1.7em 8px 1.7em 8px 1.7em;
  align-items: center;
  justify-items: center;
}

.lang-select .lang-sep {
  opacity: .4;
  user-select: none;
}

.lang-select .lang-link,
.lang-select a {
  appearance: none;
  display: inline-block;
  width: 1.7em;
  text-align: center;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--ux-faint);
  font: inherit;
  font-weight: 500;
  letter-spacing: inherit;
  text-decoration: none;
  cursor: pointer;
}

.lang-select .lang-link.is-active,
.lang-select a[aria-current="true"] {
  color: var(--ux-muted);
  font-weight: 650;
}

.lang-select .lang-link:hover,
.lang-select a:hover,
.lang-select .lang-link:focus-visible,
.lang-select a:focus-visible {
  color: var(--ux-brand-dark);
}

.lang-select .lang-link:focus-visible,
.lang-select a:focus-visible {
  outline: 1px solid var(--ux-brand-dark);
  outline-offset: 3px;
}

.product-nav .lang-select { margin-left: 0; }

.florn-product main.product-main {
  width: min(1240px, calc(100% - 48px));
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 0 80px;
}

.florn-product .hidden { display: none !important; }

.product-back-link {
  display: flex;
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  max-width: 1240px;
  margin: 16px auto 0;
  padding: 0;
  color: var(--ux-muted);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 650;
  letter-spacing: 0;
}
.product-back-link::before {
  content: "←";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  color: var(--ux-brand-dark);
  background: #e4efeb;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1;
}
.product-back-link:hover,
.product-back-link:focus-visible {
  color: var(--ux-brand-dark);
}
.product-back-link:hover::before,
.product-back-link:focus-visible::before {
  background: #d7e8e2;
}
.florn-product .product-back-link.hidden { display: none !important; }

.submit-workspace {
  width: min(760px, 100%);
  margin: 28px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.submit-heading {
  margin: 0 0 8px;
  color: var(--ux-ink);
  font-size: 2.45rem;
  line-height: 1.08;
  font-weight: 680;
  letter-spacing: 0;
}

.submit-lead {
  max-width: 620px;
  margin: 0 0 28px;
  color: var(--ux-muted);
  font-size: 1.02rem;
}

.upload-surface {
  position: relative;
  min-height: 220px;
  padding: 36px 28px;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--ux-surface);
  border: 1px dashed var(--ux-line-strong);
  border-radius: 8px;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.upload-surface:hover,
.upload-surface:focus-within,
.upload-surface.is-dragging {
  background: #fbfdfc;
  border-color: var(--ux-brand);
  box-shadow: 0 0 0 3px rgba(23, 107, 91, .1);
}

.upload-surface input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0 !important;
  color: transparent !important;
  font-size: 0 !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer;
}
.upload-surface input[type="file"]::file-selector-button {
  display: none !important;
}

.upload-glyph {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: var(--ux-brand-dark);
  background: #e5f0ec;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
}

.upload-title {
  display: block;
  color: var(--ux-ink);
  font-size: 1.03rem;
  font-weight: 680;
}

.upload-file-name {
  display: block;
  max-width: 100%;
  margin-top: 7px;
  overflow-wrap: anywhere;
  color: var(--ux-brand-dark);
  font-size: .9rem;
  font-weight: 650;
}

.upload-formats {
  display: block;
  max-width: 580px;
  margin-top: 10px;
  color: var(--ux-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.upload-actions {
  margin-top: 18px;
  display: grid;
  gap: 13px;
}

.access-settings {
  background: transparent;
  border: 0;
}

.access-settings > summary {
  width: max-content;
  cursor: pointer;
  color: var(--ux-muted);
  font-size: .82rem;
  font-weight: 620;
}

.access-settings-body {
  margin-top: 10px;
  padding: 16px;
  background: var(--ux-surface);
  border: 1px solid var(--ux-line);
  border-radius: 6px;
}

.florn-product label {
  color: var(--ux-ink);
  font-size: .82rem;
  font-weight: 650;
}

.florn-product label .hint {
  color: var(--ux-muted);
  font-weight: 450;
}

.florn-product input[type="password"],
.florn-product input[type="email"],
.florn-product input[type="text"],
.florn-product input[type="search"],
.florn-product select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ux-ink);
  background: var(--ux-surface);
  border: 1px solid var(--ux-line-strong);
  border-radius: 6px;
  font: inherit;
  font-size: .88rem;
}

.florn-product input:focus-visible,
.florn-product select:focus-visible,
.florn-product button:focus-visible,
.florn-product a:focus-visible,
.florn-product summary:focus-visible {
  outline: 3px solid rgba(36, 88, 166, .22);
  outline-offset: 2px;
}

.florn-product .terms-row {
  margin: 0;
  color: var(--ux-muted);
  font-size: .82rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.florn-product .terms-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: .2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--ux-brand-dark);
}

.florn-product .terms-row label { color: var(--ux-muted) !important; }
.florn-product .terms-row a { color: var(--ux-brand-dark); }

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: var(--ux-surface, #fff);
  color: var(--ux-ink, #101817);
  border-top: 1px solid var(--ux-line-strong, #bcc9c5);
  box-shadow: 0 -10px 28px rgba(16, 24, 23, .1);
}

.cookie-banner-text {
  margin: 0;
  max-width: 58rem;
  font-size: .84rem;
  line-height: 1.45;
  color: var(--ux-muted, #60706c);
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}

.cookie-banner-refuse {
  min-height: 48px;
  padding: 12px 18px;
  background: transparent;
  color: var(--ux-brand-dark, #0f4c41);
  border: 1px solid var(--ux-brand-dark, #0f4c41);
  border-radius: 6px;
  font: inherit;
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-banner-refuse:hover { background: rgba(15, 76, 65, .06); }

.cookie-banner .product-primary-button {
  display: inline-flex;
  align-items: center;
  margin: 0;
  width: auto;
}

body.has-cookie-banner { padding-bottom: 11rem; }

@media (max-width: 720px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }
  .cookie-banner-actions { justify-content: flex-end; }
}

.product-primary-button,
.florn-product #btnSubmit,
a.product-primary-button {
  min-height: 48px;
  padding: 12px 18px;
  color: #fff;
  background: var(--ux-brand-dark);
  border: 1px solid var(--ux-brand-dark);
  border-radius: 6px;
  font: inherit;
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

a.product-primary-button,
a.product-primary-button:link,
a.product-primary-button:visited,
a.product-primary-button:hover,
a.product-primary-button:active,
a.product-primary-button:focus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
}

.product-primary-button:hover,
.florn-product #btnSubmit:hover { background: #0b3c34; }
.florn-product #btnSubmit:active { transform: translateY(1px); }
.florn-product #btnSubmit:disabled { opacity: .55; cursor: wait; }

.florn-product #submitStatus {
  min-height: 20px;
  margin-top: 10px;
  color: var(--ux-muted);
  font-size: .84rem;
}

.product-progress {
  margin-top: 18px;
  padding: 18px;
  background: var(--ux-surface);
  border: 1px solid var(--ux-line);
  border-radius: 7px;
}

.product-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ux-ink);
  font-size: .86rem;
  font-weight: 650;
}

.product-progress-track {
  height: 5px;
  margin-top: 11px;
  overflow: hidden;
  background: var(--ux-surface-soft);
  border-radius: 5px;
}

.product-progress-fill {
  height: 100%;
  width: var(--progress, 12%);
  background: var(--ux-brand);
  transition: width .3s ease;
}

.product-progress.is-indeterminate .product-progress-fill {
  width: 34%;
  animation: ux-progress 1.4s ease-in-out infinite;
}

@keyframes ux-progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(310%); }
}

.florn-product #progressWrap,
.florn-product #runProgressMeta,
.florn-product #ingestionPreview,
.florn-product #componentBar { display: none !important; }

.has-product-result .submit-workspace { display: none; }

body.has-product-result #resultsCompactSummary,
body.has-product-result #emptyVerdictsBanner {
  display: none !important;
}

.florn-product #viewToggle { display: none !important; }

.result-workspace {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.product-result { display: grid; gap: 30px; }

[data-result-mode-content="overview"] {
  display: grid;
  gap: 30px;
}

.result-mode-nav {
  position: sticky;
  top: 62px;
  z-index: 24;
  min-width: 0;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  backdrop-filter: blur(12px);
}

.result-mode-tab {
  appearance: none;
  min-height: 36px;
  margin: 0;
  padding: 8px 13px;
  flex: 0 0 auto;
  color: var(--ux-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

.result-mode-tab:hover,
.result-mode-tab:focus-visible {
  color: var(--ux-ink);
  background: var(--ux-surface-soft);
}

.result-mode-tab.is-active {
  color: var(--ux-brand-dark);
  background: #e4efeb;
  border-color: #c4d9d2;
}

.result-mode-meta {
  margin-left: auto;
  padding: 0 8px;
  flex: 0 0 auto;
  color: var(--ux-muted);
  font-size: .76rem;
}

body[data-result-mode="overview"] [data-result-mode-content="explore"],
body[data-result-mode="explore"] [data-result-mode-content="overview"],
body[data-result-mode="map"] .product-result [data-result-mode-content],
body[data-result-mode="forensic"] .product-result [data-result-mode-content] {
  display: none;
}

body[data-result-mode="map"] #askFlornMount {
  display: none !important;
}

.map-entry-panel {
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: #f7faf9;
  border: 1px solid var(--ux-line);
  border-radius: 8px;
}

.map-entry-panel p {
  margin: 6px 0 0;
  color: var(--ux-muted);
  font-size: .86rem;
}

.map-result-panel {
  margin-top: 22px;
  background: var(--ux-surface);
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  box-shadow: var(--ux-shadow);
}

.map-result-head {
  padding: 22px 24px 14px;
  border-bottom: 1px solid var(--ux-line);
}

.map-result-head h2 {
  margin: 0;
  color: var(--ux-ink);
  font-size: 1.24rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.map-result-head p {
  margin: 6px 0 0;
  color: var(--ux-muted);
  font-size: .84rem;
}

.florn-product #graphView {
  margin: 0;
  min-height: 720px;
  color: #17211f;
  background:
    linear-gradient(rgba(18, 64, 58, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 64, 58, .035) 1px, transparent 1px),
    #f8fbfa;
  background-size: 34px 34px;
  border: 0;
  border-radius: 0 0 8px 8px;
}

.florn-product .florn-map {
  min-height: 720px;
  color: #17211f;
  font-family: var(--ux-font);
}

.florn-product .florn-map-top {
  padding: 14px 16px;
  gap: 14px;
  background: rgba(248, 251, 250, .96);
  border-bottom: 1px solid var(--ux-line);
  backdrop-filter: blur(10px);
}

.florn-product .florn-map-brand,
.florn-product .florn-map-panel-title,
.florn-product .florn-map-section {
  color: var(--ux-muted);
  letter-spacing: .08em;
}

.florn-product .florn-map-panel-title::before {
  background: var(--ux-brand);
  box-shadow: none;
}

.florn-map-tools {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.florn-map-search {
  width: min(320px, 34vw);
  margin: 0;
}

.florn-product .florn-map-search input {
  min-height: 36px;
  padding: 7px 10px;
  font-size: .8rem;
  background: #fff;
}

.florn-map-show-all,
.florn-path-button {
  min-height: 36px;
  margin: 0;
  padding: 7px 10px;
  color: var(--ux-ink);
  background: #fff;
  border: 1px solid var(--ux-line-strong);
  border-radius: 6px;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
}

.florn-product .florn-map-runstat {
  color: var(--ux-brand-dark);
  background: #e4efeb;
  border: 1px solid #c4d9d2;
  border-radius: 6px;
  letter-spacing: .06em;
}

.florn-product .florn-map-body {
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.florn-product .florn-map-left {
  background: rgba(255, 255, 255, .94);
  border: 0;
  border-right: 1px solid var(--ux-line);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.florn-product .florn-map-main {
  min-height: 640px;
}

.florn-product .florn-map-canvas-wrap {
  min-height: 640px;
  padding: 10px 10px 86px;
}

.florn-product .florn-map-canvas {
  min-height: 560px;
}

.florn-product .florn-map-right {
  top: 72px;
  right: 16px;
  width: min(440px, 42vw);
  color: var(--ux-ink);
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  box-shadow: -12px 16px 48px rgba(20, 40, 35, .14);
  backdrop-filter: blur(14px);
}

.florn-product .florn-map-detail-close {
  color: var(--ux-muted);
  background: #fff;
  border: 1px solid var(--ux-line);
  border-radius: 50%;
}

.florn-product .florn-detail-heading { color: var(--ux-ink); font-size: 1.05rem; }
.florn-product .florn-detail-sub,
.florn-product .florn-detail-muted { color: var(--ux-muted); }

.florn-detail-section {
  margin: 15px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--ux-line);
}

.florn-detail-section h3 {
  margin: 0 0 6px;
  color: var(--ux-muted);
  font-size: .68rem;
  font-weight: 780;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.florn-detail-section p {
  margin: 0;
  color: #33423f;
  font-size: .84rem;
  line-height: 1.5;
}

.florn-detail-section.is-next-action {
  padding: 14px;
  background: #e7f0ed;
  border: 1px solid #c4d9d2;
  border-radius: 7px;
}

.florn-detail-section.is-certificate {
  padding: 14px;
  background: #eef4ff;
  border: 1px solid #cad8f2;
  border-radius: 7px;
}

.florn-detail-section.is-worlds {
  padding: 14px;
  background: #f6f4fb;
  border: 1px solid #ddd6ee;
  border-radius: 7px;
}

.florn-world-list,
.florn-node-relation-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.florn-world-list li,
.florn-node-relation-list li {
  padding: 8px 9px;
  color: #33423f;
  background: #f5f8f7;
  border: 1px solid var(--ux-line);
  border-radius: 6px;
  font-size: .78rem;
  line-height: 1.35;
}

.florn-node-relation-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.florn-node-relation-list b {
  color: var(--ux-muted);
  font-size: .63rem;
  text-transform: uppercase;
}

.florn-node-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 2px;
}

.florn-node-actions button {
  min-height: 34px;
  margin: 0;
  padding: 7px 10px;
  color: var(--ux-ink);
  background: #fff;
  border: 1px solid var(--ux-line-strong);
  border-radius: 6px;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  cursor: pointer;
}

.florn-product .florn-detail-grid { grid-template-columns: 1fr; margin-top: 14px; }
.florn-product .florn-detail-card {
  background: #f5f8f7;
  border: 1px solid var(--ux-line);
  border-radius: 6px;
}
.florn-product .florn-detail-card .label { color: var(--ux-muted); }
.florn-product .florn-detail-card .value { color: var(--ux-ink); font-size: .85rem; }

.florn-status-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.florn-status-filter {
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ux-muted);
  background: #fff;
  border: 1px solid var(--ux-line);
  border-radius: 6px;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  cursor: pointer;
}

.florn-status-filter span,
.florn-product .florn-filter-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.florn-status-filter b,
.florn-product .florn-filter-count {
  flex: 0 0 auto;
}

.florn-status-filter.is-active {
  color: var(--ux-brand-dark);
  background: #e4efeb;
  border-color: #c4d9d2;
}

.florn-product .florn-filter-row {
  grid-template-columns: 18px minmax(0, 1fr) auto;
  margin: 6px 0;
  background: #fff;
  border: 1px solid var(--ux-line);
  border-radius: 6px;
  color: var(--ux-ink);
}

.florn-product .florn-filter-count { color: var(--ux-muted); }

.florn-path-controls {
  display: grid;
  gap: 8px;
}

.florn-path-controls label {
  margin: 0;
  display: grid;
  gap: 5px;
}

.florn-path-result {
  min-height: 18px;
  color: var(--ux-muted);
  font-size: .76rem;
  line-height: 1.35;
}

.florn-product .florn-map-legend {
  left: 12px;
  right: 12px;
  bottom: 12px;
  justify-content: flex-start;
  color: #33423f;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  text-transform: none;
  letter-spacing: 0;
}

.florn-map-legend .lg-status-certified { color: #0f9f6e; }
.florn-map-legend .lg-status-certified i { border-top-width: 3px; border-top-style: solid; }
.florn-map-legend .lg-status-unresolved { color: #7c8da8; }
.florn-map-legend .lg-status-unresolved i { border-top-style: dashed; }
.florn-map-legend .lg-status-refuted { color: #a94452; }
.florn-map-legend .lg-status-refuted i { border-top-style: dashed; }
.florn-map-legend .lg-association { color: #71717a; }
.florn-map-legend .lg-association i { border-top-style: dotted; }
.florn-map-legend .lg-directional_response { color: #0ea5e9; }
.florn-map-legend .lg-directional_response i { border-top-width: 3px; border-top-style: dashed; }
.florn-map-legend .lg-structural_relation,
.florn-map-legend .lg-functional_relation,
.florn-map-legend .lg-col_fd_certified { color: #0f766e; }
.florn-map-legend .lg-causal_certified { color: #0f9f6e; }
.florn-map-legend .lg-tie_certified { color: #3b82f6; }

.florn-product .florn-map-reset {
  color: var(--ux-ink);
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--ux-line);
}

.florn-product .florn-map-reset:hover,
.florn-map-show-all:hover,
.florn-path-button:hover,
.florn-node-actions button:hover {
  color: var(--ux-brand-dark);
  border-color: var(--ux-brand);
}

.florn-product .florn-map-empty {
  color: var(--ux-muted);
  font-size: .95rem;
}

.florn-product .florn-map-canvas svg:focus-visible,
.florn-product .florn-edge:focus-visible .florn-edge-line,
.florn-product .florn-node:focus-visible circle {
  outline: none;
  filter: drop-shadow(0 0 0 rgba(0,0,0,0));
}

.florn-product .florn-edge:focus-visible .florn-edge-line,
.florn-product .florn-edge.is-selected .florn-edge-line,
.florn-product .florn-edge.is-path .florn-edge-line {
  stroke-width: 3.4px !important;
}

.florn-product .florn-node.is-selected circle,
.florn-product .florn-node.is-focus-node circle,
.florn-product .florn-node:focus-visible circle {
  stroke-width: 3px !important;
}

.florn-product .florn-node-label {
  fill: #17211f !important;
  stroke: rgba(248, 251, 250, .96) !important;
  letter-spacing: 0 !important;
}

.run-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.run-context-main { min-width: 0; }

.run-kicker {
  margin: 0 0 5px;
  color: var(--ux-brand-dark);
  font-size: .72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.run-file {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ux-ink);
  font-size: 1.13rem;
  line-height: 1.25;
  font-weight: 680;
  letter-spacing: 0;
}

.run-meta-line {
  margin: 6px 0 0;
  color: var(--ux-muted);
  font-size: .84rem;
}

.quiet-button,
.product-action-button,
.explore-filter {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  min-height: 38px;
  padding: 8px 12px;
  color: var(--ux-ink);
  background: var(--ux-surface);
  border: 1px solid var(--ux-line-strong);
  border-radius: 6px;
  box-shadow: none;
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a.product-action-button,
a.product-action-button:link,
a.product-action-button:visited,
a.product-action-button:active,
a.product-action-button:focus {
  text-decoration: none;
}

.quiet-button:hover,
.product-action-button:hover {
  border-color: var(--ux-brand);
  color: var(--ux-brand-dark);
  text-decoration: none;
}

.executive-band {
  position: relative;
  overflow: hidden;
  padding: 32px 34px 26px;
  color: var(--ux-ink);
  background: var(--ux-surface);
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  box-shadow: var(--ux-shadow);
}

.executive-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) minmax(0, 2fr);
  gap: 42px;
  align-items: end;
}

.found-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ux-found);
  font-size: .75rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.status-symbol {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: currentColor;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .67rem;
  line-height: 1;
  font-weight: 800;
}

.found-total {
  margin: 7px 0 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.found-number {
  color: var(--ux-ink);
  font-size: 4.65rem;
  line-height: .94;
  font-weight: 720;
  letter-spacing: 0;
}

.found-copy {
  max-width: 130px;
  color: var(--ux-muted);
  font-size: .96rem;
  line-height: 1.25;
}

.epistemic-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  border-top: 1px solid var(--ux-line);
  border-bottom: 1px solid var(--ux-line);
}

.epistemic-metric {
  min-width: 0;
  padding: 15px 16px;
  border-right: 1px solid var(--ux-line);
}

.epistemic-metric:last-child { border-right: 0; }
.epistemic-metric strong { display: block; font-size: 1.55rem; line-height: 1; }
.epistemic-metric span { display: block; margin-top: 7px; color: var(--ux-muted); font-size: .74rem; font-weight: 680; }
.epistemic-metric[data-status="ESTABLISHED"] strong { color: var(--ux-established); }
.epistemic-metric[data-status="DIRECTIONAL"] strong { color: #0ea5e9; }
.epistemic-metric[data-status="EXACT"] strong { color: var(--ux-certified); }
.epistemic-metric[data-status="STRUCTURAL"] strong { color: var(--ux-muted); }
.epistemic-metric[data-status="EDGE"] strong { color: var(--ux-unresolved); }
.epistemic-metric[data-status="CAUSAL"] strong { color: #0f9f6e; }
.epistemic-metric[data-status="CERTIFIED"] strong { color: var(--ux-certified); }
.epistemic-metric[data-status="DISCOVERIES"] strong { color: var(--ux-established); }
.epistemic-metric[data-status="REFUTED"] strong { color: var(--ux-refuted); }
.epistemic-metric[data-status="UNRESOLVED"] strong { color: var(--ux-unresolved); }
.epistemic-metric[data-status="ESTABLISHED"]:not(.is-zero) { background: #f3f8f6; }
.epistemic-metric[data-status="ESTABLISHED"]:not(.is-zero) strong { font-size: 1.78rem; font-weight: 740; }
.epistemic-metric.is-zero strong { color: var(--ux-faint); font-size: 1.25rem; font-weight: 620; }
.epistemic-metric.is-zero span { color: var(--ux-faint); font-weight: 600; }

.executive-message {
  max-width: 880px;
  margin: 24px 0 0;
  color: var(--ux-ink);
  font-size: 1rem;
  line-height: 1.48;
}

.executive-message[data-overview-paragraph="true"] {
  white-space: normal;
}

.status-chip.algebraic-chip[data-algebraic-status="ALGEBRAICALLY_DERIVED"] {
  color: var(--ux-muted);
}

.status-chip.algebraic-chip[data-algebraic-status="INDEPENDENT_BASIS"] {
  color: var(--ux-found);
}

.finding-explanation.finding-meaning {
  white-space: normal;
}

.executive-boundary {
  margin: 8px 0 0;
  color: var(--ux-muted);
  font-size: .86rem;
}

.data-profile-note {
  margin: 8px 0 0;
  color: #4f645f;
  font-size: .82rem;
  line-height: 1.45;
}

.category-rail {
  margin: 24px -34px -26px;
  padding: 14px 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  overflow-x: visible;
  background: #f8faf9;
  border-top: 1px solid var(--ux-line);
}

.category-pill {
  flex: 0 1 auto;
  max-width: 100%;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ux-muted);
  background: var(--ux-surface);
  border: 1px solid var(--ux-line);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 620;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.category-pill b { flex: 0 0 auto; color: var(--ux-ink); }

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

.scientific-overview-band .overview-block {
  margin-top: 22px;
}

.scientific-overview-band .overview-block h3 {
  margin: 0 0 10px;
  color: var(--ux-ink);
  font-size: 1.02rem;
  font-weight: 680;
}

.overview-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ux-ink);
  font-size: .92rem;
  line-height: 1.45;
}

.overview-list li + li { margin-top: 6px; }

.overview-view-all {
  margin: 22px 0 0;
}

.overview-top-findings {
  border: 1px solid var(--ux-line);
  border-radius: 8px;
}

.finding-meaning {
  margin-top: 8px;
}

.env-signature {
  margin: 10px 0 4px;
  padding: 10px 12px;
  border: 1px solid #d5ddd9;
  border-radius: 8px;
  background: #f7faf8;
}

.env-signature-scope,
.env-signature-label,
.env-signature-causal {
  margin: 0 0 6px;
  font-size: .9rem;
}

.env-signature-causal {
  margin-top: 8px;
  color: var(--ux-muted);
}

.env-signature-list {
  margin: 0 0 8px 1.1em;
  padding: 0;
}

.env-signature-block.env-simulated {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid #8a6d3b;
  background: #fbf6ea;
}

.env-signature-block.env-unresolved {
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid #7a7a7a;
  background: #f3f3f3;
}

.env-simulated-sub {
  margin: 4px 0 2px;
  font-size: .82rem;
  color: #6b5420;
}

.env-signature-label {
  font-weight: 600;
}

.relation-symbol {
  display: inline-block;
  min-width: 1.1em;
  margin-right: .35em;
  font-weight: 700;
}

.visual-kind-chip[data-visual-kind="CAUSAL"] {
  border-color: #c0392b;
}

.visual-kind-chip[data-visual-kind="DIRECTIONAL"],
.visual-kind-chip[data-visual-kind="DIRECTIONAL_STRUCTURAL"] {
  border-color: #1f6feb;
}

.finding-atomics {
  margin: 8px 0;
}

.finding-title {
  font-size: 1.05rem;
}

.finding-forensic .finding-support {
  color: var(--ux-muted, #6b7a93);
}

.finding-forensic {
  margin-top: 10px;
  color: var(--ux-muted);
  font-size: .82rem;
}

.finding-forensic summary {
  cursor: pointer;
  font-weight: 650;
}

.all-results-anchor { margin-top: 18px; }

.executive-band + .scientific-results-section { margin-top: -10px; }

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-kicker {
  margin: 0 0 5px;
  color: var(--ux-muted);
  font-size: .7rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.product-section h2,
.product-section h3 {
  margin: 0;
  color: var(--ux-ink);
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 690;
  letter-spacing: 0;
}

.top-findings {
  background: var(--ux-surface);
  border-top: 1px solid var(--ux-line-strong);
}

.scientific-results-section {
  overflow: hidden;
  background: var(--ux-surface);
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  box-shadow: var(--ux-shadow);
}

.scientific-results-section > .section-heading-row {
  margin: 0;
  padding: 22px 24px 18px;
  align-items: center;
}

.scientific-section-summary {
  margin: 6px 0 0;
  color: var(--ux-muted);
  font-size: .84rem;
  line-height: 1.4;
}

.certified-knowledge-section {
  background: linear-gradient(135deg, #f2fbf7 0%, #ffffff 62%);
  border-color: #89c9b1;
  border-left: 6px solid var(--ux-certified);
  box-shadow: 0 16px 34px rgba(20, 111, 78, .13);
}

.certified-knowledge-section .section-kicker,
.certified-knowledge-section h2 { color: var(--ux-certified); }

.refuted-results-section {
  background: linear-gradient(135deg, #fff6f7 0%, #ffffff 62%);
  border-color: #ddb0b7;
  border-left: 6px solid var(--ux-refuted);
}

.refuted-results-section .section-kicker,
.refuted-results-section h2 { color: var(--ux-refuted); }

.discovery-results-section {
  border-left: 4px solid var(--ux-established);
}

.unresolved-results-section {
  border-left: 4px solid var(--ux-unresolved);
}

.scientific-featured-list,
.discovery-findings,
.unresolved-findings {
  border-top: 1px solid var(--ux-line-strong);
}

.scientific-finding-card {
  min-height: 138px;
  padding: 22px 24px;
  grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
}

.scientific-finding-card.certified-finding-card {
  background: rgba(255, 255, 255, .78);
}

.scientific-finding-card.refuted-finding-card {
  background: rgba(255, 255, 255, .7);
}

.scientific-card-kind {
  color: var(--ux-ink);
  font-weight: 720;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.scientific-finding-card .finding-title {
  max-width: 920px;
  margin-top: 9px;
  font-size: 1.06rem;
}

.scientific-finding-card .finding-actions {
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  min-width: 0;
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid var(--ux-line);
}

.primary-knowledge-link {
  color: #fff;
  background: var(--ux-certified);
  border-color: var(--ux-certified);
  text-decoration: none;
}

.primary-knowledge-link:hover {
  color: #fff;
  background: var(--ux-brand-dark);
  border-color: var(--ux-brand-dark);
}

.finding-row {
  min-height: 112px;
  padding: 18px 10px 18px 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(140px, auto);
  gap: 14px;
  align-items: start;
  background: var(--ux-surface);
  border-bottom: 1px solid var(--ux-line);
}

/* The featured card has no numeric-rank cell. This selector deliberately
   follows .finding-row so the legacy three-column discovery grid cannot win. */
.finding-row.scientific-finding-card {
  grid-template-columns: minmax(0, 1fr);
  padding: 22px 24px;
}

.finding-rank {
  padding-top: 3px;
  color: var(--ux-faint);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.finding-body { min-width: 0; }
.finding-title { margin: 6px 0 5px; color: var(--ux-ink); font-size: .98rem; font-weight: 680; overflow-wrap: anywhere; }
.finding-explanation { margin: 0; color: var(--ux-muted); font-size: .84rem; line-height: 1.45; }
.finding-support { margin: 8px 0 0; color: var(--ux-faint); font-size: .76rem; }

.next-step-block {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  background: var(--ux-bg, #f7f7f5);
}
.next-step-block[data-tone="complete"] {
  background: #eef7f2;
  border-color: #b7d8c6;
}
.next-step-block[data-tone="complete"] > summary {
  color: #1f6b45;
}
.next-step-block[data-tone="frontier"] {
  background: #f4f4f2;
  border-color: var(--ux-line);
}
.next-step-block[data-tone="blocked"] {
  background: #f7f4ee;
}
.next-step-block > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ux-muted);
  font-size: .78rem;
  line-height: 1.4;
}
.next-step-block > summary::-webkit-details-marker { display: none; }
.next-step-why, .next-step-next {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.next-step-block[open] .next-step-why,
.next-step-block[open] .next-step-next {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.status-chip {
  width: auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  color: var(--ux-found);
  font-size: .68rem;
  line-height: 1.2;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: normal;
  overflow-wrap: anywhere;
}

.status-chip[data-status="ESTABLISHED"] { color: var(--ux-established); }
.status-chip[data-status="CERTIFIED"] { color: var(--ux-certified); }
.status-chip[data-status="REFUTED"] { color: var(--ux-refuted); }
.status-chip[data-status="UNRESOLVED"] { color: var(--ux-unresolved); }
.layer-chip[data-layer="DIRECTIONAL_RESPONSE"] { color: #0ea5e9; }
.layer-chip[data-layer="EXACT_FACT"] { color: var(--ux-certified); }
.layer-chip[data-layer="CAUSAL_RELATION_ESTABLISHED"] { color: #0f9f6e; }
.layer-chip[data-layer="EDGE_HYPOTHESIS"] { color: var(--ux-unresolved); }
.authority-chip[data-authority="CAUSALLY_ESTABLISHED"] { color: #0f9f6e; }
.authority-chip[data-authority="CERTIFIED_NONCAUSAL"] { color: var(--ux-certified); }
.authority-chip[data-authority="CAUSAL_HYPOTHESIS"] { color: var(--ux-unresolved); }
.authority-chip[data-authority="EXACT"] { color: var(--ux-certified); }
.authority-chip[data-authority="SUPPORTED"],
.authority-chip[data-authority="OBSERVED"] { color: #0ea5e9; }
.status-chip .status-symbol { width: 17px; height: 17px; font-size: .6rem; }

.finding-actions {
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.florn-product .finding-actions .product-action-button,
.product-action-button {
  min-height: 34px;
  margin: 0;
  padding: 7px 10px;
  font-size: .76rem;
}

.decision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 22px;
  align-items: stretch;
}

.decision-grid-single { grid-template-columns: 1fr; }

.next-action-panel {
  padding: 25px 26px;
  background: #e7f0ed;
  border-left: 4px solid var(--ux-brand);
  border-radius: 0 7px 7px 0;
}

.next-action-class {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ux-brand-dark);
  font-size: .7rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.next-action-panel h2 { margin-top: 10px; font-size: 1.22rem; }
.next-action-copy { margin: 8px 0 0; color: #34524a; font-size: .88rem; line-height: 1.5; }

.next-action-facts {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.next-action-fact b { display: block; margin-bottom: 5px; color: var(--ux-brand-dark); font-size: .67rem; text-transform: uppercase; letter-spacing: .06em; }
.next-action-fact span { display: block; color: #34524a; font-size: .8rem; line-height: 1.4; }

.knowledge-reuse-panel,
.boundary-panel {
  min-height: 100%;
  padding: 24px;
  background: var(--ux-surface);
  border: 1px solid var(--ux-line);
  border-radius: 7px;
}

.knowledge-reuse-panel h3,
.boundary-panel h3 { margin-top: 10px; }
.knowledge-reuse-panel p,
.boundary-panel p { margin: 8px 0 0; color: var(--ux-muted); font-size: .84rem; line-height: 1.5; }

.knowledge-count-link {
  color: var(--ux-certified);
  font-weight: 720;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.analysis-path {
  padding: 22px 24px;
  background: var(--ux-surface);
  border: 1px solid var(--ux-line);
  border-radius: 7px;
}

.analysis-path-list {
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  list-style: none;
  counter-reset: ux-stage;
}

.analysis-path-list li {
  position: relative;
  min-height: 70px;
  padding: 28px 14px 0 0;
  color: var(--ux-muted);
  font-size: .75rem;
  line-height: 1.35;
  counter-increment: ux-stage;
}

.analysis-path-list li::before {
  content: counter(ux-stage);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: var(--ux-brand-dark);
  background: #e2eeea;
  border: 1px solid #b7d0c8;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 750;
}

.analysis-path-list li::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 21px;
  right: 0;
  height: 1px;
  background: var(--ux-line);
}

.analysis-path-list li:last-child::after { display: none; }

.explore-panel {
  padding-top: 4px;
}

.explore-toolbar {
  margin: 15px 0 12px;
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(170px, .6fr) minmax(150px, .5fr);
  gap: 10px;
}

.explore-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  overflow-x: visible;
  padding-bottom: 4px;
}

.explore-filter {
  flex: 0 1 auto;
  min-height: 34px;
  min-width: 0;
  max-width: 100%;
  padding: 6px 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
  color: var(--ux-muted);
  background: transparent;
  border-color: transparent;
}
.explore-filter:hover { color: var(--ux-ink); background: var(--ux-surface); }
.explore-filter.is-active { color: var(--ux-brand-dark); background: #e4efeb; border-color: #c4d9d2; }

.explore-results-meta { margin: 0 0 6px; color: var(--ux-muted); font-size: .78rem; }
.explore-list { background: var(--ux-surface); border-top: 1px solid var(--ux-line-strong); }
.explore-list .finding-row { min-height: 96px; }

.product-empty {
  padding: 38px 28px;
  text-align: center;
  background: var(--ux-surface);
  border: 1px solid var(--ux-line);
  border-radius: 8px;
}

.product-empty .status-symbol { margin: 0 auto 14px; width: 30px; height: 30px; }
.product-empty h2 { margin: 0; color: var(--ux-ink); font-size: 1.35rem; }
.product-empty p { max-width: 580px; margin: 10px auto 0; color: var(--ux-muted); font-size: .9rem; }

.forensic-workspace {
  margin-top: 6px;
  background: var(--ux-surface);
  border: 1px solid var(--ux-line);
  border-radius: 7px;
}

.forensic-workspace > summary {
  padding: 15px 18px;
  cursor: pointer;
  color: var(--ux-muted);
  font-size: .82rem;
  font-weight: 650;
}

.forensic-body { padding: 0 18px 18px; }
.forensic-body .view-toggle { margin-top: 8px; }

.florn-product #exportActions {
  justify-content: flex-end;
  margin: -12px 0 0 !important;
}

.florn-product #exportActions button {
  min-height: 36px;
  padding: 8px 11px;
  color: var(--ux-ink);
  background: var(--ux-surface);
  border: 1px solid var(--ux-line-strong);
  border-radius: 6px;
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
}

.florn-product footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px;
  color: var(--ux-faint);
  font-size: .75rem;
  text-align: center;
}

.florn-product footer .copyright { margin-top: 6px; opacity: .72; }
.florn-product footer .footer-disambig {
  margin: 10px auto 0;
  max-width: 42rem;
  opacity: .68;
  font-size: .72rem;
  line-height: 1.45;
}
.florn-product footer .contact-line {
  margin-top: .45rem;
  font-size: .82rem;
}
.florn-product footer .contact-line a {
  color: var(--ux-brand-dark);
  text-decoration: none;
}
.florn-product footer .contact-line a:hover { text-decoration: underline; }

.finding-drawer {
  width: min(560px, 96vw);
  max-width: 560px;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  color: var(--ux-ink);
  background: var(--ux-surface);
  border: 0;
  border-left: 1px solid var(--ux-line);
  box-shadow: -18px 0 55px rgba(15, 31, 27, .16);
}

.finding-drawer::backdrop { background: rgba(16, 24, 23, .34); }
.finding-drawer[open] { animation: drawer-in .18s ease-out; }
@keyframes drawer-in { from { transform: translateX(28px); opacity: .6; } to { transform: translateX(0); opacity: 1; } }

.drawer-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--ux-line);
}

.drawer-head h2 { margin: 7px 0 0; font-size: 1.15rem; line-height: 1.3; letter-spacing: 0; }
.drawer-close { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; color: var(--ux-muted); background: transparent; border: 1px solid var(--ux-line); border-radius: 50%; font-size: 1.1rem; cursor: pointer; }
.drawer-close:hover { color: var(--ux-ink); border-color: var(--ux-line-strong); }
.drawer-body { padding: 24px 22px 52px; }
.drawer-level { padding: 0 0 23px; margin: 0 0 23px; border-bottom: 1px solid var(--ux-line); }
.drawer-level:last-child { border-bottom: 0; }
.drawer-level-label { color: var(--ux-muted); font-size: .67rem; font-weight: 760; text-transform: uppercase; letter-spacing: .08em; }
.drawer-level h3 { margin: 8px 0 0; font-size: .95rem; }
.drawer-level p { margin: 8px 0 0; color: var(--ux-muted); font-size: .86rem; line-height: 1.55; }
.evidence-facts { margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; }
.evidence-facts li { padding: 10px; background: var(--ux-surface-soft); border-radius: 5px; }
.evidence-facts b { display: block; color: var(--ux-ink); font-size: .88rem; }
.evidence-facts span { display: block; margin-top: 3px; color: var(--ux-muted); font-size: .7rem; }
.forensic-json { max-height: 260px; margin: 11px 0 0; padding: 13px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: #34413e; background: #f3f6f5; border: 1px solid var(--ux-line); border-radius: 5px; font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.knowledge-page-shell { display: grid; gap: 24px; }
.knowledge-header { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.knowledge-header h1 { margin: 0; font-size: 2.35rem; letter-spacing: 0; }
.knowledge-header p { max-width: 650px; margin: 8px 0 0; color: var(--ux-muted); }
.knowledge-query { padding: 20px; background: var(--ux-surface); border: 1px solid var(--ux-line); border-radius: 7px; }
.knowledge-query-grid { display: grid; grid-template-columns: 1.2fr 1.2fr .9fr .9fr .8fr; gap: 10px; }
.knowledge-field label { display: block; margin: 0 0 6px; color: var(--ux-muted); }
.knowledge-result { padding: 18px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; border-bottom: 1px solid var(--ux-line); }
.knowledge-result:first-child { border-top: 1px solid var(--ux-line); }
.knowledge-claim { font-size: .96rem; font-weight: 680; }
.knowledge-scope { margin-top: 6px; color: var(--ux-muted); font-size: .79rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  .product-nav { grid-template-columns: auto 1fr auto; gap: 12px; padding: 0 18px; }
  .product-nav-links { justify-self: center; }
  .florn-product main.product-main { width: min(100% - 32px, 1240px); padding-top: 26px; }
  .result-mode-nav { top: 58px; }
  .map-entry-panel { grid-template-columns: 1fr; }
  .florn-product .florn-map-top { align-items: flex-start; flex-direction: column; }
  .florn-map-tools { width: 100%; flex-wrap: wrap; }
  .florn-map-search { width: min(100%, 420px); }
  .florn-product .florn-map-body { grid-template-columns: 1fr; }
  .florn-product .florn-map-left {
    border-right: 0;
    border-bottom: 1px solid var(--ux-line);
  }
  .florn-product #graphView,
  .florn-product .florn-map { min-height: 680px; }
  .florn-product .florn-map-main { min-height: 500px; }
  .florn-product .florn-map-canvas-wrap { min-height: 500px; padding-bottom: 130px; }
  .florn-product .florn-map-right {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    max-width: none;
    max-height: min(86vh, 680px);
    border-radius: 14px 14px 0 0;
    transform: translateY(110%);
    display: none;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .florn-product .florn-map-right.active {
    display: flex;
    transform: translateY(0);
  }
  .executive-top { grid-template-columns: 1fr; gap: 25px; }
  .decision-grid { grid-template-columns: 1fr; }
  .explore-toolbar { grid-template-columns: 1fr 1fr; }
  .explore-toolbar input { grid-column: 1 / -1; }
  .knowledge-query-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .product-nav { min-height: 58px; grid-template-columns: auto 1fr; }
  .product-nav-links { order: 3; grid-column: 1 / -1; width: calc(100% + 36px); margin: 0 -18px; padding: 0 14px 8px; justify-content: flex-start; overflow-x: auto; }
  .product-nav-meta { justify-self: end; }
  .result-mode-nav { top: 94px; border-radius: 6px; }
  .result-mode-meta { display: none; }
  .map-result-head { padding: 18px 16px 12px; }
  .florn-product #graphView,
  .florn-product .florn-map { min-height: 720px; }
  .florn-status-filters { grid-template-columns: 1fr; }
  .florn-product .florn-map-runstat { width: 100%; text-align: center; }
  .florn-product .florn-map-legend { max-height: 112px; overflow: auto; justify-content: flex-start; }
  .florn-product main.product-main { width: min(100% - 24px, 1240px); padding: 22px 0 58px; }
  .product-back-link { width: min(100% - 24px, 1240px); margin-top: 12px; }
  .submit-workspace { margin-top: 12px; }
  .submit-heading { font-size: 1.8rem; }
  .upload-surface { min-height: 190px; padding: 28px 18px; }
  .run-context { align-items: flex-start; }
  .run-context .quiet-button { flex: 0 0 auto; }
  .executive-band { padding: 24px 18px 20px; }
  .found-number { font-size: 3.2rem; }
  .epistemic-metrics { grid-template-columns: repeat(2, 1fr); }
  .epistemic-metric:nth-child(2) { border-right: 0; }
  .epistemic-metric:nth-child(-n+2) { border-bottom: 1px solid var(--ux-line); }
  .category-rail { margin: 20px -18px -20px; padding: 12px 18px; }
  .finding-row { grid-template-columns: 32px minmax(0, 1fr); padding-right: 0; }
  .finding-actions { grid-column: 2; min-width: 0; justify-content: flex-start; }
  .scientific-results-section > .section-heading-row { padding: 19px 16px 15px; align-items: flex-start; }
  .scientific-finding-card { grid-template-columns: 1fr; padding: 19px 16px; }
  .scientific-finding-card .finding-actions { grid-column: 1; }
  .scientific-finding-card .primary-knowledge-link { width: 100%; text-align: center; }
  .next-action-panel { padding: 21px 18px; }
  .next-action-facts { grid-template-columns: 1fr; }
  .analysis-path-list { grid-template-columns: 1fr; }
  .analysis-path-list li { min-height: 54px; padding: 2px 0 18px 34px; }
  .analysis-path-list li::after { top: 21px; left: 10px; right: auto; width: 1px; height: calc(100% - 21px); }
  .explore-toolbar { grid-template-columns: 1fr; }
  .explore-toolbar input { grid-column: auto; }
  .finding-drawer { width: 100vw; max-width: 100vw; }
  .knowledge-header { display: block; }
  .knowledge-header h1 { font-size: 1.8rem; }
  .knowledge-query-grid { grid-template-columns: 1fr; }
  .knowledge-result { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.public-agent-shell { max-width: 880px; }
.public-agent-panel { margin-top: 0; }
.public-agent-field { display: grid; gap: 8px; margin: 0 0 16px; }
.public-agent-field span { color: var(--ux-muted, #60706c); font-size: .82rem; font-weight: 600; }
.public-agent-field select {
  min-height: 42px;
  padding: 8px 12px;
  color: var(--ux-ink, #101817);
  background: #fff;
  border: 1px solid var(--ux-line, #d8e1de);
  border-radius: 6px;
  font: inherit;
}
.public-agent-capability {
  margin: 0 0 12px;
  padding: 12px 14px;
  color: var(--ux-brand-dark, #0f4c41);
  background: #eef6f3;
  border: 1px solid var(--ux-line, #d8e1de);
  border-radius: 6px;
  font-weight: 600;
}
.public-agent-error { color: var(--ux-refuted, #93424b); }
.public-agent-summary { font-size: 1.05rem; line-height: 1.55; margin: 0 0 16px; }
.ask-florn-plan-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}
.ask-florn-plan-other {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--ux-line, #d8e1de);
  border-radius: 6px;
  background: #f4f7f6;
  font-size: 0.92rem;
}
.ask-florn-plan {
  margin: 0 0 14px;
  min-width: 0;
}
.ask-florn-next-step {
  margin: 12px 0 4px;
  padding: 14px 16px;
  border: 1px solid var(--ux-line, #d8e1de);
  border-radius: 8px;
  background: #f7fbf9;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ask-florn-next-step h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.ask-florn-next-step p { margin: 0 0 8px; line-height: 1.45; }
.ask-florn-next-step ol,
.ask-florn-next-step ul { margin: 0 0 8px; padding-left: 1.4rem; }
.ask-florn-plan-note,
.ask-florn-plan-invalidated { font-size: 0.92rem; }
.ask-florn-plan-invalidated { color: var(--ux-refuted, #93424b); }
.ask-florn-plan-outcome-label { font-weight: 650; }
.ask-florn-plan-compact { margin: 0 0 12px; }
.ask-florn-plan-compact a { color: inherit; }
.ask-florn-plan-forensic { margin-top: 8px; }
@media (max-width: 640px) {
  .ask-florn-next-step { padding: 12px; }
}
.public-agent-hypothetical {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0 0 12px;
  padding: 8px 10px;
  border: 1px solid rgba(180, 140, 40, 0.45);
  background: rgba(180, 140, 40, 0.12);
}
.public-agent-scenario { margin: 0 0 12px; padding: 10px 12px; border-left: 3px solid #b5812a; background: rgba(181, 129, 42, 0.12); }
.public-agent-section { margin: 0 0 10px; border: 1px solid var(--ux-line, #d8e1de); border-radius: 8px; background: #fff; }
.public-agent-section > summary {
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 650;
  color: var(--ux-ink, #101817);
}
.public-agent-section[open] > summary { border-bottom: 1px solid var(--ux-line, #d8e1de); }
.public-agent-section ul, .public-agent-section p { margin: 10px 14px 14px; }
.public-agent-followups { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.public-agent-followups button {
  border: 1px solid var(--ux-line, #d8e1de);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
}
.public-agent-tech { color: var(--ux-muted, #60706c); font-size: .85rem; }

html.public-agent-page,
body.public-agent-page {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  font-family: var(--ux-font, var(--font-sans, Inter, "Segoe UI", system-ui, sans-serif));
}
body.public-agent-page .product-main,
body.public-agent-page #publicAgentApp {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  padding: 0;
  overflow: hidden;
}
body.public-agent-page footer { display: none; }
.knowledge-page-shell.public-agent-thread-layout,
.public-agent-shell.public-agent-thread-layout,
.public-agent-thread-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  gap: 0;
  overflow: hidden;
}
.public-agent-shell.public-agent-thread-layout {
  max-width: none;
  margin: 0;
}
.public-agent-thread,
.public-agent-composer,
.public-agent-needs {
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.public-agent-compact-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px 18px;
  flex: 0 0 auto;
  z-index: 2;
  padding: 10px 20px 8px;
  background: var(--ux-bg, #f4f7f6);
  border-bottom: 1px solid var(--ux-line, #d8e1de);
}
.public-agent-brand {
  flex: 0 0 auto;
  color: var(--ux-ink, #101817);
  text-decoration: none;
}
.public-agent-brand:hover,
.public-agent-brand:focus-visible {
  color: var(--ux-ink, #101817);
}
.public-agent-run-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.public-agent-run-name {
  margin: 0;
  font-weight: 700;
  color: var(--ux-ink, #101817);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.public-agent-change-run {
  border: 0;
  background: none;
  color: var(--ux-brand-dark, #0f4c41);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.public-agent-run-picker { margin-top: 10px; }
.public-agent-thread {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.public-agent-turn { max-width: 100%; min-width: 0; }
.public-agent-turn-user { align-self: flex-end; width: min(100%, 560px); }
.public-agent-turn-florn { align-self: stretch; max-width: min(100%, 42rem); }
.public-agent-turn-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ux-muted, #60706c);
  margin: 0 0 6px;
}
.public-agent-bubble {
  min-width: 0;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ux-line, #d8e1de);
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
  font-family: var(--ux-font, var(--font-sans, Inter, "Segoe UI", system-ui, sans-serif));
}
.public-agent-turn-user .public-agent-bubble {
  background: #0f4c41;
  color: #fff;
  border-color: #0f4c41;
}
.public-agent-turn-user .public-agent-turn-label { color: rgba(255,255,255,.8); }
.public-agent-turn-user p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.public-agent-turn-florn .public-agent-summary { font-size: 1rem; margin: 0 0 10px; }
.public-agent-prose {
  font-family: inherit;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ux-ink, #101817);
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}
.public-agent-prose p {
  margin: 0 0 0.9em;
}
.public-agent-prose p:last-child,
.public-agent-prose ul:last-child {
  margin-bottom: 0;
}
.public-agent-prose ul {
  margin: 0 0 0.95em;
  padding: 0 0 0 1.2em;
}
.public-agent-prose li {
  margin: 0 0 0.45em;
  padding-left: 0.15em;
}
.public-agent-prose li:last-child { margin-bottom: 0; }
.public-agent-status-line {
  margin: 0.95em 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ux-surface-soft, #edf2f0);
  color: var(--ux-muted, #60706c);
  font-size: 0.9rem;
  line-height: 1.45;
}
.public-agent-forensic-offer {
  margin: 1em 0 0;
  font-size: 0.9rem;
  color: var(--ux-muted, #60706c);
}
.public-agent-exact-wrap { overflow-x: auto; margin: 0 0 12px; }
.public-agent-exact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
}
.public-agent-exact-table th,
.public-agent-exact-table td {
  border: 1px solid var(--ux-line, #d8e1de);
  padding: 6px 8px;
  text-align: left;
  white-space: nowrap;
}
.public-agent-exact-table th { background: #eef3f1; font-weight: 600; }
.public-agent-exact-note { margin: 0 0 8px; font-size: 0.95rem; }
.public-agent-exact-page { margin: 6px 0 0; font-size: 0.85rem; color: #4a5d58; }
.public-agent-exact-pre {
  margin: 0 0 12px;
  padding: 10px 12px;
  overflow-x: hidden;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  background: #fff;
  border: 1px solid var(--ux-line, #d8e1de);
  border-radius: 8px;
}
.public-agent-composer {
  position: relative;
  flex: 0 0 auto;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--ux-bg, #f4f7f6);
  border-top: 1px solid var(--ux-line, #d8e1de);
}
.public-agent-needs {
  flex: 0 0 auto;
  margin: 0 16px 8px;
  padding: 12px 14px;
  border: 1px solid var(--ux-line, #d8e1de);
  border-radius: 10px;
  background: #fff;
}
.public-agent-need-actions,
.autonomy-need-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.public-agent-file-chip {
  align-self: center;
  font-size: 0.8rem;
  color: var(--ux-muted, #4b5c57);
}
.public-agent-evidence {
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--ux-accent, #1f6b57);
  background: #f7fbf9;
}
.public-agent-composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  resize: none;
  padding: 10px 12px;
  border: 1px solid var(--ux-line, #d8e1de);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  grid-column: 1 / -1;
}
.public-agent-composer .product-primary-button { white-space: nowrap; }

#askFlornMount {
  width: min(760px, 100%);
  margin: 28px auto 0;
}

body.has-product-result #askFlornMount {
  width: 100%;
  margin: 30px 0 0;
}

.ask-florn-card {
  padding: 22px 24px 20px;
  color: var(--ux-ink);
  background: var(--ux-surface);
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  box-shadow: var(--ux-shadow);
}

.ask-florn-card h2 {
  margin: 0 0 6px;
  color: var(--ux-ink);
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 690;
  letter-spacing: 0;
  text-transform: none;
}

.ask-florn-lead {
  margin: 0 0 14px;
  color: var(--ux-muted);
  font-size: .84rem;
}

.ask-florn-card textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  margin: 0 0 14px;
  padding: 11px 12px;
  color: var(--ux-ink);
  background: var(--ux-surface);
  border: 1px solid var(--ux-line-strong);
  border-radius: 6px;
  font: inherit;
  font-size: .9rem;
  resize: vertical;
}

.ask-florn-card textarea:focus-visible {
  outline: 3px solid rgba(36, 88, 166, .22);
  outline-offset: 2px;
}

.ask-florn-needs {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: var(--ux-surface-soft);
  border: 1px solid var(--ux-line);
  border-radius: 6px;
}

.ask-florn-needs[hidden] {
  display: none;
}

.ask-florn-need-lead {
  margin: 0 0 6px;
  font-weight: 640;
}

.ask-florn-needs p {
  margin: 0 0 8px;
}

.ask-florn-file-row {
  min-height: 0;
  margin: 0 0 8px;
}

.ask-florn-file-chip {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
  color: var(--ux-muted);
}

.ask-florn-file-chip[hidden] {
  display: none;
}

.ask-florn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ask-florn-evidence-button,
.ask-florn-card .quiet-button {
  margin-top: 0;
}

.ask-florn-evidence-button:focus-visible,
.ask-florn-card .quiet-button:focus-visible,
.ask-florn-card .product-primary-button:focus-visible,
.ask-florn-needs .product-primary-button:focus-visible {
  outline: 3px solid rgba(36, 88, 166, .22);
  outline-offset: 2px;
}

.ask-florn-evidence-state {
  margin-bottom: 10px;
}

.ask-florn-evidence-verdict,
.ask-florn-auto-resume {
  font-weight: 640;
}

@media (max-width: 640px) {
  .ask-florn-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ask-florn-evidence-button,
  .ask-florn-card .product-primary-button,
  .ask-florn-needs .product-primary-button {
    width: 100%;
  }
}

.ask-florn-card .product-primary-button,
.ask-florn-card .product-action-button {
  margin-top: 0;
}

.ask-florn-answer {
  margin: 14px 0 0;
  padding: 14px 16px;
  color: var(--ux-ink);
  background: var(--ux-surface-soft);
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  font-family: var(--ux-font, var(--font-sans, Inter, "Segoe UI", system-ui, sans-serif));
  font-size: 1rem;
  line-height: 1.65;
}

.ask-florn-answer:empty {
  display: none;
}
.ask-florn-agent-answer {
  max-width: 100%;
  overflow-wrap: break-word;
}
.ask-florn-agent-answer p {
  margin: 0 0 0.85em;
}
.ask-florn-agent-answer p:last-child { margin-bottom: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  color: transparent !important;
}
.visually-hidden::file-selector-button,
input.florn-native-file-hidden::file-selector-button {
  display: none !important;
}
@media (max-width: 720px) {
  .public-agent-thread-layout { max-width: none; }
  .public-agent-composer { grid-template-columns: 1fr 1fr; }
  .public-agent-composer textarea { grid-column: 1 / -1; }
  .public-agent-composer .product-primary-button { width: 100%; }
  html.public-agent-page,
  body.public-agent-page,
  body.public-agent-page .product-main,
  body.public-agent-page #publicAgentApp {
    min-height: 100dvh;
    max-height: 100dvh;
    height: 100dvh;
  }
}

/* Keep Pourquoi / Ask FLORN / knowledge actions on one baseline. */
body.florn-product .finding-actions {
  display: flex;
  align-items: stretch;
  gap: 7px;
}
body.florn-product .finding-actions .product-action-button,
body.florn-product .finding-actions a.product-action-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--ux-ink);
  background: var(--ux-surface);
  border: 1px solid var(--ux-line-strong);
  border-radius: 6px;
  box-shadow: none;
  font: inherit;
  font-size: .76rem;
  font-weight: 650;
  line-height: 1.15;
  text-decoration: none;
  vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
}
body.florn-product .finding-actions a.product-action-button:link,
body.florn-product .finding-actions a.product-action-button:visited,
body.florn-product .finding-actions a.product-action-button:hover,
body.florn-product .finding-actions a.product-action-button:active,
body.florn-product .finding-actions a.product-action-button:focus {
  text-decoration: none;
  box-shadow: none;
}
body.florn-product .finding-actions .product-action-button:hover,
body.florn-product .finding-actions a.product-action-button:hover {
  border-color: var(--ux-brand);
  color: var(--ux-brand-dark);
  background: var(--ux-surface);
  text-decoration: none;
}
body.florn-product .finding-actions .primary-knowledge-link,
body.florn-product .finding-actions a.primary-knowledge-link {
  color: #fff;
  background: var(--ux-certified);
  border-color: var(--ux-certified);
}
body.florn-product .finding-actions .primary-knowledge-link:hover,
body.florn-product .finding-actions a.primary-knowledge-link:hover {
  color: #fff;
  background: var(--ux-brand-dark);
  border-color: var(--ux-brand-dark);
}

.home-page .submit-workspace { margin-top: 12px; }
.home-page .ask-florn-card { margin-top: 16px; }
.home-page .ask-florn-card h2 { margin: 0 0 8px; }
.home-page .ask-florn-card .ask-florn-lead { margin: 0 0 8px; }
.home-page .ask-florn-card .ask-florn-lead:last-child { margin-bottom: 0; }
.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 28px;
}
.home-actions-inline { margin: 14px 0 0; }
.home-page .home-policy { margin: 28px 0 8px; font-size: .86rem; }
.home-terms { margin: 0; }
.home-terms a {
  color: var(--ux-brand-dark);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 650;
}
.home-terms a:hover { text-decoration: underline; }
body.is-signed-in .home-guest-only { display: none !important; }

.home-page .home-map {
  width: min(760px, 100%);
  margin: 8px auto 0;
}
.home-page .home-map .florn-map-left,
.home-page .home-map .florn-map-top,
.home-page .home-map .florn-map-orphans,
.home-page .home-map .florn-map-legend,
.home-page .home-map .florn-map-right,
.home-page .home-map .florn-map-reset { display: none !important; }
.home-page .home-map .florn-map-body { display: block; grid-template-columns: 1fr; }
.home-page .home-map #graphView,
.home-page .home-map .florn-map,
.home-page .home-map .florn-map-main,
.home-page .home-map .florn-map-canvas-wrap,
.home-page .home-map .florn-map-canvas,
.home-page .home-map .florn-map-canvas svg {
  min-height: 0 !important;
  height: 210px !important;
  overflow: hidden;
}
.home-page .home-map .florn-map-canvas-wrap { padding: 4px 8px 8px !important; }
.home-page .home-copy { margin-top: 28px; }
.login-google.product-action-button,
a.login-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  text-decoration: none;
}

body.is-signed-in .product-nav-meta > .lang-select { display: none !important; }

.account-menu { position: relative; }
.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(260px, calc(100vw - 32px));
  padding: 12px;
  color: var(--ux-ink);
  background: #fff;
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  box-shadow: var(--ux-shadow);
}
.account-menu-panel[hidden] { display: none !important; }
.account-menu-email {
  margin: 0 0 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ux-line);
  color: var(--ux-muted);
  font-size: .75rem;
  line-height: 1.35;
  word-break: break-all;
}
.account-menu-item {
  display: block;
  padding: 8px 4px;
  color: var(--ux-ink);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 650;
}
.account-menu-item:hover,
.account-menu-item:focus-visible { color: var(--ux-brand-dark); }
.account-menu-label {
  margin: 10px 0 6px;
  color: var(--ux-muted);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.account-menu .lang-select { align-items: start; }
.account-menu-signout {
  display: block;
  width: 100%;
  min-height: 34px;
  margin: 12px 0 0;
  padding: 0 10px;
  color: var(--ux-ink);
  background: #fff;
  border: 1px solid var(--ux-line-strong);
  border-radius: 6px;
  font: inherit;
  font-size: .8rem;
  font-weight: 650;
  cursor: pointer;
}
.account-menu-signout:hover,
.account-menu-signout:focus-visible {
  color: var(--ux-brand-dark);
  border-color: var(--ux-brand);
}

.account-shell {
  width: min(760px, calc(100% - 48px));
  margin: 28px auto 0;
  padding: 0 0 72px;
}
.account-hero { margin: 0 0 8px; }
.account-hero .section-kicker { margin: 0 0 6px; }
.account-hero h1 {
  margin: 0 0 6px;
  color: var(--ux-ink);
  font-size: 1.8rem;
  line-height: 1.15;
}
.account-email {
  margin: 0;
  color: var(--ux-muted);
  font-size: .9rem;
}
.account-card {
  margin-top: 14px;
  padding: 20px 22px;
  background: var(--ux-surface);
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  box-shadow: var(--ux-shadow);
}
.account-card h2 {
  margin: 0 0 4px;
  color: var(--ux-muted);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.account-hint {
  margin: 0 0 14px;
  color: var(--ux-faint);
  font-size: .8rem;
}
.account-card .lang-select { align-items: start; }
.account-dl { margin: 0; }
.account-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ux-line);
}
.account-dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.account-dl dt {
  color: var(--ux-muted);
  font-size: .84rem;
}
.account-dl dd {
  margin: 0;
  color: var(--ux-ink);
  font-size: .84rem;
  font-weight: 650;
}
.account-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.account-methods li {
  padding: 5px 10px;
  color: var(--ux-brand-dark);
  background: #e4efeb;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 650;
}
.account-note {
  margin: 12px 0 0;
  color: var(--ux-faint);
  font-size: .8rem;
  line-height: 1.4;
}
.account-billing-actions,
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.account-plan-now { margin: 10px 0 0; }
.account-plan-name {
  margin: 0;
  color: var(--ux-ink);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}
.account-plan-status {
  margin: 4px 0 0;
  color: var(--ux-muted);
  font-size: .88rem;
  font-weight: 650;
}
.account-usage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 16px 0 0;
}
.account-usage div {
  padding: 10px 12px;
  background: #f4f7f6;
  border-radius: 8px;
}
.account-usage span {
  display: block;
  color: var(--ux-muted);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.account-usage strong {
  display: block;
  margin-top: 3px;
  color: var(--ux-ink);
  font-size: .95rem;
}
.account-banner {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #e8f2ee;
  color: var(--ux-brand-dark);
  font-size: .86rem;
}
.account-banner.is-warn {
  background: #fff4e5;
  color: #7a4b00;
}
.account-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.account-plan-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  background: #fff;
}
.account-plan-tile.is-current {
  border-color: var(--ux-brand);
  background: #f3f8f6;
}
.account-plan-tile-name {
  margin: 0;
  font-weight: 700;
  color: var(--ux-ink);
}
.account-plan-tile-price,
.account-plan-tile-runs {
  margin: 0;
  color: var(--ux-muted);
  font-size: .82rem;
}
.account-plan-tile .account-btn { margin-top: 8px; }
.account-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.account-btn {
  min-height: 38px;
  padding: 0 14px;
  color: var(--ux-ink);
  background: #fff;
  border: 1px solid var(--ux-line-strong);
  border-radius: 6px;
  font: inherit;
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
}
.account-btn.is-primary {
  color: #fff;
  background: var(--ux-brand-dark, #0f4c41);
  border-color: var(--ux-brand-dark, #0f4c41);
}
.account-btn.is-danger {
  color: #8a1f1f;
  border-color: #e2b4b4;
}
.account-btn:hover,
.account-btn:focus-visible {
  border-color: var(--ux-brand);
}
.account-btn:disabled {
  opacity: .55;
  cursor: default;
}
@media (max-width: 720px) {
  .account-plan-grid,
  .account-settings,
  .account-usage { grid-template-columns: 1fr; }
}
.withdrawal-box {
  margin: 14px 0 0;
}
.withdrawal-box .terms-row,
.account-card .terms-row,
.account-hero .terms-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: .75rem 0 .15rem;
}
.withdrawal-box .terms-row input[type="checkbox"],
.account-card .terms-row input[type="checkbox"],
.account-hero .terms-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: .2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--ux-brand-dark, #0f4c41);
}
.withdrawal-box .terms-row label,
.account-card .terms-row label,
.account-hero .terms-row label {
  display: inline;
  margin: 0;
  font-weight: 500;
  font-size: .82rem;
  color: var(--ux-muted, #60706c);
}
.account-signout {
  min-height: 36px;
  padding: 0 14px;
  color: var(--ux-ink);
  background: #fff;
  border: 1px solid var(--ux-line-strong);
  border-radius: 6px;
  font: inherit;
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
}
.account-signout:hover,
.account-signout:focus-visible {
  color: var(--ux-brand-dark);
  border-color: var(--ux-brand);
}
.account-shell .contact-line {
  margin: 22px 0 0;
  color: var(--ux-muted);
  font-size: .84rem;
}
.account-shell .contact-line a {
  color: var(--ux-brand-dark);
  text-decoration: none;
}
.account-shell .contact-line a:hover { text-decoration: underline; }

.account-menu-panel {
  width: min(280px, calc(100vw - 32px));
  padding: 10px 8px 8px;
}
.account-tree {
  margin: 0;
  padding: 0;
  list-style: none;
}
.account-tree > li + li { margin-top: 1px; }
.account-tree-item,
.account-tree-lang {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 8px 8px;
  color: var(--ux-ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: .84rem;
  font-weight: 550;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.account-tree-item:hover,
.account-tree-item:focus-visible,
.account-tree-lang:hover,
.account-tree-lang:focus-visible {
  color: var(--ux-brand-dark);
  background: #e4efeb;
}
.account-tree-branch > .account-tree-item {
  font-weight: 650;
}
.account-tree-branch > .account-tree-item::before {
  content: "▸";
  width: 1em;
  margin-right: 6px;
  color: var(--ux-faint);
  font-size: .72rem;
}
.account-tree-branch.is-open > .account-tree-item::before { content: "▾"; }
.account-tree-children {
  margin: 2px 0 6px 12px;
  padding: 0 0 0 10px;
  border-left: 1px solid var(--ux-line);
  list-style: none;
}
.account-tree-children[hidden] { display: none !important; }
.account-tree-lang.is-active,
.account-tree-lang[aria-current="true"] {
  color: var(--ux-brand-dark);
  font-weight: 700;
}
.account-menu-signout {
  margin-top: 8px;
}



.result-list-fold > summary {
  list-style: none;
  cursor: pointer;
}
.result-list-fold > summary::-webkit-details-marker { display: none; }
.result-list-fold > summary .section-heading-row { margin-bottom: 0; }
.result-list-fold[open] > summary .section-heading-row { margin-bottom: .4rem; }
.result-list-fold > summary .section-kicker::after {
  content: " ▾";
  font-weight: 400;
  opacity: .55;
}
.result-list-fold[open] > summary .section-kicker::after { content: " ▴"; }

.autonomy-explanation-section h3 {
  margin: 1.1rem 0 .4rem;
  font-size: 1rem;
}
.autonomy-asked,
.autonomy-zero-status,
.autonomy-why-stopped,
.autonomy-closed {
  color: var(--ux-ink);
  line-height: 1.45;
}
.autonomy-changed,
.autonomy-remains {
  margin: 0 0 0.6rem;
  padding-left: 1.15rem;
}
.autonomy-parent-group {
  margin: 0.85rem 0 1.1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  background: var(--ux-surface-soft);
}
.autonomy-parent-group h4 {
  margin: 0 0 .55rem;
  font-size: .95rem;
}
.autonomy-item {
  margin: 0 0 .85rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--ux-line);
}
.autonomy-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}
.autonomy-item-parent {
  font-weight: 650;
  margin: 0 0 .25rem;
}
.autonomy-forensic {
  margin: .35rem 0 .45rem;
  color: var(--ux-muted);
  font-size: .82rem;
}
.autonomy-protocol-group {
  margin: .7rem 0 0;
}

.inv-shell { display: grid; gap: 22px; max-width: 920px; }
.inv-summary h1 { margin: 0 0 8px; font-size: 1.55rem; }
.inv-progress, .inv-notice { color: var(--ux-muted); margin: 0 0 6px; }
.inv-timeline ol { margin: 0; padding-left: 1.2rem; }
.inv-timeline li { margin: 6px 0; }
.inv-page section { background: var(--ux-surface); border: 1px solid var(--ux-line); border-radius: 10px; padding: 16px 18px; }
.inv-page h2 { margin: 0 0 10px; font-size: 1.05rem; }
.inv-authority { font-weight: 650; }
.inv-outcomes { margin: 8px 0 0; }
.inv-plan[data-status="OPEN"] { border-left: 3px solid var(--ux-unresolved); }
.inv-plan[data-status="EXECUTED"] { border-left: 3px solid var(--ux-found); }
.inv-actions { background: var(--ux-surface); border: 1px solid var(--ux-line); border-radius: 10px; padding: 16px 18px; }
.inv-actions form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.inv-actions button, .inv-actions select { min-height: 38px; }
.inv-run-banner, .inv-run-actions { margin: 10px 0; font-size: .9rem; }
.inv-badge { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 999px; background: var(--ux-surface-soft); }
.inv-match { margin-top: 8px; }

.scientific-object-surface { display: grid; gap: 18px; margin: 18px 0 28px; }
.science-band { background: var(--ux-surface); border: 1px solid var(--ux-line); border-radius: 10px; padding: 16px 18px; }
.science-band h3 { margin: 0 0 8px; font-size: 1.05rem; }
.science-lead { margin: 0 0 12px; color: var(--ux-muted); }
.science-rule, .science-response { margin: 0 0 12px; padding: 10px 0; border-top: 1px solid var(--ux-line); }
.science-rule:first-of-type, .science-response:first-of-type { border-top: 0; }
.science-kicker { margin: 0 0 4px; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ux-muted); }
.science-title { margin: 0 0 6px; font-size: 1.05rem; }
.science-meta { margin: 0 0 4px; color: var(--ux-muted); font-size: .88rem; }
.science-expand, .science-scope { margin: 8px 0; }
.science-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.science-filter { display: grid; gap: 4px; font-size: .8rem; color: var(--ux-muted); min-width: 140px; }
.science-pager { display: flex; gap: 8px; margin-top: 10px; }
.science-page { display: grid; gap: 8px; }
@media (max-width: 720px) {
  .inv-shell { gap: 16px; }
  .inv-actions form { flex-direction: column; align-items: stretch; }
  .product-nav-links { flex-wrap: wrap; justify-content: center; }
}

/* Causal product hierarchy — reuses the FLORN design system tokens only.
   No new palette: --ux-surface/--ux-line/--ux-ink/--ux-brand/--ux-muted and
   the existing .product-action-button class are used throughout. */
.causal-baseline-section[data-product-path="true"] .cb-section {
  margin: 0 0 10px;
  border: 1px solid var(--ux-line);
  border-radius: 8px;
  background: var(--ux-surface);
  overflow: hidden;
}
.causal-baseline-section[data-product-path="true"] .cb-section > summary {
  padding: 12px 14px;
  cursor: pointer;
  font-size: .86rem;
  font-weight: 700;
  color: var(--ux-ink);
  background: var(--ux-surface-soft);
  border-bottom: 1px solid var(--ux-line);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.causal-baseline-section[data-product-path="true"] .cb-section > summary::-webkit-details-marker { display: none; }
.causal-baseline-section[data-product-path="true"] .cb-section > summary::after {
  content: "▸";
  color: var(--ux-brand);
  transition: transform .16s ease;
}
.causal-baseline-section[data-product-path="true"] .cb-section[open] > summary::after { transform: rotate(90deg); }
.causal-baseline-section[data-product-path="true"] .cb-claim {
  padding: 12px 14px;
  border-bottom: 1px solid var(--ux-line);
  background: var(--ux-surface);
}
.causal-baseline-section[data-product-path="true"] .cb-claim:last-child { border-bottom: none; }
.causal-baseline-section[data-product-path="true"] .cb-claim.cb-selected,
.causal-baseline-section[data-product-path="true"] .cb-claim.is-selected {
  background: var(--ux-surface-soft);
  box-shadow: inset 3px 0 0 var(--ux-brand);
}
.causal-baseline-section[data-product-path="true"] .cb-edge {
  font-size: .92rem;
  color: var(--ux-ink);
}
.causal-baseline-section[data-product-path="true"] .cb-edge strong { color: var(--ux-brand-dark); }
.causal-baseline-section[data-product-path="true"] .cb-status {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ux-ink);
  background: var(--ux-surface-soft);
  border: 1px solid var(--ux-line);
}
.causal-baseline-section[data-product-path="true"] .cb-next-exp {
  margin-top: 8px;
  font-size: .8rem;
  color: var(--ux-muted);
}
.causal-baseline-section[data-product-path="true"] .cb-branching {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: .78rem;
  color: var(--ux-muted);
}
.causal-baseline-section[data-product-path="true"] .cb-whatif-btn {
  margin-top: 10px;
}
@media (max-width: 720px) {
  .causal-baseline-section[data-product-path="true"] .cb-section > summary {
    font-size: .82rem;
    padding: 10px 12px;
  }
  .causal-baseline-section[data-product-path="true"] .cb-claim { padding: 10px 12px; }
}
