:root {
  color-scheme: light;
  --bg: #eef2f5;
  --panel: #ffffff;
  --ink: #17212b;
  --muted: #667383;
  --line: #dce3ea;
  --brand: #135f63;
  --brand-strong: #0d4649;
  --accent: #247b7b;
  --danger: #c23b2e;
  --warning: #b87617;
  --ok: #2d7d46;
  --soft-danger: #fdeceb;
  --soft-warning: #fff4df;
  --soft-ok: #eaf7ee;
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body:not(.authenticated) .sidebar,
body:not(.authenticated) .main {
  display: none;
}

body.authenticated .auth-screen,
body.authenticated .marketing-site {
  display: none;
}

body:not(.auth-open) .auth-screen {
  display: none;
}

body.auth-open {
  overflow: hidden;
}

.marketing-site {
  min-height: 100vh;
  background: #ffffff;
}

.marketing-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.marketing-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.marketing-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.marketing-brand strong,
.marketing-brand small {
  display: block;
}

.marketing-brand strong {
  font-size: 17px;
}

.marketing-brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 11px;
  opacity: 0.72;
}

.marketing-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.marketing-nav a {
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.marketing-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.marketing-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.marketing-login,
.marketing-primary,
.marketing-secondary {
  min-height: 40px;
  border-radius: 6px;
  padding: 0 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.marketing-login {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: currentColor;
}

.marketing-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #28a89d;
  background: #28a89d;
  color: #071c22;
}

.marketing-primary:hover {
  border-color: #41c0b4;
  background: #41c0b4;
}

.marketing-primary.large,
.marketing-secondary.large {
  min-height: 48px;
  padding: 0 20px;
  font-size: 14px;
}

.marketing-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(5, 22, 28, 0.18);
  color: #ffffff;
}

.marketing-hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background-image: url("/static/assets/legismant-industrial-hero.webp");
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

.marketing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 25, 31, 0.48);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 90px;
}

.marketing-eyebrow {
  margin: 0 0 12px;
  color: #14726f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.marketing-hero .marketing-eyebrow,
.marketing-cta .marketing-eyebrow {
  color: #65d5c8;
}

.marketing-hero h1 {
  margin: 0;
  font-size: 68px;
  line-height: 1;
}

.hero-lead {
  max-width: 650px;
  margin: 22px 0 28px;
  color: #f5f9fa;
  font-size: 21px;
  line-height: 1.48;
}

.hero-signal {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: #e2edef;
  font-size: 13px;
  font-weight: 700;
}

.hero-signal span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #55c278;
  box-shadow: 0 0 0 4px rgba(85, 194, 120, 0.18);
}

.radar-public-band {
  padding: 96px 0;
  border-bottom: 1px solid #d5dfe1;
  background: #f1f6f5;
}

.radar-public-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 76px;
}

.radar-public-copy h2 {
  max-width: 600px;
  margin: 0;
  font-size: 38px;
  line-height: 1.14;
}

.radar-public-copy > p:last-of-type {
  margin: 18px 0 0;
  color: #52646b;
  font-size: 17px;
  line-height: 1.62;
}

.radar-public-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
  border-top: 1px solid #cbd8d9;
  padding-top: 20px;
}

.radar-public-stats strong,
.radar-public-stats span {
  display: block;
}

.radar-public-stats strong {
  color: #126d68;
  font-size: 14px;
}

.radar-public-stats span {
  margin-top: 5px;
  color: #63747a;
  font-size: 12px;
}

.radar-public-console {
  overflow: hidden;
  border: 1px solid #b9c9cc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 55px rgba(18, 39, 48, 0.14);
}

.radar-console-header,
.radar-console-change,
.radar-console-document {
  display: flex;
  align-items: center;
}

.radar-console-header {
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid #dbe4e5;
  padding: 0 20px;
  color: #53666d;
  font-size: 12px;
}

.radar-console-header span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e7047;
  font-weight: 850;
}

.radar-console-header i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #35a55f;
}

.radar-console-change,
.radar-console-document {
  gap: 13px;
  margin: 20px;
  border: 1px solid #dce4e5;
  padding: 16px;
}

.radar-console-change div,
.radar-console-document div {
  min-width: 0;
  flex: 1;
}

.radar-console-change strong,
.radar-console-change small,
.radar-console-document strong,
.radar-console-document small {
  display: block;
}

.radar-console-change small,
.radar-console-document small {
  margin-top: 5px;
  color: #6c7c82;
  font-size: 12px;
}

.radar-source-tag,
.radar-console-document > span {
  display: inline-grid;
  min-width: 42px;
  min-height: 30px;
  place-items: center;
  border: 1px solid #9dcac4;
  border-radius: 4px;
  background: #e9f6f3;
  color: #126d68;
  font-size: 10px;
  font-weight: 900;
}

.radar-console-document b {
  color: #126d68;
  font-size: 14px;
}

.radar-console-link {
  width: 2px;
  height: 18px;
  margin: -20px 0 -20px 40px;
  background: #8fbdb8;
}

.radar-console-action {
  display: grid;
  gap: 4px;
  border-top: 1px solid #dbe4e5;
  background: #f7faf9;
  padding: 17px 20px;
}

.radar-console-action span {
  color: #6b7d83;
  font-size: 11px;
  text-transform: uppercase;
}

.radar-console-action strong {
  font-size: 13px;
}

.marketing-section {
  padding: 96px 0;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-intro.compact-intro {
  margin-bottom: 38px;
}

.section-intro h2,
.product-copy h2,
.marketing-cta h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.14;
}

.section-intro > p:last-child,
.product-copy > p,
.marketing-cta > .marketing-container > p:not(.marketing-eyebrow) {
  margin: 18px 0 0;
  color: #5a6873;
  font-size: 17px;
  line-height: 1.62;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #cfd8dd;
}

.value-grid article {
  min-width: 0;
  border-right: 1px solid #dce3e7;
  padding: 28px 30px 8px 0;
}

.value-grid article + article {
  padding-left: 30px;
}

.value-grid article:last-child {
  border-right: 0;
}

.value-grid article > span {
  color: #14827d;
  font-size: 13px;
  font-weight: 900;
}

.value-grid h3 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.value-grid p,
.workflow-list p,
.marketing-plan p {
  margin: 0;
  color: #64727c;
  line-height: 1.55;
}

.product-band {
  padding: 92px 0;
  border-block: 1px solid #d7e0e4;
  background: #e9eff1;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
  align-items: center;
  gap: 72px;
}

.product-points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.product-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.product-points li span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #208d67;
}

.product-window {
  overflow: hidden;
  border: 1px solid #becbd1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 55px rgba(18, 39, 48, 0.14);
}

.product-window-bar {
  min-height: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #dde4e8;
  padding: 0 17px;
  font-size: 12px;
}

.product-window-bar span {
  color: #6c7a84;
}

.product-window-bar i {
  color: #26794b;
  font-style: normal;
  font-weight: 800;
}

.product-score {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid #e1e7ea;
  padding: 18px;
}

.product-score small,
.product-score strong {
  display: block;
}

.product-score small,
.product-metrics small,
.product-obligations small {
  color: #75828c;
}

.product-score strong {
  margin-top: 3px;
  font-size: 30px;
}

.product-score > span {
  height: 9px;
  overflow: hidden;
  border-radius: 5px;
  background: #e2e8eb;
}

.product-score > span i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #208d67;
}

.product-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #e1e7ea;
}

.product-metrics div {
  border-right: 1px solid #e1e7ea;
  padding: 17px;
}

.product-metrics div:last-child {
  border-right: 0;
}

.product-metrics small,
.product-metrics strong {
  display: block;
}

.product-metrics strong {
  margin-top: 8px;
  font-size: 23px;
}

.product-obligations {
  padding: 4px 18px 10px;
}

.product-obligations > div {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid #e5eaed;
  padding: 13px 0;
}

.product-obligations > div:last-child {
  border-bottom: 0;
}

.product-obligations p,
.product-obligations strong,
.product-obligations small {
  display: block;
  margin: 0;
}

.product-obligations small {
  margin-top: 4px;
}

.product-obligations b {
  font-size: 11px;
}

.risk-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2d7d46;
}

.risk-dot.high {
  background: #c23b2e;
}

.risk-dot.medium {
  background: #b87617;
}

.workflow-section {
  background: #ffffff;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  min-width: 0;
  border-top: 1px solid #cfd8dd;
  padding: 24px 24px 0 0;
}

.workflow-list li + li {
  padding-left: 24px;
}

.workflow-list li > span {
  display: block;
  margin-bottom: 28px;
  color: #14827d;
  font-size: 13px;
  font-weight: 900;
}

.workflow-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.plans-section {
  border-top: 1px solid #e0e6e9;
  background: #f4f7f8;
}

.marketing-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.marketing-plan {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  border: 1px solid #cfd9dd;
  border-radius: 8px;
  background: #ffffff;
  padding: 24px;
}

.marketing-plan.featured {
  border-color: #16827d;
  box-shadow: inset 0 4px 0 #16827d;
}

.marketing-plan h3 {
  margin: 0;
  font-size: 20px;
}

.marketing-plan-price {
  min-height: 54px;
  margin: 18px 0 12px;
  font-size: 34px;
  font-weight: 900;
}

.marketing-plan-price small {
  color: #6c7882;
  font-size: 12px;
}

.marketing-plan ul {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  color: #53616c;
  font-size: 13px;
  list-style: none;
}

.marketing-plan .marketing-primary {
  width: 100%;
  margin-top: auto;
}

.marketing-cta {
  padding: 88px 0;
  background: #122731;
  color: #ffffff;
  text-align: center;
}

.marketing-cta .marketing-container {
  max-width: 820px;
}

.marketing-cta > .marketing-container > p:not(.marketing-eyebrow) {
  color: #c5d3d8;
}

.marketing-cta .marketing-primary {
  margin-top: 28px;
}

.marketing-footer {
  border-top: 1px solid #253d47;
  background: #0c1e26;
  color: #dfe9ec;
}

.marketing-footer .marketing-container {
  min-height: 120px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.marketing-footer p {
  color: #9eb0b8;
  font-size: 12px;
  text-align: center;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgba(9, 24, 31, 0.78);
}

.auth-panel {
  position: relative;
  width: min(680px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #edf2f4;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-brand strong,
.auth-brand span {
  display: block;
}

.auth-brand span {
  color: var(--muted);
  font-size: 12px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 22px;
  background: #f4f7f8;
}

.auth-tab {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.auth-tab.active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(23, 33, 43, 0.08);
}

.auth-form {
  display: none;
  gap: 16px;
}

.auth-form.active {
  display: grid;
}

.auth-form label,
.auth-form small {
  display: block;
}

.auth-form label {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.auth-form small {
  margin-top: 6px;
  color: var(--muted);
}

.auth-form input,
.auth-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

.auth-form input:focus,
.auth-form select:focus,
.date-input:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(19, 95, 99, 0.15);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-submit {
  width: 100%;
}

.auth-link {
  justify-self: center;
}

.verification-state {
  display: flex;
  align-items: center;
  gap: 14px;
}

.verification-state h2 {
  font-size: 22px;
}

.verification-state .eyebrow {
  margin-bottom: 3px;
}

.verification-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  border-radius: 50%;
  background: #dcefeb;
  color: #126c68;
  font-size: 21px;
  font-weight: 900;
}

.verification-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.verification-copy strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

button {
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 272px;
  background: #14232d;
  color: #eef7f7;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #2db7aa;
  color: #10222b;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #a8bac5;
  font-size: 12px;
  margin-top: 2px;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-item {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #bdd0d8;
  cursor: pointer;
  padding: 12px 14px;
  text-align: left;
}

.nav-radar,
.nav-library {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nav-library {
  background: rgba(45, 183, 170, 0.08);
  box-shadow: inset 3px 0 0 #2db7aa;
  color: #e2f5f3;
  font-weight: 750;
}

.nav-count {
  display: inline-grid;
  min-width: 24px;
  height: 22px;
  place-items: center;
  border-radius: 11px;
  background: #efb34b;
  color: #17212b;
  padding: 0 6px;
  font-size: 11px;
}

.nav-library .nav-count {
  background: #2db7aa;
  color: #10222b;
}

.nav-item:hover,
.nav-item.active {
  background: #203542;
  color: #ffffff;
}

.pilot-card {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.pilot-card span,
.pilot-card small,
.pilot-card strong {
  display: block;
}

.pilot-card #account-email {
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.sidebar-action {
  min-height: 34px;
  border: 0;
  background: transparent;
  color: #d5e3e8;
  cursor: pointer;
  padding: 10px 0 0;
  text-align: left;
  font-weight: 700;
}

.sidebar-action:hover {
  color: #ffffff;
}

.pilot-card span,
.pilot-card small {
  color: #a8bac5;
  font-size: 12px;
}

.pilot-card strong {
  margin: 8px 0 3px;
}

.main {
  margin-left: 272px;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 17px;
}

.actions,
.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.export-control {
  position: relative;
}

.export-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  width: min(330px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgb(24 42 51 / 16%);
  padding: 6px;
}

.export-menu[hidden] {
  display: none;
}

.export-menu button {
  display: grid;
  width: 100%;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 10px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.export-menu button:hover,
.export-menu button:focus-visible {
  background: #f3f7f7;
  outline: none;
}

.export-menu strong,
.export-menu small {
  display: block;
}

.export-menu strong {
  font-size: 13px;
}

.export-menu small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.file-type {
  display: grid;
  width: 46px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f5f7f8;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.file-type.pdf {
  border-color: #e4aaa5;
  background: var(--soft-danger);
  color: var(--danger);
}

.file-type.xlsx {
  border-color: #9fc9b5;
  background: var(--soft-ok);
  color: var(--ok);
}

.primary-button,
.ghost-button,
.link-button {
  border-radius: 8px;
  min-height: 40px;
  padding: 0 16px;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--brand-strong);
}

.ghost-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--brand);
  padding: 0;
  font-weight: 700;
}

.compact {
  min-height: 34px;
  padding: 0 12px;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.connection-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  content: "";
}

.connection-status.online::before {
  background: var(--ok);
}

.connection-status.error::before {
  background: var(--danger);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.score-band {
  display: grid;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: 24px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 18px;
}

.score-band strong {
  display: block;
  font-size: 56px;
  line-height: 1;
}

.score-band span {
  color: var(--muted);
}

.dashboard-radar-band {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 82px;
  margin-bottom: 18px;
  border: 1px solid #c8dcda;
  border-left: 4px solid #2d7d46;
  border-radius: 8px;
  background: #f5faf8;
  padding: 15px 18px;
}

.dashboard-radar-band.attention {
  border-color: #e2c17d;
  border-left-color: #b87617;
  background: #fff9ec;
}

.dashboard-radar-status span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2d7d46;
}

.dashboard-radar-band.attention .dashboard-radar-status span {
  background: #b87617;
}

.dashboard-radar-band strong,
.dashboard-radar-band small {
  display: block;
}

.dashboard-radar-band small {
  margin-top: 5px;
  color: var(--muted);
}

.score-meter,
.risk-bars div,
.score-breakdown div {
  height: 12px;
  border-radius: 999px;
  background: #e6edf1;
  overflow: hidden;
}

.score-meter span,
.risk-bars div span,
.score-breakdown div span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d7d46, #e2a028, #c23b2e);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric,
.panel,
.upload-zone {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  position: relative;
  width: 100%;
  padding: 18px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.metric:hover,
.metric.expanded {
  border-color: #2b7a78;
  box-shadow: 0 10px 28px rgba(18, 54, 64, 0.12);
}

.metric:focus-visible {
  outline: 3px solid rgba(43, 122, 120, 0.24);
  outline-offset: 2px;
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
}

.metric strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 30px;
}

.metric.warning {
  background: var(--soft-warning);
}

.metric-chevron {
  position: absolute;
  right: 18px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.metric.expanded .metric-chevron {
  transform: rotate(225deg) translate(-2px, -2px);
}

.metric-actions-panel {
  position: relative;
  margin: -2px 0 20px;
  padding: 20px;
  border: 1px solid #c9d7d9;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: #f5f9f9;
}

.metric-actions-panel.has-actions {
  border-color: #e6c47a;
  border-left-color: #b26b00;
  background: #fffaf0;
  box-shadow: 0 8px 22px rgba(84, 57, 13, 0.08);
}

.metric-actions-panel[hidden] {
  display: none;
}

.metric-actions-header,
.metric-action-row {
  display: grid;
  align-items: center;
}

.metric-actions-header {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  margin-bottom: 14px;
}

.metric-actions-header h2 {
  margin-top: 3px;
  font-size: 20px;
}

.metric-actions-header h2 span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.required-actions-mark {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.has-actions .required-actions-mark {
  background: #b26b00;
}

.metric-actions-intro {
  max-width: 680px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.metric-action-row {
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 82px;
  border-top: 1px solid rgba(178, 107, 0, 0.2);
  padding: 14px 0;
}

.metric-action-row strong,
.metric-action-row small {
  display: block;
}

.metric-action-content {
  min-width: 0;
}

.metric-action-content strong {
  overflow-wrap: anywhere;
}

.metric-action-step {
  display: block;
  margin-bottom: 4px;
  color: #8a5200;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-action-row small {
  margin-top: 4px;
  color: var(--muted);
}

.metric-action-content p {
  margin-top: 7px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.metric-resolve-button {
  min-width: 142px;
  min-height: 40px;
  white-space: nowrap;
}

.metric-actions-complete {
  display: grid;
  gap: 3px;
  padding: 13px 0 2px 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.metric-actions-complete strong {
  color: var(--ink);
}

.priority-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2d7d46;
}

.priority-dot.medium {
  background: #d99418;
}

.priority-dot.critical {
  background: #c23b2e;
}

@media (max-width: 720px) {
  .metric-actions-panel {
    padding: 16px;
  }

  .metric-actions-header {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .required-actions-mark {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .metric-actions-header > .status {
    grid-column: 2;
    justify-self: start;
  }

  .metric-action-row {
    grid-template-columns: 10px minmax(0, 1fr);
    padding: 12px 0;
  }

  .metric-action-row .metric-resolve-button {
    grid-column: 2;
    justify-self: start;
    width: 100%;
  }

  .metric-actions-complete {
    padding-left: 50px;
  }
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.content-grid > * {
  min-width: 0;
}

.panel {
  padding: 18px;
}

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

.task-list {
  display: grid;
  gap: 12px;
}

.task {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.task > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
}

.task strong,
.task small {
  display: block;
}

.task small {
  color: var(--muted);
  margin-top: 3px;
}

.task.critical > span {
  background: var(--danger);
}

.task.medium > span {
  background: var(--warning);
}

.task.low > span {
  background: var(--ok);
}

.risk-bars,
.score-breakdown {
  display: grid;
  gap: 10px;
}

.risk-bars label,
.score-breakdown label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.empty-cell {
  color: var(--muted);
  padding: 28px 10px;
  text-align: center;
}

.document-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.document-link:hover {
  text-decoration: underline;
}

.document-library-header {
  align-items: flex-end;
}

.document-library {
  border-top: 4px solid var(--brand);
}

.document-library-header h2 {
  margin-top: 4px;
  font-size: 22px;
}

.document-library-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.document-search {
  width: min(100%, 420px);
}

.document-view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(72px, 1fr));
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f4;
}

.document-view-switch button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.document-view-switch button.active {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(18, 37, 47, 0.12);
  color: var(--ink);
}

.document-tree {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.document-tree-node {
  background: #ffffff;
}

.document-tree-node + .document-tree-node {
  border-top: 1px solid var(--line);
}

.document-tree-node > summary {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 10px 14px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.document-tree-node > summary::before {
  content: ">";
  width: 20px;
  color: var(--muted);
  font-weight: 900;
  transform: rotate(0deg);
  transition: transform 150ms ease;
}

.document-tree-node[open] > summary::before {
  transform: rotate(90deg);
}

.document-tree-node > summary::-webkit-details-marker {
  display: none;
}

.document-tree-node > summary::marker {
  content: "";
}

.document-tree-node > summary > span {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
}

.document-tree-node > summary strong,
.document-tree-node > summary small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.document-tree-node > summary small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.site-node > summary {
  background: #edf5f4;
}

.site-node > summary strong {
  font-size: 16px;
}

.category-node > summary {
  min-height: 50px;
  border-left: 3px solid #4f7b85;
  background: #f2f7f8;
}

.category-node > summary strong {
  font-size: 14px;
}

.asset-node > summary {
  background: #f8fafb;
}

.document-type-node > summary {
  min-height: 46px;
  padding-block: 8px;
}

.document-type-node > summary strong {
  font-size: 13px;
}

.document-tree-children {
  margin-left: 20px;
  border-left: 1px solid #cbd8db;
  padding-left: 14px;
}

.document-tree-children > .document-tree-node:last-child {
  border-bottom: 0;
}

.document-file-list {
  padding-bottom: 6px;
}

.document-tree-file {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 9px 12px 9px 8px;
  border-top: 1px solid var(--line);
}

.document-file-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.document-file-main > span:last-child {
  min-width: 0;
}

.document-file-main .document-link {
  display: block;
  overflow-wrap: anywhere;
}

.document-file-main small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.document-pdf-badge {
  display: inline-flex;
  width: 36px;
  height: 28px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3b7b3;
  border-radius: 5px;
  background: #fff4f2;
  color: #a83930;
  font-size: 10px;
  font-weight: 900;
}

.document-tree-empty {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 36px 18px;
  color: var(--muted);
  text-align: center;
}

.document-tree-empty strong {
  color: var(--ink);
}

.document-table[hidden],
.document-tree[hidden] {
  display: none;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.status,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.status.active,
.pill.low {
  background: var(--soft-ok);
  color: var(--ok);
}

.status.review,
.pill.medium {
  background: var(--soft-warning);
  color: var(--warning);
}

.status.danger,
.pill.high {
  background: var(--soft-danger);
  color: var(--danger);
}

.upload-zone {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 190px;
  margin-bottom: 18px;
  border-style: dashed;
  text-align: center;
  cursor: pointer;
}

.upload-zone span {
  color: var(--muted);
}

.file-input {
  display: none;
}

.upload-zone.busy {
  cursor: wait;
  opacity: 0.72;
}

.processing-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 29, 37, 0.58);
}

.processing-overlay[hidden] {
  display: none;
}

.processing-dialog {
  width: min(460px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(16, 29, 37, 0.28);
  padding: 26px;
}

.processing-dialog h2 {
  font-size: 20px;
}

.processing-dialog > small,
.processing-file {
  color: var(--muted);
}

.processing-file {
  margin: 9px 0 20px;
  overflow-wrap: anywhere;
}

.processing-spinner {
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 4px solid #d8e5e5;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: processing-spin 900ms linear infinite;
}

.processing-track {
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #e5ebef;
}

.processing-track span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  animation: processing-track 1500ms ease-in-out infinite;
}

.processing-phase {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-size: 14px;
}

.processing-phase > span {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--warning);
  animation: processing-pulse 1200ms ease-in-out infinite;
}

.processing-overlay.complete .processing-spinner {
  border-color: var(--ok);
  animation: none;
}

.processing-overlay.complete .processing-track span {
  width: 100%;
  animation: none;
  background: var(--ok);
}

.processing-overlay.complete .processing-phase > span {
  background: var(--ok);
  animation: none;
}

@keyframes processing-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes processing-track {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(290%);
  }
}

@keyframes processing-pulse {
  50% {
    opacity: 0.35;
  }
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 18px;
}

.analysis-history-panel {
  margin-top: 18px;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.table-secondary {
  display: block;
  max-width: 340px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: normal;
}

.document-preview {
  min-height: 460px;
}

.fake-pdf {
  min-height: 420px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.fake-pdf span {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.analysis-result {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.analysis-result div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.analysis-result dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.analysis-result dd {
  margin: 5px 0 0;
  font-weight: 700;
}

.asset-code {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.asset-code-inline {
  display: inline-block;
  margin-left: 6px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

#dashboard-risk-bars label small {
  color: var(--muted);
  font-size: 11px;
}

.analysis-result .asset-resolution {
  border-left: 3px solid var(--brand);
  padding-left: 12px;
}

.analysis-result .next-inspection-result {
  padding: 14px;
  border: 1px solid #78a99c;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: #f1faf7;
}

.analysis-result .next-inspection-result.overdue {
  border-color: #d39292;
  border-left-color: var(--danger);
  background: #fff4f3;
}

.next-inspection-result dd {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.next-inspection-result dd > strong {
  font-size: 19px;
}

.next-inspection-result small {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.asset-resolution dd {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.asset-resolution small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.asset-assignment-form {
  display: grid;
  gap: 16px;
  margin: 4px 0 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.asset-assignment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asset-assignment-header h3 {
  margin: 0;
  font-size: 17px;
}

.assignment-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px;
  background: #f5f7f8;
}

.assignment-mode label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.assignment-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.assignment-mode span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.assignment-mode input:checked + span {
  background: #ffffff;
  color: var(--brand-strong);
  box-shadow: 0 1px 4px rgba(19, 46, 48, 0.12);
}

.assignment-mode input:focus-visible + span {
  outline: 2px solid rgba(19, 95, 99, 0.28);
  outline-offset: 1px;
}

.asset-assignment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.asset-assignment-form label,
.asset-link-fields label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.asset-assignment-form input,
.asset-assignment-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
}

.asset-assignment-form input:focus,
.asset-assignment-form select:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(19, 95, 99, 0.15);
}

.asset-assignment-form input:disabled,
.asset-assignment-form select:disabled {
  background: #f5f7f8;
  color: var(--muted);
  cursor: not-allowed;
}

.due-date-review {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: end;
  gap: 8px 14px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7fafb;
}

.due-date-review legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.due-date-review label,
.due-date-review input {
  grid-column: 1;
}

.due-date-source {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  gap: 7px;
}

.due-date-review small {
  color: var(--muted);
  line-height: 1.45;
}

.due-date-source a {
  width: fit-content;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.due-date-review.resolved {
  border-color: #78a99c;
  background: #f1faf7;
}

.due-date-review.warning {
  border-color: #d69a35;
  background: #fff8e9;
}

.contract-review {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 14px;
  border: 1px solid #78a99c;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: #f1faf7;
}

.contract-review[hidden] {
  display: none;
}

.contract-review legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.contract-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.contract-review > small {
  color: var(--muted);
  line-height: 1.45;
}

.analysis-result .contract-result {
  padding: 14px;
  border: 1px solid #78a99c;
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  background: #f1faf7;
}

.resolution-task-selector {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid #d69a35;
  border-radius: 6px;
  background: #fff8e9;
}

.resolution-task-selector[hidden] {
  display: none;
}

.resolution-task-selector legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

#analysis-resolution-task-options {
  display: grid;
  gap: 8px;
}

.resolution-task-option {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0 !important;
  cursor: pointer;
}

.asset-assignment-form .resolution-task-option input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.resolution-task-option span,
.resolution-task-option strong,
.resolution-task-option small {
  display: block;
}

.resolution-task-option small,
.resolution-task-empty {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .due-date-review {
    grid-template-columns: minmax(0, 1fr);
  }

  .due-date-source {
    grid-column: 1;
    grid-row: auto;
  }
}

.analysis-items {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  font-weight: 500;
}

.analysis-items li {
  padding-left: 3px;
}

.analysis-items strong,
.analysis-items small,
.analysis-items q,
.analysis-items span {
  display: block;
}

.analysis-items span,
.analysis-items small {
  margin-top: 3px;
  color: var(--muted);
}

.analysis-items q {
  margin-top: 6px;
  color: var(--text);
  font-size: 13px;
  font-style: normal;
}

.analysis-items.compact {
  gap: 7px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.calendar-navigation {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-button {
  width: 40px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
}

.calendar-metrics .metric strong {
  font-size: 26px;
}

.calendar-panel {
  margin-bottom: 18px;
}

.calendar-attention-panel {
  margin-bottom: 18px;
}

.attention-overdue td:first-child strong,
.attention-overdue td:first-child small {
  color: var(--danger);
}

.calendar-scroll {
  overflow-x: auto;
  padding-bottom: 2px;
}

.calendar-weekdays,
.calendar-grid {
  min-width: 840px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.calendar-weekdays {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-weekdays span {
  padding: 5px;
}

.day {
  min-height: 128px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  background: #fbfcfd;
}

.day time {
  display: block;
  width: 28px;
  min-height: 24px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.day.today {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.day.today time {
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  text-align: center;
  line-height: 24px;
}

.day.muted {
  background: #f3f6f8;
}

.day.muted time {
  color: #9aa6b2;
}

.day.has-overdue {
  border-color: #e4aaa5;
}

.day-events {
  display: grid;
  gap: 4px;
  margin-top: 5px;
}

.day-events > small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.calendar-event {
  overflow: hidden;
  border-left: 3px solid var(--ok);
  border-radius: 4px;
  background: var(--soft-ok);
  color: var(--ok);
  padding: 4px 5px;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-event.medium {
  border-left-color: var(--warning);
  background: var(--soft-warning);
  color: #85510b;
}

.calendar-event.high,
.calendar-event.overdue {
  border-left-color: var(--danger);
  background: var(--soft-danger);
  color: var(--danger);
}

.calendar-bottom {
  align-items: start;
}

.notification-panel {
  min-height: 100%;
}

.notification-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-block: 1px solid var(--line);
  padding: 14px 0;
}

.notification-channel strong,
.notification-channel small,
.notification-delivery strong,
.notification-delivery span {
  display: block;
}

.notification-channel small,
.notification-delivery span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.toggle-control {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.toggle-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-control > span[aria-hidden="true"] {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 14px;
  background: #a8b4bd;
  transition: background 150ms ease;
}

.toggle-control > span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 150ms ease;
}

.toggle-control input:checked + span {
  background: var(--brand);
}

.toggle-control input:checked + span::after {
  transform: translateX(20px);
}

.toggle-control input:focus-visible + span {
  outline: 3px solid rgba(19, 95, 99, 0.22);
  outline-offset: 2px;
}

.toggle-control input:disabled + span {
  cursor: not-allowed;
  opacity: 0.55;
}

.reminder-options {
  margin: 18px 0;
  border: 0;
  padding: 0;
}

.reminder-options legend {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
}

.reminder-options > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.reminder-option,
.check-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.reminder-option {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
  background: #f8fafb;
}

.reminder-option input,
.check-control input {
  accent-color: var(--brand);
}

.notification-delivery {
  margin: 18px 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.panel-text {
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.5;
}

.radar-command-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #143238;
  color: #ffffff;
  padding: 24px;
}

.radar-command-band h2 {
  font-size: 24px;
}

.radar-command-band p:last-child {
  margin: 8px 0 0;
  color: #c7d7da;
  line-height: 1.5;
}

.radar-command-band .eyebrow {
  color: #69d4c6;
}

.radar-command-status {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.radar-command-status small {
  color: #b9ced2;
}

.radar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.radar-coverage-band {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) minmax(0, 4fr);
  align-items: stretch;
  gap: 0;
  margin: 0 0 18px;
  border-block: 1px solid var(--line);
  padding: 15px 0;
}

.radar-coverage-levels {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  min-width: 0;
}

.radar-coverage-intro,
.radar-coverage-level {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  padding: 4px 18px;
}

.radar-coverage-intro {
  padding-left: 0;
}

.radar-coverage-intro .eyebrow {
  margin: 0;
}

.radar-coverage-intro strong,
.radar-coverage-level strong,
.radar-coverage-level span {
  overflow-wrap: anywhere;
}

.radar-coverage-level {
  border-left: 1px solid var(--line);
}

.radar-coverage-level span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.radar-coverage-level strong {
  color: #607078;
  font-size: 14px;
}

.radar-coverage-level.active strong {
  color: #08786f;
}

.radar-coverage-level.warning strong {
  color: #9a5b00;
}

.territory-settings {
  margin: -2px 0 18px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
}

.territory-settings summary {
  width: fit-content;
  cursor: pointer;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.site-territory-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.radar-source-panel {
  margin-bottom: 18px;
}

#radar-metrics .metric {
  cursor: default;
}

#radar-metrics .metric:hover {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.radar-priority-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.radar-impact-list {
  display: grid;
}

.radar-impact-card {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.radar-impact-card:first-child {
  border-top: 0;
  padding-top: 4px;
}

.radar-impact-card.resolved {
  opacity: 0.72;
}

.radar-impact-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.radar-impact-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.radar-impact-heading small {
  color: var(--muted);
  font-size: 11px;
}

.radar-impact-card h3 {
  margin: 16px 0 7px;
  font-size: 17px;
}

.radar-impact-card > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.radar-impact-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.radar-impact-card dl div {
  min-width: 0;
  border-left: 2px solid #cfe0de;
  padding-left: 10px;
}

.radar-impact-card dt,
.radar-impact-card dd {
  margin: 0;
}

.radar-impact-card dt {
  color: var(--muted);
  font-size: 11px;
}

.radar-impact-card dd {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 750;
}

.radar-impact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-impact-actions .ghost-button,
.radar-impact-actions .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12px;
  text-decoration: none;
}

.radar-empty {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding: 24px 0 6px;
}

.radar-empty span {
  color: var(--muted);
  line-height: 1.5;
}

.radar-notification-panel {
  position: sticky;
  top: 18px;
}

.radar-notification-rule {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.radar-notification-rule span {
  color: var(--muted);
  font-size: 11px;
}

.radar-notification-rule strong {
  font-size: 13px;
}

.radar-notification-panel > .primary-button {
  width: 100%;
  margin-top: 6px;
}

.date-input {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 32px));
  border-radius: 8px;
  background: #17212b;
  color: #ffffff;
  padding: 13px 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: var(--danger);
}

.account-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 4px 0 22px;
  margin-bottom: 22px;
}

.account-band .panel-text {
  margin: 8px 0 0;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}

.plan-card.current {
  border-color: var(--brand);
  box-shadow: inset 0 3px 0 var(--brand);
}

.plan-card h3 {
  margin: 0;
  font-size: 18px;
}

.plan-price {
  min-height: 48px;
  margin: 14px 0;
  font-size: 28px;
  font-weight: 900;
}

.plan-price small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.plan-features {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.plan-card button {
  width: 100%;
  margin-top: auto;
}

.danger-button {
  border-color: #efc5c1;
  color: var(--danger);
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  text-decoration: none;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 2fr);
  gap: 18px;
}

.team-layout > * {
  min-width: 0;
}

.team-form {
  display: grid;
  gap: 14px;
}

.team-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.team-form input,
.team-form select,
.table-select,
.table-search {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 11px;
  font: inherit;
}

.team-form input:focus,
.team-form select:focus,
.table-select:focus,
.table-search:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(19, 95, 99, 0.15);
}

.table-select {
  min-width: 130px;
  min-height: 34px;
  font-size: 12px;
}

.table-search {
  width: min(100%, 280px);
}

.platform-users-panel {
  margin-top: 18px;
}

.admin-toolbar {
  align-items: flex-end;
}

.compact-button {
  min-height: 38px;
  padding: 0 14px;
  white-space: nowrap;
}

.asset-create-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 18px;
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.inventory-purpose-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
  border: 1px solid #c8dcda;
  border-left: 5px solid var(--brand);
  background: #f5faf9;
  padding: 20px 22px;
}

.inventory-purpose-copy h2 {
  font-size: 23px;
}

.inventory-purpose-copy > p:last-child {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.inventory-purpose-side {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.inventory-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
}

.inventory-summary > div {
  min-width: 0;
  border-left: 1px solid #c8dcda;
  padding: 0 16px;
}

.inventory-summary strong,
.inventory-summary span {
  display: block;
}

.inventory-summary strong {
  color: var(--ink);
  font-size: 23px;
  line-height: 1;
}

.inventory-summary span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.inventory-panel-header {
  align-items: flex-end;
}

.inventory-panel-header h2 {
  margin-top: 3px;
  font-size: 20px;
}

.inventory-table {
  min-width: 840px;
}

.inventory-table td {
  vertical-align: middle;
}

.inventory-table th:first-child,
.inventory-table td:first-child {
  width: 19%;
}

.inventory-table th:last-child,
.inventory-table td:last-child {
  width: 112px;
  text-align: right;
}

.inventory-asset-name strong {
  display: block;
  overflow-wrap: anywhere;
}

.inventory-next-control,
.inventory-open-record {
  white-space: nowrap;
}

.territory-form-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.territory-form-heading span {
  color: var(--muted);
  font-size: 12px;
}

.territory-edit-form {
  margin-top: 20px;
}

.technical-form {
  display: grid;
  gap: 14px;
}

.technical-form-grid,
.obligation-form,
.inspection-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.technical-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.technical-form input,
.technical-form select,
.technical-form textarea,
.evidence-select,
.technical-status-select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 11px;
  font: inherit;
}

.technical-form textarea {
  min-height: 76px;
  padding: 10px 11px;
  resize: vertical;
}

.technical-form input:focus,
.technical-form select:focus,
.technical-form textarea:focus,
.evidence-select:focus,
.technical-status-select:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(19, 95, 99, 0.15);
}

.form-span {
  grid-column: 1 / -1;
}

.technical-form-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.technical-empty {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.technical-empty strong {
  color: var(--ink);
}

.technical-workspace {
  margin-top: 18px;
}

.technical-record-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  background: #ffffff;
}

.technical-record-band h2 {
  margin: 2px 0 4px;
  font-size: 24px;
}

.technical-record-band > div > span {
  color: var(--muted);
  font-size: 13px;
}

.technical-health {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 14px;
  min-width: 190px;
  text-align: right;
}

.technical-health span {
  grid-row: 1 / 3;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 72px;
  border-radius: 6px;
  background: #edf1f3;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.technical-health strong {
  font-size: 28px;
  line-height: 1;
}

.technical-health small {
  color: var(--muted);
}

.technical-health.green span,
.legal-health.green {
  background: var(--soft-ok);
  color: var(--ok);
}

.technical-health.amber span,
.legal-health.amber {
  background: var(--soft-warning);
  color: var(--warning);
}

.technical-health.red span,
.legal-health.red {
  background: var(--soft-danger);
  color: var(--danger);
}

.technical-metrics {
  margin-top: 14px;
}

.technical-metrics .metric strong {
  font-size: 25px;
}

.technical-tabs {
  display: flex;
  gap: 2px;
  margin: 18px 0 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.technical-tab {
  min-height: 44px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.technical-tab.active {
  border-bottom-color: var(--brand);
  color: var(--brand);
}

.technical-tab-panel {
  display: none;
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.technical-tab-panel.active {
  display: block;
}

.technical-table {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.technical-table td {
  vertical-align: top;
}

.technical-primary,
.technical-secondary {
  display: block;
}

.technical-secondary {
  max-width: 360px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: normal;
}

.technical-status-select {
  min-width: 150px;
  min-height: 34px;
  font-size: 12px;
}

.evidence-control {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto;
  gap: 6px;
  min-width: 250px;
}

.evidence-select {
  min-height: 34px;
  font-size: 12px;
}

.evidence-list {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.evidence-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

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

.selected-inventory-row td {
  background: #f2f8f7;
}

.legal-health {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  border-radius: 6px;
  background: #edf1f3;
  color: var(--muted);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.technical-timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 24px;
}

.technical-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  background: var(--line);
}

.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr) auto;
  gap: 14px;
  padding: 0 0 20px;
}

.timeline-event::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -23px;
  width: 12px;
  height: 12px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-event time,
.timeline-event small {
  color: var(--muted);
  font-size: 12px;
}

.timeline-event strong,
.timeline-event small {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .processing-spinner,
  .processing-track span,
  .processing-phase > span {
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }

  .toast {
    transition: none;
  }
}

@media (max-width: 980px) {
  .marketing-header {
    grid-template-columns: 1fr auto;
  }

  .marketing-nav {
    display: none;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .radar-public-layout,
  .radar-priority-grid {
    grid-template-columns: 1fr;
  }

  .radar-public-layout {
    gap: 42px;
  }

  .radar-notification-panel {
    position: static;
  }

  .workflow-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 0;
  }

  .marketing-plan-grid {
    grid-template-columns: 1fr;
  }

  .marketing-plan {
    min-height: 0;
  }

  .sidebar {
    position: sticky;
    z-index: 40;
    top: 0;
    width: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
  }

  .sidebar .brand {
    margin: 0;
  }

  .sidebar .brand-mark {
    width: 36px;
    height: 36px;
  }

  .sidebar .nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sidebar .nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar .nav-item {
    flex: 0 0 auto;
    padding: 9px 12px;
    white-space: nowrap;
  }

  .sidebar .pilot-card {
    margin: 0;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .sidebar .pilot-card > span,
  .sidebar .pilot-card > strong,
  .sidebar .pilot-card > small {
    display: none;
  }

  .sidebar .sidebar-action {
    padding: 0;
    white-space: nowrap;
  }

  .main {
    margin-left: 0;
    padding: 18px;
  }

  .metric-grid,
  .content-grid,
  .score-band,
  .analysis-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .radar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .radar-command-band {
    grid-template-columns: 1fr;
  }

  .radar-command-status {
    justify-items: start;
  }

  .radar-coverage-band {
    grid-template-columns: 1fr;
  }

  .radar-coverage-intro {
    grid-column: 1 / -1;
    padding: 4px 0 12px;
  }

  .radar-coverage-levels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radar-coverage-level:nth-child(odd) {
    border-left: 0;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .account-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .team-layout {
    grid-template-columns: 1fr;
  }

  .asset-create-form,
  .asset-assignment-grid,
  .contract-review-grid,
  .technical-form-grid,
  .obligation-form,
  .inspection-form,
  .site-territory-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .inventory-purpose-band {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .inventory-purpose-side {
    justify-items: stretch;
  }

  .inventory-summary {
    width: 100%;
  }

  .inventory-summary > div {
    padding: 0 10px;
  }

  .inventory-summary > div:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .inventory-purpose-side > .ghost-button {
    justify-self: start;
  }

  .document-library-header {
    align-items: flex-start;
  }

  .document-library-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .document-search,
  .document-view-switch {
    width: 100%;
  }

  .document-tree-children {
    margin-left: 6px;
    padding-left: 9px;
  }

  .document-tree-node > summary > span {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .document-tree-node > summary small {
    text-align: left;
  }

  .document-tree-file {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .document-tree-file > .table-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .sidebar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 14px;
  }

  .sidebar .brand span {
    display: none;
  }

  .sidebar .nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .asset-create-form,
  .asset-assignment-grid,
  .contract-review-grid,
  .technical-form-grid,
  .obligation-form,
  .inspection-form,
  .site-territory-form {
    grid-template-columns: 1fr;
  }

  .technical-record-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .technical-health {
    width: 100%;
    text-align: left;
  }

  .timeline-event {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .technical-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-container,
  .marketing-header {
    width: min(100% - 32px, 1180px);
  }

  .marketing-header {
    min-height: 70px;
    gap: 10px;
  }

  .marketing-header .brand-mark {
    width: 36px;
    height: 36px;
  }

  .marketing-header .marketing-brand small {
    display: none;
  }

  .marketing-actions {
    gap: 6px;
  }

  .marketing-actions .marketing-login,
  .marketing-actions .marketing-primary {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .marketing-hero {
    min-height: 82svh;
    background-position: 58% center;
  }

  .marketing-hero::before {
    background: rgba(7, 25, 31, 0.58);
  }

  .hero-content {
    padding-top: 86px;
  }

  .marketing-hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    margin: 18px 0 22px;
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 310px;
  }

  .marketing-section,
  .product-band,
  .radar-public-band {
    padding: 64px 0;
  }

  .section-intro {
    margin-bottom: 34px;
  }

  .section-intro h2,
  .product-copy h2,
  .radar-public-copy h2,
  .marketing-cta h2 {
    font-size: 30px;
  }

  .section-intro > p:last-child,
  .product-copy > p,
  .marketing-cta > .marketing-container > p:not(.marketing-eyebrow) {
    font-size: 15px;
  }

  .value-grid,
  .workflow-list {
    grid-template-columns: 1fr;
  }

  .value-grid article,
  .value-grid article + article {
    border-right: 0;
    border-bottom: 1px solid #dce3e7;
    padding: 24px 0;
  }

  .value-grid article:last-child {
    border-bottom: 0;
  }

  .value-grid h3 {
    margin-top: 18px;
  }

  .product-layout {
    gap: 34px;
  }

  .radar-public-layout {
    gap: 34px;
  }

  .radar-public-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .radar-console-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding-block: 10px;
  }

  .radar-console-change,
  .radar-console-document {
    margin-inline: 14px;
    padding: 13px;
  }

  .dashboard-radar-band {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .dashboard-radar-band .ghost-button {
    grid-column: 2;
    justify-self: start;
  }

  .radar-command-band {
    padding: 20px;
  }

  .radar-coverage-band {
    grid-template-columns: 1fr;
  }

  .radar-coverage-levels {
    grid-template-columns: 1fr;
  }

  .radar-coverage-level,
  .radar-coverage-level:nth-child(odd) {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 11px 0;
  }

  .radar-impact-heading > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .radar-impact-card dl {
    grid-template-columns: 1fr;
  }

  .product-window-bar {
    grid-template-columns: auto 1fr;
  }

  .product-window-bar i {
    display: none;
  }

  .product-score {
    grid-template-columns: 88px 1fr;
  }

  .product-metrics div {
    padding: 12px;
  }

  .product-metrics small {
    min-height: 30px;
  }

  .product-obligations > div {
    grid-template-columns: 9px 1fr;
  }

  .product-obligations b {
    display: none;
  }

  .workflow-list {
    gap: 0;
  }

  .workflow-list li,
  .workflow-list li + li {
    padding: 22px 0;
  }

  .workflow-list li > span {
    margin-bottom: 14px;
  }

  .marketing-cta {
    padding: 68px 0;
  }

  .marketing-footer .marketing-container {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    padding: 28px 0;
  }

  .marketing-footer p {
    margin: 0;
  }

  .main {
    padding: 14px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .calendar-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .calendar-metrics {
    grid-template-columns: 1fr;
  }

  .reminder-options > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-screen {
    padding: 12px;
  }

  .auth-panel {
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .table-search {
    width: 100%;
  }
}
