:root {
  color: #262550;
  background: #f5f5fb;
  --surface: #fff;
  --muted: #686784;
  --line: #e9e7f3;
  --rail: #fff;
  --primary: #6552db;
  --primary-dark: #5040ba;
  --ring: #7a67e8;
}
.layout { grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { border-right: 1px solid var(--line); color: #444265; box-shadow: 2px 0 10px #312a5210; }
.brand { color: #24224b; }
.brand small { color: #6e6b89; }
.navigation { display: grid; gap: 6px; }
.navigation a:hover { background: #f4f1ff; }
.navigation [aria-current] { color: #4f3dc2; background: #ece8ff; box-shadow: inset 3px 0 #7a67e8; }
.nav-icon { color: #6d58d4; }
.topbar { position: sticky; top: 0; z-index: 2; box-shadow: 0 3px 12px #3a2c6510; }
.top-actions { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: 6px; }
.language-picker select { min-height: 36px; min-width: 104px; padding-block: 5px; background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px; }
.content { padding-top: 28px; }
.page-header { margin-bottom: 20px; }
.page-header h1 { color: #262550; }
.summary dd, .did-link { color: #4936b4; }
th { background: #f8f7fd; color: #3d3a62; }
tbody tr:hover { background: #fbfaff; }

.ops-view { display: grid; gap: 18px; }
.ops-heading, .ops-panel, .ops-kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 3px 12px #3a2c6509; }
.ops-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px; }
.ops-heading h1 { font-size: clamp(1.35rem, 3vw, 1.75rem); text-transform: uppercase; line-height: 1.2; }
.ops-heading p, .ops-note { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.ops-heading p { margin-top: 5px; }
.ops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; }
.ops-kpi { padding: 15px 18px; }
.ops-kpi span { color: var(--muted); display: block; font-size: .875rem; margin-bottom: 7px; }
.ops-kpi strong { display: block; color: #5441c6; font-size: 1.65rem; font-variant-numeric: tabular-nums; }
.ops-kpi:nth-child(2) strong { color: #087a62; }
.ops-kpi:nth-child(4) strong { color: #247a9a; }
.ops-panel .ops-panel-title { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.ops-panel-body { padding: 15px 18px; }
.ops-table { min-width: 580px; }
.ops-table td { vertical-align: top; }
.ops-table td:last-child { word-break: break-word; }
.ops-table-scroll { overflow-x: auto; }
.ops-chart { display: block; width: 100%; height: 240px; }
.ops-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; color: var(--muted); font-size: .875rem; }
.ops-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: #7a67e8; border-radius: 50%; }
.ops-legend span:nth-child(2)::before { background: #30b38b; }
.ops-empty { padding: 26px 18px; text-align: center; color: var(--muted); }
.ops-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 9px; margin: 0; }
.ops-toolbar label { display: grid; gap: 4px; min-width: 125px; font-size: .875rem; color: #484566; }
.ops-toolbar input[type="search"] { min-width: 170px; }
.ops-toolbar .button { min-height: 40px; }
.ops-toolbar-area { padding: 12px 18px; }
.ops-badge { display: inline-block; border-radius: 6px; padding: 3px 7px; background: #f0eefb; color: #4839a0; white-space: nowrap; font-size: .8125rem; font-weight: 650; }
.ops-badge[data-state="good"] { background: #e0f5ea; color: #075b43; }
.ops-badge[data-state="bad"] { background: #fbe6ea; color: #842136; }
.ops-pagination { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; gap: 8px; color: var(--muted); font-size: .875rem; border-top: 1px solid var(--line); }
.ops-pagination div { display: flex; gap: 8px; }
.ops-note { padding: 2px 0; }
.ops-number { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ops-toolbar > audio, .ops-table audio { width: 190px; height: 30px; }
.dialog-content textarea { resize: vertical; min-height: 74px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; font: inherit; }
.ops-action-set { display: flex; flex-wrap: wrap; gap: 7px; }
.account-message { margin-top: 8px; }
.account-login { max-width: 530px; margin: 15px auto; }

@media (max-width: 880px) {
  .layout { grid-template-columns: 180px minmax(0, 1fr); }
  .navigation a { font-size: .875rem; padding-inline: 9px; }
}
@media (max-width: 680px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: block; min-width: 0; }
  .brand { margin-bottom: 9px; }
  .navigation { display: flex; overflow-x: auto; }
  .navigation a { flex: none; white-space: nowrap; }
  .ops-heading { padding: 14px; }
  .ops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ops-kpi { padding: 11px; }
  .ops-kpi strong { font-size: 1.3rem; }
  .ops-chart { height: 190px; }
}
