@font-face {
  font-family: "Golos Text";
  src: url("/admin/assets/GolosText.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: "Golos Text", sans-serif;
  font-size: 14px;
  color: #f1f2f4;
  background: #101114;
  --ink: #f1f2f4;
  --muted: #a0a2ad;
  --subtle: #80838f;
  --line: #2a2c34;
  --surface: #191a20;
  --accent: #d1f77a;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; font-size: 14px; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { opacity: .38; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.shell { min-height: 100svh; }
.app-header { display: flex; align-items: center; min-height: 88px; gap: 48px; padding: 0 40px; border-bottom: 1px solid var(--line); background: #101114ed; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.brand, .login-brand { display: flex; align-items: center; gap: 11px; font-size: 23px; font-weight: 600; letter-spacing: -.9px; flex-shrink: 0; }
.brand small, .login-brand>span { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: -.3px; padding-left: 10px; border-left: 1px solid #41434b; margin-left: 1px; }
.main-nav { display: flex; align-self: stretch; gap: 30px; align-items: stretch; }
.main-nav a { display: flex; align-items: center; gap: 9px; padding: 0 3px; color: var(--muted); position: relative; font-size: 14px; font-weight: 500; transition: color .18s; white-space: nowrap; }
.main-nav a::after { content: ""; height: 3px; position: absolute; bottom: -1px; left: 0; right: 0; background: var(--accent); transform: scaleX(0); transition: transform .2s; }
.main-nav a.active { color: var(--ink); }
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a:hover { color: var(--accent); }
.main-nav svg { width: 18px; height: 18px; }
.nav-count { font-size: 14px; font-weight: 400; color: var(--subtle); }
.account { display: flex; gap: 11px; align-items: center; margin-left: auto; }
.account b { font-size: 14px; font-weight: 400; }
.avatar { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #30323a; color: #ced0d8; font-size: 14px; }
.icon-button { display: grid; place-items: center; border: 0; border-radius: 6px; padding: 8px; background: none; color: var(--muted); transition: color .18s, background .18s; }
.icon-button:hover { background: #25272e; color: var(--ink); }
.icon-button svg { width: 18px; height: 18px; }
.content { max-width: 1720px; margin: 0 auto; padding: 26px 40px 25px; animation: enter .35s ease both; }
.context-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 38px; font-size: 14px; color: var(--muted); }
.breadcrumb { display: flex; gap: 13px; align-items: center; }
.breadcrumb span { color: #555864; }
.breadcrumb b { font-weight: 400; color: #d2d3da; }
.freshness { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; }
.freshness .live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: middle; }
#updated-at { color: var(--subtle); }
.intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 35px; }
.intro h1 { font-size: clamp(32px, 3vw, 44px); font-weight: 500; letter-spacing: -1.8px; line-height: 1.15; margin: 0 0 12px; }
.intro p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.today { display: flex; align-items: center; gap: 10px; color: var(--muted); white-space: nowrap; }
.today svg { width: 17px; height: 17px; }
.today b { font-size: 14px; font-weight: 400; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 36px; align-items: start; }
.primary-workspace { min-width: 0; }
.controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.periods { display: flex; align-items: center; padding: 4px; border-radius: 8px; background: #1c1d23; }
.periods button { padding: 9px 12px; color: #afb0ba; background: none; border: 0; border-radius: 5px; font-size: 14px; transition: background .18s, color .18s; white-space: nowrap; }
.periods button.active { color: #fff; background: #3b3d47; box-shadow: 0 2px 6px #0002; }
.periods button:hover { color: var(--ink); }
select { padding: 12px 30px 12px 12px; background: var(--surface); border: 1px solid #30323b; color: #dddfe6; font-size: 14px; border-radius: 7px; max-width: 100%; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border: 1px solid #3d4049; background: none; color: var(--ink); font-size: 14px; font-weight: 400; border-radius: 7px; transition: background .18s, border-color .18s; }
.button:hover:enabled { background: #262830; border-color: #686b76; }
.button svg { width: 17px; height: 17px; }
.refresh-button { margin-left: auto; }
.overview { margin-bottom: 40px; }
.chart-panel header { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 22px; }
.chart-panel h2 { font-size: 17px; font-weight: 500; letter-spacing: -.4px; margin: 0; }
.chart-panel header small { color: var(--muted); font-size: 14px; }
.chart { position: relative; padding: 0; }
.chart-plot { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 12px; height: 180px; }
.chart-scale { display: flex; flex-direction: column; justify-content: space-between; font-size: 14px; color: var(--subtle); padding-block: 0 7px; }
.chart svg { display: block; width: 100%; height: 180px; stroke: none; overflow: visible; }
.chart rect { fill: #545b3e; transition: fill .18s; }
.chart rect.recent { fill: var(--accent); }
.chart rect:hover { fill: #e8ffb4; }
.chart line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-dates { display: flex; justify-content: space-between; padding: 14px 0 0 44px; font-size: 14px; color: var(--muted); }
.chart-panel>p { color: var(--muted); font-size: 14px; margin: 20px 0 0; }
.register { min-width: 0; }
.register>header { border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 22px; }
.section-heading { display: flex; align-items: center; gap: 10px; }
.section-dot { width: 7px; height: 7px; background: var(--accent); flex-shrink: 0; border-radius: 2px; }
.register h2 { font-size: 21px; font-weight: 500; margin: 0; letter-spacing: -.6px; }
.register header p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 10px 0 0; }
.table-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 22px; }
.search { display: flex; align-items: center; gap: 10px; border: 1px solid #30323b; background: var(--surface); border-radius: 7px; padding: 0 12px; flex: 1; min-width: 210px; }
.search svg { width: 18px; height: 18px; color: var(--muted); }
.search input { width: 100%; border: 0; background: none; color: var(--ink); font-size: 14px; padding: 12px 0; min-width: 0; }
.search input::placeholder { color: var(--subtle); }
.search input:focus { outline: 0; }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.auto { display: flex; align-items: center; gap: 9px; margin-left: auto; font-size: 14px; color: var(--muted); position: relative; white-space: nowrap; cursor: pointer; min-height: 40px; }
.auto input { position: absolute; width: 34px; height: 20px; opacity: 0; margin: 0; cursor: pointer; }
.switch-track { position: relative; width: 32px; height: 18px; border-radius: 10px; background: #41444f; transition: background .18s; pointer-events: none; }
.switch-track::after { content: ""; width: 12px; height: 12px; position: absolute; left: 3px; top: 3px; border-radius: 50%; background: #d8d9df; transition: transform .18s; }
.auto input:checked+.switch-track { background: var(--accent); }
.auto input:checked+.switch-track::after { background: #20231b; transform: translateX(14px); }
.auto input:focus-visible+.switch-track { outline: 2px solid var(--accent); outline-offset: 4px; }
.table-scroll { overflow-x: auto; scrollbar-color: #444750 #16171c; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { font-size: 14px; font-weight: 400; color: #999ca9; padding: 14px 12px; border-block: 1px solid var(--line); background: #17181d; }
th:first-child { padding-left: 15px; }
td { font-size: 14px; padding: 20px 12px; border-bottom: 1px solid #25272e; line-height: 1.5; color: #c9cbd4; }
td:first-child { padding-left: 15px; }
tbody tr { transition: background .16s; }
tbody tr:hover { background: #1b1d23; }
td small { font-size: 14px; display: block; color: var(--subtle); margin-top: 5px; }
td strong { font-weight: 500; }
.row-button { border: 0; background: none; padding: 0; color: var(--ink); text-align: left; font-size: 14px; cursor: pointer; }
.row-button:hover { color: var(--accent); }
.profile { display: flex; align-items: center; gap: 11px; }
.profile-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; font-size: 14px; font-weight: 500; color: #d3d5df; background: #30323c; border-radius: 8px; }
.profile b { font-size: 14px; font-weight: 500; }
.profile small { font-size: 14px; }
.bot-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: #c0c3cc; }
.bot-tag i { font-style: normal; font-size: 14px; color: #969aa9; border: 1px solid #3c3f49; border-radius: 4px; padding: 1px 4px; }
.bot-tag:hover { color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; font-size: 14px; color: #e1d6ac; border-radius: 4px; background: #e1c47513; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.good { color: #d1f77a; background: #d1f77a10; }
.status.bad { color: #f3a5a5; background: #ef909010; }
.status.muted { color: #a8abb7; background: #b8bac70c; }
.mono { font-family: "Golos Text", sans-serif; font-size: 14px; font-variant-numeric: tabular-nums; font-weight: 500; }
.prompt-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.date-cell { width: 150px; white-space: normal; min-width: 140px; }
.user-scope { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; background: #d1f77a0a; border-block: 1px solid #d1f77a23; padding: 14px 15px; font-size: 14px; }
.text-button { padding: 0; background: none; border: 0; color: var(--accent); font-size: 14px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 14px; color: var(--muted); padding-top: 20px; }
.pagination>div { display: flex; align-items: center; gap: 12px; }
.pagination label { display: flex; align-items: center; gap: 8px; }
.pagination select { padding: 7px; }
.pagination .button { min-width: 34px; min-height: 34px; padding: 6px 9px; }
.empty { text-align: center; padding: 45px 20px; color: var(--muted); }
.empty svg { width: 32px; height: 32px; color: var(--subtle); }
.empty h3 { font-size: 18px; font-weight: 500; color: var(--ink); margin: 16px 0 10px; }
.empty p { font-size: 14px; line-height: 1.6; }
.summary-rail { border-left: 1px solid var(--line); padding-left: 30px; }
.rail-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14px; margin: 9px 0 20px; }
.rail-title svg { color: #797e8c; width: 18px; height: 18px; }
.kpis article { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 22px 0; }
.kpis article span { font-size: 15px; color: #dedfe5; }
.kpis article small { display: block; font-size: 14px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.kpis strong { font-size: 34px; font-weight: 400; letter-spacing: -1.2px; font-variant-numeric: tabular-nums; }
.kpis article.metric-main { display: block; padding: 24px; background: var(--accent); border: 0; border-radius: 10px; color: #161a12; }
.metric-main strong { display: block; font-size: 76px; line-height: 1.1; letter-spacing: -4px; margin: 12px 0; font-weight: 500; }
.kpis article.metric-main span { color: #202719; font-size: 16px; }
.kpis article.metric-main small { color: #4c5a35; font-size: 14px; }
.bots-panel { margin-top: 32px; }
.bots-panel header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bots-panel h2, .providers h2 { font-size: 14px; font-weight: 400; color: var(--muted); margin: 0; }
.bots-panel header>span { font-size: 14px; color: var(--subtle); }
.bot-stat { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.bot-stat a { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; }
.bot-stat a:hover { color: var(--accent); }
.bot-language { display: grid; place-items: center; width: 29px; height: 25px; font-size: 14px; font-weight: 400; background: #2c2f37; border-radius: 4px; color: #b5b8c6; }
.bot-stat small { display: block; margin-top: 9px; color: var(--muted); font-size: 14px; }
.bot-stat>strong { font-size: 24px; font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
.bot-stat>strong small { font-size: 14px; color: var(--subtle); }
.providers { margin-top: 32px; }
.providers>div { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.provider-icon { display: grid; place-items: center; width: 31px; height: 31px; font-size: 14px; border: 1px solid #3a3e49; border-radius: 7px; color: #c0c5d1; flex-shrink: 0; }
.providers p { margin: 0; font-size: 14px; }
.providers small { display: block; font-size: 14px; margin-top: 6px; color: var(--subtle); }
.content-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 14px; }
.content-footer>span:first-child { font-weight: 500; color: #b5b7c3; }
.footer-slash { margin-inline: 8px; color: var(--accent); }
.notice { padding: 14px 16px; margin-bottom: 22px; color: #f3b1ab; background: #dc777710; border: 1px solid #9b4e4e55; border-radius: 7px; font-size: 14px; line-height: 1.6; }
.boot { display: grid; place-content: center; justify-items: center; gap: 20px; min-height: 100svh; color: var(--muted); font-size: 14px; }
.boot img { animation: breathe 1s ease-in-out infinite alternate; }
.login-screen { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 32px 40px; }
.login-brand { justify-self: start; }
.login-form { width: min(420px,100%); margin: 70px auto; align-self: center; }
.login-symbol { display: grid; place-items: center; background: #d1f77a12; color: var(--accent); width: 62px; height: 62px; border-radius: 16px; margin-bottom: 28px; }
.login-symbol svg { width: 30px; height: 30px; }
.eyebrow { font-size: 14px; color: var(--muted); display: block; }
.login-form h1 { font-size: 36px; font-weight: 500; letter-spacing: -1.6px; margin: 12px 0; }
.login-form>p { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 36px; }
.login-form label { display: block; font-size: 14px; color: #c5c7d1; margin-bottom: 10px; }
.login-form input { width: 100%; color: var(--ink); background: #1b1d23; border: 1px solid #363944; border-radius: 7px; padding: 15px 16px; font-size: 16px; margin-bottom: 24px; }
.login-form .error-text { font-size: 14px; color: #f0a2a2; margin-bottom: 16px; }
.login-form .error-text:empty { display: none; }
.primary { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 19px; border-radius: 7px; background: var(--accent); color: #151b0e; font-size: 16px; font-weight: 500; border: 0; transition: background .18s; }
.primary:hover { background: #dfff9c; }
.primary span { font-size: 22px; }
.login-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--subtle); font-size: 14px; margin-top: 24px; }
.login-note svg { width: 15px; height: 15px; }
.login-footer { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--subtle); }
dialog { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(560px,100%); max-width: 100%; height: 100svh; max-height: 100svh; border: 0; border-left: 1px solid #393c47; background: #191b21; color: var(--ink); padding: 0; box-shadow: -25px 0 100px #0004; overflow-y: auto; }
dialog[open] { animation: drawer-in .25s ease both; }
dialog::backdrop { background: #07090d99; backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 26px; letter-spacing: -.8px; font-weight: 500; margin: 10px 0 0; }
.dialog-header .icon-button { font-size: 30px; width: 38px; height: 38px; }
#job-details { padding: 30px 32px; font-size: 14px; }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin: 0; }
.details-grid>div { min-width: 0; }
.details-grid dt { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.details-grid dd { margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.details-grid small { font-size: 14px; }
.detail-block { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.detail-block h3 { font-size: 15px; font-weight: 500; margin: 0 0 12px; }
.detail-block p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.8; color: #b4b7c4; margin: 0; }
.detail-block.error p { color: #f1acac; }
.details-hint { font-size: 14px; color: var(--subtle); line-height: 1.8; margin-top: 28px; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes breathe { to { opacity: .5; transform: scale(.94); } }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 1600px) {
  .app-header { padding-inline: max(48px,calc((100vw - 1624px)/2)); gap: 80px; }
  .content { padding-inline: 48px; }
  .workspace-grid { grid-template-columns: minmax(0,1fr) 310px; gap: 48px; }
  .summary-rail { padding-left: 36px; }
}
@media (max-width: 1250px) {
  .app-header { gap: 32px; padding-inline: 28px; }
  .brand small { display: none; }
  .main-nav { gap: 25px; }
  .content { padding-inline: 28px; }
  .workspace-grid { grid-template-columns: minmax(0,1fr) 250px; gap: 26px; }
  .summary-rail { padding-left: 24px; }
  .context-bar { align-items: start; }
  .freshness { gap: 8px; flex-direction: column; align-items: flex-end; }
  .refresh-button span { display: none; }
  .controls { gap: 10px; }
  .periods button { padding-inline: 10px; }
  .kpis article.metric-main { padding: 22px; }
  .pagination { flex-wrap: wrap; }
}
@media (max-width: 980px) {
  .app-header { gap: 28px; }
  .main-nav { gap: 22px; }
  .main-nav svg { display: none; }
  .account b { display: none; }
  .workspace-grid { display: flex; flex-direction: column; gap: 36px; }
  .primary-workspace { width: 100%; }
  .summary-rail { width: 100%; border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .rail-title { margin-bottom: 24px; }
  .kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
  .kpis article { display: block; border-bottom: 0; padding: 15px; min-width: 0; }
  .kpis article.metric-main { padding: 15px; }
  .kpis strong, .metric-main strong { display: block; font-size: 44px; margin: 12px 0; line-height: 1.2; letter-spacing: -1.8px; }
  .kpis small { font-size: 14px; }
  .bots-panel { display: inline-block; width: 48%; vertical-align: top; margin-right: 3%; }
  .providers { display: inline-block; width: 48%; vertical-align: top; }
  .today { display: none; }
  .refresh-button span { display: inline; }
  .context-bar { margin-bottom: 30px; }
}
@media (max-width: 700px) {
  .app-header { flex-wrap: wrap; padding: 18px 20px 0; gap: 20px; }
  .brand { font-size: 22px; }
  .brand img { width: 31px; height: 31px; }
  .account { margin-left: auto; }
  .account .avatar { display: none; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 15px; }
  .main-nav a { font-size: 14px; padding: 0 0 16px; gap: 7px; }
  .nav-count { font-size: 14px; }
  .content { padding: 23px 20px; }
  .context-bar { flex-wrap: wrap; gap: 15px; margin-bottom: 26px; }
  .breadcrumb { font-size: 14px; gap: 9px; }
  .freshness { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
  #fresh-state { max-width: 58%; line-height: 1.5; }
  #updated-at { white-space: nowrap; font-size: 14px; }
  .intro { margin-bottom: 25px; }
  .intro h1 { font-size: 34px; letter-spacing: -1.3px; }
  .intro p { font-size: 14px; line-height: 1.7; }
  .controls { margin-bottom: 28px; gap: 12px; }
  .periods { width: 100%; justify-content: space-between; }
  .periods button { padding: 10px; flex: 1; font-size: 14px; }
  .select-wrap { flex: 1; }
  .select-wrap select { width: 100%; }
  .refresh-button { margin-left: 0; }
  .refresh-button span { display: inline; }
  .overview { margin-bottom: 28px; }
  .chart-panel header { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 24px; }
  .chart-plot, .chart svg { height: 160px; }
  .chart-dates { font-size: 14px; }
  .register>header { padding-top: 24px; }
  .register h2 { font-size: 21px; }
  .register header p { font-size: 14px; }
  .table-tools { gap: 12px; }
  .search { width: 100%; flex-basis: 100%; }
  #status-wrap { flex: 1; }
  #status-wrap select { width: 100%; }
  .auto { margin-left: 0; }
  th, td { padding-inline: 12px; font-size: 14px; }
  .pagination { gap: 17px; }
  .pagination>div { width: 100%; gap: 9px; }
  .pagination label { margin-right: auto; gap: 7px; }
  .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .kpis article { padding: 16px 0; }
  .kpis article.metric-main { padding: 16px; }
  .kpis article span { font-size: 14px; }
  .kpis article small { font-size: 14px; }
  .kpis strong { font-size: 42px; }
  .bots-panel { display: block; width: 100%; margin-right: 0; }
  .providers { display: block; width: 100%; }
  .content-footer { flex-direction: column; align-items: start; gap: 14px; margin-top: 32px; font-size: 14px; line-height: 1.5; }
  .login-screen { padding: 24px; }
  .login-brand { font-size: 22px; gap: 10px; }
  .login-form { margin-block: 60px; }
  .login-form h1 { font-size: 34px; }
  .login-footer { flex-direction: column; gap: 12px; font-size: 14px; }
  .dialog-header { padding: 25px 22px; }
  #job-details { padding: 25px 22px; }
  .details-grid { gap: 24px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Independent workspace blocks. */
.user-conversation-link:hover .profile b { text-decoration: underline; text-underline-offset: 4px; }
.conversation-dialog { inset: 0; margin: auto; width: min(920px,calc(100vw - 48px)); height: min(880px,calc(100svh - 64px)); max-height: calc(100svh - 64px); border: 1px solid #3a3f4c; border-radius: 16px; background: #171a20; box-shadow: 0 32px 130px #0008; overflow: hidden; }
.conversation-dialog[open] { display: flex; flex-direction: column; animation: enter .22s ease both; }
.conversation-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 28px 22px; background: #1c1f27; }
.conversation-header h2 { font-size: 26px; line-height: 1.3; font-weight: 500; letter-spacing: -.6px; margin: 8px 0; overflow-wrap: anywhere; }
.conversation-header p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.conversation-header .icon-button { font-size: 30px; padding: 0; min-width: 38px; height: 38px; }
.conversation-toolbar { display: flex; align-items: center; gap: 16px; padding: 13px 28px; border-block: 1px solid #323744; }
.conversation-toolbar .button { padding: 8px 12px; }
#conversation-status { flex: 1; font-size: 14px; color: var(--muted); text-align: center; }
.conversation-scroll { min-height: 0; flex: 1; overflow-y: auto; padding: 24px 28px; overscroll-behavior: contain; scrollbar-color: #464d5e #171a20; }
.conversation-note { padding: 14px 16px; margin-bottom: 22px; color: #bdc2cf; background: #232731; border: 1px solid #3a4050; border-radius: 9px; font-size: 14px; line-height: 1.7; }
.earlier-activity { border: 1px solid #3a4050; border-radius: 10px; background: #1e222b; margin-bottom: 24px; overflow: hidden; }
.earlier-activity summary { cursor: pointer; font-size: 15px; padding: 15px 17px; color: #d5d9e4; }
.earlier-activity>p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0; padding: 0 17px 12px; }
.earlier-job { display: grid; grid-template-columns: minmax(0,1fr) auto 18px; align-items: center; gap: 15px; width: 100%; text-align: left; padding: 13px 17px; background: none; border: 0; border-top: 1px solid #303642; color: #e1e5ee; font-size: 14px; }
.earlier-job:hover { background: #292f3b; }
.earlier-job b { font-size: 14px; font-weight: 500; }
.earlier-job small { display: block; color: var(--muted); font-size: 14px; margin-top: 5px; }
.earlier-prompt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.older-messages { display: flex; margin: 0 auto 26px; }
.chat-entry { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 23px; padding-right: 16%; }
.chat-entry.outgoing { align-items: flex-end; padding-right: 0; padding-left: 16%; }
.chat-author { font-size: 14px; color: #9ea7b8; padding-inline: 3px; }
.chat-bubble { min-width: 110px; max-width: 100%; border: 1px solid #373e4d; border-radius: 12px 12px 12px 3px; background: #252a35; padding: 13px 16px; }
.outgoing .chat-bubble { border-color: #475936; border-radius: 12px 12px 3px 12px; background: #28331f; }
.chat-text { margin: 0; color: #edf0f7; font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.outgoing .chat-text { color: #edf5e4; }
.chat-kind { display: block; color: #b7c2d4; font-size: 14px; overflow-wrap: anywhere; margin-bottom: 9px; }
.outgoing .chat-kind { color: #bbcea4; }
.chat-time { display: block; font-size: 14px; color: #a3acbd; margin-top: 10px; text-align: right; line-height: 1.5; }
.outgoing .chat-time { color: #acbaa1; }
.chat-media img, .chat-media video { display: block; width: 100%; max-width: 350px; max-height: 360px; object-fit: contain; border-radius: 7px; background: #11141a; margin-bottom: 10px; }
.media-unavailable { color: #bac2d0; font-size: 14px; line-height: 1.6; }
.conversation-empty { padding: 20px 12px; text-align: center; }
.conversation-empty h3 { font-size: 18px; font-weight: 500; margin: 0 0 12px; }
.conversation-empty p { font-size: 14px; color: var(--muted); line-height: 1.7; max-width: 440px; margin: auto; }
.conversation-error { flex-shrink: 0; padding: 12px 28px; font-size: 14px; line-height: 1.6; color: #f0b4b4; background: #522a2a44; }
.conversation-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 28px; border-top: 1px solid #323744; color: var(--muted); background: #1c1f27; font-size: 14px; }
@media (max-width: 700px) {
  .conversation-dialog { width: 100%; max-width: 100%; height: 100svh; max-height: 100svh; border: 0; border-radius: 0; }
  .conversation-header { padding: 20px 18px; }
  .conversation-header h2 { font-size: 24px; }
  .conversation-header p { max-width: 275px; }
  .conversation-toolbar { padding: 12px 18px; gap: 12px; flex-wrap: wrap; }
  #conversation-status { order: 3; flex-basis: 100%; text-align: left; }
  #refresh-conversation { margin-left: auto; }
  .conversation-scroll { padding: 20px 16px; }
  .chat-entry { padding-right: 7%; }
  .chat-entry.outgoing { padding-left: 7%; }
  .chat-bubble { padding: 12px 13px; }
  .earlier-job { grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding-inline: 13px; }
  .earlier-job>span:last-child { display: none; }
  .conversation-footer { padding: 14px 16px; flex-wrap: wrap; gap: 8px; }
  .conversation-error { padding: 12px 18px; }
}
.content { padding-top: 22px; }
.context-bar { margin-bottom: 24px; }
.intro { margin-bottom: 25px; }
.intro h1 { font-size: 36px; }
.dashboard-blocks { display: grid; gap: 22px; min-width: 0; }
.block-panel { min-width: 0; background: #1a1c22; border: 1px solid #30333d; border-radius: 14px; box-shadow: 0 4px 16px #0000000c; }
.filter-panel { display: flex; align-items: center; gap: 24px; padding: 17px 22px; }
.filter-panel h2 { color: var(--muted); margin: 0; font-size: 14px; font-weight: 400; }
.filter-panel .controls { flex: 1; margin: 0; }
.filter-panel .periods { background: #101216; border: 1px solid #30333c; }
.filter-panel select { background: #23262f; }
.metrics-panel>h2 { font-size: 14px; font-weight: 400; color: var(--muted); margin: 0 0 12px; }
.metrics-panel .kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.metrics-panel .kpis article { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 22px; border: 1px solid #30333d; border-radius: 12px; background: #1a1c22; }
.metrics-panel .kpis article>div { display: contents; }
.metrics-panel .kpis article>span { order: 0; font-size: 15px; }
.metrics-panel .kpis article strong { order: 1; font-size: 44px; font-weight: 500; line-height: 1.05; letter-spacing: -1.6px; margin: 0; }
.metrics-panel .kpis article small { order: 2; font-size: 14px; margin: 0; line-height: 1.5; }
.metrics-panel .kpis article.metric-main { background: var(--accent); border-color: var(--accent); }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(300px,1fr); gap: 22px; min-width: 0; }
.chart-panel.block-panel { padding: 24px; }
.chart-panel.block-panel header { margin-bottom: 25px; }
.chart-panel.block-panel h2 { font-size: 18px; }
.chart-panel.block-panel .chart-plot, .chart-panel.block-panel .chart svg { height: 195px; }
.connections-panel { padding: 22px 24px; }
.connections-panel .bots-panel, .connections-panel .providers { display: block; width: 100%; margin: 0; }
.connections-panel .bots-panel h2 { font-size: 16px; font-weight: 500; color: var(--ink); }
.connections-panel .bot-stat { padding: 15px 0; }
.connections-panel .bot-stat:last-child { border: 0; padding-bottom: 17px; }
.connections-panel .bot-stat small { margin-top: 6px; }
.connections-panel .providers { border-top: 1px solid #343741; padding-top: 17px; }
.connections-panel .providers>div { margin-top: 14px; }
.connections-panel .providers small { margin-top: 4px; }
.register.block-panel { overflow: hidden; }
.register.block-panel>header { margin: 0; border: 0; padding: 24px 24px 18px; }
.register.block-panel .table-tools { padding: 0 24px 20px; }
.register.block-panel .search, .register.block-panel select { background-color: #23262e; }
.register.block-panel .table-scroll { max-height: 460px; overflow: auto; border-top: 1px solid #343741; }
.register.block-panel th { position: sticky; top: 0; z-index: 1; background: #242730; border-top: 0; }
.register.block-panel td { padding-block: 18px; }
.register.block-panel td:first-child, .register.block-panel th:first-child { padding-left: 24px; }
.register.block-panel td:last-child, .register.block-panel th:last-child { padding-right: 24px; }
.register.block-panel .pagination { margin: 0; padding: 18px 24px; border-top: 1px solid #343741; background: #17191f; }
.register.block-panel .user-scope { padding-inline: 24px; }
.content-footer { margin-top: 25px; }
@media (max-width: 1100px) {
  .overview-grid { grid-template-columns: minmax(0,1.4fr) minmax(280px,1fr); }
  .filter-panel { gap: 16px; }
  .metrics-panel .kpis article { padding: 18px; }
}
@media (max-width: 800px) {
  .overview-grid { grid-template-columns: 1fr; }
  .metrics-panel .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .connections-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .connections-panel .providers { border-top: 0; border-left: 1px solid #343741; padding: 0 0 0 22px; }
}
@media (max-width: 700px) {
  .content { padding-inline: 16px; }
  .dashboard-blocks { gap: 18px; }
  .filter-panel { align-items: stretch; flex-direction: column; padding: 17px; gap: 12px; }
  .filter-panel .controls { width: 100%; }
  .filter-panel .periods { padding: 3px; }
  .filter-panel .periods button { padding: 10px 6px; }
  .metrics-panel .kpis { gap: 12px; }
  .metrics-panel .kpis article { padding: 18px 16px; gap: 10px; }
  .metrics-panel .kpis article strong { font-size: 40px; }
  .chart-panel.block-panel { padding: 20px 17px; }
  .chart-panel.block-panel .chart-plot, .chart-panel.block-panel .chart svg { height: 160px; }
  .connections-panel { display: block; padding: 20px; }
  .connections-panel .providers { border: 0; border-top: 1px solid #343741; padding: 17px 0 0; }
  .register.block-panel>header { padding: 20px 18px 17px; }
  .register.block-panel .table-tools { padding: 0 18px 18px; }
  .register.block-panel .pagination { padding: 17px 18px; }
  .register.block-panel .table-scroll { max-height: 430px; }
  .register.block-panel td:first-child, .register.block-panel th:first-child { padding-left: 18px; }
  .register.block-panel .user-scope { padding-inline: 18px; }
}
