:root {
  color-scheme: light;
  --bg: #fbfdfb;
  --panel: #ffffff;
  --text: #1f2933;
  --muted: #64707d;
  --line: #e3e8e6;
  --line-strong: #cdd8d3;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #e9fbf4;
  --brand-softer: #f4fbf8;
  --warning-bg: #fff7ed;
  --warning-text: #9a3412;
  --danger-bg: #fef2f2;
  --danger-text: #991b1b;
  --shadow: 0 18px 45px rgba(24, 43, 35, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
}

.account-terms { display: block; margin: 1rem 0 .5rem; }
.account-terms input[type="checkbox"] { width: auto; margin-right: .4rem; }
.account-marketing { min-width: 0; border: 0; padding: 0; margin: .5rem 0; }
.account-marketing legend { font-weight: 600; padding: 0; }
.account-surface .account-marketing .account-terms { display: flex; align-items: center; gap: .5rem; min-height: 44px; margin: 0; }
.account-surface .account-form .account-terms input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; padding: 0; }
.account-marketing details { margin: .25rem 0 .5rem; }

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.06), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

svg {
  display: block;
  flex: 0 0 auto;
}

svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration-color: rgba(15, 118, 110, 0.28);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

.shell,
.page {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(227, 232, 230, 0.9);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 65px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f6f63;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

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

.brand-logo-mark {
  display: block;
  width: 44px;
  height: 44px;
  overflow: visible;
}

.brand-logo-mark .pulse-arc {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.0;
  vector-effect: non-scaling-stroke;
}

.brand-logo-mark .pulse-arc-dark {
  stroke: #0f6f63;
}

.brand-logo-mark .pulse-arc-light {
  stroke: #64c9b3;
}

.brand-logo-mark .pulse-dot {
  fill: #0f6f63;
}

.brand-name {
  color: #0f6f63;
}

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.page {
  padding: 54px 0 70px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.52);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.footer-copy {
  display: grid;
  gap: 3px;
}

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

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 1.25rem;
  line-height: 1.2;
}

h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.home-hero {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.support-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 8px 14px;
  font-size: 1rem;
  font-weight: 700;
}

.support-note a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.support-note a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.support-note span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand);
}

.lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.tool-card,
.summary,
.results,
.feedback,
.contact-panel,
.intro,
.error-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.tool-card {
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
}

.tool-card-body {
  padding: 24px;
}

.input-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 15px 12px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.tab-button svg {
  width: 17px;
  height: 17px;
}

.tab-button:hover,
.tab-button.is-active {
  color: var(--text);
}

.tab-button.is-active {
  border-bottom-color: var(--brand);
  background: rgba(233, 251, 244, 0.62);
}

.input-panel {
  margin-bottom: 24px;
}

.upload-dropzone {
  display: grid;
  justify-items: center;
  width: 100%;
  min-height: 214px;
  border: 2px dashed var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  padding: 36px 20px;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-drag-active {
  border-color: var(--brand);
  background: rgba(233, 251, 244, 0.38);
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  color: var(--muted);
}

.upload-dropzone:hover .dropzone-icon,
.upload-dropzone.is-drag-active .dropzone-icon {
  color: var(--brand);
}

.dropzone-icon svg {
  width: 34px;
  height: 34px;
}

.dropzone-title {
  font-weight: 750;
}

.dropzone-copy {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.file-input,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

textarea,
input[type="email"],
input[type="password"],
input[type="text"],
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  padding: 12px 13px;
}

textarea:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
select:focus,
.tab-button:focus-visible,
.mode-card:focus-within,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.2);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
}

.pasted-textarea {
  display: block;
  min-height: 214px;
}

.hint,
.compact-limits,
.mode-card small {
  color: var(--muted);
  font-size: 0.9rem;
}

.mode-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
  border: 0;
  padding: 0;
}

.mode-picker legend {
  grid-column: 1 / -1;
  margin-bottom: 10px;
  font-size: 0.93rem;
  font-weight: 750;
}

.mode-card {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 14px;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.mode-card:hover,
.mode-card:has(input:checked) {
  border-color: var(--brand);
}

.mode-card:has(input:checked) {
  background: rgba(233, 251, 244, 0.62);
}

.mode-card input {
  margin: 3px 0 0;
  accent-color: var(--brand);
}

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

.mode-card strong {
  font-size: 0.92rem;
}

.mode-icon {
  color: var(--muted);
  margin-top: 2px;
}

.mode-card:has(input:checked) .mode-icon {
  color: var(--brand);
}

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

button,
.primary-action {
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  transition: background-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

button:hover,
.primary-action:hover {
  background: var(--brand-dark);
}

button:disabled,
.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px 18px;
}

.primary-action svg {
  width: 18px;
  height: 18px;
}

.info-note {
  display: flex;
  gap: 12px;
  max-width: 720px;
  margin: 18px auto 0;
  border-radius: 12px;
  background: rgba(241, 245, 244, 0.72);
  color: var(--muted);
  padding: 14px 16px;
}

.info-note {
  font-size: 0.78rem;
}

.info-note svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--brand);
}

.info-note p {
  margin-bottom: 0;
}

.info-note p {
  font-size: inherit;
  line-height: 1.42;
}

.how-section {
  max-width: 720px;
  margin: 58px auto 0;
}

.how-section h2 {
  text-align: center;
}

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

.steps article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 18px;
}

.steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 800;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-alert,
.attention-banner,
.mock-note,
.notice-box,
.warnings,
.disclaimer {
  border-radius: 10px;
  padding: 13px 15px;
}

.form-alert {
  margin: 0 24px 18px;
  border-left: 4px solid var(--danger-text);
  background: var(--danger-bg);
  color: var(--danger-text);
  font-weight: 750;
}

.attention-banner,
.warnings,
.notice-box {
  background: var(--brand-softer);

  border: 1px solid var(--line);
}

.attention-banner,
.notice-box {
  font-weight: 750;
}

.mock-note {
  border-left: 4px solid #c2410c;
  background: var(--warning-bg);
  color: var(--warning-text);
}

.warnings {
  padding-left: 34px;
}

.disclaimer {
  border-left: 4px solid var(--line-strong);
  background: var(--panel);
  color: var(--muted);
}

.disclaimer.subtle {
  box-shadow: none;
  font-size: 0.95rem;
}

.summary,
.results,
.feedback,
.contact-panel,
.intro,
.error-box {
  padding: 24px;
  margin-top: 24px;
}

.result-summary {
  margin-top: 0;
}

.job-progress {
  max-width: 680px;
  margin: 0 auto 24px;
}

.job-progress-body {
  padding: 28px;
}

.job-progress h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.job-message {
  color: var(--text);
  font-size: 1.05rem;
}

.job-helper {
  margin-bottom: 0;
  color: var(--muted);
}

.progress-track {
  position: relative;
  overflow: hidden;
  height: 10px;
  margin: 22px 0 16px;
  border-radius: 999px;
  background: #e5ece9;
}

.progress-track span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: var(--brand);
  animation: progress-slide 1.35s ease-in-out infinite;
}

@keyframes progress-slide {
  0% {
    transform: translateX(-110%);
  }
  50% {
    transform: translateX(85%);
  }
  100% {
    transform: translateX(250%);
  }
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 750;
}

.summary h1,
.intro h1,
.error-box h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.summary-label {
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  padding: 7px 12px;
  font-weight: 750;
}

.result-stats-sentence {
  margin-bottom: 0;
  color: var(--text);
  font-weight: 650;
}

.mode-helper {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.technical-summary {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.technical-summary summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 650;
}

dl div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--brand-softer);
  padding: 13px;
}

dt {
  color: var(--muted);
  font-size: 0.86rem;
}

dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

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

dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--panel);
}

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

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

th {
  background: var(--brand-softer);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.existence-success {
  white-space: nowrap;
}

.relevance-attention > td:first-child {
  box-shadow: inset 2px 0 0 #b89a60;
}

.relevance-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
}

.relevance-reason {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

.feedback-actions button,
.feedback-detail button,
.contact-form button {
  padding: 11px 16px;
}

.feedback-detail {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.feedback-detail .field[hidden] {
  display: none;
}

.feedback-status {
  color: var(--brand-dark);
  font-weight: 750;
}

.feedback-status.error,
.status-error {
  color: var(--danger-text);
  font-weight: 750;
}

.result-next-action {
  margin: 18px 0 0;
}

.restart-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  padding: 11px 16px;
  text-decoration: none;
  transition: background-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.restart-action:hover {
  background: var(--brand-dark);
  color: #fff;
}

.error-page {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.error-page .lead {
  margin-bottom: 24px;
}

.side-page {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.side-page h2 {
  margin-top: 28px;
}

.side-page ul {
  padding-left: 22px;
}

.support-hero {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.support-layout {
  display: grid;
  gap: 18px;
  width: min(100%, 860px);
  margin: 0 auto;
}

.support-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.support-panel.contact-panel {
  margin-top: 0;
}

.support-panel > :last-child,
.support-panel section:last-child > :last-child,
.support-callout > :last-child,
.section-heading > :last-child {
  margin-bottom: 0;
}

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

.support-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--brand-softer);
  padding: 18px;
}

.support-grid p,
.support-grid ul,
.section-heading p,
.support-links p,
.legal-page p {
  color: var(--muted);
}

.support-callout {
  margin-top: 18px;
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  background: var(--brand-soft);
  padding: 16px 18px;
}

.section-heading {
  margin-bottom: 18px;
}

.legal-page {
  width: min(100%, 860px);
  margin: 0 auto;
}

.legal-page section {
  margin-top: 30px;
}

.legal-page section:first-of-type {
  margin-top: 24px;
}

/* Local legal editorial layout; archived wording keeps its existing styling. */
.legal-editorial .legal-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.legal-editorial .legal-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.legal-editorial > section + section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.legal-editorial h2,
.legal-editorial h3 {
  scroll-margin-top: 150px;
}

.legal-editorial h2 {
  font-size: 1.5rem;
}

.legal-editorial .legal-retention {
  min-width: 0;
  table-layout: fixed;
  overflow-wrap: anywhere;
}

.legal-retention th:first-child { width: 27%; }
.legal-retention thead th:nth-child(2) { width: 25%; }
.legal-retention tbody th { font-size: .9rem; font-weight: 600; }
.legal-retention td { font-size: .9rem; }

.legal-editorial .legal-version {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@media (max-width: 640px) {
  .legal-retention thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .legal-retention tbody,
  .legal-retention tr,
  .legal-retention tbody th,
  .legal-retention td {
    display: block;
    width: 100%;
  }
  .legal-retention tbody th:first-child { width: 100%; }
  .legal-retention tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .legal-retention tr:last-child { border-bottom: 0; }
  .legal-retention tbody th,
  .legal-retention td {
    padding: 4px 0;
    border: 0;
  }
  .legal-retention td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
  }
}

.legal-supplied .legal-anchor,
.legal-supplied details,
.legal-supplied tr[id],
.legal-supplied table[id] {
  scroll-margin-top: 150px;
}

.legal-supplied .legal-anchor { display: block; }
.legal-supplied .legal-retention thead th:nth-child(2) { width: auto; }
.legal-supplied details {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.legal-supplied summary {
  min-height: 44px;
  padding: 10px 0;
  font-weight: 600;
  color: var(--brand-dark);
  cursor: pointer;
}
.legal-supplied summary:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.2);
  outline-offset: 2px;
}
.legal-supplied details[open] summary { margin-bottom: 12px; }

@media print {
  body:has(.legal-supplied) .site-header { position: static; }
  .legal-supplied details { border: 0; padding: 0; }
  .legal-supplied details::details-content {
    content-visibility: visible;
    display: block;
  }
  .legal-supplied details > :not(summary) { display: block; }
  .legal-supplied details > table { display: table; }
  .legal-supplied .legal-retention tr { break-inside: avoid; }
}

#kontakt {
  scroll-margin-top: 88px;
}

.field {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 750;
}

.contact-form {
  max-width: 680px;
}

.contact-message {
  min-height: 160px;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  top: auto;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .shell,
  .page {
    width: min(100% - 22px, 1040px);
  }

  .site-header-inner,
  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header-inner {
    padding: 13px 0;
  }

  .site-nav,
  .site-footer nav {
    gap: 12px;
  }

  .page {
    padding-top: 38px;
  }

  h1 {
    font-size: 2.25rem;
  }

  .tool-card-body,
  .summary,
  .results,
  .feedback,
  .contact-panel,
  .intro,
  .error-box {
    padding: 18px;
  }

  .form-alert {
    margin: 0 18px 16px;
  }

  .tab-button {
    padding: 14px 8px;
  }

  .mode-picker,
  .steps,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-panel {
    padding: 18px;
  }

  .upload-dropzone {
    min-height: 190px;
  }
}
.account-shell { max-width: 42rem; padding-top: 2rem; padding-bottom: 3rem; overflow-wrap: anywhere; }
.account-form { display: grid; gap: .75rem; max-width: 30rem; margin: 1.5rem 0; }
.account-form input { width: 100%; min-width: 0; padding: .75rem; font: inherit; }
.account-form button { min-height: 44px; }
.account-links { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.account-links a { display: inline-flex; align-items: center; min-height: 44px; }
.account-links a[hidden] { display: none; }
.account-form[hidden] { display: none; }
/* Accepted account composition, also reused by the provisional MFA form. */
.account-surface {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  overflow-wrap: anywhere;
}

.account-entry {
  max-width: 680px;
}

.account-surface h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.account-heading {
  margin-bottom: 24px;
}

.account-email,
.account-muted {
  color: var(--muted);
}

.account-heading .account-email,
.account-entry > [data-account-intro] {
  margin-bottom: 0;
}

.account-surface .account-form {
  display: block;
  max-width: none;
  margin: 24px 0 0;
}

.account-surface .account-form input {
  padding: 12px 13px;
}

.account-surface .field .hint {
  margin: 8px 0 0;
}

.account-surface .account-links {
  gap: 10px 24px;
  margin: 0;
}

.account-entry .account-links {
  margin-top: 18px;
}

.account-status {
  margin: 18px 0 0;
}

.account-status:empty {
  margin: 0;
}

.account-surface .account-next {
  margin-top: 18px;
}

.account-surface .account-allowance {
  margin: 24px 0;
  background: var(--brand-softer);
}

.account-allowance h2 {
  margin-bottom: 12px;
}

.account-allowance p {
  margin: 12px 0;
}

.account-balance {
  font-size: 1.25rem;
}

.account-allowance .restart-action {
  margin-top: 8px;
}

.account-section,
.account-subsection {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.account-section > :last-child {
  margin-bottom: 0;
}

.account-section h2 {
  margin-bottom: 12px;
}

.account-section p {
  margin-bottom: 12px;
}

.account-admin-link {
  margin: 24px 0;
}

.account-danger a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--danger-text);
}

.account-shell a.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .7rem 1.1rem; border-radius: var(--radius-sm); background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; }
.account-shell a.button:hover { background: var(--brand-dark); }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 600px) {
  .site-nav { gap: .3rem 1rem; }
}

/* Provisional administration: shared tokens, fields and table treatment. */
.admin-shell {
  width: 100%;
  overflow-wrap: anywhere;
}

.admin-shell h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.admin-shell h2 { margin-bottom: 12px; }
.admin-heading { margin-bottom: 24px; }
.admin-session { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.admin-session p { margin: 0; }
.admin-shell .account-links { align-items: center; gap: 10px 24px; margin: 0; }
.admin-shell .admin-nav { border-block: 1px solid var(--line); margin-top: 18px; padding-block: 6px; }
.admin-nav a { color: var(--muted); text-decoration: none; }
.admin-nav a:hover { color: var(--brand); }
.admin-nav a[aria-current="page"] { color: var(--brand-dark); text-decoration: underline; text-decoration-thickness: 2px; }
.admin-shell .account-form { display: block; max-width: 680px; margin: 24px 0; }
.admin-shell .account-form input { padding: 12px 13px; }
.admin-shell .field .hint { margin: 8px 0 0; }
.admin-shell input,
.admin-shell select { min-width: 0; max-width: 100%; }
.admin-shell input[type="search"],
.admin-shell input[type="number"],
.admin-shell input[type="date"],
.admin-shell input[type="time"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  padding: 12px 13px;
}
.admin-shell button { white-space: normal; }
#admin-digest-title { scroll-margin-top: 160px; }
.admin-link-button {
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-dark);
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(15, 118, 110, 0.28);
  text-underline-offset: .18em;
}
.admin-link-button:hover { background: transparent; color: var(--brand); }
.admin-shell input:focus,
.admin-shell summary:focus-visible,
.admin-table-wrap:focus-visible,
.admin-auth [data-admin-status]:focus {
  outline: 3px solid rgba(15, 118, 110, 0.2);
  outline-offset: 2px;
}
.admin-shell summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 600; }
.admin-facts { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); max-width: 680px; gap: 8px 24px; margin: 18px 0; font-size: .9rem; }
.admin-facts dt { color: var(--muted); }
.admin-facts dd { margin: 0; min-width: 0; font-variant-numeric: tabular-nums; }
.admin-actions > details { border-bottom: 1px solid var(--line); }
.admin-actions > details:last-child { border-bottom: 0; }
.admin-actions details > p { max-width: 680px; font-size: .9rem; }
.admin-danger > summary,
.admin-danger .admin-link-button { color: var(--danger-text); text-decoration-color: currentColor; }
.admin-shell .admin-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: end; max-width: none; }
.admin-filters .field { margin: 0; min-width: 0; }
.admin-filter-wide { grid-column: span 2; }
.admin-filter-full { grid-column: 1 / -1; }
.admin-filters button { justify-self: start; }
.admin-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.admin-field-grid .field { min-width: 0; }
.admin-shell .admin-export { margin: 24px 0; }
.admin-export > a { display: inline-flex; align-items: center; min-height: 44px; }
.admin-export .hint { margin: 8px 0 0; }
.admin-shell .admin-pagination { margin-top: 18px; }
.admin-table { min-width: 760px; table-layout: fixed; font-size: .875rem; }
.admin-table th,
.admin-table td,
.admin-health th,
.admin-health td { padding: 10px 14px; }
.admin-table tbody th,
.admin-health tbody th { background: var(--panel); color: var(--text); font-size: inherit; font-weight: 600; }
.admin-table tr:last-child th,
.admin-health tr:last-child th { border-bottom: 0; }
.admin-table th:first-child { width: 30%; }
.admin-users th:last-child { width: 180px; }
.admin-table .admin-date { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.admin-meta { display: block; color: var(--muted); font-size: .84rem; font-weight: 400; }
.admin-table-hint { margin: 8px 0 0; }
.admin-health { min-width: 0; table-layout: fixed; font-size: .9rem; }
.admin-health caption { text-align: left; }
.admin-feedback-table th:first-child { width: 180px; }
.admin-feedback-table th:nth-child(2) { width: 22%; }
.admin-feedback-table th:nth-child(3) { width: 13%; }
.feedback-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-message-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.admin-audit th:first-child { width: 180px; }
.admin-audit th:nth-child(2) { width: 22%; }
.admin-audit th:nth-child(3) { width: 31%; }
.admin-audit summary { padding: 0; min-height: 24px; color: var(--brand-dark); }
.admin-audit .admin-facts { display: block; margin: 8px 0; font-size: .84rem; }
.admin-audit dd { margin-bottom: 8px; }
.admin-statistics > section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.admin-statistics > p,
.admin-statistics details p,
.admin-statistics section > p { color: var(--muted); font-size: .9rem; }
.admin-statistics .table-wrap { margin-top: 18px; }
.statistics-table th:first-child { width: 65%; }
.statistics-table th p { font-weight: 400; color: var(--muted); margin: 6px 0 0; font-size: .84rem; }
.statistics-table td { font-variant-numeric: tabular-nums; }
.statistics-unit { display: block; color: var(--muted); }
.admin-feedback .account-links { margin: 0; }
.admin-feedback .account-links:has(> :not([hidden])) { margin-top: 12px; }
.admin-feedback .account-status:not(:empty) { margin-bottom: 12px; }
.admin-feedback .form-alert { margin-inline: 0; }
.admin-auth [data-admin-enrollment],
.admin-auth [data-admin-recovery] { margin-top: 24px; }
.admin-auth-help { margin: 24px 0 0; }
.admin-secret { padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--brand-softer); }
.admin-secret code { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.admin-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; list-style: none; padding: 0; font-family: monospace; font-size: .8125rem; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .admin-shell .admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-session { gap: 6px; }
  .admin-shell .admin-session .account-links { gap: 0 18px; font-size: .9rem; }
  .admin-shell .admin-nav { gap: 0 18px; }
  .admin-facts { gap: 8px 16px; }
  .admin-codes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .admin-shell .admin-filters,
  .admin-field-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-filter-wide { grid-column: auto; }
}

/* Compact history rows share the account surface and result-table dividers. */
.account-history { scroll-margin-top: 150px; }
.history-list {
  display: grid;
  grid-template-columns: max-content max-content max-content 1fr max-content;
  column-gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .875rem;
}
.history-list li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.history-list li:last-child { border-bottom: 0; }
.history-meta { display: contents; }
.history-list time { font-weight: 600; font-variant-numeric: tabular-nums; }
.history-meta > *, .history-summary, .history-list a { white-space: nowrap; }
.history-summary-short { display: none; }
.history-list a { display: inline-flex; align-items: center; justify-self: end; min-height: 44px; }
@media (max-width: 760px) {
  .history-list { display: block; }
  .history-list li { grid-template-columns: 1fr max-content; column-gap: 8px; padding-top: 8px; }
  .history-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; }
  .history-summary-full {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .history-summary-short { display: inline; }
}

.offer-reference { overflow-wrap: anywhere; }
