@font-face { font-family: "Vazirmatn FD"; font-weight: 400; font-display: swap; src: url(/static/fonts/Vazirmatn-FD-Regular.woff2) format("woff2"); }
@font-face { font-family: "Vazirmatn FD"; font-weight: 500 600; font-display: swap; src: url(/static/fonts/Vazirmatn-FD-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "Vazirmatn FD"; font-weight: 700 800; font-display: swap; src: url(/static/fonts/Vazirmatn-FD-Bold.woff2) format("woff2"); }

:root {
  --bg: #F4F5F9; --surface: #FFFFFF; --surface-alt: #F8F9FC; --sidebar: #0F172A; --sidebar-hover: #1E293B;
  --text: #0F172A; --text-soft: #334155; --muted: #64748B; --faint: #94A3B8;
  --border: #E2E8F0; --border-strong: #CBD5E1;
  --accent: #4F46E5; --accent-hover: #4338CA; --accent-soft: #EEF2FF;
  --success: #10B981; --success-soft: #ECFDF5; --warning: #F59E0B; --warning-soft: #FFFBEB;
  --danger: #EF4444; --danger-soft: #FEF2F2; --telegram: #229ED9; --rss: #F97316; --sky: #0EA5E9;
  --radius: 14px; --radius-sm: 10px; --shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 14px rgba(15,23,42,.05);
  --font: "Vazirmatn FD", Vazirmatn, Tahoma, "Segoe UI", system-ui, sans-serif;
  --sidebar-w: 248px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.7; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; text-align: left; }
.muted { color: var(--muted); } .faint { color: var(--faint); font-size: 12px; } .soft { color: var(--text-soft); }
.hidden { display: none !important; }
.grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* boot / spinner */
.boot { display: grid; place-items: center; height: 100vh; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading { display: grid; place-items: center; padding: 48px 0; }

/* layout */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); flex: none; background: var(--sidebar); color: #E2E8F0; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 18px 12px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.brand .logo { width: 38px; height: 38px; border-radius: 11px; background: var(--accent); display: grid; place-items: center; flex: none; }
.brand b { font-size: 17px; color: #fff; display: block; line-height: 1.3; }
.brand span { font-size: 11px; color: var(--faint); }
.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #CBD5E1; text-decoration: none; font-weight: 500; }
.nav a:hover { background: var(--sidebar-hover); color: #fff; }
.nav a.active { background: var(--accent); color: #fff; }
.nav svg { width: 19px; height: 19px; flex: none; }
.side-status { margin: 10px 4px 0; padding: 12px; border-radius: 12px; background: var(--sidebar-hover); }
.side-status .t { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 13px; }
.side-status .s { color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.side-user { display: flex; align-items: center; gap: 8px; padding: 10px 6px 0; color: var(--faint); font-size: 12px; }
.side-user button { margin-inline-start: auto; background: none; border: 0; color: #CBD5E1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.side-user button:hover { background: var(--sidebar-hover); color: #fff; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; display: inline-block; }
.dot.run { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.dot.ok { background: var(--success); } .dot.err { background: var(--danger); } .dot.pause { background: var(--warning); }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; align-items: center; gap: 12px; padding: 10px 14px; background: var(--sidebar); color: #fff; position: sticky; top: 0; z-index: 25; }
.topbar button { background: none; border: 0; color: #fff; padding: 6px; cursor: pointer; display: grid; }
.topbar b { font-size: 16px; }
.content { padding: 26px 30px 60px; max-width: 1500px; width: 100%; margin: 0 auto; }
.scrim { display: none; }

.page-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 700; line-height: 1.4; }
.page-head p { color: var(--muted); }
.page-head .actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* cards */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { font-size: 15.5px; font-weight: 700; }
.card-head .sub { color: var(--muted); font-size: 12.5px; }
.card-head .right { margin-inline-start: auto; }
.grid { display: grid; gap: 16px; }
.grid.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.grid.two { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin-bottom: 16px; }
.grid.map { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); margin-bottom: 16px; }
.stat { display: flex; gap: 14px; align-items: center; }
.stat .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat .ico svg { width: 22px; height: 22px; }
.stat .v { font-size: 26px; font-weight: 700; line-height: 1.2; }
.stat .l { color: var(--muted); font-size: 12.5px; }
.stat .n { color: var(--faint); font-size: 11.5px; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text-soft); cursor: pointer; font-weight: 500; min-height: 38px; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover:not(:disabled) { background: var(--surface-alt); border-color: var(--faint); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover:not(:disabled) { background: #DC2626; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover:not(:disabled) { background: var(--accent-soft); }
.btn.sm { padding: 4px 11px; min-height: 30px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { padding: 6px; min-height: 32px; min-width: 32px; }
.btn.icon.danger-text { color: var(--danger); }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .lbl { font-weight: 600; font-size: 13px; color: var(--text-soft); }
.hint { font-size: 12px; color: var(--muted); }
input[type=text], input[type=search], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; min-height: 38px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
textarea { resize: vertical; min-height: 84px; }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters > * { flex: 0 1 auto; } .filters input[type=search] { flex: 1 1 220px; min-width: 160px; width: auto; }
.filters select { width: auto; min-width: 130px; } .filters .date { width: 130px; text-align: center; }
.switch { position: relative; width: 40px; height: 23px; flex: none; display: inline-block; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch i { position: absolute; inset: 0; border-radius: 23px; background: var(--border-strong); transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked + i { background: var(--success); } .switch input:checked + i::after { transform: translateX(-17px); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(79,70,229,.25); }

/* badges / pills */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-alt); color: var(--text-soft); white-space: nowrap; }
.badge.accent { background: var(--accent-soft); color: var(--accent); } .badge.success { background: var(--success-soft); color: #047857; }
.badge.warning { background: var(--warning-soft); color: #B45309; } .badge.danger { background: var(--danger-soft); color: #B91C1C; }
.badge.faint { color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 99px; font-weight: 600; font-size: 13px; background: var(--surface-alt); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.kind { width: 9px; height: 9px; border-radius: 3px; flex: none; display: inline-block; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; }
th { text-align: start; color: var(--muted); font-weight: 600; font-size: 12.5px; padding: 8px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-alt); position: sticky; top: 0; }
td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; } tbody tr.click:hover, tbody tr.sel { background: var(--accent-soft); }
td.num, th.num { text-align: center; white-space: nowrap; }
td .title { font-weight: 500; }
.score { display: inline-block; min-width: 46px; text-align: center; padding: 1px 8px; border-radius: 8px; font-weight: 700; font-size: 12.5px; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty b { display: block; color: var(--text-soft); font-size: 15px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }
.banner { padding: 11px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.banner.warn { background: var(--warning-soft); color: #92400E; } .banner.err { background: var(--danger-soft); color: #B91C1C; }
.banner .btn { margin-inline-start: auto; }

/* dashboard */
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font-family: var(--font); fill: var(--muted); font-size: 11px; }
.tip { position: absolute; pointer-events: none; background: var(--sidebar); color: #fff; padding: 4px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -120%); z-index: 4; }
.gauge { display: flex; flex-direction: column; align-items: center; }
.gauge .big { font-size: 34px; font-weight: 700; line-height: 1; }
.press-list { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.press-row { display: grid; grid-template-columns: minmax(70px, 130px) 1fr 38px; gap: 10px; align-items: center; font-size: 12.5px; cursor: pointer; }
.press-row .bar { height: 8px; background: var(--border); border-radius: 8px; overflow: hidden; } .press-row .bar i { display: block; height: 100%; border-radius: 8px; }
.map-box { position: relative; background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.map-box svg { display: block; width: 100%; height: 420px; touch-action: pan-y; }
.map-box circle { cursor: pointer; transition: opacity .12s; } .map-box circle:hover { opacity: .8; }
.map-box text { font-family: var(--font); font-size: 11px; fill: var(--text-soft); pointer-events: none; paint-order: stroke; stroke: var(--surface-alt); stroke-width: 3px; }
.alert-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.alert-item:last-child { border-bottom: 0; }
.alert-item .bar { width: 4px; border-radius: 4px; flex: none; }
.alert-item b { display: block; font-size: 13.5px; } .alert-item span { font-size: 12.5px; color: var(--muted); }
.qv h3 { font-size: 15px; margin-bottom: 8px; }
.qv .kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.qv .kv div { background: var(--surface-alt); border-radius: 10px; padding: 8px 12px; } .qv .kv b { display: block; font-size: 17px; }
.latest { margin: 8px 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.latest li { font-size: 12.5px; padding-inline-start: 12px; border-inline-start: 3px solid var(--border); }

/* dossiers */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.dcard { position: relative; display: flex; gap: 14px; padding: 16px 18px; cursor: pointer; border-inline-start: 5px solid var(--accent); }
.dcard:hover { border-color: var(--border-strong); border-inline-start-color: inherit; box-shadow: 0 2px 6px rgba(15,23,42,.08), 0 8px 22px rgba(15,23,42,.07); }
.dcard.sel { outline: 2px solid var(--accent); outline-offset: -1px; background: var(--accent-soft); }
.dcard .cnt { width: 54px; flex: none; text-align: center; } .dcard .cnt b { display: block; font-size: 24px; line-height: 1.2; } .dcard .cnt span { font-size: 11.5px; color: var(--muted); }
.dcard h3 { font-size: 14.5px; font-weight: 600; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dcard .srcs { font-size: 12px; color: var(--muted); margin: 3px 0 8px; }
.dcard .pick { position: absolute; top: 12px; inset-inline-end: 12px; }
.timeline { position: relative; padding-inline-start: 26px; }
.timeline::before { content: ""; position: absolute; inset-block: 8px; inset-inline-start: 7px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 14px; }
.tl-item::before { content: ""; position: absolute; top: 18px; inset-inline-start: -25px; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--accent)); border: 3px solid var(--bg); box-sizing: content-box; margin-inline-start: -3px; }
.tl-item .card { padding: 14px 18px; }
.tl-item h4 { margin: 4px 0; font-size: 14.5px; font-weight: 600; line-height: 1.8; }
.tl-item p { color: var(--text-soft); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tl-item .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.tl-item .acts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pin { color: var(--accent); }

/* topics */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.tcard h3 { font-size: 16px; font-weight: 700; } .tcard .desc { color: var(--muted); font-size: 13px; margin: 4px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 12px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 16px; color: var(--muted); cursor: pointer; font-weight: 500; white-space: nowrap; margin-bottom: -1px; }
.tabs button:hover { color: var(--text); } .tabs button.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.conf { display: flex; align-items: center; gap: 8px; min-width: 120px; } .conf .bar { flex: 1; height: 7px; background: var(--border); border-radius: 7px; overflow: hidden; } .conf .bar i { display: block; height: 100%; }
.progress { height: 9px; background: var(--border); border-radius: 9px; overflow: hidden; } .progress i { display: block; height: 100%; background: var(--accent); transition: width .3s; }

/* settings / forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; }
.form-grid .wide { grid-column: 1 / -1; }
.sect { margin-bottom: 16px; }
.logbox { background: #0B1220; color: #CBD5E1; border-radius: 12px; padding: 12px 14px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; max-height: 420px; overflow: auto; direction: ltr; text-align: left; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.logbox .WARNING { color: #FBBF24; } .logbox .ERROR, .logbox .CRITICAL { color: #F87171; }

/* modal / toast */
.modal-back { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .12s; }
.modal { background: var(--surface); border-radius: 16px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { width: min(760px, 100%); }
.modal header { padding: 18px 22px 8px; } .modal header h2 { font-size: 17px; }
.modal .body { padding: 8px 22px 14px; overflow-y: auto; }
.modal footer { padding: 12px 22px 18px; display: flex; gap: 8px; justify-content: flex-start; flex-wrap: wrap; }
.picker { max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; margin-top: 10px; }
.picker button { display: flex; width: 100%; text-align: start; gap: 10px; align-items: center; background: none; border: 0; border-bottom: 1px solid var(--border); padding: 9px 12px; cursor: pointer; }
.picker button:hover, .picker button.on { background: var(--accent-soft); } .picker button:last-child { border-bottom: 0; }
.toasts { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 36px); }
.toast { background: var(--sidebar); color: #fff; padding: 11px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: rise .18s; border-inline-start: 4px solid var(--accent); }
.toast.success { border-color: var(--success); } .toast.error { border-color: var(--danger); background: #7F1D1D; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } } @keyframes fade { from { opacity: 0; } }

/* login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(1200px 600px at 80% -10%, #E0E7FF 0%, transparent 60%), var(--bg); }
.login-card { width: min(400px, 100%); background: var(--surface); border-radius: 20px; padding: 32px 30px; box-shadow: 0 10px 40px rgba(15,23,42,.12); border: 1px solid var(--border); }
.login-card .logo { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); display: grid; place-items: center; margin: 0 auto 14px; }
.login-card h1 { text-align: center; font-size: 22px; } .login-card .sub { text-align: center; color: var(--muted); margin: 4px 0 22px; }
.login-card .error { background: var(--danger-soft); color: #B91C1C; padding: 9px 12px; border-radius: 10px; font-size: 13px; }
.login-card .btn { width: 100%; min-height: 44px; font-size: 15px; }

/* responsive */
@media (max-width: 1100px) {
  .grid.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.two, .grid.map { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .topbar { display: flex; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; transform: translateX(100%); transition: transform .2s; width: min(280px, 84vw); box-shadow: -8px 0 30px rgba(0,0,0,.3); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 28; }
  .content { padding: 16px 14px 70px; }
  .page-head h1 { font-size: 20px; }
  .dgrid, .tgrid { grid-template-columns: minmax(0, 1fr); }
  .map-box svg { height: 340px; }
  .card { padding: 15px 14px; }
  .stat .v { font-size: 22px; } .stat .ico { width: 38px; height: 38px; }
  /* tables become stacked cards */
  table.stack-sm thead { display: none; }
  table.stack-sm, table.stack-sm tbody, table.stack-sm tr, table.stack-sm td { display: block; width: 100%; }
  table.stack-sm tr { padding: 10px 4px; border-bottom: 1px solid var(--border); } table.stack-sm tr:last-child { border-bottom: 0; }
  table.stack-sm td { border: 0; padding: 2px 8px; text-align: start; }
  table.stack-sm td.num { text-align: start; }
  table.stack-sm td[data-l]::before { content: attr(data-l) ": "; color: var(--faint); font-size: 12px; }
  table.stack-sm td.nolabel::before { content: none; }
}
@media (max-width: 520px) {
  .grid.stats { gap: 10px; } .grid.stats .card { padding: 12px; } .stat { gap: 10px; }
  .filters select, .filters .date { flex: 1 1 130px; } .modal footer .btn { flex: 1; }
  .page-head .actions { width: 100%; } .page-head .actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
/* --- page-specific additions --- */
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.card.flush { padding: 0; overflow: hidden; }
.actions-cell { white-space: nowrap; text-align: end; }
.clip2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.err-text { color: var(--danger); font-size: 12px; max-width: 360px; word-break: break-word; }
.tcard { cursor: pointer; display: flex; flex-direction: column; gap: 8px; } .tcard.off { opacity: .6; }
.match { display: flex; gap: 14px; align-items: center; padding: 14px 18px; flex-wrap: wrap; }
.match .title { font-weight: 600; color: var(--text); text-decoration: none; }
.match .title:hover { color: var(--accent); }
.match .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.score.big { font-size: 15px; min-width: 62px; padding: 6px 10px; }
.badge .x { background: none; border: 0; padding: 0 0 0 2px; cursor: pointer; color: inherit; font-size: 15px; line-height: 1; }
td.actions-cell .btn { display: inline-flex; }