:root {
  color-scheme: light;
  --bg: #fff; --surface: #fff; --surface-raised: #f7f9fc; --field: #fff;
  --line: #e2e6ed; --line-soft: #edf0f4; --text: #172033; --muted: #606b7e; --dim: #687487;
  --blue: #2459d3; --primary: #2563eb; --primary-hover: #1d4ed8;
  --green: #16805b; --amber: #996019; --red: #bc3447; --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a, input, textarea, select, summary { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--primary); }
::selection { background: #dbeafe; color: #12316b; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: 32px; line-height: 1.3; font-weight: 650; letter-spacing: -.04em; }
h2 { font-size: 18px; line-height: 1.45; font-weight: 630; letter-spacing: -.025em; }
h3 { font-size: 14px; line-height: 1.5; font-weight: 620; }
strong { font-weight: 620; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button svg, .button svg { width: 17px; height: 17px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { clip-path: inset(50%); position: fixed; top: 10px; left: 20px; z-index: 100; padding: 10px 20px; background: var(--primary); color: white; border-radius: 8px; }
.skip-link:focus { clip-path: none; top: 10px; color: white; }
.muted, .field-help { color: var(--muted); }
.green { color: var(--green); }
.mono { font-family: var(--mono); font-size: 12px; }
.small-text, .quiet-label { font-size: 12px; }
.quiet-label { color: var(--muted); }
.full { width: 100%; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1376px; min-height: 76px; margin: auto; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand-mark { width: 35px; height: 35px; background: var(--primary); color: #fff; border-radius: 10px; display: grid; place-items: center; }
.brand-mark svg { width: 23px; height: 23px; }
.brand-product { font-size: 13px; font-weight: 450; color: var(--muted); margin-left: 7px; }
.brand-separator { width: 1px; height: 18px; background: var(--line); margin: 0 3px; }
.brand-subtitle { color: var(--muted); font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .button.ghost { border-color: transparent; color: #536075; }
.header-quota { display: flex; align-items: center; gap: 9px; margin-left: 3px; border-left: 1px solid var(--line); padding: 0 8px 0 20px; }
.header-quota small { color: var(--muted); font-size: 12px; }
.header-quota strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.quiet-link { color: var(--muted); font-size: 13px; text-decoration: none; }
.quiet-link:hover { text-decoration: underline; }
.main-shell { max-width: 1376px; padding: 34px 36px 42px; margin: auto; min-height: calc(100vh - 156px); }
.intro-grid { display: grid; grid-template-columns: minmax(0,1.48fr) minmax(370px,1fr); gap: 48px; align-items: center; margin-bottom: 34px; }
.intro-copy { padding: 12px 0; }
.title-dot { color: var(--primary); }
.hero-description { font-size: 14px; color: var(--muted); line-height: 1.85; margin-top: 13px; }
.intro-meta { display: flex; gap: 17px; margin-top: 22px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.intro-meta span { display: inline-flex; align-items: center; gap: 6px; }
.intro-meta svg { width: 14px; height: 14px; color: var(--green); }
.intro-meta span + span { border-left: 1px solid var(--line); padding-left: 17px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.panel + .panel { margin-top: 24px; }
.panel-heading { padding: 23px 25px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.panel-heading p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 5px; }
.account-quota { border-color: #dce5f4; background: #fbfcff; }
.quota-heading { padding: 17px 20px 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.quota-heading > strong { font-size: 13px; }
.quota-heading > div { color: var(--muted); font-size: 12px; }
#quota-available { font-size: 26px; color: var(--primary); font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.inline-activation { padding: 0 20px 13px; display: flex; align-items: stretch; gap: 8px; }
.inline-activation .input-with-action { flex: 1; min-width: 0; }
.inline-activation input { font-size: 12px; min-height: 39px; }
.inline-activation .button { min-height: 39px; }
.input-with-action { position: relative; }
.input-with-action input { padding-right: 53px !important; }
.input-action { position: absolute; right: 5px; top: 5px; bottom: 5px; border: 0; padding: 0 8px; border-radius: 5px; background: transparent; color: var(--muted); font-size: 11px; }
.input-action:hover { background: #edf2fb; color: var(--blue); }
.quota-summary { display: flex; gap: 7px 15px; flex-wrap: wrap; padding: 0 20px 12px; font-size: 11px; color: var(--muted); }
.quota-summary #code-label { color: var(--text); font-weight: 550; overflow-wrap: anywhere; }
.quota-summary b { font-weight: 550; color: var(--text); font-variant-numeric: tabular-nums; }
.quota-explanation { padding: 9px 20px 10px; font-size: 10px; color: var(--muted); border-top: 1px solid #e7edf8; }
.account-quota .feedback { margin: 0 20px 12px; }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.service-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: #f1f3f7; width: 384px; flex-shrink: 0; }
.service-tabs::before { content: ""; position: absolute; z-index: 0; top: 4px; left: 4px; bottom: 4px; width: calc(50% - 6px); background: #fff; border: 1px solid #dfe5ee; border-radius: 7px; box-shadow: 0 1px 3px #24314908; transition: transform .32s var(--ease); }
.service-tabs:has(#tab-phone.selected)::before { transform: translateX(calc(100% + 4px)); }
.service-tabs button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; transition: color .18s; }
.service-tabs button.selected { color: var(--blue); font-weight: 620; }
.service-tabs button:not(.selected):hover { color: var(--text); }
.toolbar-hint { font-size: 11px; color: var(--muted); }
.process-steps { margin: 0; padding: 22px 0; list-style: none; display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--muted); }
.process-steps li { display: flex; align-items: center; gap: 8px; }
.process-steps li:not(:last-child)::after { content: ""; width: 35px; height: 1px; background: #d8dee8; margin-left: 8px; }
.process-steps span { font-size: 10px; font-family: var(--mono); color: var(--muted); background: #f3f5f8; border: 1px solid #e5e9ef; border-radius: 50%; width: 26px; height: 26px; display: grid; place-items: center; }
.process-steps li.current { color: var(--blue); }
.process-steps li.current span { background: #eff5ff; color: var(--blue); border-color: #d2e2ff; }
.automation-grid { display: grid; grid-template-columns: minmax(0,1.56fr) minmax(0,1fr); gap: 24px; align-items: start; }
.activity-column { min-width: 0; }
#account-form { padding: 0 25px 25px; }
.submission-count { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.submission-count .count-tag { margin: 0; }
.mode-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-bottom: 20px; }
.mode-option { display: flex; gap: 7px; align-items: flex-start; min-width: 0; margin: 0; padding: 12px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.mode-option:hover { border-color: #aebfd8; background: #fafcff; }
.mode-option:has(input:checked) { border-color: #94b6f8; background: #f2f7ff; box-shadow: inset 0 0 0 .5px #94b6f8; }
.mode-option input { margin-top: 4px !important; }
.mode-option strong { display: block; font-size: 12px; white-space: nowrap; }
.mode-option small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); font-weight: 400; }
.mode-option em { display: inline; color: var(--blue); font-size: 9px; font-style: normal; font-weight: 500; margin-left: 3px; }
.mode-option:has(input:disabled) { opacity: .58; cursor: not-allowed; }
fieldset { padding: 0; border: 0; min-width: 0; margin: 0; }
legend { padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 550; }
label { display: block; font-size: 12px; font-weight: 550; margin-bottom: 8px; }
label input[type=radio], label input[type=checkbox] { accent-color: var(--primary); width: 15px; height: 15px; margin: 0; flex: none; }
input:not([type=radio]):not([type=checkbox]), textarea, select { width: 100%; min-height: 41px; color: var(--text); background: var(--field); border: 1px solid #cdd5e1; border-radius: 8px; padding: 9px 12px; caret-color: var(--primary); transition: border-color .18s, box-shadow .18s; }
input::placeholder, textarea::placeholder { color: var(--dim); opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: #83a7f0; box-shadow: 0 0 0 3px #2563eb0c; }
input[readonly], textarea[readonly] { background: #f8fafc; }
input:disabled, textarea:disabled, select:disabled { opacity: .6; cursor: not-allowed; }
textarea { display: block; resize: vertical; min-height: 150px; line-height: 1.9; font-size: 12px; }
#account-text { min-height: 184px; font-family: var(--mono); border-style: solid; }
.format-box { padding: 12px 14px; border-radius: 8px; background: #f7f9fc; border: 1px solid var(--line-soft); margin-bottom: 20px; }
.format-box strong { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.format-box code { display: block; color: #435778; font: 11px/1.7 var(--mono); overflow-wrap: anywhere; margin-top: 5px; }
.format-box p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.input-notes { display: flex; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; font-size: 10px; color: var(--muted); margin: 8px 0 18px; }
.free-option { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; margin: 16px 0 20px; }
.free-option input { margin-top: 4px !important; }
.free-option strong { font-size: 12px; }
.free-option small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 2px; }
#submit-accounts { min-height: 45px; font-size: 13px; }
.button { min-height: 40px; padding: 8px 16px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; line-height: 1.5; font-weight: 570; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; user-select: none; text-decoration: none; transition: background .18s, border-color .18s, color .18s, transform .22s var(--ease), box-shadow .18s; }
.button.primary { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 2px 3px #2563eb12; }
.button.primary:hover:not(:disabled) { color: #fff; background: var(--primary-hover); border-color: var(--primary-hover); box-shadow: 0 3px 7px #2563eb20; }
.button.secondary { color: #33445e; border-color: #d6deea; background: #fff; }
.button.secondary:hover:not(:disabled) { background: #f3f7fd; border-color: #aebfd9; }
.button.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.button.ghost:hover:not(:disabled) { color: var(--text); background: #f3f5f9; border-color: #cbd5e4; }
.button.danger { color: var(--red); background: #fff3f4; border-color: #f0c9d0; }
.button.danger:hover:not(:disabled) { background: #ffe7eb; }
.button:active:not(:disabled) { transform: scale(.976); }
.button.small { min-height: 33px; padding: 6px 11px; font-size: 11px; }
.button:disabled { opacity: .48; box-shadow: none; }
.button[aria-busy=true]::before { content: ""; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.button[aria-busy=true] > svg { display: none; }
.spinner { width: 17px; height: 17px; border: 2px solid #d3e2ff; border-right-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-line { display: flex; align-items: center; gap: 9px; padding: 12px 0; color: var(--muted); font-size: 12px; }
.initial-state { min-height: 420px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.field-help { font-size: 11px; line-height: 1.8; margin-top: 8px; }
.privacy-note { text-align: center; font-size: 10px; margin-top: 12px; }
.field-spacer { margin-top: 24px; }
.feedback { padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; margin: 13px 0; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.feedback:empty { display: none; }
.feedback.error { background: #fff5f6; border-color: #f4d2d9; color: #a7283d; }
.feedback.warning { background: #fffbef; border-color: #eee0b3; color: #886016; }
.feedback.success { background: #f0fbf5; border-color: #cde9db; color: #176a4f; }
.feedback.info { background: #f1f6ff; border-color: #d4e2fa; color: #31588e; }
.feedback a { color: inherit; font-weight: 600; }
.recovery-line { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.count-tag, .status-badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #536075; background: #f5f7fa; border: 1px solid #e3e8ef; font-size: 10px; border-radius: 5px; padding: 2px 7px; line-height: 1.5; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.status-badge { min-height: 23px; }
.count-tag { margin-left: 5px; vertical-align: middle; }
.status-badge.success { background: #effaf5; color: #187553; border-color: #d3eddf; }
.status-badge.warning { background: #fffaee; color: #8c631b; border-color: #f1e3ba; }
.status-badge.error { background: #fff2f4; color: #b0354a; border-color: #f0d7dd; }
.status-badge.info { background: #eff5ff; color: #285dba; border-color: #dbe7fd; }
.protocol-heading { display: flex; align-items: center; justify-content: space-between; padding: 21px 22px 17px; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.protocol-heading h3 { font-size: 16px; }
.protocol-heading p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.protocol-empty { display: flex; min-height: 207px; padding: 26px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.protocol-empty svg { width: 38px; height: 38px; color: #778fae; margin-bottom: 17px; stroke-width: 1.3; }
.protocol-empty h3 { color: #41516b; font-size: 13px; }
.protocol-empty p { font-size: 11px; color: var(--muted); margin-top: 7px; max-width: 32ch; }
.protocol-footer { padding: 11px 20px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 9px; }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.live-indicator i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.live-indicator.paused i { background: #8692a6; }
#jobs-list { padding: 0 20px; }
.jobs-list:empty { display: none; }
.job-row { padding: 19px 0; border-top: 1px solid var(--line-soft); }
.job-row:first-child { border-top: 0; }
.job-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-email { font-size: 12px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.job-message, .job-phone { font-size: 11px; color: var(--muted); margin-top: 7px; overflow-wrap: anywhere; }
.job-phone { color: #3e577a; font-variant-numeric: tabular-nums; }
.job-code-form { margin-top: 15px; }
.job-code-form label { font-size: 11px; }
.code-submit-row { display: flex; gap: 8px; align-items: stretch; }
.code-submit-row input { min-width: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.code-submit-row .button { flex: none; padding: 8px 11px; font-size: 11px; }
.job-controls { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.job-feedback { margin-bottom: 0; font-size: 11px; }
.logs-disclosure { margin-top: 12px; color: var(--muted); }
.logs-disclosure summary { font-size: 11px; padding: 5px 0; cursor: pointer; width: fit-content; }
.logs-disclosure summary:hover { color: var(--blue); }
.event-list { list-style: none; padding: 0; margin: 9px 0 0; max-height: 205px; overflow: auto; }
.event-list li { padding: 5px 0; display: flex; gap: 13px; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.event-list time { color: var(--dim); flex: none; font-variant-numeric: tabular-nums; }
.event-list span { min-width: 0; }
#live-events { padding: 12px 20px; margin: 0; background: #fafbfd; border-bottom: 1px solid var(--line-soft); }
.success-panel .panel-heading { padding: 19px 20px 15px; }
.success-panel h2 { font-size: 15px; }
.success-panel .panel-heading p { font-size: 10px; }
.success-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding: 0 20px 20px; }
.success-metrics > div { display: flex; flex-direction: column; gap: 4px; }
.success-metrics b { font-size: 22px; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.success-metrics > div:first-child b { color: var(--green); }
.success-metrics span { color: var(--muted); font-size: 9px; }
.success-grid { display: grid; grid-template-columns: repeat(24,minmax(0,1fr)); gap: 3px; margin: 0 20px; }
.heat-cell { display: block; aspect-ratio: 1; border-radius: 2px; background: #edf1f5; border: 1px solid #e3e9ef; }
.heat-cell.has-success { background: #53b792; border-color: #41a782; }
.heat-cell.unknown { background: #f2f4f7; border-color: #e9edf2; }
.heat-cell:hover { border-color: #6c8dbb; }
.heatmap-footer { padding: 12px 20px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-size: 9px; color: var(--muted); }
.heatmap-footer > span:last-child { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.heatmap-footer i { width: 8px; height: 8px; border: 1px solid #dde5ee; background: #edf1f5; border-radius: 2px; }
.heatmap-footer i.lit { background: #53b792; border-color: #41a782; }
.records-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 24px; align-items: start; margin-top: 24px; }
.records-grid > .panel { margin: 0; }
.history-body { padding: 0 24px 23px; }
.history-body > label { font-size: 11px; }
.history-body select { font-size: 12px; }
.history-body .detail-heading { margin-top: 20px; }
.detail-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.detail-heading p { font-size: 10px; margin-top: 6px; overflow-wrap: anywhere; }
.task-credit-line { color: var(--muted); font-size: 11px; margin: 14px 0; }
.compact-empty { text-align: center; padding: 24px 18px; font-size: 12px; color: var(--muted); }
.history-body .compact-empty { padding-bottom: 8px; font-size: 11px; }
.replica-download { padding: 19px 24px 21px; background: #fafbfd; border-top: 1px solid var(--line-soft); }
.replica-download > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.replica-download h3 { font-size: 12px; }
.replica-download .field-help { margin-top: 0; font-size: 10px; }
.format-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.format-actions .button { display: flex; flex-direction: column; gap: 2px; min-height: 51px; padding: 8px 5px; color: #31496e; background: #fff; border-color: #d8e1ef; }
.format-actions .button:hover:not(:disabled) { color: var(--blue); border-color: #97b7f4; background: #f4f8ff; transform: translateY(-2px); }
.format-actions small { font-size: 9px; color: var(--muted); font-weight: 450; letter-spacing: .03em; }
.raw-actions { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 9px; }
.raw-actions .button { font-size: 9px; min-height: 29px; padding: 5px 8px; border-color: transparent; }
.replica-download .raw-help { font-size: 10px; line-height: 1.8; }
#recovery-input { min-height: 145px; }
#recovery-select-label { margin-top: 18px; }
.assurance { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 28px; border-top: 1px solid var(--line); padding: 24px 0 0; margin-top: 35px; }
.assurance h2 { font-size: 12px; color: #4d5b72; padding-top: 1px; }
.assurance p { font-size: 11px; color: var(--muted); max-width: 93ch; line-height: 1.85; }
.phone-workspace { padding: 0 25px 25px; }
.phone-workspace > .field-help { margin-top: 0; }
.phone-workspace .protocol-empty { min-height: 290px; }
.lease-row { border-top: 1px solid var(--line); padding: 23px 0 0; margin-top: 20px; }
.lease-values { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
.lease-values > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 19px; background: #f6f9ff; border: 1px solid #dfe8f6; border-radius: 10px; }
.lease-values .quiet-label { width: 100%; font-size: 11px; }
.lease-value { font: 600 27px/1.4 var(--mono); letter-spacing: -.03em; color: #2b528b; overflow-wrap: anywhere; }
.lease-message { color: var(--muted); font-size: 12px; margin-top: 8px; }
.site-footer { max-width: 1376px; margin: auto; padding: 21px 36px 38px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.footer-separator { margin: 0 9px; color: #adb8c8; }
.cdk-floating { position: fixed; right: 23px; bottom: 18px; z-index: 10; display: flex; gap: 9px; align-items: center; padding: 9px 13px; background: #fff; color: #556176; border: 1px solid #dce3ed; border-radius: 10px; box-shadow: 0 5px 18px #2033580d; font-size: 10px; text-decoration: none; }
.cdk-floating > i { width: 5px; height: 5px; border-radius: 50%; background: #8d99ab; }
.cdk-floating strong { font-weight: 550; color: var(--blue); padding-left: 8px; border-left: 1px solid var(--line); }
body:has(#logout:not([hidden])) .cdk-floating > i { background: var(--green); }
.confirm-dialog { width: min(440px,calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 28px; border: 1px solid #d6deeb; background: #fff; border-radius: 17px; color: var(--text); box-shadow: 0 22px 90px #12203926; }
.confirm-dialog::backdrop { background: #10234045; backdrop-filter: blur(4px); }
.confirm-dialog p { font-size: 13px; color: var(--muted); line-height: 1.9; margin-top: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.confirm-dialog[open] { animation: dialog-in .3s var(--ease); }
.confirm-dialog[open]::backdrop { animation: backdrop-in .22s ease-out; }
/* Admin uses the same field, action and accounting language. */
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.page-heading p { font-size: 13px; color: var(--muted); margin-top: 9px; }
.activation-view { width: min(100%,440px); margin: 74px auto 100px; }
.activation-intro { text-align: center; margin-bottom: 26px; }
.activation-intro h1 { font-size: 26px; }
.activation-intro p { font-size: 13px; color: var(--muted); margin-top: 12px; }
.section-symbol { width: 48px; height: 48px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 13px; background: #eff5ff; color: var(--blue); }
.section-symbol svg { width: 26px; height: 26px; }
.activation-panel { padding: 28px; }
.activation-panel .full { min-height: 43px; margin-top: 23px; }
#confirm-password-field { margin-top: 18px; }
.admin-tabs { display: flex; gap: 8px; padding-bottom: 15px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.admin-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); padding: 9px 19px; border-radius: 8px; font-size: 13px; white-space: nowrap; transition: color .18s, background .22s, border-color .22s; }
.admin-tabs button:hover { background: #f7f9fc; color: var(--text); }
.admin-tabs button[aria-selected=true] { color: var(--blue); background: #eff5ff; border-color: #dfebff; font-weight: 600; }
.admin-tabs svg { width: 17px; height: 17px; }
.admin-overview-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 24px; }
.admin-overview-grid > .panel + .panel { margin: 0; }
.upstream-metrics, .overview-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; padding: 0 25px 24px; margin: 0; }
.upstream-metrics dt, .overview-metrics dt { font-size: 11px; color: var(--muted); }
.upstream-metrics dd, .overview-metrics dd { font-size: 26px; line-height: 1.4; font-weight: 620; font-variant-numeric: tabular-nums; letter-spacing: -.035em; margin: 4px 0 0; }
.upstream-metrics .available, .overview-metrics .available { grid-column: 1/-1; padding-bottom: 15px; border-bottom: 1px solid var(--line-soft); }
.upstream-metrics .available dd, .overview-metrics .available dd { font-size: 43px; color: var(--blue); }
.overview-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.overview-metrics .available dd { color: var(--green); }
.inset-content { padding: 0 25px 25px; }
.inset-content > .button { margin-top: 15px; }
.inset-form { padding: 22px 25px 25px; border-top: 1px solid var(--line-soft); }
.no-top-border { border-top: 0; padding-top: 2px; }
.inset-form > .button { margin-top: 20px; }
.ledger-panel { margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: 18px; }
.form-grid > div { min-width: 0; }
.generate-grid { grid-template-columns: 1fr 1fr 2fr; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line-soft); margin-top: 22px; padding-top: 20px; }
.form-footer .field-help { margin: 0; }
.inline-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 17px; }
.panel-heading > .inline-actions, .recovery-line > .inline-actions { margin-top: 0; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line-soft); }
table { width: 100%; border-collapse: collapse; font-size: 12px; white-space: nowrap; }
th { background: #f8fafc; color: var(--muted); font-weight: 500; text-align: left; font-size: 11px; }
th, td { padding: 14px 23px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; font-variant-numeric: tabular-nums; }
td { color: #3c4b62; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .16s; }
tbody tr:hover { background: #f8fbff; }
td.wrap-cell { white-space: normal; min-width: 160px; max-width: 340px; overflow-wrap: anywhere; }
td .button { min-height: 30px; padding: 4px 9px; }
td .status-badge { min-height: 22px; }
.generated-panel { border-color: #bee1d0; background: #fcfffd; }
#generated-codes { min-height: 128px; font-family: var(--mono); font-size: 12px; }
.search-field { width: 240px; }
.search-field input { min-height: 36px; font-size: 12px; }
.filter-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; white-space: nowrap; margin: 0; }
.filter-label select { min-width: 120px; min-height: 36px; font-size: 12px; }
.task-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 0 0 23px; }
.task-facts dt { font-size: 11px; color: var(--muted); }
.task-facts dd { font-size: 13px; margin: 5px 0 0; overflow-wrap: anywhere; }
.settle-form { border-top: 1px solid #ecdcca; margin-top: 24px; padding-top: 22px; }
.settle-form h3 { color: #8a5c20; }
.settle-form .form-grid { margin: 18px 0; }
.settings-panel { max-width: 820px; }
.admin-task-detail .inset-content { padding-top: 4px; }
.admin-auth-note { margin-top: 20px; text-align: center; font-size: 11px; color: var(--muted); }
/* Motion follows interaction. Data never animates through invented values. */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes error-in { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 65% { transform: translateX(2px); } }
#automation-view:not([hidden]), #phone-view:not([hidden]), .admin-tab-panel:not([hidden]) { animation: panel-in .32s var(--ease); }
.feedback:not([hidden]), .job-code-form:not([hidden]), .logs-disclosure[open] > .event-list { animation: panel-in .24s var(--ease); }
.feedback.error:not([hidden]) { animation: error-in .28s ease-out; }
.job-row { animation: panel-in .28s var(--ease); }
@media (min-width: 1500px) { .main-shell { padding-top: 42px; } .intro-grid { margin-bottom: 40px; } }
@media (max-width: 1160px) {
  .header-inner, .main-shell, .site-footer { padding-left: 25px; padding-right: 25px; }
  .header-actions { gap: 5px; } .brand-product { display: none; }
  .intro-grid { gap: 30px; grid-template-columns: minmax(0,1fr) minmax(350px,1fr); }
  .automation-grid { grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: 20px; }
  .mode-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .panel-heading { padding: 21px 20px 18px; }
  #account-form, .history-body { padding-left: 20px; padding-right: 20px; }
  .submission-count { gap: 5px; }
  .success-metrics { grid-template-columns: repeat(2,1fr); gap: 14px; }
  .success-grid { gap: 2px; }
  .heatmap-footer { flex-wrap: wrap; gap: 7px; }
  .protocol-footer { flex-wrap: wrap; gap: 5px; }
  .records-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .replica-download { padding: 19px 20px; }
  .replica-download > div:first-child { flex-direction: column; gap: 2px; }
  .admin-overview-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .overview-metrics { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 850px) {
  .header-quota { display: none; } .header-actions { gap: 3px; }
  .header-actions .button { padding: 6px 8px; }
  .main-shell { padding-top: 25px; }
  h1 { font-size: 29px; }
  .intro-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .intro-meta { gap: 8px; margin-top: 17px; }
  .intro-meta span + span { border: 0; padding-left: 0; }
  .hero-description { font-size: 12px; }
  .automation-grid { grid-template-columns: minmax(0,1fr); }
  .mode-options { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .activity-column { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .activity-column > .panel { margin: 0; }
  .records-grid { grid-template-columns: 1fr; }
  .format-actions { gap: 10px; }
  .raw-actions .button { font-size: 10px; }
  .replica-download > div:first-child { flex-direction: row; align-items: baseline; }
  .admin-overview-grid { grid-template-columns: 1fr; }
  .upstream-metrics, .overview-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 22px; }
  .header-inner { min-height: 0; padding: 17px 18px 12px; flex-wrap: wrap; gap: 12px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand strong { font-size: 16px; } .brand-product { display: inline; font-size: 12px; }
  .header-actions { width: 100%; gap: 4px; flex-wrap: wrap; }
  .header-actions .button { font-size: 10px; min-height: 31px; padding: 6px 8px; }
  .header-actions .status-badge { margin-left: auto; }
  .header-actions #logout { margin-left: 0; }
  .main-shell { padding: 25px 16px 28px; }
  .intro-grid { grid-template-columns: 1fr; gap: 22px; margin-bottom: 24px; }
  .intro-copy { padding: 0; } h1 { font-size: 29px; }
  .hero-description { font-size: 12px; margin-top: 12px; }
  .intro-meta { font-size: 10px; gap: 12px; margin-top: 17px; }
  .intro-meta span + span { border-left: 1px solid var(--line); padding-left: 12px; }
  .quota-heading { padding: 14px 17px 11px; }
  .inline-activation { padding: 0 17px 12px; }
  .quota-summary { padding: 0 17px 11px; gap: 6px 12px; font-size: 10px; }
  .quota-explanation { padding: 9px 17px; font-size: 9px; }
  .workspace-toolbar { display: block; padding-bottom: 15px; }
  .service-tabs { width: 100%; } .service-tabs button { font-size: 12px; padding: 6px 7px; }
  .toolbar-hint { display: block; margin: 10px 0 0; font-size: 10px; text-align: right; }
  .process-steps { font-size: 11px; gap: 9px; padding: 19px 0; }
  .process-steps li { gap: 6px; }
  .process-steps li:not(:last-child)::after { width: 17px; margin-left: 4px; }
  .process-steps span { width: 23px; height: 23px; font-size: 9px; }
  .panel { border-radius: 12px; }
  .panel-heading { padding: 20px 17px 17px; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
  .panel-heading h2 { font-size: 17px; } .panel-heading p { font-size: 11px; }
  .submission-count { justify-content: flex-start; }
  #account-form { padding: 0 17px 21px; }
  .mode-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .mode-option { padding: 11px 12px; } .mode-option small { font-size: 10px; }
  .format-box { padding: 11px 12px; } .format-box code { font-size: 10px; }
  #account-text { min-height: 180px; font-size: 11px; }
  .input-notes { font-size: 9px; gap: 6px; }
  .free-option small { font-size: 9px; }
  .activity-column { grid-template-columns: 1fr; }
  .success-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
  .success-metrics b { font-size: 22px; } .success-metrics span { font-size: 9px; }
  .success-grid { gap: 3px; }
  .heatmap-footer { font-size: 9px; }
  .protocol-heading { padding: 19px 17px 16px; }
  .protocol-footer { padding: 11px 17px; flex-direction: row; flex-wrap: wrap; }
  .history-body { padding: 0 17px 21px; }
  .replica-download { padding: 19px 17px; }
  .replica-download > div:first-child { flex-wrap: wrap; gap: 3px; }
  .format-actions { gap: 6px; }
  .format-actions .button { font-size: 11px; min-height: 50px; }
  .raw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
  .raw-actions .button { font-size: 10px; padding: 7px 6px; border-color: var(--line); white-space: normal; }
  .recovery-line { align-items: stretch; flex-direction: column; }
  .detail-heading { flex-wrap: wrap; }
  .assurance { grid-template-columns: 1fr; gap: 9px; margin-top: 28px; padding-top: 21px; }
  .assurance p { font-size: 10px; }
  .phone-workspace { padding: 0 17px 21px; }
  .lease-values { grid-template-columns: 1fr; gap: 12px; }
  .lease-value { font-size: 23px; }
  .job-heading { align-items: flex-start; gap: 8px; } .job-email { font-size: 11px; }
  .site-footer { padding: 18px 16px 75px; flex-direction: column; gap: 6px; font-size: 9px; }
  .cdk-floating { bottom: 13px; right: 15px; padding: 8px 11px; }
  .confirm-dialog { padding: 23px; }
  .page-heading { align-items: flex-start; gap: 12px; margin-bottom: 24px; }
  .page-heading h1 { font-size: 27px; } .page-heading p { font-size: 12px; }
  .page-heading > .button { margin-top: 3px; }
  .admin-tabs { gap: 5px; margin-bottom: 20px; }
  .admin-tabs button { flex: 1; gap: 6px; padding: 8px 9px; font-size: 12px; }
  .admin-tabs svg { width: 15px; height: 15px; }
  .activation-view { margin: 45px auto 65px; }
  .activation-panel { padding: 24px 21px; }
  .upstream-metrics, .overview-metrics { padding: 0 18px 20px; gap: 18px; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .upstream-metrics dd, .overview-metrics dd { font-size: 23px; }
  .upstream-metrics .available dd, .overview-metrics .available dd { font-size: 38px; }
  .inset-form { padding: 17px 18px 23px; } .no-top-border { padding-top: 0; }
  .inset-content { padding: 0 18px 23px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .generate-grid { grid-template-columns: 1fr 1fr; }
  .generate-grid > div:last-child { grid-column: 1/-1; }
  .form-footer { align-items: stretch; flex-direction: column; gap: 15px; }
  .search-field { width: 100%; }
  th, td { padding: 12px 17px; }
  .task-facts { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 360px) { .brand-product { font-size: 11px; } .process-steps { gap: 7px; } .process-steps li:not(:last-child)::after { width: 8px; } .admin-tabs svg { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
