:root {
  color-scheme: dark;
  --suite-bg: #071728;
  --suite-surface: #0c2032;
  --suite-surface-subtle: #10283c;
  --suite-panel: #0c2032;
  --suite-ink: #f3f7fa;
  --suite-ink-dark: #071728;
  --suite-muted: #a9b8c5;
  --suite-muted-soft: #8799aa;
  --suite-line: rgba(209, 225, 238, 0.17);
  --suite-line-strong: rgba(209, 225, 238, 0.34);
  --suite-brand: #f04424;
  --suite-brand-strong: #d83a20;
  --suite-brand-soft: #ff6548;
  --suite-brand-dark: #071728;
  --suite-brand-deep: #061421;
  --suite-cyan: #74d4df;
  --suite-secondary: #496176;
  --suite-ok: #53cf91;
  --suite-warn: #f5af33;
  --suite-danger: #d65353;
  --suite-focus: #74d4df;
  --suite-radius: 8px;
  --suite-radius-sm: 4px;
  --suite-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  --suite-shadow-soft: 0 12px 26px rgba(0, 0, 0, 0.2);
  --suite-font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --suite-mono: Consolas, "SFMono-Regular", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--suite-bg);
  color: var(--suite-ink);
  font-family: var(--suite-font);
  letter-spacing: 0;
}

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

button,
a.button,
.button-link,
.download {
  min-height: 38px;
  border-radius: var(--suite-radius-sm);
  font-weight: 850;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--suite-focus);
  outline-offset: 2px;
}

button:disabled,
a[aria-disabled="true"],
.disabled {
  cursor: not-allowed;
}

.suite-topbar,
.topbar {
  min-height: 72px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--suite-brand-deep);
  color: var(--suite-ink);
  border-bottom: 2px solid var(--suite-line);
  box-shadow: none;
}

.suite-topbar h1,
.topbar h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.suite-topbar p,
.topbar p {
  margin: 4px 0 0;
  color: #d7e9f8;
  font-size: 13px;
}

.suite-shell {
  width: min(1420px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.suite-panel,
.panel,
section.suite-card {
  background: var(--suite-surface);
  border: 1px solid var(--suite-line);
  border-radius: var(--suite-radius);
  box-shadow: none;
}

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

.secureinfo-logo {
  width: clamp(132px, 15vw, 210px);
  height: 64px;
  object-fit: contain;
  object-position: center;
  padding: 6px 8px;
  border: 1px solid rgba(205, 219, 234, 0.72);
  border-radius: var(--suite-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(2, 17, 38, 0.18);
}

.fmc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.fmc-brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.fmc-brand-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.fmc-wordmark {
  color: inherit;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fmc-byline {
  color: var(--suite-muted-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.secureinfo-brand-text {
  min-width: 0;
}

.secureinfo-eyebrow,
.eyebrow,
.kicker {
  color: var(--suite-brand-soft);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.secureinfo-owner,
.owner-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(18, 183, 255, 0.36);
  border-radius: var(--suite-radius-sm);
  background: rgba(18, 183, 255, 0.11);
  color: #eaf7ff;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.secureinfo-strip {
  border: 1px solid var(--suite-line);
  border-left: 4px solid var(--suite-brand);
  border-radius: var(--suite-radius);
  padding: 12px 14px;
  background: var(--suite-surface-subtle);
  color: var(--suite-ink);
}

.secureinfo-strip strong {
  color: var(--suite-brand-soft);
}

button,
a.button,
.button-link,
.download {
  border-color: var(--suite-brand);
  background: var(--suite-brand);
  color: #ffffff;
  box-shadow: none;
}

button:hover:not(:disabled),
a.button:hover,
.button-link:hover,
.download:hover {
  background: var(--suite-brand-strong);
}

button.secondary,
a.button.secondary,
button.soft,
a.button.soft,
.secondary-button {
  border-color: var(--suite-line);
  background: transparent;
  color: var(--suite-ink);
  box-shadow: none;
}

.suite-panel h2,
.panel h2 {
  margin-top: 0;
  letter-spacing: 0;
}

.suite-status,
.status,
.status-pill {
  border: 1px solid var(--suite-line);
  border-radius: var(--suite-radius-sm);
  background: var(--suite-surface-subtle);
  color: var(--suite-muted);
}

.suite-status.ok,
.status.ok,
.status-pill.connected {
  border-color: rgba(70, 199, 131, 0.45);
  background: rgba(70, 199, 131, 0.12);
  color: var(--suite-ok);
}

.suite-status.error,
.status.error,
.status.err {
  border-color: rgba(255, 86, 60, 0.45);
  background: rgba(255, 86, 60, 0.11);
  color: var(--suite-danger);
}

.suite-status.busy,
.status.busy {
  border-color: rgba(246, 182, 86, 0.45);
  background: rgba(246, 182, 86, 0.12);
  color: var(--suite-warn);
}

.suite-table-wrap,
.table-wrap,
.target-table-wrap {
  overflow: auto;
  border: 1px solid var(--suite-line);
  border-radius: var(--suite-radius);
  background: var(--suite-surface);
}

.suite-table-wrap table,
.table-wrap table,
.target-table {
  border-collapse: collapse;
}

.suite-table-wrap th,
.suite-table-wrap td,
.table-wrap th,
.table-wrap td,
.target-table th,
.target-table td {
  border-bottom: 1px solid var(--suite-line);
}

.suite-muted,
.muted,
.meta,
.helper-text {
  color: var(--suite-muted);
}

.suite-log,
pre,
#logs,
#logBox {
  font-family: var(--suite-mono);
}

.flowmatrix-page {
  min-height: 100vh;
  justify-content: flex-start;
  background: var(--suite-bg);
  color: var(--suite-ink);
  font-family: var(--suite-font);
  background-image: none;
}

.flowmatrix-page header {
  width: min(960px, calc(100% - 32px));
  margin: 24px auto 14px;
  text-align: left;
}

.flowmatrix-page .logo {
  justify-content: flex-start;
}

.flowmatrix-page h1 {
  color: var(--suite-ink);
  font-family: var(--suite-font);
  font-size: 28px;
}

.flowmatrix-page .subtitle {
  color: var(--suite-muted);
  font-family: var(--suite-font);
  letter-spacing: 0;
}

.flowmatrix-page .card {
  width: min(960px, calc(100% - 32px));
  max-width: none;
  background: var(--suite-surface);
  border: 1px solid var(--suite-line);
  border-radius: var(--suite-radius);
  color: var(--suite-ink);
  box-shadow: var(--suite-shadow);
}

.flowmatrix-page .card::before {
  background: var(--suite-brand);
}

.flowmatrix-page .dropzone,
.flowmatrix-page .sheet-tag,
.flowmatrix-page #errors-list,
.flowmatrix-page #toggle-errors {
  background: var(--suite-surface-subtle);
  border-color: var(--suite-line);
  color: var(--suite-muted);
}

.flowmatrix-page .dropzone:hover,
.flowmatrix-page .dropzone.drag-over {
  background: #302c2b;
  border-color: var(--suite-brand);
}

.flowmatrix-page button[type="submit"],
.flowmatrix-page #download-btn {
  background: var(--suite-brand);
  border: 1px solid var(--suite-brand);
  color: #fff;
  font-family: var(--suite-font);
  letter-spacing: 0;
  text-transform: none;
}

.flowmatrix-page button[type="submit"]:hover:not(:disabled),
.flowmatrix-page #download-btn:hover {
  background: var(--suite-brand-strong);
}

.flowmatrix-page footer {
  color: var(--suite-muted);
  font-family: var(--suite-font);
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .suite-shell {
    padding: 12px;
  }

  .suite-topbar,
  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px;
  }

  .secureinfo-brand {
    align-items: flex-start;
  }

  .secureinfo-owner {
    align-self: flex-start;
    white-space: normal;
  }
}

@media (max-width: 620px) {
  button,
  a.button,
  .button-link,
  .download {
    min-height: 42px;
  }
}

/* Product Design module polish: shared ergonomics for the internal tools. */
body.module-page {
  min-width: 320px;
  background: var(--suite-bg);
  color: var(--suite-ink);
  font-family: var(--suite-font);
  letter-spacing: 0;
  overflow-x: hidden;
}

.module-page .topbar,
.module-page > header,
.module-page .hero {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 84px;
  padding: 16px clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--suite-brand-deep);
  border-bottom: 2px solid var(--suite-line);
  color: var(--suite-ink);
  box-shadow: none;
}

.module-page .hero-inner {
  width: min(1600px, 100%);
  margin: 0 auto;
}

.module-page .secureinfo-brand {
  gap: 16px;
}

.module-page .secureinfo-logo {
  width: clamp(150px, 17vw, 230px);
  height: 72px;
  border-radius: var(--suite-radius);
}

.module-page .secureinfo-brand-text h1,
.module-page .topbar h1,
.module-page > header h1,
.module-page .hero h1 {
  margin: 0;
  color: var(--suite-ink);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.08;
  letter-spacing: 0;
}

.module-page .secureinfo-brand-text p,
.module-page .topbar p,
.module-page > header p,
.module-page .hero .sub,
.module-page .subtitle {
  max-width: 820px;
  margin: 6px 0 0;
  color: var(--suite-muted);
  font-size: 14px;
  line-height: 1.45;
}

.module-page .eyebrow,
.module-page .kicker,
.module-page .secureinfo-eyebrow {
  margin: 0 0 5px;
  color: var(--suite-cyan);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-page .secureinfo-owner,
.module-page .owner-tag {
  justify-content: center;
  min-height: 34px;
  border-radius: var(--suite-radius-sm);
  background: rgba(18, 183, 255, 0.12);
  color: #eaf7ff;
}

.module-page main,
.module-page .layout,
.module-page .workspace,
.module-page .shell {
  width: min(1600px, calc(100% - 32px));
  margin: 18px auto 32px;
}

.module-page .workspace,
.module-page .layout {
  display: grid;
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.module-page .shell {
  display: block;
}

.module-page .shell .workspace {
  width: 100%;
  margin: 0;
}

.module-page .panel,
.module-page section,
.module-page .card,
.module-page aside.panel {
  min-width: 0;
  border: 1px solid var(--suite-line);
  border-radius: var(--suite-radius);
  background: var(--suite-surface);
  box-shadow: none;
}

.module-page .panel,
.module-page section {
  padding: 16px;
}

.module-page .panel h2,
.module-page section h2,
.module-page .section h2 {
  margin: 0 0 14px;
  color: var(--suite-ink);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
}

.module-page .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.module-page .meta,
.module-page .helper-text,
.module-page .muted,
.module-page label span,
.module-page .caption {
  color: var(--suite-muted);
}

.module-page label {
  color: var(--suite-muted);
  font-weight: 720;
}

.module-page input:not([type="checkbox"]):not([type="radio"]),
.module-page select,
.module-page textarea {
  min-height: 42px;
  border: 1px solid var(--suite-line);
  border-radius: var(--suite-radius-sm);
  background: var(--suite-brand-deep);
  color: var(--suite-ink);
  padding: 9px 11px;
  box-shadow: inset 0 1px 0 rgba(6, 26, 51, 0.02);
}

.module-page input[type="file"] {
  min-height: 42px;
  padding: 8px;
}

.module-page input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  border: 1px solid var(--suite-line);
  border-radius: var(--suite-radius-sm);
  background: var(--suite-surface-subtle);
  color: var(--suite-ink);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.module-page input:not([type="checkbox"]):not([type="radio"]):focus,
.module-page select:focus,
.module-page textarea:focus {
  border-color: var(--suite-brand);
  outline: 2px solid rgba(236, 48, 19, 0.36);
  outline-offset: 1px;
}

.module-page input[type="checkbox"],
.module-page input[type="radio"] {
  accent-color: var(--suite-brand);
}

.module-page button,
.module-page .download,
.module-page .button-link,
.module-page a.button {
  min-height: 40px;
  border: 1px solid var(--suite-brand);
  border-radius: var(--suite-radius-sm);
  background: var(--suite-brand);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: none;
}

.module-page button:hover:not(:disabled),
.module-page .download:hover,
.module-page .button-link:hover,
.module-page a.button:hover {
  background: var(--suite-brand-strong);
}

.module-page button.secondary,
.module-page button.soft,
.module-page .secondary-button,
.module-page a.button.secondary {
  border-color: var(--suite-line);
  background: transparent;
  color: var(--suite-ink);
  box-shadow: none;
}

.module-page button.danger,
.module-page .danger {
  border-color: var(--suite-danger);
  background: var(--suite-danger);
  color: #fff;
}

.module-page button:disabled,
.module-page .download.disabled,
.module-page .button-link.disabled {
  border-color: rgba(248, 244, 244, 0.1);
  background: var(--suite-surface-subtle);
  color: #7d7979;
  box-shadow: none;
  opacity: 1;
}

.module-page .status,
.module-page .status-pill,
.module-page #connectStatus,
.module-page #jobStatus {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--suite-line);
  border-radius: var(--suite-radius-sm);
  padding: 7px 10px;
  background: var(--suite-surface-subtle);
  color: var(--suite-muted);
  font-weight: 780;
}

.module-page .status.ok,
.module-page .status-pill.connected,
.module-page .ok {
  color: var(--suite-ok);
}

.module-page .status.err,
.module-page .status.error,
.module-page .err {
  color: var(--suite-danger);
}

.module-page .status.busy {
  color: var(--suite-warn);
}

.module-page #connectStatus:empty,
.module-page #jobStatus:empty {
  display: none;
}

.module-page .summary-grid,
.module-page .kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.module-page .kpi,
.module-page .kpis > div,
.module-page .metric {
  min-height: 82px;
  border: 1px solid var(--suite-line);
  border-top: 2px solid var(--suite-brand);
  border-left: 0;
  border-radius: var(--suite-radius);
  background: var(--suite-surface);
  padding: 12px;
  box-shadow: none;
}

.module-page .kpi.warn {
  border-left-color: var(--suite-warn);
}

.module-page .kpi span,
.module-page .kpis span,
.module-page .metric strong {
  display: block;
  color: var(--suite-ink);
  font-size: 25px;
  font-weight: 850;
  letter-spacing: 0;
}

.module-page .kpi label,
.module-page .kpis label,
.module-page .metric span {
  margin-top: 3px;
  color: var(--suite-muted);
  font-size: 12px;
  font-weight: 760;
}

.module-page .table-wrap,
.module-page .target-table-wrap,
.module-page .detail-table-wrap {
  border: 1px solid var(--suite-line);
  border-radius: var(--suite-radius);
  background: var(--suite-surface);
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(6, 26, 51, 0.02);
}

.module-page table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.module-page th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--suite-brand-deep);
  color: var(--suite-muted);
  font-size: 12px;
  font-weight: 820;
}

.module-page th,
.module-page td {
  border-bottom: 1px solid var(--suite-line);
  padding: 10px 11px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.module-page tbody tr:hover {
  background: var(--suite-surface-subtle);
}

.module-page .empty {
  color: var(--suite-muted);
  text-align: center;
}

.module-page .domain-list,
.module-page .list,
.module-page .browser-list {
  border: 1px solid var(--suite-line);
  border-radius: var(--suite-radius);
  background: var(--suite-brand-deep);
}

.module-page .domain-item,
.module-page .item,
.module-page .browser-entry,
.module-page .mode-card,
.module-page .sheet-map .line {
  border-radius: var(--suite-radius-sm);
}

.module-page .domain-item:hover,
.module-page .item:hover,
.module-page .browser-entry:hover,
.module-page .mode-card:hover {
  background: var(--suite-surface-subtle);
}

.module-page pre,
.module-page #logs,
.module-page #logBox,
.module-page #summary {
  border: 1px solid var(--suite-line);
  border-radius: var(--suite-radius);
  background: var(--suite-brand-deep);
  color: var(--suite-ink);
  font-family: var(--suite-mono);
  font-size: 13px;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.module-page .tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.module-page .tabs button {
  min-height: 36px;
  border-color: var(--suite-line);
  background: transparent;
  color: var(--suite-ink);
  box-shadow: none;
  white-space: nowrap;
}

.module-page .tabs button.active {
  border-color: var(--suite-brand);
  background: var(--suite-brand);
  color: #fff;
}

.module-page .modal-card {
  border-radius: var(--suite-radius);
}

.module-page.flowmatrix-page {
  display: block;
  align-items: initial;
  justify-content: initial;
  padding: 0;
  background-image: none;
}

.module-page.flowmatrix-page > header {
  width: 100%;
  margin: 0;
  text-align: left;
}

.module-page.flowmatrix-page .card {
  width: min(960px, calc(100% - 32px));
  max-width: none;
  margin: 18px auto;
}

.module-page.flowmatrix-page .dropzone {
  border-radius: var(--suite-radius);
}

.module-page.flowmatrix-page .sheet-tag,
.module-page.flowmatrix-page #toggle-errors,
.module-page.flowmatrix-page #errors-list {
  font-family: var(--suite-font);
  letter-spacing: 0;
}

.module-page.flowmatrix-page button[type="submit"],
.module-page.flowmatrix-page #download-btn {
  font-family: var(--suite-font);
  text-transform: none;
}

.module-page.module-gitsec main {
  width: min(1360px, calc(100% - 32px));
}

.module-page.module-gitsec form {
  gap: 16px;
}

.module-page.module-export main {
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
}

.module-page.module-export .hero {
  text-align: left;
}

.module-page.module-export section.full {
  grid-column: 1 / -1;
}

.module-page.module-object-cleanup .audit {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.module-page.module-object-cleanup .results,
.module-page.module-object-cleanup .object-detail,
.module-page.module-object-cleanup .lookup-progress-panel {
  grid-column: 2;
}

@media (max-width: 1050px) {
  .module-page .workspace,
  .module-page .layout,
  .module-page.module-export main,
  .module-page.module-gitsec form {
    grid-template-columns: 1fr;
  }

  .module-page .connection,
  .module-page .lookup,
  .module-page .summary,
  .module-page .notes,
  .module-page .audit,
  .module-page .results,
  .module-page .object-detail,
  .module-page .lookup-progress-panel,
  .module-page .connection-panel,
  .module-page .execution-panel,
  .module-page .targets-panel,
  .module-page .logs-panel {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .module-page .topbar,
  .module-page > header,
  .module-page .hero {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .module-page .secureinfo-brand {
    align-items: flex-start;
  }

  .module-page .secureinfo-logo {
    width: min(230px, 74vw);
  }

  .module-page main,
  .module-page .layout,
  .module-page .workspace,
  .module-page .shell {
    width: min(100% - 20px, 720px);
    margin-top: 12px;
  }

  .module-page .target-controls,
  .module-page .result-toolbar,
  .module-page .tools,
  .module-page .actions,
  .module-page .lookup-actions,
  .module-page .domain-actions,
  .module-page .downloads {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Portal-wide fallback for legacy inline templates. Higher specificity keeps the
   Modernist redesign coherent on admin, client, vendor, guide, and demo pages. */
html body {
  background: var(--suite-bg);
  color: var(--suite-ink);
  font-family: var(--suite-font);
}

html body > header,
html body .doc-topbar {
  background: var(--suite-brand-deep);
  border-bottom: 2px solid var(--suite-line);
  color: var(--suite-ink);
  box-shadow: none;
}

html body .secureinfo-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html body .secureinfo-brand-text h1,
html body .doc-topbar h1 {
  color: var(--suite-ink);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

html body .secureinfo-brand-text p,
html body .doc-topbar p {
  color: var(--suite-muted);
}

html body .eyebrow,
html body .kicker {
  color: var(--suite-brand-soft);
}

html body main .panel,
html body main .section,
html body main .module-card,
html body main .notice,
html body main .hero,
html body main .toc,
html body main .mini,
html body main .step,
html body main .fact,
html body main .card {
  border-color: var(--suite-line);
  border-radius: var(--suite-radius);
  background: var(--suite-surface);
  color: var(--suite-ink);
  box-shadow: none;
}

html body main h1,
html body main h2,
html body main h3 {
  color: var(--suite-ink);
  letter-spacing: 0;
}

html body main p,
html body main .muted,
html body main .meta,
html body main label {
  color: var(--suite-muted);
}

html body main input,
html body main select,
html body main textarea {
  border-color: var(--suite-line);
  border-radius: var(--suite-radius-sm);
  background: var(--suite-brand-deep);
  color: var(--suite-ink);
}

html body main button,
html body main a.button,
html body main .button {
  border-radius: var(--suite-radius-sm);
  background: var(--suite-brand);
  color: #fff;
  box-shadow: none;
}

html body main button.soft,
html body main a.soft,
html body main button.secondary,
html body main a.button.secondary,
html body main a.secondary {
  border: 1px solid var(--suite-line);
  background: transparent;
  color: var(--suite-ink);
}

html body main table th,
html body main table td {
  border-color: var(--suite-line);
}

html body main table th {
  color: var(--suite-muted-soft);
}

/* Unified internal-product layer. This block intentionally comes last so the
   legacy inline pages and module styles keep their layout logic while sharing
   the same readable FMC//SUITE visual language. */
html body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--suite-bg);
  color: var(--suite-ink);
  font-family: var(--suite-font);
}

html body > header,
html body .doc-topbar,
.module-page .topbar,
.module-page > header,
.module-page .hero {
  background: var(--suite-brand-deep);
  background-image: none;
  border-bottom: 1px solid var(--suite-line);
  color: var(--suite-ink);
  box-shadow: none;
}

html body > header .actions a,
html body > header .actions button {
  border: 1px solid var(--suite-line);
  background: transparent;
  color: var(--suite-ink);
}

html body > header .actions a:hover,
html body > header .actions button:hover {
  border-color: var(--suite-brand);
  background: var(--suite-surface-subtle);
}

html body main .meta strong,
html body main .fact strong,
html body main .checks label,
html body main .event-row,
html body main .code-box,
html body main .compact-list,
html body main .compact-list table {
  color: var(--suite-ink);
}

html body main .pill,
html body main .badge {
  border: 1px solid var(--suite-line);
  border-radius: var(--suite-radius-sm);
  background: var(--suite-surface-subtle);
  color: var(--suite-muted);
}

html body main .pill.ok,
html body main .badge.ok {
  border-color: rgba(83, 207, 145, .45);
  background: rgba(83, 207, 145, .12);
  color: var(--suite-ok);
}

html body main .pill.err,
html body main .badge.err {
  border-color: rgba(214, 83, 83, .48);
  background: rgba(214, 83, 83, .12);
  color: #ff8f8f;
}

html body main .code-box,
html body main .event-row,
html body main .compact-list,
html body main .compact-list table {
  border-color: var(--suite-line);
  background: var(--suite-brand-deep);
}

html body main input::placeholder,
html body main textarea::placeholder,
.module-page input::placeholder,
.module-page textarea::placeholder {
  color: var(--suite-muted-soft);
  opacity: 1;
}

.module-page {
  --bg: var(--suite-bg);
  --panel: var(--suite-surface);
  --panel2: var(--suite-surface-subtle);
  --subtle: var(--suite-surface-subtle);
  --header: var(--suite-brand-deep);
  --header-soft: var(--suite-surface);
  --ink: var(--suite-ink);
  --text: var(--suite-ink);
  --muted: var(--suite-muted);
  --line: var(--suite-line);
  --line-soft: var(--suite-line);
  --border: var(--suite-line);
  --accent: var(--suite-brand);
  --accent-strong: var(--suite-brand-strong);
  --accent-dark: var(--suite-brand-strong);
  --accent-soft: rgba(240, 68, 36, .12);
  --brand: var(--suite-brand);
  --brand-strong: var(--suite-brand-strong);
  --ok: var(--suite-ok);
  --warn: var(--suite-warn);
  --danger: var(--suite-danger);
  --input: var(--suite-brand-deep);
  background: var(--suite-bg);
  color: var(--suite-ink);
  font-family: var(--suite-font);
}

.module-page .secureinfo-logo {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
}

.module-page .secureinfo-owner {
  border-color: var(--suite-line);
  background: var(--suite-surface);
  color: var(--suite-ink);
}

.module-page .panel,
.module-page section,
.module-page .card,
.module-page aside.panel,
.module-page .mode-card,
.module-page .sheet-map,
.module-page .metric,
.module-page .metric-card,
.module-page .execution-meta,
.module-page .welcome,
.module-page .projects-panel,
.module-page .project-filter button {
  border-color: var(--suite-line);
  background: var(--suite-surface);
  color: var(--suite-ink);
  box-shadow: none;
}

.module-page .mode-card:has(input:checked),
.module-page .project-filter button.active {
  border-color: var(--suite-brand);
  background: rgba(240, 68, 36, .1);
  box-shadow: inset 0 0 0 1px var(--suite-brand);
}

.module-page .mode-card strong,
.module-page .sheet-map strong,
.module-page .metric strong,
.module-page .metric-card strong,
.module-page .metric-card span,
.module-page .execution-meta strong,
.module-page .execution-meta span,
.module-page .welcome h2,
.module-page .welcome p {
  color: var(--suite-ink);
}

.module-page .mode-card span,
.module-page .sheet-map .line,
.module-page .metric,
.module-page .helper,
.module-page .hint,
.module-page .health-state,
.module-page .guardrails {
  color: var(--suite-muted);
}

.module-page .health-badge {
  border: 1px solid var(--suite-line);
  background: var(--suite-surface-subtle);
  color: var(--suite-muted);
}

.module-page .health-healthy {
  border-color: rgba(83, 207, 145, .45);
  background: rgba(83, 207, 145, .12);
  color: var(--suite-ok);
}

.module-page .health-degraded {
  border-color: rgba(245, 175, 51, .45);
  background: rgba(245, 175, 51, .12);
  color: var(--suite-warn);
}

.module-page .health-critical {
  border-color: rgba(214, 83, 83, .48);
  background: rgba(214, 83, 83, .12);
  color: #ff8f8f;
}

.module-page .dropzone,
.module-page .list,
.module-page .domain-list,
.module-page .history-list,
.module-page .projects-list,
.module-page .table-wrap,
.module-page .target-table-wrap,
.module-page .detail-table-wrap,
.module-page pre,
.module-page #summary,
.module-page #logs,
.module-page #logBox {
  border-color: var(--suite-line);
  background: var(--suite-brand-deep);
  color: var(--suite-ink);
}

.module-page .card::before,
.module-page .progress-bar-fill {
  background: var(--suite-brand);
}

.module-page .drop-text strong,
.module-page a {
  color: var(--suite-cyan);
}

.module-page .drop-icon {
  color: var(--suite-muted);
}

.module-page .sheet-tag {
  border-color: var(--suite-line);
  background: var(--suite-surface-subtle);
  color: var(--suite-muted);
}

.module-page table thead,
.module-page table th {
  background: var(--suite-brand-deep);
}

.module-page tbody tr:hover {
  background: var(--suite-surface-subtle);
}

/* Legacy modules with more specific light-theme selectors. */
.module-page.module-inventory input:not([type="checkbox"]):not([type="radio"]),
.module-page.module-inventory select,
.module-page.module-inventory textarea,
.module-page.module-migration input:not([type="checkbox"]):not([type="radio"]),
.module-page.module-migration select,
.module-page.module-migration textarea {
  border-color: var(--suite-line);
  background: var(--suite-brand-deep);
  color: var(--suite-ink);
}

.module-page.module-inventory .result-toolbar,
.module-page.module-inventory .table-status,
.module-page.module-inventory .table-wrap,
.module-page.module-inventory table {
  border-color: var(--suite-line);
  background: var(--suite-brand-deep);
  color: var(--suite-ink);
}

.module-page.module-inventory .tabs button {
  border-color: var(--suite-line);
  background: transparent;
  color: var(--suite-ink);
}

.module-page.module-inventory .tabs button.active {
  border-color: var(--suite-brand);
  background: var(--suite-brand);
  color: #fff;
}

.module-page.module-inventory .table-meta {
  color: var(--suite-muted);
}

.module-page.module-inventory td.empty {
  background: var(--suite-brand-deep);
  color: var(--suite-muted);
}

/* Les cellules du tableau d'inventaire gardaient un fond blanc en dur, tandis
   que --ink prend la valeur claire du thème sombre : les résultats
   s'affichaient en quasi-blanc sur blanc, donc illisibles. Le sélecteur double
   passe devant celui du module, qui est chargé après suite.css. */
.module-page.module-inventory td,
.module-page.module-inventory tbody tr:nth-child(even) td,
.module-page.module-inventory td:first-child,
.module-page.module-inventory tr:nth-child(even) td:first-child {
  background: var(--suite-brand-deep);
  color: var(--suite-ink);
}

.module-page.module-inventory tbody tr:hover td,
.module-page.module-inventory tr:hover td:first-child {
  background: var(--suite-surface-subtle);
  color: var(--suite-ink);
}

.module-page.module-inventory th {
  color: var(--suite-ink);
}

.module-page.module-inventory td:first-child {
  box-shadow: 1px 0 0 var(--suite-line);
}

/* Les etats de survol des modules ramenaient des fonds clairs herites du theme
   d'origine, sous une encre restee claire : le libelle disparaissait sous le
   curseur, precisement au moment ou l'on vise le bouton. Les selecteurs sont
   doubles car ceux des modules atteignent (0,4,1) et sont charges apres. */
.module-page.module-inventory button.soft:hover:not(:disabled),
.module-page.module-inventory button.recover:hover:not(:disabled),
.module-page.module-inventory .domain-item:hover,
.module-page.module-object-cleanup .secondary-button:hover,
.module-page.module-object-cleanup tbody tr:hover td,
.module-page.module-rule-creation .remove-btn:hover {
  background: var(--suite-surface-subtle);
  border-color: var(--suite-brand);
  color: var(--suite-ink);
}

/* Meme cause pour les boutons desactives : les modules imposent un gris clair
   qui l'emportait a specificite egale, puisqu'ils sont charges en second. Il en
   resultait des pastilles patles au milieu d'une interface sombre. */
.module-page.module-inventory button:disabled,
.module-page.module-inventory button.danger:disabled,
.module-page.module-inventory .download.disabled,
.module-page.module-object-cleanup button:disabled,
.module-page.module-rule-creation button:disabled {
  border-color: var(--suite-line);
  background: var(--suite-surface-subtle);
  color: var(--suite-muted-soft);
}

.module-page.module-migration .notice p:last-child {
  color: var(--suite-muted);
}

.module-page.module-migration .route,
.module-page.module-migration .project-card,
.module-page.module-migration .fixed-config > div,
.module-page.module-migration .metrics-grid > div,
.module-page.module-migration .counter,
.module-page.module-migration .status-chip,
.module-page.module-migration .drop-zone,
.module-page.module-migration .policy-file {
  border-color: var(--suite-line);
  background: var(--suite-brand-deep);
  color: var(--suite-ink);
}

.module-page.module-migration .project-card:hover,
.module-page.module-migration .project-card.active,
.module-page.module-migration .drop-zone:hover,
.module-page.module-migration .drop-zone.dragging {
  border-color: var(--suite-brand);
  background: rgba(240, 68, 36, .1);
  color: var(--suite-ink);
}

/* Dense vendor workspace: keep every nested grid inside the viewport. */
.vendor-page main,
.vendor-page .panel,
.vendor-page .workbench,
.vendor-page .crm-layout,
.vendor-page .pricing-layout,
.vendor-page .grid,
.vendor-page .two,
.vendor-page .facts,
.vendor-page .workbench > *,
.vendor-page .crm-layout > *,
.vendor-page .pricing-layout > *,
.vendor-page .grid > *,
.vendor-page .two > *,
.vendor-page .facts > * {
  min-width: 0;
}

.vendor-page input,
.vendor-page select,
.vendor-page textarea {
  width: 100%;
  max-width: 100%;
}

.vendor-page .fact strong {
  white-space: normal;
  overflow-wrap: anywhere;
}

.vendor-page table {
  max-width: 100%;
}

.admin-page main,
.admin-page main > *,
.admin-page .grid,
.admin-page .grid > *,
.admin-page .actions {
  min-width: 0;
}

.admin-page .panel h2,
.admin-page .panel h3,
.admin-page .msg {
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  html body > header,
  html body .doc-topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  html body > header .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  html body > header .actions a,
  html body > header .actions button {
    width: 100%;
  }

  html body main,
  html body .doc-shell,
  html body .demo-flow {
    max-width: 100%;
  }

  html body .doc table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  html body .doc-shell,
  html body .doc,
  html body .module-grid,
  html body .cols,
  html body .workflow,
  html body .facts {
    min-width: 0;
  }

  html body .code-box,
  html body textarea,
  html body pre,
  html body table {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .module-page .secureinfo-brand {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .module-page .secureinfo-logo {
    width: 40px;
    height: 40px;
  }

  .module-page .metric-grid,
  .module-page .summary-grid,
  .module-page .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vendor-page main {
    width: calc(100% - 20px);
  }

  .vendor-page .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .vendor-page .actions > * {
    width: 100%;
  }

  .admin-page #licenseSummary,
  .admin-page .grid {
    grid-template-columns: 1fr !important;
  }

  .admin-page #licenseSummary .pill {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 460px) {
  .module-page .metric-grid,
  .module-page .summary-grid,
  .module-page .kpis {
    grid-template-columns: 1fr;
  }
}
