:root {
  --ink: #17201b;
  --muted: #5e6a63;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #d8ddd5;
  --accent: #f4a51c;
  --accent-dark: #87590b;
  --green: #263f35;
  --soft: #edf3ef;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

.environment-banner {
  background: #4f2d7f;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 8px 18px;
  text-align: center;
  text-transform: uppercase;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  align-items: center;
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid rgba(23, 32, 27, 0.12);
  display: flex;
  height: 68px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand,
.nav {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 6px;
  color: white;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav a,
.link-button {
  color: var(--ink);
  font: inherit;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 56px);
}

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

.link-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.analytics-preferences-link {
  color: var(--muted);
}

.analytics-consent {
  align-items: stretch;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 12px;
  bottom: 16px;
  box-shadow: 0 14px 36px rgb(27 42 33 / 16%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  left: 16px;
  max-width: 460px;
  padding: 18px;
  position: fixed;
  width: calc(100vw - 32px);
  z-index: 1000;
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent h2 {
  font-size: 1.05rem;
  margin: 0 0 5px;
}

.analytics-consent p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.analytics-consent-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}

.analytics-consent-actions .button {
  min-width: 96px;
}

.analytics-privacy-summary {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 36px;
  padding: clamp(20px, 4vw, 30px);
}

.analytics-privacy-summary h2 {
  margin-top: 0;
}

.analytics-privacy-summary .eyebrow {
  margin-bottom: 8px;
}

.nav-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
}

.hero {
  align-items: center;
  background: #f3f1e9;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: clamp(32px, 7vw, 92px);
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding: clamp(58px, 9vw, 108px) clamp(22px, 7vw, 94px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2.7rem, 5.5vw, 5rem);
  line-height: 1.02;
  margin-bottom: 22px;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.hero-lede {
  color: #334139;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  max-width: 680px;
}

.requirement-note,
.signup-requirement {
  background: rgba(255, 255, 255, 0.68);
  border-left: 3px solid var(--accent-dark);
  color: #334139;
  line-height: 1.5;
  margin: 24px 0 0;
  max-width: 680px;
  padding: 12px 14px;
}

.section-copy {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions,
.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta-assurance {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  margin: 12px 0 0;
}

.button {
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 12px 17px;
  text-decoration: none;
}

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

.button.secondary {
  background: white;
  border: 1px solid var(--line);
}

.button.full {
  width: 100%;
}

.button.disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.75;
}

.band {
  background: var(--green);
  color: white;
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(48px, 7vw, 84px) 22px;
}

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

.product-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 940px;
}

.founder-story {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.founder-story-inner {
  max-width: 940px;
}

.founder-story-copy {
  color: var(--muted);
  line-height: 1.65;
  max-width: 680px;
}

.founder-story-copy p:last-child {
  margin-bottom: 0;
}

.steps article p,
.feature-list p,
.empty-state p,
.wizard-step p,
.success-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.band .steps article p {
  color: rgba(255, 255, 255, 0.78);
}

.step-number {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  margin-bottom: 18px;
  width: 34px;
}

.split {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.split h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.pricing-preview {
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.auth-switch {
  color: var(--green);
  font-weight: 800;
}

.pricing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.pricing-page .pricing-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.pricing-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  padding: 24px;
  position: relative;
}

.pricing-card.featured,
.pricing-card.selected {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 2px rgba(135, 89, 11, 0.12);
}

.pricing-card h2,
.pricing-card h3 {
  margin-bottom: 10px;
}

.pricing-card > p:not(.plan-price) {
  color: var(--muted);
  line-height: 1.5;
}

.plan-price {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.plan-price span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.plan-badge {
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 6px 10px;
  position: absolute;
  right: 16px;
  top: 16px;
}

.plan-features {
  display: grid;
  gap: 10px;
  line-height: 1.4;
  margin: 10px 0 24px;
  padding-left: 20px;
}

.pricing-card .button,
.pricing-card form {
  margin-top: auto;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.pricing-intro {
  margin: 10px auto 40px;
  max-width: 820px;
  text-align: center;
}

.pricing-intro h1 {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
}

.pricing-intro > p:last-child,
.pricing-fine-print {
  color: var(--muted);
  line-height: 1.65;
}

.pricing-fine-print {
  margin: 48px auto 0;
  max-width: 800px;
}

.notice {
  background: #fff7df;
  border: 1px solid #e6bd61;
  border-radius: var(--radius);
  color: #644408;
  padding: 14px 16px;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list p,
.panel,
.empty-state,
.auth-panel,
.success-panel,
.wizard-step,
.adjustment-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-list p {
  margin: 0;
  padding: 18px;
}

.auth-wrap {
  display: grid;
  min-height: calc(100vh - 68px);
  place-items: center;
  padding: 28px;
}

.auth-panel,
.success-panel {
  max-width: 460px;
  padding: 32px;
  width: 100%;
}

.stacked-form {
  display: grid;
  gap: 16px;
}

.auth-status {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  margin: 0;
  padding: 12px 14px;
}

.auth-status[data-state="working"] {
  border-left-color: #b7791f;
}

.auth-status[data-state="success"] {
  background: #edf9f1;
  border-color: #8bc8a0;
}

.auth-status[data-state="error"] {
  background: #fff0ef;
  border-color: #dc7d75;
  color: #7c201a;
}

label {
  color: var(--ink);
  display: grid;
  font-weight: 750;
  gap: 8px;
}

input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.checkbox-row {
  align-items: center;
  display: flex;
}

.checkbox-row input {
  min-height: 0;
  width: 18px;
}

.form-note {
  color: var(--muted);
  margin: 18px 0 0;
}

.app-shell {
  margin: 0 auto;
  max-width: 1120px;
  padding: 42px 22px 72px;
}

.app-shell.narrow {
  max-width: 820px;
}

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

.page-heading h1 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  margin: 0;
}

.dashboard-shell {
  max-width: 1180px;
}

.dashboard-empty {
  padding-bottom: 32px;
  padding-top: 28px;
}

.dashboard-empty .workflow-overview {
  margin-bottom: 18px;
  padding-bottom: 14px;
  padding-top: 14px;
}

.dashboard-empty .tool-header,
.dashboard-empty .workspace-status {
  margin-bottom: 16px;
}

.dashboard-empty .profile-empty-state {
  padding-bottom: 26px;
  padding-top: 26px;
}

.dashboard-empty .account-panel {
  margin-top: 22px;
  padding-top: 20px;
}

.workflow-overview {
  align-items: start;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 18px 20px;
}

.workflow-overview[hidden] {
  display: none;
}

.workflow-overview h2 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.workflow-overview p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 900px;
}

.overview-dismiss,
.text-button {
  background: transparent;
  border: 0;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tool-header {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.tool-header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 8px;
}

.tool-header p {
  color: var(--muted);
  margin: 0;
}

.workspace-status {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-bottom: 22px;
  padding: 12px 16px;
}

.workspace-status > * {
  border-right: 1px solid var(--line);
  color: var(--muted);
  margin-right: 14px;
  padding-right: 14px;
}

.workspace-status > *:last-child {
  border-right: 0;
  margin-left: auto;
  margin-right: 0;
  padding-right: 0;
}

.workspace-status a {
  color: var(--green);
  font-weight: 800;
}

.profile-list-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.profile-list-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 20px 22px;
}

.profile-list-heading h2 {
  margin-bottom: 4px;
}

.profile-list-heading p,
.profile-list-heading span {
  color: var(--muted);
  margin: 0;
}

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

.profile-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.profile-table th,
.profile-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 22px;
  text-align: left;
  vertical-align: middle;
}

.profile-table thead th {
  background: #f6f7f4;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-table tbody tr:last-child th,
.profile-table tbody tr:last-child td {
  border-bottom: 0;
}

.profile-table tbody td {
  color: var(--muted);
}

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

.button.compact {
  min-height: 36px;
  padding: 8px 11px;
}

.button.quiet-danger {
  background: transparent;
  border: 1px solid transparent;
  color: #8d2d20;
  cursor: pointer;
}

.button.quiet-danger:hover {
  border-color: #d7aaa3;
}

.profile-empty-state {
  max-width: 620px;
  padding: 42px 22px;
}

.profile-empty-state h3 {
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.profile-empty-state p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  left: 0;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  top: 0;
  white-space: nowrap;
  width: 1px;
}

.dashboard-intro {
  margin-bottom: 28px;
  max-width: 850px;
}

.dashboard-intro h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  margin-bottom: 18px;
}

.dashboard-lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
  max-width: 760px;
}

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

.task-card,
.onboarding-card,
.profile-explainer,
.profile-library,
.usage-card,
.locked-task {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.task-card {
  background: var(--panel);
  padding: 28px;
}

.task-card-primary {
  background: var(--green);
  color: white;
}

.task-card-primary p {
  color: #dce9e1;
}

.task-label,
.profile-type {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.task-card-primary .task-label {
  color: #ffd98d;
}

.task-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 10px;
}

.task-card p {
  line-height: 1.55;
  max-width: 520px;
}

.task-card .button {
  margin-top: 8px;
}

.task-card-primary .button.primary {
  background: white;
  color: var(--green);
}

.onboarding-card {
  background: var(--green);
  color: white;
  display: grid;
  gap: clamp(30px, 6vw, 72px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  margin-bottom: 24px;
  padding: clamp(28px, 5vw, 52px);
}

.onboarding-copy h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 16px 0;
}

.onboarding-copy > p {
  color: #dce9e1;
  font-size: 1.08rem;
  line-height: 1.6;
}

.start-badge {
  background: var(--accent);
  border-radius: 999px;
  color: #3f2a05;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 7px 11px;
  text-transform: uppercase;
}

.onboarding-card .button.primary {
  background: white;
  color: var(--green);
  margin-top: 5px;
}

.onboarding-card .action-note {
  font-size: 0.9rem;
  margin: 16px 0 0;
}

.workflow-map {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.workflow-map li {
  display: grid;
  gap: 14px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 4px 0 26px;
  position: relative;
}

.workflow-map li:not(:last-child)::after {
  background: rgba(255, 255, 255, 0.28);
  content: "";
  height: calc(100% - 38px);
  left: 18px;
  position: absolute;
  top: 40px;
  width: 2px;
}

.workflow-number {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  display: flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.workflow-map strong,
.workflow-map span {
  display: block;
}

.workflow-map strong {
  font-size: 1.05rem;
  margin: 5px 0 5px;
}

.workflow-map div span {
  color: #c9d9cf;
  line-height: 1.45;
}

.profile-explainer {
  align-items: center;
  background: #fff8e9;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-bottom: 24px;
  padding: 24px 28px;
}

.profile-explainer h2,
.profile-explainer p {
  margin-bottom: 0;
}

.profile-explainer > p {
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-content {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 300px;
}

.profile-library,
.usage-card {
  background: var(--panel);
  padding: 26px;
}

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

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 6px;
}

.section-heading p:not(.eyebrow),
.profile-card p,
.locked-task p,
.usage-card p {
  color: var(--muted);
}

.text-link {
  color: var(--green);
  font-weight: 800;
}

.profile-grid {
  display: grid;
  gap: 14px;
}

.profile-card {
  align-items: center;
  background: var(--soft);
  border-radius: var(--radius);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 20px;
}

.profile-card h3,
.locked-task h3 {
  font-size: 1.2rem;
  margin: 0 0 7px;
}

.profile-card p {
  margin: 0;
}

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

.locked-task {
  align-items: center;
  background: var(--soft);
  display: grid;
  gap: 16px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 20px;
}

.locked-task p {
  margin: 0;
}

.locked-icon {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.usage-card h2 {
  margin-bottom: 18px;
}

.usage-stat {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.usage-stat strong {
  font-size: 2.6rem;
  line-height: 1;
}

.usage-stat span {
  color: var(--muted);
  font-weight: 700;
}

.usage-card progress {
  accent-color: var(--green);
  margin-bottom: 8px;
  width: 100%;
}

.usage-card .button {
  margin-top: 10px;
}

.adjustment-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.adjustment-card {
  display: grid;
  gap: 24px;
  padding: 22px;
}

.adjustment-card p {
  color: var(--muted);
  margin: 0 0 6px;
}

.empty-state {
  max-width: 560px;
  padding: 32px;
}

.account-panel {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 32px;
}

.account-panel summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.account-panel-body {
  max-width: 620px;
  padding-top: 18px;
}

.subscription-panel {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 24px;
}

.subscription-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.subscription-panel p {
  color: var(--muted);
  margin-bottom: 10px;
}

.subscription-panel progress {
  accent-color: var(--green);
  height: 14px;
  max-width: 520px;
  width: 100%;
}

.subscription-actions {
  flex: 0 0 auto;
}

.account-panel p,
.prose p {
  color: var(--muted);
  line-height: 1.65;
}

.delete-form {
  margin-top: 18px;
}

.button.danger {
  background: #8d2d20;
  color: white;
}

.wizard {
  display: grid;
  gap: 18px;
}

.requirements-panel {
  background: #fff8e9;
  border: 1px solid #e2c98e;
  border-radius: var(--radius);
  padding: 20px 24px;
}

.requirements-panel h2 {
  font-size: 1.05rem;
  margin-bottom: 7px;
}

.requirements-panel p {
  color: #5d4a22;
  line-height: 1.55;
  margin: 0;
}

.form-error {
  background: #fff2ed;
  border: 1px solid #d06b45;
  border-radius: var(--radius);
  color: #772f18;
  margin: 0;
  padding: 14px 16px;
}

.wizard-step {
  display: grid;
  gap: 20px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 24px;
}

.detail-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.detail-layout .form-error {
  grid-column: 1 / -1;
}

.panel {
  padding: 24px;
}

.inline-form {
  display: flex;
  gap: 10px;
}

.file-actions a {
  background: var(--soft);
  border-radius: 8px;
  color: var(--ink);
  padding: 10px 12px;
  text-decoration: none;
}

@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 64px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 54px;
    padding-top: 54px;
  }

  .steps,
  .split,
  .detail-layout,
  .task-grid,
  .onboarding-card,
    .profile-explainer,
    .dashboard-content,
    .product-steps,
    .pricing-grid.compact,
  .pricing-page .pricing-grid {
    grid-template-columns: 1fr;
  }

  .page-heading,
  .inline-form,
  .subscription-panel,
  .section-heading,
  .profile-card,
  .profile-actions,
  .tool-header,
  .workflow-overview {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace-status > *:last-child {
    margin-left: 0;
  }

  .locked-task {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .locked-task .button {
    grid-column: 1 / -1;
  }

  .nav {
    gap: 9px;
  }

  .nav-cta {
    padding: 8px 10px;
  }

}

@media (max-width: 400px) {
  .site-footer {
    gap: 12px 16px;
  }

  .site-footer > span {
    flex-basis: 100%;
  }
}

/* Individual profile and correction history */
.profile-workspace {
  max-width: 1360px;
  padding-top: 34px;
}

.back-link {
  color: var(--muted);
  display: inline-block;
  font-weight: 750;
  margin-bottom: 24px;
  text-decoration: none;
}

.profile-workspace-header {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.profile-workspace-header h1,
.settings-header h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.08;
  margin-bottom: 8px;
}

.profile-workspace-header p:last-child,
.settings-header p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.profile-menu {
  position: relative;
}

.profile-menu summary {
  cursor: pointer;
  list-style: none;
}

.profile-menu summary::-webkit-details-marker {
  display: none;
}

.profile-menu-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 46px rgba(23, 32, 27, 0.13);
  display: grid;
  gap: 20px;
  padding: 20px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(360px, 86vw);
  z-index: 10;
}

.profile-file-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.profile-file-links a {
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 750;
}

.correction-upload-panel {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(240px, 0.7fr) minmax(540px, 1.3fr);
  margin-bottom: 22px;
  padding: 22px 24px;
}

.correction-upload-panel > div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
}

.upload-icon {
  align-items: center;
  background: var(--green);
  border-radius: 9px;
  color: white;
  display: flex;
  font-size: 1.25rem;
  grid-row: 1 / 4;
  height: 40px;
  justify-content: center;
  margin-right: 14px;
  width: 40px;
}

.correction-upload-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.correction-upload-panel p {
  color: var(--muted);
  margin: 0;
}

.correction-upload-panel .retention-note {
  grid-column: 2;
  margin-top: 7px;
}

.retention-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

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

.upload-file-field input {
  padding: 7px 9px;
}

.threshold-field {
  font-size: 0.78rem;
  gap: 5px;
}

.threshold-field input {
  min-height: 42px;
}

.correction-upload-form .form-note {
  grid-column: 1 / -1;
}

.corrections-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.corrections-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px 20px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button[data-action-state="active"],
.button[data-action-state="loading"] {
  cursor: progress;
}

.button[data-action-state="loading"] {
  opacity: 0.72;
}

.button[data-action-state="success"] {
  border-color: #2d7a42;
  box-shadow: 0 0 0 3px rgba(45, 122, 66, 0.12);
}

.button[data-action-state="error"] {
  border-color: #a94738;
  box-shadow: 0 0 0 3px rgba(169, 71, 56, 0.12);
}

.form-note[data-state="success"] {
  color: #226b34;
}

.form-note[data-state="error"] {
  color: #8d2d20;
}

.corrections-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.corrections-table th,
.corrections-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 20px;
  text-align: left;
  vertical-align: middle;
}

.corrections-table thead th {
  background: #fafbf9;
  font-size: 0.74rem;
}

.corrections-table tbody tr:last-child th,
.corrections-table tbody tr:last-child td {
  border-bottom: 0;
}

.corrections-table td {
  color: var(--muted);
}

.corrections-table input[type="checkbox"] {
  min-height: 0;
  width: 17px;
}

.correction-file-cell {
  align-items: center;
  display: flex;
  gap: 12px;
}

.file-type-icon {
  align-items: center;
  background: var(--soft);
  border-radius: 6px;
  color: var(--green);
  display: inline-flex;
  font-size: 0.62rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.result-label {
  background: #f1f2ef;
  border-radius: 999px;
  color: var(--muted);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 750;
  padding: 5px 9px;
}

.result-success {
  background: #edf8ef;
  color: #226b34;
}

.result-failed {
  background: #fff0ef;
  color: #8d2d20;
}

.result-processing {
  background: #fff7df;
  color: #87590b;
}

[data-job-result] small {
  color: #8d2d20;
  display: block;
  line-height: 1.35;
  margin-top: 7px;
  max-width: 260px;
}

[data-job-result] small[hidden] {
  display: none;
}

.queue-eta {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.corrections-empty {
  padding: 42px 22px;
}

.corrections-empty h3 {
  margin-bottom: 7px;
}

.corrections-empty p {
  color: var(--muted);
  margin: 0;
}

/* Dedicated account settings */
.account-settings-page {
  max-width: 980px;
}

.settings-header {
  margin-bottom: 28px;
}

.settings-stack {
  display: grid;
  gap: 16px;
}

.settings-card {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  padding: 24px;
}

.settings-card h2 {
  font-size: 1.2rem;
  margin-bottom: 7px;
}

.settings-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.danger-zone {
  border-color: #d7aaa3;
}

.danger-zone .inline-form {
  min-width: min(430px, 100%);
}

@media (max-width: 900px) {
  .correction-upload-panel,
  .correction-upload-form {
    grid-template-columns: 1fr;
  }

  .correction-upload-form .form-note {
    grid-column: 1;
  }

  .settings-card {
    align-items: stretch;
    flex-direction: column;
  }

  .danger-zone .inline-form {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .profile-workspace-header,
  .corrections-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-menu-panel {
    left: 0;
    right: auto;
  }
}

@media (min-width: 761px) and (max-width: 1050px) {
  .pricing-page .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Print profiles workspace */
.dashboard-shell {
  max-width: 1360px;
  padding-top: 48px;
}

.dashboard-shell .tool-header {
  align-items: center;
  margin-bottom: 28px;
}

.dashboard-shell .tool-header h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 8px;
}

.add-profile-button {
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.add-profile-button span {
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 0;
}

.dashboard-shell .workflow-overview {
  align-items: center;
  background: #f8faf7;
  border-color: #bac6be;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 24px;
  margin-bottom: 28px;
  padding: 20px 24px;
}

.dashboard-shell .workflow-overview[hidden] {
  display: none;
}

.overview-icon,
.usage-icon {
  align-items: center;
  background: var(--green);
  color: white;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.overview-icon {
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: 800;
  height: 34px;
  width: 34px;
}

.dashboard-shell .workflow-overview h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.overview-link {
  color: var(--green);
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-shell .overview-dismiss {
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}

.usage-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
}

.calibration-attempts-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 22px;
  overflow: hidden;
}

.calibration-attempts-panel > .profile-toolbar-title {
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}

.calibration-attempt-list {
  display: grid;
}

.calibration-attempt {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 18px 20px;
}

.calibration-attempt + .calibration-attempt {
  border-top: 1px solid var(--line);
}

.calibration-attempt h3 {
  font-size: 1rem;
  margin: 0 0 5px;
}

.calibration-attempt p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.usage-summary-card {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 18px;
  min-height: 88px;
  padding: 18px 20px;
}

.usage-icon {
  border-radius: 9px;
  font-size: 1.25rem;
  height: 42px;
  width: 42px;
}

.usage-summary-card p,
.usage-summary-card form {
  margin: 0;
}

.usage-summary-card strong {
  color: var(--ink);
  font-size: 1.28rem;
}

.usage-summary-card a,
.usage-summary-card .text-button {
  color: var(--green);
  display: inline-block;
  font-size: 0.9rem;
  margin-top: 3px;
}

.usage-summary-card small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.profile-list-panel {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(38, 63, 53, 0.045);
}

.profile-toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 82px;
  padding: 16px 20px;
}

.profile-toolbar-title,
.profile-toolbar-controls,
.profile-name-cell {
  align-items: center;
  display: flex;
}

.profile-toolbar-title {
  gap: 12px;
}

.profile-toolbar-title h2 {
  font-size: 1.2rem;
  margin: 0;
}

.profile-toolbar-title > span {
  background: #f6f7f4;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 5px 8px;
}

.profile-toolbar-controls {
  gap: 10px;
}

.profile-search {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  min-width: min(290px, 30vw);
  padding-left: 12px;
}

.profile-search input,
.profile-filter select {
  border: 0;
  font: inherit;
  min-height: 40px;
  outline: 0;
}

.profile-search input {
  padding-left: 0;
}

.profile-filter select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-width: 138px;
  padding: 8px 34px 8px 12px;
}

.profile-table {
  min-width: 920px;
}

.profile-table th,
.profile-table td {
  padding: 17px 20px;
}

.profile-table thead th {
  background: #fafbf9;
  color: var(--ink);
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: none;
}

.profile-table tbody tr {
  transition: background 140ms ease;
}

.profile-table tbody tr:hover {
  background: #f4f8f5;
}

.profile-name-cell {
  gap: 12px;
  min-width: 240px;
}

.profile-printer-icon {
  align-items: center;
  background: #f6f7f4;
  border-radius: 7px;
  display: inline-flex;
  font-size: 1.25rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.status-badge {
  align-items: center;
  background: #edf8ef;
  border: 1px solid #b9dbbf;
  border-radius: 999px;
  color: #226b34;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 750;
  gap: 6px;
  padding: 4px 9px;
}

.status-badge span {
  background: #2d9745;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.profile-table-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.88rem;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 20px;
}

.table-page {
  align-items: center;
  background: var(--green);
  border-radius: 6px;
  color: white;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.profile-no-results {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin: 0;
  padding: 26px 20px;
  text-align: center;
}

.dashboard-shell .profile-empty-state {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  max-width: none;
  padding: 30px 24px;
}

.dashboard-shell .profile-empty-state p {
  margin: 0;
}

.empty-profile-icon {
  align-items: center;
  background: var(--soft);
  border-radius: 10px;
  color: var(--green);
  display: flex;
  font-size: 1.6rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.dashboard-shell .account-panel {
  margin-top: 32px;
}

@media (max-width: 900px) {
  .usage-grid {
    grid-template-columns: 1fr;
  }

  .usage-summary-card {
    min-height: 74px;
  }

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

  .profile-toolbar-controls,
  .profile-search {
    width: 100%;
  }

  .profile-search {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .analytics-consent {
    bottom: 10px;
    left: 10px;
    max-width: none;
    right: 10px;
    width: auto;
  }

  .analytics-consent-actions .button {
    flex: 1;
  }

  .dashboard-shell {
    padding-top: 30px;
  }

  .dashboard-shell .workflow-overview {
    align-items: start;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
  }

  .dashboard-shell .workflow-overview > div {
    grid-column: 2;
  }

  .dashboard-shell .overview-dismiss {
    grid-column: 3;
    grid-row: 1;
  }

  .overview-link {
    grid-column: 2;
  }

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

  .dashboard-shell .profile-empty-state {
    align-items: start;
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .dashboard-shell .profile-empty-state .button {
    grid-column: 1 / -1;
  }

  .calibration-attempt {
    align-items: start;
    grid-template-columns: 1fr;
  }
}
