:root {
  --ink: #17241f;
  --muted: #718078;
  --surface: #ffffff;
  --canvas: #f4f5f0;
  --line: #e5e8e1;
  --green-900: #123d32;
  --green-800: #184f40;
  --green-600: #2b8268;
  --green-100: #dff1e9;
  --lime: #b9e85e;
  --amber: #e9a945;
  --red: #d46357;
  --shadow: 0 16px 45px rgba(30, 56, 47, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; color: var(--ink); background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 242px; display: flex; flex-direction: column; padding: 28px 18px 18px; color: white; background: linear-gradient(175deg, #153f35, #0e2f29 72%); overflow: hidden; }
.sidebar::before { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -170px; top: 30%; box-shadow: 0 0 0 50px rgba(255,255,255,.025), 0 0 0 100px rgba(255,255,255,.018); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 32px; position: relative; }
.brand-mark { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; color: var(--green-900); background: var(--lime); font: 800 21px Georgia, serif; transform: rotate(-4deg); }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 17px; letter-spacing: .2px; }
.brand span { opacity: .56; font-size: 11px; margin-top: 3px; letter-spacing: .7px; }
.nav { display: grid; gap: 7px; position: relative; }
.nav-item { border: 0; padding: 12px 13px; color: rgba(255,255,255,.65); background: transparent; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; border-radius: 11px; text-align: left; transition: .18s ease; }
.nav-item span { font-size: 18px; text-align: center; }
.nav-item b { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; color: #173f35; background: var(--lime); border-radius: 20px; font-size: 11px; }
.nav-item.active, .nav-item:hover { color: white; background: rgba(255,255,255,.105); }
.nav-item.active { box-shadow: inset 3px 0 0 var(--lime); }
.sidebar-note { margin-top: auto; padding: 15px; display: flex; gap: 11px; align-items: flex-start; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.06); border-radius: 14px; position: relative; }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 12px; margin-bottom: 5px; }
.sidebar-note small { font-size: 10px; line-height: 1.55; color: rgba(255,255,255,.54); }
.pulse { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(185,232,94,.12); }
.account-mini { margin-top: 14px; padding: 12px 8px 3px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.08); position: relative; }
.account-mini .avatar { background: #315c50; color: white; }
.account-mini strong, .account-mini small { display: block; }
.account-mini strong { font-size: 11px; }.account-mini small { font-size: 9px; color: rgba(255,255,255,.42); margin-top: 3px; }
.account-mini button { border: 0; color: rgba(255,255,255,.5); background: transparent; }

.main { grid-column: 2; padding: 31px 36px 46px; min-width: 0; }
.topbar { min-height: 66px; display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 25px; }
.eyebrow { margin: 0 0 6px; color: #8c978f; font-size: 10px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
h1 { margin: 0; font-size: 25px; letter-spacing: -.7px; }
.top-actions { display: flex; gap: 10px; }
.primary-button, .ghost-button, .light-button { border: 0; border-radius: 10px; padding: 11px 15px; font-weight: 700; font-size: 12px; transition: .18s ease; }
.primary-button { color: white; background: var(--green-800); box-shadow: 0 7px 16px rgba(24,79,64,.18); }
.primary-button:hover { transform: translateY(-1px); background: #0f3e32; }
.primary-button span, .light-button span { margin-left: 9px; }
.ghost-button { color: #53635b; background: white; border: 1px solid var(--line); }
.ghost-button:hover:not(:disabled) { border-color: #b6c2ba; }
.ghost-button:disabled { opacity: .45; cursor: not-allowed; }
.view { display: none; }.view.active { display: block; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.hero-card { min-height: 259px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr .8fr; align-items: center; padding: 38px 42px; border-radius: 21px; color: white; background: linear-gradient(126deg, #174d3e, #0e332c 70%); box-shadow: var(--shadow); }
.operator-hero { min-height: 210px; padding: 34px 38px; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: 20px; color: white; background: linear-gradient(125deg,#174d3e,#0d312a); box-shadow: var(--shadow); }.operator-hero .eyebrow { color: #b8cabf; }.operator-hero h2 { margin: 10px 0; font-size: clamp(25px,3vw,36px); line-height: 1.2; }.operator-hero p { margin: 0; color: #b9c9c1; font-size: 11px; }.operator-score { min-width: 190px; padding: 20px; border: 1px solid #ffffff24; border-radius: 16px; background: #ffffff0d; }.operator-score strong { display: block; color: var(--lime); font-size: 34px; }.operator-score span { color: #c3d1ca; font-size: 9px; }.workflow-grid { margin-top: 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.workflow-step { min-height: 245px; padding: 22px; display: grid; grid-template-columns: 38px 1fr; gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 5px 20px #1e382f0a; }.step-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--green-900); background: var(--lime); font-weight: 900; }.workflow-step h3 { margin: 4px 0 6px; font-size: 15px; }.workflow-step p { margin: 0 0 14px; color: var(--muted); font-size: 9px; line-height: 1.5; }.workflow-step input:not([type="checkbox"]), .workflow-step select { width: 100%; margin-bottom: 9px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf8; font-size: 10px; }.workflow-step .primary-button { width: 100%; margin-top: 9px; }.workflow-check { display: flex; gap: 7px; align-items: center; margin-bottom: 9px; color: var(--muted); font-size: 9px; }.workflow-check input { accent-color: var(--green-600); }.workflow-account-card, .workflow-status-list { display: grid; gap: 7px; margin-bottom: 10px; }.workflow-account-card span, .workflow-status-list span { padding: 8px 9px; border-radius: 8px; color: var(--muted); background: #f3f6f3; font-size: 8px; }.workflow-account-card .ok, .workflow-status-list .ok { color: #247557; background: #e7f5ed; }.workflow-account-card .blocked, .workflow-status-list .blocked { color: #94443e; background: #fae9e7; }.system-step { background: linear-gradient(145deg,#f8fbf8,#fffdf6); }.batch-dashboard { display: grid; gap: 14px; }.batch-dashboard-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }.batch-dashboard-card header { display: flex; justify-content: space-between; align-items: center; }.batch-dashboard-card h3 { margin: 0 0 5px; }.batch-dashboard-card p { margin: 0; color: var(--muted); font-size: 9px; }.batch-dashboard-metrics { margin-top: 15px; display: grid; grid-template-columns: repeat(5,1fr); gap: 8px; }.batch-dashboard-metrics span { padding: 11px; border-radius: 10px; background: #f5f7f4; color: var(--muted); font-size: 8px; }.batch-dashboard-metrics strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 17px; }.ai-provider-panel { overflow: hidden; }.provider-form { padding: 0 21px 14px; display: grid; grid-template-columns: 90px 1.5fr 1fr 1fr auto; gap: 8px; align-items: center; }.provider-form input:not([type="checkbox"]) { padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbf8; font-size: 9px; }.provider-form label { display: flex; gap: 6px; align-items: center; font-size: 9px; }.provider-form input[type="checkbox"] { accent-color: var(--green-600); }.settings-note { margin: 0 21px 20px; color: var(--muted); font-size: 8px; }.settings-launcher { margin-top: 15px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }.settings-launcher button { padding: 20px; display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 14px; background: white; text-align: left; }.settings-launcher strong { font-size: 13px; }.settings-launcher span { color: var(--muted); font-size: 9px; }
.hero-card::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0); background-size: 24px 24px; mask-image: linear-gradient(to right, transparent, black); }
.hero-card > div { position: relative; z-index: 1; }
.hero-kicker { color: rgba(255,255,255,.68); font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.hero-kicker span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; background: var(--lime); border-radius: 50%; }
.hero-card h2 { margin: 17px 0 13px; font-size: clamp(27px, 3vw, 39px); line-height: 1.13; letter-spacing: -1.4px; }
.hero-card h2 em { color: var(--lime); font-family: Georgia, serif; font-weight: 500; }
.hero-card p { max-width: 520px; margin: 0 0 22px; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.6; }
.light-button { background: white; color: var(--green-900); }
.hero-orbit { min-height: 190px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }.orbit-one { width: 240px; height: 240px; }.orbit-two { width: 170px; height: 170px; }
.phone-shape { width: 100px; height: 172px; position: relative; padding: 29px 11px 12px; border: 5px solid rgba(255,255,255,.88); border-radius: 24px; background: #e9eee9; transform: rotate(7deg); box-shadow: 0 18px 35px rgba(0,0,0,.2); }
.phone-shape > span { position: absolute; top: 8px; left: 36px; width: 25px; height: 4px; border-radius: 3px; background: #769087; }
.mini-chat { width: 61px; height: 22px; margin-bottom: 8px; border-radius: 7px 7px 7px 2px; background: #b9e85e; }.mini-chat.right { width: 49px; margin-left: auto; border-radius: 7px 7px 2px 7px; background: white; }.mini-chat.short { width: 41px; }
.ai-chip { position: absolute; right: 3%; bottom: 11%; width: 75px; height: 75px; display: grid; place-items: center; align-content: center; color: var(--green-900); background: var(--lime); border-radius: 19px; font-size: 24px; font-weight: 900; box-shadow: 0 12px 25px rgba(0,0,0,.15); transform: rotate(-5deg); }.ai-chip small { display: block; font-size: 8px; margin-top: 2px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 15px 0; }
.stat-card { padding: 18px 19px; min-height: 112px; border: 1px solid #e8eae5; border-radius: 15px; background: var(--surface); }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.stat-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--green-800); background: var(--green-100); }
.stat-value { margin-top: 16px; font-size: 25px; font-weight: 800; letter-spacing: -.8px; }.stat-value small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.stat-foot { margin-top: 5px; color: #91a098; font-size: 9px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .8fr); gap: 15px; }
.panel { border: 1px solid #e8eae5; border-radius: 16px; background: var(--surface); box-shadow: 0 3px 15px rgba(30,56,47,.025); }
.panel-head { padding: 20px 21px 14px; display: flex; justify-content: space-between; align-items: center; }.panel-head h3 { margin: 0; font-size: 15px; }
.text-button { border: 0; color: var(--green-600); background: none; font-size: 10px; font-weight: 800; }
.live-badge { padding: 5px 8px; border-radius: 20px; color: var(--green-600); background: var(--green-100); font-size: 9px; font-weight: 800; }
.panel-head-actions { display: flex; align-items: center; gap: 7px; }
.recent-row { display: grid; grid-template-columns: 37px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 12px 21px; border-top: 1px solid #f0f1ed; cursor: pointer; }.recent-row:hover { background: #fafbf8; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--green-900); background: #dcebe4; font-size: 10px; font-weight: 800; }
.recent-row h4 { margin: 0 0 4px; font-size: 11px; }.recent-row p { overflow: hidden; margin: 0; color: var(--muted); font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }.recent-row time { color: #9aa59f; font-size: 9px; }
.capacity-wrap { min-height: 150px; display: grid; place-items: center; position: relative; }
.capacity-ring { --percent: 10; width: 127px; height: 127px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green-600) calc(var(--percent) * 1%), #e9eee9 0); position: relative; }.capacity-ring::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: white; }.capacity-ring div { position: relative; z-index: 1; text-align: center; }.capacity-ring strong { display: block; font-size: 25px; }.capacity-ring small { color: var(--muted); font-size: 9px; }
.health-legend { padding: 7px 22px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.legend-row { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }.legend-row i { width: 7px; height: 7px; border-radius: 50%; }

.inbox-shell { height: calc(100vh - 140px); min-height: 610px; display: grid; grid-template-columns: 310px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow); }
.conversation-list-panel { display: flex; flex-direction: column; border-right: 1px solid var(--line); min-width: 0; }
.search-box { margin: 17px 15px 10px; padding: 9px 11px; display: flex; gap: 7px; align-items: center; background: #f3f5f1; border-radius: 10px; }.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.filter-row { padding: 0 15px 10px; display: flex; gap: 5px; }.filter { padding: 6px 9px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 700; }.filter.active { color: var(--green-800); background: var(--green-100); }
.conversation-list { overflow: auto; }.conversation-item { width: 100%; padding: 14px 15px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; border: 0; border-top: 1px solid #f0f2ed; background: white; text-align: left; }.conversation-item:hover, .conversation-item.active { background: #f7faf6; }.conversation-item.active { box-shadow: inset 3px 0 var(--green-600); }.conversation-item h4 { margin: 0 0 4px; font-size: 11px; }.conversation-item p { margin: 0; color: var(--muted); font-size: 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.conversation-meta { display: grid; justify-items: end; align-content: start; gap: 6px; color: #9aa59f; font-size: 8px; }.unread-badge { min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; color: white; background: var(--green-600); border-radius: 20px; font-size: 8px; }
.chat-panel { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; background: #f8f9f6; }
.chat-empty { height: 100%; display: grid; place-items: center; color: var(--muted); }.chat-empty div { text-align: center; }.chat-empty strong { display: block; color: var(--ink); margin-bottom: 6px; }
.chat-header { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; background: white; border-bottom: 1px solid var(--line); }.chat-identity { display: flex; align-items: center; gap: 11px; }.chat-identity h3 { margin: 0 0 4px; font-size: 13px; }.chat-identity p { margin: 0; color: var(--muted); font-size: 9px; }.chat-actions { display: flex; gap: 7px; align-items: center; }.chat-actions select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: var(--ink); background: white; font-size: 9px; }
.messages { min-height: 0; padding: 23px 24px; overflow: auto; background-image: radial-gradient(circle at 1px 1px, rgba(31,73,59,.055) 1px, transparent 0); background-size: 22px 22px; }.message { max-width: 67%; margin-bottom: 13px; }.message.outbound { margin-left: auto; }.bubble { padding: 11px 13px; border-radius: 12px 12px 12px 3px; background: white; box-shadow: 0 3px 10px rgba(30,56,47,.055); font-size: 11px; line-height: 1.55; }.message.outbound .bubble { border-radius: 12px 12px 3px 12px; background: #dff1e9; }.message small { display: block; margin-top: 5px; color: #97a39c; font-size: 8px; }.message.outbound small { text-align: right; }
.composer { padding: 14px 17px 17px; background: white; border-top: 1px solid var(--line); }.draft-banner { margin-bottom: 10px; padding: 9px 11px; display: flex; justify-content: space-between; gap: 10px; border: 1px solid #d5e7dc; border-radius: 9px; color: var(--green-800); background: #f2faf6; font-size: 9px; }.draft-banner strong { margin-right: 7px; }.confidence { white-space: nowrap; color: #6e8278; }
.composer-box { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }.composer textarea { width: 100%; min-height: 72px; max-height: 130px; resize: vertical; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--ink); background: #fbfcfa; font-size: 11px; line-height: 1.5; }.composer textarea:focus { border-color: #8db6a7; box-shadow: 0 0 0 3px rgba(43,130,104,.08); }.composer-buttons { display: grid; gap: 7px; }.ai-button { border: 1px solid #c9dfd5; border-radius: 9px; padding: 9px 12px; color: var(--green-800); background: #eff8f3; font-size: 9px; font-weight: 800; }

.marketing-summary { margin-bottom: 15px; display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }.marketing-summary article { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; }.marketing-summary span { display: block; color: var(--muted); font-size: 9px; }.marketing-summary strong { display: block; margin-top: 8px; font-size: 22px; }.marketing-workflow { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }.marketing-card { overflow: hidden; }.marketing-form { padding: 0 21px 21px; display: grid; gap: 12px; }.marketing-form > label { display: grid; gap: 6px; color: var(--ink); font-size: 9px; font-weight: 750; }.marketing-form input:not([type="checkbox"]), .marketing-form select, .marketing-form textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: #fafbf8; font-size: 10px; }.marketing-form textarea { min-height: 105px; resize: vertical; line-height: 1.5; }.check-row { display: flex; flex-wrap: wrap; gap: 9px 16px; }.check-row label { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 9px; }.check-row input { accent-color: var(--green-600); }.form-note { margin: 0; padding: 9px 10px; border-radius: 9px; color: #607168; background: #f1f6f2; font-size: 8px; line-height: 1.55; }.import-preview { padding: 10px 11px; border: 1px dashed #cbd6cf; border-radius: 9px; color: var(--muted); background: #fbfcfa; font-size: 9px; }.import-preview.ready { color: var(--green-800); border-color: #9fc5b5; background: #eef8f2; }.import-template-link { text-decoration: none; }.marketing-table-panel, .campaign-panel { margin-bottom: 15px; overflow: hidden; }.empty-marketing { padding: 28px 22px; color: var(--muted); text-align: center; font-size: 10px; }.campaign-row { padding: 15px 21px; display: grid; grid-template-columns: minmax(180px,1fr) auto auto; gap: 16px; align-items: center; border-top: 1px solid var(--line); }.campaign-row h4 { margin: 0 0 5px; font-size: 11px; }.campaign-row p { margin: 0; color: var(--muted); font-size: 8px; }.campaign-progress { display: flex; flex-wrap: wrap; gap: 6px; }.campaign-progress span { padding: 5px 7px; border-radius: 8px; color: #52645a; background: #f0f3ef; font-size: 8px; }.campaign-actions { display: grid; gap: 6px; }.campaign-row button { min-width: 120px; }
.account-links-panel { margin-bottom: 15px; overflow: hidden; }.link-bulk-bar { padding: 0 21px 15px; display: grid; grid-template-columns: 170px 170px 1fr auto; gap: 8px; }.link-bulk-bar select, .link-bulk-bar input, .account-link-row input { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fafbf8; font-size: 9px; }.account-link-list { max-height: 340px; overflow: auto; border-top: 1px solid var(--line); }.account-link-row { padding: 11px 21px; display: grid; grid-template-columns: 130px minmax(160px,.7fr) minmax(230px,1.4fr) 90px auto; gap: 9px; align-items: center; border-bottom: 1px solid #eff1ed; }.account-link-row:last-child { border-bottom: 0; }.account-link-row h4 { margin: 0 0 3px; font-size: 10px; }.account-link-row p { margin: 0; color: var(--muted); font-size: 8px; }.account-link-url { overflow: hidden; color: var(--green-600); font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }.account-link-actions { display: flex; gap: 5px; }.account-link-actions button { padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; color: #52645a; background: white; font-size: 8px; font-weight: 750; }.link-state { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }.link-state input { accent-color: var(--green-600); }
.outreach-rules-panel { margin-bottom: 15px; overflow: hidden; }.outreach-template-note { margin: 0 21px 12px; padding: 9px 10px; border-radius: 9px; color: var(--green-800); background: var(--green-100); font-size: 8px; }.outreach-bulk { padding: 0 21px 15px; display: grid; grid-template-columns: 150px 100px 120px 110px 110px auto; gap: 8px; }.outreach-bulk select, .outreach-bulk input, .outreach-rule-row input, .outreach-rule-row select { min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fafbf8; font-size: 8px; }.outreach-rule-list { max-height: 310px; overflow: auto; border-top: 1px solid var(--line); }.outreach-rule-row { padding: 10px 21px; display: grid; grid-template-columns: 110px 90px 70px 82px 88px 92px 92px auto; gap: 8px; align-items: center; border-bottom: 1px solid #eff1ed; }.outreach-rule-row h4 { margin: 0 0 3px; font-size: 9px; }.outreach-rule-row p { margin: 0; color: var(--muted); font-size: 7px; }.outreach-rule-row button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 8px; }.outreach-rule-row input:disabled { color: #8d9992; background: #f1f3f0; }.outreach-enabled { display: flex; gap: 5px; align-items: center; color: var(--muted); font-size: 8px; }.outreach-enabled input, .customer-select { accent-color: var(--green-600); }.marketing-table-panel .data-table tbody { display: table-row-group; }.marketing-table-panel > div:last-child { max-height: 430px; overflow: auto; }.recipient-details { grid-column: 1 / -1; }.recipient-details summary { color: var(--green-600); cursor: pointer; font-size: 8px; }.recipient-list { margin-top: 8px; display: grid; gap: 5px; }.recipient-list span { padding: 7px 8px; display: grid; grid-template-columns: 1fr 120px 80px; border-radius: 7px; background: #f7f9f6; color: var(--muted); font-size: 8px; }
.batch-panel, .promotion-domains-panel { margin-bottom: 15px; overflow: hidden; }.batch-row { padding: 14px 21px; display: grid; grid-template-columns: minmax(170px,1.3fr) repeat(5,90px) auto; gap: 10px; align-items: center; border-top: 1px solid var(--line); }.batch-row h4 { margin: 0 0 4px; font-size: 10px; }.batch-row p { margin: 0; color: var(--muted); font-size: 8px; }.batch-metric { color: var(--muted); font-size: 8px; }.batch-metric strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13px; }.batch-row button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--green-800); background: white; font-size: 8px; font-weight: 750; }.domain-add { padding: 0 21px 15px; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 8px; align-items: stretch; }.domain-add input, .domain-add textarea { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbf8; font-size: 9px; }.domain-add textarea { min-height: 68px; resize: vertical; }.domain-row { padding: 12px 21px; display: grid; grid-template-columns: 1fr 130px 1.4fr auto; gap: 10px; align-items: center; border-top: 1px solid var(--line); }.domain-row h4 { margin: 0 0 4px; font-size: 10px; }.domain-row p, .domain-verify-url { overflow: hidden; margin: 0; color: var(--muted); font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }.domain-status { padding: 5px 7px; border-radius: 999px; color: #8d6736; background: #fff0d9; font-size: 8px; }.domain-status.verified { color: #247557; background: #e3f4eb; }.customer-analysis-panel { overflow: hidden; }.analysis-toolbar { padding: 0 21px 14px; display: grid; grid-template-columns: 1fr 220px auto; gap: 8px; }.analysis-toolbar input, .analysis-toolbar select { padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fafbf8; font-size: 9px; }.analysis-table-wrap { max-height: calc(100vh - 275px); min-height: 440px; overflow: auto; border-top: 1px solid var(--line); }.analysis-pagination { padding: 12px 21px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }.analysis-pagination button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 8px; }

.section-toolbar { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }.segmented { padding: 3px; display: flex; border: 1px solid var(--line); border-radius: 10px; background: white; }.segmented button { padding: 7px 11px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 700; }.segmented button.active { color: white; background: var(--green-800); }.toolbar-note { color: var(--muted); font-size: 9px; }.toolbar-note span { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--amber); }
.region-bulk { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }.region-bulk select, .device-region-select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: 9px; }.region-note { margin: -5px 0 12px; text-align: right; }
.activation-overview { margin-bottom: 14px; padding: 16px 18px; display: grid; gap: 12px; border: 1px solid #d5e7dc; border-radius: 15px; background: linear-gradient(135deg,#f4faf6,#fffaf0); }.activation-overview article { display: flex; justify-content: space-between; gap: 18px; align-items: center; }.activation-overview h3 { margin: 3px 0 5px; font-size: 14px; }.activation-overview p { margin: 0; color: var(--muted); font-size: 9px; }.activation-overview > small { color: #8a958f; font-size: 8px; }.activation-meter { min-width: 150px; display: grid; grid-template-columns: auto 105px; align-items: center; gap: 10px; }.activation-meter strong { color: var(--green-800); font-size: 16px; }.activation-meter span { height: 7px; overflow: hidden; border-radius: 20px; background: #dde5df; }.activation-meter i { height: 100%; display: block; border-radius: inherit; background: var(--green-600); }.activation-tasks { display: flex; flex-wrap: wrap; gap: 7px; }.activation-tasks span { padding: 5px 8px; border-radius: 999px; font-size: 8px; }.activation-tasks .done { color: #247557; background: #e1f2e9; }.activation-tasks .pending { color: #8b6a3a; background: #fff0d8; }
.device-capacity-summary { margin-bottom: 14px; display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }.device-capacity-summary article { padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: white; }.device-capacity-summary span { display: block; color: var(--muted); font-size: 8px; }.device-capacity-summary strong { display: block; margin-top: 6px; font-size: 17px; }.network-config-panel { margin-bottom: 14px; overflow: hidden; }.network-template-form { padding: 0 21px 15px; display: grid; grid-template-columns: 150px 1fr 1fr 1fr 1fr auto auto; gap: 8px; }.network-template-form select, .network-template-form input, .device-network-controls input { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #fafbf8; font-size: 8px; }.network-help { margin: 0 21px 15px; color: var(--muted); font-size: 8px; line-height: 1.55; }.device-network-controls { margin-top: 8px; display: grid; grid-template-columns: 1fr auto; gap: 6px; }.device-network-controls button { padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 8px; }.capability-grid { margin: 10px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }.capability-grid span { padding: 6px 5px; border-radius: 7px; color: #8d443e; background: #f9e8e6; text-align: center; font-size: 7px; font-weight: 750; }.capability-grid span.yes { color: #247557; background: #e3f4eb; }
.device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 13px; }.device-card { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: white; transition: .18s ease; }.device-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }.device-card-head { display: flex; justify-content: space-between; align-items: flex-start; }.device-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; color: var(--green-800); background: var(--green-100); font-size: 18px; }.status-dot { width: 8px; height: 8px; border-radius: 50%; }.status-online, .status-busy { background: #43a47d; }.status-offline { background: #afb8b3; }.status-warning { background: var(--amber); }.device-card h3 { margin: 14px 0 4px; font-size: 13px; }.device-phone { color: var(--muted); font-size: 9px; }.device-stats { margin: 14px 0; padding: 10px 0; display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid #eff1ed; }.device-stats span { color: var(--muted); font-size: 8px; }.device-stats strong { display: block; margin-top: 3px; color: var(--ink); font-size: 10px; }.device-actions { display: flex; flex-wrap: wrap; gap: 7px; }.device-actions button { flex: 1; min-width: 54px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; color: #4f6057; background: white; font-size: 8px; font-weight: 800; }.device-actions .start, .device-actions .screen { color: white; border-color: var(--green-800); background: var(--green-800); }.device-runtime { margin-top: 7px; display: flex; justify-content: space-between; color: #8b9891; font-size: 8px; }
.device-select-wrap { display: flex; align-items: center; gap: 8px; }.device-select-wrap input { accent-color: var(--green-600); }.device-region-select { width: 100%; margin-top: 9px; }
.protection-status { margin-top: 10px; padding: 8px 9px; display: grid; gap: 3px; border-radius: 9px; background: #f1f4f1; }.protection-status strong { font-size: 9px; }.protection-status span { color: var(--muted); font-size: 7px; line-height: 1.4; }.protection-observing { color: #966228; background: #fff3df; }.protection-ready { color: #247557; background: #e5f4ec; }.protection-paused, .protection-attention { color: #943f38; background: #fbe8e6; }.export-link { text-decoration: none; }

.table-panel { overflow: hidden; }.data-table { width: 100%; border-collapse: collapse; }.data-table th, .data-table td { padding: 14px 20px; border-top: 1px solid #edf0eb; text-align: left; font-size: 10px; }.data-table th { color: #94a097; background: #fafbf9; font-size: 8px; letter-spacing: .6px; text-transform: uppercase; }.stage-pill { padding: 5px 8px; border-radius: 20px; color: var(--green-800); background: var(--green-100); font-size: 8px; font-weight: 800; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 13px; margin-bottom: 15px; }.team-card { padding: 18px; display: grid; grid-template-columns: 45px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 15px; background: white; }.team-card .avatar { width: 45px; height: 45px; border-radius: 14px; }.team-card h3 { margin: 0 0 4px; font-size: 12px; }.team-card p { margin: 0; color: var(--muted); font-size: 9px; }.online-label { color: var(--green-600); font-size: 8px; font-weight: 800; }.offline-label { color: #9ca6a0; font-size: 8px; }.policy-panel { margin-bottom: 15px; overflow: hidden; }.policy-grid { padding: 4px 21px 21px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.policy-control { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf8; }.policy-control label, .policy-control strong { display: block; margin-bottom: 7px; font-size: 10px; }.policy-control p { margin: 6px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }.policy-control select, .policy-control input[type="range"] { width: 100%; }.switch-row { display: flex; justify-content: space-between; align-items: center; }.switch-row input { accent-color: var(--green-600); }.audit-panel { overflow: hidden; }.audit-row { padding: 12px 21px; display: grid; grid-template-columns: 25px 1fr auto; gap: 10px; align-items: center; border-top: 1px solid #eff1ed; }.audit-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: var(--green-800); background: var(--green-100); font-size: 10px; }.audit-row p { margin: 0; font-size: 10px; }.audit-row time { color: #9aa49f; font-size: 8px; }
.consent-bar { padding: 9px 17px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; border-bottom: 1px solid var(--line); background: #fafbf8; font-size: 8px; color: var(--muted); }.consent-bar label { display: flex; align-items: center; gap: 7px; }.consent-bar select { padding: 5px 7px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: white; font-size: 8px; }.consent-check input { accent-color: var(--green-600); }.coupon-status { margin-left: auto; padding: 5px 8px; border-radius: 999px; font-weight: 800; }.coupon-status.eligible { color: #247557; background: #e3f4eb; }.coupon-status.blocked { color: #9a6732; background: #fff0da; }
.coupon-template-grid { padding: 4px 21px 21px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.coupon-template-grid label { display: grid; gap: 7px; color: var(--ink); font-size: 9px; }.coupon-template-grid textarea, .coupon-template-grid input { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: #fafbf8; font: inherit; line-height: 1.5; }.coupon-template-grid textarea { min-height: 92px; resize: vertical; }.coupon-template-grid small { color: var(--muted); font-size: 8px; }
.group-management { padding: 4px 21px 21px; display: grid; gap: 12px; }.group-pills { display: flex; flex-wrap: wrap; gap: 7px; }.group-pill { padding: 7px 9px; border-radius: 9px; color: var(--green-800); background: var(--green-100); font-size: 8px; }.group-form { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; }.group-form input { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; }

.device-modal { position: fixed; z-index: 80; inset: 0; display: none; }.device-modal.open { display: block; }.device-modal-backdrop { position: absolute; inset: 0; background: rgba(7,27,22,.72); backdrop-filter: blur(5px); }.device-console { position: absolute; inset: 4vh 4vw; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 19px; background: #f4f5f0; box-shadow: 0 35px 90px rgba(0,0,0,.35); }.device-console-head { min-height: 76px; padding: 16px 21px; display: flex; justify-content: space-between; align-items: center; color: white; background: var(--green-900); }.device-console-head h2 { margin: 0; font-size: 18px; }.device-console-head .eyebrow { color: rgba(255,255,255,.55); }.device-console-head-actions { display: flex; align-items: center; gap: 10px; }.icon-button { width: 34px; height: 34px; border: 0; border-radius: 10px; color: white; background: rgba(255,255,255,.12); font-size: 21px; }.device-console-body { height: calc(92vh - 76px); min-height: 0; display: grid; grid-template-columns: minmax(340px, 1fr) 320px; }.phone-frame { min-height: 0; padding: 22px; display: grid; place-items: center; overflow: hidden; background: #17221f; }.phone-frame img { height: calc(92vh - 120px); max-height: 100%; max-width: 100%; width: auto; object-fit: contain; border-radius: 12px; cursor: crosshair; box-shadow: 0 17px 40px rgba(0,0,0,.35); user-select: none; }.device-side-panel { padding: 20px; overflow: auto; background: white; border-left: 1px solid var(--line); }.control-section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }.control-section:last-child { border: 0; }.control-section h3 { margin: 0 0 8px; font-size: 13px; }.control-section p { margin: 0 0 12px; color: var(--muted); font-size: 9px; line-height: 1.6; }.control-section input { width: 100%; margin-bottom: 8px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; font-size: 10px; }.control-section button:not(.icon-button) { width: 100%; }.remote-keys { margin-top: 9px; display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }.remote-keys button { padding: 8px 4px; border: 1px solid var(--line); border-radius: 8px; color: #53635b; background: #fafbf9; font-size: 8px; }.control-section.compact { padding: 12px; border: 1px solid #dce9e2; border-radius: 10px; background: #f2f8f4; }
.login-step-status { margin-top: 8px; padding: 8px 9px; border-radius: 8px; color: var(--green-800); background: var(--green-100); font-size: 8px; line-height: 1.5; }

.toast-stack { position: fixed; z-index: 120; right: 22px; bottom: 22px; display: grid; gap: 8px; }.toast { min-width: 240px; padding: 12px 14px; border-radius: 11px; color: white; background: #173f35; box-shadow: 0 14px 30px rgba(13,45,37,.2); font-size: 10px; animation: toast-in .25s ease; }.toast.error { background: #8b3934; }@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.skeleton { min-height: 70px; margin: 10px; border-radius: 12px; background: linear-gradient(90deg, #f0f2ee, #f7f8f5, #f0f2ee); background-size: 200% 100%; animation: shimmer 1.2s infinite; }@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 980px) {
  .hero-orbit { display: none; }
  .device-capacity-summary { grid-template-columns: repeat(3,1fr); }
  .provider-form { grid-template-columns: 1fr 1fr; }.batch-dashboard-metrics { grid-template-columns: repeat(3,1fr); }
  .batch-row { grid-template-columns: minmax(170px,1fr) repeat(3,80px); }.domain-row { grid-template-columns: 1fr 110px 1fr; }
  .app-shell { grid-template-columns: 78px minmax(0, 1fr); }.sidebar { width: 78px; padding-inline: 10px; }.brand { padding-inline: 9px; }.brand > div:last-child { display: none; }.nav-item:not(.active)::after, .nav-item { font-size: 0; }.nav-item { grid-template-columns: 1fr; justify-items: center; padding: 12px 5px; }.nav-item span { font-size: 18px; }.nav-item b { position: absolute; margin-left: 28px; margin-top: -22px; font-size: 8px; }.sidebar-note, .account-mini > div:not(.avatar), .account-mini button { display: none; }.account-mini { grid-template-columns: 1fr; justify-items: center; }.main { grid-column: 2; padding-inline: 22px; }.dashboard-grid { grid-template-columns: 1fr; }.hero-card { grid-template-columns: 1fr; }.stats-grid { grid-template-columns: 1fr 1fr; }.inbox-shell { grid-template-columns: 270px 1fr; }.group-form { grid-template-columns: repeat(3,1fr); }.marketing-workflow { grid-template-columns: 1fr; }.marketing-summary { grid-template-columns: repeat(2,1fr); }.link-bulk-bar { grid-template-columns: 1fr 1fr; }.account-link-row { grid-template-columns: 110px 1fr 1.5fr; }.account-link-row .link-state, .account-link-row .account-link-actions { grid-column: auto; }.outreach-bulk { grid-template-columns: repeat(3,1fr); }.outreach-rule-row { grid-template-columns: 110px repeat(3,1fr); }
}
@media (max-width: 720px) {
  .app-shell { display: block; }.sidebar { position: static; width: 100%; height: auto; padding: 12px; flex-direction: row; align-items: center; }.brand { padding: 0; }.nav { margin-left: auto; display: flex; }.nav-item { width: 42px; }.account-mini, .sidebar-note { display: none; }.main { padding: 20px 14px; }.topbar { align-items: center; }.top-actions .ghost-button { display: none; }.hero-card { padding: 27px 25px; }.stats-grid { grid-template-columns: 1fr 1fr; }.inbox-shell { height: auto; min-height: 700px; grid-template-columns: 1fr; }.conversation-list-panel { max-height: 270px; border-right: 0; border-bottom: 1px solid var(--line); }.chat-panel { min-height: 520px; }.section-toolbar { align-items: flex-start; gap: 10px; flex-direction: column; }
  .device-console { inset: 0; border-radius: 0; }.device-console-body { height: auto; grid-template-columns: 1fr; overflow: auto; }.phone-frame { min-height: 620px; }.phone-frame img { width: 100%; height: auto; }.device-side-panel { border-left: 0; }.policy-grid, .coupon-template-grid, .group-form { grid-template-columns: 1fr; }.activation-overview article { align-items: flex-start; flex-direction: column; }.section-toolbar { align-items: flex-start; }.region-note { text-align: left; }.marketing-summary { grid-template-columns: 1fr; }.campaign-row, .batch-row, .domain-row { grid-template-columns: 1fr; }.link-bulk-bar, .account-link-row, .outreach-bulk, .outreach-rule-row, .domain-add, .analysis-toolbar { grid-template-columns: 1fr; }
  .device-capacity-summary { grid-template-columns: repeat(2,1fr); }
  .workflow-grid, .settings-launcher, .provider-form { grid-template-columns: 1fr; }.operator-hero { align-items: flex-start; flex-direction: column; }.operator-score { width: 100%; }.batch-dashboard-metrics { grid-template-columns: 1fr 1fr; }
}

.domain-config-form { padding: 24px 30px; display: grid; grid-template-columns: 1fr 1fr 180px; gap: 14px; }
.dns-instruction { grid-column: 1 / -1; padding: 13px 15px; display: grid; gap: 5px; border: 1px solid #dedaf6; border-radius: 9px; background: #faf9ff; }
.dns-instruction strong { font-size: 12px; }.dns-instruction span { color: var(--muted); font-size: 10px; line-height: 1.6; }.dns-instruction b { color: #5f4de0; }
.domain-config-form label { display: grid; gap: 7px; color: #515567; font-size: 10px; font-weight: 750; }
.domain-config-form input { height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; }
.domain-config-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.domain-status-grid { padding: 0 30px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.domain-entry-status { padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 14px; border: 1px solid var(--line); border-radius: 10px; }
.domain-entry-status > div:first-child { display: grid; gap: 4px; }.domain-entry-status strong { font-size: 12px; }.domain-entry-status > div:first-child span { color: #5f4de0; font-size: 10px; }
.domain-entry-status dl { grid-column: 1 / -1; margin: 0; display: grid; gap: 8px; }
.domain-entry-status dl div { display: grid; grid-template-columns: 90px 1fr; gap: 9px; font-size: 10px; }
.domain-entry-status dt { color: var(--muted); }.domain-entry-status dd { margin: 0; color: #4e5264; overflow-wrap: anywhere; }
.domain-last-check { padding: 14px 30px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; }

.marketing-section-tabs { min-height: 48px; padding: 0 24px; display: flex; gap: 26px; align-items: flex-end; border-bottom: 1px solid var(--line); background: #fafbfe; }
.marketing-section-tabs button { min-height: 47px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; color: #686d7f; background: transparent; font-size: 11px; font-weight: 800; }
.marketing-section-tabs button.active { color: #5d4ae0; border-bottom-color: #6b59ec; }
.promotion-dns-hint { margin: 18px 24px 10px; padding: 13px 15px; display: grid; grid-template-columns: auto 1fr; gap: 12px; border: 1px solid #f0dfbd; border-radius: 9px; background: #fff9ef; }
.promotion-dns-hint strong { color: #8e632e; font-size: 11px; }.promotion-dns-hint span { color: #7d7468; font-size: 10px; line-height: 1.55; }.promotion-dns-hint b { color: #5f4de0; }
.promotion-domain-add { padding: 0 24px 18px; display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 9px; }
.promotion-domain-add textarea, .promotion-domain-add input { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 10px; }.promotion-domain-add textarea { min-height: 68px; resize: vertical; }
.promotion-domain-table { width: 100%; min-width: 930px; border-collapse: collapse; }
.promotion-domain-table th, .promotion-domain-table td { padding: 14px 16px; border-top: 1px solid #eceef3; text-align: left; font-size: 10px; }
.promotion-domain-table th { color: #888d9f; background: #fafbfe; font-size: 9px; }.promotion-domain-table td strong, .promotion-domain-table td small { display: block; }.promotion-domain-table td small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.empty-table-cell { padding: 34px !important; color: var(--muted); text-align: center !important; }
.link-bulk-bar.clean { margin: 18px 24px; padding: 0; }
.account-links-table input:not([type="checkbox"]) { width: 100%; min-width: 90px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 9px; }
.truncate-url { max-width: 260px; display: block; overflow: hidden; color: #5e4be0; text-overflow: ellipsis; white-space: nowrap; }

.profile-presets { padding: 16px 18px; display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; align-items: center; border-bottom: 1px solid #e5e1f8; }
.profile-presets > span { font-size: 10px; font-weight: 800; }.profile-presets > div { display: flex; }
.profile-presets button { min-height: 36px; padding: 0 18px; border: 1px solid #dcd9eb; border-right: 0; color: #5c6071; background: white; font-size: 10px; font-weight: 700; }
.profile-presets button:first-child { border-radius: 7px 0 0 7px; }.profile-presets button:last-child { border-right: 1px solid #dcd9eb; border-radius: 0 7px 7px 0; }
.profile-presets button.active { color: white; border-color: #6b59ec; background: #6b59ec; }
.profile-presets small { grid-column: 2; color: var(--muted); font-size: 9px; }
.rule-editor-form.expanded { grid-template-columns: repeat(4,1fr); }
.profile-note { margin: 0 18px 16px; padding: 10px 12px; color: #6e7284; border-radius: 8px; background: white; font-size: 9px; line-height: 1.55; }

@media (max-width: 820px) {
  .domain-config-form, .domain-status-grid { grid-template-columns: 1fr; }
  .domain-config-form label, .domain-config-actions, .dns-instruction { grid-column: 1; }
  .rule-editor-form.expanded { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .promotion-domain-add { grid-template-columns: 1fr; }
  .profile-presets { grid-template-columns: 1fr; }
  .profile-presets small { grid-column: 1; }
  .profile-presets > div { overflow-x: auto; }
  .rule-editor-form.expanded { grid-template-columns: 1fr; }
}

.auth-gate[hidden] { display: none; }
.auth-gate { position: fixed; z-index: 500; inset: 0; display: grid; place-items: center; padding: 24px; background: #f5f6fb; }
.auth-backdrop { position: absolute; inset: 0; background: radial-gradient(circle at 18% 18%, rgba(109,93,246,.18), transparent 30%), radial-gradient(circle at 82% 80%, rgba(201,113,229,.13), transparent 28%); }
.auth-card { position: relative; width: min(440px,100%); overflow: hidden; border: 1px solid #dedfeb; border-radius: 18px; background: white; box-shadow: 0 28px 80px rgba(42,37,88,.16); }
.auth-brand { padding: 22px 26px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); }
.auth-brand .brand-mark { flex: 0 0 auto; }.auth-brand strong, .auth-brand span { display: block; }.auth-brand strong { font-size: 15px; }.auth-brand span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.auth-copy { padding: 28px 30px 12px; }.auth-copy h1 { margin: 0 0 9px; font-size: 25px; }.auth-copy > p:last-child { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-card form { padding: 14px 30px 26px; display: grid; gap: 14px; }
.auth-card form label { display: grid; gap: 7px; color: #4e5264; font-size: 11px; font-weight: 750; }
.auth-card form input { height: 44px; padding: 0 12px; border: 1px solid #dfe1e9; border-radius: 8px; outline: 0; font-size: 12px; font-weight: 400; }
.auth-card form input:focus { border-color: #7a68ee; box-shadow: 0 0 0 3px rgba(122,104,238,.1); }
.auth-card form .primary-button { width: 100%; margin-top: 4px; }
.auth-error { min-height: 16px; color: #b54a44; font-size: 10px; line-height: 1.4; }
.auth-card > footer { padding: 14px 24px; color: #8b8fa0; border-top: 1px solid var(--line); background: #fafbfe; text-align: center; font-size: 9px; }
.account-actions { display: flex; gap: 2px; }.account-actions button { padding: 3px; font-size: 8px; }
.team-head-actions { display: flex; align-items: center; gap: 9px; }
.employee-cell > span:not(.avatar) { display: grid; gap: 3px; }.employee-cell small { color: var(--muted); font-size: 9px; font-weight: 400; }
.table-link-button { padding: 5px 7px; border: 0; color: #5e4be0; background: transparent; font-size: 10px; font-weight: 800; }
.user-editor { margin: 18px 24px 0; overflow: hidden; border: 1px solid #dedaf6; border-radius: 10px; background: #faf9ff; }
.user-editor[hidden] { display: none; }
.user-editor > header { min-height: 64px; padding: 13px 17px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e1f8; }
.user-editor h3 { margin: 0; font-size: 14px; }.user-editor .eyebrow { margin-bottom: 3px; }
.user-editor-form { padding: 17px; display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; }
.user-editor-form label { display: grid; gap: 7px; color: #55596b; font-size: 10px; font-weight: 700; }
.user-editor-form input, .user-editor-form select { min-width: 0; height: 41px; padding: 0 10px; border: 1px solid #dcd9eb; border-radius: 8px; background: white; font-size: 11px; }
.user-editor-form .inline-check span { height: 41px; display: flex; align-items: center; gap: 6px; }.user-editor-form .inline-check input { width: 16px; height: 16px; accent-color: #6553e7; }
.user-editor > footer { padding: 13px 17px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #e5e1f8; }

@media (max-width: 820px) {
  .user-editor-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .team-head-actions { align-items: flex-start; flex-direction: column; }
  .user-editor-form { grid-template-columns: 1fr; }
}

.legacy-devices { display: none !important; }
.device-management-shell {
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}
.device-management-head { min-height: 108px; padding: 23px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.device-management-head h2 { margin: 0 0 7px; font-size: 22px; }
.device-management-head p:last-child { margin: 0; color: var(--muted); font-size: 11px; }
.device-section-tabs { min-height: 50px; padding: 0 24px; display: flex; gap: 28px; align-items: flex-end; border-bottom: 1px solid var(--line); }
.device-section-tabs button { min-height: 49px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; color: #676c7e; background: transparent; font-size: 12px; font-weight: 750; }
.device-section-tabs button.active { color: #5e4be0; border-bottom-color: #6b59ec; }
.device-list-toolbar { min-height: 68px; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); background: #fafbfe; }
.device-bulk-tools { display: flex; align-items: center; gap: 7px; }
.device-bulk-tools select { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 10px; }
.device-table { width: 100%; border-collapse: collapse; min-width: 1060px; }
.device-table th, .device-table td { padding: 13px 14px; border-bottom: 1px solid #eceef3; text-align: left; vertical-align: middle; }
.device-table th { color: #888d9f; background: #fff; font-size: 9px; }
.device-table td { color: #565b6d; font-size: 10px; }
.device-table td > strong, .device-table td > small { display: block; }
.device-table td > strong { color: var(--ink); font-size: 11px; }.device-table td > small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.device-table select { max-width: 145px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 9px; }
.device-table input[type="checkbox"] { accent-color: #6553e7; }
.readiness-cell { min-width: 105px; display: grid; grid-template-columns: 70px auto; gap: 4px 7px; align-items: center; }
.readiness-cell > span { height: 5px; overflow: hidden; border-radius: 9px; background: #e4e5ec; }
.readiness-cell > span i { height: 100%; display: block; border-radius: inherit; background: #6b59ec; }
.readiness-cell b { color: #5f4de0; font-size: 9px; }.readiness-cell small { grid-column: 1 / -1; color: var(--muted); font-size: 8px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.table-actions button, .network-device-table td > button { padding: 5px 7px; border: 0; color: #5d4ae0; background: transparent; font-size: 9px; font-weight: 800; white-space: nowrap; }
.table-actions button:disabled { color: #a9acb8; cursor: not-allowed; }
.network-settings-page > header { min-height: 80px; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.network-settings-page h3 { margin: 0 0 6px; font-size: 15px; }.network-settings-page header p { margin: 0; color: var(--muted); font-size: 10px; }
.network-template-grid { padding: 18px 24px 10px; display: grid; grid-template-columns: 1fr 1.2fr 1.2fr 1.2fr 1fr; gap: 9px; }
.network-template-grid label { display: grid; gap: 6px; color: #5b6072; font-size: 9px; font-weight: 700; }
.network-template-grid input, .network-template-grid select { min-width: 0; height: 39px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 9px; }
.network-template-actions { padding: 0 24px 18px; display: flex; justify-content: flex-end; gap: 7px; border-bottom: 1px solid var(--line); }
.network-device-table { width: 100%; min-width: 900px; border-collapse: collapse; }
.network-device-table th, .network-device-table td { padding: 13px 15px; border-bottom: 1px solid #eceef3; text-align: left; font-size: 10px; }
.network-device-table th { color: #888d9f; background: #fafbfe; font-size: 9px; }
.network-device-table td strong, .network-device-table td small { display: block; }.network-device-table td small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.network-device-table input { width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .device-list-toolbar { align-items: flex-start; flex-direction: column; }
  .device-bulk-tools { width: 100%; flex-wrap: wrap; }
  .network-template-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .device-management-head, .network-settings-page > header { align-items: flex-start; flex-direction: column; }
  .device-bulk-tools select { flex: 1; min-width: 130px; }
  .network-template-grid { grid-template-columns: 1fr; }
}

.legacy-marketing { display: none !important; }
.rule-library-shell {
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}
.rule-library-head { min-height: 112px; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.rule-title-row { display: flex; align-items: center; gap: 14px; }
.rule-title-row h2 { margin: 0; font-size: 22px; }
.rule-library-head p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.rule-filter-tabs { min-height: 56px; padding: 0 24px; display: flex; align-items: flex-end; gap: 34px; border-bottom: 1px solid var(--line); }
.rule-filter-tabs button { min-height: 55px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; color: #606476; background: transparent; font-size: 12px; font-weight: 750; }
.rule-filter-tabs button.active { color: #5d4ae0; border-bottom-color: #6b59ec; }
.rule-table { width: 100%; border-collapse: collapse; }
.rule-table th, .rule-table td { padding: 15px 18px; border-bottom: 1px solid #eceef3; text-align: left; vertical-align: middle; }
.rule-table th { color: #888d9f; background: #fafbfe; font-size: 10px; }
.rule-table td { color: #5a5f72; font-size: 11px; line-height: 1.55; }
.rule-table th:nth-child(1) { width: 23%; }.rule-table th:nth-child(2) { width: 17%; }.rule-table th:nth-child(3) { width: 40%; }.rule-table th:nth-child(4) { width: 12%; }
.rule-table td:first-child strong { display: inline; color: var(--ink); font-size: 12px; }
.rule-table td:first-child small { margin-left: 7px; padding: 3px 6px; border-radius: 5px; color: #7366b8; background: #f0eeff; font-size: 8px; }
.rule-table td:last-child button { padding: 5px 8px; border: 0; color: #5f4de0; background: transparent; font-size: 11px; font-weight: 800; }
.rule-editor { margin: 18px 24px 24px; overflow: hidden; border: 1px solid #dedaf6; border-radius: 10px; background: #faf9ff; }
.rule-editor > header { min-height: 68px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e5e1f8; }
.rule-editor h3 { margin: 0; font-size: 15px; }.rule-editor .eyebrow { margin-bottom: 4px; }
.icon-button.light { color: #777b8d; background: #eeecf8; }
.rule-editor-form { padding: 18px; display: grid; grid-template-columns: 1.2fr 1fr 1.3fr .8fr .8fr; gap: 10px; }
.rule-editor-form label { display: grid; gap: 7px; color: #535769; font-size: 10px; font-weight: 700; }
.rule-editor-form input, .rule-editor-form select { min-width: 0; height: 41px; padding: 0 10px; border: 1px solid #dcd9eb; border-radius: 8px; background: white; font-size: 11px; }
.rule-editor > footer { padding: 14px 18px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #e5e1f8; }

@media (max-width: 820px) {
  .rule-filter-tabs { gap: 18px; overflow-x: auto; }
  .rule-editor-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .rule-library-head { align-items: flex-start; flex-direction: column; }
  .rule-title-row { align-items: flex-start; flex-direction: column; }
  .rule-table { min-width: 850px; }
  .rule-editor-form { grid-template-columns: 1fr; }
}

.workflow-tabs {
  padding: 9px 12px 0;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 4px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.workflow-tabs button {
  min-height: 62px;
  padding: 10px 14px 12px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #707589;
  background: transparent;
  text-align: left;
}
.workflow-tabs button:hover { background: #fafaff; }
.workflow-tabs button.active { color: #5b49df; border-bottom-color: #6b59ec; background: #faf9ff; }
.workflow-tabs span { font-size: 12px; font-weight: 800; }
.workflow-tabs small { color: #989cad; font-size: 9px; }
.workflow-tabs button.active small { color: #7568c7; }

.batch-source-panel.active { min-height: 570px; }
.batch-source-panel .guided-form { max-width: 690px; padding-block: 34px; justify-content: flex-start; }
.existing-batch-list { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; }
.batch-source-head { min-height: 48px; padding: 10px 13px; display: flex; justify-content: space-between; align-items: center; background: #fafbfe; border-bottom: 1px solid var(--line); }
.batch-source-head span { font-size: 11px; font-weight: 800; }.batch-source-head small { color: var(--muted); font-size: 9px; }
.existing-batch-row { width: 100%; min-height: 62px; padding: 10px 13px; display: grid; grid-template-columns: minmax(0,1fr) 70px 90px; gap: 12px; align-items: center; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: white; text-align: left; }
.existing-batch-row:last-child { border-bottom: 0; }
.existing-batch-row:hover { background: #fafaff; }
.existing-batch-row.active { background: #f1efff; box-shadow: inset 3px 0 0 #6b59ec; }
.existing-batch-row > span { display: grid; gap: 4px; min-width: 0; }
.existing-batch-row b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.existing-batch-row small { color: var(--muted); font-size: 9px; }
.existing-batch-row span:nth-child(2) { text-align: right; }
.existing-batch-row span:nth-child(2) strong { font-size: 15px; }
.existing-batch-row em { justify-self: end; color: #6150df; font-size: 9px; font-style: normal; font-weight: 800; }
.empty-batch-source { min-height: 105px; padding: 20px; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; }
.empty-batch-source strong { font-size: 12px; }.empty-batch-source span { color: var(--muted); font-size: 10px; }
.workflow-new-import { border: 1px solid var(--line); border-radius: 9px; background: #fafbfe; }
.workflow-new-import summary { padding: 13px 15px; color: #5f4de0; cursor: pointer; font-size: 11px; font-weight: 800; }
.workflow-new-import[open] summary { border-bottom: 1px solid var(--line); }
.workflow-new-import > div { padding: 14px; display: grid; gap: 9px; }
.workflow-new-import input[type="file"], .workflow-new-import select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 11px; }
.workflow-new-import .primary-button { width: 100%; }

@media (max-width: 720px) {
  .workflow-tabs { grid-template-columns: 1fr 1fr; padding: 7px; }
  .workflow-tabs button { min-height: 52px; border-bottom-width: 2px; }
  .existing-batch-row { grid-template-columns: 1fr auto; }
  .existing-batch-row > span:nth-child(2) { display: none; }
}

.account-queue-panel.active { min-height: 570px; }
.account-queue-panel .guided-form { max-width: 660px; padding-block: 34px; }
.account-login-overview { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.account-login-overview span { min-height: 54px; padding: 9px 11px; display: grid; align-content: center; gap: 2px; color: var(--muted); border-right: 1px solid var(--line); font-size: 9px; }
.account-login-overview span:last-child { border-right: 0; }
.account-login-overview strong { color: var(--ink); font-size: 16px; }
.account-login-list { max-height: 290px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; }
.account-login-row { width: 100%; min-height: 56px; padding: 9px 12px; display: grid; grid-template-columns: 10px minmax(140px,1fr) auto; gap: 10px; align-items: center; border: 0; border-bottom: 1px solid #eceef3; color: var(--ink); background: white; text-align: left; }
.account-login-row:last-child { border-bottom: 0; }
.account-login-row:hover { background: #fafaff; }
.account-login-row.active { background: #f1efff; box-shadow: inset 3px 0 0 #6b59ec; }
.account-login-row > span:not(.account-state-dot) { display: grid; gap: 3px; }
.account-login-row > span:last-child { text-align: right; }
.account-login-row b { font-size: 11px; }.account-login-row small { color: var(--muted); font-size: 9px; }
.account-login-row em { color: #555a6e; font-size: 10px; font-style: normal; font-weight: 700; }
.account-state-dot { width: 8px; height: 8px; border-radius: 50%; }
.account-state-dot.ready { background: #21b982; box-shadow: 0 0 0 4px rgba(33,185,130,.1); }
.account-state-dot.pending { background: #e7a544; box-shadow: 0 0 0 4px rgba(231,165,68,.1); }
.account-state-dot.empty { background: #b8bbc7; }
.selected-account-note { padding: 11px 13px; display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; border: 1px solid #dedaf6; border-radius: 8px; background: #faf9ff; }
.selected-account-note span { grid-row: 1 / 3; align-self: center; color: #7162e8; font-size: 9px; font-weight: 800; }
.selected-account-note strong { font-size: 11px; }.selected-account-note small { color: var(--muted); font-size: 9px; }

@media (max-width: 720px) {
  .account-login-overview { grid-template-columns: 1fr 1fr; }
  .account-login-overview span:nth-child(2) { border-right: 0; }
  .account-login-overview span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.admin-nav {
  max-width: 1180px;
  min-height: 48px;
  margin: -8px auto 14px;
  padding: 5px;
  display: none;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 8px 25px rgba(50,43,105,.04);
}
.admin-nav.visible { display: flex; }
.admin-nav button {
  min-height: 36px;
  padding: 0 14px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 7px;
  color: #6c7184;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
}
.admin-nav button.active { color: #5c4adf; background: #eeefff; }

.team-management-shell {
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}
.team-table { width: 100%; border-collapse: collapse; }
.team-table th, .team-table td { padding: 15px 18px; border-bottom: 1px solid #eceef3; text-align: left; font-size: 12px; }
.team-table th { color: #8c90a1; background: #fafbfe; font-size: 10px; }
.employee-cell { display: flex; align-items: center; gap: 10px; }
.employee-cell .avatar { color: #6553e7; background: #eeebff; }
.status-label.neutral { color: #737789; background: #f0f1f5; }
.status-label.neutral::before { background: #aeb2c0; }
.role-guide { padding: 25px 28px; border-bottom: 1px solid var(--line); }
.role-guide h3, .team-audit h3 { margin: 0; font-size: 16px; }
.role-list { margin-top: 16px; display: grid; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.role-list > div { min-height: 54px; padding: 12px 15px; display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.role-list > div:last-child { border-bottom: 0; }
.role-list strong { font-size: 12px; }.role-list span { color: var(--muted); font-size: 11px; }
.team-audit > header { padding: 24px 28px 14px; }
.team-audit .audit-row { padding-inline: 28px; }

.automation-settings, .business-settings { padding: 0 30px 28px; }
.automation-settings > section, .business-settings > section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.automation-settings > section:last-child, .business-settings > section:last-child { border-bottom: 0; }
.automation-settings h3, .business-settings h3 { margin: 0 0 6px; font-size: 15px; }
.automation-settings section > p, .section-title-row p { margin: 0; color: var(--muted); font-size: 11px; }
.inline-actions { margin-top: 15px; display: flex; gap: 8px; }
.setting-row { min-height: 58px; padding: 11px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 1px solid #f0f1f5; }
.setting-row:last-child { border-bottom: 0; }
.setting-row > span { display: grid; gap: 4px; }
.setting-row b { font-size: 12px; }.setting-row small { color: var(--muted); font-size: 10px; }.setting-row i { color: #6553e7; font-style: normal; font-weight: 800; }
.setting-row select { min-width: 210px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; font-size: 11px; }
.setting-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #6553e7; }
.setting-row input[type="range"] { width: 210px; accent-color: #6553e7; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.template-form { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.template-form label { display: grid; gap: 7px; color: #474b5c; font-size: 11px; font-weight: 700; }
.template-form textarea, .template-form input { width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; outline: 0; font-size: 11px; font-weight: 400; }
.template-form textarea { min-height: 88px; resize: vertical; }
.business-settings dl { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.business-settings dl > div { min-height: 50px; padding: 11px 14px; display: grid; grid-template-columns: 130px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.business-settings dl > div:last-child { border-bottom: 0; }
.business-settings dt { color: var(--muted); font-size: 11px; }.business-settings dd { margin: 0; font-size: 12px; }
.country-table { margin-top: 16px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.country-table > div { min-height: 48px; padding: 10px 14px; display: grid; grid-template-columns: 1.2fr .6fr 1.4fr 1fr .6fr; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); font-size: 11px; }
.country-table > div:last-child { border-bottom: 0; }
.country-table span { color: var(--muted); }
.add-country { margin-top: 14px; }
.add-country summary { color: #6150e4; cursor: pointer; font-size: 11px; font-weight: 700; }
.add-country .group-form { margin-top: 12px; grid-template-columns: repeat(3,1fr); }
.add-country .group-form input { height: 40px; }

@media (max-width: 720px) {
  .admin-nav { margin-top: 0; }
  .role-list > div, .business-settings dl > div { grid-template-columns: 1fr; }
  .template-form { grid-template-columns: 1fr; }
  .country-table > div { grid-template-columns: 1fr 1fr; }
  .setting-row { align-items: flex-start; flex-direction: column; }
  .setting-row select, .setting-row input[type="range"] { width: 100%; }
  .automation-settings, .business-settings { padding-inline: 22px; }
}

/* 2026 production information architecture: one workflow, one focus, one visual system. */
:root {
  --ink: #17192b;
  --muted: #74798e;
  --canvas: #f5f6fb;
  --line: #e4e6ef;
  --green-900: #32256f;
  --green-800: #6553e7;
  --green-600: #7362ef;
  --green-100: #eeebff;
  --lime: #7866f2;
  --shadow: 0 18px 55px rgba(50, 43, 105, .08);
}

body {
  background:
    radial-gradient(circle at 82% 12%, rgba(231, 221, 255, .55), transparent 25%),
    var(--canvas);
}

.app-shell { grid-template-columns: 226px minmax(0, 1fr); }
.sidebar {
  width: 226px;
  padding: 22px 14px 16px;
  color: var(--ink);
  background: rgba(252, 252, 255, .96);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 30px rgba(52, 47, 96, .025);
}
.sidebar::before { display: none; }
.brand { min-height: 48px; padding: 0 10px 26px; }
.brand-mark {
  width: 38px;
  height: 38px;
  color: white;
  background: linear-gradient(135deg, #6d5df6, #a24de3);
  box-shadow: 0 7px 16px rgba(109, 93, 246, .25);
  transform: none;
  font-family: inherit;
}
.brand strong { font-size: 16px; }
.brand span { color: var(--muted); opacity: 1; font-size: 10px; }
.nav { gap: 5px; }
.nav-item {
  min-height: 46px;
  padding: 11px 13px;
  color: #686d83;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
}
.nav-item span { color: #697087; font-size: 17px; }
.nav-item.active, .nav-item:hover { color: #5645df; background: #eeefff; }
.nav-item.active { box-shadow: none; }
.nav-item.active span { color: #6553e7; }
.nav-item b { color: white; background: #6b59ec; }
.sidebar-note {
  color: var(--ink);
  border-color: #e4e1f7;
  background: #f6f4ff;
  border-radius: 11px;
}
.sidebar-note small { color: var(--muted); }
.pulse { background: #24ba88; box-shadow: 0 0 0 5px rgba(36,186,136,.11); }
.account-mini { border-top-color: var(--line); }
.account-mini .avatar { color: #6553e7; background: #eeebff; }
.account-mini small { color: var(--muted); }
.account-mini button { color: #73788a; }

.main { grid-column: 2; padding: 24px 32px 48px; }
.topbar {
  min-height: 58px;
  margin: -24px -32px 24px;
  padding: 13px 32px;
  align-items: center;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.topbar .eyebrow { margin-bottom: 2px; color: #999daf; font-size: 9px; letter-spacing: .7px; }
h1 { font-size: 19px; letter-spacing: -.35px; }
#discover-button { display: none; }
.primary-button, .ghost-button, .light-button { min-height: 40px; border-radius: 8px; padding: 10px 16px; font-size: 12px; }
.primary-button { background: linear-gradient(135deg, #7564f3, #6553e7); box-shadow: 0 8px 20px rgba(101,83,231,.18); }
.primary-button:hover { background: #5c4bd5; }

.guided-workflow, .batch-table-shell, .settings-shell {
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}
.guided-header {
  min-height: 126px;
  padding: 28px 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #ececf2;
  background: linear-gradient(120deg, #ffffff 0%, #faf9ff 66%, #f0edff 100%);
}
.guided-header h2 { margin: 2px 0 8px; font-size: 25px; letter-spacing: -.6px; }
.guided-header p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.readiness-pill {
  min-width: 154px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid #ded9ff;
  border-radius: 10px;
  background: rgba(255,255,255,.78);
}
.readiness-pill strong { color: #6553e7; font-size: 24px; }
.readiness-pill span { color: var(--muted); font-size: 11px; line-height: 1.35; }

.guided-steps {
  padding: 20px 34px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  border-bottom: 1px solid #ececf2;
  background: #fff;
}
.guided-steps i { height: 1px; margin: 0 16px; background: #dfe1ea; }
.guided-steps button {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  color: #999daf;
  background: none;
  font-size: 12px;
  font-weight: 700;
}
.guided-steps b {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe1ea;
  border-radius: 50%;
  color: #8a8fa2;
  background: white;
  font-size: 11px;
}
.guided-steps button.active { color: #5947df; }
.guided-steps button.active b { color: white; border-color: #6b59ec; background: #6b59ec; box-shadow: 0 5px 12px rgba(107,89,236,.22); }
.guided-steps button.done { color: #31364a; }
.guided-steps button.done b { color: #16845f; border-color: #c8ecde; background: #e9f8f2; }
.guided-steps button.done b::after {
  content: "";
  width: 6px;
  height: 11px;
  display: block;
  border-right: 2px solid #16845f;
  border-bottom: 2px solid #16845f;
  transform: translateY(-1px) rotate(45deg);
}
.guided-steps button.done b { font-size: 0; }

.guided-content { min-height: 440px; }
.guided-panel { display: none; }
.guided-panel.active {
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(420px, 1.22fr);
}
.guided-copy {
  padding: 58px 46px;
  background: #fafaff;
  border-right: 1px solid #ececf2;
}
.guided-copy > span { color: #705feb; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.guided-copy h3 { margin: 14px 0 12px; font-size: 25px; line-height: 1.25; letter-spacing: -.6px; }
.guided-copy p { max-width: 330px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.guided-form {
  max-width: 580px;
  width: 100%;
  padding: 54px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.guided-form > input:not([type="checkbox"]), .guided-form > select {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #dfe1e9;
  border-radius: 8px;
  outline: 0;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}
.guided-form > input:focus, .guided-form > select:focus { border-color: #8070f3; box-shadow: 0 0 0 3px rgba(128,112,243,.1); }
.guided-form input[type="file"] { height: auto; padding: 12px; background: #fafaff; }
.guided-form .primary-button, .guided-form .ghost-button { width: 100%; }
.workflow-check { margin: 3px 0; color: #62677b; font-size: 12px; }
.workflow-account-card, .workflow-status-list { margin: 0 0 2px; gap: 8px; }
.workflow-account-card span, .workflow-status-list span {
  min-height: 42px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
}
.workflow-account-card .ok, .workflow-status-list .ok { color: #197557; border-color: #d9eee5; background: #f0faf6; }
.workflow-account-card .blocked, .workflow-status-list .blocked { color: #9a5f2f; border-color: #f2e2cd; background: #fff8ee; }
.import-preview { min-height: 44px; padding: 12px 13px; border: 1px dashed #d3d6e1; border-radius: 8px; color: var(--muted); background: #fafbfe; font-size: 12px; }
.simple-summary { padding: 14px; display: grid; gap: 4px; border: 1px solid #e2e0f2; border-radius: 9px; background: #faf9ff; }
.simple-summary span, .simple-summary small { color: var(--muted); font-size: 11px; }
.simple-summary strong { font-size: 14px; }

.batch-dashboard { display: block; }
.list-page-head {
  min-height: 110px;
  padding: 25px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.list-page-head h2 { margin: 2px 0 7px; font-size: 22px; }
.list-page-head > div > span { color: var(--muted); font-size: 12px; }
.table-scroll { overflow: auto; }
.batch-table { width: 100%; border-collapse: collapse; }
.batch-table th, .batch-table td { padding: 16px 18px; border-bottom: 1px solid #eceef3; text-align: left; white-space: nowrap; }
.batch-table th { color: #8c90a1; background: #fafbfe; font-size: 11px; font-weight: 700; }
.batch-table td { color: #3f4355; font-size: 13px; }
.batch-table td:first-child { min-width: 260px; }
.batch-table td strong, .batch-table td small { display: block; }
.batch-table td strong { margin-bottom: 5px; color: var(--ink); }
.batch-table td small { color: var(--muted); font-size: 10px; }
.status-label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.status-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.status-label.running { color: #137c59; background: #e9f8f2; }
.status-label.running::before { background: #1eb982; }
.status-label.waiting { color: #8e6633; background: #fff5e8; }
.status-label.waiting::before { background: #e8a64f; }
.empty-state { min-height: 520px; display: grid; place-items: center; text-align: center; }
.empty-state > div { max-width: 390px; }
.empty-state h2 { margin: 15px 0 8px; font-size: 22px; }
.empty-state p { margin: 0 0 22px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.empty-icon { width: 54px; height: 54px; margin: auto; display: grid; place-items: center; border-radius: 15px; color: #6553e7; background: #eeebff; font-size: 25px; }

.settings-shell { display: grid; grid-template-columns: 205px minmax(0,1fr); min-height: 560px; }
.settings-tabs { padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); background: #fafbfe; }
.settings-tabs button { min-height: 43px; padding: 0 13px; border: 0; border-radius: 8px; color: #666b7e; background: transparent; text-align: left; font-size: 12px; font-weight: 700; }
.settings-tabs button.active { color: #5e4ce2; background: #eeefff; }
#settings-content { min-width: 0; }
.settings-pane > header { min-height: 114px; padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); }
.settings-pane h2 { margin: 2px 0 7px; font-size: 22px; }
.settings-pane header div > span { color: var(--muted); font-size: 12px; }
.settings-form { max-width: 720px; padding: 25px 30px; display: grid; gap: 18px; }
.settings-form > label:not(.toggle-row) { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 8px 18px; align-items: center; color: #45495b; font-size: 12px; font-weight: 700; }
.settings-form input:not([type="checkbox"]) { height: 42px; padding: 0 12px; border: 1px solid #dfe1e9; border-radius: 8px; outline: 0; font-size: 12px; font-weight: 400; }
.settings-form label > small { grid-column: 2; color: var(--muted); font-size: 10px; font-weight: 400; }
.toggle-row { padding: 14px; display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fafbfe; }
.toggle-row span { display: grid; gap: 4px; }
.toggle-row strong { font-size: 13px; }.toggle-row small { color: var(--muted); font-size: 10px; }
.toggle-row input { width: 18px; height: 18px; accent-color: #6553e7; }
.settings-pane > footer { padding: 20px 30px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }
.settings-summary { padding: 8px 11px; border-radius: 8px; color: #5f4ee2; background: #eeefff; font-size: 11px; font-weight: 700; }
.settings-link-content { min-height: 330px; padding: 46px; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.settings-link-content b { font-size: 15px; }.settings-link-content p { max-width: 450px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.data-table th, .data-table td { font-size: 12px; }
.data-table th { font-size: 10px; }
.device-card, .panel, .stat-card { border-color: var(--line); box-shadow: none; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 78px minmax(0,1fr); }
  .sidebar { width: 78px; }
  .main { grid-column: 2; }
  .guided-panel.active { grid-template-columns: 1fr; }
  .guided-copy { padding: 34px; border-right: 0; border-bottom: 1px solid var(--line); }
  .guided-form { max-width: none; padding: 38px 34px; }
  .settings-shell { grid-template-columns: 165px minmax(0,1fr); }
}

@media (max-width: 720px) {
  .sidebar { width: 100%; color: var(--ink); }
  .main { padding: 18px 12px 36px; }
  .topbar { margin: -18px -12px 16px; padding: 12px; }
  .top-actions .primary-button { padding-inline: 10px; }
  .guided-header { padding: 22px; align-items: flex-start; flex-direction: column; }
  .readiness-pill { width: 100%; }
  .guided-steps { padding: 15px 14px; grid-template-columns: repeat(4,1fr); }
  .guided-steps i { display: none; }
  .guided-steps button { justify-content: center; }
  .guided-steps button span { display: none; }
  .guided-copy, .guided-form { padding: 26px 22px; }
  .guided-panel.active, .guided-content { min-height: 0; }
  .settings-shell { display: block; }
  .settings-tabs { padding: 8px; flex-direction: row; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .settings-tabs button { flex: 0 0 auto; }
  .settings-pane > header, .settings-link-content { padding: 22px; align-items: flex-start; flex-direction: column; }
  .settings-form { padding: 22px; }
  .settings-form > label:not(.toggle-row) { grid-template-columns: 1fr; }
  .settings-form label > small { grid-column: 1; }
}

.device-head-actions { display: flex; align-items: center; gap: 12px; }
.provision-error { display: block; margin-top: 4px; color: var(--muted, #7e948a); font-size: 11px; max-width: 220px; }
.status-label.waiting { background: rgba(233, 169, 69, 0.14); color: #b7791f; }
