:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-translucent: rgba(255, 255, 255, 0.94);
  --surface-2: #eef3f7;
  --surface-soft: #fbfdfe;
  --surface-hover: #f8fbfd;
  --surface-panel: #f8fafc;
  --text: #17212b;
  --text-strong: #132634;
  --text-soft: #405264;
  --text-subtle: #435466;
  --muted: #667789;
  --muted-soft: #7a8999;
  --muted-faint: #9aa7b4;
  --line: #d8e0e7;
  --line-soft: #e8eef3;
  --line-subtle: #eef3f6;
  --line-mid: #dfe7ed;
  --line-section: #d7e1e8;
  --line-row: #dfe8ee;
  --line-panel: #cbd8e2;
  --line-control: #c6d3dd;
  --line-control-hover: #9fb3c2;
  --line-accent: #bfd0dc;
  --line-selected: #b6cfdf;
  --line-warning: #f1d5a3;
  --line-danger: #efc7c7;
  --primary: #195b7a;
  --primary-strong: #12445c;
  --brand-stroke: #0f3f56;
  --accent: #f0b15d;
  --green: #1f7a4d;
  --amber: #9a6518;
  --red: #a83d3d;
  --blue: #2d5f9a;
  --success-bg: #e2f3ea;
  --warning-bg: #fff0d7;
  --danger-bg: #f8dddd;
  --danger-bg-soft: #fff4f4;
  --danger-bg-faint: #fffafa;
  --info-bg: #e3eefc;
  --selected-bg: #f4fafc;
  --focus-ring: rgba(25, 91, 122, 0.16);
  --focus-ring-soft: rgba(25, 91, 122, 0.13);
  --control-shadow: 0 1px 0 rgba(24, 42, 56, 0.04);
  --control-shadow-soft: 0 1px 0 rgba(24, 42, 56, 0.03);
  --control-shadow-faint: 0 1px 0 rgba(17, 24, 39, 0.02);
  --shadow: 0 8px 24px rgba(25, 42, 54, 0.07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.42;
}

[hidden] {
  display: none !important;
}

body:not(.auth-page) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-translucent);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.brand-mark svg,
.brand-mark img {
  display: block;
  width: 30px;
  height: 30px;
}

.brand-mark img {
  border-radius: 8px;
  object-fit: cover;
}

.brand-mark rect {
  fill: var(--primary);
  stroke: var(--brand-stroke);
  stroke-width: 1.25;
}

.brand-lanes,
.brand-route,
.brand-deadline {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-lanes {
  stroke: var(--surface);
  stroke-width: 1.4;
  opacity: 0.42;
}

.brand-route {
  stroke: var(--accent);
  stroke-width: 2.8;
}

.brand-deadline {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 1.25;
}

.brand-wordmark {
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-wordmark span {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-email {
  color: var(--muted);
  font-size: 12px;
}

.page {
  width: min(100% - 36px, 1240px);
  min-width: 0;
  margin: 22px auto 48px;
  flex: 1 0 auto;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--primary);
  color: var(--surface);
}

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

.button-secondary {
  border-color: var(--line);
}

.button-ghost {
  border-color: var(--line);
  background: transparent;
}

.button-muted {
  color: var(--muted);
}

.button-danger {
  color: var(--red);
}

.button-danger:hover {
  border-color: var(--line-danger);
  background: var(--danger-bg-soft);
}

.button-small {
  min-height: 26px;
  padding: 0 8px;
  font-size: 12px;
}

.button-form {
  margin: 0;
}

.button-form .button {
  width: 100%;
}

.page-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.page-back-link:hover {
  color: var(--text);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.dashboard-onboarding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid var(--line-panel);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--control-shadow-soft);
}

.dashboard-onboarding span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.dashboard-onboarding strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
}

.dashboard-onboarding p {
  max-width: 680px;
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-onboarding nav {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.metric {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--muted);
  border-left: 0;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.metric:hover,
.metric.is-active {
  border-color: var(--line-accent);
  background: var(--surface-soft);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
}

.metric .metric-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.metric .metric-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-icon {
  display: inline-flex;
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface-soft);
}

.metric-icon svg {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(-50%, -50%);
}

.metric-symbol-dollar svg {
  transform: translate(calc(-50% - 0.25px), -50%);
}

.metric-symbol-calendar-check svg {
  transform: translate(-50%, calc(-50% + 0.2px));
}

.metric-icon-danger {
  border-color: #efd1d1;
  background: var(--danger-bg-faint);
  color: var(--red);
}

.metric-icon-warning {
  border-color: #f0d8ad;
  background: #fff8ec;
  color: var(--amber);
}

.metric-icon-info {
  border-color: #c9d9ee;
  background: #f3f8ff;
  color: var(--blue);
}

.metric-icon-good {
  border-color: #cbe5d7;
  background: #f1faf5;
  color: var(--green);
}

.metric-icon-neutral {
  border-color: #c7d9e3;
  background: #f3f8fa;
  color: var(--primary);
}

.metric strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric em {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-danger {
  border-top-color: var(--red);
}

.metric-warning {
  border-top-color: var(--amber);
}

.metric-info {
  border-top-color: var(--blue);
}

.metric-good {
  border-top-color: var(--green);
}

.dashboard-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.dashboard-report {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}

.dashboard-report-heading,
.dashboard-report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.dashboard-report-heading {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-soft);
}

.dashboard-report-heading span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-report-heading strong {
  color: var(--muted);
  font-size: 11px;
}

.dashboard-report-list {
  display: grid;
}

.dashboard-report-row {
  min-height: 31px;
  padding: 6px 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
}

.dashboard-report-row:first-child {
  border-top: 0;
}

.dashboard-report-row span {
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-report-row strong {
  color: var(--muted);
  font-size: 11px;
}

.dashboard-report-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.dashboard-report-row.is-empty span {
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px auto;
  align-items: end;
  gap: 10px;
  margin-bottom: 12px;
}

label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 7px 9px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--focus-ring);
  border-color: var(--primary);
}

.search-control {
  position: relative;
  display: block;
  margin: 0;
}

.search-control input {
  padding-right: 34px;
}

.search-control input::-webkit-search-cancel-button,
.search-control input::-webkit-search-decoration {
  appearance: none;
  -webkit-appearance: none;
}

.search-control input[type="search"] {
  appearance: textfield;
  -webkit-appearance: textfield;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  transform: translateY(-50%);
}

.search-clear:hover {
  background: var(--line);
  color: var(--text);
}

.table-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pagination strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

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

th,
td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sort-button {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-transform: inherit;
}

.sort-button::after {
  content: "↕";
  color: var(--muted-faint);
  font-size: 11px;
}

.sort-button.is-active {
  color: var(--text);
}

.sort-button.is-active[data-direction="asc"]::after {
  content: "↑";
}

.sort-button.is-active[data-direction="desc"]::after {
  content: "↓";
}

tr:last-child td {
  border-bottom: 0;
}

.renewal-row {
  cursor: pointer;
}

.renewal-row:hover td,
.renewal-row:focus td,
.renewal-row.is-expanded td {
  background: var(--surface-hover);
}

.renewal-row:focus {
  outline: 3px solid var(--focus-ring);
  outline-offset: -3px;
}

.renewal-row.is-expanded td {
  border-bottom-color: transparent;
}

.renewal-title-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.renewal-title-cell > div {
  min-width: 0;
}

.renewal-type-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--surface-soft);
  color: var(--primary);
}

.renewal-type-icon svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.renewal-type-icon-software {
  border-color: #c6d9e4;
  background: #f0f7fa;
  color: var(--primary);
}

.renewal-type-icon-cloud {
  border-color: #c5d9ee;
  background: #f2f8ff;
  color: var(--blue);
}

.renewal-type-icon-shield {
  border-color: #c9e2d4;
  background: #f1faf5;
  color: var(--green);
}

.renewal-type-icon-building {
  border-color: #d7d0eb;
  background: #f6f3fc;
  color: #57509a;
}

.renewal-type-icon-finance {
  border-color: #f0d8ad;
  background: #fff8ec;
  color: var(--amber);
}

.renewal-type-icon-contract {
  border-color: var(--line-mid);
  background: var(--surface-panel);
  color: var(--muted);
}

.renewal-detail-row td {
  padding: 0 10px 10px;
  background: var(--surface-hover);
}

.renewal-detail {
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

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

.detail-section {
  min-width: 0;
  padding: 0 14px;
  border-left: 1px solid var(--line-soft);
}

.detail-section:first-child,
.detail-section:nth-child(5) {
  padding-left: 0;
  border-left: 0;
}

.detail-section-wide {
  grid-column: span 2;
  padding-top: 9px;
  margin-top: 10px;
  border-top: 1px solid var(--line-subtle);
}

.detail-section h3 {
  margin: 0 0 6px;
  color: var(--muted-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-line {
  display: grid;
  grid-template-columns: minmax(78px, 0.78fr) minmax(0, 1.22fr);
  gap: 8px;
  align-items: start;
  padding: 3px 0;
}

.detail-line span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.detail-line strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.detail-line strong.is-empty,
.detail-note p.is-empty {
  color: var(--muted-faint);
  font-weight: 700;
}

.detail-line-tall strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.detail-line strong.is-negative {
  color: var(--red);
}

.detail-note p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: pre-wrap;
}

.detail-note {
  grid-column: span 2;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 7px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.item-name {
  display: block;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.item-name:hover {
  color: var(--primary);
}

.subtext {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.due-days {
  font-weight: 700;
}

.due-days.is-negative {
  color: var(--red);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-overdue {
  background: var(--danger-bg);
  color: var(--red);
}

.badge-notice,
.badge-soon {
  background: var(--warning-bg);
  color: var(--amber);
}

.badge-upcoming {
  background: var(--info-bg);
  color: var(--blue);
}

.badge-later {
  background: var(--success-bg);
  color: var(--green);
}

.badge-scheduled {
  background: var(--success-bg);
  color: var(--green);
}

.reminder-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.reminder-fieldset legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

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

.checkbox-card {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: border-color 0.14s ease, background 0.14s ease;
}

.checkbox-card:has(input:checked) {
  border-color: var(--line-selected);
  background: var(--selected-bg);
}

.checkbox-card input {
  width: 14px;
  min-height: 14px;
  margin: 0;
}

.checkbox-card span {
  margin: 0;
  color: var(--text);
  font-size: 12px;
}

.actions-col {
  width: 220px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
}

.actions form {
  display: inline-flex;
  margin: 0;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.renewal-form {
  display: grid;
  gap: 12px;
}

.record-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line-panel);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--control-shadow);
}

.record-view-bar.is-editing {
  border-left-color: var(--green);
}

.record-view-bar span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.record-view-bar strong {
  color: var(--text);
  font-size: 12px;
}

.record-cycle-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--line-panel);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  background: var(--surface-soft);
}

.record-cycle-action span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.record-cycle-action strong {
  display: block;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
}

.record-cycle-buttons {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.renewal-form > .alert {
  width: 100%;
}

.form-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-section-heading h2,
.reminder-fieldset legend {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

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

.form-section-grid > *,
.record-form-fields > *,
.renewal-form label,
.settings-fieldset,
.checkbox-card,
.data-transfer-row > *,
.document-upload-form > * {
  min-width: 0;
}

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

.renewal-form .reminder-fieldset {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  grid-column: 1 / -1;
  gap: 16px;
}

.renewal-form .reminder-fieldset .checkbox-grid,
.renewal-form .reminder-fieldset .field-error {
  grid-column: 2;
}

.renewal-form-actions {
  justify-content: flex-end;
  padding: 4px 0 0;
}

.deadline-preview {
  display: grid;
  grid-template-columns: minmax(120px, 0.65fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-accent);
  border-radius: 7px;
  background: var(--surface-soft);
}

.deadline-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.deadline-preview strong {
  font-size: 14px;
}

.deadline-preview em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.record-editor-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 820px);
  align-items: start;
  gap: 44px;
  justify-content: center;
  padding-top: 2px;
}

.record-editor-main {
  border-top: 1px solid var(--line-section);
  border-bottom: 1px solid var(--line-section);
  background: transparent;
}

.editor-section {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line-mid);
}

.editor-section:first-child {
  border-top: 0;
}

.editor-section-heading {
  min-width: 0;
}

.editor-section-heading span {
  display: block;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.editor-section-heading h2 {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

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

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

.record-editor input,
.record-editor select {
  min-height: 42px;
  border-color: var(--line-panel);
  border-radius: 8px;
  background: var(--surface-translucent);
  box-shadow: var(--control-shadow-soft);
}

.record-editor textarea {
  min-height: 112px;
  border-color: var(--line-panel);
  border-radius: 8px;
  background: var(--surface-translucent);
  box-shadow: var(--control-shadow-soft);
}

.record-editor .reminder-fieldset {
  display: block;
  grid-column: auto;
}

.record-editor .reminder-fieldset legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.record-editor .reminder-fieldset .checkbox-grid,
.record-editor .reminder-fieldset .field-error {
  grid-column: auto;
}

.record-editor .checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.record-editor .checkbox-card {
  flex: 0 0 auto;
  min-height: 36px;
  min-width: 138px;
  padding: 7px 9px;
  border-color: var(--line-panel);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--control-shadow-faint);
}

.record-editor label span,
.record-editor .reminder-fieldset legend {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.record-editor .checkbox-card span {
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
}

.record-editor-rail {
  position: sticky;
  top: 68px;
  display: grid;
  gap: 18px;
  padding-top: 2px;
}

.rail-summary {
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line-section);
}

.rail-summary span,
.rail-facts span {
  display: block;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.rail-summary strong {
  display: block;
  color: var(--text);
  font-size: 36px;
  line-height: 0.98;
}

.rail-summary em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.rail-summary strong.is-negative,
.rail-summary em.is-negative {
  color: var(--red);
}

.rail-facts {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-mid);
  border-bottom: 1px solid var(--line-mid);
}

.rail-facts div {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line-mid);
}

.rail-facts div:first-child {
  border-top: 0;
}

.rail-facts strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-steps {
  display: grid;
  gap: 0;
}

.record-steps a {
  display: flex;
  align-items: center;
  min-height: 30px;
  border-bottom: 1px solid transparent;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.record-steps a:hover {
  color: var(--primary);
}

.rail-actions {
  display: grid;
  gap: 8px;
}

.record-editor-summary,
.deadline-summary,
.record-summary-list,
.record-editor-summary-actions {
  display: none;
}

.record-summary-list strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-metric-grid {
  margin-bottom: 12px;
}

.record-metric-grid .metric {
  cursor: default;
}

.record-metric-grid .metric strong.is-negative,
.record-metric-grid .metric em.is-negative {
  color: var(--red);
}

.record-summary-strip {
  display: grid;
  grid-template-columns: minmax(178px, 0.62fr) minmax(0, 2.1fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--line-control);
  border-top: 3px solid var(--muted);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: var(--control-shadow);
}

.record-summary-strip.metric-danger {
  border-top-color: var(--red);
}

.record-summary-strip.metric-warning {
  border-top-color: var(--amber);
}

.record-summary-strip.metric-info {
  border-top-color: var(--blue);
}

.record-summary-primary {
  padding: 7px 10px;
  border-right: 1px solid var(--line);
  background: var(--surface-hover);
}

.record-summary-primary span,
.record-summary-facts span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
}

.record-summary-primary strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
}

.record-summary-primary strong.is-negative,
.record-summary-primary em.is-negative {
  color: var(--red);
}

.record-summary-primary em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.record-summary-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
}

.record-summary-facts div {
  min-width: 0;
  padding: 7px 9px;
  border-left: 1px solid var(--line-mid);
}

.record-summary-facts div:first-child {
  border-left: 0;
}

.record-summary-facts strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-form-shell {
  overflow: hidden;
  border: 1px solid var(--line-panel);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--control-shadow);
}

.record-form-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 0;
  border-top: 1px solid var(--line-row);
}

.record-form-row:first-child {
  border-top: 0;
}

.record-form-heading span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.record-form-heading strong {
  display: block;
  color: var(--text);
  font-size: 11px;
  line-height: 1.25;
}

.record-form-heading {
  align-self: stretch;
  padding: 8px 8px 7px 9px;
  border-left: 3px solid transparent;
  border-right: 1px solid var(--line-row);
  background: var(--surface-panel);
}

.record-form-row:first-child .record-form-heading {
  border-left-color: var(--primary);
}

.record-form-row:nth-child(2) .record-form-heading {
  border-left-color: var(--blue);
}

.record-form-row:nth-child(3) .record-form-heading {
  border-left-color: var(--green);
}

.record-form-row:nth-child(4) .record-form-heading,
.record-form-row:nth-child(5) .record-form-heading {
  border-left-color: var(--amber);
}

.record-form-fields,
.record-editor .reminder-fieldset {
  padding: 7px 9px 7px 0;
}

.record-form-row-secondary .record-form-heading strong {
  color: var(--text-subtle);
}

.record-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 8px;
  row-gap: 7px;
}

.record-form-fields-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.record-editor input,
.record-editor select,
.record-editor textarea {
  border-radius: 5px;
  border-color: var(--line-control);
  background: var(--surface);
  box-shadow: var(--control-shadow-soft);
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.record-editor input:hover,
.record-editor select:hover,
.record-editor textarea:hover {
  border-color: var(--line-control-hover);
  background: var(--surface);
}

.record-editor input:focus,
.record-editor select:focus,
.record-editor textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring-soft);
}

.record-editor.is-readonly input[data-lockable],
.record-editor.is-readonly select[data-lockable],
.record-editor.is-readonly textarea[data-lockable] {
  border-color: transparent;
  background: #f8fafb;
  color: var(--text-soft);
  box-shadow: none;
  cursor: default;
}

.record-editor.is-readonly input[data-lockable][readonly],
.record-editor.is-readonly textarea[data-lockable][readonly] {
  padding-left: 0;
  background: transparent;
}

.record-editor.is-readonly select[data-lockable]:disabled,
.record-editor.is-readonly input[data-lockable]:disabled,
.record-editor.is-readonly textarea[data-lockable]:disabled {
  opacity: 1;
}

.record-editor.is-readonly textarea[data-lockable] {
  resize: none;
}

.record-editor.is-readonly .checkbox-card {
  border-color: transparent;
  background: #f8fafb;
  color: var(--text-soft);
  cursor: default;
}

.record-editor.is-readonly input[data-lockable]:focus,
.record-editor.is-readonly select[data-lockable]:focus,
.record-editor.is-readonly textarea[data-lockable]:focus {
  border-color: transparent;
  box-shadow: none;
}

.record-editor input,
.record-editor select {
  min-height: 30px;
  padding: 4px 7px;
}

.record-editor textarea {
  min-height: 56px;
  padding: 5px 7px;
}

.record-editor .reminder-fieldset {
  display: block;
  margin: 0;
}

.record-editor .reminder-fieldset legend {
  margin-bottom: 5px;
}

.record-editor .checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.record-editor .checkbox-card {
  min-height: 27px;
  min-width: 112px;
  padding: 4px 7px;
  border-radius: 5px;
  box-shadow: none;
}

.record-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 7px;
}

.form-inline-action {
  display: flex;
  align-items: flex-end;
  min-height: 100%;
}

.form-inline-action .button {
  width: 100%;
}

.admin-profile-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-panel);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--surface);
}

.admin-profile-strip span,
.admin-profile-strip strong,
.admin-profile-strip em {
  display: block;
}

.admin-profile-strip span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.admin-profile-strip strong {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.25;
}

.admin-profile-strip em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}

.admin-user-form {
  margin-bottom: 12px;
}

.admin-table-shell {
  box-shadow: none;
}

.page-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.admin-user-table {
  min-width: 760px;
}

.admin-user-table th,
.admin-user-table td {
  padding-top: 8px;
  padding-bottom: 8px;
}

.admin-actions {
  justify-content: flex-end;
}

.admin-actions .button[disabled] {
  cursor: default;
  opacity: 0.72;
}

.admin-log-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.admin-log-summary > div {
  padding: 10px 12px;
  border: 1px solid var(--line-panel);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--control-shadow);
}

.admin-log-summary > div:nth-child(2) {
  border-left-color: var(--amber);
}

.admin-log-summary > div:nth-child(3) {
  border-left-color: var(--green);
}

.admin-log-summary span,
.admin-log-summary strong,
.admin-log-summary em {
  display: block;
}

.admin-log-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.admin-log-summary strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.25;
}

.admin-log-summary em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.admin-email-shell {
  margin-bottom: 12px;
}

.email-readiness-list {
  display: grid;
  gap: 6px;
}

.email-readiness-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid var(--line-panel);
  border-left: 3px solid var(--primary);
  border-radius: 5px;
  background: var(--surface);
}

.email-readiness-item strong {
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
}

.email-readiness-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.email-readiness-warning {
  border-left-color: var(--amber);
}

.email-readiness-failure {
  border-left-color: var(--danger);
}

.admin-log-table {
  min-width: 1040px;
}

.admin-log-table-shell {
  margin-top: 8px;
}

.admin-session-shell {
  margin: 0 0 10px;
}

.admin-log-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-row);
  background: var(--surface-panel);
}

.admin-log-section-heading span,
.admin-log-section-heading strong {
  display: block;
}

.admin-log-section-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.admin-log-section-heading strong {
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.admin-session-list {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-log-table-compact th,
.admin-log-table-compact td {
  padding: 6px 9px;
}

.admin-log-table-compact .item-name {
  font-size: 12px;
  line-height: 1.2;
}

.admin-log-table-compact .subtext {
  margin-top: 1px;
  font-size: 11px;
  line-height: 1.25;
}

.admin-sort-link {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  color: inherit;
  text-decoration: none;
}

.admin-sort-link:hover {
  color: var(--text);
}

.admin-log-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto auto;
  align-items: end;
  gap: 8px;
  margin: 0 0 10px;
  padding: 9px;
  border: 1px solid var(--line-panel);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--control-shadow);
}

.admin-log-controls-secondary {
  margin-top: 14px;
}

.admin-log-controls label {
  display: grid;
  gap: 4px;
}

.admin-log-controls label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.admin-log-controls input,
.admin-log-controls select {
  min-height: 32px;
  padding: 6px 9px;
  font-size: 13px;
}

.admin-log-pagination {
  margin-bottom: 12px;
}

.log-detail {
  display: block;
  max-width: 320px;
  max-height: 54px;
  overflow: auto;
  padding: 3px 5px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.35;
  white-space: normal;
}

.record-history {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: none;
}

.record-history-heading,
.record-history-item,
.record-history-empty {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 124px;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-top: 1px solid var(--line-row);
}

.record-history-heading {
  border-top: 0;
  background: var(--surface-2);
}

.record-history-heading span,
.record-history-item time,
.record-history-item span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.record-history-heading strong,
.record-history-item strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-history-empty {
  grid-template-columns: 1fr;
  color: var(--muted);
  font-size: 13px;
}

.document-upload-panel {
  padding: 8px 10px;
  border-top: 1px solid var(--line-row);
}

.document-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.document-upload-form label {
  display: grid;
  gap: 4px;
}

.document-upload-form label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.document-upload-form input[type="file"] {
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid var(--line-control);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  box-shadow: var(--control-shadow-soft);
}

.document-trust-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.document-locked-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--line-row);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.document-locked-note a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.document-locked-note a:hover {
  color: var(--text);
}

.document-item {
  grid-template-columns: 120px minmax(0, 1fr) 160px auto;
}

.document-item a {
  color: var(--primary);
  text-decoration: none;
}

.document-item a:hover {
  text-decoration: underline;
}

.reminder-preview-shell {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-panel);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--control-shadow);
}

.reminder-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.reminder-preview-meta div {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--line-row);
  border-radius: 5px;
  background: var(--surface-soft);
}

.reminder-preview-meta span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.reminder-preview-meta strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-preview-canvas {
  display: flex;
  justify-content: center;
  overflow: auto;
  max-height: 720px;
  padding: 18px 14px;
  border: 1px solid var(--line-row);
  border-radius: 6px;
  background: var(--surface-panel);
}

.email-preview-card {
  width: min(100%, 720px);
  overflow: hidden;
  border: 1px solid var(--line-panel);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(25, 42, 54, 0.08);
}

.email-preview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-soft);
}

.email-preview-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.email-preview-brand strong {
  display: block;
}

.email-preview-brand strong span {
  color: var(--primary);
}

.email-preview-brand-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.email-preview-brand-mark svg,
.email-preview-brand-mark img {
  display: block;
  width: 28px;
  height: 28px;
}

.email-preview-brand-mark img {
  border-radius: 8px;
  object-fit: cover;
}

.email-preview-brand-mark rect {
  fill: var(--primary);
  stroke: var(--brand-stroke);
  stroke-width: 1.25;
}

.email-preview-type {
  flex: 0 0 auto;
  padding: 5px 7px;
  border: 1px solid var(--line-accent);
  border-radius: 999px;
  background: var(--selected-bg);
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.email-preview-hero {
  padding: 17px 20px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.email-preview-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line-accent);
  border-radius: 999px;
  background: var(--selected-bg);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.email-preview-status.is-overdue {
  border-color: var(--line-danger);
  background: var(--danger-bg-soft);
  color: var(--red);
}

.email-preview-status.is-soon {
  border-color: var(--line-warning);
  background: var(--warning-bg);
  color: var(--amber);
}

.email-preview-status.is-normal {
  border-color: #bfd8ca;
  background: var(--success-bg);
  color: var(--green);
}

.email-preview-hero h2 {
  margin: 9px 0 7px;
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.email-preview-hero p {
  margin: 0 0 5px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.email-preview-hero p:last-child {
  margin-bottom: 0;
}

.email-preview-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line-soft);
}

.email-preview-facts div {
  min-width: 0;
  padding: 12px 14px;
  border-left: 1px solid var(--line-soft);
}

.email-preview-facts div:first-child {
  border-left: 0;
}

.email-preview-facts span,
.email-preview-detail-list span,
.email-preview-packet > span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.email-preview-facts strong,
.email-preview-detail-list strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.email-preview-details {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  padding: 16px 20px;
}

.email-preview-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.email-preview-detail-list div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--surface-soft);
}

.email-preview-packet {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line-accent);
  border-radius: 6px;
  background: var(--selected-bg);
}

.email-preview-packet > div {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.email-preview-packet > div:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.email-preview-packet strong {
  display: block;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.email-preview-packet p {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.email-preview-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 17px;
}

.email-preview-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--line-soft);
  background: var(--surface-panel);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.email-preview-footer strong {
  color: var(--text-strong);
}

.cycle-history-list {
  border-top: 1px solid var(--line-row);
}

.cycle-history-item {
  display: grid;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--line-row);
}

.cycle-history-item:first-child {
  border-top: 0;
}

.cycle-history-main {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 190px;
  gap: 8px;
  align-items: center;
}

.cycle-history-main time,
.cycle-history-main span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.cycle-history-main strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cycle-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
}

.cycle-facts div {
  min-width: 0;
  padding: 7px 8px;
  border-left: 1px solid var(--line-soft);
  background: var(--surface-soft);
}

.cycle-facts div:first-child {
  border-left: 0;
}

.cycle-facts span,
.cycle-documents span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.cycle-facts strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cycle-notes {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.cycle-documents {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cycle-documents a,
.cycle-documents em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.cycle-documents a {
  padding: 3px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--primary);
  text-decoration: none;
}

.cycle-documents a:hover {
  border-color: var(--primary);
}

.cycle-documents .cycle-document-action {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  text-transform: none;
}

.cycle-document-action form {
  margin: 0;
}

.cycle-history-locked {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-top: 1px solid var(--line-row);
  background: var(--surface-2);
}

.cycle-history-locked > div {
  display: grid;
  gap: 2px;
}

.cycle-history-locked strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
}

.cycle-history-locked span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.upgrade-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid var(--line-panel);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--control-shadow);
}

.upgrade-prompt div,
.upgrade-prompt span,
.upgrade-prompt strong,
.upgrade-prompt em {
  display: block;
}

.upgrade-prompt span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.upgrade-prompt strong {
  margin-top: 2px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.upgrade-prompt em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
}

.landing-page {
  background: #f5f8f8;
}

.landing-floating-nav {
  position: fixed;
  z-index: 20;
  top: 16px;
  right: max(24px, calc((100vw - 1240px) / 2));
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.landing-floating-nav .button {
  min-height: 34px;
  border-color: rgba(25, 91, 122, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  padding: 8px 14px;
  box-shadow: 0 6px 18px rgba(18, 65, 87, 0.08);
  backdrop-filter: blur(10px);
  pointer-events: auto;
}

.landing-page main {
  flex: 1 0 auto;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(520px, 1.08fr);
  gap: 44px;
  align-items: center;
  width: min(100% - 44px, 1240px);
  min-height: 570px;
  margin: 0 auto;
  padding: 62px 0 46px;
  overflow: hidden;
  background: transparent;
}

.landing-dashboard-scene {
  position: relative;
  z-index: 1;
  order: 2;
  min-width: 0;
  pointer-events: none;
}

.scene-window {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(195, 211, 214, 0.86);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(26, 55, 62, 0.14);
}

.scene-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line-soft);
}

.scene-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 15px 0 0 var(--accent), 30px 0 0 var(--amber);
}

.scene-bar strong {
  margin-left: 38px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.scene-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 0;
}

.scene-page-heading span {
  display: block;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.scene-page-heading strong {
  display: block;
  margin-top: 2px;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1;
}

.scene-page-heading em,
.scene-toolbar em,
.scene-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.scene-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 0;
}

.scene-kpis div {
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--muted);
  border-radius: 5px;
  background: var(--surface-soft);
}

.scene-kpis div:nth-child(1) {
  border-top-color: var(--red);
}

.scene-kpis div:nth-child(2) {
  border-top-color: var(--amber);
}

.scene-kpis div:nth-child(3) {
  border-top-color: var(--blue);
}

.scene-kpis div:nth-child(4) {
  border-top-color: var(--green);
}

.scene-kpis span,
.scene-expanded span,
.scene-row em,
.scene-head span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.scene-kpis strong {
  display: block;
  margin-top: 6px;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1;
}

.scene-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 58px;
  gap: 6px;
  margin-bottom: 8px;
}

.scene-toolbar div {
  display: grid;
  gap: 2px;
  padding: 0 8px;
  border: 1px solid var(--line-control);
  border-radius: 5px;
  background: var(--surface);
}

.scene-toolbar span {
  padding-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.scene-toolbar strong {
  padding-bottom: 5px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
}

.scene-toolbar em {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-control);
}

.scene-table {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}

.scene-head,
.scene-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr 0.58fr 0.72fr 0.7fr 0.78fr 0.78fr;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-top: 1px solid var(--line-row);
}

.scene-head {
  border-top: 0;
  background: var(--surface-2);
}

.scene-row:first-child {
  border-top: 0;
}

.scene-row.is-hot {
  background: var(--warning-bg);
}

.scene-row span {
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.scene-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
}

.scene-row strong,
.scene-expanded strong {
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.25;
}

.scene-expanded {
  margin-top: 8px;
}

.scene-expanded div {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--surface-soft);
}

.landing-hero-content {
  position: relative;
  z-index: 2;
  order: 1;
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--text);
}

.landing-kicker {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.landing-product-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-transform: none;
}

.landing-product-mark {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.landing-product-mark svg,
.landing-product-mark img {
  display: block;
  width: 52px;
  height: 52px;
}

.landing-product-mark img {
  border-radius: 15px;
  object-fit: cover;
}

.landing-product-mark rect {
  fill: var(--primary);
  stroke: var(--brand-stroke);
  stroke-width: 1.25;
}

.landing-product-copy {
  display: grid;
  gap: 4px;
}

.landing-product-name {
  color: var(--text-strong);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.landing-product-lockup em {
  color: var(--primary);
  font-style: normal;
}

.landing-product-lockup strong {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 680px;
  color: var(--text-strong);
  font-size: 56px;
  line-height: 1;
}

.landing-lede {
  max-width: 545px;
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.45;
}

.landing-conversion-panel {
  display: grid;
  gap: 14px;
  max-width: 545px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(25, 91, 122, 0.18);
  border-top: 4px solid var(--accent);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 250, 250, 0.9)),
    radial-gradient(circle at 90% 0%, rgba(240, 177, 93, 0.18), transparent 38%);
  box-shadow: 0 18px 38px rgba(18, 48, 61, 0.12);
}

.landing-launch-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
}

.landing-launch-note span {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 23px;
  padding: 0 9px;
  border: 1px solid rgba(154, 101, 24, 0.24);
  border-radius: 999px;
  background: rgba(240, 177, 93, 0.18);
  color: #70470f;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.landing-launch-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.landing-launch-note strong {
  color: var(--text-strong);
  font-size: 20px;
  line-height: 1.15;
}

.landing-launch-note em {
  color: var(--text-soft);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.3;
}

.landing-launch-price {
  display: grid;
  flex: 0 0 118px;
  justify-items: center;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(25, 91, 122, 0.14);
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 22px rgba(18, 48, 61, 0.08);
}

.landing-launch-price span {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: none;
}

.landing-launch-price strong {
  color: var(--primary);
  font-size: 34px;
  line-height: 0.95;
}

.landing-launch-price em {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.landing-hero-offer {
  display: grid;
  gap: 3px;
  max-width: 540px;
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(29, 97, 110, 0.22);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--control-shadow);
  color: inherit;
  text-decoration: none;
}

.landing-hero-offer:hover,
.landing-hero-offer:focus-visible {
  border-color: rgba(29, 97, 110, 0.42);
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 41, 49, 0.08);
}

.landing-hero-offer span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.landing-hero-offer strong {
  color: var(--text-strong);
  font-size: 17px;
  line-height: 1.22;
}

.landing-hero-offer em {
  color: var(--text-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.35;
}

.landing-hero-offer + .landing-actions {
  margin-top: 16px;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.landing-actions .button,
.landing-cta .button {
  min-height: 42px;
  padding: 0 18px;
}

.landing-actions .button-primary {
  min-width: 194px;
  box-shadow: 0 14px 24px rgba(25, 91, 122, 0.22);
}

.landing-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(25, 91, 122, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.landing-secondary-link:hover,
.landing-secondary-link:focus-visible {
  border-color: rgba(25, 91, 122, 0.32);
  background: #fff;
  color: var(--primary-strong);
  text-decoration: none;
}

.landing-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.45;
}

.landing-assurance span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(195, 211, 214, 0.66);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.landing-assurance span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--green);
}

.landing-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 620px;
  margin-top: 16px;
  border: 1px solid rgba(195, 211, 214, 0.72);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.landing-trust-strip span {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-left: 1px solid rgba(195, 211, 214, 0.72);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.landing-trust-strip span:first-child {
  border-left: 0;
}

.landing-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 590px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.landing-hero-points li {
  padding: 5px 7px;
  border: 1px solid rgba(195, 211, 214, 0.62);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
}

.landing-signal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  width: min(100% - 44px, 1240px);
  margin: 0 auto;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line-section);
}

.landing-signal-row span {
  position: relative;
  padding: 0;
  border-left: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.landing-signal-row span:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -9px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--line-control);
}

.landing-example-flow {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(480px, 1fr);
  gap: 20px 42px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 36px max(22px, calc((100vw - 1240px) / 2)) 38px;
  border-top: 1px solid rgba(184, 204, 214, 0.72);
  border-bottom: 1px solid rgba(184, 204, 214, 0.72);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfb 100%);
}

.example-flow-heading {
  display: grid;
  gap: 9px;
  padding: 2px 0 2px 16px;
  border-left: 4px solid var(--primary);
}

.example-flow-heading .landing-kicker {
  margin: 0;
}

.example-flow-heading h2 {
  max-width: 420px;
  margin: 0;
  color: var(--text-strong);
  font-size: 27px;
  line-height: 1.08;
}

.example-flow-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.example-flow-promises {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line-panel);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(18, 41, 49, 0.06);
}

.example-flow-promises div {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  border-left: 1px solid var(--line-soft);
  background: var(--surface);
}

.example-flow-promises div:first-child {
  border-left: 0;
}

.example-flow-promises div:nth-child(1) {
  box-shadow: inset 0 3px 0 var(--red);
}

.example-flow-promises div:nth-child(2) {
  box-shadow: inset 0 3px 0 var(--primary);
}

.example-flow-promises div:nth-child(3) {
  box-shadow: inset 0 3px 0 var(--accent);
}

.example-flow-promises div:nth-child(4) {
  box-shadow: inset 0 3px 0 var(--green);
}

.example-flow-promises span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.example-flow-promises strong {
  color: var(--text-strong);
  font-size: 13px;
  line-height: 1.32;
}

.example-flow-table {
  display: grid;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.example-flow-labels,
.example-flow-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.example-flow-labels {
  background: var(--surface-2);
}

.example-flow-labels span {
  padding: 10px 13px;
  border-left: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.example-flow-labels span:first-child {
  border-left: 0;
  color: #8a4f4b;
}

.example-flow-labels span:last-child {
  color: var(--primary);
}

.example-flow-row {
  border-top: 1px solid var(--line-soft);
}

.example-flow-row p {
  margin: 0;
  padding: 12px 13px;
  border-left: 1px solid var(--line-soft);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.45;
}

.example-flow-row p:first-child {
  border-left: 0;
  background: rgba(251, 248, 245, 0.72);
}

.example-flow-row p:last-child {
  color: var(--text);
}

.example-flow-row p span {
  display: none;
}

.example-flow-result {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 13px;
  border-top: 1px solid var(--line-soft);
  background: rgba(240, 177, 93, 0.13);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.2;
}

.landing-renewal-compare {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(520px, 1fr);
  gap: 24px 42px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 40px max(22px, calc((100vw - 1240px) / 2)) 42px;
  border-top: 1px solid rgba(184, 204, 214, 0.72);
  border-bottom: 1px solid rgba(184, 204, 214, 0.72);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfb 100%);
}

.renewal-compare-heading {
  display: grid;
  gap: 9px;
  padding: 2px 0 2px 16px;
  border-left: 4px solid var(--primary);
}

.renewal-compare-heading .landing-kicker {
  margin: 0;
}

.renewal-compare-heading h2 {
  max-width: 450px;
  margin: 0;
  color: var(--text-strong);
  font-size: 29px;
  line-height: 1.06;
}

.renewal-compare-heading p {
  max-width: 440px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.renewal-compare-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line-panel);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(18, 41, 49, 0.07);
}

.renewal-compare-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 276px;
  padding: 18px;
}

.renewal-compare-column + .renewal-compare-column {
  border-left: 1px solid var(--line-soft);
}

.renewal-compare-before {
  box-shadow: inset 0 4px 0 var(--muted);
  background: #fbfcfd;
}

.renewal-compare-after {
  box-shadow: inset 0 4px 0 var(--primary);
  background: #ffffff;
}

.renewal-compare-column span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.renewal-compare-after span {
  color: var(--primary);
}

.renewal-compare-column h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.15;
}

.renewal-compare-column ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.renewal-compare-column li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.42;
}

.renewal-compare-column li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--muted);
}

.renewal-compare-after li::before {
  background: var(--primary);
}

.renewal-compare-example {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px 16px;
  border-top: 1px solid var(--line-soft);
  background: rgba(240, 177, 93, 0.13);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.32;
}

.landing-band {
  width: min(100% - 44px, 1240px);
  margin: 0 auto;
  padding: 58px 0;
}

.landing-product {
  margin-top: 20px;
  padding: 34px 0 0;
  border-top: 1px solid var(--line-section);
}

.landing-section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(260px, 1fr);
  gap: 18px 48px;
  align-items: end;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-section);
}

.landing-section-heading h2,
.landing-proof-copy h2,
.landing-cta h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 34px;
  line-height: 1.06;
}

.landing-section-heading .landing-kicker {
  grid-column: 1 / -1;
  margin-bottom: -6px;
  color: var(--primary);
}

.landing-section-heading p,
.landing-proof-copy p,
.landing-metrics dd,
.landing-faq-grid p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.landing-feature-grid article {
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line-panel);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.landing-feature-grid article:first-child {
  border-top: 3px solid var(--red);
}

.landing-feature-grid article:last-child {
  border-top: 3px solid var(--green);
}

.landing-feature-grid article:nth-child(2) {
  border-top: 3px solid var(--primary);
}

.landing-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 38px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.landing-feature-grid h3,
.landing-metrics dt,
.landing-faq-grid h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.2;
}

.landing-feature-grid p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.landing-compare {
  padding-top: 46px;
}

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

.compare-column {
  padding: 18px;
  border: 1px solid var(--line-panel);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.compare-column-muted {
  border-top: 3px solid var(--muted);
}

.compare-column-strong {
  border-top: 3px solid var(--primary);
}

.compare-column h3 {
  margin: 0 0 12px;
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.2;
}

.compare-column ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-column li {
  position: relative;
  padding-left: 18px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.38;
}

.compare-column li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--primary);
  content: "•";
  font-weight: 900;
}

.compare-column-muted li::before {
  color: var(--muted);
}

.landing-example {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(29, 97, 110, 0.24);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: rgba(240, 249, 247, 0.74);
}

.landing-example span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.landing-example strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.42;
}

.landing-proof {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 48px;
  align-items: start;
  width: min(100% - 44px, 1240px);
  margin-top: 56px;
  padding: 34px;
  border-radius: 8px;
  background: #142c35;
}

.landing-proof-copy .landing-kicker {
  color: var(--accent);
}

.landing-proof-copy h2,
.landing-proof-copy p {
  color: #ffffff;
}

.landing-proof-copy p {
  opacity: 0.84;
}

.landing-proof-copy p:last-child {
  margin-top: 14px;
}

.landing-metrics {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.landing-metrics div {
  display: grid;
  grid-template-columns: minmax(120px, 0.36fr) minmax(180px, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.landing-metrics dt {
  color: #ffffff;
}

.landing-metrics dd {
  color: rgba(255, 255, 255, 0.78);
}

.landing-pricing {
  width: 100%;
  margin-top: 0;
  padding: 48px max(22px, calc((100vw - 1240px) / 2));
  border-top: 1px solid rgba(184, 204, 214, 0.8);
  border-bottom: 1px solid rgba(184, 204, 214, 0.8);
  background: #edf5f4;
  scroll-margin-top: 76px;
}

.landing-track-band {
  padding-top: 40px;
  padding-bottom: 28px;
}

.landing-track-band .landing-signal-row {
  width: 100%;
  margin: 14px 0 0;
  padding: 0;
  border-bottom: 0;
  justify-content: flex-start;
}

.pricing-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
}

.pricing-grid-page {
  padding-top: 14px;
}

.early-access-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(29, 97, 110, 0.28);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(240, 249, 247, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow: 0 12px 28px rgba(18, 41, 49, 0.08);
}

.early-access-copy {
  display: grid;
  gap: 4px;
}

.early-access-copy span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: uppercase;
}

.early-access-copy strong {
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.2;
}

.early-access-copy em {
  color: var(--text-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.45;
}

.early-access-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.early-access-actions .button,
.early-access-actions .button-form,
.early-access-actions .button-form button {
  width: max-content;
  white-space: nowrap;
}

.pricing-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-panel);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.pricing-card.is-featured {
  border-color: rgba(29, 97, 110, 0.44);
  box-shadow: 0 14px 36px rgba(18, 41, 49, 0.12);
}

.pricing-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-card-head span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.pricing-card-head {
  display: grid;
  gap: 0;
  align-content: start;
}

.pricing-card-head strong {
  display: block;
  margin-top: 12px;
  color: var(--text-strong);
  font-size: 40px;
  line-height: 1;
}

.pricing-card-head > strong em {
  margin-left: 3px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.pricing-price {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  align-content: start;
}

.pricing-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: none;
}

.pricing-price strong {
  margin-top: 0;
}

.pricing-price em,
.pricing-price small {
  display: block;
  color: var(--text-soft);
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.pricing-price em {
  font-size: 12px;
}

.pricing-price small {
  font-size: 10.5px;
}

.pricing-price-trial strong {
  color: var(--primary);
}

.pricing-card-head p {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.42;
}

.pricing-promo {
  display: flex;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(34, 134, 117, 0.28);
  border-radius: 5px;
  background: rgba(34, 134, 117, 0.08);
  color: #175f55;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.pricing-history {
  display: flex;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.pricing-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 15px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.35;
}

.pricing-card li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--primary);
  content: "✓";
  font-weight: 800;
}

.pricing-card .button {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}

.pricing-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.landing-learn-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(29, 97, 110, 0.2);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.landing-learn-more div {
  display: grid;
  gap: 3px;
}

.landing-learn-more span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.landing-learn-more strong {
  color: var(--text-strong);
  font-size: 13px;
  line-height: 1.32;
}

.pricing-fine-print {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line-panel);
  border-radius: 6px;
  background: var(--surface);
}

.pricing-fine-print strong {
  color: var(--text);
  font-size: 13px;
}

.pricing-fine-print span {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.landing-faq {
  padding-top: 34px;
  padding-bottom: 42px;
}

.landing-faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 14px;
  border-top: 1px solid var(--line-section);
}

.landing-faq-grid article {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(260px, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-right: 0;
  border-bottom: 1px solid var(--line-section);
}

.landing-faq-grid article:first-child {
  padding-left: 0;
}

.landing-faq-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.landing-faq-grid p {
  margin-top: 0;
  font-size: 13px;
}

.landing-cta {
  width: min(100% - 44px, 1240px);
  margin: 6px auto 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line-panel);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.landing-cta .landing-kicker {
  color: var(--primary);
}

.landing-cta h2 {
  max-width: 640px;
  font-size: 28px;
}

.landing-footer {
  background: #ffffff;
}

.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer-inner {
  width: min(100% - 36px, 1240px);
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.site-footer strong {
  font-size: 13px;
}

.site-footer span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--primary);
}

.content-page {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 8px 0 36px;
}

.content-heading {
  margin-bottom: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-panel);
  border-top: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--control-shadow);
  text-align: center;
}

.content-heading p:last-child {
  max-width: 720px;
  margin: 8px auto 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
}

.content-sections {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line-panel);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--control-shadow);
}

.content-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid var(--line-row);
}

.content-row:first-child {
  border-top: 0;
}

.content-row-heading {
  align-self: stretch;
  padding: 10px 10px 9px 11px;
  border-left: 3px solid var(--primary);
  border-right: 1px solid var(--line-row);
  background: var(--surface-panel);
}

.content-row-heading span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.content-sections h2 {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
}

.content-sections p {
  margin: 0;
  padding: 10px 12px 10px 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.48;
}

.learn-page {
  width: min(100%, 1120px);
  display: grid;
  gap: 18px;
}

.learn-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line-panel);
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f3faf9 100%);
  box-shadow: 0 14px 34px rgba(18, 41, 49, 0.07);
}

.learn-hero-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 34px;
}

.learn-hero-copy .eyebrow {
  margin: 0;
}

.learn-hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--text-strong);
  font-size: 42px;
  line-height: 1.03;
}

.learn-hero-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.learn-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 4px;
}

.learn-record-card {
  display: grid;
  align-content: start;
  margin: 22px 22px 22px 0;
  overflow: hidden;
  border: 1px solid var(--line-panel);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--control-shadow);
}

.learn-record-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-soft);
}

.learn-record-top span,
.learn-record-card dt,
.learn-type-strip span,
.learn-workflow article span,
.learn-detail-grid article > span,
.learn-offer span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.learn-record-top strong {
  display: block;
  margin-top: 4px;
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1.1;
}

.learn-record-top em {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid var(--line-warning);
  border-radius: 999px;
  background: var(--warning-bg);
  color: var(--amber);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.learn-record-card dl {
  display: grid;
  margin: 0;
}

.learn-record-card dl div {
  display: grid;
  grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid var(--line-soft);
}

.learn-record-card dl div:first-child {
  border-top: 0;
}

.learn-record-card dt,
.learn-record-card dd {
  margin: 0;
}

.learn-record-card dd {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.learn-type-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 2px;
}

.learn-type-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
}

.learn-workflow-section {
  display: grid;
  gap: 14px;
}

.learn-section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(260px, 1fr);
  gap: 12px 34px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-section);
}

.learn-section-heading .eyebrow {
  grid-column: 1 / -1;
  margin: 0 0 -3px;
}

.learn-section-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 30px;
  line-height: 1.08;
}

.learn-section-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.55;
}

.learn-workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line-panel);
  border-radius: 8px;
  background: var(--surface);
}

.learn-workflow article {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 154px;
  padding: 15px;
  border-left: 1px solid var(--line-soft);
  box-shadow: inset 0 3px 0 var(--primary);
}

.learn-workflow article:first-child {
  border-left: 0;
  box-shadow: inset 0 3px 0 var(--red);
}

.learn-workflow article:nth-child(3) {
  box-shadow: inset 0 3px 0 var(--accent);
}

.learn-workflow article:nth-child(4) {
  box-shadow: inset 0 3px 0 var(--green);
}

.learn-workflow h3,
.learn-detail-grid h2,
.learn-offer h2 {
  margin: 0;
  color: var(--text-strong);
  line-height: 1.15;
}

.learn-workflow h3 {
  font-size: 17px;
}

.learn-workflow p,
.learn-detail-grid p,
.learn-offer p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.48;
}

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

.learn-detail-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 158px;
  padding: 16px;
  border: 1px solid var(--line-panel);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--control-shadow-soft);
}

.learn-detail-grid article:first-child,
.learn-detail-grid article:nth-child(4),
.learn-detail-grid article:nth-child(7) {
  border-left: 4px solid var(--primary);
}

.learn-detail-grid article:nth-child(2),
.learn-detail-grid article:nth-child(5) {
  border-left: 4px solid var(--accent);
}

.learn-detail-grid article:nth-child(3),
.learn-detail-grid article:nth-child(6) {
  border-left: 4px solid var(--green);
}

.learn-detail-grid h2 {
  font-size: 17px;
}

.learn-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(29, 97, 110, 0.24);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: linear-gradient(90deg, #ffffff 0%, #f3faf9 100%);
}

.learn-offer div {
  display: grid;
  gap: 5px;
}

.learn-offer span {
  color: var(--primary);
}

.learn-offer h2 {
  font-size: 22px;
}

.resources-page,
.article-page {
  width: min(100%, 1040px);
  display: grid;
  gap: 22px;
}

.resources-hero,
.article-hero {
  display: grid;
  gap: 14px;
  padding: 16px 0 8px;
  border-left: 4px solid var(--primary);
  background: transparent;
}

.resources-hero {
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1fr);
  align-items: center;
  padding-left: 24px;
}

.resources-hero .eyebrow,
.article-hero .eyebrow {
  margin: 0;
}

.resources-hero h1,
.article-hero h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: 42px;
  line-height: 1.02;
}

.resources-hero p,
.article-hero p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.58;
}

.resources-method {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid rgba(25, 91, 122, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(18, 41, 49, 0.05);
}

.resources-method span:nth-child(even) {
  color: var(--muted-faint);
  font-weight: 900;
}

.resource-group-stack {
  display: grid;
  gap: 24px;
}

.resource-group {
  display: grid;
  gap: 11px;
}

.resource-group-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(25, 91, 122, 0.18);
}

.resource-group-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 19px;
  line-height: 1.15;
}

.resource-group-heading p {
  max-width: 660px;
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

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

.resource-card-grid--featured {
  grid-template-columns: 1fr;
}

.resource-card-grid--featured .resource-card {
  grid-template-columns: minmax(200px, 0.65fr) minmax(280px, 1fr) auto;
  grid-template-rows: auto 1fr;
  column-gap: 26px;
  min-height: 0;
  padding: 18px;
}

.resource-card-grid--featured .resource-card-meta {
  grid-column: 1;
  grid-row: 1;
}

.resource-card-grid--featured .resource-card h3 {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  font-size: 21px;
}

.resource-card-grid--featured .resource-card p {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 13.5px;
}

.resource-card-grid--featured .resource-card .button {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
}

.resource-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 208px;
  padding: 15px 15px 14px;
  border: 1px solid rgba(203, 216, 226, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251,253,254,0.98)),
    var(--surface);
  box-shadow: 0 10px 22px rgba(18, 41, 49, 0.045);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.resource-card::before {
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--primary), rgba(31, 122, 77, 0.7));
  content: "";
}

.resource-card:hover {
  transform: translateY(-1px);
  border-color: rgba(25, 91, 122, 0.38);
  box-shadow: 0 16px 34px rgba(18, 41, 49, 0.085);
}

.resource-card:last-child:nth-child(odd) {
  grid-column: auto;
  min-height: 208px;
}

.resource-card-meta,
.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
}

.resource-card-meta span,
.resource-card-meta em,
.article-meta-row span,
.article-back,
.resources-topics span,
.article-checklist span,
.article-cta span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.resource-card-meta em {
  color: var(--primary);
  font-style: normal;
}

.resource-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 18px;
  line-height: 1.18;
}

.resource-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.resource-card .button {
  align-self: end;
  width: max-content;
}

.resources-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.resources-topics span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
}

.article-back {
  width: max-content;
  color: var(--primary);
  text-decoration: none;
}

.article-back::before {
  content: "< ";
}

.article-meta-row span {
  color: var(--primary);
}

.article-page {
  position: relative;
  isolation: isolate;
  width: min(100%, 1060px);
  gap: 26px;
  padding: 26px 0 48px;
  background: var(--surface);
  box-shadow: 0 0 0 100vmax var(--surface);
  clip-path: inset(0 -100vmax);
}

.article-hero {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 12px 0 12px 22px;
}

.article-hero h1 {
  max-width: 780px;
  font-size: 40px;
  line-height: 1.06;
}

.article-hero > p {
  max-width: 72ch;
  color: #263f53;
  font-size: 17px;
  line-height: 1.62;
}

.article-author-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  max-width: 68ch;
  padding-top: 2px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.article-author-note a {
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 850;
  text-decoration-color: rgba(25, 91, 122, 0.34);
  text-underline-offset: 3px;
}

.article-brief {
  display: grid;
  gap: 15px;
  width: min(100%, 900px);
  margin: -2px auto 0;
  padding: 19px 22px;
  border: 1px solid #cfdee7;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  background: #f2f7fa;
}

.article-brief-lead {
  display: grid;
  gap: 4px;
}

.article-brief span,
.article-brief dt {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.article-brief strong {
  max-width: 72ch;
  color: var(--text-strong);
  font-size: 17px;
  line-height: 1.42;
}

.article-brief dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
}

.article-brief dl div {
  display: grid;
  gap: 5px;
  padding: 0 16px;
  border-left: 1px solid #d6e3ea;
}

.article-brief dl div:first-child {
  padding-left: 0;
  border-left: 0;
}

.article-brief dd {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.48;
}

.article-outline-mobile {
  display: none;
}

.article-reading-layout {
  display: grid;
  grid-template-columns: 214px minmax(0, 700px);
  gap: 38px;
  align-items: start;
  justify-content: center;
  width: min(100%, 990px);
  margin: 0 auto;
}

.article-sidebar {
  position: sticky;
  top: 78px;
}

.article-sidebar-card {
  display: grid;
  gap: 12px;
  padding: 15px 16px 16px;
  border: 1px solid #d8e2e8;
  border-top: 3px solid var(--primary);
  border-radius: 6px;
  background: #f5f7f9;
}

.article-sidebar-card > span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.article-sidebar-card ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-sidebar-card a {
  display: block;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.article-sidebar-card a:hover {
  color: var(--primary);
}

.article-body {
  display: grid;
  gap: 0;
  width: min(100%, 68ch);
  padding: 0 0 2px;
  background: var(--surface);
}

.article-section {
  position: relative;
  display: block;
  padding: 30px 0;
  border-top: 1px solid #dfe7ed;
  scroll-margin-top: 88px;
}

.article-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.article-section-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.article-section-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 24px;
  border: 1px solid rgba(25, 91, 122, 0.18);
  border-radius: 999px;
  background: #edf5f8;
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.article-section h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 24px;
  line-height: 1.16;
}

.article-section p {
  margin: 0;
  color: #263f53;
  font-size: 17px;
  line-height: 1.72;
}

.article-decision-aid {
  display: grid;
  grid-template-columns: minmax(170px, 0.38fr) minmax(0, 1fr);
  gap: 22px;
  margin: 6px 0 10px;
  padding: 20px 22px;
  border: 1px solid #cfe2d8;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: #f2f8f5;
}

.article-decision-aid header {
  display: grid;
  align-content: start;
  gap: 6px;
}

.article-decision-aid header span {
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.article-decision-aid h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 21px;
  line-height: 1.18;
}

.article-decision-aid header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.article-decision-aid dl {
  margin: 0;
}

.article-decision-aid dl div {
  display: grid;
  grid-template-columns: minmax(112px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
  border-top: 1px solid #d8e8df;
}

.article-decision-aid dl div:first-child {
  padding-top: 0;
  border-top: 0;
}

.article-decision-aid dt {
  color: #17643e;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.article-decision-aid dd {
  margin: 0;
  color: #263f53;
  font-size: 13.5px;
  line-height: 1.48;
}

.article-checklist,
.article-cta {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line-panel);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--control-shadow-soft);
}

.article-checklist {
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  width: 100%;
  margin: 6px 0 10px;
  border-color: #efd8b3;
  border-left: 4px solid var(--accent);
  background: #fff9ef;
  box-shadow: none;
}

.article-checklist h2,
.article-cta h2 {
  margin: 4px 0 0;
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1.15;
}

.article-checklist ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-checklist li {
  position: relative;
  padding-left: 16px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.article-checklist li::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.article-record-example {
  display: grid;
  gap: 12px;
  margin: 8px 0 10px;
  padding: 15px;
  border: 1px solid #cfdee7;
  border-top: 3px solid var(--primary);
  border-radius: 8px;
  background: #f7fafc;
}

.article-record-example-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
}

.article-record-example-heading span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.article-record-example-heading strong {
  color: var(--text-strong);
  font-size: 16px;
  line-height: 1.2;
}

.article-record-example dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.article-record-example dl div {
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 9px 10px;
  border-top: 1px solid var(--line-soft);
}

.article-record-example dl div:nth-child(-n+2) {
  border-top: 0;
}

.article-record-example dl div:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.article-record-example dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.article-record-example dd {
  margin: 0;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.article-sources {
  display: grid;
  gap: 16px;
  margin-top: 12px;
  padding: 20px 22px;
  border: 1px solid #dfe5ea;
  border-left: 4px solid #8998a7;
  border-radius: 6px;
  background: #f7f8fa;
  scroll-margin-top: 88px;
}

.article-sources-heading {
  display: grid;
  gap: 6px;
}

.article-sources-heading span,
.article-related-heading span,
.article-related-links span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.article-sources-heading h2,
.article-related-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 22px;
  line-height: 1.18;
}

.article-sources-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.article-sources ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-sources li {
  padding-left: 14px;
  border-left: 2px solid rgba(25, 91, 122, 0.2);
}

.article-sources a {
  color: var(--primary);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.article-sources li p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

.article-related {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid rgba(25, 91, 122, 0.14);
  border-bottom: 1px solid rgba(25, 91, 122, 0.14);
}

.article-related-heading {
  display: grid;
  gap: 5px;
}

.article-related-heading h2 {
  font-size: 18px;
}

.article-related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.article-related-links a {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 2px 16px;
  border-left: 1px solid var(--line-soft);
  color: inherit;
  text-decoration: none;
}

.article-related-links a:hover strong,
.article-related-links a:focus-visible strong {
  color: var(--primary);
}

.article-related-links strong {
  color: var(--text-strong);
  font-size: 14px;
  line-height: 1.35;
  transition: color 160ms ease;
}

.article-related-links em {
  align-self: end;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.article-cta {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  width: min(100%, 700px);
  margin: 0 auto;
  border-color: #c9dce5;
  border-left: 4px solid var(--primary);
  background: #f2f7fa;
  box-shadow: 0 10px 24px rgba(18, 41, 49, 0.05);
}

.article-cta p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.account-form {
  gap: 10px;
}

.account-settings-shell {
  overflow: hidden;
  border: 1px solid var(--line-panel);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--control-shadow);
}

.account-form .account-settings-shell .form-section {
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 10px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line-row);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.account-form .account-settings-shell .form-section:first-child {
  border-top: 0;
}

.account-form .form-section-heading {
  align-self: stretch;
  padding: 9px 9px 8px 10px;
  border-left: 3px solid var(--primary);
  border-right: 1px solid var(--line-row);
  background: var(--surface-panel);
}

.account-form .account-settings-shell .form-section:nth-child(2) .form-section-heading {
  border-left-color: var(--blue);
}

.account-form .account-settings-shell .form-section:nth-child(3) .form-section-heading,
.account-form .account-settings-shell .form-section:nth-child(4) .form-section-heading {
  border-left-color: var(--green);
}

.account-form .account-settings-shell .form-section:nth-child(5) .form-section-heading,
.account-form .account-settings-shell .form-section:nth-child(6) .form-section-heading {
  border-left-color: var(--amber);
}

.account-form .account-settings-shell .form-section:nth-child(7) .form-section-heading {
  border-left-color: var(--primary);
}

.account-form .form-section-heading h2 {
  margin: 0;
  line-height: 1.25;
}

.account-form .form-section-heading span,
.account-form .form-section-heading strong {
  display: block;
}

.account-form .form-section-heading span {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.account-form .form-section-heading strong {
  color: var(--text);
  font-size: 11px;
  line-height: 1.25;
}

.account-form .form-section-grid {
  gap: 8px;
  padding: 8px 10px 8px 0;
}

.account-form label span,
.account-form .settings-fieldset legend {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: none;
}

.account-form input,
.account-form select,
.account-form textarea {
  width: 100%;
  min-height: 30px;
  padding: 4px 7px;
  border-color: var(--line-control);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--control-shadow-soft);
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.account-form input:disabled {
  background: var(--surface-soft);
  color: var(--text-soft);
  opacity: 1;
}

.account-form textarea {
  padding: 5px 7px;
}

.account-form input:hover,
.account-form select:hover,
.account-form textarea:hover {
  border-color: var(--line-control-hover);
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring-soft);
}

.settings-fieldset {
  margin: 7px 0 0;
  padding: 0;
  border: 0;
}

.form-section > .settings-fieldset {
  grid-column: 2;
}

.account-form .form-section > .settings-fieldset {
  margin: 0;
  padding: 8px 10px 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.settings-fieldset legend {
  margin-bottom: 5px;
  padding: 0;
}

.settings-list-input {
  min-height: 96px;
  line-height: 1.45;
}

.settings-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 0;
}

.settings-actions strong,
.settings-actions span {
  display: block;
}

.settings-actions strong {
  font-size: 12px;
  line-height: 1.25;
}

.settings-actions span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.settings-action-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.billing-inline-form {
  margin: 0;
}

.settings-data-actions {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 320px) auto;
}

.data-transfer-panel {
  display: grid;
  grid-column: 2;
  gap: 0;
  padding: 8px 10px 8px 0;
}

.data-transfer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 300px) auto;
  gap: 10px;
  align-items: end;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line-soft);
}

.data-transfer-row-export {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 10px 0 0;
  border-bottom: 0;
}

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

.data-transfer-row strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.25;
}

.data-transfer-row > div > span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.compact-file-input span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.account-security-shell {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.account-security-shell .form-section,
.security-inline-form {
  overflow: hidden;
  border: 1px solid var(--line-panel);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--control-shadow);
}

.account-security-shell .form-section {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 10px;
  padding: 0;
}

.account-security-shell .form-section-heading {
  align-self: stretch;
  padding: 9px 9px 8px 10px;
  border-left: 3px solid var(--primary);
  border-right: 1px solid var(--line-row);
  background: var(--surface-panel);
}

.account-security-shell .form-section-heading h2 {
  margin: 0;
  line-height: 1.25;
}

.account-security-shell .form-section-heading span,
.account-security-shell .form-section-heading strong {
  display: block;
}

.account-security-shell .form-section-heading span {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.account-security-shell .form-section-heading strong {
  color: var(--text);
  font-size: 11px;
  line-height: 1.25;
}

.account-security-shell .settings-actions,
.account-security-shell .security-list,
.account-security-shell .security-inline-form,
.account-security-shell .recovery-code-panel {
  grid-column: 2;
}

.security-actions {
  align-items: flex-start;
}

.security-inline-form {
  display: grid;
  gap: 8px;
  margin: 0 10px 10px 0;
  padding: 10px;
  box-shadow: none;
}

.security-inline-form .form-section-grid {
  padding: 0;
}

.recovery-code-panel {
  display: grid;
  gap: 8px;
  margin: 0 10px 10px 0;
  padding: 10px;
  border: 1px solid var(--line-accent);
  border-radius: 6px;
  background: var(--selected-bg);
}

.recovery-code-panel strong,
.recovery-code-panel span {
  display: block;
}

.recovery-code-panel span {
  color: var(--muted);
  font-size: 11px;
}

.recovery-code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 6px;
}

.recovery-code-grid code {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.security-list {
  display: grid;
  margin: 0 10px 10px 0;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--surface);
}

.security-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-top: 1px solid var(--line-soft);
}

.security-list-item:first-child {
  border-top: 0;
}

.security-list-item strong,
.security-list-item span {
  display: block;
}

.security-list-item strong {
  color: var(--text);
  font-size: 12px;
}

.security-list-item span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.security-meta {
  flex: 0 0 auto;
  text-align: right;
}

.danger-section {
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 10px;
  padding: 0;
  overflow: hidden;
  border-color: var(--line-danger);
  border-radius: 6px;
  background: var(--danger-bg-faint);
  box-shadow: none;
}

.account-form .danger-section .form-section-heading {
  border-left-color: var(--red);
  border-right-color: var(--line-danger);
  background: var(--danger-bg-soft);
}

.account-form .danger-section .form-section-heading h2 {
  color: var(--red);
}

.account-form .danger-section .form-section-heading span,
.account-form .danger-section .form-section-heading strong {
  color: var(--red);
}

.account-form .checkbox-grid {
  gap: 5px;
}

.account-form .checkbox-card {
  min-height: 27px;
  padding: 4px 7px;
  border-color: var(--line-control);
  border-radius: 5px;
  box-shadow: none;
}

.account-form .checkbox-card:has(input:checked) {
  border-color: var(--line-selected);
  background: var(--selected-bg);
}

.account-form .checkbox-card input {
  width: 13px;
  min-height: 13px;
}

.account-form .checkbox-card span {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.2;
  text-transform: none;
}

.span-2 {
  grid-column: span 2;
}

.form-actions {
  display: flex;
  gap: 8px;
}

.field-error {
  display: block;
  margin-top: 4px;
  color: var(--red);
  font-weight: 700;
}

.field-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.search-scope-note {
  max-width: 360px;
  line-height: 1.35;
}

.form-row-note {
  margin: 0;
  padding: 7px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.auth-topbar {
  flex-shrink: 0;
}

.auth-shell {
  width: min(100% - 40px, 390px);
  flex: 1 0 auto;
  display: grid;
  align-items: center;
  margin: 0 auto;
  padding: 42px 0;
}

.auth-panel {
  padding: 18px;
  border: 1px solid var(--line-panel);
  border-top: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--control-shadow);
}

.auth-panel .eyebrow {
  margin-bottom: 6px;
}

.auth-panel h1 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.15;
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 0 0 14px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--surface-soft);
}

.auth-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.auth-switch a:hover {
  color: var(--text);
}

.auth-switch a.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--control-shadow-soft);
}

.selected-plan-note {
  padding: 9px 10px;
  border: 1px solid var(--line-panel);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--surface-soft);
}

.selected-plan-note span,
.selected-plan-note strong,
.selected-plan-note small,
.selected-plan-note em {
  display: block;
}

.selected-plan-note span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

.selected-plan-note strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
}

.selected-plan-note small {
  margin-top: 5px;
  color: #175f55;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.selected-plan-note em {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.auth-panel label span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
}

.auth-panel input {
  min-height: 30px;
  padding: 4px 7px;
  border-color: var(--line-control);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--control-shadow-soft);
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.auth-panel input:hover {
  border-color: var(--line-control-hover);
}

.auth-panel input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring-soft);
}

.auth-panel input[readonly] {
  border-color: var(--line-soft);
  background: var(--surface-soft);
  color: var(--text);
  box-shadow: none;
}

.auth-panel .button {
  min-height: 30px;
}

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

.auth-footer {
  flex-shrink: 0;
  width: 100%;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.auth-panel .auth-check input[type="checkbox"] {
  appearance: auto;
  width: 14px;
  height: 14px;
  min-height: 14px;
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 0;
  border-radius: 3px;
  box-shadow: none;
}

.auth-check span {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.35;
}

.auth-check a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.auth-links {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: -3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.auth-links a {
  color: inherit;
  text-decoration: none;
}

.auth-links a:hover {
  color: var(--text);
}

.stack {
  display: grid;
  gap: 9px;
}

.alert {
  padding: 9px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--red);
}

.alert-success {
  background: var(--success-bg);
  color: var(--green);
}

.alert-warning {
  border: 1px solid var(--line-warning);
  background: var(--warning-bg);
  color: var(--amber);
}

.dashboard-alert {
  margin-bottom: 12px;
}

.error-state {
  display: grid;
  width: min(100%, 520px);
  gap: 10px;
  margin: 80px auto;
  padding: 22px;
  border: 1px solid var(--line-panel);
  border-top: 3px solid var(--primary);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--control-shadow);
}

.error-state span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.error-state h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.error-state p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.5;
}

.error-state .button {
  justify-self: start;
}

.account-verification-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-verification-alert strong,
.account-verification-alert span {
  display: block;
}

.account-verification-alert strong {
  color: var(--text);
  font-size: 12px;
}

.account-verification-alert span,
.auth-copy {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.field-warning {
  display: block;
  margin-top: 4px;
  color: var(--amber);
  font-size: 11px;
  font-weight: 700;
}

.auth-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 920px) {
  .landing-hero {
    display: flex;
    flex-direction: column;
    width: min(100% - 32px, 1240px);
    min-height: auto;
    padding: 54px 0 42px;
  }

  .landing-hero-content,
  .landing-band,
  .landing-cta,
  .landing-signal-row {
    width: min(100% - 32px, 1240px);
  }

  .scene-window {
    width: 100%;
    margin: 0 auto;
  }

  .landing-dashboard-scene {
    order: 2;
    width: 100%;
    padding: 0;
  }

  .landing-hero-content {
    order: 1;
    width: 100%;
    padding: 0;
  }

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

  .landing-section-heading,
  .landing-example-flow,
  .landing-renewal-compare,
  .landing-proof,
  .landing-faq-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .example-flow-heading h2,
  .example-flow-heading p,
  .renewal-compare-heading h2,
  .renewal-compare-heading p {
    max-width: none;
  }

  .landing-proof {
    width: min(100% - 32px, 1240px);
    margin-top: 36px;
    padding: 24px;
  }

  .landing-pricing {
    width: 100%;
    margin-top: 0;
    padding: 38px 16px;
  }

  .renewal-compare-panel {
    grid-template-columns: 1fr;
  }

  .renewal-compare-column {
    min-height: 0;
  }

  .renewal-compare-column + .renewal-compare-column {
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .landing-signal-row {
    justify-content: flex-start;
  }

  .article-reading-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    width: min(100%, 720px);
  }

  .article-sidebar {
    display: none;
  }

  .article-outline-mobile {
    display: block;
    width: min(100%, 720px);
    margin: 0 auto;
    border: 1px solid #d8e2e8;
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    background: #f5f7f9;
  }

  .article-outline-mobile summary {
    padding: 12px 14px;
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
  }

  .article-outline-mobile ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 0;
    padding: 0 14px 14px 34px;
  }

  .article-outline-mobile a {
    color: var(--text-soft);
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.35;
    text-decoration: none;
  }

  .scene-expanded {
    grid-template-columns: 1fr;
  }

  .landing-feature-grid {
    grid-template-columns: 1fr;
  }

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

  .landing-trust-strip span:nth-child(odd) {
    border-left: 0;
  }

  .landing-trust-strip span:nth-child(n+3) {
    border-top: 1px solid rgba(195, 211, 214, 0.72);
  }

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

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

  .early-access-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px;
  }

  .early-access-actions {
    justify-content: flex-start;
  }

  .admin-log-summary {
    grid-template-columns: 1fr;
  }

  .admin-log-controls {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: auto;
  }

  .pricing-card-head p {
    min-height: 0;
  }

  .learn-hero,
  .learn-section-heading,
  .learn-detail-grid,
  .resources-hero,
  .resource-group-heading,
  .resource-card-grid,
  .article-checklist {
    grid-template-columns: 1fr;
  }

  .learn-hero {
    gap: 0;
  }

  .learn-hero-copy {
    padding: 24px;
  }

  .learn-record-card {
    margin: 0 24px 24px;
  }

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

  .learn-workflow article:nth-child(odd) {
    border-left: 0;
  }

  .learn-workflow article:nth-child(n+3) {
    border-top: 1px solid var(--line-soft);
  }

  .article-section {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .article-cta {
    grid-template-columns: 1fr;
  }

  .article-related {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .landing-feature-grid article,
  .landing-feature-grid article:first-child,
  .landing-feature-grid article:last-child,
  .landing-faq-grid article,
  .landing-faq-grid article:first-child,
  .landing-faq-grid article:last-child {
    min-height: auto;
    padding: 18px 0;
    border-right: 0;
    border-top: 1px solid var(--line-section);
  }

  .landing-feature-grid article,
  .landing-feature-grid article:first-child,
  .landing-feature-grid article:last-child {
    padding: 16px;
    border: 1px solid var(--line-panel);
    background: var(--surface);
  }

  .landing-feature-grid article:first-child {
    border-top: 3px solid var(--red);
  }

  .landing-feature-grid article:nth-child(2) {
    border-top: 3px solid var(--primary);
  }

  .landing-feature-grid article:last-child {
    border-top: 3px solid var(--green);
  }

  .landing-faq-grid article,
  .landing-faq-grid article:first-child,
  .landing-faq-grid article:last-child {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .landing-feature-icon {
    margin-bottom: 12px;
  }

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

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

  .dashboard-report-grid {
    grid-template-columns: 1fr;
  }

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

  .form-section,
  .account-form .form-section,
  .account-security-shell .form-section,
  .account-form .account-settings-shell .form-section,
  .account-form .danger-section,
  .renewal-form .reminder-fieldset {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-form .account-settings-shell .form-section,
  .account-security-shell .form-section,
  .account-form .danger-section {
    gap: 0;
  }

  .renewal-form .reminder-fieldset .checkbox-grid,
  .renewal-form .reminder-fieldset .field-error,
  .form-section > .settings-fieldset,
  .settings-fieldset {
    grid-column: auto;
  }

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

  .record-editor-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    justify-content: stretch;
  }

  .record-view-bar,
  .record-cycle-action {
    align-items: stretch;
    flex-direction: column;
  }

  .record-editor-rail {
    position: static;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-section);
  }

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

  .rail-facts div:nth-child(2) {
    border-top: 0;
  }

  .record-steps {
    display: none;
  }

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

  .record-editor-main {
    width: 100%;
  }

  .editor-section {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .editor-grid,
  .editor-grid-3 {
    grid-template-columns: 1fr;
  }

  .record-form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .record-form-heading {
    padding: 9px 11px 0;
    border-right: 0;
    background: transparent;
  }

  .account-form .form-section-heading,
  .account-security-shell .form-section-heading,
  .account-form .danger-section .form-section-heading {
    padding: 9px 11px 0;
    border-right: 0;
    background: transparent;
  }

  .record-form-fields,
  .record-editor .reminder-fieldset {
    padding: 0 11px 10px;
  }

  .account-form .form-section-grid,
  .account-form .form-section > .settings-fieldset,
  .account-form .data-transfer-panel,
  .account-form .settings-actions,
  .account-security-shell .settings-actions,
  .account-security-shell .security-list,
  .account-security-shell .security-inline-form,
  .account-security-shell .recovery-code-panel {
    grid-column: auto;
    padding: 0 11px 10px;
  }

  .account-form .settings-data-actions {
    grid-template-columns: 1fr;
  }

  .account-form .data-transfer-row,
  .account-form .data-transfer-row-export {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .record-summary-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-onboarding,
  .record-cycle-action {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-onboarding nav,
  .record-cycle-buttons {
    justify-content: flex-start;
  }

  .admin-profile-strip {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cycle-history-locked,
  .upgrade-prompt {
    flex-direction: column;
    align-items: stretch;
  }

  .email-readiness-item {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .record-summary-primary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .record-summary-facts div:nth-child(odd) {
    border-left: 0;
  }

  .record-summary-facts div:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .record-form-fields,
  .record-form-fields-3 {
    grid-template-columns: 1fr;
  }

  .record-history-heading,
  .record-history-item {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .document-upload-form,
  .document-item,
  .reminder-preview-meta {
    grid-template-columns: 1fr;
  }

  .email-preview-canvas {
    padding: 12px 8px;
  }

  .email-preview-card-header,
  .email-preview-details {
    grid-template-columns: 1fr;
  }

  .email-preview-card-header {
    align-items: flex-start;
  }

  .email-preview-facts,
  .email-preview-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .email-preview-facts div:nth-child(odd) {
    border-left: 0;
  }

  .email-preview-facts div:nth-child(n+3) {
    border-top: 1px solid var(--line-soft);
  }

  .email-preview-hero,
  .email-preview-details,
  .email-preview-ctas,
  .email-preview-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .cycle-history-main,
  .cycle-facts {
    grid-template-columns: 1fr;
  }

  .cycle-facts div {
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .cycle-facts div:first-child {
    border-top: 0;
  }

  .content-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .learn-page {
    gap: 14px;
  }

  .learn-hero-copy {
    padding: 18px;
  }

  .learn-hero h1 {
    font-size: 30px;
  }

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

  .learn-hero-actions .button,
  .learn-offer .button {
    width: 100%;
  }

  .learn-record-card {
    margin: 0 18px 18px;
  }

  .learn-record-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .learn-section-heading h2 {
    font-size: 24px;
  }

  .learn-workflow {
    grid-template-columns: 1fr;
  }

  .learn-workflow article,
  .learn-workflow article:nth-child(odd) {
    min-height: 0;
    border-left: 0;
  }

  .learn-workflow article:nth-child(n+2) {
    border-top: 1px solid var(--line-soft);
  }

  .learn-detail-grid article {
    min-height: 0;
  }

  .resources-hero,
  .article-hero {
    gap: 10px;
    padding: 10px 0 8px 16px;
  }

  .resources-hero h1,
  .article-hero h1 {
    font-size: 27px;
    line-height: 1.1;
  }

  .article-hero > p {
    font-size: 16px;
    line-height: 1.58;
  }

  .article-brief {
    gap: 13px;
    padding: 16px;
  }

  .article-brief dl {
    grid-template-columns: 1fr;
  }

  .article-brief dl div,
  .article-brief dl div:first-child {
    gap: 3px;
    padding: 9px 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .article-brief dl div:first-child {
    border-top: 0;
  }

  .article-outline-mobile ol {
    grid-template-columns: 1fr;
  }

  .article-decision-aid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 17px;
  }

  .article-decision-aid dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .resource-card {
    min-height: 0;
    padding: 14px;
  }

  .resource-card-grid--featured .resource-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 10px;
    padding: 15px;
  }

  .resource-card-grid--featured .resource-card-meta,
  .resource-card-grid--featured .resource-card h3,
  .resource-card-grid--featured .resource-card p,
  .resource-card-grid--featured .resource-card .button {
    grid-column: 1;
    grid-row: auto;
  }

  .resource-card-grid--featured .resource-card .button {
    justify-self: start;
  }

  .resources-method {
    width: 100%;
    align-items: flex-start;
    border-radius: 8px;
  }

  .resource-group-stack {
    gap: 20px;
  }

  .resource-group-heading {
    gap: 4px;
  }

  .resource-group-heading h2 {
    font-size: 17px;
  }

  .resource-card-grid {
    gap: 10px;
  }

  .resource-card .button,
  .article-cta .button {
    width: 100%;
  }

  .article-checklist ul {
    grid-template-columns: 1fr;
  }

  .article-author-note {
    display: grid;
    gap: 3px;
  }

  .article-body {
    padding-top: 0;
  }

  .article-section {
    padding: 22px 0;
  }

  .article-section:first-child {
    padding-top: 0;
  }

  .article-section-heading {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }

  .article-section h2 {
    font-size: 21px;
  }

  .article-section p {
    font-size: 16px;
    line-height: 1.7;
  }

  .article-related-links {
    grid-template-columns: 1fr;
  }

  .article-related-links a {
    min-height: 0;
    padding: 12px 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .article-related-links a:first-child {
    border-top: 0;
  }

  .article-record-example dl {
    grid-template-columns: 1fr;
  }

  .article-record-example dl div,
  .article-record-example dl div:nth-child(-n+2) {
    border-top: 1px solid var(--line-soft);
    border-right: 0;
  }

  .article-record-example dl div:first-child {
    border-top: 0;
  }

  .article-record-example-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .article-sources {
    padding: 17px;
  }

  .content-row-heading {
    padding: 9px 11px 0;
    border-right: 0;
    background: transparent;
  }

  .content-sections p {
    padding: 0 11px 10px;
  }

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

  .record-editor .checkbox-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .security-list-item {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .detail-section:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .detail-section:nth-child(even) {
    padding-right: 0;
  }

  .detail-section-wide,
  .detail-note {
    grid-column: span 1;
  }

  .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination > div {
    justify-content: space-between;
  }

  .page-heading-actions {
    width: 100%;
    justify-content: stretch;
  }

  .page-heading-actions .button {
    flex: 1;
  }

  .landing-floating-nav {
    top: 14px;
    right: 20px;
  }

  .landing-floating-nav .button {
    min-height: 30px;
    padding: 6px 10px;
    box-shadow: 0 4px 12px rgba(18, 65, 87, 0.06);
    font-size: 12px;
  }

  .landing-hero {
    min-height: auto;
    padding: 22px 0 34px;
  }

  .landing-dashboard-scene {
    padding-top: 0;
    padding-bottom: 22px;
  }

  .scene-window {
    width: min(100% - 24px, 680px);
  }

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

  .scene-kpis div:last-child {
    grid-column: span 2;
  }

  .scene-row {
    grid-template-columns: 1fr;
  }

  .scene-toolbar,
  .scene-table .scene-row:nth-of-type(n+3),
  .scene-expanded {
    display: none;
  }

  .scene-head {
    display: none;
  }

  .scene-row {
    gap: 4px;
    padding: 10px;
  }

  .landing-hero-content {
    width: min(100% - 28px, 1240px);
    padding-top: 16px;
    padding-bottom: 18px;
  }

  .landing-product-lockup {
    gap: 10px;
    margin-bottom: 12px;
  }

  .landing-product-mark,
  .landing-product-mark svg,
  .landing-product-mark img {
    width: 46px;
    height: 46px;
  }

  .landing-product-name {
    font-size: 30px;
  }

  .landing-product-lockup strong {
    font-size: 10px;
  }

  .landing-hero h1 {
    font-size: 34px;
    line-height: 1.03;
  }

  .landing-lede {
    margin-top: 16px;
    font-size: 15.5px;
  }

  .landing-conversion-panel {
    gap: 9px;
    margin-top: 20px;
    padding: 11px;
  }

  .landing-launch-note {
    align-items: stretch;
    gap: 9px;
  }

  .landing-launch-note strong {
    font-size: 17px;
  }

  .landing-launch-note em {
    font-size: 11.5px;
  }

  .landing-launch-price {
    flex-basis: 86px;
    padding: 8px;
  }

  .landing-launch-price strong {
    font-size: 27px;
  }

  .landing-actions .button,
  .landing-cta .button {
    width: 100%;
  }

  .landing-secondary-link {
    justify-content: center;
    width: auto;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .landing-assurance {
    max-width: none;
    font-size: 11px;
    justify-content: center;
  }

  .landing-signal-row {
    width: min(100% - 28px, 1240px);
    justify-content: flex-start;
    gap: 7px 14px;
    padding-bottom: 14px;
  }

  .landing-example-flow {
    width: 100%;
    gap: 14px;
    padding: 28px 14px 30px;
  }

  .landing-renewal-compare {
    width: 100%;
    gap: 14px;
    padding: 28px 14px 30px;
  }

  .example-flow-heading {
    padding-left: 12px;
  }

  .example-flow-heading h2,
  .renewal-compare-heading h2 {
    font-size: 23px;
  }

  .renewal-compare-heading {
    padding-left: 12px;
  }

  .renewal-compare-column {
    padding: 14px;
  }

  .renewal-compare-example {
    padding: 12px 14px;
  }

  .example-flow-promises {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .example-flow-promises div {
    min-height: 0;
    padding: 11px 12px;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .example-flow-promises div:first-child {
    border-top: 0;
  }

  .example-flow-labels {
    display: none;
  }

  .example-flow-row {
    grid-template-columns: 1fr;
  }

  .example-flow-row p {
    border-left: 0;
    padding: 11px 12px;
  }

  .example-flow-row p + p {
    border-top: 1px solid var(--line-soft);
  }

  .example-flow-row p span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .example-flow-row p:first-child span {
    color: #8a4f4b;
  }

  .example-flow-row p:last-child span {
    color: var(--primary);
  }

  .landing-band {
    width: min(100% - 28px, 1240px);
    padding: 42px 0;
  }

  .landing-pricing {
    width: 100%;
    padding: 34px 14px;
  }

  .landing-learn-more {
    align-items: stretch;
    flex-direction: column;
  }

  .landing-learn-more .button {
    width: 100%;
  }

  .landing-product {
    margin-top: 24px;
    padding-top: 28px;
  }

  .landing-proof {
    width: min(100% - 28px, 1240px);
    padding: 20px;
  }

  .landing-faq {
    padding-top: 32px;
  }

  .landing-cta {
    width: min(100% - 28px, 1240px);
    padding: 20px;
  }

  .landing-section-heading h2,
  .landing-proof-copy h2 {
    font-size: 28px;
  }

  .landing-metrics div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .landing-cta h2 {
    font-size: 24px;
  }

  .topbar,
  .page-heading,
  .nav-actions,
  .form-actions,
  .record-form-actions,
  .site-footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
    padding: 16px 20px;
  }

  .topbar:not(.auth-topbar) {
    gap: 10px;
    padding: 12px 14px;
  }

  .topbar:not(.auth-topbar) .brand {
    gap: 7px;
  }

  .topbar:not(.auth-topbar) .brand-mark,
  .topbar:not(.auth-topbar) .brand-mark svg,
  .topbar:not(.auth-topbar) .brand-mark img {
    width: 26px;
    height: 26px;
  }

  .topbar:not(.auth-topbar) .brand-wordmark {
    font-size: 16px;
  }

  .topbar:not(.auth-topbar) .nav-actions {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .topbar:not(.auth-topbar) .nav-actions .button,
  .topbar:not(.auth-topbar) .nav-actions form {
    flex: 0 0 auto;
  }

  .topbar:not(.auth-topbar) .nav-actions .button {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .topbar:not(.auth-topbar) .user-email {
    display: none;
  }

  .auth-topbar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px;
  }

  .auth-topbar .brand {
    min-width: 0;
  }

  .auth-topbar .brand-wordmark {
    font-size: 16px;
  }

  .auth-topbar .nav-actions {
    width: auto;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    margin-left: auto;
  }

  .auth-topbar .button {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .auth-shell {
    width: min(100% - 28px, 390px);
    flex: 0 0 auto;
    align-items: start;
    padding: 34px 0 38px;
  }

  .auth-panel {
    padding: 16px;
  }

  .auth-panel h1 {
    font-size: 24px;
  }

  .page {
    width: min(100% - 28px, 1240px);
    margin-top: 18px;
  }

  .site-footer-inner {
    width: min(100% - 28px, 1240px);
    align-items: flex-start;
    padding: 18px 0;
  }

  .site-footer nav {
    gap: 12px;
  }

  .table-shell {
    box-shadow: 0 10px 26px rgba(25, 42, 54, 0.06);
  }

  table {
    min-width: 760px;
  }

  .renewal-title-cell {
    gap: 7px;
  }

  .renewal-type-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .renewal-type-icon svg {
    width: 15px;
    height: 15px;
  }

  .admin-user-table {
    min-width: 720px;
  }

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

  .form-section {
    padding: 13px;
  }

  .editor-section {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0;
  }

  .editor-section-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .editor-section-heading h2 {
    margin: 0;
  }

  .rail-summary strong {
    font-size: 30px;
  }

  .rail-facts {
    grid-template-columns: 1fr;
  }

  .rail-facts div:nth-child(2) {
    border-top: 1px solid var(--line-mid);
  }

  .rail-actions {
    grid-template-columns: 1fr;
  }

  .deadline-preview {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .account-form .checkbox-card span,
  .account-form label span,
  .data-transfer-row span,
  .data-transfer-row strong {
    overflow-wrap: anywhere;
  }

  .compact-file-input,
  .compact-file-input input,
  .data-transfer-row .button,
  .data-transfer-row-export .button {
    width: 100%;
  }

  .record-editor .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .record-summary-facts {
    grid-template-columns: 1fr;
  }

  .record-summary-facts div,
  .record-summary-facts div:nth-child(odd) {
    border-left: 0;
  }

  .record-summary-facts div:nth-child(n+2) {
    border-top: 1px solid var(--line);
  }

  .record-editor .checkbox-card {
    flex-basis: 100%;
  }

  .record-summary-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .record-summary-list strong {
    text-align: left;
  }

  .detail-sections {
    grid-template-columns: 1fr;
  }

  .detail-section,
  .detail-section:nth-child(even),
  .detail-section:nth-child(odd) {
    padding: 12px 0 0;
    border-top: 1px solid var(--line-subtle);
    border-left: 0;
  }

  .detail-section:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .detail-section-wide,
  .detail-note {
    grid-column: auto;
    margin-top: 0;
  }

  h1 {
    font-size: 24px;
  }
}

@media (max-width: 360px) {
  .topbar:not(.auth-topbar) .nav-actions {
    gap: 5px;
  }

  .topbar:not(.auth-topbar) .nav-actions .button {
    min-height: 28px;
    padding: 0 7px;
    font-size: 11px;
  }

  .topbar:not(.auth-topbar) .brand-wordmark,
  .auth-topbar .brand-wordmark {
    font-size: 15px;
  }

  .auth-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .auth-topbar .nav-actions {
    width: 100%;
    margin-left: 0;
  }

  .auth-topbar .button {
    flex: 1 1 0;
  }

  .landing-product-name {
    font-size: 28px;
  }

  .landing-hero h1 {
    font-size: 31px;
  }
}
