/* Dense operations layout shared by overview and bot pages. */
:root { font-size: 13px; }
.shell { max-width: 1400px; padding: 0 24px; }
.topbar { height: 60px; }
.brand { font-size: 16px; gap: 9px; }
.brand-mark { width: 29px; height: 29px; font-size: 17px; border-radius: 7px; }
.topnav { gap: 20px; font-size: 12px; }
.shell main { padding: 24px 0 38px; }
.footer { padding: 12px 0 16px; font-size: 11px; }
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: clamp(28px, 3vw, 38px); margin: 4px 0 7px; }
.page-head p { font-size: 12px; }
.section-note { font-size: 11px !important; }
.button { min-height: 34px; padding: 7px 12px; font-size: 12px; border-radius: 6px; }
.overview { margin-bottom: 24px; border-radius: 9px; }
.overview > div { padding: 16px 20px; }
.overview strong { font-size: 30px; }
.overview span { font-size: 11px; margin-top: 3px; }
.section-title, .panel-heading { margin-bottom: 11px; }
.section-title h2, .panel h2 { font-size: 16px; }
.section-title span, .panel-heading span { font-size: 11px; }
.bot-list { border-radius: 8px; }
.bot-row { padding: 10px 14px; gap: 10px; }
.bot-avatar { width: 34px; height: 34px; border-radius: 7px; }
.bot-avatar-img { display: block; width: 34px; height: 34px; object-fit: cover; border-radius: 7px; flex: none; background: var(--blue-light); }
.bot-avatar-img.large { width: 46px; height: 46px; border-radius: 9px; }
.profile-heading { display: flex; align-items: center; gap: 12px; }
.bot-name { font-size: 13px; }
.bot-sub, .bot-resource small, .bot-status small { font-size: 10px; }
.bot-status { gap: 4px; }
.bot-resource b { font-size: 11px; }
.pill { font-size: 10px; padding: 4px 8px; }
.pill.big { font-size: 12px; padding: 7px 10px; }
.row-actions { align-items: center; }
.icon-button { width: 27px; height: 27px; font-size: 11px; }
.open-bot { display: inline-flex; align-items: center; justify-content: center; height: 27px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; font-weight: 650; }
.open-bot:hover { color: var(--blue); border-color: var(--blue); }
.breadcrumb { margin-bottom: 16px; font-size: 11px; }
.detail-head { margin-bottom: 14px; }
.detail-grid { gap: 12px; }
.detail-main, .detail-side { gap: 12px; }
.panel { padding: 16px; border-radius: 8px; }
.action-strip, .form-actions { gap: 7px; }
.logs { min-height: 105px; max-height: 310px; padding: 13px; font-size: 11px; }
.info-list > div { padding: 7px 0; font-size: 11px; grid-template-columns: 120px minmax(0,1fr); }
.path { font-size: 11px; }
.side-stats > div { padding: 9px 0; font-size: 11px; }
.side-stats > div:first-child { margin-top: 7px; }
.stats-note { margin: 5px 0 0; font-size: 10px; }
.container-list { margin-top: 8px; }
.container-list li { padding: 8px 0; font-size: 11px; }
.form-panel label, .login-panel label, .confirm-panel label { margin-bottom: 12px; font-size: 11px; }
.form-panel input, .login-panel input, .confirm-panel input { min-height: 36px; padding: 7px 9px; font-size: 12px; }
.form-panel label small { font-size: 10px; }
.help-panel { padding-top: 12px; font-size: 12px; }
.login-wrap { min-height: calc(100vh - 170px); }
.login-copy h1 { font-size: clamp(40px, 5vw, 62px); }
.login-copy p { font-size: 14px; }
.login-panel { padding: 24px; }
.login-panel h2 { font-size: 19px; }
.bot-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.bot-tabs a { display: inline-flex; padding: 0 2px 9px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 12px; font-weight: 650; }
.bot-tabs a:hover { color: var(--blue); }
.bot-tabs a.active { color: var(--blue); border-color: var(--blue); }
.date-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; }
.date-filter > div { margin-right: auto; }
.date-filter h2 { margin: 0 0 3px; }
.date-filter p { margin: 0; color: var(--muted); font-size: 11px; }
.date-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--muted); }
.date-filter input { min-height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; color: var(--ink); font: inherit; background: white; }
.user-summary { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.user-summary > div { background: white; padding: 11px 15px; display: flex; flex-direction: column; gap: 3px; }
.user-summary strong { font-size: 21px; letter-spacing: -.03em; }
.user-summary > div:last-child strong { font-size: 13px; letter-spacing: 0; margin-top: 5px; }
.user-summary span { font-size: 10px; color: var(--muted); }
.chart-panel, .users-panel { margin-bottom: 12px; }
.chart-panel { overflow-x: auto; }
.users-chart { display: block; width: 100%; min-width: 620px; height: 190px; }
.chart-bar { fill: #2479a8; }
.chart-bar:hover { fill: #0d4f77; }
.chart-grid { stroke: #e7eef2; stroke-width: 1; }
.chart-axis { stroke: #bccbd4; stroke-width: 1; }
.chart-label { fill: #657b8b; font: 12px "Segoe UI", Arial, sans-serif; }
.chart-empty { display: grid; place-items: center; min-height: 140px; color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
.users-table th { text-align: left; color: var(--muted); font-weight: 650; background: #f4f7f8; }
.users-table th, .users-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.users-table tbody tr:last-child td { border-bottom: 0; }
.users-table .mono { font-family: Consolas, "Courier New", monospace; font-weight: 650; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 12px; font-size: 11px; }
.data-hint { font-size: 11px; }
@media (max-width: 850px) {
  .shell { padding: 0 17px; }
  .detail-grid, .form-layout { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .shell { padding: 0 12px; }
  .topbar { height: auto; min-height: 54px; padding: 10px 0; }
  .topnav { gap: 13px; }
  .shell main { padding-top: 18px; }
  .overview > div { padding: 12px; }
  .overview strong { font-size: 25px; }
  .bot-row { grid-template-columns: 1fr auto; }
  .row-actions { flex-direction: row; grid-row: 1 / 3; }
  .user-summary { grid-template-columns: 1fr 1fr; }
  .user-summary > div:last-child { grid-column: 1 / -1; }
  .date-filter > div { width: 100%; }
  .info-list > div { grid-template-columns: 1fr; }
}
.stats-open { color: var(--blue); font-size: 11px; font-weight: 700; }
.stats-open:hover { text-decoration: underline; }
.stat-report { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }
.stat-report-primary { display: grid; grid-template-columns: 1fr 1fr; background: var(--navy); color: white; }
.stat-report-primary > div { padding: 30px 34px; display: flex; flex-direction: column; gap: 6px; }
.stat-report-primary > div + div { border-left: 1px solid rgba(255,255,255,.18); }
.stat-report-primary strong { font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -.06em; }
.stat-report-primary span { color: #d3e7f1; font-size: 14px; }
.stat-report-period { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-report-period > div { padding: 24px 34px; display: flex; flex-direction: column; gap: 5px; }
.stat-report-period > div + div { border-left: 1px solid var(--line); }
.stat-report-period strong { font-size: 32px; line-height: 1.1; letter-spacing: -.04em; }
.stat-report-period span { color: var(--muted); font-size: 12px; }
.stats-explainer { color: var(--muted); font-size: 11px; margin: 14px 0 0; }
@media (max-width: 620px) {
  .stat-report-primary > div { padding: 20px; }
  .stat-report-primary strong { font-size: 42px; }
  .stat-report-primary span { font-size: 11px; }
  .stat-report-period { grid-template-columns: 1fr; }
  .stat-report-period > div { padding: 14px 20px; }
  .stat-report-period > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
