:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18201b;
  background: #f6f8f6;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
a { color: inherit; }

.site-header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand { font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.shell { max-width: 1120px; margin: 0 auto; padding: 58px 24px 80px; }
.hidden { display: none !important; }

.hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 64px;
  align-items: center;
  min-height: 70vh;
}

.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #53705e; }
h1 { margin: 0; font-size: clamp(44px, 7vw, 78px); line-height: .98; letter-spacing: -.055em; }
.dashboard h1 { font-size: clamp(38px, 5vw, 58px); }
.hero-copy { max-width: 670px; margin: 28px 0 0; font-size: 20px; line-height: 1.55; color: #59635c; }

.login-card, .card, .receipts-section {
  background: white;
  border: 1px solid #e2e8e3;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(31, 47, 36, .06);
}

.login-card { padding: 30px; }
.login-card h2, .card h2, .receipts-section h2 { margin: 0 0 8px; }
.login-card p, .card p { color: #687269; line-height: 1.55; }
label { display: block; margin: 24px 0 7px; font-size: 14px; font-weight: 700; }
input { width: 100%; padding: 13px 14px; border: 1px solid #ccd5ce; border-radius: 10px; outline: none; }
input:focus { border-color: #648b70; box-shadow: 0 0 0 3px rgba(100, 139, 112, .13); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 11px 15px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 750;
}
.button-primary { width: 100%; margin-top: 12px; background: #1d5b36; color: white; }
.button-secondary { background: #edf3ef; color: #234b31; }
.button-quiet { background: transparent; color: #465149; }
.button-small { padding: 8px 11px; background: #edf3ef; color: #234b31; }
.button:disabled, .button.disabled { opacity: .45; pointer-events: none; }
.form-message { min-height: 20px; margin: 12px 0 0 !important; font-size: 14px; }

.center-card { min-height: 65vh; display: grid; place-items: center; align-content: center; gap: 12px; color: #637067; }
.spinner { width: 26px; height: 26px; border: 3px solid #dfe7e1; border-top-color: #1d5b36; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.dashboard-heading, .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.muted { color: #778179; }
.notice { margin: 26px 0 0; padding: 13px 15px; border-radius: 10px; background: #ecf7ef; color: #245a35; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.card { padding: 24px; min-height: 240px; }
.step-number { width: 32px; height: 32px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 9px; background: #edf3ef; color: #1d5b36; font-weight: 850; }
.connected-row { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #2f8b4e; }
.copy-box { display: flex; gap: 8px; align-items: center; margin-top: 18px; padding: 10px; background: #f5f7f5; border-radius: 10px; }
.copy-box code { flex: 1; overflow-wrap: anywhere; font-size: 13px; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }

.receipts-section { margin-top: 18px; padding: 24px; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 10px; border-bottom: 1px solid #edf0ed; font-size: 14px; }
th { color: #657068; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.status { text-transform: capitalize; font-weight: 700; }
.status-complete { color: #277141; }
.status-failed { color: #a33f3f; }
.status-processing { color: #8b6c22; }
.empty-state { margin-top: 18px; padding: 24px; text-align: center; background: #f8faf8; border-radius: 12px; color: #727c74; }
footer { padding: 0 24px 32px; text-align: center; color: #8a938c; font-size: 13px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 38px; }
  .cards { grid-template-columns: 1fr; }
  .shell { padding-top: 32px; }
  .dashboard-heading { align-items: start; }
}

.email-card { min-height: 320px; }
.email-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.choice-button {
  border: 1px solid #d9e1db;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #536057;
  cursor: pointer;
  font-weight: 750;
}
.choice-button.active { border-color: #648b70; background: #edf3ef; color: #234b31; }
.email-panel { margin-top: 14px; }
.small-label { margin: 0 0 7px !important; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #6f7a72 !important; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form input { min-width: 0; }
.inline-form .button { flex: 0 0 auto; }
.setup-box { margin-top: 14px; padding: 14px; border: 1px solid #e3e8e4; border-radius: 12px; background: #fafbfa; }
.setup-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-badge { padding: 4px 8px; border-radius: 999px; background: #fff1cc; color: #765c18; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.status-badge.verified { background: #e6f4ea; color: #256b3c; }
.setup-steps { margin: 14px 0 8px; padding-left: 22px; color: #5f6961; font-size: 13px; line-height: 1.5; }
.copy-box.compact { margin-top: 8px; }
.help-text { margin: 12px 0 0 !important; font-size: 12px; color: #737d75 !important; }
.verified-box { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; color: #315b3c; font-size: 13px; line-height: 1.5; }
.verified-box .status-dot { margin-top: 5px; flex: 0 0 auto; }

@media (max-width: 520px) {
  .email-choice { grid-template-columns: 1fr; }
  .inline-form { align-items: stretch; flex-direction: column; }
}

.account-dialog {
  width: min(460px, calc(100% - 32px));
  max-height: min(88vh, 820px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid #e2e8e3;
  border-radius: 18px;
  background: #fff;
  color: #18201b;
  box-shadow: 0 24px 70px rgba(31, 47, 36, .18);
}

.account-dialog::backdrop {
  background: rgba(24, 32, 27, .35);
}

.account-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid #edf0ed;
}

.account-dialog-header h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.03em;
}

.account-dialog-header .eyebrow {
  margin-bottom: 6px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: #f3f6f4;
  color: #4a554d;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.account-details {
  padding: 6px 24px;
}

.account-detail {
  display: grid;
  gap: 4px;
  padding: 15px 0;
  border-bottom: 1px solid #edf0ed;
}

.account-detail:last-child {
  border-bottom: 0;
}

.account-detail span {
  color: #737d75;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.account-detail strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px 24px 20px;
}

.account-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 24px;
  border-top: 1px solid #edf0ed;
  background: #fafbfa;
  border-radius: 0 0 18px 18px;
}

.button-google {
  width: 100%;
  margin-top: 22px;
  border: 1px solid #d8ded9;
  background: #fff;
  color: #28322b;
}
.button-google:hover { background: #f8faf8; }
.google-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dfe3e0;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
  color: #3c4a40;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 2px;
  color: #8a938c;
  font-size: 12px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e7ebe8;
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer nav { display: flex; gap: 14px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.legal-page { max-width: 820px; margin: 0 auto; padding: 56px 22px 80px; }
.legal-page h1 { margin-bottom: 10px; }
.legal-page h2 { margin-top: 30px; margin-bottom: 8px; font-size: 20px; }
.legal-page p, .legal-page li { line-height: 1.65; color: #4f5a52; }
.legal-page ul { padding-left: 22px; }
.legal-meta { color: #7b857e; font-size: 14px; margin-bottom: 28px; }
.legal-back { display: inline-block; margin-bottom: 28px; font-weight: 700; color: #2f6d48; text-decoration: none; }
.legal-back:hover { text-decoration: underline; }


.forwarding-setup-button { width: 100%; margin-top: 14px; }
.forwarding-dialog-body { padding: 20px 24px 24px; }
.forwarding-dialog-body > p:first-child { margin-top: 0; color: #606b63; line-height: 1.55; }
.provider-help { margin-top: 14px; padding: 14px; border-radius: 12px; background: #f5f8f6; border: 1px solid #e3e9e4; }
.provider-help h3 { margin: 0 0 8px; font-size: 15px; }
.provider-help ol { margin: 0; padding-left: 20px; color: #5f6961; font-size: 13px; line-height: 1.55; }


/* v20 forwarding setup flow */
.setup-summary { margin: 10px 0 0; line-height: 1.5; }
.setup-section { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid #e7ebe8; }
.setup-section:first-child { border-top: 0; padding-top: 0; }
.setup-section-number { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #eef4f0; color: #1f5c3c; font-weight: 800; }
.setup-section-content h3 { margin: 3px 0 8px; font-size: 16px; }
.setup-section-content > p { margin: 0 0 10px; color: #606b63; line-height: 1.55; font-size: 14px; }
.provider-help h4 { margin: 0 0 8px; font-size: 14px; }
.forwarding-private-note { margin: 8px 0 0; }
@media (max-width: 640px) {
  .setup-section { grid-template-columns: 30px 1fr; gap: 9px; }
}

/* v22 password login + billing */
.login-card label + input { margin-bottom: 12px; }
.login-card .button + .button { margin-top: 9px; }
.login-link-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}
.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #37694b;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}
.text-button:hover { text-decoration: underline; }
.text-button:disabled { opacity: .55; cursor: default; }

.billing-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid #dbe6de;
  border-radius: 16px;
  background: #f7faf8;
}
.billing-gate h2 { margin: 2px 0 6px; }
.billing-gate p { margin: 0; color: #5e6a61; }
.billing-price { margin-top: 8px !important; color: #244c33 !important; font-weight: 850; }
.billing-locked { opacity: .58; }
.billing-locked .card { position: relative; }
.billing-locked button:disabled { cursor: not-allowed; }

.account-section {
  margin: 0 24px 18px;
  padding: 16px;
  border: 1px solid #e3e8e4;
  border-radius: 13px;
  background: #fafbfa;
}
.account-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.account-section-heading > div { display: grid; gap: 4px; }
.account-section-label {
  display: block;
  margin-bottom: 4px;
  color: #737d75;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.account-section-copy { margin-top: 8px !important; line-height: 1.5; }
.account-section-actions { padding: 12px 0 0; }
.billing-invoices { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e3e8e4; }
.billing-invoices h3 { margin: 0 0 9px; font-size: 14px; }
.small-empty { color: #7a847c; font-size: 12px; }
.invoice-list { display: grid; gap: 8px; }
.invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #edf0ed;
}
.invoice-row:first-child { border-top: 0; }
.invoice-row > div { display: grid; gap: 3px; min-width: 0; }
.invoice-row strong { font-size: 13px; overflow-wrap: anywhere; }
.invoice-row span { color: #747e76; font-size: 11px; }
.password-section > strong { display: block; font-size: 14px; }
.password-form { display: flex; gap: 8px; margin-top: 12px; }
.password-form input { min-width: 0; }
.password-form .button { flex: 0 0 auto; }

@media (max-width: 560px) {
  .billing-gate { align-items: stretch; flex-direction: column; }
  .login-link-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .password-form { flex-direction: column; }
  .invoice-row { align-items: flex-start; }
}


/* v23 two-plan subscription picker */
.billing-gate { align-items: stretch; }
.billing-gate-copy { min-width: 220px; }
.pricing-options { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px; flex: 1; }
.pricing-option { position: relative; border: 1px solid #d9dfdb; border-radius: 14px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.pricing-option-featured { border-width: 2px; }
.pricing-badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: #eef2ef; }
.pricing-amount { display: flex; align-items: baseline; gap: 4px; }
.pricing-amount span { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.pricing-amount small { font-size: 14px; color: #657169; }
.pricing-option p { min-height: 38px; margin: 0; font-size: 14px; }
.account-plan-choices { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
@media (max-width: 760px) {
  .pricing-options { grid-template-columns: 1fr; }
}


/* v24 simple account entry + separate sign-in screen */
.auth-switch {
  margin: 18px 0 0 !important;
  text-align: center;
  color: #687269 !important;
  font-size: 13px;
}
.auth-switch-button {
  margin-left: 3px;
  font-size: 13px;
}
#signupForm label {
  margin-top: 22px;
}
#signupForm .button-primary {
  margin-top: 14px;
}


/* v25 public pricing + full account page */
.home-price-note {
  margin: 18px 0 0;
  color: #5d6860;
  font-size: 15px;
}
.home-price-note a {
  color: #244c33;
  font-weight: 800;
  text-underline-offset: 3px;
}

.public-pricing {
  margin: 54px 0 22px;
  padding: 34px;
  border: 1px solid #dde4df;
  border-radius: 24px;
  background: #f8faf8;
  scroll-margin-top: 28px;
}
.public-pricing-heading {
  max-width: 680px;
}
.public-pricing-heading h2 {
  margin: 4px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.035em;
}
.public-pricing-heading > p:last-child {
  margin: 0;
  color: #59635c;
  line-height: 1.6;
}
.public-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.public-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1px solid #d9dfdb;
  border-radius: 18px;
  background: #fff;
}
.public-price-card-featured {
  border: 2px solid #244c33;
}
.public-price-card > strong {
  font-size: 18px;
}
.public-price-card > p {
  margin: 0 0 8px;
  min-height: 44px;
  color: #5e6a61;
  line-height: 1.5;
}
.public-price-card .button {
  margin-top: auto;
  text-decoration: none;
  text-align: center;
}
.public-pricing-footnote {
  margin: 18px 0 0;
  color: #68736b;
  font-size: 13px;
  line-height: 1.55;
}

.account-page {
  max-width: 980px;
}
.account-page-heading {
  margin: 12px 0 26px;
}
.account-page-heading h1 {
  margin: 4px 0 8px;
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -0.045em;
}
.account-page-card {
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid #dde4df;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(24, 42, 31, 0.035);
}
.account-page-card h2 {
  margin: 4px 0 0;
  font-size: 22px;
}
.account-page-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.account-details-page {
  margin-top: 18px;
  border: 1px solid #e4e9e5;
  border-radius: 14px;
  overflow: hidden;
}
.account-details-page .account-detail {
  padding-left: 16px;
  padding-right: 16px;
}
.account-password-form {
  max-width: 560px;
}
.billing-invoices-page {
  margin-top: 22px;
}
.billing-invoices-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}
.billing-invoices-heading h3 {
  margin: 0;
}
.billing-invoices-heading span {
  color: #7a847d;
  font-size: 12px;
}
.notification-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.notification-setting-row > div {
  max-width: 700px;
}
.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.toggle-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle-track {
  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #cfd7d1;
  transition: background .18s ease;
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(24, 42, 31, .22);
  transition: transform .18s ease;
}
.toggle-control input:checked + .toggle-track {
  background: #173b2b;
}
.toggle-control input:checked + .toggle-track .toggle-thumb {
  transform: translateX(20px);
}
.toggle-control input:focus-visible + .toggle-track {
  outline: 3px solid rgba(23, 59, 43, .18);
  outline-offset: 3px;
}
.toggle-control input:disabled + .toggle-track {
  opacity: .55;
}
.toggle-label {
  min-width: 22px;
  color: #536158;
  font-size: 13px;
  font-weight: 700;
}
.account-signout-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.account-signout-card h2 {
  margin-top: 4px;
}

@media (max-width: 720px) {
  .public-pricing {
    padding: 22px;
  }
  .public-pricing-grid {
    grid-template-columns: 1fr;
  }
  .account-page-card {
    padding: 20px;
  }
  .account-signout-card,
  .notification-setting-row,
  .billing-invoices-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

html { scroll-behavior: smooth; }

/* v30 lead-facing product demo */
.public-demo {
  display: grid;
  grid-template-columns: minmax(240px, .58fr) minmax(0, 1.42fr);
  gap: 28px;
  align-items: center;
  margin: 28px 0 22px;
  padding: 34px;
  border: 1px solid #dce4de;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(31, 47, 36, .055);
  scroll-margin-top: 28px;
}
.public-demo-copy h2 {
  margin: 4px 0 12px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.public-demo-copy > p:last-of-type {
  margin: 0;
  color: #59635c;
  line-height: 1.65;
}
.demo-points {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.demo-points li {
  position: relative;
  padding-left: 25px;
  color: #455149;
  line-height: 1.5;
}
.demo-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e9f3ec;
  color: #1d5b36;
  font-size: 11px;
  font-weight: 900;
}
.demo-video-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e1db;
  border-radius: 18px;
  background: #f7f9f7;
  box-shadow: 0 14px 36px rgba(24, 42, 31, .09);
}
.demo-video-frame {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #edf1ee;
}
.demo-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f4f7f5;
}
.demo-video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  color: #59645c;
  font-size: 12px;
}
.demo-video-meta strong {
  color: #263129;
  font-size: 13px;
}

@media (max-width: 820px) {
  .public-demo {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .public-demo {
    margin-top: 20px;
    padding: 18px;
    border-radius: 18px;
  }
  .demo-video-card { border-radius: 14px; }
  .demo-video-meta { align-items: flex-start; flex-direction: column; gap: 3px; }
}

/* v31 read-only admin troubleshooting dashboard */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-page {
  max-width: 1180px;
}
.admin-heading-row,
.admin-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.admin-heading-row {
  margin: 8px 0 26px;
}
.admin-heading-row h1 {
  margin: 4px 0 8px;
  font-size: clamp(40px, 5vw, 58px);
  letter-spacing: -.045em;
}
.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.admin-stat-card,
.admin-card {
  border: 1px solid #dde4df;
  background: #fff;
  box-shadow: 0 10px 30px rgba(24, 42, 31, .035);
}
.admin-stat-card {
  padding: 18px;
  border-radius: 16px;
}
.admin-stat-card span {
  display: block;
  margin-bottom: 8px;
  color: #68736b;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.admin-stat-card strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}
.admin-stat-card-warning strong {
  color: #8b4d24;
}
.admin-card {
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 20px;
}
.admin-card h2 {
  margin: 4px 0 0;
  font-size: 22px;
}
.admin-card-heading-wrap {
  align-items: flex-end;
}
.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto;
  gap: 10px;
  width: min(520px, 100%);
}
.admin-toolbar input,
.admin-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #ccd5ce;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #18201b;
  font: inherit;
}
.admin-table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th,
.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf0ed;
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  color: #6e786f;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.admin-table tbody tr:hover {
  background: #fafcfb;
}
.admin-table-subtext {
  display: block;
  margin-top: 4px;
  color: #778179;
  font-size: 11px;
}
.admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef1ef;
  color: #566159;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.admin-badge.good {
  background: #e8f4ec;
  color: #1c6b3b;
}
.admin-badge.warn {
  background: #fff0e6;
  color: #8c4e25;
}
.admin-badge.neutral {
  background: #eef1ef;
  color: #687269;
}
.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.admin-detail-block {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5eae6;
  border-radius: 13px;
  background: #fafcfa;
}
.admin-detail-block > span {
  display: block;
  margin-bottom: 6px;
  color: #748078;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.admin-detail-block strong {
  font-size: 13px;
  line-height: 1.45;
}
.admin-detail-wide {
  grid-column: span 2;
}
.mono-break {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.admin-copy-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.admin-detail-links {
  margin-top: 16px;
}
.admin-receipt-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 4px;
}
.admin-receipt-stats span {
  padding: 8px 11px;
  border-radius: 999px;
  background: #f2f5f2;
  color: #58635b;
  font-size: 12px;
}
.admin-receipts-heading {
  margin-top: 22px;
}
.admin-inline-loading {
  margin-top: 18px;
  color: #687269;
}
.admin-failure-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.admin-failure-item {
  padding: 15px;
  border: 1px solid #ece4df;
  border-radius: 13px;
  background: #fffaf7;
}
.admin-failure-item > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.admin-failure-item strong {
  display: block;
}
.admin-failure-item span:not(.admin-badge) {
  display: block;
  margin-top: 3px;
  color: #7b736e;
  font-size: 11px;
}
.admin-failure-item p {
  margin: 10px 0;
  color: #6a5144;
  line-height: 1.5;
}
.notice-good {
  background: #eaf6ed;
  color: #285b38;
}

@media (max-width: 980px) {
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .admin-heading-row,
  .admin-card-heading,
  .admin-card-heading-wrap {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-toolbar { grid-template-columns: 1fr; width: 100%; }
  .admin-detail-grid { grid-template-columns: 1fr; }
  .admin-detail-wide { grid-column: auto; }
  .admin-card { padding: 18px; }
}

@media (max-width: 520px) {
  .admin-stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin-stat-card { padding: 14px; }
  .admin-stat-card strong { font-size: 26px; }
  .site-header { padding-left: 16px; padding-right: 16px; }
  .header-actions { gap: 4px; }
  .header-actions .button { padding-left: 10px; padding-right: 10px; }
}

.button-microsoft {
  width: 100%;
  margin-top: 10px;
  border: 1px solid #d8ded9;
  background: #fff;
  color: #28322b;
}
.button-microsoft:hover { background: #f8faf8; }
.microsoft-mark {
  width: 18px;
  height: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}
.microsoft-mark span { display: block; background: currentColor; opacity: .82; }

.storage-card { min-height: 320px; }
.storage-options { display: grid; gap: 10px; margin-top: 18px; }
.storage-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #dfe5e0;
  border-radius: 12px;
  background: #fafbfa;
}
.storage-option.active { border-color: #6d9678; background: #edf5ef; box-shadow: inset 0 0 0 1px rgba(29, 91, 54, .08); }
.storage-option > div { min-width: 0; display: grid; gap: 3px; }
.storage-option strong { font-size: 14px; }
.storage-option span { color: #748078; font-size: 12px; }
.storage-option.active span { color: #2f6b42; font-weight: 750; }
.storage-option .button { margin: 0; width: auto; white-space: nowrap; }

.storage-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.storage-provider-card {
  padding: 16px;
  border: 1px solid #dfe5e0;
  border-radius: 14px;
  background: #fafbfa;
}
.storage-provider-card.active { border-color: #6d9678; background: #edf5ef; }
.storage-provider-card h3 { margin: 0 0 6px; font-size: 16px; }
.storage-provider-card p { margin: 0; color: #6e7971; font-size: 13px; line-height: 1.45; }
.storage-provider-card .button-row { margin-top: 14px; }

@media (max-width: 620px) {
  .storage-option { grid-template-columns: 1fr; align-items: stretch; }
  .storage-option .button { width: 100%; }
  .storage-provider-grid { grid-template-columns: 1fr; }
}
