:root {
  --ink: #183c33;
  --text: #263d36;
  --muted: #677870;
  --paper: #fff;
  --canvas: #f4f6f3;
  --line: #dde5df;
  --accent: #245a46;
  --tint: #eaf1eb;
  --warm: #fbf3df;
  --warning: #795716;
  --error: #963e34;
  --error-bg: #fff0ed;
  --radius: 13px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, .button { cursor: pointer; }
button, .button, input, select, textarea { border-radius: 8px; }
button, .button {
  border: 1px solid transparent; background: var(--tint); color: var(--ink);
  display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  min-height: 40px; padding: 9px 15px; text-decoration: none; font-weight: 650;
  line-height: 1.3; transition: background .15s, border-color .15s;
}
button:hover, .button:hover { background: #dce8de; }
button.primary, .button.primary { background: var(--ink); color: white; }
button.primary:hover, .button.primary:hover { background: #285646; }
button.secondary, .button.secondary { background: white; border-color: var(--line); }
button.secondary:hover, .button.secondary:hover { border-color: #a2b7aa; background: var(--canvas); }
button.quiet, .button.quiet { background: transparent; }
button.quiet:hover, .button.quiet:hover { background: var(--tint); }
button.small, .button.small { min-height: 34px; padding: 7px 10px; font-size: 12px; }
button:disabled, .button[aria-disabled="true"] { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #9bb6a5; outline-offset: 3px;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { color: var(--ink); margin-bottom: 5px; font-size: clamp(24px, 3vw, 32px); font-weight: 650; letter-spacing: -.9px; line-height: 1.2; }
h2 { color: var(--ink); font-size: 21px; line-height: 1.25; font-weight: 650; letter-spacing: -.4px; }
h3 { font-size: 15px; font-weight: 650; margin-bottom: 8px; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.small-text { font-size: 12px; }
.mobile-label { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.spaced-heading, .spaced-row { margin-top: 13px; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 15px; color: white; background: var(--ink); }
.skip-link:focus { top: 12px; }
.brand-mark { width: 37px; height: 37px; border: 1px solid #90aa9b; border-radius: 11px; display: grid; place-items: center; color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: -.5px; flex: 0 0 auto; }
.identity-bar { max-width: 1344px; margin: 0 auto; padding: 24px 32px 18px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.identity { display: flex; align-items: center; gap: 11px; }
.identity-title { font-weight: 700; color: var(--ink); font-size: 14px; }
.identity-sub { font-size: 11px; color: var(--muted); }
.identity-actions { display: flex; align-items: center; gap: 12px; }
.signed-in { font-size: 12px; color: var(--muted); }
.main-nav-wrap { background: rgba(244,246,243,.97); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); }
.main-nav { display: flex; gap: 25px; max-width: 1344px; margin: 0 auto; padding: 0 32px; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { padding: 14px 1px 13px; white-space: nowrap; font-weight: 600; font-size: 13px; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.workspace { max-width: 1344px; margin: 0 auto; padding: 30px 32px 60px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.page-head p { margin: 0; font-size: 13px; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.service-note { display: flex; gap: 9px; align-items: flex-start; padding: 12px 15px; border: 1px solid #e9d8b5; border-radius: 9px; background: var(--warm); color: var(--warning); font-size: 13px; margin-bottom: 18px; }
.service-note .status-dot { margin-top: 6px; }
.service-note a { text-underline-offset: 3px; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.count { color: var(--muted); font-size: 12px; }
.search-input { max-width: 290px; width: 100%; min-height: 38px; font-size: 13px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.app-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.app-table th { text-align: left; padding: 12px 18px; color: var(--muted); font-size: 11px; font-weight: 600; background: #fbfcfa; border-bottom: 1px solid var(--line); }
.app-table td { padding: 18px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.app-table tr:last-child td { border-bottom: 0; }
.app-table th:nth-child(1) { width: 32%; }
.app-table th:nth-child(2) { width: 16%; }
.app-table th:nth-child(3) { width: 28%; }
.app-table th:nth-child(4) { width: 24%; text-align: right; }
.entity-title { font-size: 15px; color: var(--ink); font-weight: 650; margin-bottom: 4px; }
.entity-title a { text-decoration: none; }
.entity-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.domain-label { font-size: 12px; color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.status { display: inline-flex; gap: 7px; align-items: center; border-radius: 20px; background: var(--tint); padding: 4px 9px; color: var(--accent); font-size: 11px; font-weight: 700; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.status.running, .status.queued { background: #eaf0f5; color: #3e617d; }
.status.waiting_dns { background: var(--warm); color: var(--warning); }
.status.failed { background: var(--error-bg); color: var(--error); }
.job-message { margin-top: 6px; font-size: 12px; color: var(--muted); }
.progress-track { display: flex; gap: 4px; margin-top: 9px; max-width: 160px; }
.progress-track span { height: 3px; width: 100%; border-radius: 2px; background: var(--line); }
.progress-track span.done { background: #6c957c; }
.empty { text-align: center; padding: 58px 24px; }
.empty-symbol { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--tint); color: var(--accent); font-size: 25px; margin: 0 auto 14px; }
.empty h2 { font-size: 18px; margin-bottom: 6px; }
.empty p { font-size: 13px; color: var(--muted); max-width: 370px; margin: 0 auto 17px; }
.customers-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.customer-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow-wrap: anywhere; }
.customer-card .entity-title { margin-bottom: 8px; }
.customer-card p { font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.customer-card .button-row { margin-top: 16px; }
.security-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; max-width: 920px; }
.security-card { padding: 24px; }
.security-card p { color: var(--muted); font-size: 13px; }
.security-icon { margin-bottom: 13px; }
.auth-wrap { min-height: 100svh; display: flex; justify-content: center; align-items: center; padding: 30px 18px; background: radial-gradient(ellipse at 50% 0%, #e8eee6, transparent 65%), var(--canvas); }
.auth-card { width: 100%; max-width: 410px; border: 1px solid var(--line); border-radius: 18px; padding: 32px; background: white; box-shadow: 0 20px 70px #193d3210; }
.auth-brand { display: flex; gap: 11px; align-items: center; margin-bottom: 31px; }
.auth-card h1 { font-size: 25px; margin-bottom: 9px; }
.auth-card .intro { font-size: 13px; color: var(--muted); margin-bottom: 23px; }
.auth-card .field { margin-bottom: 17px; }
.auth-card .primary { width: 100%; margin-top: 4px; }
.auth-footer { margin-top: 19px; font-size: 11px; text-align: center; color: var(--muted); }
.auth-back { display: block; margin: 13px auto 0; }
.auth-card .error-box { margin-bottom: 16px; }
.qr-code { display: block; width: 190px; height: 190px; margin: 18px auto 15px; }
.secret-box { background: var(--canvas); border-radius: 8px; padding: 12px; font-family: ui-monospace,monospace; word-break: break-all; font-size: 13px; user-select: all; text-align: center; }
.otp-input { text-align: center; font-size: 23px; letter-spacing: .28em; font-variant-numeric: tabular-nums; }
.loading-screen { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.loading-screen h1 { font-size: 25px; }
input, select, textarea { width: 100%; border: 1px solid #cad8ce; background: white; color: var(--text); padding: 10px 12px; min-height: 42px; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: #89988d; opacity: 1; }
input:read-only { background: var(--canvas); }
input[type="checkbox"] { width: 17px; height: 17px; min-height: auto; padding: 0; accent-color: var(--ink); flex: 0 0 auto; }
label { display: block; font-size: 12px; font-weight: 650; color: var(--text); margin-bottom: 6px; }
.field { min-width: 0; }
.field .help { margin-top: 5px; font-size: 11px; color: var(--muted); }
.field-label-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 6px; }
.field-label-row label { margin: 0; }
.optional { font-size: 11px; color: var(--muted); font-weight: 400; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.full { grid-column: 1/-1; }
.form-section { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.form-section:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 13px; }
.section-head h3 { margin: 0; }
.section-number { width: 23px; height: 23px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; margin-right: 8px; font-size: 11px; color: var(--muted); }
.inline-fields { display: flex; gap: 12px; align-items: end; }
.inline-fields .field { flex: 1; }
.new-customer-fields { padding: 16px; margin-top: 13px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf7; }
.domain-input { display: flex; align-items: center; border: 1px solid #cad8ce; border-radius: 8px; overflow: hidden; }
.domain-input input { border: 0; border-radius: 0; width: 43%; padding-right: 4px; min-width: 90px; }
.domain-input .suffix { padding-right: 12px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.domain-input:focus-within { outline: 3px solid #9bb6a5; outline-offset: 3px; }
.domain-input input:focus { outline: 0; }
.domain-preview { margin-top: 6px; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.module-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.module-choice { margin: 0; display: flex; gap: 9px; align-items: flex-start; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 500; font-size: 12px; }
.module-choice:has(input:checked) { border-color: #9db7a2; background: #f0f5ef; }
.module-choice input { margin: 2px 0 0; }
.module-choice small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.module-choice .required-tag { margin-left: 4px; color: var(--muted); font-size: 10px; font-weight: 400; }
.module-note { font-size: 11px; color: var(--muted); margin: 9px 0 0; }
.steps { display: flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 11px; color: var(--muted); }
.step { display: inline-flex; gap: 6px; align-items: center; }
.step b { width: 19px; height: 19px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; font-size: 10px; }
.step.active { color: var(--ink); font-weight: 650; }
.step.active b { background: var(--ink); color: white; }
.step-line { width: 25px; height: 1px; background: var(--line); }
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 0; max-width: min(730px,calc(100vw - 28px)); width: 730px; max-height: calc(100svh - 40px); color: var(--text); background: var(--paper); box-shadow: 0 30px 100px #102e3330; }
dialog.narrow { width: 470px; }
dialog::backdrop { background: rgba(19,36,29,.38); backdrop-filter: blur(3px); }
.dialog-head { position: relative; padding: 23px 26px 19px; border-bottom: 1px solid var(--line); padding-right: 65px; }
.dialog-head h2 { margin: 0; font-size: 21px; }
.dialog-head p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.close-button { position: absolute; top: 16px; right: 17px; border-radius: 50%; width: 32px; min-height: 32px; padding: 0; background: transparent; font-size: 23px; font-weight: 300; }
.dialog-body { padding: 22px 26px; }
.dialog-footer { padding: 16px 26px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; align-items: center; gap: 9px; flex-wrap: wrap; background: #fafbf9; }
.dialog-footer .left { margin-right: auto; }
.dialog-subtitle { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.error-box { padding: 11px 13px; border: 1px solid #eac2bc; border-radius: 8px; color: var(--error); background: var(--error-bg); font-size: 13px; margin-bottom: 16px; overflow-wrap: anywhere; }
.info-box { padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); color: var(--muted); font-size: 12px; margin: 15px 0; }
.warning-box { color: var(--warning); border-color: #e9d8b5; background: var(--warm); }
.review-list { margin: 0 0 20px; display: grid; grid-template-columns: 130px minmax(0,1fr); }
.review-list dt, .review-list dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.review-list dt { color: var(--muted); padding-right: 12px; }
.review-list dd { color: var(--ink); }
.module-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.module-tag { padding: 3px 7px; border-radius: 5px; background: var(--tint); color: var(--accent); font-size: 11px; }
.otp-block { max-width: 290px; margin: 22px auto 3px; }
.invitation-result { border: 1px solid #adc8b3; background: #f0f6ef; border-radius: 10px; padding: 17px; }
.invitation-result h3 { font-size: 15px; }
.link-field { font-family: ui-monospace,monospace; font-size: 11px; resize: none; height: 80px; }
.button-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.detail-card { margin-top: 16px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; }
.detail-card h3 { margin: 0 0 6px; }
.detail-card p { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.job-detail-status { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.help-list { padding-left: 21px; font-size: 13px; margin-bottom: 0; }
.help-list li { padding-left: 5px; margin-bottom: 15px; }
.help-list li:last-child { margin-bottom: 0; }
.help-list strong { display: block; color: var(--ink); margin-bottom: 3px; }
.notice { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: calc(100vw - 32px); padding: 11px 18px; border: 1px solid #4e6a58; border-radius: 11px; background: #203f32; color: white; box-shadow: 0 5px 25px #213c3225; font-size: 13px; }
@media (max-width: 1000px) {
  .customers-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .app-table th:nth-child(1) { width: 30%; }
  .app-table th:nth-child(2) { width: 15%; }
  .app-table th:nth-child(3) { width: 28%; }
  .app-table th:nth-child(4) { width: 27%; }
  .app-table td, .app-table th { padding: 14px; }
}
@media (max-width: 720px) {
  body { font-size: 14px; }
  .identity-bar { padding: 17px 17px 13px; }
  .identity-actions { gap: 4px; }
  .signed-in { display: none; }
  .main-nav { padding: 0 18px; gap: 25px; }
  .main-nav a { padding-top: 12px; padding-bottom: 11px; }
  .workspace { padding: 23px 16px 40px; }
  .page-head { align-items: flex-start; margin-bottom: 20px; gap: 12px; }
  .page-head > div:first-child { min-width: 0; }
  .page-head h1 { font-size: 23px; overflow-wrap: anywhere; }
  .mobile-label { display: inline; }
  .desktop-label { display: none; }
  h1 { font-size: 25px; }
  .page-head p { font-size: 12px; }
  .page-head .page-actions { flex-shrink: 0; max-width: 145px; gap: 5px; }
  .page-head .page-actions .button-text { display: none; }
  .page-actions button { min-height: 37px; padding: 8px 11px; font-size: 12px; }
  .page-actions .help-button { width: 33px; min-height: 33px; padding: 6px; border-radius: 50%; }
  .page-actions .primary { order: -1; }
  .list-toolbar { gap: 10px; }
  .count { white-space: nowrap; }
  .search-input { max-width: 210px; }
  .app-table, .app-table tbody, .app-table tr, .app-table td { display: block; width: 100%; }
  .app-table thead { display: none; }
  .app-table tr { padding: 18px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 10px; row-gap: 12px; }
  .app-table tr:last-child { border-bottom: 0; }
  .app-table td { padding: 0; border: 0; }
  .app-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .app-table td:nth-child(2) { grid-column: 2; grid-row: 1; font-size: 11px; text-align: right; max-width: 85px; color: var(--muted); }
  .app-table td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
  .app-table td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
  .row-actions { justify-content: flex-start; }
  .entity-title { font-size: 14px; }
  .domain-label { font-size: 11px; }
  .customers-list, .security-grid { grid-template-columns: minmax(0,1fr); }
  .customer-card { padding: 18px; }
  .security-card { padding: 21px; }
  .form-grid { gap: 15px; }
  .form-grid .field { grid-column: 1/-1; }
  .module-grid { grid-template-columns: minmax(0,1fr); }
  dialog { max-height: calc(100svh - 20px); max-width: calc(100vw - 18px); border-radius: 13px; }
  .dialog-head { padding: 20px 19px 17px; padding-right: 57px; }
  .dialog-head h2 { font-size: 20px; }
  .dialog-body { padding: 20px 19px; }
  .dialog-footer { padding: 14px 19px; }
  .review-list { grid-template-columns: 97px minmax(0,1fr); }
  .review-list dt, .review-list dd { font-size: 12px; }
  .domain-input .suffix { font-size: 11px; padding-right: 8px; }
  .domain-input input { font-size: 13px; min-width: 85px; width: 37%; padding-left: 9px; }
  .new-customer-fields { padding: 13px; }
  .auth-card { padding: 27px 23px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
