:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #15171c;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f1f2f5;
  --accent: #2563eb;
  --accent-text: #ffffff;
  --up: #16a34a;
  --warn: #d97706;
  --down: #dc2626;
  --none: #d1d5db;
  --up-soft: #dcfce7;
  --warn-soft: #fef3c7;
  --down-soft: #fee2e2;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 1px 8px rgba(0,0,0,.04);
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115;
    --card: #171a21;
    --text: #e8eaee;
    --muted: #8b93a1;
    --line: #262a33;
    --soft: #1e222a;
    --accent: #3b82f6;
    --up: #22c55e;
    --warn: #f59e0b;
    --down: #ef4444;
    --none: #2d323c;
    --up-soft: #12301d;
    --warn-soft: #3a2a0c;
    --down-soft: #3d1414;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --card: #171a21; --text: #e8eaee; --muted: #8b93a1; --line: #262a33; --soft: #1e222a;
  --accent: #3b82f6; --up: #22c55e; --warn: #f59e0b; --down: #ef4444; --none: #2d323c;
  --up-soft: #12301d; --warn-soft: #3a2a0c; --down-soft: #3d1414; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 4px 0 14px; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 16px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
code { background: var(--soft); padding: 1px 5px; border-radius: 5px; word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* Viršutinė juosta */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: var(--card); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 650; }
.brand:hover { text-decoration: none; }
.top nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.top nav a, .me {
  display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; color: var(--muted); white-space: nowrap; position: relative;
}
.top nav a:hover, .me:hover { background: var(--soft); text-decoration: none; }
.top nav a.on { color: var(--text); background: var(--soft); font-weight: 600; }
.top svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.badge { background: var(--down); color: #fff; font-size: 11px; border-radius: 10px; padding: 0 6px; line-height: 17px; }
@media (max-width: 700px) {
  .brand span { display: none; }
  .top nav a span { display: none; }
  .top nav a { padding: 8px 12px; }
  .top nav { justify-content: space-around; }
}

main { max-width: 1180px; margin: 0 auto; padding: 16px; }
main.narrow { max-width: 440px; padding-top: 8vh; }

.banner { padding: 10px 16px; text-align: center; font-size: 14px; }
.banner.warn { background: var(--warn-soft); color: var(--text); }
.flash { padding: 10px 14px; border-radius: 10px; margin: 0 0 12px; background: var(--up-soft); }
.flash.err { background: var(--down-soft); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card.danger { border-color: var(--down-soft); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }

/* Mygtukai ir formos */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 550; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--soft); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.red { color: var(--down); }
.btn.sm { padding: 4px 10px; font-size: 13px; border-radius: 7px; }
.btn.wide { width: 100%; margin-top: 6px; }
.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; margin-top: 10px; padding: 4px; }
form.inline { display: inline; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.field small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=time], input:not([type]), select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); font: inherit; min-width: 0;
}
select.sm { width: auto; padding: 4px 8px; font-size: 13px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
input.code { font-size: 24px; letter-spacing: .3em; text-align: center; font-family: ui-monospace, Menlo, monospace; }
.check { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; }
.formbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters input[type=search] { flex: 2 1 220px; width: auto; }
.filters select { flex: 1 1 140px; width: auto; }
details { margin: 0 0 10px; }
summary { cursor: pointer; color: var(--accent); font-size: 14px; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.subnav a { padding: 5px 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); font-size: 13px; color: var(--text); }
.chan { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 10px; }
.chan h3 { text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--text); }

/* Prisijungimas */
.auth h1 { text-align: center; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 8px; }
.auth-logo h1 { margin: 0; }
.qr { display: flex; justify-content: center; margin: 12px 0; }
.qr svg, .qr img { width: 210px; height: 210px; background: #fff; padding: 10px; border-radius: 10px; }
.steps { padding-left: 20px; }
pre.codes { font-size: 17px; line-height: 1.7; text-align: center; background: var(--soft); padding: 12px; border-radius: 10px; }

/* Apžvalga */
.summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.stat.s-up b { color: var(--up); } .stat.s-warn b { color: var(--warn); } .stat.s-down b { color: var(--down); } .stat.s-pending b { color: var(--muted); }
.summary.small4 .stat b { font-size: 20px; }
@media (max-width: 560px) { .summary { grid-template-columns: repeat(2, 1fr); } }
.allgood { background: var(--up-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; font-weight: 600; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.group h2 { display: flex; align-items: baseline; gap: 6px; }
.mlist { display: flex; flex-direction: column; }
.mrow {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) minmax(120px, 300px) 70px; align-items: center; gap: 12px;
  padding: 9px 8px; border-radius: 9px; color: var(--text); border-top: 1px solid var(--line);
}
.mrow:first-child { border-top: 0; }
.mrow:hover { background: var(--soft); text-decoration: none; }
.mname { display: flex; flex-direction: column; min-width: 0; font-weight: 550; }
.mname .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mname small { font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
.ticon { margin-right: 4px; }
.since { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--none); }
.st-up .dot { background: var(--up); }
.st-warn .dot { background: var(--warn); }
.st-down .dot { background: var(--down); box-shadow: 0 0 0 4px var(--down-soft); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .st-down .dot { animation: none; } }
@media (max-width: 640px) {
  .mrow { grid-template-columns: 12px minmax(0, 1fr) 60px; }
  .mrow .ubar { grid-column: 2 / 4; }
  .since { grid-row: 1; grid-column: 3; }
}
.ubar { display: flex; gap: 1px; height: 22px; align-items: stretch; min-width: 0; overflow: hidden; }
.ubar i { flex: 1; border-radius: 2px; background: var(--up); opacity: .85; min-width: 1px; }
.ubar i.n { background: var(--none); }
.ubar i.w { background: var(--warn); }
.ubar i.d { background: var(--down); opacity: 1; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 20px; font-size: 13px; font-weight: 600; background: var(--soft); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--none); }
.pill.s-up { background: var(--up-soft); } .pill.s-up i { background: var(--up); }
.pill.s-warn { background: var(--warn-soft); } .pill.s-warn i { background: var(--warn); }
.pill.s-down { background: var(--down-soft); } .pill.s-down i { background: var(--down); }
.sev { font-size: 11.5px; padding: 1px 7px; border-radius: 5px; font-weight: 600; background: var(--soft); }
.sev-critical { background: var(--down-soft); color: var(--down); }
.sev-warning { background: var(--warn-soft); color: var(--warn); }
.lvl { font-size: 11px; padding: 0 6px; border-radius: 4px; font-weight: 600; background: var(--soft); color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.lvl-error, .lvl-critical { background: var(--down-soft); color: var(--down); }
.lvl-warning { background: var(--warn-soft); color: var(--warn); }

/* Incidentai */
.inc { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border-left: 4px solid var(--none); background: var(--soft); margin-bottom: 8px; }
.inc.sev-critical { border-left-color: var(--down); }
.inc.sev-warning { border-left-color: var(--warn); }
.inc.acked { opacity: .65; }
.inc-main { min-width: 0; }
.inc-main a { color: var(--text); }
.inc-act { flex: none; }
.pager { display: flex; gap: 8px; margin-top: 10px; }

/* Stebėjimo puslapis */
.mhead { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.mhead h1 { margin: 2px 0 6px; }
.crumbs { font-size: 13px; color: var(--muted); }
.meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.lastmsg { margin: 8px 0 0; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.chart { margin-top: 14px; }
.chart h3 { margin: 0 0 6px; }
.chart svg { width: 100%; height: 150px; display: block; overflow: visible; }
.chart .legend { display: flex; gap: 12px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.chart .legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.meter { display: inline-block; width: 90px; height: 7px; border-radius: 4px; background: var(--soft); overflow: hidden; vertical-align: middle; }
.meter i { display: block; height: 100%; background: var(--up); }
.meter.w i { background: var(--warn); } .meter.d i { background: var(--down); }
.ifaces { display: flex; flex-wrap: wrap; gap: 6px; }
.if { font-size: 12.5px; padding: 3px 9px; border-radius: 6px; background: var(--soft); color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
.if.on { background: var(--up-soft); color: var(--text); }
.if.watched { font-weight: 700; outline: 1px solid var(--line); }
.if.watched.off { background: var(--down-soft); color: var(--down); }
.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.card.type { display: flex; flex-direction: column; gap: 6px; color: var(--text); margin: 0; }
.card.type:hover { border-color: var(--accent); text-decoration: none; }
.card.type span { color: var(--muted); font-size: 14px; }
.tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.tabs button { border: 1px solid var(--line); background: var(--card); color: var(--muted); padding: 6px 14px; border-radius: 8px; cursor: pointer; font: inherit; }
.tabs button.on { background: var(--soft); color: var(--text); font-weight: 600; }
pre.code { background: var(--soft); padding: 12px; border-radius: 10px; overflow-x: auto; font-size: 12px; max-height: 360px; }

.copy { display: flex; align-items: center; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.copy > span { font-size: 13px; color: var(--muted); width: 100%; }
.copy code { flex: 1 1 200px; padding: 8px 10px; border-radius: 8px; display: block; }

/* Lentelės */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px; border-bottom: 1px solid var(--line); }
td { padding: 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.logs td { font-size: 13px; }
table.logs td.ts { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
table.logs td.src { white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
table.logs td.src small { display: block; color: var(--muted); font-size: 11px; }
table.logs td.msg { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; word-break: break-word; white-space: pre-wrap; }
table.logs tr.l-error td.msg, table.logs tr.l-critical td.msg { color: var(--down); }
table.logs tr.l-warning td.msg { color: var(--warn); }
table.logs tr.fresh { animation: fresh 2s ease-out; }
@keyframes fresh { from { background: var(--up-soft); } }
@media (max-width: 640px) {
  table.logs tr { display: grid; grid-template-columns: auto auto 1fr; }
  table.logs td.msg { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-top: 0; }
  table.logs td { border: 0; }
}

/* Log taisyklės */
.rules { display: flex; flex-direction: column; gap: 6px; }
.rule { display: grid; grid-template-columns: 1.2fr 2fr .8fr 1fr 80px 90px auto; gap: 6px; align-items: center; }
.rule.head { font-size: 12px; color: var(--muted); font-weight: 600; }
.rule input, .rule select { padding: 6px 8px; font-size: 13px; }
.rule .check { margin: 0; display: inline-flex; }
.rule.new { border-top: 1px dashed var(--line); padding-top: 8px; }
@media (max-width: 900px) {
  .rule { grid-template-columns: 1fr 1fr; padding: 8px; background: var(--soft); border-radius: 10px; }
  .rule.head { display: none; }
}

/* ===================== Dispečerio pultas ===================== */
main.wide { max-width: none; padding: 10px 12px 16px; }
body.console { background: #0b0d10; }
body.console .top { background: #111418; border-color: #1f242b; }
.cbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  background: #111418; border: 1px solid #1f242b; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px;
}
.cbar-l { display: flex; gap: 8px; }
.cbar-r { display: flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.cnt { min-width: 46px; text-align: center; font: 700 20px/1 ui-monospace, Menlo, monospace; padding: 7px 10px; border-radius: 7px; background: #171b21; }
.cnt.c-up { color: #22c55e; } .cnt.c-warn { color: #f59e0b; } .cnt.c-down { color: #ef4444; }
.clock { text-align: center; line-height: 1.1; }
.clock b { display: block; font: 700 clamp(22px, 2.4vw, 40px)/1 ui-monospace, Menlo, monospace; letter-spacing: .04em; color: #e8eaee; }
.clock span { font-size: 12px; color: #8b93a1; letter-spacing: .1em; }
.cbtn { background: #171b21; border: 1px solid #262c35; color: #cfd5de; border-radius: 7px; padding: 7px 11px; font: 600 13px/1 inherit; cursor: pointer; white-space: nowrap; }
.cbtn:hover { background: #1f242c; text-decoration: none; }
.cbtn.on { background: #1d3a5f; border-color: #3b82f6; color: #fff; }
.cbtn.add { background: #2563eb; border-color: #2563eb; color: #fff; }
#tilefilter { width: 160px; padding: 7px 10px; background: #0b0d10; border-color: #262c35; font-size: 13px; }

.alarms { background: #111418; border: 1px solid #1f242b; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.alarms.hot { border-color: #7f1d1d; box-shadow: 0 0 0 1px #7f1d1d, 0 0 24px rgba(239, 68, 68, .15); }
.noalarm { padding: 10px 14px; color: #22c55e; font: 700 14px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .08em; }
.ahead { display: flex; justify-content: space-between; padding: 7px 12px; font: 700 12px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .1em; color: #8b93a1; border-bottom: 1px solid #1f242b; }
.arow { display: grid; grid-template-columns: 6px 52px 64px minmax(80px, 160px) 1fr auto; align-items: center; gap: 10px; padding: 7px 12px 7px 0; border-bottom: 1px solid #1a1f26; }
.arow:last-child { border-bottom: 0; }
.abar { align-self: stretch; background: #8b93a1; }
.arow.as-critical .abar { background: #ef4444; }
.arow.as-warning .abar { background: #f59e0b; }
.arow.as-critical:not(.acked) { background: rgba(239, 68, 68, .1); animation: alarmflash 1.2s steps(2, jump-none) infinite; }
@keyframes alarmflash { 50% { background: rgba(239, 68, 68, .22); } }
@media (prefers-reduced-motion: reduce) { .arow.as-critical:not(.acked) { animation: none; } }
.arow.acked { opacity: .6; }
.atime, .adur { font: 600 13px/1 ui-monospace, Menlo, monospace; color: #cfd5de; }
.adur { color: #f59e0b; }
.asite { font-size: 12px; color: #8b93a1; text-transform: uppercase; letter-spacing: .05em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.atitle { color: #e8eaee; font-weight: 600; min-width: 0; }
.atitle small { display: block; font-weight: 400; color: #8b93a1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ack { background: #7f1d1d; color: #fff; border: 1px solid #ef4444; border-radius: 6px; padding: 6px 10px; font: 700 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; cursor: pointer; }
.arow.as-warning .ack { background: #3a2a0c; border-color: #f59e0b; }
.ack:hover { filter: brightness(1.2); }
.ack.ign { background: transparent; border-color: #3a414c; color: #8b93a1; }

.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 10px; align-items: start; margin-bottom: 10px; }
.site { background: #111418; border: 1px solid #1f242b; border-radius: 10px; overflow: hidden; }
.shead { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #151a20; border-bottom: 1px solid #1f242b; font: 700 13px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: #cfd5de; }
.shead b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shead span { color: #8b93a1; font-weight: 600; }
.led { width: 10px; height: 10px; border-radius: 50%; background: #3a414c; flex: none; }
.st-up > .led, .site.st-up .shead .led { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, .6); }
.st-warn > .led, .site.st-warn .shead .led { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, .6); }
.st-down > .led, .site.st-down .shead .led { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, .8); }
.tile {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 2px 8px; align-items: center;
  padding: 6px 10px; border-bottom: 1px solid #1a1f26; color: #e8eaee; border-left: 3px solid transparent;
}
.tile:last-child { border-bottom: 0; }
.tile:hover { background: #171c23; text-decoration: none; }
.tile .tn { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .tv { font: 12px/1.2 ui-monospace, Menlo, monospace; color: #8b93a1; white-space: nowrap; text-align: right; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.tile .ubar { grid-column: 2 / 4; height: 5px; gap: 1px; }
.tile .ubar i { border-radius: 1px; opacity: .7; }
.tile.st-warn { border-left-color: #f59e0b; background: rgba(245, 158, 11, .06); }
.tile.st-down { border-left-color: #ef4444; background: rgba(239, 68, 68, .12); }
.tile.st-down .tv { color: #fca5a5; }
.tile.st-paused, .tile.st-pending { opacity: .55; }
.board.onlyprob .tile.st-up, .board.onlyprob .tile.st-paused, .board.onlyprob .tile.st-pending { display: none; }
.board.onlyprob .site.st-up { display: none; }
.tile.hidden { display: none; }

.ticker { background: #111418; border: 1px solid #1f242b; border-radius: 10px; }
.ticker .ahead a { color: #8b93a1; letter-spacing: 0; font-weight: 400; }
.ev { display: flex; gap: 12px; padding: 4px 12px; font-size: 13px; border-bottom: 1px solid #161a20; color: #cfd5de; }
.ev:last-child { border-bottom: 0; }
.ev .et { font: 12px/1.5 ui-monospace, Menlo, monospace; color: #8b93a1; flex: none; width: 74px; }
.ev.es-critical .ex { color: #fca5a5; } .ev.es-warning .ex { color: #fcd34d; } .ev.es-ok .ex { color: #86efac; }

/* Viso ekrano (TV) režimas */
body.fs .top, body.fs .banner { display: none; }
body.fs main.wide { padding: 10px; }
body.fs .tile .tn { font-size: clamp(13px, .95vw, 18px); }
body.fs .tile .tv { font-size: clamp(12px, .8vw, 15px); }
body.fs .arow { font-size: clamp(14px, 1vw, 20px); }

@media (max-width: 760px) {
  .cbar { grid-template-columns: 1fr auto; }
  .cbar-r { grid-column: 1 / -1; justify-content: stretch; }
  .cbar-r > * { flex: 1; text-align: center; }
  #tilefilter { width: 100%; flex-basis: 100%; }
  .arow { grid-template-columns: 6px 44px 1fr auto; row-gap: 2px; }
  .arow .adur { display: none; }
  .arow .asite { grid-column: 3; grid-row: 2; }
  .arow .atitle { grid-column: 3; grid-row: 1; }
  .arow .aact { grid-column: 4; grid-row: 1 / 3; }
}

/* Ryšio lentelė */
table.net td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.net td.bad { color: var(--down); font-weight: 600; }
.dotx { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--none); }
.dotx.st-up { background: var(--up); } .dotx.st-warn { background: var(--warn); } .dotx.st-down { background: var(--down); }
