:root {
  --bg: #f4f5f1;
  --surface: #fff;
  --surface-2: #f0f1ed;
  --ink: #1c211d;
  --muted: #717872;
  --line: #e2e5df;
  --primary: #215d42;
  --primary-2: #174833;
  --primary-soft: #e5f1e9;
  --danger: #b6443f;
  --danger-soft: #f9e9e6;
  --warning: #9a6a18;
  --warning-soft: #fcf1d8;
  --radius: 18px;
  --shadow: 0 10px 35px rgba(24, 39, 29, .07);
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; color: var(--ink); background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { margin: 0 0 5px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(25px, 7vw, 34px); line-height: 1.15; }
h2 { margin-bottom: 5px; font-size: 18px; }

.login-page, .public-page { width: 100%; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(circle at 85% 10%, #dbeadf 0, transparent 32%), var(--bg); }
.login-card { width: min(100%, 410px); margin: 0 auto; padding: 36px 28px; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.9); border-radius: 26px; box-shadow: var(--shadow); }
.public-card { width: min(100%, 500px); }
.public-links { margin: 18px 0 0; text-align: center; }
.public-links a { color: var(--primary); text-decoration: none; font-weight: 700; }
.result-panel { margin-top: 24px; padding: 18px; background: var(--primary-soft); border: 1px solid #cfe4d5; border-radius: 15px; }
.result-panel h2 { margin-bottom: 8px; }
.result-panel p:last-child { margin-bottom: 0; }
.workbench-body { min-height: 100svh; background: #f5f6fb; }
.workbench-page { width: min(100%, 680px); min-height: 100svh; display: grid; align-content: center; justify-items: stretch; gap: 24px; margin: auto; padding: 34px 18px 42px; }
.workbench-brand { display: grid; justify-items: center; text-align: center; }
.workbench-icon { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 13px; color: #fff; font-size: 35px; font-weight: 800; background: linear-gradient(145deg, #6754df, #9352ee); border-radius: 18px; box-shadow: 0 12px 24px rgba(104, 77, 222, .23); }
.workbench-brand h1 { margin: 0; color: #3d3d7e; font-size: 30px; letter-spacing: .02em; }
.workbench-brand p { margin: 4px 0 0; color: #a0a0b1; font-size: 14px; }
.workbench-card { padding: 26px 24px 24px; background: rgba(255,255,255,.96); border: 1px solid #ebecf3; border-radius: 20px; box-shadow: 0 14px 35px rgba(44, 45, 74, .09); }
.workbench-form { display: grid; gap: 14px; }
.workbench-form label { gap: 9px; color: #4d4e5d; }
.workbench-input-wrap { position: relative; }
.workbench-input-wrap span { position: absolute; top: 50%; left: 16px; color: #a5a7b6; transform: translateY(-50%); }
.workbench-input-wrap input { min-height: 50px; padding-left: 42px; background: #fbfbfd; border-color: #e3e4eb; }
.workbench-warning { padding: 12px 14px; color: #8c6417; background: #fffbee; border: 1px solid #f0d773; border-radius: 12px; font-size: 13px; line-height: 1.55; }
.workbench-hint { margin: 0; color: #a1a2ad; font-size: 12px; }
.workbench-submit { min-height: 50px; color: #fff; background: linear-gradient(100deg, #5d50dc, #9252ed); border: 0; border-radius: 12px; box-shadow: 0 9px 18px rgba(105, 78, 222, .23); font-weight: 800; }
.workbench-submit:hover { filter: brightness(.97); }
.workbench-result { margin-top: 16px; padding: 16px; color: #38384f; background: #f5f2ff; border: 1px solid #ddd4ff; border-radius: 13px; }
.workbench-result h2 { margin-bottom: 8px; color: #4d40bc; }
.workbench-result p { margin-bottom: 7px; line-height: 1.6; }
.workbench-result-note { color: #77778a; font-size: 12px; }
.workbench-flow { display: grid; gap: 15px; }
.workbench-flow-status { padding: 17px 18px; color: #086d3a; background: #edfff4; border: 1px solid #8ce9b4; border-left: 6px solid #1aa45a; border-radius: 15px; }
.workbench-flow-status h2 { margin-bottom: 8px; color: #086d3a; }
.workbench-flow-status p { margin: 0; line-height: 1.65; }
.workbench-flow-status.is-complete { background: #edfff4; border-left-color: #17a354; }
.workbench-switcher { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.workbench-switch { min-height: 50px; color: #6657dc; background: #f0efff; border: 2px solid #6657dc; border-radius: 13px; font-size: 16px; font-weight: 800; }
.workbench-switch:not(.active) { color: #596078; background: #fff; border-color: #e1e2ea; }
.workbench-guide { padding: 20px; background: #fff; border: 1px solid #ebecf3; border-radius: 19px; box-shadow: 0 12px 28px rgba(44, 45, 74, .06); }
.workbench-guide h2 { margin-bottom: 15px; color: #252535; font-size: 21px; }
.workbench-guide h2 span { padding: 4px 8px; color: #d33e4b; background: #ffe4e5; border-radius: 7px; font-size: 12px; vertical-align: middle; }
.workbench-danger { margin-bottom: 15px; padding: 13px 14px; color: #a73539; background: #fff1f1; border: 1px solid #ffafb1; border-left: 6px solid #e12d32; border-radius: 12px; line-height: 1.6; }
.workbench-guide-copy { padding: 14px; color: #3f4351; background: #fafbff; border: 1px solid #e5e7ef; border-radius: 12px; line-height: 1.75; }
.workbench-guide-copy ol { margin: 0; padding-left: 21px; }
.workbench-guide-copy li { padding-left: 3px; }
.workbench-guide-copy li + li { margin-top: 8px; }
.workbench-guide-copy strong { color: #252535; }
.workbench-guide-lead { margin: 0 0 10px; color: #3f4351; font-weight: 700; line-height: 1.75; }
.workbench-ok-line { margin: 0 0 13px; color: #5c6b87; font-size: 13px; }
.workbench-notice { margin-bottom: 15px; padding: 13px 14px; color: #9a5b05; background: #fff8eb; border: 1px solid #ffd18a; border-left: 5px solid #e58b00; border-radius: 12px; line-height: 1.6; }
.workbench-demo-phone, .workbench-demo-code { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 16px; border: 1px solid #e2e4ec; border-left: 5px solid #6754df; border-radius: 14px; }
.workbench-demo-phone span, .workbench-demo-code span { display: block; color: #5c6072; font-size: 13px; font-weight: 700; }
.workbench-demo-phone strong, .workbench-demo-code strong { display: block; margin-top: 7px; color: #77798a; font-size: 18px; }
.workbench-demo-phone small { display: block; margin-top: 6px; color: #77798a; font-size: 12px; line-height: 1.4; }
.workbench-copy { min-height: 38px; padding: 7px 13px; color: #666a7b; background: #fff; border: 1px solid #e2e4ec; border-radius: 10px; }
.workbench-step p { margin: 7px 0 5px; color: #3f4351; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.workbench-step code { display: block; color: #4d40bc; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.workbench-sms-card { display: grid; gap: 13px; padding: 16px; background: #fff; border: 1px solid #e3e5ee; border-left: 5px solid #6754df; border-radius: 14px; box-shadow: 0 7px 18px rgba(44, 45, 74, .05); }
.workbench-sms-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.workbench-sms-head > div { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.workbench-sms-kicker, .workbench-sms-body > span, .workbench-sms-code span { color: #77798a; font-size: 12px; font-weight: 700; }
.workbench-sms-head strong { color: #34345e; font-size: 16px; }
.workbench-sms-head em { padding: 4px 8px; color: #168344; background: #e9faef; border-radius: 99px; font-size: 11px; font-style: normal; font-weight: 800; }
.workbench-sms-time { color: #9295a5; font-size: 12px; }
.workbench-sms-body { padding: 11px 12px; background: #f8f8fc; border: 1px solid #ececf4; border-radius: 10px; }
.workbench-sms-body p { margin: 7px 0 0; color: #3f4351; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.workbench-sms-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 2px; }
.workbench-sms-code strong { display: block; margin-top: 4px; color: #4d40bc; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 20px; letter-spacing: .08em; overflow-wrap: anywhere; }
.sms-copy { flex: 0 0 auto; }
.workbench-sms-empty { display: flex; align-items: center; gap: 11px; padding: 15px; color: #72778c; background: #fafaff; border: 1px dashed #d9dbea; border-radius: 13px; }
.workbench-sms-empty-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: #6754df; background: #eeeaff; border-radius: 9px; font-size: 10px; font-weight: 850; }
.workbench-sms-empty strong { display: block; color: #4d4f6c; font-size: 14px; }
.workbench-sms-empty p { margin: 3px 0 0; font-size: 12px; line-height: 1.5; }
.workbench-history { display: grid; gap: 10px; padding: 15px; background: #fff; border: 1px solid #ebecf3; border-radius: 15px; }
.workbench-history .workbench-step { display: block; }

.workbench-step.is-pending { color: #596078; background: #fff; border-color: #e1e3eb; }
.workbench-step.is-pending b { background: #aeb2c1; }
.workbench-step.is-pending em { color: #9195a4; }
.workbench-step.is-current { background: #effff5; border-color: #70e1a0; box-shadow: 0 0 0 3px rgba(37, 179, 97, .08); }
.workbench-step b { width: 28px; height: 28px; display: grid; place-items: center; color: #fff; background: #1ba45a; border-radius: 50%; }
.workbench-step strong, .workbench-step span { display: block; }
.workbench-step span { margin-top: 3px; color: #85908d; font-size: 12px; }
.workbench-step em { color: #168344; font-size: 12px; font-style: normal; font-weight: 800; }
.workbench-action { width: 100%; min-height: 50px; margin-top: 15px; color: #fff; background: linear-gradient(100deg, #5d50dc, #9252ed); border: 0; border-radius: 13px; box-shadow: 0 9px 18px rgba(105, 78, 222, .2); font-size: 16px; font-weight: 800; }
.workbench-action:disabled { background: #c4c0df; box-shadow: none; }
.workbench-lock { margin-top: 10px; background: linear-gradient(100deg, #215d42, #2f8a5e); box-shadow: 0 9px 18px rgba(33, 93, 66, .18); }
.workbench-demo-code { display: block; margin-top: 15px; border-left-color: #b9bad0; }
.workbench-demo-code strong { color: #77798a; font-size: 16px; }
.workbench-demo-code small { display: block; margin-top: 6px; color: #999baa; }
.workbench-reset { justify-self: center; padding: 7px 12px; color: #7d8091; background: transparent; border: 0; text-decoration: underline; }
.workbench-footer { color: #a1a2ae; font-size: 12px; text-align: center; line-height: 1.6; }
.workbench-footer a { color: #6754df; text-decoration: none; }
@media (max-width: 480px) {
  .workbench-page { gap: 18px; padding: 26px 14px 32px; }
  .workbench-card { padding: 21px 17px 19px; }
  .workbench-guide { padding: 16px; }
  .workbench-step { grid-template-columns: 28px minmax(0, 1fr); }
  .workbench-step em { grid-column: 2; }
}
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 24px; color: #fff; font-size: 24px; font-weight: 800; background: var(--primary); border-radius: 16px; box-shadow: 0 10px 20px rgba(33,93,66,.18); }
.stack-lg { display: grid; gap: 18px; margin-top: 28px; }
label { display: grid; gap: 8px; color: #303630; font-size: 14px; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 46px; padding: 11px 13px; color: var(--ink); background: #fff; border: 1px solid #d9ddd7; border-radius: 12px; outline: none; transition: border-color .18s, box-shadow .18s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(33,93,66,.1); }
small { color: var(--muted); font-size: 12px; font-weight: 400; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 55px; }
.text-button { position: absolute; right: 8px; top: 50%; padding: 6px; color: var(--primary); background: none; border: 0; transform: translateY(-50%); }
.form-error { min-height: 18px; margin: -7px 0 -7px; color: var(--danger); font-size: 13px; }

.primary-button, .secondary-button, .ghost-button, .danger-button, .icon-button { min-height: 42px; padding: 9px 14px; border-radius: 11px; border: 1px solid transparent; font-weight: 700; }
.top-link { display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; }
.primary-button { color: #fff; background: var(--primary); }
.primary-button:hover { background: var(--primary-2); }
.secondary-button { color: var(--ink); background: var(--surface-2); border-color: var(--line); }
.ghost-button { color: var(--ink); background: #fff; border-color: var(--line); }
.danger-button { color: #fff; background: var(--danger); }
.icon-button { width: 42px; padding: 0; color: var(--ink); background: #fff; border-color: var(--line); font-size: 20px; }
.wide { width: 100%; min-height: 50px; }
button:disabled { cursor: not-allowed; opacity: .42; }
.danger-text { color: var(--danger); }

.dashboard { min-height: 100svh; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 18px max(18px, env(safe-area-inset-left)); background: rgba(244,245,241,.88); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(217,221,215,.72); }
.topbar h1 { margin: 0; font-size: 24px; }
.top-actions { display: flex; gap: 8px; }
.content { width: min(1180px, 100%); margin: auto; padding: 18px 16px 50px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat-card { min-width: 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.stat-card .value { margin: 8px 0 0; font-size: 25px; font-weight: 800; line-height: 1; }
.stat-card .label { color: var(--muted); font-size: 12px; }
.stat-card.accent { color: #fff; background: var(--primary); border-color: var(--primary); }
.stat-card.accent .label { color: rgba(255,255,255,.76); }

.toolbar-card { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.provider-card { margin-bottom: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.provider-page-card { margin-bottom: 10px; }
.provider-safety-note { margin: 0 4px; }
.provider-toolbar-title { align-items: flex-start; }
.provider-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.providers-list { display: grid; gap: 10px; margin-top: 16px; }
.provider-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 15px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.provider-main { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.provider-dot { width: 10px; height: 10px; flex: 0 0 auto; margin-top: 6px; border-radius: 50%; background: var(--muted); }
.provider-dot-ok { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.provider-dot-error { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.provider-dot-disabled, .provider-dot-not_configured { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-soft); }
.provider-main h3 { margin: 0; font-size: 15px; }
.provider-url { overflow: hidden; margin: 4px 0 0; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.provider-status { display: inline-flex; align-items: center; align-self: start; padding: 5px 9px; color: var(--muted); background: #fff; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.provider-status-ok { color: var(--primary); background: var(--primary-soft); }
.provider-status-error { color: var(--danger); background: var(--danger-soft); }
.provider-status-disabled, .provider-status-not_configured { color: var(--warning); background: var(--warning-soft); }
.provider-metrics { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.provider-metric { min-width: 0; padding: 9px 10px; background: #fff; border-radius: 10px; }
.provider-metric span { display: block; color: var(--muted); font-size: 11px; }
.provider-metric strong { display: block; overflow: hidden; margin-top: 3px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.provider-message { grid-column: 1 / -1; margin: -3px 0 0; color: var(--muted); font-size: 12px; }
.provider-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 8px; }
.provider-actions button { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.provider-enabled-label { display: flex; align-items: center; }
.toolbar-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toolbar-title p { margin: 0; }
.filter-row { display: grid; grid-template-columns: 1fr 125px; gap: 9px; margin-top: 16px; }
.filter-row button { grid-column: span 2; }
.search-box { position: relative; }
.search-box span { position: absolute; top: 50%; left: 13px; color: var(--muted); transform: translateY(-50%); }
.search-box input { padding-left: 35px; }
.batch-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.check-label { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.check-label input, .card-select { width: 18px; height: 18px; min-height: auto; accent-color: var(--primary); }
.batch-actions { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 7px; }
.batch-actions button { padding-inline: 6px; font-size: 13px; }

.cards-list { display: grid; gap: 10px; margin-top: 12px; }
.card-row { position: relative; padding: 16px 16px 15px 45px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.card-row > .card-select { position: absolute; top: 18px; left: 16px; }
.card-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.code { overflow: hidden; margin: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 14px; font-weight: 750; letter-spacing: .03em; text-overflow: ellipsis; white-space: nowrap; }
.card-session { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.public-next { margin: 14px 0 0; }
.public-next a { color: var(--primary); font-weight: 700; text-decoration: none; }
.copy-code { padding: 4px 8px; min-height: 30px; flex: 0 0 auto; color: var(--primary); background: var(--primary-soft); border: 0; border-radius: 8px; font-size: 12px; font-weight: 700; }
.card-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.meta-item span { display: block; color: var(--muted); font-size: 11px; }
.meta-item strong { display: block; overflow: hidden; margin-top: 3px; font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 5px; margin-top: 12px; padding: 5px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-unused { color: var(--primary); background: var(--primary-soft); }
.status-in_use { color: #4d40bc; background: #f0edff; }
.status-used { color: #55605a; background: var(--surface-2); }
.status-expired { color: var(--warning); background: var(--warning-soft); }
.status-revoked { color: var(--danger); background: var(--danger-soft); }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed #cfd4cc; border-radius: var(--radius); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; font-size: 13px; }

.modal { width: min(calc(100% - 24px), 480px); padding: 0; border: 0; border-radius: 22px; box-shadow: 0 25px 80px rgba(10,20,13,.28); }
.modal::backdrop { background: rgba(17,27,20,.48); backdrop-filter: blur(3px); }
.modal-head, .modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; }
.modal-head { border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; }
.modal-body { padding: 20px; }
.modal-body.stack-lg { margin: 0; }
.modal-actions { justify-content: flex-end; border-top: 1px solid var(--line); }
.compact .modal-body { padding-bottom: 8px; }

.toast-region { position: fixed; z-index: 100; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); left: 14px; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { max-width: 420px; padding: 11px 16px; color: #fff; background: #26322b; border-radius: 10px; box-shadow: var(--shadow); font-size: 13px; animation: toast-in .2s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (min-width: 720px) {
  .content { padding: 28px 26px 60px; }
  .stats-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .toolbar-card { padding: 20px; }
  .provider-card { padding: 20px; }
  .provider-row { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
  .provider-metrics { grid-column: auto; min-width: 340px; }
  .provider-message { grid-column: 1 / -1; }
  .provider-actions { grid-column: auto; }
  .filter-row { grid-template-columns: minmax(240px, 1fr) 150px auto; }
  .filter-row button { grid-column: auto; }
  .batch-actions { width: auto; margin-left: auto; display: flex; }
  .cards-list { display: table; width: 100%; margin-top: 14px; background: #fff; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .card-row { display: table-row; padding: 0; border: 0; border-radius: 0; }
  .card-row::after { content: ""; position: absolute; }
  .card-row > .card-select { position: static; display: table-cell; margin: 20px; vertical-align: middle; }
  .card-main { display: table-cell; width: 35%; padding: 17px 12px 17px 0; vertical-align: middle; }
  .card-meta { display: table-cell; vertical-align: middle; }
  .meta-item { display: inline-block; width: 31%; padding: 17px 8px; vertical-align: middle; }
  .card-row > .status { display: table-cell; width: 90px; margin: 0; padding: 17px 10px; border-radius: 0; vertical-align: middle; background: transparent; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

.log-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.log-row strong { display: block; margin-bottom: 4px; }
.log-row p { margin: 0; }
#generated-codes { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; line-height: 1.6; }
.workbench-demo-phone strong { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }
@media (max-width: 719px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tutorial-entry { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; color: var(--primary); background: var(--primary-soft); border: 1px solid #cfe4d5; border-radius: 11px; font-size: 14px; font-weight: 750; text-decoration: none; }
.tutorial-entry:hover { background: #d9ecdf; }
.tutorial-body { min-height: 100svh; padding: 28px 18px 52px; color: #e5e7eb; background: #121826; }
.tutorial-page { width: min(100%, 900px); margin: 0 auto; }
.tutorial-header { padding: 10px 0 26px; }
.tutorial-back { display: inline-flex; align-items: center; min-height: 36px; margin-bottom: 34px; color: #a7b5c9; font-size: 13px; text-decoration: none; }
.tutorial-back:hover, .tutorial-inline-link:hover { color: #93c5fd; }
.tutorial-eyebrow, .tutorial-kicker { margin: 0 0 7px; color: #93c5fd; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tutorial-header h1 { max-width: 700px; margin-bottom: 10px; color: #f9fafb; font-size: clamp(30px, 6vw, 48px); letter-spacing: 0; }
.tutorial-header > p:last-child { margin: 0; color: #9ca9bb; font-size: 15px; }
.tutorial-notice, .tutorial-warning { display: flex; gap: 13px; align-items: flex-start; padding: 17px 18px; border-radius: 12px; line-height: 1.7; }
.tutorial-notice { margin-bottom: 28px; color: #fef3c7; background: #3b341f; border: 1px solid #665323; border-left: 4px solid #fbbf24; }
.tutorial-notice strong, .tutorial-warning strong { display: block; margin-bottom: 3px; color: #fcd34d; }
.tutorial-notice p, .tutorial-warning p { margin: 0; }
.tutorial-section { padding: 28px 0; border-top: 1px solid #293448; }
.tutorial-section-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.tutorial-section-heading > span { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; color: #111827; background: #93c5fd; border-radius: 9px; font-size: 12px; font-weight: 850; }
.tutorial-section-heading h2 { margin: 0; color: #f3f4f6; font-size: 23px; }
.tutorial-tools, .tutorial-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tutorial-tools li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 16px; background: #1b2535; border: 1px solid #2d3a4d; border-radius: 10px; }
.tutorial-tool-mark { display: grid; place-items: center; width: 31px; height: 31px; color: #bfdbfe; background: #243a5b; border-radius: 8px; font-size: 11px; font-weight: 800; }
.tutorial-tools strong, .tutorial-tools small { display: block; }
.tutorial-tools strong { color: #f3f4f6; font-size: 15px; }
.tutorial-tools small { margin-top: 3px; color: #9ca9bb; font-size: 12px; }
.tutorial-tools a, .tutorial-inline-link { color: #60a5fa; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.tutorial-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 15px; padding: 19px; background: #1b2535; border: 1px solid #2d3a4d; border-radius: 10px; }
.tutorial-step-number { display: grid; place-items: center; width: 34px; height: 34px; color: #dbeafe; background: #263f64; border-radius: 50%; font-size: 15px; font-weight: 850; }
.tutorial-step h3 { margin: 1px 0 7px; color: #e5e7eb; font-size: 17px; }
.tutorial-step p { margin: 0 0 10px; color: #b5c0cf; line-height: 1.8; }
.tutorial-step-complete { border-color: #315e53; background: #172d2d; }
.tutorial-step-complete .tutorial-step-number { color: #bbf7d0; background: #1f604d; }
.tutorial-warning { margin-top: 16px; color: #fecaca; background: #451a1a; border: 1px solid #6b2929; border-left: 4px solid #f87171; }
.tutorial-warning strong { color: #fca5a5; }
.tutorial-warning-icon { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 auto; color: #450a0a; background: #f87171; border-radius: 50%; font-weight: 900; }
.tutorial-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 28px; padding: 0 18px; color: #111827; background: #93c5fd; border-radius: 10px; font-size: 14px; font-weight: 800; text-decoration: none; }
.tutorial-cta:hover { background: #bfdbfe; }
@media (max-width: 560px) {
  .tutorial-body { padding: 18px 14px 36px; }
  .tutorial-header h1 { font-size: 31px; }
  .tutorial-tools li { grid-template-columns: auto minmax(0, 1fr); }
  .tutorial-tools a { grid-column: 2; }
}

.workbench-reacquire { margin-top: 10px; color: #5d50dc; background: #f3f1ff; border: 1px solid #d9d2ff; box-shadow: none; }
.workbench-wait-hint { margin: 12px 0 0; color: #77798a; font-size: 13px; text-align: center; }

.wait-spinner { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: 2px solid #d9d2ff; border-top-color: #5d50dc; border-radius: 50%; animation: wait-spin .8s linear infinite; }
@keyframes wait-spin { to { transform: rotate(360deg); } }

.workbench-acquire-modal { width: min(calc(100% - 32px), 360px); margin: auto; padding: 0; color: #343552; background: #fff; border: 0; border-radius: 18px; box-shadow: 0 22px 70px rgba(24, 25, 62, .24); }
.workbench-acquire-modal::backdrop { background: rgba(27, 28, 54, .42); backdrop-filter: blur(3px); }
.workbench-acquire-content { display: grid; justify-items: center; gap: 10px; padding: 30px 24px 27px; text-align: center; }
.workbench-acquire-content h2 { margin: 0; color: #383866; font-size: 19px; }
.workbench-acquire-content p { margin: 0; color: #77798a; font-size: 13px; line-height: 1.55; }
.workbench-acquire-spinner { width: 34px; height: 34px; border: 3px solid #e4e0ff; border-top-color: #6754df; border-radius: 50%; animation: acquire-spin .8s linear infinite; }
@keyframes acquire-spin { to { transform: rotate(360deg); } }

