.ops {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px 1fr;
  background: #f5f7fb;
  color: #0f172a;
}
.ops.is-collapsed { grid-template-columns: 84px 1fr; }
.ops-side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
  background: #fff;
  border-right: 1px solid #e7ecf3;
  overflow-y: auto;
}
.ops-brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; }
.ops-brand img { height: 40px; width: auto; }
.ops-collapse, .ops-burger {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid #e7ecf3; background: #fff; cursor: pointer; color: #475569;
}
.ops-burger { display: none; }
.ops-side nav { display: grid; gap: 2px; }
.ops-side a, .ops-side button { font-weight: 600; }
.ops-side nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; color: #334155; font-size: 14px;
}
.ops-side nav a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ops-side nav a.on { background: #eef3ff; color: #013692; }
.ops-side nav a:hover { background: #f8fafc; }
.ops-label { margin: 14px 10px 0; color: #94a3b8; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ops-sub a { color: #64748b; font-size: 13px; }
.ops-site { margin-top: auto; padding: 10px; color: #013692; font-size: 13px; font-weight: 700; }
.ops.is-collapsed .ops-side span,
.ops.is-collapsed .ops-label,
.ops.is-collapsed .ops-sub,
.ops.is-collapsed .ops-site,
.ops.is-collapsed .ops-brand img,
.ops.is-collapsed .ops-side nav a span { display: none; }
.ops.is-collapsed .ops-side nav a { justify-content: center; }

.ops-body { min-width: 0; }
.ops-top {
  position: sticky; top: 0; z-index: 20;
  height: 64px;
  display: flex; align-items: center; gap: 12px;
  padding: 0 22px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #e7ecf3;
}
.ops-search { flex: 1; }
.ops-search input, .ops-table-bar input, .ops-drawer input, .ops-drawer select {
  width: 100%;
  border: 1px solid #e6ebf2;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.ops-search input { max-width: 420px; }
.ops-profile { position: relative; margin-left: auto; }
.ops-profile > button {
  display: flex; align-items: center; gap: 8px;
  border: 0; background: transparent; cursor: pointer; font-weight: 700;
}
.ops-profile i {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #013692; color: white; font-style: normal;
}
.ops-menu {
  position: absolute; right: 0; top: 42px; width: 180px;
  background: white; border: 1px solid #e7ecf3; border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08); padding: 6px;
}
.ops-menu a, .ops-menu button {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; font-weight: 700;
}
.ops-menu a:hover, .ops-menu button:hover { background: #f8fafc; }
.ops-main { padding: 28px; }
.ops-page-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.ops-page-head p { margin: 0 0 4px; color: #64748b; font-size: 13px; font-weight: 700; }
.ops-page-head h1, .ops-main h1 { font-size: 30px; letter-spacing: -0.04em; }
.ops-mini { display: flex; gap: 8px; }
.ops-mini span { background: white; border: 1px solid #e7ecf3; border-radius: 999px; padding: 8px 12px; font-size: 13px; font-weight: 700; }

.ops-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.ops-kpis article, .ops-chart, .ops-table, .ops-main .admin-card {
  background: white; border: 1px solid #e7ecf3; border-radius: 16px;
}
.ops-kpis article { display: flex; justify-content: space-between; gap: 8px; padding: 16px; }
.ops-kpis p { margin: 0; color: #64748b; font-size: 13px; font-weight: 700; }
.ops-kpis strong { display: block; margin: 8px 0; font-size: 26px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ops-kpis span, .ops-badge {
  display: inline-flex; align-items: center;
  border-radius: 999px; padding: 3px 8px; font-size: 12px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.ops-kpis .up, .ops-badge.active { background: #ecfdf5; color: #047857; }
.ops-kpis .down { background: #fff1f2; color: #be123c; }
.ops-badge.pending { background: #fff7ed; color: #c2410c; }
.ops-badge.graduated { background: #eff6ff; color: #1d4ed8; }
.ops-spark { width: 92px; height: 36px; }

.ops-chart { padding: 18px 18px 8px; margin-bottom: 14px; }
.ops-chart-head, .ops-table-bar { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ops-chart h2 { font-size: 18px; margin-bottom: 4px; }
.ops-chart p { margin: 0; color: #64748b; font-size: 13px; }
.ops-legend { display: flex; align-items: center; gap: 8px; color: #334155; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ops-legend i, .ops-legend b { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.ops-legend i { background: #dbe7ff; }
.ops-legend b { background: #013692; border-radius: 99px; height: 3px; }
.ops-chart svg { width: 100%; height: auto; }

.ops-table { overflow: hidden; }
.ops-table-bar { padding: 14px; flex-wrap: wrap; }
.ops-table-bar input { max-width: 280px; }
.ops-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.ops-pills button, .ops-quiet, .ops-edit {
  border: 1px solid #e6ebf2; background: white; border-radius: 999px;
  padding: 8px 12px; cursor: pointer; font-weight: 700; font-size: 13px;
}
.ops-pills button.on { background: #0f172a; color: white; border-color: #0f172a; }
.ops-add {
  border: 0; cursor: pointer; margin-left: auto;
  background: #013692; color: white; border-radius: 10px;
  padding: 10px 14px; font-weight: 700;
}
.ops-add:hover { background: #012a72; }
.ops-add:disabled { opacity: .6; }
.ops-scroll { overflow-x: auto; }
.ops-table table { width: 100%; border-collapse: collapse; }
.ops-table th, .ops-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #eef2f6; font-size: 14px; }
.ops-table th { color: #64748b; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; background: #fafbfc; }
.ops-table td b, .ops-table td small { display: block; }
.ops-table td small { color: #64748b; font-weight: 600; }
.ops-msg { white-space: pre-wrap; max-width: 420px; line-height: 1.5; color: #0f172a; font-weight: 500; }
.ops-table td.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.ops-table tbody tr { transition: background .18s ease; }
.ops-table tbody tr:hover { background: #f8fafc; }

.ops-drawer-root { position: fixed; inset: 0; z-index: 50; }
.ops-drawer-bg { position: absolute; inset: 0; border: 0; background: rgba(15, 23, 42, .28); cursor: pointer; }
.ops-drawer {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(420px, 100%);
  background: white;
  box-shadow: -20px 0 50px rgba(15, 23, 42, .12);
  animation: ops-slide .28s ease;
  display: flex; flex-direction: column;
}
.ops-drawer.wide { width: min(680px, 100%); }
.ops-drawer header, .ops-drawer form { padding: 18px; }
.ops-drawer header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eef2f6; }
.ops-drawer header h2 { margin: 0; font-size: 22px; }
.ops-drawer header p { margin: 4px 0 0; color: #64748b; font-size: 13px; }
.ops-drawer header button { border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.ops-drawer form { display: grid; gap: 10px; overflow: auto; }
.ops-drawer label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.ops-drawer-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ops-answers { display: grid; gap: 10px; padding: 18px; overflow: auto; flex: 1; min-height: 0; }
.ops-answers article { padding: 12px 14px; border-radius: 14px; border: 1px solid #eef2f6; }
.ops-answers article p { margin: 6px 0 0; white-space: pre-wrap; }
.ops-answers article.ok { background: #f0fdf4; }
.ops-answers article.miss { background: #fff1f2; }
.ops-answers .hint { margin: 0; color: #64748b; font-size: 13px; }
.ops-report-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ops-report-actions form { padding: 0; }
.ops-report-actions .btn { text-transform: none; letter-spacing: 0; text-decoration: none; }
.ops-row-actions a { text-decoration: none; color: inherit; }
.ops-grade { display: grid; gap: 10px; }
.ops-grade > label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.ops-grade input[type="text"], .ops-grade input:not([type="radio"]) {
  border: 1px solid #e4e4e7; border-radius: 12px; padding: 10px 12px; font: inherit;
}
.ops-verdict { display: grid; gap: 6px; margin-top: 8px; }
.ops-verdict label {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 8px 10px; border: 1px solid #e4e4e7; border-radius: 12px; cursor: pointer; font-weight: 600;
}
.ops-verdict label.on { border-color: #1557e6; background: #eef3ff; }
.ops-verdict input { margin-top: 3px; }
.ops-grade .btn { justify-self: start; text-transform: none; letter-spacing: 0; }
.ops-table-bar select, .ops-qform select, .ops-qform textarea, .ops-qform input, .ops-options input {
  border: 1px solid #e4e4e7; border-radius: 12px; padding: 10px 12px; font: inherit; background: white;
}
.ops-table-bar select { max-width: 280px; }
.ops-row-actions { display: flex; gap: 6px; align-items: center; }
.ops-row-actions form { margin: 0; }
.ops-qform { display: grid; gap: 12px; padding: 18px; overflow: auto; }
.ops-qform label, .ops-options { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.ops-qform textarea { min-height: 72px; resize: vertical; }
.ops-options div { display: grid; grid-template-columns: 72px 1fr auto; gap: 8px; }
.ops-options button { border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.ops-qform .btn { text-transform: none; letter-spacing: 0; }
.ops-qform input[type="file"] { padding: 8px 0; border: 0; }
.ops-qimg { display: block; max-width: 100%; max-height: 220px; margin-top: 8px; border-radius: 12px; }
.ops-sub a span { white-space: normal; line-height: 1.35; }
.ops-error { color: #be123c; margin: 0; }
.ops-check { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; }
.ops-check input { width: 16px; height: 16px; margin: 0; }
.ops-backdrop { display: none; }
@keyframes ops-slide { from { transform: translateX(100%); } to { transform: none; } }

@media (max-width: 1100px) {
  .ops-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .ops { grid-template-columns: 1fr; }
  .ops-side {
    position: fixed; z-index: 40; transform: translateX(-105%);
    transition: transform .25s ease; width: 260px;
  }
  .ops-side.open { transform: none; }
  .ops-backdrop { display: block; position: fixed; inset: 0; z-index: 30; border: 0; background: rgba(15,23,42,.28); }
  .ops-burger { display: inline-grid; place-items: center; }
  .ops.is-collapsed .ops-side span,
  .ops.is-collapsed .ops-label,
  .ops.is-collapsed .ops-sub,
  .ops.is-collapsed .ops-site,
  .ops.is-collapsed .ops-brand img { display: initial; }
  .ops-kpis, .ops-page-head, .ops-table-bar { grid-template-columns: 1fr; display: grid; }
  .ops-add { margin-left: 0; }
}

.ops-login {
  min-height: 100vh; display: grid; place-items: center;
  background: #f5f7fb; font-family: Inter, "Segoe UI", sans-serif; color: #0f172a;
}
.ops-card {
  width: min(420px, calc(100% - 32px)); background: #fff;
  border: 1px solid #e7ecf3; border-radius: 24px; padding: 28px;
  display: grid; gap: 12px; box-shadow: 0 18px 50px rgba(22, 24, 29, 0.06);
}
.ops-card img { height: 48px; width: auto; }
.ops-card h1 { margin: 4px 0 0; font-family: "Plus Jakarta Sans", Inter, sans-serif; font-size: 32px; letter-spacing: -0.04em; }
.ops-card > p { margin: 0 0 6px; color: #64748b; }
.ops-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.ops-card input { border: 1px solid #e4e4e7; border-radius: 12px; padding: 12px; font: inherit; }
.ops-card .btn {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  border: 0; border-radius: 12px; padding: 12px 16px;
  background: #013692; color: #fff; font-weight: 700; cursor: pointer;
}
.ops-main .ops-qform, .ops-main > .ops-table {
  background: #fff; border: 1px solid #e7ecf3; border-radius: 18px;
}
.ops-main .ops-qform { max-width: 760px; }
.ops-main > .ops-table { overflow: auto; }
