:root {
  color-scheme: light;
  --ink: #172925;
  --muted: #687873;
  --line: #dce4df;
  --paper: #fbfcf9;
  --cream: #f3f1e9;
  --jade: #12745f;
  --jade-dark: #0b5647;
  --jade-soft: #dceee7;
  --amber: #d48a31;
  --red: #b94a3d;
  --blue: #315fa8;
  --shadow: 0 18px 48px rgba(22, 47, 40, 0.1);
  --type-caption: 14px;
  --type-meta: 14px;
  --type-control: 15px;
  --type-body: 17px;
  --type-reading: 18px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
}

html[data-font-size="small"] {
  --type-caption: 13px;
  --type-meta: 13px;
  --type-control: 14px;
  --type-body: 16px;
  --type-reading: 17px;
}

html[data-font-size="large"] {
  --type-caption: 15px;
  --type-meta: 15px;
  --type-control: 17px;
  --type-body: 19px;
  --type-reading: 20px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
label,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-header {
  align-items: center;
  background: rgba(251, 252, 249, 0.92);
  border-bottom: 1px solid rgba(220, 228, 223, 0.85);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 76px;
  padding: 0 clamp(22px, 5vw, 80px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.app-header.compact {
  height: 64px;
}

.release-channel-banner {
  align-items: center;
  background: #fff6e6;
  border-bottom: 1px solid #ecd7b0;
  color: #76511e;
  display: flex;
  font-size: 12px;
  gap: 8px;
  justify-content: center;
  line-height: 1.5;
  padding: 8px 20px;
  text-align: center;
}

.release-channel-banner svg {
  flex: 0 0 auto;
  height: 15px;
  width: 15px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--jade);
  border-radius: 10px;
  color: white;
  display: inline-flex;
  font-family: var(--serif);
  font-size: 19px;
  height: 38px;
  justify-content: center;
  width: 38px;
}

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

.brand strong {
  font-family: var(--serif);
  font-size: 17px;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-top: 1px;
}

.app-header nav {
  display: flex;
  gap: 34px;
}

.app-header nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 27px 0 24px;
  position: relative;
  text-decoration: none;
}

.app-header.compact nav a {
  padding: 21px 0 19px;
}

.app-header nav a.active {
  color: var(--ink);
}

.app-header nav a.active::after {
  background: var(--jade);
  bottom: -1px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.account-button {
  display: grid;
  gap: 0.1rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--green-3, #b9d6ca);
  border-radius: 0.75rem;
  background: #f8fcfa;
  color: #173f34;
  cursor: pointer;
  text-align: left;
}

.account-button strong {
  color: #197254;
  font-size: 0.75rem;
}

.account-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(12 35 29 / 58%);
}

.account-dialog {
  position: relative;
  width: min(42rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 70px rgb(16 43 36 / 24%);
}

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

.account-form-grid form,
.account-balance-grid div {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid #dce9e4;
  border-radius: 0.9rem;
  background: #fbfdfc;
}

.account-form-grid label {
  display: grid;
  gap: 0.35rem;
}

.account-form-grid input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #b7cec5;
  border-radius: 0.55rem;
}

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

.account-balance-grid dt,
.account-note,
.trial-price span {
  color: #5f756d;
  font-size: 0.84rem;
}

.account-note a,
.trial-price a,
.signup-promotion a {
  color: var(--jade);
  font-weight: 700;
  text-underline-offset: 3px;
}

.account-promotion {
  background: #e7f4ee;
  border-radius: 0.65rem;
  color: #165b45;
  font-size: 0.86rem;
  font-weight: 750;
  margin: 0;
  padding: 0.7rem 0.8rem;
}

.account-balance-grid dd {
  margin: 0;
  color: #173f34;
  font-size: 1.65rem;
  font-weight: 750;
}

.trial-price {
  align-items: flex-start;
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 0.7rem;
  background: #f0f8f4;
  color: #185b45;
}

.trial-price.exact {
  background: #e6f3ed;
  border: 1px solid rgba(18, 116, 95, 0.2);
}

.trial-price strong {
  font-size: var(--type-caption);
  line-height: 1.4;
}

.trial-price span,
.trial-price small {
  color: #5f756d;
  font-size: calc(var(--type-caption) - 1px);
  line-height: 1.6;
}

.pricing-decline {
  background: transparent;
  border: 0;
  color: #667a72;
  font-size: calc(var(--type-caption) - 1px);
  justify-self: start;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-batch-list {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 2px 0;
  max-height: 180px;
  overflow: auto;
  padding: 0;
}

.pricing-batch-list li {
  border-top: 1px solid rgba(18, 116, 95, 0.12);
  color: #526a62;
  font-size: calc(var(--type-caption) - 1px);
  line-height: 1.45;
  overflow-wrap: anywhere;
  padding-top: 4px;
}

.pricing-decline:hover,
.pricing-decline:focus-visible {
  color: var(--jade-dark);
  outline: 0;
}

@media (max-width: 720px) {
  .account-form-grid,
  .account-balance-grid {
    grid-template-columns: 1fr;
  }

  .account-button span {
    display: none;
  }
}

.mobile-task-link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: none;
  font-size: var(--type-control);
  font-weight: 700;
  gap: 6px;
  min-height: 36px;
  padding: 7px 11px;
  text-decoration: none;
}

.mobile-task-link.active {
  background: var(--jade-soft);
  border-color: rgba(18, 116, 95, 0.22);
  color: var(--jade-dark);
}

.tour-button {
  align-items: center;
  background: rgba(18, 116, 95, 0.06);
  border: 1px solid rgba(18, 116, 95, 0.16);
  border-radius: 999px;
  color: var(--jade-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 750;
  gap: 6px;
  min-height: 36px;
  padding: 8px 12px;
  transition:
    transform 180ms var(--ease-spring-2),
    background 180ms var(--ease-out-3);
  white-space: nowrap;
}

.tour-button:hover {
  background: var(--jade-soft);
  transform: translateY(-1px);
}

.font-size-control {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
}

.font-size-control > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  padding: 0 6px;
}

.font-size-control button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  display: inline-flex;
  font-size: 11px;
  font-weight: 750;
  height: 29px;
  justify-content: center;
  min-width: 29px;
  padding: 0 6px;
}

.font-size-control button:hover {
  background: #f1f5f2;
  color: var(--ink);
}

.font-size-control button.active {
  background: var(--jade);
  box-shadow: 0 3px 8px rgba(18, 116, 95, 0.2);
  color: white;
}

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

.language-select {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: inline-flex;
  gap: 8px;
  padding: 8px 10px;
}

.language-select span {
  color: var(--jade);
  font-size: 12px;
  font-weight: 700;
}

.language-select select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  outline: 0;
}

.avatar {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 11px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.guided-shell {
  background:
    radial-gradient(circle at 8% 8%, rgba(18, 116, 95, 0.08), transparent 30%),
    linear-gradient(180deg, var(--paper), #f4f6f1);
  min-height: calc(100vh - 76px);
  padding: 72px clamp(22px, 6vw, 100px) 130px;
}

.hero-copy {
  margin: 0 auto 48px;
  max-width: 920px;
  text-align: center;
}

.eyebrow,
.kicker {
  color: var(--jade);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: -0.045em;
  line-height: 1.14;
  margin: 16px auto 18px;
  max-width: 820px;
}

.hero-copy > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 auto;
  max-width: 680px;
}

.signup-promotion {
  align-items: center;
  background: linear-gradient(135deg, #123f34, #17654f);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(16, 57, 47, 0.15);
  color: white;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 28px auto 0;
  max-width: 760px;
  padding: 18px 20px;
  text-align: left;
}

.signup-promotion strong,
.signup-promotion span {
  display: block;
}

.signup-promotion span {
  color: #c7ddd5;
  font-size: 13px;
  margin-top: 5px;
}

.signup-promotion-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 14px;
}

.signup-promotion a {
  color: #d7eee5;
  font-size: 12px;
}

.signup-promotion .secondary-button {
  background: white;
  border-color: white;
  color: #154b3d;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .signup-promotion {
    align-items: stretch;
    flex-direction: column;
  }

  .signup-promotion-actions {
    justify-content: space-between;
  }
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 28px;
}

.trust-row span,
.trust-row a {
  align-items: center;
  color: #50625c;
  display: inline-flex;
  font-size: 12px;
  gap: 7px;
  text-decoration: none;
}

.trust-row a:hover {
  color: var(--jade);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.deai-trust-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  margin: 30px auto 0;
  max-width: 860px;
  text-align: left;
}

.deai-flow-status {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 12px;
}

.deai-flow-status span,
.deai-flow-status a {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: var(--type-caption);
  font-weight: 700;
  gap: 6px;
  padding: 7px 11px;
}

.deai-flow-status span {
  background: var(--jade-soft);
  color: var(--jade);
}

.deai-flow-status a {
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.deai-flow-status a:hover,
.deai-flow-status a:focus-visible {
  border-color: var(--jade);
  color: var(--jade);
  outline: 0;
}

.deai-flow-status svg {
  height: 13px;
  width: 13px;
}

.deai-trust-grid span {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 116, 95, 0.14);
  border-radius: 13px;
  color: #405750;
  display: flex;
  font-size: var(--type-caption);
  gap: 9px;
  line-height: 1.55;
  padding: 14px;
}

.deai-trust-grid svg {
  color: var(--jade);
  flex: 0 0 auto;
  margin-top: 2px;
}

.guided-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(220, 228, 223, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(24px, 4vw, 46px);
}

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

.deai-submit-row {
  align-items: center;
}

.deai-submit-row > span {
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.55;
  max-width: 500px;
}

.intake-form {
  display: grid;
  gap: 30px;
}

.field-group {
  display: grid;
  gap: 13px;
}

.field-label {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 10px;
}

.field-label > span {
  color: var(--jade);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.field-note {
  color: var(--muted);
  font-size: 11px;
  margin: -4px 0 0;
}

.segmented {
  background: #eef2ee;
  border-radius: 12px;
  display: grid;
  gap: 4px;
  padding: 4px;
}

.segmented.three {
  grid-template-columns: repeat(3, 1fr);
}

.segment {
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  padding: 11px;
  text-align: center;
}

.segment input,
.tier-option input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.segment.selected {
  background: white;
  box-shadow: 0 2px 8px rgba(20, 50, 42, 0.08);
  color: var(--ink);
}

.segment.unavailable,
.tier-option.unavailable {
  cursor: not-allowed;
  opacity: 0.52;
}

.segment small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  margin-top: 3px;
}

.tier-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

.tier-option {
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 142px;
  padding: 18px;
  position: relative;
}

.tier-select {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 12px;
}

.tier-option.unavailable .tier-select {
  cursor: not-allowed;
}

.tier-option.unavailable {
  background: #fafbfa;
  opacity: 0.82;
}

.tier-option.selected {
  background: #f3faf7;
  border-color: var(--jade);
  box-shadow: inset 0 0 0 1px var(--jade);
}

.tier-content {
  display: block;
  min-width: 0;
  padding-right: 58px;
}

.tier-option strong,
.tier-option small {
  display: block;
}

.tier-option strong {
  font-size: 14px;
}

.tier-option .tier-hint {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.tier-best-for {
  color: var(--ink);
  display: block;
  font-size: var(--type-caption);
  font-weight: 650;
  line-height: 1.55;
  margin-top: 13px;
}

.tier-features {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tier-features li {
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.tier-features li::before {
  color: var(--jade);
  content: "✓";
  font-weight: 800;
  left: 0;
  position: absolute;
}

.tier-features.deep li::before {
  content: "+";
}

.tier-radio {
  border: 1px solid #aebbb6;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 17px;
  margin-top: 2px;
  position: relative;
  width: 17px;
}

.tier-option.selected .tier-radio {
  border: 5px solid var(--jade);
}

.tier-option em {
  background: var(--ink);
  border-radius: 5px;
  color: white;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.1em;
  padding: 4px 6px;
  position: absolute;
  right: 12px;
  top: 10px;
}

.tier-option em.available {
  background: var(--jade);
}

.tier-shared-note {
  align-items: baseline;
  background: #f6f8f5;
  border-radius: 10px;
  color: var(--muted);
  display: flex;
  font-size: var(--type-caption);
  gap: 9px;
  line-height: 1.55;
  padding: 10px 12px;
}

.tier-shared-note strong {
  color: var(--ink);
  flex: 0 0 auto;
}

.explanation-details {
  background: #fafcfb;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.55;
}

.explanation-details > summary {
  align-items: center;
  color: var(--jade-dark);
  cursor: pointer;
  display: flex;
  font-weight: 700;
  justify-content: space-between;
  list-style: none;
  min-height: 34px;
  padding: 7px 11px;
}

.explanation-details > summary::-webkit-details-marker {
  display: none;
}

.explanation-details > summary::after {
  content: "+";
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  margin-left: 12px;
}

.explanation-details[open] > summary::after {
  content: "−";
}

.explanation-details-body {
  padding: 0 11px 11px;
}

.explanation-details-body > :first-child {
  margin-top: 0;
}

.explanation-details-body > :last-child {
  margin-bottom: 0;
}

.field-explanation {
  justify-self: start;
}

.tier-details {
  background: transparent;
  border: 0;
  margin: 10px 0 0 29px;
}

.tier-details > summary {
  min-height: 28px;
  padding: 3px 0;
}

.tier-details .explanation-details-body {
  padding: 7px 0 0;
}

.tier-comparison-details .explanation-details-body > p {
  margin: 10px 2px 0;
}

.retention-details {
  margin-top: -18px;
}

.boundary-details {
  flex: 1 1 420px;
  max-width: 560px;
}

.field-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 0.75fr 0.75fr 1.1fr;
}

.select-field {
  display: grid;
  gap: 7px;
}

.select-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.select-field select,
.select-field input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  outline: 0;
  padding: 11px;
}

.discipline-scope-field {
  max-width: 720px;
}

.discipline-prefixes {
  color: var(--muted);
  font-size: var(--type-caption);
}

.deai-entry {
  align-items: center;
  background: linear-gradient(135deg, var(--jade-soft), #f9fcfb);
  border: 1px solid rgba(18, 116, 95, 0.18);
  border-radius: 12px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 62px;
  padding: 9px 11px;
  text-decoration: none;
  transition:
    border-color 180ms var(--ease-out-3),
    box-shadow 180ms var(--ease-out-3),
    transform 180ms var(--ease-spring-2);
}

.deai-entry:hover,
.deai-entry:focus-visible {
  border-color: var(--jade);
  box-shadow: 0 8px 22px rgba(18, 116, 95, 0.12);
  outline: 0;
  transform: translateY(-1px);
}

.deai-entry.unavailable {
  cursor: not-allowed;
  opacity: 0.68;
}

.deai-entry.unavailable:hover {
  border-color: rgba(18, 116, 95, 0.18);
  box-shadow: none;
  transform: none;
}

.deai-entry-icon {
  align-items: center;
  background: var(--jade);
  border-radius: 10px;
  color: white;
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.deai-entry-icon svg {
  height: 17px;
  width: 17px;
}

.deai-entry-copy {
  min-width: 0;
}

.deai-entry-copy strong,
.deai-entry-copy small {
  display: block;
}

.deai-entry-copy strong {
  font-size: 12px;
}

.deai-entry-copy small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
  margin-top: 3px;
}

.deai-entry-action {
  align-items: center;
  color: var(--jade);
  display: flex;
  font-size: 10px;
  font-weight: 700;
  gap: 4px;
  white-space: nowrap;
}

.deai-entry-action svg {
  height: 13px;
  width: 13px;
}

.related-workflows {
  border-top: 1px solid rgba(18, 116, 95, 0.14);
  margin: 30px auto 0;
  max-width: 920px;
  padding-top: 18px;
}

.related-workflows-title {
  color: var(--muted);
  display: block;
  font-size: calc(var(--type-caption) - 1px);
  margin-bottom: 10px;
}

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

.retention-scope {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
  margin: -18px 0 0;
}

.upload-zone {
  background:
    linear-gradient(90deg, rgba(18, 116, 95, 0.035), transparent),
    #fbfcfb;
  border: 1px dashed #aebdb7;
  border-radius: 16px;
  min-height: 104px;
  overflow: hidden;
  padding: 16px;
  transition:
    border-color 180ms var(--ease-out-3),
    box-shadow 180ms var(--ease-out-3),
    transform 180ms var(--ease-spring-2);
}

.upload-zone.has-file {
  background: #f1faf6;
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(18, 116, 95, 0.08);
}

.upload-zone:focus-within {
  border-color: var(--jade);
  box-shadow: 0 0 0 4px rgba(18, 116, 95, 0.1);
}

.upload-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.upload-heading strong {
  display: block;
  font-size: 14px;
  word-break: break-word;
}

.upload-heading small {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin: 5px 0 0;
}

.batch-upload-policy {
  color: var(--muted);
  font-size: calc(var(--type-caption) - 1px);
  line-height: 1.55;
  margin: -22px 0 0;
}

.upload-icon {
  align-items: center;
  background: var(--jade-soft);
  border-radius: 12px;
  color: var(--jade);
  display: flex;
  font-size: 22px;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.filepond--root {
  font-family: var(--sans);
  margin: 0;
}

.filepond--panel-root {
  background: rgba(255, 255, 255, 0.74);
  border-radius: 12px;
}

.filepond--drop-label {
  color: var(--muted);
  min-height: 62px;
}

.filepond--drop-label label {
  cursor: pointer;
  font-size: 12px;
}

.filepond--label-action {
  color: var(--jade);
  font-weight: 750;
  text-decoration-color: rgba(18, 116, 95, 0.35);
  text-underline-offset: 4px;
}

.filepond--item-panel {
  background: linear-gradient(135deg, var(--jade), var(--jade-dark));
}

.filepond--file {
  font-size: 11px;
}

.secondary-button,
.text-button,
.primary-button,
.result-actions button {
  border: 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.secondary-button {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 14px;
}

.task-history-view {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(18, 116, 95, 0.08), transparent 28rem),
    var(--paper);
}

.task-history-shell {
  margin: 0 auto;
  max-width: 1100px;
  padding: 72px clamp(20px, 5vw, 64px) 100px;
}

.task-history-heading {
  max-width: 780px;
}

.task-history-heading h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.04em;
  margin: 12px 0 18px;
}

.task-history-heading > p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.75;
  margin: 0;
}

.task-history-boundary {
  align-items: flex-start;
  background: rgba(220, 238, 231, 0.6);
  border: 1px solid rgba(18, 116, 95, 0.18);
  border-radius: 14px;
  color: var(--jade-dark);
  display: flex;
  gap: 10px;
  line-height: 1.65;
  margin-top: 24px;
  padding: 14px 16px;
}

.task-history-boundary svg {
  flex: 0 0 auto;
  margin-top: 3px;
}

.task-history-notices {
  color: #76511e;
  margin: 24px 0 0;
}

.task-history-notices p {
  background: #fff6e6;
  border: 1px solid #ecd7b0;
  border-radius: 10px;
  margin: 8px 0 0;
  padding: 10px 12px;
}

.task-history-notices .batch-success {
  background: #edf8f3;
  border-color: rgba(18, 116, 95, 0.24);
  color: var(--jade-dark);
}

.task-history-state {
  align-items: center;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 36px;
  min-height: 190px;
  padding: 32px;
  text-align: center;
}

.task-history-state.error {
  border-color: rgba(185, 74, 61, 0.35);
  color: var(--red);
}

.task-history-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.task-history-card {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(22, 47, 40, 0.05);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(210px, 1fr) minmax(390px, 1.8fr) auto;
  padding: 22px 24px;
}

.task-history-kind {
  color: var(--jade);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.task-history-card h2 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 5px 0 10px;
}

.task-history-status {
  align-items: center;
  background: var(--jade-soft);
  border-radius: 999px;
  color: var(--jade-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.task-history-status.failed {
  background: #f8e7e4;
  color: var(--red);
}

.task-history-status.queued {
  background: var(--cream);
  color: var(--muted);
}

.task-history-card dl {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.task-history-card dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.task-history-card dd {
  font-size: 13px;
  margin: 0;
}

.task-history-open {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.form-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.transfer-consent {
  align-items: flex-start;
  background: #f6f8f5;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  gap: 10px;
  padding: 11px 12px;
}

.transfer-consent input {
  accent-color: var(--jade);
  margin-top: 3px;
}

.transfer-consent strong,
.transfer-consent small {
  display: block;
}

.processor-disclosure {
  align-items: center;
  background: var(--jade-soft);
  border-radius: 9px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--type-caption);
  gap: 6px 12px;
  margin: 0;
  padding: 8px 12px;
}

.processor-disclosure-group {
  display: grid;
  gap: 7px;
}

.intake-disclosure-footer {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.processor-residual-risk {
  border: 1px solid #e6b45c;
  border-radius: 9px;
  color: #7a5106;
  font-size: var(--type-caption);
  line-height: 1.5;
  margin: 0;
  padding: 8px 12px;
}

.processor-disclosure strong {
  color: var(--ink);
}

.processor-disclosure a {
  color: var(--jade);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.transfer-consent strong {
  font-size: calc(var(--type-caption) - 1px);
  line-height: 1.5;
}

.transfer-consent small {
  color: var(--muted);
  font-size: calc(var(--type-caption) - 2px);
  line-height: 1.5;
  margin-top: 3px;
}

.submit-error {
  background: #fff1ef;
  border: 1px solid #f0c6bf;
  border-radius: 9px;
  color: #9c3428;
  font-size: var(--type-control);
  line-height: 1.5;
  padding: 10px 12px;
}

.capability-notice {
  background: #fff8e8;
  border: 1px solid #ecd9a9;
  border-radius: 9px;
  color: #6e5723;
  font-size: var(--type-control);
  line-height: 1.5;
  padding: 10px 12px;
}

.capability-notice.loading {
  background: var(--jade-soft);
  border-color: rgba(18, 116, 95, 0.18);
  color: var(--jade-dark);
}

.cycle-provenance-notice {
  background: #fff4df;
  border: 1px solid #dfbd78;
  border-left: 4px solid #b37716;
  border-radius: 9px;
  color: #67450f;
  font-size: var(--type-control);
  line-height: 1.55;
  margin: 0;
  padding: 11px 13px;
}

.text-button {
  background: transparent;
  color: var(--jade);
  padding: 9px 0;
}

.primary-button {
  align-items: center;
  background: var(--jade);
  box-shadow: 0 8px 18px rgba(18, 116, 95, 0.2);
  color: white;
  display: inline-flex;
  gap: 10px;
  padding: 13px 20px;
  transition:
    transform 180ms var(--ease-spring-2),
    box-shadow 180ms var(--ease-out-3),
    background 180ms var(--ease-out-3);
}

.primary-button:hover {
  background: var(--jade-dark);
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
}

.primary-button:active {
  transform: translateY(0) scale(0.98);
}

.primary-button:disabled,
.primary-button:disabled:hover,
.primary-button:disabled:active {
  background: #82928d;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.privacy-note {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 10px;
  gap: 7px;
  justify-content: center;
  margin-top: -15px;
}

.privacy-note a,
.privacy-card a,
.result-privacy-link,
.modal-privacy a {
  color: var(--jade);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.progress-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 24px auto 0;
  max-width: 920px;
  padding: 26px;
}

.panel-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.panel-heading h2 {
  font-size: 17px;
  margin: 6px 0 0;
}

.progress-overview {
  background: linear-gradient(135deg, #f2f8f5, #f8faf8);
  border: 1px solid #dfece6;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
  padding: 15px 16px;
}

.progress-summary,
.progress-current {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.progress-summary span {
  color: var(--muted);
  font-size: var(--type-caption);
  font-weight: 700;
}

.progress-summary strong {
  color: var(--jade-dark);
  font-size: 24px;
  letter-spacing: -0.04em;
}

.progress-meter {
  background: #dce8e2;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  position: relative;
}

.progress-meter-fill {
  background: linear-gradient(90deg, var(--jade), #58a88a);
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 0;
  transition: width 320ms ease;
}

.progress-current strong {
  color: var(--ink);
  font-size: var(--type-control);
  line-height: 1.45;
}

.progress-current span {
  color: var(--jade-dark);
  flex: 0 0 auto;
  font-size: var(--type-caption);
  font-weight: 700;
}

.live-pill {
  align-items: center;
  background: #eff7f4;
  border-radius: 99px;
  color: var(--jade);
  display: inline-flex;
  font-size: var(--type-caption);
  font-weight: 700;
  gap: 6px;
  padding: 7px 10px;
}

.live-pill i {
  animation: pulse 1.2s infinite;
  background: var(--jade);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.live-pill[data-live-status="done"] i,
.live-pill[data-live-status="waiting"] i,
.live-pill[data-live-status="failed"] i {
  animation: none;
}

.live-pill[data-live-status="waiting"] {
  background: #f3f4f3;
  color: var(--muted);
}

.live-pill[data-live-status="waiting"] i {
  background: #9aa5a1;
}

.live-pill[data-live-status="failed"] {
  background: #fff1ef;
  color: #a64035;
}

.live-pill[data-live-status="failed"] i {
  background: #bd4d40;
}

.stage-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(6, 1fr);
}

.deai-progress-panel .stage-list {
  grid-template-columns: repeat(5, 1fr);
}

.manuscript-progress-panel .stage-list {
  grid-template-columns: repeat(6, 1fr);
}

.stage {
  align-items: center;
  color: #9aa5a1;
  display: grid;
  font-size: 10px;
  gap: 5px;
  justify-items: center;
  position: relative;
  text-align: center;
}

.stage:not(:last-child)::after {
  background: var(--line);
  content: "";
  height: 1px;
  left: calc(50% + 15px);
  position: absolute;
  top: 13px;
  width: calc(100% - 30px);
}

.stage.done:not(:last-child)::after {
  background: var(--jade);
}

.stage-dot {
  align-items: center;
  background: #eef1ef;
  border-radius: 50%;
  display: flex;
  font-size: 9px;
  height: 27px;
  justify-content: center;
  width: 27px;
  z-index: 1;
}

.stage-dot svg {
  width: 12px;
}

.stage.done,
.stage.running {
  color: var(--ink);
}

.stage.failed {
  color: #a64035;
}

.stage.done .stage-dot {
  background: var(--jade);
  color: white;
}

.stage.running .stage-dot {
  animation: pulse-ring 1.4s infinite;
  background: var(--jade-soft);
  color: var(--jade);
}

.stage.failed .stage-dot {
  background: #fff1ef;
  color: #a64035;
}

.stage small {
  font-size: 8px;
}

.result-card {
  align-items: center;
  background: #f6f7f3;
  border-radius: 15px;
  display: grid;
  gap: 20px;
  grid-template-columns: auto 1fr auto;
  margin-top: 24px;
  padding: 18px;
}

.deai-result-shell {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  max-width: none;
}

.deai-result-shell .hero-copy {
  align-self: center;
  margin: 0;
  text-align: left;
}

.deai-result-shell .hero-copy h1,
.deai-result-shell .hero-copy > p {
  margin-left: 0;
}

.deai-result-card {
  align-self: center;
  max-width: 720px;
  width: 100%;
}

.deai-quality-line {
  align-items: center;
  display: flex;
  gap: 14px;
}

.deai-quality-line small,
.deai-quality-line strong {
  display: block;
}

.deai-quality-line small {
  color: var(--muted);
  font-size: var(--type-caption);
}

.deai-quality-line strong {
  font-family: var(--serif);
  font-size: 28px;
  margin-top: 3px;
}

.deai-metric-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0;
}

.deai-metric-grid > div {
  background: #f4f7f3;
  border-radius: 12px;
  padding: 14px;
}

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

.deai-metric-grid span {
  color: var(--muted);
  font-size: var(--type-caption);
}

.deai-metric-grid strong {
  font-family: var(--serif);
  font-size: 30px;
  margin-top: 8px;
}

.deai-screening-note {
  background: #f4f7f3;
  border-left: 3px solid var(--sage);
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.65;
  margin: -10px 0 24px;
  padding: 10px 12px;
}

.deai-downloads {
  grid-template-columns: 1fr 1fr;
}

.deai-downloads .primary-button {
  grid-column: 1 / -1;
}

.deai-progress-grid {
  grid-template-columns: 0.55fr 1.45fr;
}

.result-score {
  border-right: 1px solid var(--line);
  padding: 6px 24px 6px 8px;
}

.result-score span,
.result-summary span {
  color: var(--muted);
  display: block;
  font-size: 9px;
  text-transform: uppercase;
}

.result-score strong {
  font-family: var(--serif);
  font-size: 38px;
}

.result-score small {
  color: var(--muted);
}

.result-summary strong {
  display: block;
  font-size: 14px;
  margin: 5px 0;
}

.result-summary p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
}

.result-actions {
  display: grid;
  gap: 5px;
}

.result-actions button,
.result-actions a {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-size: var(--type-control);
  font-weight: 700;
  padding: 7px 10px;
  text-align: left;
  text-decoration: none;
}

.result-actions small {
  align-items: center;
  color: var(--red);
  display: flex;
  font-size: 8px;
  gap: 4px;
  margin-top: 4px;
}

/* Variant B */
.variant-b {
  background: #eef1ed;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.side-nav {
  background: #102c27;
  color: white;
  display: flex;
  flex-direction: column;
  padding: 28px 18px;
}

.brand.inverse {
  color: white;
  padding: 0 8px;
}

.brand.inverse .brand-mark {
  background: #d9eee7;
  color: var(--jade-dark);
}

.brand.inverse small {
  color: #91aba4;
}

.side-nav nav {
  display: grid;
  gap: 7px;
  margin-top: 48px;
}

.side-nav nav a {
  align-items: center;
  border-radius: 10px;
  color: #adc1bb;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 11px;
  padding: 12px;
}

.side-nav nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.side-privacy {
  align-items: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #88a29b;
  display: flex;
  font-size: 9px;
  gap: 8px;
  line-height: 1.5;
  margin-top: auto;
  padding: 22px 8px 0;
}

.workbench {
  min-width: 0;
  padding: 0 32px 120px;
}

.workbench-header {
  align-items: center;
  display: flex;
  height: 96px;
  justify-content: space-between;
}

.workbench-header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.workbench-header h1 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 5px 0 0;
}

.workbench-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(420px, 1.2fr) minmax(330px, 0.8fr);
}

.workspace-card {
  background: white;
  border: 1px solid #dfe5e1;
  border-radius: 16px;
  padding: 24px;
}

.workspace-card.intake {
  grid-row: span 2;
}

.workspace-card.stats {
  min-height: 180px;
}

.section-title {
  align-items: center;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title em {
  background: var(--jade-soft);
  border-radius: 6px;
  color: var(--jade);
  font-size: 9px;
  font-style: normal;
  padding: 4px 7px;
}

.section-title small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
}

.progress-panel.compact {
  border: 0;
  margin: 0;
  padding: 0;
}

.progress-panel.compact .panel-heading {
  margin-bottom: 16px;
}

.progress-panel.compact .progress-overview {
  margin-bottom: 14px;
  padding: 13px;
}

.progress-panel.compact .progress-current {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.progress-panel.compact .stage-list {
  gap: 10px;
  grid-template-columns: 1fr;
}

.progress-panel.compact .stage {
  grid-template-columns: auto 1fr auto;
  justify-items: start;
  text-align: left;
}

.progress-panel.compact .stage:not(:last-child)::after {
  display: none;
}

.progress-panel.compact .stage small {
  justify-self: end;
}

.progress-panel.compact .result-card {
  grid-template-columns: 1fr;
}

.progress-panel.compact .result-score {
  border-bottom: 1px solid var(--line);
  border-right: 0;
}

.progress-panel.compact .result-actions {
  display: none;
}

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

.metric-grid > div {
  background: #f5f7f4;
  border-radius: 10px;
  min-height: 65px;
  padding: 12px;
}

.metric-grid span {
  color: var(--muted);
  display: block;
  font-size: 9px;
}

.metric-grid strong {
  display: block;
  font-size: 16px;
  margin-top: 5px;
}

/* Variant C */
.variant-c {
  background: #e8ede9;
  min-height: 100vh;
}

.evidence-shell {
  display: grid;
  grid-template-columns: 280px minmax(460px, 1fr) 340px;
  height: calc(100vh - 64px);
}

.evidence-control,
.finding-rail {
  background: #f7f8f5;
  overflow-y: auto;
  padding: 24px 18px 110px;
}

.evidence-control {
  border-right: 1px solid var(--line);
}

.finding-rail {
  border-left: 1px solid var(--line);
}

.intake-form.rail {
  gap: 20px;
}

.intake-form.rail .segmented.three,
.intake-form.rail .tier-grid,
.intake-form.rail .field-row {
  grid-template-columns: 1fr;
}

.intake-form.rail .upload-zone {
  grid-template-columns: auto 1fr;
}

.intake-form.rail .secondary-button {
  display: none;
}

.intake-form.rail .form-footer {
  align-items: stretch;
  flex-direction: column-reverse;
}

.intake-form.rail .primary-button {
  justify-content: center;
}

.intake-form.rail .privacy-note {
  margin-top: -6px;
}

.document-view {
  min-width: 0;
  overflow-y: auto;
  padding: 18px 32px 120px;
}

.document-toolbar {
  align-items: center;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin: 0 auto 12px;
  max-width: 760px;
}

.document-toolbar span,
.document-toolbar strong {
  display: block;
  font-size: 10px;
}

.document-toolbar strong {
  color: var(--ink);
  font-size: 12px;
  margin-top: 3px;
}

.page-count {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  padding: 7px 9px;
}

.paper {
  background: white;
  box-shadow: 0 12px 40px rgba(17, 44, 37, 0.1);
  margin: 0 auto;
  max-width: 760px;
  min-height: 920px;
  padding: clamp(36px, 6vw, 76px);
}

.paper-section {
  color: var(--jade);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.paper h2 {
  font-family: var(--serif);
  font-size: 23px;
  margin: 14px 0 30px;
}

.paper p {
  color: #384944;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 2.15;
  margin: 0 0 20px;
}

.paper .highlighted {
  background: linear-gradient(transparent 5%, #fff0b8 5%, #fff0b8 94%, transparent 94%);
  position: relative;
}

.annotation-pin {
  align-items: center;
  background: var(--red);
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  display: inline-flex;
  font-size: 9px;
  height: 23px;
  justify-content: center;
  position: absolute;
  right: -42px;
  top: 5px;
  width: 23px;
}

.mock-chart {
  border: 1px solid var(--line);
  margin-top: 42px;
  padding: 20px;
}

.chart-label {
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 16px;
}

.chart-flow {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.chart-flow span {
  background: var(--jade-soft);
  border: 1px solid #bad8cd;
  border-radius: 7px;
  color: var(--jade-dark);
  font-size: 10px;
  padding: 10px 12px;
}

.chart-flow i {
  color: var(--jade);
  font-style: normal;
}

.finding {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 15px;
}

.finding.active {
  border-left: 3px solid var(--red);
  box-shadow: 0 8px 24px rgba(16, 44, 39, 0.07);
}

.finding > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.finding small {
  color: var(--muted);
  font-size: 8px;
}

.severity {
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  padding: 4px 6px;
}

.severity.must {
  background: #f8e4e1;
  color: var(--red);
}

.severity.suggest {
  background: #fff0da;
  color: #9a641d;
}

.severity.optional {
  background: #e6eef8;
  color: var(--blue);
}

.finding h3 {
  font-size: 13px;
  line-height: 1.45;
  margin: 14px 0 8px;
}

.finding p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
  margin: 0;
}

.finding footer {
  border-top: 1px solid var(--line);
  margin-top: 13px;
  padding-top: 10px;
}

.finding footer span {
  align-items: center;
  color: var(--jade);
  display: flex;
  font-size: 9px;
  gap: 5px;
}

.finding.muted {
  opacity: 0.68;
}

.finding-source {
  color: var(--jade);
  font-size: var(--type-meta);
  font-weight: 700;
}

.finding .finding-field,
.evidence-card .finding-field {
  display: block;
  margin-top: 12px;
}

.finding-field > strong {
  color: var(--ink);
  display: block;
  font-size: var(--type-meta);
  margin-bottom: 4px;
}

.real-findings .finding {
  opacity: 1;
}

.result-empty {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.7;
  padding: 16px;
}

.mini-progress {
  background: white;
  border-radius: 12px;
  margin-top: 18px;
  padding: 14px;
}

.mobile-notice {
  display: none;
}

/* Variant D — selected hybrid */
.hybrid-progress-shell {
  background:
    radial-gradient(circle at 12% 10%, rgba(18, 116, 95, 0.09), transparent 31%),
    #f4f6f2;
  min-height: calc(100vh - 76px);
  padding: 64px clamp(24px, 7vw, 110px) 130px;
}

.progress-intro {
  margin: 0 auto 32px;
  max-width: 980px;
}

.progress-intro h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
  margin: 12px 0;
}

.progress-intro > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  max-width: 660px;
}

.current-file {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 13px;
  grid-template-columns: auto 1fr auto;
  margin-top: 28px;
  max-width: 650px;
  padding: 13px 15px;
}

.file-badge {
  align-items: center;
  background: var(--jade-soft);
  border-radius: 9px;
  color: var(--jade);
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.current-file small,
.current-file strong {
  display: block;
}

.current-file small {
  color: var(--muted);
  font-size: 9px;
}

.current-file strong {
  font-size: 12px;
  margin-top: 4px;
}

.hybrid-progress-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 0.72fr 1.28fr;
  margin: 0 auto;
  max-width: 980px;
}

.task-settings-card,
.b-progress-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  padding: 24px;
}

.task-settings-card dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.task-settings-card dl > div {
  border-bottom: 1px solid #edf0ee;
  display: grid;
  gap: 12px;
  grid-template-columns: 0.8fr 1.2fr;
  padding: 13px 0;
}

.task-settings-card dt {
  color: var(--muted);
  font-size: 10px;
}

.task-settings-card dd {
  font-size: 11px;
  font-weight: 600;
  margin: 0;
  text-align: right;
}

[data-rule-pack-basis] {
  overflow-wrap: anywhere;
}

[data-rule-pack-primary="deep"] {
  color: var(--jade-dark);
  font-weight: 800;
}

[data-rule-pack-component="standard_base"] {
  display: inline-block;
  font-weight: 500;
  margin-top: 0.35rem;
}

.result-rule-pack {
  display: grid;
  gap: 0.35rem;
}

.result-rule-pack small {
  color: var(--muted);
}

.privacy-card {
  align-items: flex-start;
  background: #f1f8f5;
  border-radius: 10px;
  color: var(--jade-dark);
  display: flex;
  font-size: 9px;
  gap: 8px;
  line-height: 1.55;
  margin-top: 18px;
  padding: 12px;
}

.privacy-card a {
  display: block;
  margin-top: 5px;
}

.b-progress-card .progress-panel.compact .panel-heading {
  background: #f6f8f5;
  border-radius: 10px;
  padding: 13px;
}

.b-progress-card .stage {
  border-bottom: 1px solid #edf0ee;
  padding: 7px 3px;
}

.b-progress-card .stage:last-child {
  border-bottom: 0;
}

.hybrid-result-shell {
  display: grid;
  grid-template-columns: 285px minmax(480px, 1fr) 340px;
  height: calc(100vh - 64px);
}

.real-result-evidence {
  overflow-y: auto;
}

.real-result-content {
  margin: 0 auto;
  max-width: 820px;
  padding: 28px clamp(18px, 4vw, 48px) 100px;
}

.source-protection-message {
  align-items: flex-start;
  background: var(--jade-soft);
  border: 1px solid #bad8cd;
  border-radius: 14px;
  color: var(--jade-dark);
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px;
}

.source-protection-message svg {
  flex: 0 0 auto;
  height: 22px;
  width: 22px;
}

.source-protection-message p {
  font-size: var(--type-body);
  line-height: 1.7;
  margin: 0;
}

.result-evidence-section {
  margin-top: 30px;
}

.result-evidence-section > .section-title {
  margin-bottom: 12px;
}

.advanced-result-section {
  background: linear-gradient(145deg, #f2f8f5, #fbfcfa);
  border: 1px solid #b9d8cc;
  border-radius: 18px;
  margin-top: 0;
  padding: 20px;
}

.advanced-result-section + .result-evidence-section {
  margin-top: 34px;
}

.advanced-result-intro {
  margin-bottom: 14px;
  margin-top: 0;
}

.advanced-summary-grid > div {
  background: white;
  border: 1px solid #d8e8e1;
}

.advanced-result-section .evidence-card {
  border-color: #d2e5dd;
}

.advanced-item-id {
  color: var(--jade-dark);
  display: block;
  font-size: var(--type-caption);
  font-weight: 750;
  margin-bottom: 6px;
}

.advanced-question-list {
  margin-top: 22px;
}

.advanced-question-list > .section-title {
  margin-bottom: 12px;
}

.evidence-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 18px;
}

.evidence-card h3 {
  font-size: var(--type-control);
  line-height: 1.5;
  margin: 0 0 10px;
}

.evidence-card > p,
.evidence-card .finding-field p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.7;
  margin: 0;
}

.result-detail-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 0 0;
}

.result-detail-grid > div {
  background: #f5f7f4;
  border-radius: 8px;
  padding: 10px;
}

.result-detail-grid dt {
  color: var(--muted);
  font-size: var(--type-caption);
}

.result-detail-grid dd {
  color: var(--ink);
  font-size: var(--type-control);
  font-weight: 650;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.summary-grid {
  margin-bottom: 12px;
}

.result-explanation {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.65;
  margin: 12px 0 0;
}

.result-detail-list {
  margin-top: 12px;
}

.result-detail-list > strong {
  font-size: var(--type-meta);
}

.result-detail-list ul {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.65;
  margin: 7px 0 0;
  padding-left: 20px;
}

.result-overview-rail {
  background: #f7f8f5;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 30px 20px 110px;
}

.result-overview-rail h1 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.35;
  margin: 12px 0 20px;
}

.large-score {
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  padding: 18px 0;
}

.large-score strong {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
}

.large-score span {
  color: var(--muted);
  font-size: var(--type-caption);
  line-height: 1.6;
}

.overview-finding {
  padding: 22px 0 16px;
}

.overview-finding small {
  color: var(--red);
  font-size: var(--type-caption);
  font-weight: 700;
}

.overview-finding p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.7;
}

.download-stack {
  display: grid;
  gap: 7px;
}

.sample-result-note {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.55;
  padding: 14px 16px;
}

.download-stack button:not(.primary-button),
.download-stack a:not(.primary-button) {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: var(--type-control);
  font-weight: 600;
  padding: 10px;
  text-align: left;
  text-decoration: none;
}

.download-stack .primary-button {
  justify-content: space-between;
  margin-bottom: 5px;
}

.download-stack .delete-results {
  color: var(--red);
  cursor: pointer;
  margin-top: 5px;
}

.expiry-note {
  align-items: center;
  color: var(--red);
  display: flex;
  font-size: var(--type-meta);
  gap: 6px;
  margin-top: 14px;
}

.result-privacy-link {
  align-items: center;
  display: flex;
  font-size: var(--type-meta);
  gap: 6px;
  margin-top: 11px;
}

.result-modal-backdrop {
  align-items: center;
  background: rgba(10, 31, 26, 0.56);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 200;
  backdrop-filter: blur(7px);
}

.result-modal {
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  box-shadow: var(--shadow-6);
  max-width: 510px;
  padding: 32px;
  position: relative;
  width: 100%;
}

.driver-popover.grant-tour {
  border: 1px solid rgba(18, 116, 95, 0.14);
  border-radius: 16px;
  box-shadow: var(--shadow-5);
  color: var(--ink);
  font-family: var(--sans);
  max-width: 330px;
  padding: 18px;
}

.grant-tour .driver-popover-title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
}

.grant-tour .driver-popover-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.grant-tour .driver-popover-next-btn,
.grant-tour .driver-popover-prev-btn {
  border: 0;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 11px;
  text-shadow: none;
}

.grant-tour .driver-popover-next-btn {
  background: var(--jade);
  color: white;
}

.grant-tour .driver-popover-progress-text {
  color: var(--muted);
  font-size: 10px;
}

.modal-close {
  align-items: center;
  background: #f1f4f2;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  display: flex;
  font-size: 20px;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 34px;
}

.modal-success {
  align-items: center;
  background: var(--jade);
  border-radius: 14px;
  color: white;
  display: flex;
  font-size: 24px;
  height: 54px;
  justify-content: center;
  margin-bottom: 20px;
  width: 54px;
}

.result-modal h2 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.025em;
  margin: 9px 0 10px;
}

.result-modal > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  margin: 0;
}

.modal-deletion-time {
  background: #fff7e9;
  border: 1px solid #f0dfbf;
  border-radius: 12px;
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr auto;
  margin-top: 20px;
  padding: 14px;
}

.modal-deletion-time span {
  color: #8a6328;
  font-size: 9px;
  grid-column: 1 / -1;
}

.modal-deletion-time strong {
  color: #5a3a0f;
  font-size: 14px;
}

.modal-deletion-time small {
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  white-space: nowrap;
}

.modal-privacy {
  align-items: flex-start;
  background: #f0f8f5;
  border-radius: 12px;
  color: var(--jade-dark);
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
}

.modal-privacy > svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

.modal-privacy strong,
.modal-privacy a {
  display: block;
  font-size: 10px;
}

.modal-privacy a {
  margin-top: 5px;
}

.modal-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 22px;
}

.modal-actions .primary-button,
.modal-actions .secondary-button {
  justify-content: center;
  min-width: 130px;
}

/* Privacy guarantee */
.privacy-page {
  background:
    radial-gradient(circle at 15% 5%, rgba(18, 116, 95, 0.09), transparent 27%),
    #f7f8f4;
}

.privacy-header {
  align-items: center;
  background: rgba(247, 248, 244, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 72px;
  justify-content: space-between;
  padding: 0 clamp(20px, 6vw, 92px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

#privacy-content {
  margin: 0 auto;
  max-width: 1120px;
  padding: 76px clamp(20px, 5vw, 64px) 80px;
}

.privacy-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 58px;
}

.privacy-back {
  color: var(--jade);
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 46px;
  text-decoration: none;
}

.privacy-hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin: 15px 0 20px;
  max-width: 850px;
}

.privacy-hero > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
  max-width: 780px;
}

.prototype-disclosure {
  background: #fff6e6;
  border: 1px solid #ecd7b0;
  border-radius: 12px;
  color: #76511e;
  font-size: 11px;
  line-height: 1.65;
  margin-top: 28px;
  max-width: 850px;
  padding: 14px 16px;
}

.privacy-section,
.privacy-boundary {
  border-bottom: 1px solid var(--line);
  padding: 58px 0;
}

.section-number {
  color: var(--jade);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.privacy-section h2,
.privacy-boundary h2 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 10px 0 28px;
}

.privacy-card-grid,
.privacy-control-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

.privacy-card-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
}

.privacy-card-item h3 {
  font-size: 13px;
  margin: 0 0 8px;
}

.privacy-card-item p,
.privacy-boundary p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
  margin: 0;
}

.privacy-control-grid {
  grid-template-columns: repeat(3, 1fr);
}

.lifecycle-list {
  display: grid;
  gap: 0;
}

.lifecycle-list article {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: 42px 1fr;
  padding: 18px 0;
}

.lifecycle-list article > span {
  color: var(--jade);
  font-size: 11px;
  font-weight: 700;
}

.lifecycle-list h3 {
  font-size: 13px;
  margin: 0 0 5px;
}

.lifecycle-list p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
  margin: 0;
}

.verify-section {
  display: grid;
  gap: 50px;
  grid-template-columns: 0.75fr 1.25fr;
}

.verify-section ol {
  counter-reset: verify;
  list-style: none;
  margin: 0;
  padding: 0;
}

.verify-section li {
  border-top: 1px solid var(--line);
  color: #3f514b;
  counter-increment: verify;
  font-size: 11px;
  line-height: 1.7;
  padding: 15px 0 15px 38px;
  position: relative;
}

.verify-section li::before {
  color: var(--jade);
  content: counter(verify, decimal-leading-zero);
  font-size: 9px;
  font-weight: 700;
  left: 0;
  position: absolute;
}

.privacy-boundary {
  background: #102c27;
  border: 0;
  border-radius: 18px;
  color: white;
  margin-top: 58px;
  padding: 34px;
}

.privacy-boundary h2 {
  margin-bottom: 14px;
}

.privacy-boundary p {
  color: #b8ccc6;
  max-width: 890px;
}

.privacy-footer {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  padding: 26px 0 0;
}

.product-service-disclosure {
  align-items: flex-start;
  border-top: 1px solid rgba(128, 149, 141, 0.24);
  color: var(--muted);
  display: flex;
  gap: 10px;
  margin: 18px auto 0;
  max-width: 1180px;
  padding: 22px 28px 30px;
}

.product-service-disclosure svg {
  flex: 0 0 16px;
  height: 16px;
  margin-top: 2px;
  stroke: currentColor;
  stroke-width: 1.7;
  width: 16px;
}

.product-service-disclosure p {
  font-size: var(--type-caption);
  line-height: 1.65;
  margin: 0;
}

.billing-page {
  background:
    radial-gradient(circle at 8% 2%, rgba(18, 116, 95, 0.13), transparent 25rem),
    radial-gradient(circle at 92% 18%, rgba(212, 138, 49, 0.08), transparent 22rem),
    #f5f7f3;
  min-height: 100vh;
}

.billing-page .privacy-header {
  background: rgba(250, 251, 248, 0.9);
  border-color: rgba(202, 214, 207, 0.75);
}

#billing-content {
  margin: 0 auto;
  max-width: 1180px;
  padding: 38px 28px 82px;
}

.billing-hero {
  background:
    radial-gradient(circle at 88% 4%, rgba(135, 209, 183, 0.28), transparent 24rem),
    linear-gradient(138deg, #0a4238 0%, #0e6654 58%, #137760 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(11, 66, 55, 0.2);
  color: white;
  overflow: hidden;
  padding: 30px 52px 52px;
  position: relative;
}

.billing-hero::after {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  height: 330px;
  position: absolute;
  right: -92px;
  top: -118px;
  width: 330px;
}

.billing-back {
  align-items: center;
  color: #d5eee6;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  margin-bottom: 68px;
  position: relative;
  text-decoration: none;
  z-index: 1;
}

.billing-back:hover {
  color: white;
}

.billing-hero-copy {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.billing-hero .eyebrow {
  color: #a9d8c9;
}

.billing-hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -0.05em;
  line-height: 1.08;
  margin: 16px 0 20px;
}

.billing-hero-copy > p {
  color: #d6e7e1;
  font-size: var(--type-body);
  line-height: 1.8;
  margin: 0;
  max-width: 730px;
}

.billing-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.billing-summary span {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #f4fbf8;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 14px;
}

.billing-panel,
.billing-detail-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(210, 220, 214, 0.88);
  border-radius: 24px;
  box-shadow: 0 14px 42px rgba(32, 58, 51, 0.06);
}

.billing-panel {
  margin-top: 24px;
  padding: 38px;
}

.billing-section-heading {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: 38px 1fr;
}

.billing-section-heading h2,
.billing-detail-card h2,
.billing-promotion h2 {
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.025em;
  margin: -5px 0 8px;
}

.billing-section-heading p,
.billing-detail-card > p {
  color: var(--muted);
  font-size: var(--type-body);
  line-height: 1.75;
  margin: 0;
}

.billing-rate-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.billing-rate-card {
  background: linear-gradient(155deg, #fbfdfb 0%, #f1f7f3 100%);
  border: 1px solid #d7e5df;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 20px;
}

.billing-rate-card-head {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 24px 1fr;
}

.billing-rate-card-head > span {
  color: #87a49a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding-top: 3px;
}

.billing-rate-card h3 {
  font-size: 14px;
  line-height: 1.45;
  margin: 0;
}

.billing-rate-primary {
  align-items: baseline;
  color: var(--jade-dark);
  display: flex;
  gap: 6px;
  margin: auto 0 17px;
}

.billing-rate-primary strong {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

.billing-rate-primary span {
  color: #45645a;
  font-size: 11px;
  line-height: 1.4;
}

.billing-rate-secondary {
  border-top: 1px solid #dbe7e2;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  padding-top: 13px;
}

.billing-detail-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.billing-detail-card {
  padding: 36px 38px;
}

.billing-detail-card .section-number {
  display: block;
  margin-bottom: 18px;
}

.billing-detail-card h2 {
  margin-bottom: 20px;
}

.billing-note {
  background: #eaf5f0;
  border-left: 3px solid var(--jade);
  border-radius: 3px 12px 12px 3px;
  color: #31594e;
  font-size: var(--type-meta);
  line-height: 1.7;
  margin-top: 24px;
  padding: 16px 18px;
}

.billing-lifecycle-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

.billing-lifecycle-list article {
  border-left: 1px solid var(--line);
  min-height: 154px;
  padding: 3px 18px 0;
}

.billing-lifecycle-list article:first-child {
  border-left: 0;
  padding-left: 0;
}

.billing-lifecycle-list article > span {
  color: var(--jade);
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 18px;
}

.billing-lifecycle-list h3 {
  font-size: 14px;
  margin: 0 0 8px;
}

.billing-lifecycle-list p {
  color: var(--muted);
  font-size: var(--type-meta);
  line-height: 1.65;
  margin: 0;
}

.billing-promotion {
  align-items: center;
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 255, 255, 0.1), transparent 15rem),
    linear-gradient(130deg, #153a33, #0d2824);
  border-radius: 24px;
  color: white;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 24px;
  padding: 34px 38px;
}

.billing-promotion .section-number {
  color: #8ed0bc;
}

.billing-promotion h2 {
  margin: 8px 0 10px;
}

.billing-promotion p {
  color: #c4d7d1;
  font-size: var(--type-meta);
  line-height: 1.7;
  margin: 0;
  max-width: 760px;
}

.billing-promotion > a {
  align-items: center;
  background: white;
  border-radius: 999px;
  color: #123d34;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  padding: 13px 18px;
  text-decoration: none;
  white-space: nowrap;
}

.billing-promotion > a:hover {
  background: #eaf5f0;
}

.billing-footer {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  padding: 24px 8px 0;
  text-align: center;
}

.billing-footer p {
  margin: 0;
}

.billing-footer p + p {
  margin-top: 6px;
}

@media (max-width: 960px) {
  .billing-rate-grid,
  .billing-lifecycle-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-lifecycle-list article:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  #billing-content {
    padding: 20px 14px 56px;
  }

  .billing-hero {
    border-radius: 20px;
    padding: 22px 22px 30px;
  }

  .billing-back {
    margin-bottom: 42px;
  }

  .billing-hero h1 {
    font-size: 40px;
  }

  .billing-summary {
    gap: 7px;
    margin-top: 26px;
  }

  .billing-summary span {
    font-size: 11px;
    padding: 8px 11px;
  }

  .billing-panel,
  .billing-detail-card {
    border-radius: 18px;
    padding: 26px 22px;
  }

  .billing-detail-grid,
  .billing-rate-grid,
  .billing-lifecycle-list {
    grid-template-columns: 1fr;
  }

  .billing-section-heading {
    gap: 5px;
    grid-template-columns: 1fr;
  }

  .billing-section-heading h2,
  .billing-detail-card h2,
  .billing-promotion h2 {
    font-size: 25px;
    margin-top: 7px;
  }

  .billing-rate-card {
    min-height: 190px;
  }

  .billing-lifecycle-list article,
  .billing-lifecycle-list article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 0;
    padding: 18px 0 0;
  }

  .billing-lifecycle-list article:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .billing-lifecycle-list article > span {
    margin-bottom: 9px;
  }

  .billing-promotion {
    align-items: stretch;
    border-radius: 18px;
    gap: 24px;
    grid-template-columns: 1fr;
    padding: 27px 22px;
  }

  .billing-promotion > a {
    width: 100%;
  }
}

.prototype-switcher {
  align-items: center;
  background: #102c27;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  bottom: 20px;
  box-shadow: 0 12px 36px rgba(10, 35, 29, 0.3);
  color: white;
  display: flex;
  gap: 13px;
  left: 50%;
  padding: 7px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 100;
}

.prototype-switcher button {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
  color: white;
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.prototype-switcher span {
  min-width: 150px;
  text-align: center;
}

.prototype-switcher small,
.prototype-switcher strong {
  display: block;
}

.prototype-switcher small {
  color: #9eb7b0;
  font-size: 7px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.prototype-switcher strong {
  font-size: 11px;
  margin-top: 2px;
}

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

@keyframes pulse-ring {
  50% {
    box-shadow: 0 0 0 5px rgba(18, 116, 95, 0.1);
  }
}

@media (max-width: 1050px) {
  .mobile-task-link {
    display: inline-flex;
  }

  .task-history-card {
    grid-template-columns: 1fr auto;
  }

  .task-history-card dl {
    grid-column: 1 / -1;
    grid-row: 2;
  }

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

  .workspace-card.intake {
    grid-row: auto;
  }

  .evidence-shell {
    grid-template-columns: 250px 1fr;
  }

  .evidence-shell .finding-rail {
    display: none;
  }

  .hybrid-result-shell {
    grid-template-columns: 260px 1fr;
  }

  .hybrid-result-shell .finding-rail {
    display: none;
  }

  .real-result-shell {
    grid-template-areas:
      "overview evidence"
      "overview findings";
    grid-template-columns: 260px minmax(0, 1fr);
    height: auto;
    min-height: calc(100vh - 64px);
  }

  .real-result-shell .result-overview-rail {
    grid-area: overview;
  }

  .real-result-shell .real-result-evidence {
    grid-area: evidence;
    overflow-y: visible;
  }

  .real-result-shell .real-findings {
    border-left: 0;
    display: block;
    grid-area: findings;
    overflow-y: visible;
    padding-bottom: 100px;
  }

  .app-header {
    grid-template-columns: 1fr auto;
  }

  .app-header nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .mobile-task-link {
    justify-content: center;
    padding: 8px;
    width: 36px;
  }

  .mobile-task-link span {
    display: none;
  }

  .task-history-shell {
    padding: 44px 14px 80px;
  }

  .task-history-heading h1 {
    font-size: 38px;
  }

  .task-history-card {
    align-items: stretch;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .task-history-card dl {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .task-history-open {
    justify-content: center;
  }

  .app-header {
    height: 64px;
    padding: 0 16px;
  }

  .brand small,
  .avatar {
    display: none;
  }

  .tour-button {
    justify-content: center;
    padding: 8px;
    width: 36px;
  }

  .tour-button span {
    display: none;
  }

  .guided-shell {
    min-height: calc(100vh - 64px);
    padding: 42px 14px 120px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy > p {
    font-size: 14px;
  }

  .trust-row {
    gap: 10px 16px;
  }

  .deai-trust-grid,
  .deai-result-shell,
  .deai-metric-grid,
  .deai-downloads {
    grid-template-columns: 1fr;
  }

  .deai-result-shell .hero-copy {
    text-align: center;
  }

  .deai-downloads .primary-button {
    grid-column: auto;
  }

  .guided-card {
    border-radius: 18px;
    padding: 20px;
  }

  .segmented.three,
  .tier-grid,
  .field-row,
  .related-workflow-grid {
    grid-template-columns: 1fr;
  }

  .tier-option {
    min-height: auto;
  }

  .tier-shared-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .upload-zone {
    grid-template-columns: auto 1fr;
  }

  .upload-zone .secondary-button {
    display: none;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .primary-button {
    justify-content: center;
  }

  .stage-list {
    grid-template-columns: 1fr;
  }

  .progress-current {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .stage {
    grid-template-columns: auto 1fr auto;
    justify-items: start;
    text-align: left;
  }

  .stage:not(:last-child)::after {
    display: none;
  }

  .stage small {
    justify-self: end;
  }

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

  .result-score {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .variant-b {
    display: block;
  }

  .side-nav {
    display: none;
  }

  .workbench {
    padding: 0 14px 120px;
  }

  .workbench-header {
    height: 78px;
  }

  .workspace-card {
    padding: 18px;
  }

  .evidence-shell {
    display: block;
    height: auto;
  }

  .evidence-control {
    border-right: 0;
    padding-bottom: 110px;
  }

  .document-view,
  .finding-rail {
    display: none;
  }

  .mobile-notice {
    background: var(--ink);
    bottom: 82px;
    color: white;
    display: block;
    font-size: 10px;
    left: 50%;
    padding: 8px 12px;
    position: fixed;
    transform: translateX(-50%);
    width: max-content;
    z-index: 30;
  }

  .prototype-switcher {
    bottom: 14px;
  }

  .hybrid-progress-shell {
    padding: 42px 14px 120px;
  }

  .hybrid-progress-grid {
    grid-template-columns: 1fr;
  }

  .hybrid-result-shell {
    display: block;
    height: auto;
  }

  .result-overview-rail {
    border-right: 0;
    min-height: calc(100vh - 64px);
    padding: 36px 20px 130px;
  }

  .hybrid-result-shell .document-view,
  .hybrid-result-shell .finding-rail {
    display: none;
  }

  .real-result-shell .real-result-evidence,
  .real-result-shell .real-findings {
    display: block;
  }

  .real-result-shell .real-findings {
    padding: 24px 18px 120px;
  }

  .result-detail-grid {
    grid-template-columns: 1fr;
  }

  .result-modal-backdrop {
    align-items: flex-end;
    padding: 10px;
  }

  .result-modal {
    border-radius: 20px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    padding: 26px 20px 22px;
  }

  .result-modal h2 {
    font-size: 24px;
    padding-right: 28px;
  }

  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal-actions .primary-button {
    grid-row: 1;
  }

  .privacy-header {
    height: 64px;
    padding: 0 16px;
  }

  #privacy-content {
    padding: 44px 16px 60px;
  }

  .privacy-back {
    margin-bottom: 34px;
  }

  .privacy-hero h1 {
    font-size: 38px;
  }

  .privacy-hero > p {
    font-size: 14px;
  }

  .privacy-card-grid,
  .privacy-control-grid,
  .verify-section {
    grid-template-columns: 1fr;
  }

  .privacy-section,
  .privacy-boundary {
    padding: 42px 0;
  }

  .privacy-boundary {
    padding: 24px 20px;
  }
}

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

  .progress-meter-fill {
    transition: none;
  }
}

/* Readability layer: responsive roles stay distinct while the user controls scale. */
.brand small,
.eyebrow,
.kicker,
.field-note,
.retention-scope,
.privacy-note,
.tier-option small,
.upload-heading small,
.stage small,
.result-actions small,
.section-title em,
.section-title small,
.current-file small,
.task-settings-card dt,
.overview-finding small,
.expiry-note,
.result-privacy-link,
.modal-deletion-time span,
.modal-deletion-time small,
.privacy-footer,
.prototype-disclosure {
  font-size: var(--type-caption);
}

.tour-button,
.language-select select,
.app-header nav a,
.field-label,
.select-field > span,
.segmented label > span,
.tier-option strong,
.select-field select,
.select-field input,
.deai-entry-copy strong,
.deai-entry-action,
.upload-heading strong,
.filepond--drop-label label,
.secondary-button,
.text-button,
.primary-button,
.result-actions button,
.stage > span:not(.stage-dot),
.panel-heading h2,
.section-title,
.task-settings-card dd,
.download-stack button,
.modal-actions button,
.privacy-back,
.finding h3,
.privacy-card-item h3,
.lifecycle-list h3 {
  font-size: var(--type-control);
}

.trust-row span,
.trust-row a,
.document-toolbar,
.page-count,
.severity,
.modal-privacy,
.side-privacy,
.workbench-header > div > span {
  font-size: var(--type-meta);
}

.hero-copy > p,
.result-summary p,
.overview-finding p,
.finding p,
.result-modal > p,
.privacy-card-item p,
.lifecycle-list p,
.privacy-section > p,
.privacy-boundary p,
.verify-section li,
.privacy-hero > p {
  font-size: var(--type-body);
  line-height: 1.75;
}

.paper p {
  font-size: var(--type-reading);
  line-height: 1.85;
}

@media (max-width: 720px) {
  .header-actions,
  .privacy-actions {
    gap: 7px;
  }

  .language-select > span {
    display: none;
  }

  .font-size-control > span {
    display: none;
  }

  .font-size-control button {
    padding: 0 4px;
  }

  .select-field select,
  .language-select select {
    font-size: max(16px, var(--type-control));
  }
}

@media (max-width: 480px) {
  .app-header .brand > span:not(.brand-mark) {
    display: none;
  }

  .app-header .brand {
    min-width: 0;
  }

  .account-button {
    padding-inline: 0.55rem;
  }
}
