:root {
  --ink: #273342; --muted: #687589; --faint: #f5f7fa; --line: #e5eaf1;
  --teal: #2670ef; --teal-dark: #1958cb; --teal-soft: #edf4ff;
  --amber: #a36d19; --amber-soft: #fff7e8; --red: #c64d57; --red-soft: #fff0f1;
  --green: #249b80; --white: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 13px; color: var(--ink); background: #f6f8fc;
  font-synthesis: none; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; letter-spacing: 0; }
.service-account { display: flex; flex-direction: column; width: 100%; max-width: 1020px; min-height: calc(100vh - 92px); margin-inline: auto; }
.service-heading, .service-identity, .service-wallet, .service-table-heading, .service-update-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.service-heading { flex-shrink: 0; padding: 10px 0 18px; border-bottom: 1px solid var(--line); }
.service-message { min-height: 28px; padding: 8px 0; color: var(--muted); overflow-wrap: anywhere; }
.service-message:empty { display: none; }
.service-message[data-error="true"] { color: var(--red); }
.service-auth { display: grid; flex: 1; place-items: center; padding: 32px 0 40px; }
.service-auth-content { width: min(360px, 100%); }
.service-auth-heading { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 26px; }
.service-auth-heading img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.service-auth-heading h3 { font-size: 21px; font-weight: 600; text-align: center; line-height: 1.5; }
.service-auth-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 26px; border: 1px solid #e4e8ee; border-radius: 7px; background: #edf0f5; }
.service-auth-modes button { height: 34px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; }
.service-auth-modes button:hover { color: var(--ink); }
.service-auth-modes button[aria-selected="true"] { border-color: #e3e7ed; background: #fff; color: var(--ink); box-shadow: 0 1px 3px #2733420a; }
.service-auth-field + .service-auth-field { margin-top: 20px; }
.service-auth .field-label { margin-bottom: 8px; font-size: 12px; color: var(--ink); }
.service-auth .text-input { height: 44px; font-size: 13px; background: #fff; }
.service-auth .input-leading-icon { top: 14px; color: #8d99a9; }
.service-password-input .text-input { padding-right: 44px; }
.service-password-input .icon-button { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; color: var(--muted); }
.service-password-input .icon-button svg { width: 16px; height: 16px; }
.service-auth-message { min-height: 34px; padding: 8px 0; color: var(--muted); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.service-auth-message[data-error="true"] { color: var(--red); }
#service-auth-submit { width: 100%; min-height: 44px; gap: 10px; font-size: 13px; }
#service-auth-submit[aria-busy="true"] svg { animation: service-submit-spin 1s linear infinite; }
@keyframes service-submit-spin { to { transform: rotate(360deg); } }
#service-member { flex: 1; padding-top: 24px; }
.service-identity { padding: 8px 0 24px; }
.service-identity strong { display: block; font-size: 16px; overflow-wrap: anywhere; }
.service-identity span { display: block; padding-top: 6px; color: var(--muted); font-size: 12px; }
.service-wallet { min-height: 112px; padding: 24px 0; border-block: 1px solid var(--line); }
.service-wallet > div > span { display: block; color: var(--muted); }
.service-wallet strong { display: block; padding-top: 8px; font-size: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.service-wallet-actions, .service-update-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.service-rate { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.service-table-heading { margin-top: 22px; padding: 12px 0; }
.service-table-heading > span { color: var(--muted); font-size: 12px; }
.service-table-scroll { overflow-x: auto; }
.service-table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 12px; }
.service-table th { color: var(--muted); font-weight: 500; text-align: left; background: var(--faint); }
.service-table td, .service-table th { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.service-table td:first-child { max-width: 250px; overflow: hidden; text-overflow: ellipsis; }
.service-positive { color: var(--green); }
.service-negative { color: var(--red); }
.service-update-row { flex-shrink: 0; margin-top: 28px; padding: 16px 0 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.service-auth:not(.hidden) ~ .service-update-row { margin-top: 0; }
.service-update-info { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-width: 0; }
.service-update-info h3 { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 500; }
.service-update-info h3 svg { width: 15px; height: 15px; color: #8d99a9; }
.service-update-info > span { color: var(--muted); font-size: 11px; line-height: 1.6; }
#service-update-status[data-state="current"] { color: #30816c; }
.service-announcements article { padding: 16px 0; border-top: 1px solid var(--line); }
.service-announcements p { margin-top: 8px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.service-recharge-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 1px solid var(--line); border-radius: 8px; padding: 24px; color: var(--ink); }
.service-recharge-dialog::backdrop { background: #18223866; }
.service-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; padding: 22px 0 8px; }
.service-package { padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-align: left; min-height: 126px; }
.service-package:hover, .service-package[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-soft); }
.service-package strong, .service-package span, .service-package small { display: block; }
.service-package strong { margin: 12px 0 6px; font-size: 22px; }
.service-package small { color: var(--muted); line-height: 1.5; overflow-wrap: anywhere; }
#service-payment { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 18px 0 0; border-top: 1px solid var(--line); }
#service-payment-qr { display: block; object-fit: contain; width: 200px; height: 200px; }
@media (max-width: 700px) { .service-auth { padding: 28px 0 32px; } .service-auth-heading { gap: 12px; margin-bottom: 22px; } .service-update-row { gap: 10px; } .service-update-info { gap: 6px 10px; } .service-wallet { align-items: flex-end; } .service-table-heading { flex-wrap: wrap; } .service-wallet strong { font-size: 28px; } .service-recharge-dialog { padding: 18px; } }
@media (max-height: 760px) and (min-width: 721px) { .service-auth { padding: 24px 0 28px; } .service-auth-heading { gap: 12px; margin-bottom: 20px; } .service-auth-modes { margin-bottom: 20px; } }
body { margin: 0; min-width: 360px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a { transition: background .15s, border-color .15s, color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #a3c6ff; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .45; }
input, textarea, select { min-width: 0; }
input::placeholder, textarea::placeholder { color: #99a4b6; opacity: 1; }
textarea { resize: vertical; }
svg { width: 18px; height: 18px; flex: 0 0 auto; stroke-width: 1.75; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; font-weight: 650; line-height: 1.4; }
h2 { font-size: 16px; font-weight: 600; line-height: 1.5; }
h3 { font-size: 14px; font-weight: 600; line-height: 1.5; }
a { color: var(--teal); text-decoration: none; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; width: 222px; padding: 27px 16px 20px; display: flex; flex-direction: column; background: #f0f5fc; border-right: 1px solid #e0e8f3; }
.brand-lockup-main { display: flex; align-items: center; gap: 11px; padding: 0 8px; }
.brand-mark { display: block; flex: 0 0 40px; width: 40px; height: 40px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 10px #2478f31a; }
.brand-lockup strong { display: block; font-size: 17px; font-weight: 650; }
.brand-lockup-main span { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); }
.brand-switcher-wrap { position: relative; margin: 29px 0 23px; padding: 12px 10px; border: 1px solid #dce6f4; border-radius: 7px; background: #ffffffb3; }
.brand-switcher-wrap > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; }
.workspace-switcher { border: 0; outline: none; color: #51647f; background: transparent; max-width: 155px; height: 31px; padding: 0 21px 0 0; font-size: 12px; text-overflow: ellipsis; cursor: pointer; }
.workspace-switcher:focus-visible { outline: 2px solid #a3c6ff; outline-offset: 3px; border-radius: 3px; }
.brand-switcher-wrap .workspace-switcher { width: 100%; max-width: none; font-weight: 500; height: 24px; }
.brand-add-shortcut { position: absolute; right: 7px; top: 5px; width: 24px !important; height: 24px !important; color: #8398b4 !important; }
.brand-add-shortcut svg { width: 14px; height: 14px; }
.nav-list { display: flex; flex-direction: column; gap: 5px; }
.nav-divider { height: 1px; margin: 13px 10px; background: #dfe7f3; }
.nav-item { display: flex; align-items: center; gap: 12px; border: 0; border-radius: 6px; min-height: 45px; padding: 11px 14px; background: transparent; color: #687e9c; text-align: left; font-size: 14px; }
.nav-item svg { width: 19px; height: 19px; }
.nav-item:hover { background: #e5edf9; color: #35649f; }
.nav-item.active { color: #fff; font-weight: 500; background: #2b75ef; box-shadow: 0 4px 10px #2775ef12; }
.main-content { margin-left: 222px; min-width: 0; flex: 1; padding: 0 30px 32px; }
.topbar { position: sticky; top: 0; z-index: 4; height: 60px; margin: 0 -30px; padding: 0 30px; display: flex; align-items: center; gap: 16px; background: #fff; border-bottom: 1px solid var(--line); }
.global-search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 32px; max-width: 220px; padding: 8px 0; background: transparent; border: 0; color: #91a1b8; text-align: left; font-size: 12px; }
.global-search > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search kbd { flex-shrink: 0; margin-left: auto; color: #9aaac0; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 10px; background: #fff; }
.topbar-actions { display: flex; align-items: center; flex-shrink: 0; gap: 12px; margin-left: auto; }
.workspace-switchers { border-left: 1px solid var(--line); padding-left: 15px; }
.workspace-switchers label { display: flex; align-items: center; gap: 8px; }
.mini-avatar { display: inline-grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; object-fit: cover; border-radius: 7px; color: #3480f1; background: #eaf2ff; font-size: 18px; font-weight: 600; }
.save-state { width: 115px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; color: #8b9bb1; white-space: nowrap; }
.save-state::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: #35ac94; vertical-align: middle; }
.save-state[data-state="dirty"] { color: #956812; }
.save-state[data-state="dirty"]::before { background: #dba340; }
.page-actions { display: flex; gap: 9px; align-items: center; flex-shrink: 0; padding-left: 16px; border-left: 1px solid var(--line); }
.page-actions:not(:has(> :not(.hidden))) { display: none; }
.view { padding-top: 20px; }
.button { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; border: 1px solid transparent; border-radius: 6px; padding: 8px 13px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.button svg { width: 16px; height: 16px; }
.button.primary { background: var(--teal); color: #fff; box-shadow: 0 2px 4px #246ff010; }
.button.primary:hover { background: var(--teal-dark); }
.button.secondary { background: #fff; border-color: #dce4ef; color: #5d7390; }
.button.secondary:hover { border-color: #a9c5ed; color: var(--teal); background: #f9fbff; }
.button.compact { min-height: 32px; padding: 6px 11px; font-size: 11px; }
.icon-button, .browser-icon, .browser-zoom-button { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 auto; width: 31px; height: 31px; padding: 5px; border: 0; border-radius: 5px; background: transparent; color: #87a0bf; }
.icon-button:hover, .browser-icon:hover, .browser-zoom-button:hover { background: #eaf1fc; color: var(--teal); }
.icon-button.danger:hover { background: var(--red-soft); color: var(--red); }
.button:active:not(:disabled), .icon-button:active:not(:disabled) { box-shadow: inset 0 1px 3px #1c355421; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 0; border: 0; background: transparent; color: #5186da; font-size: 11px; white-space: nowrap; }
.text-button svg { width: 14px; height: 14px; }
.text-button:hover { color: var(--teal-dark); }
.panel { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.panel-heading, .aside-heading, .form-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.panel-heading > svg { color: #90a8c9; }
.icon-heading, .icon-label { display: flex; align-items: center; gap: 8px; }
.icon-heading > svg { width: 17px; height: 17px; color: #7489a7; }
.icon-label > svg { width: 14px; height: 14px; color: #8392a7; }
.field-label { display: block; margin: 0 0 9px; color: #506074; font-size: 12px; font-weight: 500; }
.field-label.icon-label, .field-label.icon-heading { display: flex; }
.text-input { display: block; width: 100%; min-height: 41px; border: 1px solid #dae3ef; border-radius: 6px; padding: 10px 12px; background: #fff; color: #354457; outline: none; font-size: 13px; transition: border-color .15s, box-shadow .15s; }
.text-input:hover { border-color: #b8cbe5; }
.text-input:focus { border-color: #6c9eef; box-shadow: 0 0 0 3px #2670ef0c; }
.text-input:disabled { color: #8796ab; background: #fafbfd; }
.input-with-leading { position: relative; }
.input-with-leading > .input-leading-icon { position: absolute; z-index: 1; left: 12px; top: 13px; width: 16px; height: 16px; color: #8c9aae; pointer-events: none; }
.input-with-leading > .text-input { padding-left: 38px; }
.input-with-leading:focus-within > .input-leading-icon { color: var(--teal); }
.input-with-leading:has(input:disabled) > .input-leading-icon { opacity: .45; }
textarea.text-input { line-height: 1.9; }
select.text-input { cursor: pointer; }
.form-grid, .two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.full-width { grid-column: 1 / -1; }
.field-help, .helper-text, .subtle-label, .panel-caption { color: var(--muted); font-size: 11px; line-height: 1.8; }
.field-help { margin-top: 9px; }
.field-help code { color: #5987c4; font-family: inherit; background: #eff5ff; border-radius: 3px; padding: 1px 4px; }
.form-panel { min-width: 0; padding: 26px; background: #fff; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding-top: 19px; border-top: 1px solid var(--line); }
.form-actions-buttons { display: flex; align-items: center; gap: 8px; }
.form-actions:has(> .helper-text:empty):not(:has(button)) { display: none; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .85fr); gap: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: clip; }
.settings-layout > .form-panel { padding: 26px 4px 26px 26px; }
.preview-aside { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); margin: 26px 0; padding: 0 26px; }
.aside-heading h2 { font-size: 15px; }
.status-badge, .count-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 4px; background: #f2f4f7; color: #68778c; font-size: 10px; font-weight: 400; white-space: nowrap; }
.status-badge.enabled { background: #eaf8f3; color: var(--green); }
.status-badge[data-state="error"] { background: var(--red-soft); color: var(--red); }
.status-badge[data-state="pending"] { background: var(--amber-soft); color: var(--amber); }
.aside-footer { display: flex; align-items: flex-start; gap: 9px; margin-top: auto; padding-top: 24px; color: #8a9fb9; font-size: 11px; line-height: 1.7; }
.aside-footer svg { width: 16px; height: 16px; margin-top: 1px; }
.security-note { display: flex; flex-direction: column; gap: 5px; margin-top: 24px; padding: 15px 17px; background: #f5f7f9; border-radius: 6px; color: #687589; font-size: 11px; line-height: 1.8; }
.security-note strong { display: flex; align-items: center; gap: 6px; color: #52647c; font-weight: 500; }
.security-note strong svg { width: 14px; height: 14px; }
.view-tabs { display: flex; gap: 25px; border-bottom: 1px solid #e0e7f0; margin-bottom: 22px; }
.view-tab { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; background: transparent; color: #697789; padding: 0 3px 13px; border: 0; border-bottom: 2px solid transparent; font-size: 12px; }
.view-tab svg { width: 16px; height: 16px; }
.view-tab:hover { color: var(--teal); }
.view-tab.active { border-bottom-color: var(--teal); color: var(--teal); font-weight: 500; }
#brand-form .form-grid > div:has(#brand-positioning), #brand-form .form-grid > div:has(#brand-audience) { grid-column: 1 / -1; }
#brand-form .form-grid > div:has(#brand-problems), #brand-form .form-grid > div:has(#brand-advantages) { grid-column: auto; }
#brand-form textarea { min-height: 100px; }
.brand-preview-identity { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.brand-preview-mark { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border: 1px solid #d4e4ff; border-radius: 8px; background: #eaf2ff; color: #4d85d9; font-size: 24px; font-weight: 600; }
.brand-preview-identity h3 { font-size: 15px; overflow-wrap: anywhere; }
.brand-preview-identity span { display: block; color: #94a5bb; margin-top: 5px; font-size: 10px; }
.preview-positioning { color: var(--muted); font-size: 12px; line-height: 1.9; }
.preview-group { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.preview-group > p { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 12px; }
.brand-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { padding: 4px 7px; border: 1px solid #e5eefc; border-radius: 4px; background: #f2f6fc; color: #5e7696; font-size: 10px; line-height: 1.5; }
.asset-library-panel { padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.asset-upload-row { display: flex; align-items: center; gap: 12px; }
.asset-upload-label { cursor: pointer; }
.asset-upload-input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.asset-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 22px; }
.asset-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 245px; padding: 26px 20px; text-align: center; color: var(--muted); font-size: 11px; border: 1px dashed #d4dfed; border-radius: 6px; background: #fbfcfe; }
.asset-empty strong { color: #52647c; font-size: 13px; font-weight: 500; }
.asset-empty .button { margin-top: 4px; }
.asset-card { overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.asset-preview { width: 100%; height: 150px; object-fit: cover; background: var(--faint); }
.asset-card-body { padding: 12px; }
.asset-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.asset-id-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 10px; }
.console-search-strip { display: flex; align-items: center; gap: 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; margin-bottom: 20px; }
.console-search-row { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 180px; padding: 3px 4px 3px 12px; border: 1px solid #dce5f2; border-radius: 6px; }
.console-search-row > svg { color: #94abc9; width: 17px; height: 17px; }
.console-search-row .text-input { min-height: 30px; padding: 4px 0; border: 0; box-shadow: none; background: transparent; }
.console-search-row:focus-within { border-color: #6c9eef; box-shadow: 0 0 0 3px #2670ef0c; }
.console-shortcuts { display: flex; align-items: center; gap: 12px; }
.shortcut-button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #8095b2; padding: 7px 0; white-space: nowrap; font-size: 10px; }
.shortcut-button svg { width: 15px; height: 15px; color: #7fa6e0; }
.shortcut-button:hover { color: var(--teal); }
.console-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.console-sidebar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.console-account, .console-acquisition { display: none; }
.console-section { background: #fff; }
.console-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 17px 19px; border-bottom: 1px solid var(--line); color: #405674; font-size: 13px; font-weight: 600; }
.section-title { display: flex; align-items: center; gap: 8px; }
.section-title > svg { width: 17px; height: 17px; color: #7492bc; }
.console-question-list { display: grid; overflow-y: auto; max-height: 240px; min-height: 138px; }
.console-question-item { position: relative; border-bottom: 1px solid #edf0f5; padding: 14px 18px; }
.console-question-item:last-child { border-bottom: 0; }
.console-question-item.active { background: #f1f6ff; box-shadow: inset 3px 0 #548ff1; }
.console-question-title { display: block; font-size: 12px; color: #4b6485; font-weight: 500; line-height: 1.7; }
.question-select-button { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; }
.question-select-button:hover { color: var(--teal); }
.button.has-changes::after { content: ""; position: absolute; right: 5px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: #ffd37a; }
.console-question-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; color: #9aabc1; font-size: 10px; }
.console-question-actions { display: flex; align-items: center; gap: 5px; }
.console-question-actions .icon-button { width: 26px; height: 26px; }
.console-question-actions .icon-button svg { width: 13px; height: 13px; }
.question-state { display: inline-flex; align-items: center; gap: 5px; color: #7d889a; }
.question-state svg { width: 12px; height: 12px; }
.question-state.ready { color: #268c78; }
.console-question-actions .small-button { font-size: 10px; padding: 3px 6px; }
.console-question-empty { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; padding: 23px 20px; min-height: 145px; text-align: center; color: #7c8da5; font-size: 11px; line-height: 1.8; }
.empty-illustration { position: relative; width: 116px; height: 80px; flex: 0 0 80px; display: grid; place-items: center; margin-bottom: 1px; }
.empty-illustration > .illustration-main { width: 70px; height: 70px; fill: #f0f5fd; color: #9ab4dc; stroke-width: 1.1; transform: translateX(-8px) rotate(-7deg); }
.illustration-detail { position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #dce8e6; border-radius: 8px; background: #fff; color: #4b9c8c; box-shadow: 0 3px 6px #34495e08; transform: rotate(5deg); }
.illustration-detail svg { width: 23px; height: 23px; stroke-width: 1.4; }
.empty-illustration.automation .illustration-detail { color: #b38a42; border-color: #eee6d7; }
.console-question-empty strong { font-weight: 500; color: #52647c; font-size: 12px; }
.console-draft-section { display: flex; flex: 1; flex-direction: column; min-height: 310px; }
#console-question-select { width: calc(100% - 38px); margin: 15px 19px 0; min-height: 31px; padding: 5px 8px; font-size: 11px; background: #fafcff; }
.console-draft-text { min-height: 170px; flex: 1; resize: vertical; border: 0; padding: 18px 20px; border-radius: 0; font-size: 13px; line-height: 2; box-shadow: none !important; }
.console-draft-text:disabled { background: #fff; }
.console-draft-assets { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 19px; }
.console-draft-asset { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); padding: 3px 5px; background: var(--teal-soft); border-radius: 4px; }
.console-draft-asset img { width: 25px; height: 25px; object-fit: cover; border-radius: 3px; }
.console-draft-actions { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.draft-word-count { margin-right: auto; color: #94a5bc; font-size: 10px; }
.console-status { color: #8b9cb3; font-size: 10px; line-height: 1.7; min-height: 18px; overflow-wrap: anywhere; }
.browser-panel { display: flex; flex-direction: column; overflow: hidden; min-width: 0; min-height: 590px; }
.browser-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.browser-panel-heading > div { display: flex; align-items: center; gap: 8px; }
.browser-panel-heading strong { font-size: 13px; font-weight: 600; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #35ad93; }
.browser-toolbar { display: flex; align-items: center; gap: 5px; min-height: 45px; padding: 7px 10px; background: #f8faff; border-bottom: 1px solid var(--line); }
.browser-controls { display: flex; gap: 0; }
.browser-icon { width: 23px; height: 25px; padding: 3px; }
.browser-icon svg { width: 14px; height: 14px; }
.browser-address { min-width: 0; width: 100%; height: 27px; outline: none; border: 1px solid #e1e9f4; border-radius: 4px; padding: 3px 8px; background: #fff; font-size: 10px; color: #91a6c3; }
.browser-address:focus { border-color: #89b0ee; }
.browser-page-title { display: none; }
.browser-zoom { display: flex; align-items: center; flex-shrink: 0; color: #90a4be; font-size: 9px; }
.browser-zoom-button { width: 21px; height: 24px; padding: 3px; }
.browser-zoom-button svg { width: 12px; height: 12px; }
.browser-zoom span { min-width: 29px; text-align: center; }
webview { display: flex; min-height: 0; width: 100%; flex: 1; border: 0; }
.browser-fallback { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 25px 54px; min-height: 440px; background: #fff; text-align: center; }
.fallback-monogram { display: block; width: 70px; height: 70px; object-fit: cover; border-radius: 8px; margin-bottom: 24px; }
.browser-fallback h2 { color: #587393; font-size: 17px; font-weight: 500; }
.browser-fallback > p { margin-top: 10px; color: #97a8bd; font-size: 11px; }
.fallback-divider { width: 38px; border-top: 1px solid #dce7f6; margin: 27px 0; }
.fallback-account { display: flex; align-items: center; gap: 10px; text-align: left; margin-bottom: 23px; }
.fallback-account strong { display: block; font-size: 11px; color: #65809e; font-weight: 500; }
.fallback-account div > span { display: block; margin-top: 5px; font-size: 10px; color: #a3b1c3; }
.browser-footer { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 12px 17px; color: #a1b0c4; font-size: 10px; }
.setting-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 25px; margin-bottom: 25px; }
.setting-switch-row .field-label { color: #3e5674; font-size: 14px; font-weight: 600; }
.switch-control { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; cursor: pointer; }
.switch-control input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { display: inline-flex; position: relative; width: 36px; height: 21px; padding: 3px; border-radius: 20px; background: #ccd6e4; transition: background .2s; }
.switch-thumb { width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #26354b14; transition: transform .2s; }
.switch-control input:checked + .switch-track { background: var(--teal); }
.switch-control input:checked + .switch-track .switch-thumb { transform: translateX(15px); }
.switch-control input:focus-visible + .switch-track { outline: 3px solid #b3d0ff; outline-offset: 3px; }
.switch-label { font-size: 10px; color: #90a2bb; }
.checkbox-control { display: inline-flex; align-items: center; gap: 8px; color: #718bad; font-size: 11px; cursor: pointer; line-height: 1.7; }
.checkbox-control input { width: 15px; height: 15px; margin: 0; accent-color: #4a87ef; flex-shrink: 0; }
.leadgen-fields.is-disabled { opacity: 1; }
.leadgen-layout { min-height: 590px; }
#leadgen-copy { min-height: 155px; }
.leadgen-preview .aside-heading { margin-bottom: 26px; }
.answer-preview { border: 1px solid #e4ebf5; border-radius: 7px; padding: 20px 17px; }
.preview-author { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 10px; color: #7f96b5; }
.preview-author .mini-avatar { width: 24px; height: 24px; flex-basis: 24px; font-size: 15px; }
.answer-preview h3 { color: #567294; font-size: 12px; margin-bottom: 14px; }
.answer-preview > p { color: #91a3bd; font-size: 11px; line-height: 1.9; }
.preview-text-lines { display: grid; gap: 7px; margin-top: 12px; }
.preview-text-lines span { height: 4px; border-radius: 3px; background: #edf2f9; }
.preview-text-lines span:last-child { width: 64%; }
.answer-handoff { border-top: 1px solid var(--line); margin-top: 23px; padding-top: 20px; }
.answer-handoff > p { font-size: 10px; line-height: 1.8; color: #8299b8; overflow-wrap: anywhere; }
.answer-handoff.disabled { opacity: .5; }
.preview-link { display: flex; align-items: center; gap: 9px; margin-top: 14px; padding: 10px; border: 1px solid #dde9ff; background: #f7faff; border-radius: 5px; color: #7da1d4; }
.preview-link > svg { width: 16px; height: 16px; }
.preview-link > span { min-width: 0; flex: 1; }
.preview-link strong { display: block; font-size: 10px; font-weight: 500; overflow-wrap: anywhere; }
.preview-link small { display: block; font-size: 9px; color: #a2b7d2; margin-top: 4px; overflow-wrap: anywhere; }
.preview-link[aria-disabled="true"] { pointer-events: none; }
.preview-caption { display: block; text-align: right; font-size: 9px; color: #a9b7c9; margin-top: 8px; }
.status-list { margin: 22px 0 0; }
.status-list > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; border-bottom: 1px solid #edf1f7; padding: 17px 0; font-size: 11px; line-height: 1.7; }
.status-list dt { color: #91a3be; flex-shrink: 0; }
.status-list dd { margin: 0; color: #6480a4; text-align: right; overflow-wrap: anywhere; }
#automation-form { padding: 0; background: transparent; }
#automation-form > .setting-switch-row { padding: 23px 25px; border: 1px solid var(--line); background: #fff; border-radius: 8px; margin-bottom: 22px; }
#automation-form .field-label:has(svg) { display: flex; align-items: center; gap: 10px; }
#automation-form .field-label > svg { color: #5c92e7; width: 21px; height: 21px; }
.automation-steps { display: flex; align-items: center; gap: 16px; margin-left: auto; color: #92a9c6; font-size: 10px; }
.automation-steps span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.automation-steps > svg { width: 12px; height: 12px; color: #bbcce1; }
.automation-steps span svg { width: 15px; height: 15px; }
.automation-columns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .9fr); gap: 22px; }
.automation-config, .automation-log-panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 25px; }
.readonly-input { min-height: 41px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid #e3ebf6; border-radius: 6px; background: #f7f9fd; color: #96a8c1; font-size: 11px; }
.readonly-input svg { width: 15px; height: 15px; }
#automation-search-topics { min-height: 170px; }
.automation-log-panel { display: flex; flex-direction: column; }
.automation-log { display: grid; gap: 7px; max-height: 360px; overflow-y: auto; }
.automation-log-empty { min-height: 245px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; color: #98a9c0; font-size: 11px; text-align: center; }
.automation-log-empty strong { color: #718bad; font-size: 13px; font-weight: 500; }
.automation-log-entry { display: grid; gap: 5px; border-left: 2px solid #a6c8f8; padding: 9px 12px; background: #f6f9fe; font-size: 11px; line-height: 1.7; color: #627c9d; overflow-wrap: anywhere; }
.automation-log-entry time { color: #98a9bf; font-size: 10px; }
.automation-log-entry.warn { border-color: #e3b35c; background: var(--amber-soft); }
.automation-log-entry.error { border-color: #d98289; background: var(--red-soft); }
.preflight { margin-top: auto; border-top: 1px solid var(--line); padding-top: 20px; }
.preflight-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 13px; font-size: 10px; color: #8b9eb8; }
.preflight-row > span:first-child { display: flex; align-items: center; gap: 6px; }
.preflight-row svg { width: 13px; height: 13px; color: #4cbaa3; }
.preflight-row .pending-icon { color: #d0a259; }
.preflight-row > span:last-child { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-admin-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr); gap: 22px; }
.workspace-column { display: flex; min-width: 0; flex-direction: column; min-height: 570px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 25px; }
.workspace-list { display: grid; gap: 12px; }
.workspace-list-item { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #e4eaf3; border-radius: 6px; padding: 19px; background: #fff; }
.workspace-list-item.active { border-color: #bfd6fb; background: #f7faff; }
.workspace-list-item strong { display: block; font-weight: 500; font-size: 12px; overflow-wrap: anywhere; }
.workspace-list-item span:not(.account-avatar) { display: block; color: #94a8c3; font-size: 10px; margin-top: 6px; }
.workspace-list-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.workspace-list-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.workspace-list-identity > div { min-width: 0; }
.profile-avatar { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border: 1px solid #d3e9e4; border-radius: 8px; background: #eef8f5; color: #458f80; }
.profile-avatar svg { width: 22px; height: 22px; }
.account-avatar { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; margin: 0; background: #e6efff; color: #4086ef; border: 1px solid #d6e6ff; border-radius: 8px; font-size: 24px; font-weight: 600; }
.account-avatar-image { object-fit: cover; }
.small-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 29px; border: 1px solid #dce6f4; border-radius: 4px; padding: 5px 9px; background: #fff; color: #667c9a; font-size: 10px; white-space: nowrap; }
.small-button svg { width: 13px; height: 13px; }
.small-button:hover { color: var(--teal); border-color: #a9c6ef; background: #f4f8ff; }
.small-button.primary { color: #4d83da; background: #eaf2ff; border-color: #eaf2ff; }
.small-button.in-use:disabled { color: #308774; border-color: transparent; background: transparent; opacity: 1; cursor: default; }
.account-create-panel { padding: 24px 0 0; margin-top: 27px; border-top: 1px solid var(--line); }
.account-create-panel .panel-heading { margin-bottom: 19px; }
.account-create-panel .form-actions { margin-top: 14px; padding-top: 0; border: 0; }
.account-create-panel .button { min-width: 112px; }
.workspace-column .aside-footer { padding-top: 35px; }
#settings-form { border: 1px solid var(--line); border-radius: 8px; }
.provider-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 15px 0 27px; }
.provider-option { display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left; padding: 16px 12px; border: 1px solid #e1e7f1; border-radius: 6px; background: #fff; }
.provider-option.active { border-color: #82acfa; background: #f6faff; box-shadow: 0 0 0 1px #82acfa22; }
.provider-option:hover { border-color: #a1bff0; }
.provider-icon { display: grid; place-items: center; flex: 0 0 33px; height: 33px; border-radius: 6px; background: #f0f5fe; color: #88a8d9; }
.provider-icon svg { width: 20px; height: 20px; }
.provider-option > span:nth-child(2) { min-width: 0; }
.provider-option strong { display: block; font-size: 12px; color: #43556e; font-weight: 500; }
.provider-option small { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); line-height: 1.5; }
.radio-dot { flex: 0 0 12px; height: 12px; border: 1px solid #d8e3f3; border-radius: 50%; margin-left: auto; }
.provider-option.active .radio-dot { background: #fff; border: 4px solid #548bef; }
.api-layout { border: 0; border-radius: 0; gap: 27px; grid-template-columns: minmax(0, 1.65fr) minmax(230px, .85fr); overflow: visible; }
.api-config { min-width: 0; }
.api-layout .preview-aside { margin: 0; padding-right: 0; padding-left: 25px; }
.input-with-action { position: relative; }
.input-with-action input { padding-right: 42px; }
.input-with-action .icon-button { position: absolute; right: 5px; top: 5px; }
.connection-result { display: flex; align-items: flex-start; gap: 13px; margin-top: 22px; border: 1px dashed #d5e4fc; border-radius: 6px; background: #f7faff; padding: 22px 19px; color: #7d9dcb; }
.connection-result-icon { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid currentColor; border-radius: 8px; background: #fff; }
.connection-result-icon > svg { width: 19px; height: 19px; }
.connection-result[data-state="pending"] .connection-result-icon > svg { animation: connection-spin 1.2s linear infinite; }
.connection-result[data-state="pending"] { background: #fffaf0; border-color: #ecd6aa; color: var(--amber); }
@keyframes connection-spin { to { transform: rotate(360deg); } }
.connection-result strong { font-size: 12px; font-weight: 500; }
.connection-result p { font-size: 11px; color: #91a8c9; line-height: 1.8; margin-top: 7px; overflow-wrap: anywhere; }
.connection-result.success { background: #f2faf7; border-color: #bce4d8; color: var(--green); }
.connection-result.error { background: #fff6f6; border-color: #efc9ce; color: var(--red); }
.connection-aside .status-list { margin-top: 0; }
.automation-limits { border-top: 1px solid var(--line); padding-top: 16px; }
.automation-limits summary { display: flex; align-items: center; gap: 10px; cursor: pointer; color: #647d9e; list-style: none; font-size: 11px; }
.automation-limits summary::-webkit-details-marker { display: none; }
.automation-limits summary span { margin-left: auto; color: #8fa0b7; font-size: 10px; }
.automation-limits summary svg { width: 14px; height: 14px; }
.automation-limits[open] summary svg { transform: rotate(180deg); }
.automation-limits > .form-grid { margin-top: 19px; }
.security-note, .aside-footer, .answer-preview > p, .answer-handoff > p, .status-list dt, .connection-result p, .workspace-list-item span:not(.account-avatar), .preflight-row, .save-state, .global-search { color: var(--muted); }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 20px; }
.metric-panel { background: #fff; border: 1px solid var(--line); padding: 20px; border-radius: 6px; }
.metric-panel span, .metric-panel small { display: block; color: var(--muted); font-size: 11px; }
.metric-panel strong { display: block; color: var(--teal); font-size: 26px; margin: 12px 0 8px; font-weight: 500; }
.workspace-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.intake-panel, .brand-summary, .question-list-panel { padding: 24px; }
.eyebrow { color: #89a0bd; font-size: 9px; margin-bottom: 7px; }
.intake-panel .two-col { margin-top: 18px; }
.intake-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; }
.brand-name-display { font-size: 17px; color: #5b789d; }
.brand-positioning-display, .brand-value-display { font-size: 12px; line-height: 1.9; color: #8297b3; margin-top: 15px; }
.question-list-panel { margin-top: 20px; }
.question-list { display: grid; gap: 12px; }
.list-filters { display: flex; gap: 7px; }
.filter-button { border: 0; padding: 6px 9px; border-radius: 4px; background: transparent; color: #899db9; font-size: 11px; }
.filter-button.active { background: var(--teal-soft); color: var(--teal); }
.question-row { padding: 18px; border: 1px solid var(--line); border-radius: 6px; }
.question-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.question-title { font-size: 13px; color: #536e92; }
.question-meta { display: flex; flex-wrap: wrap; gap: 7px; font-size: 10px; color: #91a3bd; margin-top: 9px; }
.row-actions, .draft-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.state-badge, .risk-badge { display: inline-flex; padding: 4px 7px; border-radius: 4px; font-size: 10px; white-space: nowrap; }
.state-new { background: #f0f3f8; color: #8494aa; }
.state-draft, .risk-mid { background: var(--amber-soft); color: var(--amber); }
.state-approved, .risk-low { background: #eaf8f3; color: var(--green); }
.risk-high { background: var(--red-soft); color: var(--red); }
.empty-state { padding: 35px; text-align: center; font-size: 12px; color: var(--muted); }
.draft-editor { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 4px; }
.draft-tab { border: 1px solid var(--line); background: #fff; color: #8296b3; padding: 5px 8px; border-radius: 4px; font-size: 10px; }
.draft-tab.active { background: var(--teal-soft); color: var(--teal); border-color: #b8d3fc; }
.draft-text { min-height: 190px; margin-top: 13px; }
.risk-report { padding: 11px; font-size: 10px; line-height: 1.8; background: var(--faint); color: var(--muted); margin-top: 10px; border-radius: 4px; }
.toast { position: fixed; z-index: 30; right: 26px; bottom: 25px; max-width: min(420px, calc(100vw - 32px)); padding: 13px 18px; border: 1px solid #dce6f4; border-radius: 7px; background: #fff; color: #567091; box-shadow: 0 6px 30px #2b4e7b16; opacity: 0; transform: translateY(8px); transition: .18s ease; pointer-events: none; font-size: 12px; line-height: 1.8; }
.toast.show { opacity: 1; transform: translateY(0); }
.search-dialog { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid #dce5f3; border-radius: 8px; color: var(--ink); box-shadow: 0 20px 80px #273d6029; margin-top: 15vh; }
.search-dialog::backdrop { background: #23334c33; backdrop-filter: blur(3px); }
.search-dialog-input { display: flex; align-items: center; gap: 11px; padding: 14px 17px; border-bottom: 1px solid var(--line); color: #96a8bf; }
.search-dialog-input input { flex: 1; min-width: 0; border: 0; outline: none; color: #5d789b; background: transparent; font-size: 13px; }
.search-results { padding: 8px; max-height: 400px; overflow-y: auto; }
.search-result { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 12px; border: 0; border-radius: 5px; text-align: left; background: transparent; color: #6f87a7; font-size: 12px; line-height: 1.7; }
.search-result:hover, .search-result:focus-visible { background: #f0f6ff; color: var(--teal); }
.search-result small { margin-left: auto; color: #a4b2c6; font-size: 10px; white-space: nowrap; }
.search-empty { padding: 24px; text-align: center; color: #8f9fb6; font-size: 12px; }
.ui-tooltip { position: fixed; z-index: 60; max-width: min(240px, calc(100vw - 16px)); padding: 6px 9px; border-radius: 5px; background: #303c4d; color: #fff; font-size: 11px; line-height: 1.6; box-shadow: 0 3px 10px #27334214; pointer-events: none; }
@media (min-width: 1700px) {
  .main-content { padding: 0 40px 38px; } .topbar { margin: 0 -40px; padding: 0 40px; }
  .console-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .browser-panel { min-height: calc(100vh - 289px); } .console-question-list { max-height: 310px; } .console-draft-text { min-height: 265px; }
}
@media (max-width: 1200px) {
  .sidebar { width: 198px; padding-left: 12px; padding-right: 12px; }
  .main-content { margin-left: 198px; padding-left: 22px; padding-right: 22px; }
  .topbar { margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; }
  .brand-lockup strong { font-size: 15px; } .brand-mark { width: 35px; flex-basis: 35px; height: 35px; }
  .global-search { max-width: 190px; } .global-search kbd, .save-state { display: none; }
  .workspace-switchers { border-left: 0; padding-left: 0; } .workspace-switchers .workspace-switcher { max-width: 125px; }
  .console-search-strip { flex-wrap: wrap; gap: 8px; } .console-search-row { flex-basis: 100%; } .console-shortcuts { width: 100%; justify-content: space-between; }
  .settings-layout { gap: 20px; grid-template-columns: minmax(0, 1.5fr) minmax(235px, .9fr); }
  .settings-layout > .form-panel { padding: 22px 0 22px 22px; } .preview-aside { padding: 0 20px; margin: 22px 0; }
  .automation-steps { gap: 10px; } .provider-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .automation-columns { grid-template-columns: minmax(0, 1.3fr) minmax(250px, .9fr); gap: 18px; }
  .automation-config, .automation-log-panel, .workspace-column { padding: 21px; }
  .browser-zoom { display: none; } .api-layout { grid-template-columns: minmax(0, 1.5fr) minmax(200px, .85fr); }
}
@media (max-width: 1000px) {
  .automation-steps { display: none; } .automation-columns, .workspace-admin-grid { grid-template-columns: 1fr; }
  .workspace-column { min-height: 420px; } .automation-log-empty { min-height: 200px; } .preflight { margin-top: 25px; }
  .console-grid { grid-template-columns: minmax(0, 1fr); } .browser-panel { min-height: 560px; } .console-question-list { max-height: 270px; } .browser-zoom { display: flex; }
  .page-actions .button { font-size: 11px; padding: 8px 10px; }
  .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 0; } .settings-layout > .form-panel { padding: 24px; }
  .preview-aside { margin: 0 24px 24px; padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .brand-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .brand-preview .aside-heading, .brand-preview .aside-footer { grid-column: 1 / -1; } .brand-preview .aside-heading { margin: 0; }
  .brand-preview .preview-group { margin: 0; padding-top: 16px; } .brand-preview-identity { margin: 0; }
  .api-layout { gap: 25px; } .api-layout .preview-aside { margin: 0; padding: 24px 0 0; }
  .connection-aside .status-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; } .workspace-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .service-account { min-height: calc(100dvh - 196px); }
  .app-shell { display: block; } .sidebar { position: relative; width: 100%; padding: 17px 16px 0; border-right: 0; border-bottom: 1px solid #e0e8f3; }
  .brand-lockup { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .brand-lockup-main { padding: 0; gap: 9px; flex-shrink: 0; } .brand-lockup strong { font-size: 15px; } .brand-lockup-main span { font-size: 9px; }
  .brand-switcher-wrap { margin: 0; padding: 7px 9px; max-width: 165px; min-width: 0; } .brand-switcher-wrap > span, .brand-add-shortcut { display: none !important; }
  .brand-switcher-wrap .workspace-switcher { font-size: 10px; } .brand-mark { width: 33px; flex-basis: 33px; height: 33px; }
  .nav-list { flex-direction: row; gap: 4px; padding: 15px 0 10px; overflow-x: auto; scrollbar-width: none; }
  .nav-item { flex-shrink: 0; gap: 6px; padding: 8px 10px; min-height: 35px; font-size: 11px; } .nav-item svg { width: 15px; height: 15px; }
  .nav-divider { display: none; } .main-content { margin: 0; padding: 0 16px 25px; }
  .topbar { height: auto; min-height: 53px; flex-wrap: wrap; padding: 10px 16px; margin: 0 -16px; gap: 8px; } .global-search { max-width: none; gap: 7px; font-size: 10px; }
  .global-search svg { width: 16px; height: 16px; } .global-search kbd { display: none; } .topbar-actions { gap: 8px; }
  .workspace-switchers { border: 0; padding: 0; } .workspace-switchers label { gap: 5px; } .workspace-switchers .workspace-switcher { max-width: 106px; font-size: 10px; padding-right: 9px; }
  .mini-avatar { width: 24px; height: 24px; flex-basis: 24px; font-size: 15px; } #export-data { width: 29px; height: 29px; padding: 6px; }
  .page-actions { flex-basis: 100%; justify-content: flex-end; border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; } .page-actions .button { min-height: 35px; font-size: 11px; } .page-actions .button svg { width: 14px; height: 14px; }
  .view { padding-top: 16px; }
  .console-search-strip { padding: 10px; margin-bottom: 15px; } .console-shortcuts { gap: 6px; } .shortcut-button { font-size: 9px; gap: 4px; } .shortcut-button svg { width: 13px; height: 13px; }
  .console-search-row .text-input { font-size: 10px; } .console-grid { gap: 16px; } .console-section-heading { padding: 15px; font-size: 12px; }
  .console-question-title { font-size: 11px; } .console-question-item { padding: 13px 15px; } .console-draft-actions { padding: 12px; gap: 6px; } .console-draft-actions .button { font-size: 10px; padding: 6px 9px; }
  .console-draft-text { min-height: 225px; font-size: 11px; } .browser-panel { min-height: 520px; } .browser-fallback { min-height: 380px; padding: 30px 20px; } .browser-fallback h2 { font-size: 16px; }
  .browser-zoom { display: none; } .browser-footer { font-size: 9px; padding: 12px; } .view-tabs { gap: 12px; margin-bottom: 15px; } .view-tab { gap: 5px; font-size: 11px; padding: 0 0 11px; } .view-tab svg { width: 14px; height: 14px; }
  .form-panel, .settings-layout > .form-panel { padding: 20px 17px; } .form-grid, .two-col { grid-template-columns: 1fr; gap: 19px; } .full-width { grid-column: auto; }
  .field-label, .text-input { font-size: 11px; } .form-section-heading { margin-bottom: 22px; } .form-section-heading .subtle-label { font-size: 9px; } .form-section-heading h2 { font-size: 14px; }
  .preview-aside { margin: 0 17px 20px; padding-top: 23px; } .brand-preview { display: flex; } .brand-preview .aside-footer { padding-top: 5px; }
  .form-actions { flex-wrap: wrap; gap: 12px; } .form-actions-buttons { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; } .helper-text { font-size: 10px; }
  .security-note { font-size: 10px; padding: 13px 14px; } .setting-switch-row { gap: 13px; padding-bottom: 21px; margin-bottom: 21px; } .setting-switch-row .field-label { font-size: 12px; }
  .field-help { font-size: 10px; } .switch-label { display: none; } .setting-switch-row > div:first-child { min-width: 0; } .leadgen-layout { min-height: auto; } .answer-preview { padding: 22px 18px; }
  #automation-form > .setting-switch-row { padding: 20px 17px; } .automation-config, .automation-log-panel, .workspace-column { padding: 21px 17px; } .workspace-column { min-height: 450px; }
  .workspace-list-item { padding: 16px; } .workspace-list-actions { margin-left: auto; } .workspace-column .panel-heading { margin-bottom: 20px; } .workspace-column .account-create-panel { padding-left: 0; padding-right: 0; }
  .provider-options { gap: 9px; } .provider-option { gap: 8px; padding: 13px 9px; } .provider-icon { width: 28px; height: 28px; flex-basis: 28px; } .provider-icon svg { width: 17px; height: 17px; }
  .provider-option strong { font-size: 10px; } .provider-option small { font-size: 8px; } .provider-option .radio-dot { display: none; }
  .connection-aside .status-list { display: block; } .connection-result { padding: 20px 14px; } .connection-result p { font-size: 10px; }
  .overview-grid { gap: 9px; } .metric-panel { padding: 14px 11px; } .metric-panel small { font-size: 9px; line-height: 1.7; } .metric-panel strong { font-size: 23px; } .metric-panel span { font-size: 10px; }
  .intake-panel, .brand-summary, .question-list-panel { padding: 19px 16px; } .intake-footer, .question-list-panel > .panel-heading, .question-row-head { flex-wrap: wrap; } .question-row { padding: 15px 12px; }
  .asset-library-panel { padding: 21px 17px; } .asset-library-panel .panel-caption { display: none; } .asset-upload-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
