@import "https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Onest:wght@500;600;700&display=swap";:root{color:#17223d;font-synthesis:none;background:#f4f7fb;font-family:Manrope,Inter,ui-sans-serif,system-ui,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(circle at 92% -10%,#dce9ff 0,#0000 29rem),#f4f7fb;min-width:320px;margin:0}button,input,textarea{font:inherit}button{cursor:pointer;border:0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline-offset:3px;outline:3px solid #80aaff}main{width:min(100%,1640px);min-height:100vh;margin:0 auto;padding:24px clamp(18px,4vw,68px) 64px}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{letter-spacing:-.035em;font-family:Onest,Manrope,sans-serif}.app-header{-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);background:#ffffffc7;border:1px solid #e4eaf4;border-radius:20px;grid-template-columns:minmax(230px,1fr) auto minmax(230px,1fr);align-items:center;gap:20px;min-height:74px;margin:0 0 42px;padding:10px 12px;display:grid;box-shadow:0 12px 40px #28447412}.brand{min-width:0;color:inherit;text-align:left;background:0 0;align-items:center;gap:11px;padding:4px 8px;display:flex}.brand-mark{color:#fff;background:linear-gradient(135deg,#315bd6,#7c58e9);border-radius:12px;flex:none;place-items:center;width:37px;height:37px;font:800 1.15rem/1 Onest,sans-serif;display:grid;box-shadow:0 7px 16px #4669ce55}.brand-copy{min-width:0}.brand h1{white-space:nowrap;margin:1px 0 0;font-size:1.04rem}.eyebrow{color:#5270b1;letter-spacing:.15em;font-size:.63rem;font-weight:800}.app-nav{background:#eff3fa;border-radius:12px;gap:4px;padding:4px;display:flex}.app-nav button{color:#62708a;background:0 0;border-radius:9px;padding:9px 14px;font-size:.86rem;font-weight:700}.app-nav button[aria-current=page]{color:#263f88;background:#fff;box-shadow:0 2px 7px #344c7b1a}.user{color:#263f88;background:#fff;border:1px solid #dde6f4;border-radius:12px;justify-self:end;padding:10px 14px;font-size:.86rem;font-weight:800}.user:before{content:"●";color:#39b87f;margin-right:7px;font-size:.7em}.panel,.empty,.widget{background:#fff;border:1px solid #e1e8f2;border-radius:18px;box-shadow:0 12px 30px #2941690e}.panel{padding:clamp(18px,2.2vw,28px)}.empty{text-align:center;padding:30px}form{gap:14px;display:grid}label{color:#46546c;gap:7px;font-size:.84rem;font-weight:700;display:grid}input,textarea{color:#17223d;background:#fff;border:1px solid #d8e1ef;border-radius:10px;width:100%;padding:11px 12px;transition:border-color .16s,box-shadow .16s}input:focus,textarea:focus{border-color:#4d76e1;outline:0;box-shadow:0 0 0 3px #4d76e11c}.primary{color:#fff;text-align:center;background:linear-gradient(135deg,#315bd6,#674ad7);border-radius:10px;justify-content:center;align-items:center;min-height:42px;padding:10px 15px;font-weight:800;text-decoration:none;transition:transform .16s,box-shadow .16s;display:inline-flex;box-shadow:0 8px 16px #4266c533}.primary:hover{transform:translateY(-1px);box-shadow:0 11px 21px #4266c544}.primary:disabled{opacity:.65;cursor:wait}.danger{color:#ae3855;background:#fff0f2;border-radius:9px;padding:9px 11px;font-weight:700}.muted{color:#72809a;font-size:.88rem;line-height:1.55}.error,.warning{border-radius:10px;padding:12px 14px;font-size:.88rem}.error{color:#a42b49;background:#fff0f2}.warning{color:#8a5b14;background:#fff8e8}.welcome{max-width:660px;padding-top:16vh}.welcome h1{max-width:550px;margin:8px 0 22px;font-size:clamp(2.25rem,5vw,4rem);line-height:1.04}.welcome .primary{width:fit-content}.page-title,.title{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:26px;display:flex}.page-title>div,.title>div{max-width:760px}.page-title h2,.title h2{margin:6px 0 9px;font-size:clamp(1.85rem,3vw,2.65rem);line-height:1.08}.page-title p,.title p{color:#72809a;margin-bottom:0;line-height:1.6}.dashboard-list-layout{grid-template-columns:minmax(250px,310px) minmax(0,1fr);align-items:start;gap:26px;display:grid}.create-dashboard{color:#fff;background:linear-gradient(160deg,#243e91,#4e3a9a);border:0;position:sticky;top:18px;box-shadow:0 18px 38px #223b8b2b}.create-dashboard h3{margin-bottom:18px}.create-dashboard label{color:#dce5ff}.create-dashboard input{color:#fff;background:#ffffff14;border-color:#fff3}.create-dashboard input::placeholder{color:#c7d2f0}.create-dashboard .primary{color:#304cba;box-shadow:none;background:#fff}.dashboard-cards{background:#fff;border:1px solid #e1e8f2;border-radius:18px;overflow:hidden;box-shadow:0 12px 30px #2941690e}.dashboard-table-header,.dashboard-card{grid-template-columns:minmax(175px,1fr) minmax(250px,2fr) 100px 92px;align-items:center;gap:18px;display:grid}.dashboard-table-header{color:#79869c;letter-spacing:.06em;text-transform:uppercase;background:#f5f7fc;border-bottom:1px solid #e8edf5;padding:14px 20px;font-size:.72rem;font-weight:800}.dashboard-card{width:100%;color:inherit;text-align:left;background:#fff;border-bottom:1px solid #edf1f7;padding:19px 20px;transition:background .16s,transform .16s}.dashboard-card:last-child{border-bottom:0}.dashboard-card:hover,.dashboard-card:focus-visible{background:#f7f9ff}.dashboard-card h3,.dashboard-card p{margin:0}.dashboard-card h3{font-size:.98rem}.dashboard-card p{color:#72809a;font-size:.85rem;line-height:1.45}.dashboard-card>span:last-child{color:#4569d1;font-size:.81rem;font-weight:800}.card-arrow{color:#4569d1;justify-self:end;font-size:0}.card-arrow:after{content:"Открыть  →";font-size:.82rem;font-weight:800}.dashboard-detail{width:100%}.back-link{color:#486dd5;background:0 0;margin-bottom:20px;padding:0;font-weight:800}.title-actions{flex-wrap:wrap;gap:9px;display:flex}.title-actions>button:not(.danger),.section-title button{color:#3e5fc3;background:#eef3ff;border-radius:10px;padding:10px 12px;font-weight:800}.agent-activity,.agent-notice{color:#20724d;background:#effcf5;border:1px solid #bfe8d5;border-radius:11px;align-items:center;gap:9px;padding:10px 14px;font-size:.88rem;display:flex}.agent-activity{margin-bottom:16px}.agent-notice{z-index:20;position:fixed;bottom:24px;right:24px;box-shadow:0 16px 34px #19573a22}.agent-notice button{color:inherit;background:0 0;margin-left:6px;font-size:1.2rem}.agent-activity-dot{background:#28b675;border-radius:50%;flex:none;width:8px;height:8px;box-shadow:0 0 0 4px #28b6751f}.dashboard-agent-controls{display:none}.dashboard-filter-panel,.dashboard-refresh-note,.dashboard-view,.dashboard-detail>.panel{margin-top:18px}.dashboard-filter-panel{box-shadow:none;background:linear-gradient(100deg,#fbfcff,#f5f8ff);border-color:#dce6fb}.dashboard-filter-panel h3{margin:0 0 4px}.dashboard-filter-panel .muted{margin:0}.dashboard-heading{justify-content:space-between;align-items:baseline;gap:14px;margin:30px 2px 14px;display:flex}.dashboard-heading h3{margin:0;font-size:1.25rem}.dashboard-heading p{color:#72809a;margin:0;font-size:.82rem}.widget-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr));grid-auto-flow:dense;align-items:start;gap:18px;display:grid}.widget{min-width:0;padding:20px;transition:box-shadow .16s,transform .16s;overflow:hidden}.widget:hover{box-shadow:0 18px 40px #253e691a}.widget[draggable=true]{cursor:grab}.widget[draggable=true]:active{cursor:grabbing}.widget:has(.plotly-chart){grid-column:span var(--widget-columns,1);min-height:var(--widget-min-height,330px)}.widget:has(.metrics){min-height:220px}.widget:has(.table-wrap){grid-column:1/-1}.widget-title{border-bottom:1px solid #eef2f7;padding-bottom:13px}.widget h4{margin:0;font-size:.96rem}.auto-refresh-badge{color:#257452;background:#eafaf2}.widget-code-button{color:#4869c9;background:#f7f9fd;border-color:#dce5f4}.plotly-chart{width:100%;min-width:0;height:max(270px, calc(var(--widget-min-height,330px) - 70px))}.plotly-chart .plot-container,.plotly-chart .svg-container{width:100%!important;max-width:100%!important}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.metrics div{background:linear-gradient(135deg,#f3f6ff,#f9fbff);border-radius:12px;padding:15px}.metrics span{color:#7a879d;font-size:.77rem;display:block}.metrics strong{color:#263c82;margin-top:6px;font:700 1.55rem/1.1 Onest,sans-serif;display:block}.table-wrap{border:1px solid #edf1f7;border-radius:11px;overflow:auto}table{border-collapse:collapse;width:100%;font-size:.84rem}th,td{text-align:left;border-bottom:1px solid #edf1f7;padding:11px 12px}th{color:#66738c;letter-spacing:.04em;text-transform:uppercase;background:#f7f9fd;font-size:.72rem;position:sticky;top:0}tr:last-child td{border-bottom:0}.table-link{color:#4569d1;text-underline-offset:3px;font-weight:800}.svg-chart svg{border-bottom:1px solid #edf1f7;width:100%;height:220px}.svg-chart{position:relative}.svg-chart rect,.svg-chart circle{cursor:crosshair}.chart-tooltip{z-index:3;color:#fff;pointer-events:none;background:#182846f2;border-radius:10px;gap:2px;min-width:120px;padding:9px 11px;font-size:.78rem;display:grid;position:absolute;transform:translate(12px,-115%);box-shadow:0 10px 24px #18284633}.chart-tooltip b{color:#b8cbff}.chart-tooltip strong{font-size:.92rem}.chart-labels{color:#7a879d;justify-content:space-between;gap:8px;font-size:.72rem;display:flex;overflow:hidden}.proportion{align-items:center;gap:18px;display:flex}.proportion svg{width:140px;transform:rotate(-90deg)}.legend,.widget-list,.sankey{gap:8px;margin:0;padding:0;display:grid}.legend span,.widget-list li{border-bottom:1px solid #edf1f7;justify-content:space-between;align-items:center;gap:7px;padding-bottom:8px;font-size:.86rem;display:flex}.legend i{border-radius:50%;width:10px;height:10px}.gauge{text-align:center}.gauge b{font-size:2rem;display:block}.gauge div{background:#e7edf7;border-radius:9px;height:12px;margin:16px 0;overflow:hidden}.gauge i{border-radius:inherit;background:linear-gradient(90deg,#355fd9,#7c58e9);height:100%;display:block}.gauge span{color:#72809a;font-size:.82rem}.widget-text{white-space:pre-wrap;line-height:1.65}.unsupported{color:#8a5b14;overflow-wrap:anywhere;background:#fff8e9;border-radius:9px;padding:12px;font-size:.82rem}.heatmap{gap:4px;display:grid;overflow:auto}.heatmap>div{grid-template-columns:repeat(auto-fit,minmax(56px,1fr));gap:4px;display:grid}.heatmap span{color:#fff;text-align:center;background:#4c6fd2;border-radius:5px;padding:9px 5px;font-size:.75rem}.heatmap span:first-child{color:#72809a;text-align:left;background:0 0}.sankey>div{grid-template-columns:minmax(100px,1fr) minmax(36px,2fr) minmax(100px,1fr) 34px;align-items:center;gap:8px;font-size:.82rem;display:grid}.sankey b{background:linear-gradient(90deg,#7b62dc,#3868d7);border-radius:99px;height:14px}.sankey strong{text-align:right}.section-title,.connection{justify-content:space-between;align-items:center;gap:16px;display:flex}.section-title h3{margin-bottom:6px}.connection{border-top:1px solid #edf1f7;padding:14px 0}.connection>div{gap:5px;display:grid}.connection span,.connection em{color:#72809a;font-size:.82rem;font-style:normal}.user-page{max-width:1040px}.quick-access{margin-top:8px}.quick-access-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:18px;display:grid}.quick-access-item{color:#17223d;text-align:left;background:#f9fbff;border:1px solid #e1e8f2;border-radius:13px;gap:7px;min-height:120px;padding:17px;transition:transform .16s,background .16s;display:grid}.quick-access-item:hover,.quick-access-item:focus-visible{background:#f1f5ff;transform:translateY(-2px)}.quick-access-item strong{color:#3a5fca}.quick-access-item span{color:#72809a;font-size:.86rem}.modal-backdrop{z-index:10;background:#111d3980;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:18px;width:min(100%,590px);max-height:calc(100vh - 48px);padding:26px;overflow:auto;box-shadow:0 24px 80px #111d3970}.modal-title,.copyable-code-title{justify-content:space-between;align-items:center;gap:16px;display:flex}.modal-title h2{margin:5px 0 9px}.icon-button{color:#56657d;background:#eef2f8;border-radius:50%;width:34px;height:34px;font-size:1.5rem;line-height:1}.modal fieldset{border:1px solid #dfe6f2;border-radius:10px;gap:10px;padding:12px;display:grid}.modal legend{color:#5e6c83;padding:0 5px;font-size:.85rem}.modal .check{align-items:center;gap:9px;font-weight:500;display:flex}.modal .check input{width:auto}.modal input[readonly],.copyable-code-block pre{background:#f6f8fc}.connection-instructions,.copyable-code-block{gap:18px;margin:22px 0;display:grid}.copyable-code-title h3{margin:0;font-size:.9rem}.copyable-code-title button,.editor-actions>button{color:#31415d;background:#eef2f8;border-radius:9px;padding:9px 11px;font-size:.8rem;font-weight:800}.copyable-code-block pre{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #dfe6f2;border-radius:10px;max-height:220px;margin:0;padding:13px;font:.78rem/1.55 ui-monospace,monospace;overflow:auto}.public-dashboard{max-width:1320px;margin:0 auto}@media (width<=820px){main{padding-top:18px}.app-header{grid-template-columns:1fr auto;margin-bottom:28px}.app-nav{grid-area:2/1/auto/-1;justify-content:stretch}.app-nav button{flex:1}.dashboard-list-layout{grid-template-columns:1fr}.create-dashboard{position:static}.dashboard-table-header{display:none}.dashboard-card{grid-template-columns:1fr auto;gap:8px}.dashboard-card p,.dashboard-card>span:last-child{grid-column:1}.dashboard-card p{grid-row:2}.dashboard-card>span:last-child{grid-row:3}.card-arrow{grid-area:1/2/span 3}.widget-grid{grid-template-columns:1fr}:is(.widget:has(.plotly-chart),.widget:has(.table-wrap)){grid-column:auto}.dashboard-heading{flex-direction:column;align-items:flex-start}.dashboard-detail>.panel{margin-top:14px}}@media (width<=560px){main{padding:14px 14px 36px}.app-header{border-radius:15px;gap:10px}.brand{padding-left:2px}.brand h1{font-size:.9rem}.brand-mark{border-radius:10px;width:32px;height:32px}.user{padding:8px 10px;font-size:.78rem}.page-title,.title,.section-title,.connection{flex-direction:column;align-items:flex-start}.page-title .primary,.title-actions,.title-actions button{width:100%}.panel,.widget{border-radius:14px}.panel{padding:17px}.widget{padding:16px}.metrics{grid-template-columns:1fr}.proportion{flex-direction:column;align-items:flex-start}.agent-notice{bottom:14px;left:14px;right:14px}.modal-backdrop{padding:12px}.modal{max-height:calc(100vh - 24px);padding:20px 16px}.sankey>div{grid-template-columns:1fr 1.2fr 1fr 28px;font-size:.72rem}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}.dashboard-edit-mode{background:#f8faff;border:1px solid #dce6fb;border-radius:14px;justify-content:space-between;align-items:center;gap:16px;margin-top:18px;padding:14px 16px;display:flex}.dashboard-edit-mode strong{color:#314caa}.dashboard-edit-mode p{margin:4px 0 0}.dashboard-edit-mode button{color:#3e5fc3;background:#eef3ff;border-radius:10px;flex:none;padding:10px 13px;font-weight:800}.widget--sized{grid-column:span var(--widget-columns,1);min-height:var(--widget-min-height,260px)}.widget--editing{outline-offset:3px;outline:2px dashed #7894e8}.widget--editing.widget:has(.table-wrap){grid-column:span var(--widget-columns,1)}.widget-edit-controls{color:#536685;background:#f7f9ff;border:1px solid #dbe5fa;border-radius:10px;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 14px;padding:10px;font-size:.78rem;display:flex}.widget-edit-controls>span{font-weight:800}.widget-edit-controls>div{align-items:center;gap:5px;display:inline-flex}.widget-edit-controls button{color:#3d5fc5;background:#fff;border:1px solid #cddaf5;border-radius:7px;width:27px;height:27px;font-size:1rem;line-height:1}.widget-edit-controls button:disabled{opacity:.45;cursor:not-allowed}.widget-edit-controls b{text-align:center;min-width:66px;font-size:.75rem}.widget--editing[draggable=true]{cursor:grab}.widget--editing[draggable=true]:active{cursor:grabbing}@media (width<=560px){.dashboard-edit-mode{flex-direction:column;align-items:flex-start}.dashboard-edit-mode button{width:100%}}.widget-title{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.auto-refresh-badge{color:#257452;white-space:nowrap;background:#eafaf2;border-radius:999px;margin-left:auto;padding:4px 8px;font-size:.72rem;font-weight:700}.widget-code-button{color:#4869c9;background:#f7f9fd;border:1px solid #dce5f4;border-radius:8px;padding:5px 9px;font-size:.76rem;font-weight:700}.widget-code-button:hover{background:#edf2ff}.code-editor{width:min(100%,720px)}.code-editor textarea{resize:vertical;color:#e7efff;tab-size:2;background:#17233d;border:1px solid #263961;border-radius:10px;width:100%;min-height:58vh;padding:14px;font:13px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}.editor-actions{justify-content:flex-end;gap:10px;margin-top:16px;display:flex}.editor-actions>button{border-radius:8px;padding:10px 14px}
