/* Manrope: headings. Inter: interface, Cyrillic text and tabular figures. Both are local. */
@font-face{font-family:Manrope;src:url('/assets/manrope.ttf') format('truetype');font-weight:200 800;font-display:swap}
@font-face{font-family:Inter;src:url('/assets/inter-variable.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
:root{--bg:#f6f7fb;--paper:#fff;--ink:#192235;--muted:#606b7c;--accent:#4059d6;--accent-light:#eef2ff;--line:#e5e8ef;--warn:#80551d;--danger:#a42e35;--radius:16px;--shadow:0 1px 2px #18263f04,0 4px 16px #18263f04;font-family:Inter,system-ui,sans-serif;font-synthesis:none;font-optical-sizing:auto;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}button,a,summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:wait;opacity:.55}input,select{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px 12px;min-height:44px;font-size:14px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #9bacf0;outline-offset:3px}[hidden]{display:none!important}
h1,h2,.brand{font-family:Manrope,Inter,sans-serif}h1{font-size:30px;line-height:1.25;letter-spacing:-1.15px;margin:0 0 7px;font-weight:750}h2{font-size:18px;letter-spacing:-.45px;margin:0;font-weight:750}.muted{color:var(--muted);font-size:12px;line-height:1.65}.icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;flex:none}
.topbar{height:64px;padding:0 max(28px,calc((100% - 1440px)/2));border-bottom:1px solid var(--line);background:var(--paper);display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;gap:11px;align-items:center;font-size:20px;font-weight:800;letter-spacing:-.8px}.brand img{flex:none;box-shadow:0 2px 4px #1b233211;border-radius:10px}.brand small{display:block;font-family:Inter,sans-serif;font-size:11px;font-weight:400;color:var(--muted);letter-spacing:0}.topbar nav{display:flex;gap:20px;align-items:center}.preview-note{font-size:11px;color:#4d5e8b;background:#f0f3fa;padding:5px 8px;border-radius:6px}
.button{border:1px solid var(--line);border-radius:10px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--paper);color:var(--ink);font-size:13px;font-weight:550;padding:10px 15px;transition:background .16s,border-color .16s,box-shadow .16s}.button:hover{background:#f4f6fb;border-color:#c8d0e2}.button:active{background:#edf0f7}.button.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 2px 4px #4059d61a}.button.primary:hover{background:#344bc4;box-shadow:0 3px 8px #4059d629}.button.primary:active{background:#293fae}.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:8px;min-height:44px;padding:8px 10px;background:none;font-size:12px;color:var(--muted);transition:background .16s,color .16s}.icon-button:hover{background:#edf1fa;color:var(--accent)}summary{cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}
.account-menu{position:relative}.account-menu>summary{width:40px;height:44px;display:grid;place-items:center;border-radius:9px;font-size:25px;line-height:1;color:var(--muted)}.account-menu>summary:hover,.account-menu[open]>summary{background:#f0f3fa}.account-popover{position:absolute;right:0;top:calc(100% + 6px);z-index:20;min-width:210px;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:0 12px 36px #18263f1a;animation:arrive .16s ease-out}.account-popover>span{display:block;font-size:11px;color:var(--muted);padding:8px 10px}.account-popover button{width:100%;justify-content:space-between}
.shell{max-width:1496px;margin:auto;padding:25px 28px 24px;animation:arrive .2s ease-out}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}.page-heading .muted{margin:0}.back-link{color:var(--muted);font-size:12px;display:inline-flex;align-items:center;min-height:30px;margin-bottom:2px}.back-link:hover{color:var(--accent)}.title-group{min-width:0}
.period-bar{display:flex;align-items:center;gap:12px;position:relative}.period-presets{display:grid;grid-template-columns:repeat(3,1fr);padding:4px;border:1px solid var(--line);background:#edf0f6;border-radius:11px;position:relative;--tab:0}.period-presets::before{content:"";position:absolute;top:4px;bottom:4px;left:4px;width:calc((100% - 8px)/3);background:var(--paper);border-radius:7px;box-shadow:0 1px 4px #15243b12;transform:translateX(calc(var(--tab)*100%));transition:transform .2s ease,opacity .16s;opacity:0}.period-presets:has([aria-pressed=true])::before{opacity:1}.period-presets:has([data-preset="7"][aria-pressed=true]){--tab:1}.period-presets:has([data-preset="30"][aria-pressed=true]){--tab:2}.period-presets button{border:0;border-radius:7px;padding:9px 14px;min-height:34px;color:var(--muted);background:none;font-size:12px;font-weight:550;white-space:nowrap;position:relative;z-index:1;transition:color .16s}.period-presets button:hover{color:var(--accent)}.period-presets button[aria-pressed=true]{color:var(--ink)}
.custom-period summary{border:1px solid var(--line);border-radius:11px;background:var(--paper);display:flex;align-items:center;gap:9px;padding:12px 13px;font-size:12px;font-weight:500;white-space:nowrap;min-height:44px;transition:border-color .16s}.custom-period[open] summary,.custom-period summary:hover{border-color:#bdc9ec}.custom-period summary .icon{width:16px;height:16px;color:var(--muted)}.period-popover{position:absolute;right:0;top:calc(100% + 9px);z-index:15;width:330px;border:1px solid var(--line);border-radius:14px;background:var(--paper);padding:20px;box-shadow:0 16px 48px #18263f1a;animation:arrive .16s ease-out}.period-popover>p{font-size:14px;font-weight:600;margin:0 0 16px}.period-popover label{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13px;color:var(--muted);margin-bottom:12px}.period-popover input{width:177px}.period-actions{display:flex;align-items:center;justify-content:space-between;margin-top:17px}.period-actions .icon-button{padding-left:0;font-size:11px}
.sync-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 17px;min-height:32px;color:var(--muted);font-size:12px}.sync-copy{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.sync-status{color:var(--accent)}.sync-time{font-size:12px}.refresh-button{min-height:32px;padding:4px 8px;font-size:12px}.refresh-button>span{font-size:20px;line-height:1}.spinning{animation:rotate 1s linear infinite}.notice{background:#fff7e9;border:1px solid #ecddc3;border-radius:10px;padding:12px 16px;font-size:12px;line-height:1.65;color:var(--warn);margin:0 0 16px}.loading-note{font-size:12px;color:var(--accent);margin:0 0 12px}
.metrics-band{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:12px}.metric-card{display:flex;flex-direction:column;text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px 18px;min-width:0;color:var(--ink);box-shadow:var(--shadow);transition:border-color .18s,box-shadow .18s,background .18s}.metric-card:hover:not(:disabled){background:#f4f6ff;border-color:#b8c5ec;box-shadow:0 3px 14px #4059d610}.metric-name{font-size:13px;font-weight:500;color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:22px;line-height:1.4}.metric-arrow{color:#697ca6;font-size:17px;transition:transform .18s,color .18s}.metric-card:hover .metric-arrow{transform:translateX(3px);color:var(--accent)}.metric-card strong{font-size:36px;line-height:1.2;letter-spacing:-1.3px;font-weight:600;font-variant-numeric:tabular-nums;display:block;white-space:nowrap;margin:14px 0 9px}.value-unit{font-size:.48em;letter-spacing:0;font-weight:500;color:var(--muted);margin-left:1px}.metric-note{font-size:12px;line-height:1.5;color:var(--muted);display:block}
.charts-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:26px}.chart-panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px 22px 14px;min-width:0;box-shadow:var(--shadow)}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.section-note{font-size:12px;line-height:1.65;color:var(--muted);margin:5px 0 0}.legend{display:flex;gap:14px;font-size:11px;color:var(--muted);padding-top:5px}.legend span{display:flex;gap:6px;align-items:center;white-space:nowrap}.legend i{width:7px;height:7px;border-radius:2px}.series-primary{background:var(--accent)}.series-secondary{background:#8b97b3}.unit{font-size:12px;color:var(--muted);padding-top:5px}.chart{width:100%;min-height:260px}.chart svg{display:block;width:100%;height:235px;overflow:visible}.chart .grid{stroke:#edf0f6;stroke-width:1;stroke-dasharray:3 5}.chart text{font-family:Inter,sans-serif;font-size:11px;fill:#59677a}.chart .bar{fill:var(--accent)}.chart .secondary-bar{fill:#8b97b3}.chart .line{stroke:var(--accent);stroke-width:2.5;fill:none;stroke-linecap:round;stroke-linejoin:round}.chart .dot{fill:var(--accent);stroke:#fff;stroke-width:2}.chart .area{fill:#edf2ff}.chart-hit{outline:none;cursor:pointer}.chart-hit .hit-area{fill:transparent}.chart-hit .selected-band{fill:#eef2ff;opacity:0;transition:opacity .16s}.chart-hit[aria-pressed=true] .selected-band{opacity:1}.chart-hit[aria-pressed=true] .dot{r:5.5;stroke:#fff;stroke-width:2.5}.chart-hit[aria-pressed=true] .bar{fill:#2d46c2}.chart-hit:focus-visible .bar,.chart-hit:focus-visible .dot{stroke:#172e7b;stroke-width:3}.chart-hit:hover .bar{fill:#3049c6}.chart-tooltip{pointer-events:none;filter:drop-shadow(0 3px 7px #19223516)}.chart-tooltip rect{fill:#fff;stroke:#e1e6ef}.chart-tooltip .tooltip-date{font-size:11px;fill:var(--muted)}.chart-tooltip .tooltip-value{font-size:12px;fill:var(--ink);font-weight:550}.chart-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #f0f2f7;margin-top:6px;padding-top:12px;min-height:42px}.chart-readout{font-size:12px;line-height:1.7;color:var(--muted);min-width:0}.chart-readout.selected{color:var(--ink)}.chart-day-link{font-size:11px;color:var(--accent);white-space:nowrap;min-height:32px;display:inline-flex;align-items:center;gap:6px}.chart-day-link:hover{text-decoration:underline}.chart svg{animation:chart-arrive .24s ease-out}
.incidents{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px 22px 0;scroll-margin-top:18px;box-shadow:var(--shadow)}.incidents .section-heading{align-items:center;margin-bottom:16px}.section-count{display:inline-block;vertical-align:middle;font:500 11px Inter,sans-serif;color:var(--muted);letter-spacing:0;border:1px solid var(--line);border-radius:6px;padding:3px 6px;margin-left:5px}.section-count:empty{display:none}.event-filter select{min-height:36px;font-size:12px;padding:8px 28px 8px 10px}.table-scroll{position:relative;overflow:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{font-size:11px;font-weight:500;color:var(--muted);text-align:left;background:#fafbfe;padding:11px 12px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:14px 12px;border-bottom:1px solid #edf0f5;line-height:1.65;vertical-align:top}tbody tr:last-child td{border-bottom:0}td:last-child{text-align:right;white-space:nowrap}.event-main{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.event-main>span:first-child{font-size:12px;font-weight:500}.event-meta{font-size:11px;color:var(--muted)}.event-details summary{font-size:11px;min-height:27px;display:inline-flex;align-items:center;gap:6px;color:var(--muted)}.event-details p{font-size:11px;color:var(--muted);margin:5px 0;white-space:normal;max-width:250px}.table-link{font-size:12px;color:var(--accent);font-weight:500;display:inline-flex;align-items:center;min-height:30px}.table-link:hover{text-decoration:underline}.status-label{font-size:10px;padding:3px 6px;border-radius:5px;background:#eef1f6;color:#5c6676;white-space:nowrap}.status-label.error{background:#fbecee;color:var(--danger)}.status-label.waiting{background:#eef1f6;color:#5c6676}.empty{text-align:center;padding:28px 16px;color:var(--muted);font-size:13px;line-height:1.7}.events-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line)}.events-footer .muted{font-size:11px}
.calculation-note{margin-top:21px;border-top:1px solid var(--line);padding-top:7px}.calculation-note>summary{display:inline-flex;align-items:center;gap:16px;color:var(--muted);font-size:12px;min-height:40px}.calculation-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 28px;padding:0 0 8px}.calculation-grid p{font-size:12px;line-height:1.8;color:var(--muted);margin:7px 0}.calculation-grid strong{color:var(--ink);font-weight:550}.page-footer{display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px;padding:13px 0 0}
.metric-detail{border:1px solid var(--line);border-radius:18px;width:min(860px,calc(100% - 32px));max-height:85dvh;padding:0;color:var(--ink);background:var(--paper);box-shadow:0 24px 80px #17243b2e}.metric-detail[open]{display:flex;flex-direction:column;animation:arrive .18s ease-out}.metric-detail::backdrop{background:#18223755;backdrop-filter:blur(2px)}.detail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:22px 24px;border-bottom:1px solid var(--line)}.detail-header h2{font-size:20px}.detail-header p{margin:6px 0 0}.detail-body{overflow:auto;padding:0 24px;min-height:180px}.detail-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px;border-top:1px solid var(--line)}.detail-footer>div{display:flex;gap:8px}
.page-dialogs .shell{height:calc(100dvh - 64px);display:flex;flex-direction:column;overflow:hidden;padding-top:14px;padding-bottom:20px}.page-dialogs .title-group{display:flex;gap:12px;align-items:center}.page-dialogs h1{font-size:24px;margin:0}.page-dialogs .back-link{margin:0;width:36px;height:36px;justify-content:center;font-size:21px;border:1px solid var(--line);border-radius:10px;background:var(--paper);flex:none}.page-dialogs .sync-bar{margin:7px 0 12px}.page-dialogs .notice{flex:none}.dialogs-workspace{display:grid;grid-template-columns:320px minmax(0,1fr);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--paper);flex:1;min-height:0;box-shadow:var(--shadow)}.chat-sidebar{border-right:1px solid var(--line);overflow:hidden;display:flex;flex-direction:column;min-height:0}.chat-search{padding:16px;border-bottom:1px solid var(--line)}.search-field{position:relative}.search-field>.icon{position:absolute;left:12px;top:13px;color:#7b88a0;width:16px;height:16px}.chat-search input{width:100%;font-size:12px;padding-left:36px;background:#f8f9fc}.chat-search>span{display:block;font-size:11px;margin:10px 0 0}.chat-list{overflow:auto;padding:6px;min-height:0}.chat-item{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;border:1px solid transparent;background:none;width:100%;padding:13px 10px;text-align:left;transition:background .16s,border-color .16s;border-radius:10px;margin-bottom:2px}.chat-item:hover{background:#f4f6fb}.chat-item.active{background:var(--accent-light);border-color:#dce3fc}.avatar{width:34px;height:34px;display:flex;align-items:center;justify-content:center;font-size:12px;background:#edf0f7;border:1px solid #e3e8f2;border-radius:50%;color:#5a6b8e;font-weight:550}.chat-item.active .avatar{background:#e1e8ff;color:#3c54b2;border-color:#d5dffa}.chat-text{min-width:0}.chat-item-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.chat-item strong{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-item time{font-size:10px;color:var(--muted);white-space:nowrap}.chat-item p{font-size:12px;color:var(--muted);margin:5px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-main{min-width:0;position:relative;overflow:hidden}.chat-placeholder{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted);padding:24px}.empty-mark{font-size:32px;color:#7183b0;width:64px;height:64px;border:1px solid #e2e8f5;background:#f6f8fe;border-radius:18px;display:grid;place-items:center;margin-bottom:20px}.chat-placeholder p{font-size:13px;line-height:1.8}
.conversation{height:100%;display:flex;flex-direction:column;min-height:0}.conversation-header{padding:16px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}.conversation-header h2{font-size:15px;overflow-wrap:anywhere}.conversation-header p{font-size:11px;color:var(--muted);margin:4px 0 0}.conversation-header>div{min-width:0}.message-stage{position:relative;flex:1;min-height:0;display:flex}.messages{position:relative;flex:1;overflow:auto;padding:24px 28px;background:#f8f9fd;scroll-behavior:auto;overflow-anchor:none;min-width:0}.message{max-width:min(82%,660px);width:max-content;margin-bottom:19px}.message.bot,.message.staff{margin-left:auto}.message-body{background:white;border:1px solid #e6eaf2;border-radius:14px 14px 14px 4px;padding:13px 17px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.7;color:#2c374c;box-shadow:0 1px 2px #18263f03}.message.bot .message-body{background:#edf1ff;border-color:#dfe6fc;border-radius:14px 14px 4px 14px}.message.staff .message-body{background:#f3f1ed;border-color:#e8e4dc;border-radius:14px 14px 4px 14px}.message.system{max-width:100%;width:auto;text-align:center}.message.system .message-body{background:none;border:0;box-shadow:none;color:var(--muted);font-size:12px}.message-meta{font-size:11px;color:var(--muted);margin-top:6px;display:flex;gap:9px}.message.bot .message-meta,.message.staff .message-meta{justify-content:flex-end}.message .attachment{display:block;font-size:12px;color:var(--accent);margin-top:8px;overflow-wrap:anywhere}.date-divider{text-align:center;color:var(--muted);font-size:11px;margin:12px 0 24px}.older-button{display:flex;margin:0 auto 22px;font-size:12px;min-height:38px;background:#fff}.conversation-footer{border-top:1px solid var(--line);font-size:11px;color:var(--muted);padding:11px 22px;flex:none}.mobile-only{display:none}.new-messages{position:absolute;bottom:17px;left:50%;transform:translateX(-50%);border:1px solid #d8e1fc;background:var(--paper);color:var(--accent);padding:11px 16px;border-radius:24px;box-shadow:0 4px 18px #1922351a;font-size:12px;white-space:nowrap;animation:arrive .18s ease-out;min-height:44px}.chat-context{font-size:11px;color:var(--accent);background:#f0f3ff;border-bottom:1px solid #dce4fc;padding:9px 18px;margin:0}.message.is-context .message-body{box-shadow:0 0 0 2px #9bacf0}
.login-page{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 25%,#eef1ff,transparent 65%),var(--bg)}.login-panel{width:min(100%,440px);padding:38px;background:var(--paper);border:1px solid var(--line);border-radius:20px;box-shadow:0 12px 44px #18243b09}.login-heading{margin:32px 0 25px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:1.4px;color:var(--muted)}.login-heading h1{font-size:28px}.login-heading p{font-size:13px;line-height:1.75}.login-panel form{display:flex;flex-direction:column;gap:18px}.login-panel label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:500}.login-panel input{min-height:46px}.login-panel .primary{width:100%;justify-content:space-between;min-height:46px;margin-top:5px}.login-footer{font-size:11px;line-height:1.8;color:var(--muted);margin:24px 0 0}.login-error{font-size:12px;line-height:1.8;margin:0;color:var(--danger)}.visually-hidden{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
@keyframes arrive{from{opacity:0;translate:0 4px}to{opacity:1;translate:0 0}}@keyframes chart-arrive{from{opacity:.45}to{opacity:1}}@keyframes rotate{to{transform:rotate(360deg)}}
@media(max-width:1100px){.topbar{padding:0 24px}.shell{padding-right:24px;padding-left:24px}.metric-card{padding:19px 18px}.metric-card strong{font-size:33px}.charts-grid{gap:16px}.chart-panel{padding:20px 18px 12px}.chart-panel .section-heading{flex-wrap:wrap;gap:9px}.chart-panel .legend{padding-top:0}.dialogs-workspace{grid-template-columns:285px minmax(0,1fr)}.period-presets button{padding-right:11px;padding-left:11px}.page-dialogs .title-group{gap:2px 12px}}
@media(max-width:850px){.page-heading{align-items:flex-start;flex-wrap:wrap;gap:16px}.period-bar{margin-left:auto}.metrics-band{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card strong{font-size:35px}.charts-grid{grid-template-columns:1fr}.page-dialogs .page-heading{flex-wrap:wrap}.page-dialogs .period-bar{margin-left:auto}.message{max-width:min(92%,660px)}.topbar nav{gap:12px}.topbar .preview-note{display:none}}
@media(max-width:650px){.topbar{height:60px;padding:0 16px}.brand{font-size:18px;gap:9px}.brand img{width:32px;height:32px}.topbar nav{gap:6px}.topbar nav>.topbar .primary{font-size:12px;padding:9px 12px;min-height:40px;gap:8px}.topbar .primary .icon{display:none}.account-menu>summary{width:34px}.shell{padding:20px 16px}.page-heading{display:block}h1{font-size:27px;letter-spacing:-.9px}.page-heading .muted{font-size:11px}.period-bar{margin-top:16px;gap:8px;justify-content:space-between}.period-presets{padding:3px;border-radius:10px}.period-presets::before{left:3px;top:3px;bottom:3px;width:calc((100% - 6px)/3)}.period-presets button{font-size:11px;padding:9px 10px;min-height:34px}.custom-period summary{font-size:11px;padding:10px;gap:7px;min-height:42px}.custom-period summary .icon{display:none}.period-popover{width:min(330px,calc(100vw - 32px))}.sync-bar{margin:10px 0 15px;font-size:11px}.sync-time,.sync-status{font-size:10px}.sync-copy{gap:3px}.refresh-button{font-size:11px;padding-right:0;min-height:36px}.metrics-band{gap:10px;margin-bottom:9px}.metric-card{padding:15px 14px 14px}.metric-name{font-size:12px;min-height:34px;align-items:flex-start;line-height:1.4}.metric-arrow{font-size:15px}.metric-card strong{font-size:31px;margin:7px 0 7px;letter-spacing:-1.15px}.metric-note{font-size:10px;line-height:1.5}.section-heading{gap:12px;margin-bottom:15px}h2{font-size:16px}.section-note{font-size:11px}.chart-panel{padding:18px 15px 10px}.chart-panel .section-heading{flex-wrap:wrap;gap:10px}.chart-panel .legend{font-size:10px;gap:12px}.chart{min-height:248px}.chart svg{height:210px}.chart-footer{flex-wrap:wrap;gap:0;min-height:43px}.chart-readout{font-size:11px}.chart-day-link{font-size:11px;min-height:30px}.charts-grid{gap:14px;margin-bottom:24px}.incidents{padding:18px 15px 0}.incidents .section-heading{align-items:flex-start;gap:10px}.incidents .section-note{max-width:160px;font-size:10px}.event-filter select{font-size:10px;max-width:145px;padding-right:12px}.events-table thead,.detail-body thead{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}.events-table,.events-table tbody,.detail-body table,.detail-body tbody{display:block;width:100%}.events-table tr{display:grid;grid-template-columns:1fr auto;gap:7px 12px;padding:14px 0;border-bottom:1px solid var(--line)}.events-table td{display:block;border:0;padding:0;font-size:11px;min-width:0}.events-table td:nth-child(1){grid-column:1;grid-row:1;color:var(--muted)}.events-table td:nth-child(2){grid-column:1/-1;grid-row:2}.events-table td:nth-child(3){grid-column:1;grid-row:3;color:var(--muted)}.events-table td:nth-child(3)::before{content:"По журналу: "}.events-table td:nth-child(4){grid-column:1;grid-row:4}.events-table td:last-child{grid-column:2;grid-row:3/5;align-self:end}.event-main{gap:6px}.event-main>span:first-child{font-size:12px}.event-details summary{min-height:28px}.events-footer{padding:9px 0}.events-footer .muted{font-size:10px}.calculation-grid{grid-template-columns:1fr;gap:0}.calculation-note{margin-top:17px}.page-footer{flex-direction:column;gap:6px;font-size:10px}.notice{font-size:11px;padding:10px 12px}.metric-detail{width:calc(100% - 20px);max-height:92dvh;border-radius:16px}.detail-header{padding:18px}.detail-header h2{font-size:18px}.detail-header .muted{font-size:11px}.detail-body{padding:0 18px}.detail-body .metric-records tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:16px 0;border-bottom:1px solid var(--line)}.detail-body .metric-records td{display:block;padding:0;border:0;min-width:0;font-size:12px}.detail-body .metric-records .detail-time{grid-column:1/-1;grid-row:1;font-size:11px;color:var(--muted)}.detail-body .metric-records .detail-client{grid-column:1/-1;grid-row:2;font-size:14px}.detail-body .metric-records .detail-value{grid-column:1;grid-row:3;align-self:start;padding-top:6px}.detail-body .metric-records .detail-actions{grid-column:2;grid-row:3;text-align:right}.detail-body .record-technical p{max-width:150px}.detail-footer{padding:12px 15px;gap:8px}.detail-footer .muted{font-size:10px}.detail-footer .button{font-size:11px;padding:8px 10px}.login-panel{padding:29px}
.page-dialogs .shell{height:calc(100dvh - 60px);padding:12px 12px 13px}.page-dialogs .page-heading{display:block}.page-dialogs .title-group{display:flex;justify-content:flex-start;gap:10px}.page-dialogs h1{font-size:24px}.page-dialogs .period-bar{margin-top:12px}.page-dialogs .sync-bar{margin:5px 0 8px}.page-dialogs .dialogs-workspace{display:block;min-height:0}.chat-sidebar{height:100%;border-right:0}.chat-search{padding:12px 14px}.chat-search input{font-size:13px}.chat-list{padding:5px}.chat-item{padding:13px 11px;grid-template-columns:38px minmax(0,1fr)}.chat-item strong{font-size:14px}.chat-item p{font-size:12px}.chat-item time{font-size:10px}.chat-main{display:none;height:100%}.dialogs-workspace.is-selected .chat-sidebar{display:none}.dialogs-workspace.is-selected .chat-main{display:block}.mobile-only{display:inline-flex}.conversation-header{padding:12px 13px;gap:9px}.conversation-header h2{font-size:15px}.conversation-header p{font-size:10px}.conversation-header .conversation-header #chat-back{width:36px;min-width:36px;font-size:20px;padding:5px}.messages{padding:18px 15px}.message{max-width:92%;margin-bottom:17px}.message-body{font-size:16px;line-height:1.65;padding:11px 14px}.message-meta{font-size:10px}.conversation-footer{font-size:10px;padding:10px 15px}.conversation-open .topbar,.conversation-open .page-heading,.conversation-open .sync-bar,.conversation-open .notice,.conversation-open .loading-note{display:none}.conversation-open.page-dialogs .shell{height:100dvh;padding:0}.conversation-open .dialogs-workspace{border:0;border-radius:0;box-shadow:none}.new-messages{font-size:12px;bottom:12px;max-width:95%}}
@media(max-width:359px){.shell{padding-right:12px;padding-left:12px}.period-presets button{padding:9px 8px;font-size:10px}.custom-period summary{font-size:10px;padding:10px 8px}.metric-card{padding:14px 11px}.metric-card strong{font-size:27px}.metric-name{font-size:11px}.metric-note{font-size:10px}.event-filter select{max-width:128px;font-size:10px}.conversation-header }
.period-bar{flex-wrap:wrap}.chart-hit[aria-pressed=true] .selected-band{fill:#4059d6;opacity:.045}
.metric-card strong.value-long{font-size:28px;white-space:normal;overflow-wrap:anywhere}.message-list-enter{animation:chart-arrive .18s ease-out}
@media(max-width:650px){.metric-card strong.value-long{font-size:22px}}
.title-group h1{margin:0}
.metrics-band{margin-bottom:22px}
.chart-panel .section-heading{min-height:64px;margin-bottom:14px}
.cost-total{background:none;border:0;border-radius:8px;padding:0 0 0 12px;text-align:right;color:var(--ink);display:flex;flex-direction:column;gap:5px;flex:none;transition:color .16s}
.cost-total strong{font-size:25px;font-weight:600;line-height:1.2;letter-spacing:-.8px;font-variant-numeric:tabular-nums;white-space:nowrap}
.cost-total>span{font-size:11px;color:var(--muted);line-height:1.7}
.cost-total:hover:not(:disabled),.cost-total:hover:not(:disabled)>span{color:var(--accent)}
.cost-total strong.value-long{font-size:19px;white-space:normal;overflow-wrap:anywhere;max-width:220px}
.page-footer{align-items:center;justify-content:flex-end;padding-top:8px}
#detail-close{width:44px;flex:none;padding:8px}
.detail-context{font-size:12px;line-height:1.75;color:var(--muted);padding:12px 0;margin:0;border-bottom:1px solid var(--line)}
.metric-records{table-layout:fixed}
.metric-records th:first-child{width:20%}
.metric-records th:nth-child(2){width:28%}
.metric-records th:nth-child(3){width:22%}
.metric-records th:last-child{width:30%}
.metric-records .detail-client{font-weight:550;overflow-wrap:anywhere}
.metric-records .detail-value{font-variant-numeric:tabular-nums}
.metric-records .detail-actions{white-space:normal}
.record-technical{margin-top:1px;font-size:11px;color:var(--muted)}
.record-technical summary{display:inline-flex;align-items:center;min-height:28px;font-size:11px;color:var(--muted)}
.record-technical summary:hover{color:var(--accent)}
.record-technical p{margin:0;line-height:1.7;white-space:normal;overflow-wrap:anywhere}
@media(max-width:650px){
  .metrics-band{margin-bottom:18px}
  .chart-panel .section-heading{min-height:61px;flex-wrap:nowrap}
  .chart-panel:first-child .section-heading{flex-wrap:wrap}
  .cost-total{padding-left:0}
  .cost-total strong{font-size:22px}
  .cost-total strong.value-long{font-size:16px;max-width:135px}
  .cost-total>span{font-size:10px}
  .page-footer{flex-direction:row;align-items:center;font-size:10px;gap:8px}
  .page-footer>span{text-align:right;max-width:200px;line-height:1.6}
  .detail-body .metric-records td{white-space:normal}
}
/* https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion */
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
