/* Monitoring Center, T-157. System fonts; no downloads, image backgrounds or JS. */
body[data-mc-design] {
  --ink:#172b46; --muted:#5d6e83; --accent:#245fcb; --accent-soft:#edf3ff;
  --line:#dde5ef; --panel:#fff; --bg:#f3f6fa; --purple:#245fcb;
  --shadow:0 2px 8px #152b4606; --danger:#b8334d; --warning:#98620c;
  margin:0; background:var(--bg)!important; color:var(--ink);
  font-family:"Segoe UI",Arial,sans-serif; font-size:14px; line-height:1.5;
  font-variant-numeric:tabular-nums; -webkit-font-smoothing:antialiased;
}
body[data-mc-design] * { box-sizing:border-box; }
body[data-mc-design] :is(h1,h2,h3,h4) { color:var(--ink); letter-spacing:-.025em; }
body[data-mc-design] :is(button,input,select,textarea) { font:inherit; }
body[data-mc-design] :is(a,button,input,select,textarea):focus-visible { outline:3px solid #759eea; outline-offset:3px; }
body[data-mc-design] :is(button,a) { transition:background-color .12s,color .12s,border-color .12s; }
body[data-mc-design] button:disabled { cursor:not-allowed; opacity:.65; }
body[data-mc-design] :is(.reveal,.reveal>* ) { animation:none; opacity:1; transform:none; }
body[data-mc-design] .app-shell {
  display:grid; grid-template-columns:208px minmax(0,1fr); gap:0 28px;
  max-width:1800px; margin:0 auto; padding:0 32px 40px;
}
body[data-mc-design] .app-header { grid-column:1/-1; min-height:88px; margin:0 0 26px; padding:17px 0; border-bottom:1px solid var(--line); gap:20px; }
body[data-mc-design] .brand { flex-shrink:0; }
body[data-mc-design] .brand-mark { width:39px; height:39px; border-radius:11px; background:var(--ink); box-shadow:none; }
body[data-mc-design] .brand strong { font-size:15px; color:var(--ink); }
body[data-mc-design] .brand small { display:block; margin-top:2px; font-size:11px; color:var(--muted); letter-spacing:.01em; }
body[data-mc-design] .header-status { gap:12px; }
body[data-mc-design] :is(.user-chip,.count,.uprava-switch,.header-admin-links) { background:#fff; border-color:var(--line); box-shadow:none; border-radius:8px; }
body[data-mc-design] .user-avatar { background:var(--accent-soft); color:var(--accent); border-radius:8px; }
body[data-mc-design] .user-identity { display:grid; min-width:0; }
body[data-mc-design] .user-actions { display:flex; flex-wrap:wrap; gap:8px; }
body[data-mc-design] :is(.sync-status,.user-identity strong) { color:var(--muted); }
body[data-mc-design] .main-nav {
  grid-column:1; grid-row:2; align-self:start; position:sticky; top:20px;
  display:flex; flex-direction:column; flex-wrap:nowrap; width:100%; max-width:100%;
  max-height:calc(100vh - 40px); overflow:auto; gap:3px; padding:0 0 16px; margin:0;
  border:0; border-radius:0; background:transparent; box-shadow:none; scrollbar-width:thin;
}
body[data-mc-design] .main-nav a {
  display:flex; align-items:center; min-height:41px; padding:10px 13px; margin:0;
  border:1px solid transparent; border-radius:8px; color:#53657c; background:transparent;
  font-size:13px; font-weight:600; white-space:normal; box-shadow:none;
}
body[data-mc-design] .main-nav a:hover { color:var(--accent); background:#e9eff8; transform:none; box-shadow:none; }
body[data-mc-design] .main-nav a.on { color:var(--accent); background:#e5edfb; border-color:#d5e2fb; box-shadow:none; font-weight:700; }
body[data-mc-design] .main-nav a.on::before { content:""; flex:0 0 5px; width:5px; height:5px; margin-right:9px; border-radius:50%; background:currentColor; }
body[data-mc-design] .workspace-content { grid-column:2; min-width:0; }
body[data-mc-design] .eyebrow { color:var(--muted); font-size:10px; letter-spacing:.13em; font-weight:700; text-transform:uppercase; }
body[data-mc-design] :is(.registry-hero,.analytics-hero,.external-analytics-hero,.district-dashboard-hero,.overview-hero,.team-hero,.ckkb-hero,.cafap-hero,.meb-hero,.dispatch-hero,.notification-hero,.addr-hero) {
  min-height:0; padding:25px 28px; border:1px solid var(--line); border-radius:14px;
  background:#fff; color:var(--ink); box-shadow:none; overflow:visible;
}
body[data-mc-design] :is(.registry-hero,.analytics-hero,.external-analytics-hero,.district-dashboard-hero,.overview-hero)::before,
body[data-mc-design] :is(.registry-hero,.analytics-hero,.district-dashboard-hero)::after { display:none; }
body[data-mc-design] :is(.registry-copy,.district-dashboard-hero,.external-analytics-hero,.overview-hero,.ckkb-hero,.cafap-hero,.meb-hero,.dispatch-hero,.team-hero,.notification-hero,.addr-hero) h1 { font-size:clamp(24px,2.3vw,34px); color:var(--ink); line-height:1.2; margin:7px 0 9px; font-weight:650; }
body[data-mc-design] :is(.registry-copy,.district-dashboard-hero,.external-analytics-hero,.overview-hero,.ckkb-hero,.cafap-hero,.meb-hero,.dispatch-hero,.team-hero,.notification-hero,.addr-hero) :is(p,small,.eyebrow) { color:var(--muted); }
body[data-mc-design] .registry-total { min-width:160px; background:var(--bg); border:0; border-radius:10px; padding:14px 18px; color:var(--ink); }
body[data-mc-design] .registry-total strong { color:var(--ink); font-size:36px; }
body[data-mc-design] .registry-total :is(span,small) { color:var(--muted); }
body[data-mc-design] :is(.registry-export,.registry-export-all,.registry-max-batch button,.dashboard-sync-form button,.dashboard-max-form button,.alert-max-form button,.mc-filters button,.mc-hotspot-filter button) {
  min-height:34px; padding:7px 12px; border:1px solid var(--line); border-radius:7px;
  background:#fff; color:var(--accent); box-shadow:none; font-size:12px; font-weight:650;
}
body[data-mc-design] :is(.registry-export,.registry-max-batch button,.mc-filters button):hover { background:var(--accent-soft); border-color:#afc6ee; }
body[data-mc-design] :is(.registry-insights,.district-dashboard-summary,.district-dashboard-queues,.external-metrics,.metric-grid) { gap:12px; margin:16px 0; }
body[data-mc-design] :is(.queue-card,.district-dashboard-summary article,.district-dashboard-queue,.external-metrics article,.metric-card,.overview-district,.team-member,.team-panel,.district-card) {
  padding:19px; border:1px solid var(--line); border-radius:11px; background:#fff; box-shadow:none;
}
body[data-mc-design] .queue-card:nth-child(n) { border:1px solid var(--line); }
body[data-mc-design] .queue-card::after { display:none; }
body[data-mc-design] :is(.queue-card,.district-dashboard-summary article,.district-dashboard-queue,.external-metrics article,.metric-card) span { color:var(--muted); font-size:12px; font-weight:600; }
body[data-mc-design] :is(.queue-card,.district-dashboard-summary article,.district-dashboard-queue,.external-metrics article) strong { color:var(--ink); font-size:30px; font-weight:600; }
body[data-mc-design] :is(.queue-card.urgent strong,.district-dashboard-summary .danger) { color:var(--danger); }
body[data-mc-design] :is(.queue-card.attention strong,.district-dashboard-summary .warning) { color:var(--warning); }
body[data-mc-design] .district-dashboard-queue:hover { border-color:#a9bfe2; background:#fbfcff; transform:none; box-shadow:none; }
body[data-mc-design] .district-dashboard-queue :is(small,i) { color:var(--muted); }
body[data-mc-design] :is(.district-dashboard-updated,.cabinet-updates,.external-updated) { background:var(--bg); border:1px solid var(--line); color:var(--ink); border-radius:8px; }
body[data-mc-design] :is(.district-dashboard-updated,.cabinet-update,.external-updated) :is(span,strong,b),body[data-mc-design] .cabinet-update { color:var(--muted); }
body[data-mc-design] :is(.panel,.registry-filters,.district-dashboard-alerts,.table,.table-wrap,.external-table-panel,.issue-list-card,.ckkb-card,.cafap-card,.meb-card,.dispatch-card,.addr-unknown,.addr-table,.district-calendar,.notification-card,.team-card,.audit-panel,.meeting-panel) {
  border:1px solid var(--line); border-radius:11px; background:#fff; box-shadow:none;
}
body[data-mc-design] :is(.filter-heading h2,.panel h2,.district-dashboard-alerts h2) { color:var(--ink); }
body[data-mc-design] :is(.registry-filters,.mc-filters,.addr-search) { padding:15px 18px; }
body[data-mc-design] :is(.registry-filters,.assign,.mc-filters,.addr-search,.addr-form) :is(input,select,textarea) { background:#fff; color:var(--ink); border:1px solid #cbd6e3; border-radius:6px; min-height:36px; box-shadow:none; }
body[data-mc-design] table { border-spacing:0; }
body[data-mc-design] th { padding:13px 14px; background:#edf2f8; border-bottom:1px solid #d5dfeb; color:#4d6077; font-size:11px; font-weight:700; line-height:1.45; }
body[data-mc-design] td { padding:14px; border-bottom:1px solid #e9eef5; color:var(--ink); font-size:12px; line-height:1.55; }
body[data-mc-design] tbody tr:nth-child(even) { background:#fafbfd; }
body[data-mc-design] tbody tr:hover { background:#f1f6ff; }
body[data-mc-design] :is(.request a,.mobile-request,.ckkb-number,.cafap-number,.meb-id) { color:var(--accent); background:var(--accent-soft); border-radius:6px; box-shadow:none; }
body[data-mc-design] :is(.date-time,.mobile-meta) { font-variant-numeric:tabular-nums; }
body[data-mc-design] :is(.theme,.address,.mobile-address,.mobile-theme,.dashboard-alert-copy h3,.dashboard-alert-copy p) { white-space:normal; overflow-wrap:anywhere; }
body[data-mc-design] .assign button { border-radius:6px; box-shadow:none; background:var(--accent); }
body[data-mc-design] .table .cell-text { display:block; overflow:visible; -webkit-line-clamp:unset; white-space:normal; }
body[data-mc-design] .table table { width:100%; min-width:960px; table-layout:auto; }
body[data-mc-design] .table :is(th,td) { padding:12px 10px; }
body[data-mc-design] .table tbody tr { height:auto; min-height:72px; }
body[data-mc-design] .table :is(.theme,.address) { min-width:165px; }
body[data-mc-design] .table :is(.receipt,.deadline) { min-width:96px; }
body[data-mc-design] .table .category-tag { white-space:normal; }
body[data-mc-design] :is(.day.d7,.day.d8,.mobile-priority.d7,.mobile-priority.d8,.dashboard-overdue) { background:#fff0f2; color:var(--danger); }
body[data-mc-design] :is(.district-dashboard-alert-list) { border-color:var(--line); background:var(--line); border-radius:8px; }
body[data-mc-design] .district-dashboard-alert { padding:18px; }
body[data-mc-design] .dashboard-alert-copy>div span { background:var(--accent-soft); color:var(--accent); }
body[data-mc-design] :is(.dashboard-alert-time a,.secondary-link,.addr-link) { color:var(--accent); }
body[data-mc-design] .dashboard-alert-copy h3 { font-size:14px; }
body[data-mc-design] :is(.issue-overlay,.photo-lightbox) { backdrop-filter:none; background:#14233cc9; }
body[data-mc-design] .issue-card { border:1px solid var(--line); border-radius:16px; box-shadow:0 20px 50px #10213a26; }
body[data-mc-design] .issue-card-head { padding:26px; background:var(--ink); color:#fff; }
body[data-mc-design] .issue-card-head :is(h1,h2,h3) { color:#fff; }
body[data-mc-design] .issue-card-head .eyebrow { color:#c2d2e8; }
body[data-mc-design] .issue-card-head p { color:#dbe5f2; }
body[data-mc-design] .card-facts { gap:10px; }
body[data-mc-design] .card-facts { background:#fff; padding:16px; }
body[data-mc-design] .card-facts>div { background:var(--bg); border-color:var(--line); border-radius:8px; }
body[data-mc-design] .photo-grid a { background:var(--bg); border-radius:8px; }
body[data-mc-design] :is(.analytics-root-tabs,.analytics-system-tabs,.addr-tabs,.addr-filter,.cafap-tabs,.meb-tabs) { gap:6px; }
body[data-mc-design] :is(.analytics-root-tabs,.analytics-system-tabs,.addr-tabs,.addr-filter,.cafap-tabs,.meb-tabs) a { background:#fff; color:var(--muted); border:1px solid var(--line); border-radius:7px; padding:9px 13px; box-shadow:none; }
body[data-mc-design] :is(.analytics-root-tabs,.analytics-system-tabs,.addr-tabs,.addr-filter,.cafap-tabs,.meb-tabs) a.on { color:var(--accent); background:var(--accent-soft); border-color:#b9cfef; }
body[data-mc-design] .mc-analytics { --mc-ink:var(--ink); --mc-text:var(--ink); --mc-muted:var(--muted); --mc-line:var(--line); padding:0; background:transparent; border-radius:0; }
body[data-mc-design] .mc-hero { padding:26px 28px; margin:14px 0; border:1px solid var(--line); border-radius:14px; background:#fff; box-shadow:none; }
body[data-mc-design] .mc-hero h1 { font-size:29px; color:var(--ink); font-weight:650; }
body[data-mc-design] .mc-hero .mc-sub { color:var(--muted); font-size:12px; margin-top:6px; }
body[data-mc-design] .mc-periods { gap:5px; }
body[data-mc-design] .mc-periods a { background:var(--bg); border:1px solid var(--line); border-radius:7px; color:var(--muted); padding:8px 11px; font-size:12px; }
body[data-mc-design] .mc-periods a.on { background:var(--ink); border-color:var(--ink); color:#fff; }
body[data-mc-design] .mc-periods a.mc-btn.pdf { background:var(--accent); border-color:var(--accent); color:#fff; }
body[data-mc-design] .mc-filters { gap:10px; border-radius:10px; margin-bottom:16px; }
body[data-mc-design] .mc-kpis { gap:12px; margin-bottom:20px; }
body[data-mc-design] .mc-kpi { padding:20px; min-height:122px; border-radius:11px; border-color:var(--line); box-shadow:none; }
body[data-mc-design] .mc-kpi::before { width:0; }
body[data-mc-design] .mc-kpi:first-child { background:var(--ink); border-color:var(--ink); }
body[data-mc-design] .mc-kpi:first-child :is(span,b,small) { color:#fff; }
body[data-mc-design] .mc-kpi:first-child em { background:#ffffff1c!important; color:#dce7fb!important; padding:2px 6px; border-radius:4px; }
body[data-mc-design] .mc-kpi span { font-size:11px; letter-spacing:.04em; color:var(--muted); }
body[data-mc-design] .mc-kpi b { margin:10px 0 6px; font-size:36px; font-weight:600; }
body[data-mc-design] .mc-kpi small { white-space:normal; line-height:1.45; }
body[data-mc-design] :is(.mc-slide,.mc-card) { padding:22px; border:1px solid var(--line); border-radius:11px; box-shadow:none; }
body[data-mc-design] .mc-slide { margin-bottom:16px; }
body[data-mc-design] .mc-card { border-left:1px solid var(--line); }
body[data-mc-design] .mc-slide-head { gap:11px; margin-bottom:22px; }
body[data-mc-design] .mc-slide-head>span { background:var(--accent-soft); color:var(--accent); border-radius:7px; width:32px; height:32px; }
body[data-mc-design] .mc-slide-head h2 { font-size:18px; }
body[data-mc-design] .mc-row { min-height:33px; gap:12px; }
body[data-mc-design] .mc-row .lab :is(span,small) { white-space:normal; overflow-wrap:anywhere; line-height:1.4; }
body[data-mc-design] .mc-track { background:#e9eef6; height:7px; }
body[data-mc-design] .mc-track i { background:var(--accent); }
body[data-mc-design] .mc-overview-grid { gap:32px; }
body[data-mc-design] .mc-total { background:var(--bg); border:1px solid var(--line); border-radius:8px; padding:14px; }
body[data-mc-design] .mc-dynamic { background:#fff; border-color:var(--line); border-radius:9px; }
body[data-mc-design] .mc-dynamic .column i { background:var(--accent); border-radius:4px 4px 0 0; }
body[data-mc-design] :is(.analytics-pdf-panel,.ckkb-word-export) { background:#fff; border-color:var(--line); border-radius:11px; box-shadow:none; }
body[data-mc-design] .analytics-pdf-button { background:var(--ink); border-radius:8px; }
body[data-mc-design] :is(.analytics-pdf-button span,.analytics-pdf-button small) { color:#c9d7eb; }
body[data-mc-design] .addr-shell { background:transparent; }
body[data-mc-design] :is(.ckkb-heading,.cafap-heading,.meb-heading,.dispatch-heading,.team-heading,.notification-heading,.addr-heading,.overview-heading) { padding:25px 28px; margin-bottom:16px; border:1px solid var(--line); border-radius:14px; background:#fff; color:var(--ink); box-shadow:none; }
body[data-mc-design] :is(.ckkb-heading,.cafap-heading,.meb-heading,.dispatch-heading,.team-heading,.notification-heading,.addr-heading,.overview-heading) :is(h1,h2) { color:var(--ink); }
body[data-mc-design] :is(.ckkb-heading,.cafap-heading,.meb-heading,.dispatch-heading,.team-heading,.notification-heading,.addr-heading,.overview-heading) :is(p,small,.eyebrow) { color:var(--muted); }
body[data-mc-design] :is(.ckkb-health,.cafap-health,.meb-health) { background:var(--bg); color:var(--muted); border:1px solid var(--line); border-radius:8px; }
body[data-mc-design] :is(.ckkb-health,.cafap-health,.meb-health) small { color:var(--muted); }
body[data-mc-design] :is(.ckkb-meta,.cafap-meta,.meb-meta) span { background:var(--bg); border-radius:8px; }
body[data-mc-design] :is(.ckkb-meta,.cafap-meta,.meb-meta) b { color:var(--ink); }
body[data-mc-design] :is(.addr-counters article,.addr-unknown,.addr-toolbar,.notify-panel,.team-toolbar) { background:#fff; border-color:var(--line); border-radius:10px; box-shadow:none; }
body[data-mc-design] :is(.notify-rule-card,.channel-controls,.overview-totals article,.overview-alert-group,.overview-alert-card) { background:#fff; border-color:var(--line); border-radius:11px; box-shadow:none; }
body[data-mc-design] :is(.notify-rule-card h2,.overview-district h2,.overview-alert-group h3,.overview-totals strong,.district-card strong) { color:var(--ink); }
body[data-mc-design] :is(.channel-controls label,.district-mark,.overview-district header>span,.overview-alert-group header>span) { background:var(--accent-soft); color:var(--accent); border-radius:8px; }
body[data-mc-design] :is(.calendar-day.active,.notify-actions .primary,.channel-controls button,.district-card button) { background:var(--accent); color:#fff; border-color:var(--accent); box-shadow:none; }
body[data-mc-design] .weekday-option input:checked+span,body[data-mc-design] .notify-option input:checked+span { background:var(--accent-soft); border-color:#adc7f2; color:var(--accent); }
body[data-mc-design] .weekday-option input:focus-visible+span,body[data-mc-design] .notify-option input:focus-visible+span { outline:3px solid #759eea; outline-offset:2px; }
body[data-mc-design] input[type=checkbox] { accent-color:var(--accent); }
body[data-mc-design] :is(.overview-refresh,.district-stats) { background:var(--bg); color:var(--muted); border-color:var(--line); }
body[data-mc-design] .overview-refresh :is(strong,span,b) { color:var(--muted); }
body[data-mc-design] .all-districts-button { background:var(--ink); box-shadow:none; border-radius:11px; }
body[data-mc-design] .all-districts-button span { color:#dbe5f2; }
body[data-mc-design] .district-stats { display:block; line-height:1.8; }
body[data-mc-design] .district-stats em { display:block; }
body[data-mc-design] .notify-rule-card header { display:grid; grid-template-columns:32px minmax(0,1fr); align-items:start; min-height:112px; }
body[data-mc-design] .notify-rule-card header .district-mark { width:32px; height:32px; }
body[data-mc-design] .notify-rule-card .district-switches { grid-column:1/-1; justify-content:space-between; width:100%; }
body[data-mc-design] .district-picker { padding-top:36px; }
body[data-mc-design] .brief-hero { background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:14px; }
body[data-mc-design] .brief-hero h1 { color:var(--ink); }
body[data-mc-design] :is(.brief-card,.brief-sheet) { box-shadow:none; border-radius:11px; border-color:var(--line); }
body[data-mc-design] :is(.brief-primary,.brief-bulk button,.addr-search button,.addr-form button) { background:var(--accent); color:#fff; border-radius:7px; }
body[data-mc-design] :is(.brief-upload input,.brief-upload select,.brief-table input) { border-radius:7px; color:var(--ink); background:#fff; }
body[data-mc-design] :is(.cafap-empty,.meb-empty,.ckkb-empty,.dispatch-empty,.addr-empty) { background:#fff; border:1px dashed #c4d2e4; border-radius:11px; color:var(--muted); box-shadow:none; padding:32px; }
body[data-mc-design] .overview-alert-group>header { background:var(--bg); color:var(--ink); }
body[data-mc-design] .login-page { background:var(--bg); padding:32px; }
body[data-mc-design] .login-page::before,body[data-mc-design] .auth-card::before { display:none; }
body[data-mc-design] .auth-card { background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:0 12px 40px #162b450a; backdrop-filter:none; }
body[data-mc-design] .auth-landmark img { filter:none; }
body[data-mc-design] .auth-copy h1 { color:var(--ink); }
body[data-mc-design] :is(.auth-copy p,.auth-motto) { color:var(--muted); }
body[data-mc-design] .auth-control input { border-color:#cbd6e3; border-radius:9px; background:#fff; box-shadow:none; }
body[data-mc-design] .auth-submit { background:var(--accent); box-shadow:none; border-radius:10px; transform:none; }
@media(min-width:1800px) { body[data-mc-design] .app-shell { padding-inline:44px; } }
@media(max-width:1150px) {
  body[data-mc-design] .app-shell { grid-template-columns:178px minmax(0,1fr); gap:0 20px; padding-inline:20px; }
  body[data-mc-design] .main-nav a { font-size:12px; padding:9px 10px; }
  body[data-mc-design] .brand small { display:none; }
  body[data-mc-design] .district-dashboard-hero { align-items:flex-start; flex-direction:column; }
  body[data-mc-design] .district-dashboard-actions { width:100%; }
}
@media(max-width:900px) {
  body[data-mc-design] .app-shell { display:block; padding:0 18px 30px; }
  body[data-mc-design] .app-header { min-height:78px; margin-bottom:16px; }
  body[data-mc-design] .main-nav { position:relative; top:auto; flex-direction:row; max-height:none; padding:0 0 12px; margin:0 0 10px; gap:5px; }
  body[data-mc-design] .main-nav a { flex:0 0 auto; min-height:39px; white-space:nowrap; background:#fff; border-color:var(--line); }
  body[data-mc-design] .header-status .sync-status { display:none; }
  body[data-mc-design] .registry-insights.plan-insights { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media(max-width:600px) {
  body[data-mc-design] .app-shell { padding:0 12px 26px; }
  body[data-mc-design] .app-header { flex-wrap:wrap; gap:12px; padding:16px 0; }
  body[data-mc-design] .header-status { max-width:100%; width:100%; justify-content:flex-start; gap:8px; }
  body[data-mc-design] .brand strong { font-size:15px; }
  body[data-mc-design] :is(.registry-hero,.district-dashboard-hero,.external-analytics-hero,.mc-hero,.overview-hero,.ckkb-hero,.cafap-hero,.meb-hero) { padding:20px; border-radius:11px; }
  body[data-mc-design] .mc-hero h1 { font-size:25px; }
  body[data-mc-design] .mc-periods { width:100%; }
  body[data-mc-design] .mc-periods a { padding:8px 9px; }
  body[data-mc-design] :is(.mc-slide,.mc-card,.district-dashboard-alerts) { padding:15px; }
  body[data-mc-design] .mc-kpi { padding:15px; min-height:125px; }
  body[data-mc-design] .mc-kpi b { font-size:30px; }
  body[data-mc-design] .mc-overview-grid { grid-template-columns:1fr; gap:24px; }
  body[data-mc-design] .mc-row { grid-template-columns:minmax(0,1fr) 34px 44px; gap:7px; }
  body[data-mc-design] .mc-row .mc-track { display:none; }
  body[data-mc-design] :is(.queue-card,.district-dashboard-summary article,.district-dashboard-queue) { padding:14px; }
  body[data-mc-design] .registry-insights.plan-insights { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-mc-design] .issue-overlay { padding:10px 6px; }
  body[data-mc-design] .login-page { padding:16px; }
}
@media(prefers-reduced-motion:reduce) { body[data-mc-design] *,body[data-mc-design] *::before,body[data-mc-design] *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@media print {
  body[data-mc-design] { background:#fff!important; }
  body[data-mc-design] .app-shell { display:block; padding:0; }
  body[data-mc-design] :is(.main-nav,.header-status,.mc-filters,.mc-periods,.registry-filters) { display:none!important; }
  body[data-mc-design] :is(.mc-slide,.mc-card,.issue-list-card) { break-inside:avoid; box-shadow:none; }
}

/* T-157: complete controls and quiet colour, without a client-side framework. */
body[data-mc-design] {
  --ink:#20314d; --muted:#5d6b82; --accent:#355dcc; --accent-soft:#edf2ff;
  --line:#dfe5f1; --bg:#f4f6fc; --success:#137566; --danger:#b5264b;
  --nav-bg:#202d4b; --nav-ink:#d9e2f3;
}
body[data-mc-area=violet] { --accent:#6846b5; --accent-soft:#f2edfc; }
body[data-mc-area=teal] { --accent:#147866; --accent-soft:#eaf7f3; }
body[data-mc-area=amber] { --accent:#985d12; --accent-soft:#fff6e6; }
body[data-mc-area=rose] { --accent:#b33164; --accent-soft:#fff0f5; }
/* Stop inherited blur/entrance animations as well as animation on old charts. */
body[data-mc-design] *,body[data-mc-design] *::before,body[data-mc-design] *::after {
  backdrop-filter:none!important; animation:none!important;
}
body[data-mc-design] :is(a,button,summary) { -webkit-tap-highlight-color:#355dcc18; }
body[data-mc-design] :is(a,button,input,select,textarea,summary):focus-visible {
  outline:3px solid #2977e6!important; outline-offset:3px;
}
body[data-mc-design] ::selection { background:#d9e5ff; color:#15284b; }
body[data-mc-design] .app-shell { grid-template-columns:222px minmax(0,1fr); gap:0 24px; }
body[data-mc-design] .app-header { min-height:84px; margin-bottom:24px; }
body[data-mc-design] .brand-mark { background:#355dcc; border-radius:12px; }
body[data-mc-design] .brand strong { letter-spacing:-.025em; }
body[data-mc-design] .main-nav {
  gap:4px; padding:13px 10px; border:1px solid #293958; border-radius:18px;
  background:var(--nav-bg); scrollbar-color:#64718d transparent; scrollbar-width:thin;
}
body[data-mc-design] .main-nav::-webkit-scrollbar { display:block; width:5px; height:5px; }
body[data-mc-design] .main-nav::-webkit-scrollbar-thumb { background:#64718d; border-radius:5px; }
body[data-mc-design] .main-nav a {
  gap:10px; min-height:44px; padding:10px; border-radius:10px;
  color:var(--nav-ink); font-size:12px; font-weight:600; border:1px solid transparent;
}
body[data-mc-design] .main-nav a:hover { background:#304263; color:#fff; border-color:#405374; }
body[data-mc-design] .main-nav a.on { color:#fff; background:#395fd0; border-color:#5075e3; }
body[data-mc-design] .main-nav a.on::before { display:none; }
body[data-mc-design] .main-nav .nav-map-link { margin-left:0; color:var(--nav-ink); }
body[data-mc-design] .mc-nav-icon { width:19px; height:19px; flex:0 0 19px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
body[data-mc-design] .user-chip { padding:7px 10px; border:1px solid var(--line); }
body[data-mc-design] .user-avatar { background:var(--accent-soft); color:var(--accent); }
body[data-mc-design] :is(.registry-hero,.district-dashboard-hero,.mc-hero,.overview-hero,.ckkb-heading,.cafap-heading,.meb-heading,.dispatch-heading,.team-heading,.notification-heading,.addr-heading,.overview-heading,.brief-hero,.audit-heading) {
  border-radius:16px; border-color:var(--line); border-top:4px solid var(--accent);
  background:linear-gradient(110deg,#fff 55%,var(--accent-soft)); box-shadow:none;
  color:var(--ink); padding:24px 26px;
}
body[data-mc-design] :is(.audit-heading,.brief-hero) h1 { color:var(--ink); }
body[data-mc-design] :is(.audit-heading,.brief-hero) :is(p,small,.eyebrow) { color:var(--muted); }
body[data-mc-design] :is(.registry-total,.district-dashboard-updated,.ckkb-health,.cafap-health,.meb-health) { background:var(--accent-soft); border:1px solid var(--line); border-radius:11px; }
body[data-mc-design] .registry-total strong { color:var(--accent); }
body[data-mc-design] .eyebrow { color:var(--accent); letter-spacing:.1em; }
/* Every native control shares the same dimensions, focus, hover and disabled states. */
body[data-mc-design] :is(button,input[type=submit],input[type=button],input[type=reset]) {
  min-height:38px; padding:8px 13px; border:1px solid var(--accent); border-radius:9px;
  background:var(--accent); color:#fff; font:inherit; font-size:12px; font-weight:650;
  line-height:1.3; cursor:pointer; box-shadow:none; transform:none;
  transition:background-color .12s,border-color .12s;
}
body[data-mc-design] :is(button,input[type=submit],input[type=button]):hover:not(:disabled) { background:var(--ink); border-color:var(--ink); color:#fff; box-shadow:none; transform:none; }
body[data-mc-design] :is(button,input[type=submit],input[type=button]):disabled { opacity:.55; cursor:not-allowed; transform:none; box-shadow:none; }
body[data-mc-design] :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea) {
  min-height:38px; max-width:100%; padding:8px 10px; border:1px solid #cbd5e5; border-radius:8px;
  background:#fff; color:var(--ink); box-shadow:none; font:inherit; font-size:13px;
}
body[data-mc-design] textarea { line-height:1.6; resize:vertical; }
body[data-mc-design] :is(input,select,textarea):disabled { color:#748099; background:#f1f4f9; cursor:not-allowed; }
body[data-mc-design] input[type=file] { max-width:100%; }
body[data-mc-design] input::file-selector-button { padding:7px 11px; margin-right:10px; border:0; border-radius:5px; background:var(--accent-soft); color:var(--accent); font-weight:600; cursor:pointer; }
body[data-mc-design] input:is([type=checkbox],[type=radio]) { accent-color:var(--accent); width:18px; height:18px; }
body[data-mc-design] :is(.master-switch,.uprava-switch) input { width:20px; height:20px; }
body[data-mc-design] :is(.registry-export,.registry-export-all,.ckkb-word-export a,.mc-btn,.brief-primary,.brief-secondary,.all-districts-button,.auth-card>p>a) {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px;
  padding:9px 13px; border:1px solid var(--line); border-radius:9px;
  background:#fff; color:var(--accent); font-size:12px; line-height:1.35; font-weight:650;
  text-decoration:none; box-shadow:none;
}
body[data-mc-design] :is(.registry-export,.registry-export-all,.ckkb-word-export a,.mc-btn,.brief-secondary):hover { background:var(--accent-soft); border-color:var(--accent); transform:none; }
body[data-mc-design] a[data-mc-file=xlsx] { background:#eaf7f0; color:#126246; border:1px solid #bcdccd; border-radius:8px; }
body[data-mc-design] a[data-mc-file=pdf] { background:#fff0f3; color:#a9294b; border:1px solid #efc6d0; border-radius:8px; }
body[data-mc-design] a[data-mc-file=docx] { background:#edf3ff; color:#2b55a6; border:1px solid #c9d8f3; border-radius:8px; }
body[data-mc-design] :is(.plan-max-send,.max-send-form,.registry-max-batch,.dashboard-max-form,.alert-max-form) button { background:#6846b5; border-color:#6846b5; color:#fff; border-radius:8px; }
body[data-mc-design] :is(.assign,.resp-field) button { padding:7px 11px; min-width:36px; min-height:36px; background:var(--accent); color:#fff; }
body[data-mc-design] :is(.team-delete,form[action*="delete"]) button { background:#fff0f3; border-color:#e7b6c3; color:var(--danger); }
body[data-mc-design] :is(.team-delete,form[action*="delete"]) button:hover { background:var(--danger); border-color:var(--danger); color:#fff; }
body[data-mc-design] :is(.notify-actions button:not(.primary),.reset-calendar button,.card-close,.photo-close) { background:#fff; color:var(--accent); border:1px solid var(--line); }
body[data-mc-design] :is(.card-close,.photo-close) { min-width:40px; min-height:40px; display:grid; place-items:center; }
body[data-mc-design] .all-districts-button { display:flex; background:var(--nav-bg); color:#fff; border-color:var(--nav-bg); }
body[data-mc-design] :is(summary,.resp-field summary) { cursor:pointer; min-height:38px; padding:9px 11px; border:1px solid var(--line); border-radius:8px; color:var(--accent); background:var(--accent-soft); }
body[data-mc-design] details[open]>summary { border-color:var(--accent); }
body[data-mc-design] :is(.mc-periods,.analytics-root-tabs,.analytics-system-tabs,.addr-tabs,.cafap-tabs,.meb-tabs,.addr-filter) a { min-height:38px; display:inline-flex; align-items:center; border-radius:9px; }
body[data-mc-design] :is(.mc-periods,.analytics-root-tabs,.analytics-system-tabs,.addr-tabs,.cafap-tabs,.meb-tabs,.addr-filter) a.on { background:var(--accent); color:#fff; border-color:var(--accent); }
body[data-mc-design] :is(.mc-periods,.analytics-root-tabs,.analytics-system-tabs,.addr-tabs,.cafap-tabs,.meb-tabs) a.on b { background:#ffffff26; color:#fff; }
/* Tinted summary tiles make the page scannable; explicit danger/warning wins. */
body[data-mc-design] :is(.district-dashboard-summary article,.overview-totals article,.mc-kpi,.addr-counters article,.queue-card) { border-top:3px solid #8aa7ed; border-radius:12px; }
body[data-mc-design] :is(.district-dashboard-summary article,.overview-totals article,.mc-kpi,.queue-card):nth-child(4n+1) { background:#edf3ff; }
body[data-mc-design] :is(.district-dashboard-summary article,.overview-totals article,.mc-kpi,.queue-card):nth-child(4n+2) { background:#f4efff; border-top-color:#b29ade; }
body[data-mc-design] :is(.district-dashboard-summary article,.overview-totals article,.mc-kpi,.queue-card):nth-child(4n+3) { background:#fff7e9; border-top-color:#e0b45f; }
body[data-mc-design] :is(.district-dashboard-summary article,.overview-totals article,.mc-kpi,.queue-card):nth-child(4n+4) { background:#edf8f3; border-top-color:#77bda6; }
body[data-mc-design] .district-dashboard-summary article:has(.danger),body[data-mc-design] .queue-card.urgent { background:#fff0f3; border-top-color:#d97590; }
body[data-mc-design] .district-dashboard-summary article:has(.warning),body[data-mc-design] .queue-card.attention { background:#fff7e9; border-top-color:#dca851; }
body[data-mc-design] .mc-kpi:first-child { border-color:var(--accent); background:var(--accent); }
body[data-mc-design] .mc-kpi:first-child :is(span,b,small) { color:#fff; }
body[data-mc-design] .district-dashboard-queue { border-radius:13px; border-top:3px solid #83a2e8; }
body[data-mc-design] .district-dashboard-queue:nth-child(2) { border-top-color:#b29ade; }
body[data-mc-design] .district-dashboard-queue:nth-child(3) { border-top-color:#72bba6; }
body[data-mc-design] .district-dashboard-queue:nth-child(4) { border-top-color:#dbb16b; }
body[data-mc-design] .district-dashboard-queue i { display:inline-block; color:var(--accent); margin-top:7px; font-style:normal; }
body[data-mc-design] :is(.overview-alert-card h4,.alert-address,.mobile-category,.district-dashboard-queue small,.ckkb-address,.cafap-address,.meb-address) { white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; -webkit-line-clamp:unset; }
body[data-mc-design] :is(.ckkb-card,.cafap-card,.meb-card,.dispatch-card,.team-panel,.audit-panel,.audit-list,.audit-row,.addr-toolbar) { border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:none; }
body[data-mc-design] .audit-list { overflow:hidden; }
body[data-mc-design] .audit-row { border-radius:0; border-width:0 0 1px; padding:16px 20px; }
body[data-mc-design] .audit-row :is(h3,strong) { color:var(--ink); }
body[data-mc-design] .audit-row :is(p,small) { color:var(--muted); }
body[data-mc-design] th { background:var(--accent-soft); color:var(--ink); }
body[data-mc-design] :is(td,th) { overflow-wrap:anywhere; }
body[data-mc-design] .request a { display:inline-flex; padding:5px 7px; }
body[data-mc-design] :is(.registry-filters,.mc-filters,.addr-search) { background:#fff; border-color:var(--line); }
body[data-mc-design] :is(.issue-list-card,.ckkb-card,.cafap-card,.meb-card) { box-shadow:none; }
body[data-mc-design] :is(.category-tag,.mobile-category) { border-radius:6px; font-size:11px; }
body[data-mc-design] .calendar-day { padding:4px; min-height:46px; border-color:var(--line); background:#f5f7fb; color:var(--muted); }
body[data-mc-design] .calendar-day.active { background:var(--accent); color:#fff; border-color:var(--accent); }
body[data-mc-design] .calendar-day.outside { background:transparent; border-color:transparent; }
body[data-mc-design] .weekday-option span { min-height:36px; align-items:center; }
body[data-mc-design] .issue-card-head { background:var(--nav-bg); }
body[data-mc-design] .auth-card { border-top:4px solid var(--accent); }
body[data-mc-design] .auth-submit { min-height:46px; }
body[data-mc-design] :is(.team-edit,.team-create-form,.dispatch-form) { gap:10px; }
@media(max-width:1150px) {
  body[data-mc-design] .app-shell { grid-template-columns:194px minmax(0,1fr); gap:0 18px; }
  body[data-mc-design] .main-nav a { gap:8px; padding:9px 8px; }
}
@media(max-width:900px) {
  body[data-mc-design] .app-shell { display:block; }
  body[data-mc-design] .main-nav { padding:8px; border-radius:13px; margin-bottom:16px; }
  body[data-mc-design] .main-nav a { background:transparent; border-color:transparent; }
  body[data-mc-design] .main-nav a.on { background:#395fd0; border-color:#5075e3; }
}
@media(max-width:600px) {
  body[data-mc-design] { font-size:14px; }
  body[data-mc-design] :is(button,input[type=submit],input[type=button],select,summary,.assign button,.resp-field button,.plan-max-send button,.main-nav a,.mc-periods a,.ckkb-word-export a,.registry-export,.registry-export-all) { min-height:44px; }
  body[data-mc-design] .main-nav { margin-bottom:14px; }
  body[data-mc-design] :is(.registry-hero,.district-dashboard-hero,.mc-hero,.ckkb-heading,.cafap-heading,.meb-heading,.dispatch-heading,.team-heading,.notification-heading,.addr-heading,.audit-heading) { padding:20px 17px; }
  body[data-mc-design] :is(.ckkb-word-export,.brief-actions,.team-actions,.registry-actions,.district-dashboard-actions) { flex-wrap:wrap; gap:8px; }
  body[data-mc-design] :is(input:not([type=checkbox]):not([type=radio]),select,textarea) { font-size:16px; }
  body[data-mc-design] :is(.team-edit,.team-create-form,.dispatch-form) { grid-template-columns:1fr; }
  body[data-mc-design] .calendar-day { padding:3px; min-height:44px; }
}
@media print {
  body[data-mc-design] :is(.registry-hero,.mc-hero,.district-dashboard-hero,.queue-card,.mc-kpi) { background:#fff; color:#000; border-color:#ccd2dc; }
  body[data-mc-design] .mc-kpi:first-child :is(span,b,small) { color:#000; }
}

/* Export colours also cover the original extension-less /export route. */
body[data-mc-design] a.registry-export,
body[data-mc-design] a[data-mc-file=xlsx] { background:#eaf7f0!important; color:#126246!important; border-color:#bcdccd!important; }
body[data-mc-design] a[data-mc-file=pdf] { background:#fff0f3!important; color:#a9294b!important; border-color:#efc6d0!important; }
body[data-mc-design] a[data-mc-file=docx] { background:#edf3ff!important; color:#2b55a6!important; border-color:#c9d8f3!important; }
body[data-mc-design] a[data-mc-file] :is(span,small,b,strong) { color:inherit; }
body[data-mc-design] :is(.notes-page-heading,.team-note-card,.notes-empty) { background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:none; }
body[data-mc-design] .team-note-card footer a { white-space:normal; overflow-wrap:anywhere; }

/* Full administrator and populated-table layouts. */
body[data-mc-design] .header-admin-links { display:flex; align-items:center; gap:6px; padding:5px; }
body[data-mc-design] .header-admin-links a { padding:7px 10px; border-radius:7px; color:var(--accent); text-decoration:none; font-size:12px; font-weight:600; }
body[data-mc-design] .header-admin-links a:hover { background:var(--accent-soft); }
body[data-mc-design] :is(.dashboard-max-form,.alert-max-form) { display:grid; gap:6px; }
body[data-mc-design] .dispatch-journal { overflow-x:auto; max-width:100%; border:1px solid var(--line); border-radius:12px; box-shadow:none; }
body[data-mc-design] .dispatch-journal table { min-width:760px; width:100%; }
body[data-mc-design] .brief-page { min-width:0; grid-template-columns:minmax(0,1fr); }
body[data-mc-design] :is(.brief-card,.brief-table-form,.brief-preview-grid,.brief-sheet) { min-width:0; max-width:100%; }
body[data-mc-design] .brief-table-form { overflow-x:auto; }
body[data-mc-design] .brief-table { min-width:850px; }
body[data-mc-design] .district-calendar { min-width:0; }
body[data-mc-design] :is(.calendar-weekdays,.calendar-grid) { grid-template-columns:repeat(7,minmax(0,1fr)); }
body[data-mc-design] .calendar-day-form { min-width:0; }
body[data-mc-design] button.calendar-day { padding:3px 2px; min-width:0; }
body[data-mc-design] .calendar-day small { font-size:8px; white-space:normal; overflow-wrap:anywhere; line-height:1.2; }
@media(max-width:600px) {
  body[data-mc-design] .brief-page button.brief-primary { min-height:44px; }
  body[data-mc-design] .brief-upload { min-width:0; }
}

body[data-mc-design] .dispatch-chat { max-width:100%; white-space:normal; overflow-wrap:anywhere; }

body[data-mc-design] .mc-kpis .mc-kpi:first-child { background:var(--accent); border-color:var(--accent); }
body[data-mc-design] th { overflow-wrap:normal; word-break:normal; }
body[data-mc-design] .plan-insights .queue-card:nth-child(n+6) { background:#fff0f3; border-top-color:#d97590; }
body[data-mc-design] .plan-insights .queue-card:nth-child(4),body[data-mc-design] .plan-insights .queue-card:nth-child(5) { background:#fff7e9; border-top-color:#dca851; }
