:root {
  color: #18201d;
  background: #f5f7f4;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

[data-page]:not(.view-active) {
  display: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background:
    radial-gradient(circle at top left, rgba(61, 128, 100, 0.16), transparent 34rem),
    linear-gradient(180deg, #fbfcfa 0%, #eef3ee 100%);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 18px;
  border-right: 1px solid #dfe7de;
  background: rgba(249, 251, 248, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 18px;
  border-bottom: 1px solid #dfe7de;
}

.brand-mark,
.metric-icon,
.recommendation-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: #285b46;
}

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

.brand strong {
  font-size: 1.05rem;
}

.brand span {
  color: #69756d;
  font-size: 0.85rem;
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item,
.settings {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #526158;
  background: transparent;
  text-align: left;
  text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
  color: #15231d;
  background: #e7eee7;
}

.settings {
  margin-top: auto;
}

.sidebar-panel {
  padding: 16px;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(40, 91, 70, 0.08);
}

.sidebar-panel strong,
.sidebar-panel p {
  display: block;
}

.sidebar-panel strong {
  margin-top: 10px;
}

.sidebar-panel p {
  margin: 8px 0 0;
  color: #69756d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.main {
  min-width: 0;
  padding: 18px;
}

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

.search {
  flex: 1;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dfe7de;
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.8);
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #18201d;
}

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

.icon-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.icon-button {
  min-width: 42px;
  padding: 0 10px;
  color: #27352e;
  border-color: #dfe7de;
  background: #fff;
}

.icon-button.active {
  color: #fff;
  background: #1f5c45;
  border-color: #1f5c45;
}

.alert-button {
  position: relative;
}

.alert-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #b8442c;
  font-size: 0.72rem;
  font-weight: 900;
}

.primary-button {
  padding: 0 16px;
  color: #fff;
  background: #1f5c45;
  box-shadow: 0 14px 32px rgba(31, 92, 69, 0.22);
}

.secondary-button {
  padding: 0 15px;
  color: #26342d;
  border-color: #dfe7de;
  background: #fff;
}

a.secondary-button {
  text-decoration: none;
}

.billing-link {
  font-weight: 700;
}

.upload-control {
  position: relative;
  overflow: hidden;
}

.upload-control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.hero-band {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 22px;
  align-items: stretch;
  padding: 34px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18, 45, 36, 0.96), rgba(37, 96, 74, 0.92)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=80");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 356px;
  max-width: 740px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #dcefe6;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  color: #e1ece6;
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-copy .secondary-button {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.hero-visual {
  display: flex;
  align-items: center;
}

.pulse-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.pulse-card-header,
.pulse-footer,
.pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-pill {
  padding: 6px 9px;
  border-radius: 999px;
  color: #143327;
  background: #bbecd1;
  font-size: 0.78rem;
  font-weight: 700;
}

.radar {
  display: grid;
  gap: 15px;
  margin: 26px 0;
}

.radar-row {
  display: grid;
  grid-template-columns: 88px 1fr 72px;
  align-items: center;
  gap: 12px;
}

.radar-row span,
.radar-row small {
  color: #eaf3ee;
}

.radar-track,
.mini-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.radar-track div,
.mini-track div {
  height: 100%;
  border-radius: inherit;
  background: #bbecd1;
}

.pulse-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.pulse-footer strong,
.pulse-footer span {
  display: block;
}

.pulse-footer strong {
  font-size: 1.35rem;
}

.pulse-footer span {
  color: #d8e6df;
  font-size: 0.84rem;
}

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

.metric-card,
.panel,
.trust-band {
  border: 1px solid #dfe7de;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(36, 60, 45, 0.07);
}

.metric-card {
  min-height: 154px;
  padding: 18px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: #657169;
}

.metric-card span {
  margin-top: 16px;
}

.metric-card strong {
  display: block;
  margin-top: 7px;
  color: #18201d;
  font-size: 2rem;
}

.metric-card small {
  margin-top: 8px;
}

.metric-icon {
  color: #183126;
  background: #d9f0e3;
}

.metric-icon.danger {
  color: #5f2d1c;
  background: #ffe1d4;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.ai-builder {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.builder-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow.dark {
  margin-bottom: 14px;
  color: #25533f;
  border-color: #cce3d5;
  background: #ecf8f1;
}

.builder-copy h2 {
  margin-bottom: 10px;
  font-size: 1.65rem;
  line-height: 1.15;
}

.builder-copy p {
  margin: 0;
  color: #66736b;
  line-height: 1.55;
}

.demo-meter {
  width: fit-content;
  margin-top: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #214b39;
  background: #e4f3ea;
  font-size: 0.86rem;
  font-weight: 800;
}

.builder-workspace {
  display: grid;
  gap: 10px;
}

.builder-workspace label {
  color: #33453b;
  font-weight: 800;
}

.builder-workspace textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  padding: 14px;
  color: #18201d;
  background: #fbfdfb;
  font: inherit;
  line-height: 1.55;
  outline: 0;
}

.builder-workspace textarea:focus {
  border-color: #2b7155;
  box-shadow: 0 0 0 3px rgba(43, 113, 85, 0.14);
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.generated-plan {
  min-height: 276px;
  display: grid;
  gap: 10px;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  padding: 14px;
  background: #fbfdfb;
}

.empty-plan {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 230px;
  color: #657169;
  text-align: center;
}

.empty-plan strong,
.empty-plan span {
  display: block;
}

.empty-plan strong {
  margin-bottom: 6px;
  color: #23342b;
}

.plan-card {
  padding: 12px;
  border: 1px solid #e2ebe1;
  border-radius: 8px;
  background: #ffffff;
}

.plan-card h3 {
  margin-bottom: 7px;
  font-size: 0.96rem;
}

.plan-card p {
  margin: 0;
  color: #5f6d65;
  line-height: 1.45;
}

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

.plan-metric {
  padding: 10px;
  border-radius: 8px;
  color: #173126;
  background: #e9f6ef;
}

.plan-metric strong,
.plan-metric span {
  display: block;
}

.plan-metric strong {
  font-size: 1.05rem;
}

.plan-metric span {
  margin-top: 3px;
  color: #4e6256;
  font-size: 0.78rem;
}

.lower-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
}

.panel {
  min-width: 0;
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.panel-heading h2 {
  margin-bottom: 5px;
  font-size: 1.28rem;
}

.panel-heading p {
  margin-bottom: 0;
  color: #6b776e;
  line-height: 1.45;
}

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

table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

th {
  padding: 0 14px 12px;
  color: #6c7970;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: left;
}

td {
  padding: 16px 14px;
  border-top: 1px solid #edf2ec;
  color: #25332c;
  vertical-align: middle;
}

td strong,
td span {
  display: block;
}

td span {
  margin-top: 5px;
  color: #748077;
  font-size: 0.84rem;
}

.efficiency {
  display: grid;
  grid-template-columns: minmax(96px, 1fr) 44px;
  align-items: center;
  gap: 10px;
}

.mini-track {
  background: #edf2ec;
}

.mini-track div {
  background: #2b7155;
}

.risk {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 7px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.risk.low {
  color: #175d42;
  background: #ddf5e8;
}

.risk.medium {
  color: #69510e;
  background: #fff1be;
}

.risk.high {
  color: #7b2a1a;
  background: #ffe1d6;
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin: 0;
  font-weight: 800;
}

.trend.up {
  color: #16764f;
}

.trend.down {
  color: #af3b25;
}

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

.recommendation {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  padding: 15px;
  border: 1px solid #e4ebe2;
  border-radius: 8px;
  background: #fbfdfb;
}

.recommendation h3 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.recommendation p {
  margin-bottom: 12px;
  color: #647168;
  line-height: 1.5;
}

.recommendation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recommendation-meta span {
  padding: 6px 8px;
  border-radius: 999px;
  color: #214b39;
  background: #e4f3ea;
  font-size: 0.79rem;
  font-weight: 800;
}

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

.segment {
  appearance: none;
  display: block;
  width: 100%;
  min-height: 176px;
  padding: 17px;
  border: 1px solid #e1e9df;
  border-radius: 8px;
  background: #fbfdfb;
  color: inherit;
  text-align: left;
}

.segment:hover {
  border-color: #2b7155;
  background: #f0f8f3;
}

.segment h3 {
  margin: 14px 0 8px;
  font-size: 1rem;
}

.segment p {
  margin: 0;
  color: #66736b;
  line-height: 1.5;
}

.pricing-list {
  display: grid;
  gap: 10px;
}

.queue-calculator {
  margin-bottom: 18px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
}

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

.calculator-actions {
  display: flex;
  align-items: center;
}

.calculator-plan-note {
  max-width: 660px;
  margin: 10px 0 0;
  color: #486153;
  line-height: 1.5;
}

.calculator-form label {
  display: grid;
  gap: 7px;
  color: #33453b;
  font-weight: 800;
  line-height: 1.3;
}

.calculator-form input {
  min-height: 42px;
  width: 100%;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  padding: 0 12px;
  color: #18201d;
  background: #fbfdfb;
  outline: 0;
}

.calculator-form select {
  min-height: 42px;
  width: 100%;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  padding: 0 12px;
  color: #18201d;
  background: #fbfdfb;
  outline: 0;
}

.calculator-form input:focus,
.calculator-form select:focus {
  border-color: #2b7155;
  box-shadow: 0 0 0 3px rgba(43, 113, 85, 0.14);
}

.wide-field,
.industry-context {
  grid-column: 1 / -1;
}

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

.industry-context {
  padding: 14px;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  color: #294738;
  background: #eef8f2;
  line-height: 1.5;
}

.calculator-results article {
  min-height: 106px;
  padding: 15px;
  border: 1px solid #e1e9df;
  border-radius: 8px;
  background: #fbfdfb;
}

.calculator-results span,
.calculator-results strong {
  display: block;
}

.calculator-results span {
  color: #66736b;
}

.calculator-results strong {
  margin-top: 8px;
  color: #18201d;
  font-size: 1.55rem;
}

.wide-result,
.calculator-results p {
  grid-column: 1 / -1;
}

.calculator-results p {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  color: #214b39;
  background: #e9f6ef;
  line-height: 1.5;
}

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

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.security-grid article {
  min-height: 142px;
  padding: 15px;
  border: 1px solid #e1e9df;
  border-radius: 8px;
  background: #fbfdfb;
}

.security-grid strong,
.security-grid p {
  display: block;
}

.security-grid p {
  margin: 8px 0 0;
  color: #66736b;
  line-height: 1.45;
}

.security-action {
  width: fit-content;
  margin-top: 14px;
}

.pricing-row {
  padding: 15px;
  border: 1px solid #e1e9df;
  border-radius: 8px;
  background: #fbfdfb;
}

.pricing-row.featured {
  border-color: #2b7155;
  background: #eef8f2;
}

.pricing-row strong,
.pricing-row span {
  display: block;
}

.pricing-row strong {
  margin-bottom: 5px;
}

.pricing-row span {
  color: #68756d;
  line-height: 1.35;
}

.plan-features {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  color: #405349;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 20px;
  line-height: 1.42;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2b7155;
}

.pricing-row b {
  font-size: 1.08rem;
  white-space: nowrap;
}

.pricing-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkout-link,
.demo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.checkout-link {
  color: #fff;
  background: #1f5c45;
}

.checkout-link:hover {
  background: #173f31;
}

.demo-link {
  color: #234739;
  background: #e5f2eb;
}

.demo-link:hover {
  background: #d7eadf;
}

.demo-link:disabled {
  color: #6a776f;
  background: #e3e9e4;
  cursor: default;
}

.segment:disabled {
  cursor: default;
  opacity: 0.58;
}

.locked-plan {
  display: grid;
  gap: 12px;
  align-content: center;
  min-height: 230px;
  text-align: center;
}

.locked-plan strong {
  color: #18201d;
  font-size: 1.08rem;
}

.locked-plan p {
  margin: 0;
  color: #66736b;
  line-height: 1.5;
}

.locked-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.trust-band a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 10px;
  color: #365044;
  text-decoration: none;
}

.trust-band a:hover {
  background: #eef7f0;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 14px 16px;
  border: 1px solid #bcd6c8;
  border-radius: 8px;
  color: #153025;
  background: #f4fff8;
  box-shadow: 0 18px 48px rgba(33, 67, 50, 0.18);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.mobile-only {
  display: none;
}

.mobile-menu,
.menu-backdrop,
.alert-drawer,
.alert-backdrop {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 30;
  width: min(340px, 86vw);
  padding: 18px;
  border-right: 1px solid #dfe7de;
  background: #fbfdfb;
  box-shadow: 22px 0 60px rgba(33, 54, 42, 0.18);
  transform: translateX(-105%);
  transition: transform 180ms ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dfe7de;
}

.mobile-menu-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.mobile-menu-list a {
  min-height: 44px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #26342d;
  background: #eef5ef;
  text-align: left;
  text-decoration: none;
}

.mobile-menu-list a:hover {
  background: #dfece3;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  border: 0;
  background: rgba(17, 28, 22, 0.38);
}

.alert-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  width: min(440px, 92vw);
  padding: 18px;
  border-left: 1px solid #dfe7de;
  background: #fbfdfb;
  box-shadow: -22px 0 60px rgba(33, 54, 42, 0.18);
  overflow-y: auto;
  transform: translateX(105%);
  transition: transform 180ms ease;
}

.alert-drawer.open {
  transform: translateX(0);
}

.alert-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dfe7de;
}

.alert-drawer-header strong,
.alert-drawer-header span {
  display: block;
}

.alert-drawer-header span {
  margin-top: 4px;
  color: #66736b;
  line-height: 1.35;
}

.alert-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.alert-card {
  padding: 14px;
  border: 1px solid #e1e9df;
  border-radius: 8px;
  background: #fff;
}

.alert-card.resolved {
  opacity: 0.68;
}

.alert-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.alert-card h3 {
  margin: 0;
  font-size: 1rem;
}

.alert-severity {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.alert-severity.high {
  color: #7b2a1a;
  background: #ffe1d6;
}

.alert-severity.medium {
  color: #69510e;
  background: #fff1be;
}

.alert-card p {
  margin: 0 0 10px;
  color: #5f6d65;
  line-height: 1.45;
}

.alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.alert-meta span {
  padding: 6px 8px;
  border-radius: 999px;
  color: #214b39;
  background: #e4f3ea;
  font-size: 0.78rem;
  font-weight: 800;
}

.resolution-note {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.resolution-note label {
  color: #33453b;
  font-size: 0.88rem;
  font-weight: 800;
}

.resolution-note textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid #dce8dc;
  border-radius: 8px;
  padding: 10px;
  color: #18201d;
  background: #fbfdfb;
  font: inherit;
  line-height: 1.45;
  outline: 0;
}

.resolution-note textarea:focus {
  border-color: #2b7155;
  box-shadow: 0 0 0 3px rgba(43, 113, 85, 0.14);
}

.resolution-note.saved {
  padding: 10px;
  border-radius: 8px;
  background: #f2f8f4;
}

.resolution-note.saved p {
  margin: 0;
}

.resolve-alert {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: #1f5c45;
  font-weight: 800;
}

.resolve-alert:disabled {
  color: #526158;
  background: #e3ebe4;
  cursor: default;
}

.alert-backdrop {
  position: fixed;
  inset: 0;
  z-index: 32;
  border: 0;
  background: rgba(17, 28, 22, 0.38);
}

.alert-drawer {
  display: block;
}

.alert-backdrop.open {
  display: block;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  .mobile-menu {
    display: block;
  }

  .menu-backdrop.open {
    display: block;
  }

  .hero-band,
  .ai-builder,
  .workspace-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .trust-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 720px) {
  .main {
    padding: 12px;
  }

  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .search {
    order: 3;
    flex-basis: 100%;
  }

  .topbar-actions {
    flex: 1;
    justify-content: flex-end;
  }

  .topbar-actions .secondary-button {
    display: none;
  }

  .topbar-actions .primary-button span {
    display: none;
  }

  .hero-band {
    padding: 22px;
  }

  .hero-copy {
    min-height: auto;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .radar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .pulse-footer,
  .panel-heading,
  .pricing-row,
  .pricing-action {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .plan-metrics,
  .segment-grid,
  .security-grid,
  .calculator-form,
  .calculator-results,
  .trust-band {
    grid-template-columns: 1fr;
  }
}
