:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#252641;background:#f5f6f8;font-size:16px;--blue:#0755ed;--navy:#222244;--line:#e6e8ed;--muted:#606a7b;--green:#20a581;--red:#d95257}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer;border:0}button:disabled{cursor:wait;opacity:.55}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,p{margin-top:0}h1{font-size:28px;letter-spacing:-.7px;font-weight:600;margin-bottom:10px}h2{font-size:17px;font-weight:600;letter-spacing:-.2px}h3{font-size:14px;font-weight:600}.muted,.hint{color:var(--muted);line-height:1.6}.hint{font-size:14px}.eyebrow,.tiny-label,.side-label{font-size:14px;letter-spacing:1.3px;font-weight:600;color:#8b91a0}.eyebrow{margin-bottom:10px}button.primary{background:var(--blue);color:#fff;padding:11px 18px;border-radius:5px;font-weight:500}button.secondary{background:#fff;color:#41465b;border:1px solid #dde1e7;padding:9px 15px;border-radius:5px}button.primary:hover{background:#0045cf}button.secondary:hover{background:#f3f6fc}.rail{position:fixed;inset:0 auto 0 0;width:64px;background:var(--navy);display:flex;align-items:center;flex-direction:column;z-index:10}.rail-logo{margin:19px 0 35px;width:36px;height:36px;border-radius:12px;display:grid;place-content:center;color:white;background:var(--blue);font-weight:700;font-size:19px;position:relative}.rail-logo span{position:absolute;font-size:14px;right:6px;bottom:6px}.rail nav{width:100%;display:grid;gap:9px}.rail nav a{display:grid;place-items:center;height:46px;color:#c9cbdd;border-left:3px solid transparent}.rail nav a.active{background:#35365a;border-left-color:#79a1ff;color:white}.rail svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}.rail-bottom{margin-top:auto;margin-bottom:23px;border:1px solid #6c6e8c;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;color:#ddd}.sidebar{position:fixed;inset:0 auto 0 64px;width:216px;background:white;border-right:1px solid var(--line);padding:29px 18px}.workspace{display:grid;gap:7px;padding:0 12px 38px}.workspace strong{font-size:19px;letter-spacing:-.5px}.workspace span{font-size:14px;color:var(--muted)}.side-label{padding:0 12px 13px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{padding:13px 12px;color:#666b7d;border-radius:5px;display:flex;align-items:center;gap:12px;font-size:14px}.sidebar nav a.active{color:var(--blue);background:#edf3ff;font-weight:600}.sidebar nav svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.side-bottom{position:absolute;bottom:30px;left:29px;display:grid;gap:12px;font-size:14px}.side-bottom a{color:#797f90}.side-bottom .analytics{margin-top:14px;color:var(--blue)}.layout{margin-left:280px}header{height:72px;border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 36px;font-size:14px}.crumb{color:#9096a5}.slash{padding:0 12px;color:#c3c6cf}.header-right{display:flex;align-items:center;gap:22px}.live{font-size:14px;display:flex;gap:7px;align-items:center;color:#168769}.live.off{color:var(--red)}.avatar{height:31px;width:31px;border-radius:50%;color:#6e7390;background:#eff0f5;font-size:14px}main{max-width:1600px;margin:auto;padding:34px 36px 24px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:23px}.page-heading .muted{font-size:14px;margin-bottom:0}.page-heading button{white-space:nowrap}.notice{padding:15px 18px;border:1px solid #f0d9c2;border-left:3px solid #e4a057;background:#fff9f1;border-radius:5px;margin-bottom:22px;display:flex;gap:14px;line-height:1.6;font-size:14px}.notice strong{display:block;font-size:14px;margin-bottom:3px}.notice.error{border-color:#f0cccc;border-left-color:var(--red);background:#fff5f5}.notice.success{border-color:#a7e3d1;background:#effbf6;border-left-color:var(--green)}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:23px}.kpi{background:white;border:1px solid var(--line);border-radius:7px;padding:21px 22px;min-height:126px}.kpi-label{font-size:14px;color:#858b9b;margin-bottom:15px}.kpi-value{font-size:29px;font-weight:600;letter-spacing:-.8px;line-height:1.1}.kpi-value.small{font-size:19px;padding:5px 0}.kpi small{display:block;margin-top:10px;color:#959aaa;font-size:14px;line-height:1.5}.columns{display:grid;grid-template-columns:1.45fr 1fr;gap:22px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:7px;margin-bottom:22px;overflow:hidden}.panel-head{padding:21px 23px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line)}.panel-head h2{margin:0}.panel-head small{color:var(--muted);font-size:14px}.panel-body{padding:22px 23px}.service-row{display:flex;align-items:flex-start;gap:14px;padding:21px 23px;border-bottom:1px solid #f0f1f4}.service-row:last-child{border:0}.service-icon{width:39px;height:39px;border-radius:10px;background:#eef3ff;display:grid;place-items:center;color:var(--blue);font-size:18px;flex-shrink:0}.service-main{flex:1;min-width:0}.service-main h3{margin:0 0 7px}.service-main p{font-size:14px;color:#9095a3;margin:0;line-height:1.6}.service-actions{display:flex;align-items:center;gap:8px;margin-top:12px}.service-actions button{padding:6px 11px;font-size:14px}.badge{display:inline-flex;align-items:center;white-space:nowrap;padding:4px 7px;border-radius:4px;font-size:14px;background:#f0f2f7;color:#747a8d;gap:5px}.badge.good{background:#e8f8f2;color:#168769}.badge.bad{background:#fff0f0;color:#cc555b}.badge.warn{background:#fff5e4;color:#a87523}.badge.blue{background:#edf3ff;color:#3164c4}.dot{display:inline-block;height:5px;width:5px;border-radius:50%;background:currentColor}.channel{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #f0f1f4}.channel:last-child{border:0;padding-bottom:0}.channel:first-child{padding-top:0}.channel strong{font-size:14px;display:block;margin-bottom:4px}.channel small{font-size:14px;color:#9297a5;line-height:1.5;display:block}.channel>.badge{margin-left:auto}.channel-logo{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;color:#fff;font-size:14px;font-weight:700;flex-shrink:0}.wb{background:#bc36ac}.ozon{background:#1766ff}.crm{background:#21ab95}.steps{display:grid;grid-template-columns:repeat(4,1fr);padding:25px 23px;gap:10px}.step{position:relative;padding-right:10px}.step:not(:last-child):after{content:"→";position:absolute;right:5px;top:5px;color:#bec7d7}.step-num{color:#527fcc;background:#eef4ff;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:14px;margin-bottom:13px}.step strong{font-size:14px;display:block;margin-bottom:5px}.step small{color:#969cab;font-size:14px;line-height:1.5}.info-line{display:flex;justify-content:space-between;padding:13px 0;gap:20px;border-bottom:1px solid #f0f1f4;font-size:14px}.info-line:last-child{border:0}.info-line>span:first-child{color:#89909e}.info-line>span:last-child{text-align:right}table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}th{color:#959baa;font-size:14px;font-weight:500;background:#fafbfd;padding:12px 20px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:15px 20px;border-bottom:1px solid #f0f1f4;vertical-align:top;line-height:1.5}tr:last-child td{border:0}.table-wrap{overflow:auto}.text-button{border:0;background:none;color:var(--blue);padding:0;text-align:left}.summary{max-width:430px;color:#636a7b}.table-actions{display:flex;gap:12px;align-items:center}.table-actions input{width:235px}.empty{padding:45px 25px;text-align:center;color:#9198a8;font-size:14px}.empty strong{display:block;color:#5c6378;margin-bottom:10px}label{display:block;font-size:14px;color:#646b7d}input,select{border:1px solid #dbe0e8;border-radius:5px;padding:10px 12px;background:white;color:#383e55}input:focus,select:focus{border-color:#6891ee}label input[type=number]{display:block;margin:10px 0;width:190px}label input[type=checkbox]{accent-color:var(--blue);margin-right:9px}.settings-section{padding-bottom:23px;margin-bottom:22px;border-bottom:1px solid var(--line)}.settings-section:last-child{margin:0;padding:0;border:0}.settings-section h3{margin-bottom:16px}.form-footer{padding:17px 23px;background:#fbfcfe;border-top:1px solid var(--line);display:flex;align-items:center;gap:20px}.form-footer small{color:#9297a5;font-size:14px}.budget{height:5px;background:#edf0f6;border-radius:3px;overflow:hidden;margin:15px 0 12px}.budget>span{display:block;height:100%;background:var(--blue)}.progress-0{width:0}.progress-25{width:25%}.progress-50{width:50%}.progress-75{width:75%}.progress-100{width:100%}footer{padding:8px 36px 22px;display:flex;justify-content:space-between;font-size:14px;color:#a3a9b5}dialog{border:1px solid var(--line);border-radius:10px;box-shadow:0 20px 100px #20254333;max-width:480px;padding:28px;color:#34394e}dialog::backdrop{background:#171e3c44}dialog p{font-size:14px;line-height:1.7;color:#747b8c}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:28px}.drawer{position:fixed;inset:0 0 0 auto;margin:0;width:660px;max-width:95vw;height:100vh;max-height:100vh;border-radius:0;padding:34px;overflow:auto}.drawer .close{float:right;padding:4px 10px;font-size:22px}.drawer h1{margin-top:14px}.drawer h3{margin-top:25px}.pretext{white-space:pre-wrap;line-height:1.8;font-size:14px;color:#5d6578;background:#f7f9fc;padding:17px;border-radius:6px;overflow-wrap:anywhere}.login{min-height:100vh;display:grid;place-items:center;background:#f5f6fa}.login-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:43px 44px;width:420px;max-width:94vw;box-shadow:0 12px 35px #30346007}.brand-mark{font-size:17px;font-weight:800;letter-spacing:-1px;color:var(--navy);margin-bottom:37px}.brand-mark span{color:var(--blue)}.login-card h1{font-size:32px;line-height:1.2;margin-bottom:17px}.login-card label{margin-top:26px}.login-card input{display:block;width:100%;margin-top:9px}.login-card .primary{width:100%;text-align:left;display:flex;justify-content:space-between;margin-top:22px}.login-card .eyebrow{font-size:14px}.login-footer{position:absolute;bottom:25px;display:flex;gap:28px;color:#a2a8b5;font-size:14px}#login-error{color:var(--red);font-size:14px;margin:15px 0 0}body:has(.drawer[open]){overflow:hidden}[hidden]{display:none!important}@media(min-width:1650px){main{padding-top:44px}.kpi{padding:25px}.columns{grid-template-columns:1.65fr 1fr}}@media(max-width:1150px){.sidebar{width:184px;padding-left:12px;padding-right:12px}.layout{margin-left:248px}main{padding:26px 24px}.columns{grid-template-columns:1fr}.kpis{gap:10px}.kpi{padding:17px 14px}.kpi-value{font-size:25px}.panel{margin-bottom:18px}header{padding:0 24px}}@media(max-width:800px){.sidebar{display:none}.layout{margin-left:56px}.rail{width:56px}.kpis{grid-template-columns:repeat(2,1fr)}main{padding:24px 17px}h1{font-size:24px}header{height:60px;padding:0 17px}.page-heading{align-items:flex-start}.page-heading .secondary{font-size:0;padding:9px}.page-heading .secondary:first-letter{font-size:18px}.panel-head{padding:17px}.panel-body,.service-row{padding:17px}.steps{padding:20px 17px;grid-template-columns:repeat(2,1fr);gap:24px}.step:nth-child(2):after{display:none}.table-actions{flex-wrap:wrap}.panel-head:has(.table-actions){flex-direction:column;align-items:flex-start}footer{padding:10px 17px;line-height:1.8;gap:20px}.header-right{gap:12px}.crumb{display:none}.slash{display:none}.drawer{padding:24px}.service-row>.badge{font-size:14px}.form-footer{align-items:flex-start;flex-direction:column}}

.calc-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.calc-grid label{min-width:0}.calc-grid input{width:100%}textarea{width:100%;border:1px solid #dce3ed;border-radius:6px;padding:10px;font:inherit;resize:vertical}details{margin:16px 0}summary{cursor:pointer;color:#2785d9}details pre{white-space:pre-wrap;max-height:300px;overflow:auto;font-size:14px}.calc-links{display:flex;gap:18px;margin:20px 0}.calc-save{background:white;border:1px solid #dce3ed;border-radius:8px;margin-bottom:28px;position:sticky;bottom:10px;z-index:2}[id^="calculations-"]{scroll-margin-top:20px}.calc-grid label{margin:0}@media(max-width:700px){.calc-grid{grid-template-columns:1fr}.calc-links{flex-wrap:wrap}.calc-save{position:static}}
.account-label{display:flex;flex-direction:column;gap:8px;padding:16px;font-size:14px}.account-label select{width:100%;min-height:36px}.settings-section select{min-height:36px;max-width:100%}
#account-mobile{display:none;min-height:36px}#v12-settings .settings-section>label{display:flex;gap:8px;align-items:center;margin:12px 0}#v12-settings label:has(input[type=number]){align-items:flex-start;flex-direction:column}@media(max-width:800px){#account-mobile{display:block}}

#calculation-form label{display:block;font-size:14px;color:var(--muted);margin-bottom:12px}#calculation-form input:not([type=checkbox]){display:block;width:100%;margin-top:6px}#calculation-form textarea{display:block;margin-top:6px}#calculations-calendar label{margin-bottom:12px}

.logic-rules{display:grid;grid-template-columns:1fr 1fr;gap:24px}.logic-rules p{font-size:14px;line-height:1.6;color:#687082}.factor-card{border-bottom:1px solid #e8edf3;padding:12px 0;margin:0}.factor-card summary{display:flex;justify-content:space-between;gap:16px;line-height:1.6}.factor-card summary b{color:#6c7787;margin-right:10px}.factor-meta{font-size:14px;color:#788292;text-align:right}.factor-card p{font-size:14px;line-height:1.6}.prompt-card{border:1px solid #e3e9f0;border-radius:8px;padding:16px}.prompt-card small{color:#7c8695;margin-left:14px}.prompt-text{font-family:inherit;font-size:14px;line-height:1.7;white-space:pre-wrap;max-height:600px;overflow:auto;color:#384459}.example-overrides{display:flex;gap:24px;margin:20px 0}#severity-example label{display:grid;gap:6px;font-size:14px}blockquote{border-left:3px solid #d8e5fa;padding-left:12px;margin-left:0;color:#56647a}[hidden]{display:none!important}@media(max-width:700px){.logic-rules{grid-template-columns:1fr}.factor-card summary{display:block}.factor-meta{display:block;text-align:left}.example-overrides{display:grid}}

/* Comfortable reading scale and clear editing hierarchy across the console. */
:root{font-size:16px;line-height:1.55}h1{font-size:32px}h2{font-size:21px}h3{font-size:17px}button,input,select,textarea{font-size:16px}small,.hint{font-size:14px;color:#647084}.page-heading .muted{font-size:16px}.sidebar{width:250px}.layout{margin-left:314px}.sidebar nav a{font-size:16px;padding:14px 10px}.workspace span,.live,header{font-size:14px}main{max-width:1750px;padding:32px}.panel-head,.panel-body{padding:24px}.kpi-label{font-size:15px;color:#5e6a7f}.kpi-value{font-size:38px}.kpi-value.small{font-size:22px}.kpi small{font-size:14px;color:#647084}.info-line,table,label,.notice,.notice strong,.service-main p,.channel strong,.pretext,.factor-card p,.logic-rules p{font-size:16px}.badge{font-size:14px;padding:5px 9px}.service-actions button{font-size:14px;padding:8px 12px}.service-main p{color:#687487}.panel-head small,th,.channel small,.step small,.step strong,.form-footer small,footer{font-size:14px;color:#657085}.drawer{width:850px}.drawer .pretext{font-size:17px;color:#35415a}.drawer details summary{font-size:16px}.prompt-text,details pre{font-size:15px}.notice{line-height:1.65}#calculation-form label,#severity-example label{font-size:16px}.table-actions{flex-wrap:wrap}td{padding:20px;min-width:115px}.table-coverage{display:block;margin-top:8px;white-space:nowrap}.summary{max-width:540px;color:#414e65}.case-score{display:grid;grid-template-columns:1fr 1fr;gap:20px;background:#f1f5fd;padding:24px;margin-top:24px;border-radius:8px}.case-score strong{display:block;font-size:30px}.case-score meter{width:100%;height:12px}.version-banner{background:#fff;border:1px solid #dce5f2;border-top:4px solid #0755ed;border-radius:8px;padding:26px;display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-bottom:26px}.version-banner h2{font-size:27px;margin:8px 0}.version-banner p{margin-bottom:8px}.runtime-versions{display:grid;gap:14px;align-content:start}.runtime-versions>div{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between}.editor-tabs{display:flex;gap:12px;margin:24px 0;flex-wrap:wrap}.editor-tabs button{padding:14px 20px;background:#fff;border:1px solid #dbe2ed;border-radius:7px;color:#536079}.editor-tabs button.active{background:#0755ed;color:#fff;border-color:#0755ed}.editor-tabs button span{margin-left:10px;opacity:.8}fieldset{padding:0;border:0;margin:0;min-width:0}.threshold-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:24px 0}.threshold-grid label{background:#f5f7fb;padding:18px;border-radius:8px}.threshold-grid input{width:100%;font-size:24px;font-weight:600}.threshold-grid small{display:block}.factor-card summary{padding:12px 0;color:#253d61;font-size:17px}.factor-meta{font-size:14px;min-width:160px}.factor-inputs{display:grid;grid-template-columns:140px 1fr;gap:24px}.factor-inputs input[type=number]{width:100%}.factor-inputs textarea{margin-top:10px}.prompt-editor{padding:0}.prompt-editor>summary{display:flex;justify-content:space-between;gap:12px;padding:24px;font-size:20px;color:#253d61}.prompt-editor textarea{font-family:inherit;font-size:17px;line-height:1.7;margin-top:12px;min-height:280px}.prompt-editor small{font-size:14px}.version-history article{display:flex;justify-content:space-between;gap:24px;padding:24px 0;border-bottom:1px solid var(--line)}.version-history article p{margin:10px 0}.history-actions{display:flex;align-items:flex-start;flex-direction:column;gap:14px;min-width:225px}.diff-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.diff-grid>div{padding:16px;background:#f5f7fb;border-radius:6px;min-width:0}.diff-grid>div:last-child{background:#eff8f4}.diff-grid pre{font-family:inherit;line-height:1.6;margin-bottom:0;overflow-wrap:anywhere;max-height:380px}.change-row{border-bottom:1px solid var(--line);padding-bottom:16px}.example-checks{display:grid;grid-template-columns:1fr 1fr;gap:12px}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}.comparison>div{padding:24px;border:1px solid #e0e6ee;border-radius:8px}.comparison>div:last-child{background:#eef4ff;border-color:#a9c6ff}.comparison strong{display:block;font-size:27px;margin:8px 0}.comparison span{display:block;font-size:14px}.behavior-save{position:sticky;bottom:10px;z-index:3;background:#fff;border:1px solid #c8d8f1;border-radius:10px;box-shadow:0 4px 22px #213b6417;padding:20px 24px;display:grid;grid-template-columns:1fr auto;gap:12px 24px}.behavior-save input{width:100%;margin-top:6px}.behavior-save .save-actions{display:flex;gap:12px;align-items:center}.behavior-save small,.behavior-save p{grid-column:1/-1;margin:0}.behavior-save p{max-width:1100px;font-size:14px}.behavior-save button{min-height:46px}#behavior-editor input:focus,#behavior-editor textarea:focus{outline:2px solid #80aaff;outline-offset:2px}.report-kpis .kpi:nth-child(2){border-top:3px solid #d95257}.report-kpis .kpi:nth-child(3){border-top:3px solid #d99b30}
@media(max-width:1250px){.columns{grid-template-columns:1fr}.sidebar{width:220px}.layout{margin-left:284px}.version-banner{grid-template-columns:1fr}.behavior-save{position:static;grid-template-columns:1fr}.behavior-save .save-actions{flex-wrap:wrap}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.panel-head{flex-wrap:wrap}}@media(max-width:800px){.sidebar{display:none}.layout{margin-left:56px}main{padding:24px 16px}h1{font-size:28px}.page-heading .secondary{font-size:14px}.version-banner,.panel-body,.panel-head{padding:20px}.threshold-grid{gap:10px}.threshold-grid label{padding:12px}.factor-inputs,.diff-grid,.example-checks{grid-template-columns:1fr}.factor-inputs input[type=number]{width:120px}.version-history article{flex-direction:column}.history-actions{flex-direction:row;flex-wrap:wrap}.comparison{gap:10px}.comparison>div{padding:15px}.comparison strong{font-size:23px}.editor-tabs button{padding:12px}.service-row{flex-wrap:wrap}.service-row>.badge{font-size:14px}.header-right{gap:8px}.table-actions input{width:100%}.form-footer{gap:12px}.case-score{padding:16px}.prompt-editor>summary{flex-wrap:wrap}}@media(max-width:480px){.kpis,.threshold-grid,.comparison,.case-score{grid-template-columns:1fr}.version-banner h2{font-size:23px}.header-right .avatar{display:none}.page-heading{flex-wrap:wrap}.table-actions{width:100%}.editor-tabs{gap:8px}.editor-tabs button{width:100%;text-align:left}.behavior-save{padding:18px}.behavior-save button{width:100%}.history-actions button{width:100%}.service-actions{flex-wrap:wrap}.drawer{max-width:100vw;padding:20px}.runtime-versions>div{flex-direction:column}}

.behavior-save{position:static}.editor-jump{display:flex;justify-content:flex-end;margin:-10px 0 20px}

.account-switch select,.account-mobile select{font-size:16px}

.preview-selection{display:grid;grid-template-columns:2fr 1fr;gap:20px}.preview-selection label:first-child{grid-column:1/-1}.preview-selection select,.preview-selection input,.preview-history select{display:block;width:100%;margin-top:8px}.preview-run-actions{display:flex;gap:20px;align-items:center;margin-top:24px}.preview-run-actions small{max-width:480px}.preview-history{margin:26px 0}.preview-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.preview-result{background:#f5f7fb;padding:24px;border-radius:9px;border:1px solid #e0e6ef}.preview-result:last-child{background:#f0f5ff;border-color:#cbdcfb}.preview-result-title{display:flex;gap:12px;align-items:center;justify-content:space-between}.preview-result-title h3{margin:0}.preview-score{margin-top:18px}.preview-score>strong{font-size:38px;margin-right:18px}.preview-score p{font-size:14px;margin:12px 0 0}.preview-result-meta{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:24px 0 12px}.preview-delta{display:flex;gap:20px;flex-wrap:wrap;padding:20px;background:#eef4ff;border-radius:8px;margin:24px 0}.preview-section{border-top:1px solid var(--line);padding-top:24px;margin-top:24px}.preview-section h3{display:flex;align-items:center;gap:16px}.preview-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;background:#f8f9fc;padding:20px;border:1px solid #e5e9f1;border-radius:8px;min-width:0}.preview-text:last-child{background:#f1f6ff}.preview-text del{background:#ffe0df;color:#8b3537;text-decoration-thickness:1px}.preview-text ins{background:#d6f4df;color:#245c35;text-decoration:none}.preview-error{color:#a43c42;font-weight:600}.preview-pair blockquote small{display:block}.preview-pair .notice{font-size:15px}.preview-section .factor-card summary{flex-wrap:wrap}#preview-results{scroll-margin-top:24px}.preview-result .hint{margin-top:20px}@media(max-width:950px){.preview-pair,.preview-selection{grid-template-columns:1fr}.preview-run-actions{align-items:stretch;flex-direction:column}.preview-result-title{flex-wrap:wrap}.preview-section h3{flex-wrap:wrap}.preview-selection label:first-child{grid-column:auto}}
/* One menu. On desktop the sidebar is the navigation and also carries the brand, connection status and sign-out, so the working
   area starts at the top of the window. The icon rail returns only as the compact menu on narrow screens. */
.workspace{display:flex;align-items:center;gap:12px}.workspace>div,.workspace>.workspace-link{display:grid;gap:3px}.copilot-orb.side-orb{width:36px;height:36px;box-shadow:0 0 0 1px rgba(0,94,235,.12)}
.header-right{margin-left:auto}#updated{font-size:12px;color:#8a96a6}.side-bottom a,.side-bottom .analytics{margin:0;color:#636f7f}.layout>header .logout{margin:0;padding:0;font-size:14px;color:var(--blue);background:none}
.login-card{border-radius:8px;box-shadow:none}.brand-mark>.wordmark{margin-left:.3em}.brand-mark .wordmark{color:#000}
@media(min-width:801px){
:root{--side:250px}
.rail{display:none}
.sidebar{left:0;width:var(--side);display:flex;flex-direction:column;padding-top:24px;padding-bottom:96px;overflow-y:auto}.workspace{padding-bottom:24px}.sidebar nav a{padding-top:10px;padding-bottom:10px}
.side-bottom{position:static;margin-top:auto;padding:0 12px}
.layout{margin-left:var(--side)}
.layout>header{position:fixed;left:0;bottom:0;z-index:2;display:block;width:var(--side);height:auto;padding:14px 24px 16px 30px;background:#fff;border-bottom:0;border-top:1px solid var(--line);border-right:1px solid var(--line)}
.layout>header .header-right{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 12px}.layout>header #updated{grid-column:1/-1;order:3}
main{padding-top:28px}
}
@media(min-width:801px) and (max-width:1250px){:root{--side:220px}}
@media(max-width:800px){#updated{display:none}}
@media(max-width:480px){.header-right{gap:8px}#account-mobile{max-width:96px}}
/* Wordmark in the manner of the RetailCRM logo: heavy tight letters, the RetailCRM blue on «CX» and «s», «Agent» in black. */
.wordmark{font-weight:800;letter-spacing:-.04em;color:#000}.wordmark b{font-weight:inherit;color:#0068ff}.workspace strong.wordmark,.brand-mark .wordmark{font-size:22px;line-height:1.1}
/* Account switch at the foot of the menu: a menu, not a native select, so the chevron keeps its breathing room. */
.account-switch{position:relative}.account-switch summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px 8px 12px;border:1px solid #dee2e6;border-radius:6px;background:#fff;cursor:pointer}
.account-switch summary::-webkit-details-marker{display:none}.account-switch summary:hover{border-color:#afb9c3}.account-switch summary:focus-visible{outline:2px solid #005eeb;outline-offset:2px}
.account-switch summary>span{display:grid;gap:2px;min-width:0}.account-switch small{font-size:12px;line-height:14px;color:#8a96a6}.account-switch summary b{font-size:14px;font-weight:500;color:#1e2248;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-chevron{width:12px;height:8px;flex-shrink:0;color:#636f7f;transition:transform .15s ease}.account-switch[open] .account-chevron{transform:rotate(180deg)}
.account-menu{position:absolute;left:0;right:0;bottom:calc(100% + 6px);z-index:5;display:grid;padding:6px;background:#fff;border:1px solid #dee2e6;border-radius:8px;box-shadow:0 8px 24px rgba(30,34,72,.12)}
.side-bottom .account-menu a{padding:8px 10px;border-radius:6px;color:#1e2248;font-size:14px}.side-bottom .account-menu a:hover{background:#f4f6f8}
.side-bottom .account-menu a[aria-checked=true]{color:#005eeb;font-weight:600}.side-bottom .account-menu .account-open{margin-top:4px;border-top:1px solid #dee2e6;border-radius:0 0 6px 6px;color:#636f7f}

/* Settings tabs: one row above the four sections. */
.settings-tabs{display:flex;gap:4px;margin:0 0 24px;border-bottom:1px solid var(--line)}
.settings-tabs button{padding:12px 16px;background:none;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;color:#636F7F;font-size:14px;font-weight:500;border-radius:0}
.settings-tabs button.active{color:#005EEB;border-bottom-color:#005EEB}
.settings-tabs button:focus-visible{outline:2px solid #4D8DFF;outline-offset:-2px;border-radius:6px}
.version-label{display:block;font-size:14px;color:#636F7F;margin-bottom:4px}
body[data-page=quality] .kpi-value{font-size:30px}
@media(max-width:760px){.settings-tabs{flex-wrap:wrap}.settings-tabs button{flex:1 1 45%}}

/* Quality: the review of a low score lives in its table row. */
.quality-review{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.quality-review select,.quality-review input{min-width:0;font-size:14px;padding:6px 8px}
.quality-review input{flex:1 1 160px}
.quality-review button{padding:6px 10px}

/* The brand block and a line at the foot lead back to the Skillum cabinet, where the agent card lives. */
.workspace-link{color:inherit;text-decoration:none}
.workspace-link:hover .wordmark{opacity:.85}
.side-bottom .cabinet{display:block;color:#636F7F;font-size:14px;margin-bottom:10px}
.side-bottom .cabinet:hover{color:#005EEB}

/* Processing availability is distinct from panel/worker connectivity. */
.ops-notice{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;margin:0 0 20px;border:1px solid #eed6a2;border-radius:10px;background:#fff8e8;color:#684b15}.ops-notice strong,.ops-notice span{display:block}.ops-notice span{margin-top:5px;font-size:14px;line-height:1.5}.ops-notice a{flex-shrink:0;color:inherit;font-weight:600;text-decoration:underline}.ops-notice.ops-unknown{background:#f1f5fa;border-color:#dce4ef;color:#536580}.ops-status{font-size:13px;font-weight:600;border-radius:20px;padding:6px 12px;background:#fff2d4;color:#7a5010}.ops-status.ops-ready{background:#e8f5f0;color:#187852}.ops-status.ops-unknown{background:#eef2f7;color:#61728b}.ops-panel .panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ops-health{margin:0 0 14px;color:var(--muted,#687992)}.ops-reasons{font-weight:600}.ops-quotas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ops-quota{padding:18px;border:1px solid #e1e7f0;border-radius:10px;display:grid;gap:9px}.ops-quota>span,.ops-quota small{color:var(--muted,#687992)}.ops-quota>strong{font-size:27px;color:#2b4160}.ops-quota>strong span{font-size:16px;font-weight:400}.ops-quota meter{width:100%;height:8px}.ops-blocked{margin-top:22px}.ops-blocked ul{list-style:none;margin:12px 0 0;padding:0}.ops-blocked li{display:flex;gap:20px;justify-content:space-between;padding:11px 0;border-top:1px solid #edf1f6}.ops-blocked li span{color:var(--muted,#687992);font-size:14px}@media(max-width:600px){.ops-notice{align-items:flex-start;flex-direction:column;gap:12px}.ops-quotas{grid-template-columns:1fr}.ops-blocked li{flex-direction:column;gap:5px}.ops-panel .panel-head{align-items:flex-start;flex-wrap:wrap}}

.ops-quota meter::-webkit-meter-bar{border:0;background:#edf1f6;border-radius:8px}.ops-quota meter::-webkit-meter-optimum-value{background:#3b79e5}.ops-quota meter.ops-usage-high::-webkit-meter-optimum-value{background:#c88922}.ops-quota meter.ops-usage-full::-webkit-meter-optimum-value{background:#d15b45}.ops-quota meter::-moz-meter-bar{background:#3b79e5}.ops-quota meter.ops-usage-high::-moz-meter-bar{background:#c88922}.ops-quota meter.ops-usage-full::-moz-meter-bar{background:#d15b45}

/* The operating mode and the current processing state have separate links. */
#connection{line-height:1.45;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
#connection:hover{text-decoration-style:solid}
#connection[data-state=held],#connection[data-state=limited],#connection[data-state=paused]{color:#8a5a12}
#connection[data-state=unknown]{color:#606a7b}
.ops-reasons{list-style:none;padding:0;margin:0 0 20px;display:grid;gap:12px;font-weight:400}
.ops-reasons strong,.ops-reasons span{display:block}
.ops-reasons span{margin-top:3px;font-size:14px;line-height:1.6;color:var(--muted)}
@media(min-width:801px){.layout>header:has(#operating-shortcut) #operating-shortcut,.layout>header:has(#operating-shortcut) #connection{grid-column:1/-1;justify-self:start}.layout>header:has(#operating-shortcut) .header-right{row-gap:8px}.sidebar:has(~.layout #operating-shortcut){padding-bottom:210px}}
@media(max-width:800px){.layout>header:has(#operating-shortcut){height:auto;min-height:60px;padding-top:12px;padding-bottom:12px}.header-right:has(#operating-shortcut){flex-wrap:wrap}.header-right:has(#operating-shortcut) #connection{flex-basis:100%}}
