:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: #193044;
  background: #eff4f7;
  line-height: 1.6;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 40px 20px; }
a { color: #145c7e; text-underline-offset: 3px; }
a:hover { color: #0c425c; }
p { margin: 0 0 16px; }
h1, h2, h3 { line-height: 1.35; overflow-wrap: anywhere; }
h1 { margin: 12px 0 14px; font-size: 30px; letter-spacing: -.02em; }
h2 { margin: 0 0 10px; font-size: 21px; }
h3 { margin: 0; font-size: 17px; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.customer-shell { margin: auto; width: 100%; max-width: 580px; padding: 36px; border: 1px solid #d8e2ea; border-radius: 20px; background: #fff; box-shadow: 0 16px 50px #1b3d5410; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: #e8f3f8; color: #145c7e; font-size: 22px; font-weight: 700; }
.eyebrow { margin: 26px 0 0; color: #3a667b; font-size: 13px; letter-spacing: .06em; }
.intro { color: #526878; }
label { display: block; margin: 22px 0 8px; font-size: 14px; font-weight: 600; }
.field-note { margin-left: 8px; color: #587181; font-size: 12px; font-weight: 400; }
input, select, textarea { display: block; width: 100%; min-width: 0; border: 1px solid #9aaebb; border-radius: 8px; background: #fff; padding: 12px; font: inherit; font-size: 16px; color: inherit; }
textarea { min-height: 116px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6b7d89; opacity: 1; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #6ab3dd; outline-offset: 3px; }
button, .button { display: block; width: 100%; margin-top: 28px; padding: 14px 20px; border: 1px solid transparent; border-radius: 8px; background: #145c7e; color: #fff; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.45; text-align: center; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #0e4d6b; color: #fff; }
button:disabled, select:disabled { cursor: not-allowed; opacity: .6; }
.hint { margin: 8px 0 0; color: #586e7d; font-size: 13px; line-height: 1.65; }
.footer { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid #e4ebf0; color: #526878; font-size: 14px; text-align: center; }
.message { margin: 20px 0; padding: 14px 16px; border-left: 4px solid #9c6600; border-radius: 6px; background: #fff4dd; color: #704d0b; overflow-wrap: anywhere; }
.message-error { border-color: #a43737; background: #fff0ee; color: #842d2d; }
.message-success { border-color: #287354; background: #edf8f1; color: #21583f; }
.success-card { margin-top: 24px; padding: 18px; border: 1px solid #d7e9e1; border-radius: 12px; background: #f2faf6; }
.success-card .hint:first-child { margin-top: 0; }
.address { margin: 8px 0 12px; color: #145c7e; font-size: 20px; font-weight: 650; overflow-wrap: anywhere; }
.invite-field { margin-top: 24px; padding: 17px; border: 1px solid #d4e6f0; border-radius: 12px; background: #f4f9fc; }
.invite-field label { margin-top: 0; }
.domain-cards { display: grid; gap: 8px; margin-top: 10px; }
.domain-card { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 11px 13px; border: 1px solid #dce7ed; border-radius: 8px; background: #f7fafc; font-size: 12px; }
.domain-card-name { color: #31556a; font-weight: 600; overflow-wrap: anywhere; }
.domain-card-count { flex-shrink: 0; color: #526878; }
.domain-card-count strong { color: #193044; }
.domain-card-muted { background: #f6f7f8; }
.form-note { text-align: center; }
.management-shell { width: 100%; max-width: 1120px; margin: auto; }
.management-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.management-header h1 { margin-top: 22px; }
.management-header .intro { margin-bottom: 0; }
.account-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding-top: 5px; text-align: right; min-width: 0; }
.signed-in-label { color: #586e7d; font-size: 12px; }
.admin-email { max-width: 100%; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.header-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; margin-top: 10px; font-size: 13px; }
.panel { margin: 20px 0; padding: 26px; border: 1px solid #d8e2ea; border-radius: 16px; background: #fff; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-heading h2 { margin-bottom: 4px; }
.count-label { flex-shrink: 0; margin-top: 3px; color: #586e7d; font-size: 13px; }
.managed-domains { display: grid; gap: 18px; }
.managed-domain { min-width: 0; padding: 20px; border: 1px solid #dce5ec; border-radius: 12px; }
.domain-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.badge { display: inline-block; border-radius: 20px; padding: 3px 9px; font-size: 12px; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.badge-success { background: #e9f5ee; color: #256048; }
.badge-neutral { background: #edf1f4; color: #536573; }
.badge-warning { background: #fff3d8; color: #795615; }
.domain-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: #f4f7fa; }
.domain-metrics p { display: flex; flex-direction: column; gap: 2px; margin: 0; overflow-wrap: anywhere; }
.domain-metrics span { color: #586e7d; font-size: 12px; }
.domain-metrics strong { font-size: 16px; font-weight: 600; }
.dns-note { margin: 12px 0 0; color: #526878; font-size: 13px; white-space: pre-line; overflow-wrap: anywhere; }
.domain-edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { min-width: 0; }
.domain-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.checkbox-label { display: flex; align-items: center; gap: 9px; margin: 0; font-weight: 500; cursor: pointer; }
.checkbox-label input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; padding: 0; accent-color: #145c7e; }
.button-compact { display: inline-block; width: auto; margin-top: 0; padding: 11px 17px; font-size: 14px; }
.button-secondary { border-color: #b6ccd8; background: #f5f9fb; color: #145c7e; }
.button-secondary:hover { border-color: #89adbf; background: #eaf3f8; color: #0c425c; }
.domain-check-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e7edf1; }
.add-domains, .dns-records { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e2eaf0; }
summary { width: fit-content; color: #145c7e; cursor: pointer; font-size: 14px; font-weight: 600; }
.add-domains form { max-width: 640px; }
.add-domains button { margin-top: 16px; }
.dns-table { table-layout: fixed; }
.dns-table th:first-child { width: 58px; }
.dns-table th:nth-child(2) { width: 26%; }
.dns-table td { min-width: 0; }
.dns-value { display: block; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.new-invite { margin: 20px 0; padding: 22px 24px; border: 1px solid #b6d8c5; border-radius: 12px; background: #eff9f3; }
.new-invite h2 { font-size: 18px; }
.new-invite p { margin-bottom: 12px; color: #3f6251; font-size: 14px; }
.invite-code { display: block; padding: 14px; border: 1px solid #c7dfd2; border-radius: 8px; background: #fff; font-size: 16px; user-select: all; }
.invite-create-form { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(110px, 1fr) auto; align-items: end; gap: 16px; max-width: 640px; }
.invite-create-form label { margin-top: 0; }
.invite-create-form button { min-height: 50px; }
.table-scroll { width: 100%; overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
th, td { padding: 13px 12px; border-bottom: 1px solid #e2eaf0; vertical-align: top; overflow-wrap: anywhere; }
th { color: #526878; background: #f4f7fa; font-size: 12px; font-weight: 600; white-space: nowrap; }
td { min-width: 90px; }
th:first-child, td:first-child { padding-left: 14px; }
tbody tr:last-child td { border-bottom: 0; }
.inline-form { margin: 0; }
.button-small { width: auto; margin: 0; padding: 6px 12px; font-size: 12px; }
.button-danger { border-color: #e1c6c6; background: #fff5f3; color: #913c38; }
.button-danger:hover { border-color: #b97570; background: #fbe5e2; color: #7d2926; }
.empty-state { margin: 0; padding: 20px 14px; color: #586e7d; font-size: 14px; text-align: center; }
.muted { color: #6b7d89; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
  body { padding: 24px 14px; }
  .management-header { flex-direction: column; gap: 18px; }
  .account-menu { align-items: flex-start; padding-top: 0; text-align: left; }
  .header-links { justify-content: flex-start; }
  .panel { padding: 20px; }
  .managed-domain { padding: 17px; }
  .domain-heading { flex-direction: column; gap: 10px; }
  .badges { justify-content: flex-start; }
  .domain-edit-grid { grid-template-columns: 1fr; gap: 0; }
  .domain-metrics { gap: 12px; padding: 12px; }
  .domain-actions { align-items: flex-start; flex-direction: column; }
  .invite-create-form { grid-template-columns: 1fr 1fr; }
  .invite-create-form button { grid-column: 1 / -1; }
  .domain-check-form .button-compact { width: 100%; }
  .new-invite { padding: 20px; }
}
@media (max-width: 480px) {
  body { padding: 16px 10px; }
  .customer-shell { padding: 26px 20px; border-radius: 16px; }
  h1 { font-size: 27px; }
  .invite-field { padding: 14px; }
  .domain-card { align-items: flex-start; flex-direction: column; gap: 3px; }
  .domain-card-count { flex-shrink: 1; }
  .panel { padding: 18px 14px; }
  .managed-domain { padding: 15px 12px; }
  .domain-metrics { grid-template-columns: 1fr; gap: 10px; }
  .domain-metrics p { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 10px; }
  .domain-metrics strong { font-size: 14px; text-align: right; }
  .domain-actions .button-compact { width: 100%; }
  .section-heading { gap: 8px; }
  .count-label { font-size: 12px; }
  .dns-table th:nth-child(2) { width: 33%; }
  .dns-table th, .dns-table td { padding: 10px 6px; }
}
