/* Krój z księgi znaku DevaGroup: Open Sans (pliki na naszym serwerze). */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/open-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/open-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* DevaGuard: wzorzec Visitly UI (2026-10-06). Szare tło, białe karty, czarne przyciski, Arial, etykiety monospace. */
:root {
  --backdrop: #B7B4AE; --sidebar: #F1F0EC; --group: #F5F4F0;
  --bg: #FFFFFF; --card: #FFFFFF; --ink: #242423; --muted: #79776F; --line: #E5E4DF; --input: #FAF9F6; --track: #EEEDE9;
  --accent: #191918; --accent-dark: #000; --accent-soft: #EEEDE9; --nav-active: #fff; --green-ic: #E3F3E9; --avatar: #EEE1D6;
  --ok: #00743C; --ok-text: #00743C;
  --bad: #DF422E; --bad-text: #B93222; --bad-soft: #FDECE9; --bad-ic: #FADBD5;
  --warn: #D38B08; --warn-text: #94600A; --warn-soft: #FBF1DD; --warn-ic: #F6E2B6;
  --purple: #6A5BC2; --purple-soft: #ECE8FA; --blue: #3A6EA5; --blue-soft: #E3ECF6;
  --shadow: 0 1px 2px #00000008; --gap: 12px;
  --font: "Open Sans", Arial, Helvetica, sans-serif; --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.4 var(--font); color: var(--ink); background: var(--backdrop); font-variant-numeric: tabular-nums; }
a { color: var(--ink); }
a:hover { color: #000; }
h1, h2, h3, p { margin: 0; }
.i { flex: none; display: block; }
.muted { color: var(--muted); }
.ok-text { color: var(--ok-text); }
.warn-text { color: var(--warn-text); }
.bad-text { color: var(--bad-text); }
.sub { display: block; color: var(--muted); font-size: 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #22875880; outline-offset: 3px; }
.eyebrow, .side-label { font: 11px/1.5 var(--mono); letter-spacing: .35px; color: var(--muted); text-transform: uppercase; }

/* ---------- szkielet (Visitly) ---------- */
.stage { padding: 40px 3%; min-height: 100vh; }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; padding: 16px; background: var(--sidebar); border-radius: 14px; max-width: 1460px; margin: auto; min-height: calc(100vh - 80px); }
.sidebar { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.brand, .profile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); min-width: 0; }
.brand .logo { width: 40px; height: auto; flex: none; }
.brand small, .profile small { color: var(--muted); display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-main { flex: 1; min-width: 0; text-decoration: none; color: var(--ink); font-size: 13px; }
.profile-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile form { margin: 0; }
.sidebar .search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; color: var(--muted); }
.sidebar .search input { border: 0; outline: 0; min-width: 0; width: 100%; background: none; color: var(--ink); font: inherit; }
.nav-group { margin: 6px 0; }
.nav-group > .eyebrow { padding: 0 10px; margin-bottom: 8px; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; color: #5B5A55; border: 1px solid transparent; border-radius: 8px; text-decoration: none; }
.nav-link:hover { background: #FFFFFF90; color: var(--ink); }
.nav-link.active { background: #fff; border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); }
.nav-link .badge { margin-left: auto; background: var(--bad); color: #fff; border-radius: 6px; font-size: 12px; padding: 1px 6px; }
.areas { padding: 0 10px; }
.areas > .eyebrow { margin-bottom: 4px; }
.area { display: flex; gap: 12px; align-items: center; padding: 7px 4px; font-size: 12px; color: #686761; text-decoration: none; border-radius: 6px; }
.area:hover, .area.active { color: var(--ink); background: #FFFFFF90; }
.area .sq { flex: none; width: 8px; height: 8px; border-radius: 2px; background: #BBB9B1; }
.area .sq.green { background: var(--ok); } .area .sq.orange { background: var(--warn); } .area .sq.red { background: var(--bad); }
.area-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.area-n { margin-left: auto; font: 11px var(--mono); color: var(--muted); }
.sidebar-bottom { margin-top: auto; }
.avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #D4E2D7; color: #42594A; font-weight: 600; font-size: 11px; text-decoration: none; }
.avatar.round { border-radius: 50%; width: 28px; height: 28px; background: var(--avatar); color: #68513C; }
.icon-button { display: flex; justify-content: center; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 9px; width: 36px; height: 36px; position: relative; color: var(--ink); cursor: pointer; flex: none; }
.icon-button.plain { border: 0; background: none; width: 30px; height: 30px; color: var(--muted); }
.icon-button:hover { background: var(--input); }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--input); color: var(--ink); }
.notification-dot { position: absolute; background: var(--bad); width: 8px; height: 8px; border-radius: 50%; right: 5px; top: 5px; }
.main { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 17px; overflow: hidden; display: flex; flex-direction: column; }
.topbar { padding: 10px 22px; min-height: 56px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; color: var(--muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs strong { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.chevron { color: #AAA89F; }
.clock { background: var(--group); padding: 6px 9px; border-radius: 30px; white-space: nowrap; font: 11px var(--mono); color: #686761; display: inline-flex; align-items: center; gap: 6px; }
.mobile-menu { display: none; }
.content { padding: 22px; flex: 1; display: grid; gap: 16px; align-content: start; }

/* nagłówek strony, plakietki, układ dwóch kolumn */
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.state-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 9px; background: var(--track); color: var(--muted); }
.state-icon.green { background: var(--green-ic); color: var(--ok); }
.state-icon.amber { background: var(--warn-soft); color: var(--warn); }
.state-icon.red { background: var(--bad-soft); color: var(--bad); }
.heading { flex: 1 1 320px; min-width: 0; }
.page-head h1 { font-size: 24px; letter-spacing: -.8px; line-height: 1.2; font-weight: 600; }
.title-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.subtitle { color: var(--muted); margin-top: 3px; font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions form { margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; background: #fff; border: 1px solid var(--line); border-radius: 30px; white-space: nowrap; font-size: 12px; line-height: 1.3; font-weight: 400; }
.dot { width: 6px; height: 6px; background: var(--ok); border-radius: 50%; display: inline-block; flex: none; }
.dot.amber { background: var(--warn); } .dot.red { background: var(--bad); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.left-column, .updates { display: grid; gap: 16px; min-width: 0; align-content: start; }
.group-head { display: flex; align-items: center; gap: 6px; padding: 0 0 8px; color: var(--muted); }
.group-head .meta { margin-left: auto; font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 11px; min-height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); white-space: nowrap; box-shadow: var(--shadow); font: 13px var(--font); text-decoration: none; cursor: pointer; }
.button:hover { background: var(--input); color: var(--ink); }
.button.primary { background: #191918; color: #fff; border-color: #191918; }
.button.primary:hover { background: #000; color: #fff; }

/* ---------- przyciski i etykiety ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 15px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 13px var(--font); box-shadow: var(--shadow); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--input); color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); color: #fff; }
.btn.pill { border-radius: 25px; }
.btn.ghost { border-color: transparent; color: var(--ink); box-shadow: none; text-decoration: underline; }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn.full { width: 100%; }
.btn.ghost-red { color: var(--bad-text); }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 12px; }
.link-green { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: var(--accent); font: 600 12px var(--font); cursor: pointer; }
.label { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.label.red { background: var(--bad-soft); color: var(--bad-text); }
.label.orange { background: var(--warn-soft); color: var(--warn-text); }
.label.green { background: var(--accent-soft); color: var(--accent); }
.prio { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.prio.red { background: var(--bad-soft); color: var(--bad-text); }
.prio.orange { background: var(--warn-soft); color: var(--warn-text); }
.prio.grey { background: var(--track); color: #45524A; }
.prio.ok { background: var(--accent-soft); color: var(--accent); }
.ic { flex: none; width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; }
.ic.lg { width: 34px; height: 34px; border-radius: 10px; }
.ic.green { background: var(--green-ic); color: var(--accent); }
.ic.red { background: var(--bad-ic); color: var(--bad); }
.ic.orange { background: var(--warn-ic); color: var(--warn); }
.ic.purple { background: var(--purple-soft); color: var(--purple); }
.ic.blue { background: var(--blue-soft); color: var(--blue); }
.ic.grey { background: var(--track); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot.red { background: var(--bad); } .dot.orange { background: var(--warn); } .dot.green { background: var(--accent); } .dot.grey { background: #B7BFBA; }

/* ---------- karty ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; min-width: 0; box-shadow: var(--shadow); }
.card.pad { padding: 17px; }
.card h2 { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.card-head { min-height: 56px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.empty { padding: 0 17px 17px; color: var(--muted); }

/* ---------- panel kontroli ---------- */
.health { padding: 18px 16px; display: grid; gap: 12px; align-content: start; }
.health-body { display: flex; align-items: center; gap: 16px; }
.ring { position: relative; flex: none; }
.ring > svg { width: 100%; height: 100%; display: block; }
.ring-track { fill: none; stroke: var(--track); stroke-width: 7; }
.ring-fill { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; }
.ring.bad .ring-fill { stroke: var(--bad); }
.ring-in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--accent); }
.ring.bad .ring-in { color: var(--bad); }
.ring-in strong { font-size: 27px; line-height: 1.1; font-weight: 600; letter-spacing: -1px; color: var(--ink); }
.ring-in span { font-size: 11px; color: var(--muted); max-width: 70px; line-height: 1.25; }
.health-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.health-rows li { display: flex; align-items: center; gap: 9px; }
.hr-main { display: grid; line-height: 1.3; min-width: 0; }
.hr-label { font-size: 11px; color: var(--muted); }
.hr-main strong { font-size: 12px; font-weight: 600; }
.note { font-size: 11px; }

/* ---------- pulpit: wskaźniki, strony, odpowiedzialność, skróty ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric, .stat { padding: 17px; display: grid; gap: 6px; align-content: start; }
.metric-head { display: flex; align-items: center; gap: 9px; }
.metric-head h3 { font-size: 13px; font-weight: 600; }
.metric-value strong { font-size: 29px; font-weight: 600; letter-spacing: -1px; line-height: 1.15; }
.metric-value span { color: var(--muted); }
.segs { display: flex; gap: 4px; margin-top: 6px; }
.seg { flex: 1; max-width: 46px; height: 9px; border-radius: 3px; }
.seg.red { background: var(--bad); } .seg.orange { background: var(--warn); } .seg.grey { background: var(--track); }
.seg.alt { opacity: .65; }
.seg-labels { font-size: 11px; color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 600; text-decoration: none; }
.chip.muted { background: var(--track); color: var(--muted); }
.block { display: grid; gap: 10px; }
.block-head h2 { font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.site-card { padding: 17px; display: grid; gap: 11px; align-content: start; }
.sc-head { display: flex; align-items: flex-start; gap: 10px; }
.avatar.site { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
.avatar.fav { object-fit: contain; padding: 6px; background: #fff; border: 1px solid var(--line); }
.sc-name { min-width: 0; flex: 1; }
.sc-name h3 { font-size: 13px; font-weight: 600; }
.sc-name h3 a { color: var(--ink); text-decoration: none; }
.sc-name h3 a:hover { color: var(--accent); }
.up-row { display: flex; align-items: center; gap: 9px; line-height: 1.3; }
.up-row strong { font-size: 12px; }
.prow { display: grid; grid-template-columns: 88px minmax(0, 1fr) 22px; gap: 10px; align-items: center; font-size: 12px; }
.prow strong { text-align: right; }
.bar { height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.bar.red i { background: var(--bad); } .bar.orange i { background: var(--warn); }
.first { font-size: 12px; }
/* Kafelek stanu na karcie strony: jasne tło stanu, okrągła ikona, słowo, czas kontroli i ponowne sprawdzenie. */
.status-tile { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 14px; }
.status-tile.up { background: var(--accent-soft); }
.status-tile.down { background: var(--bad-soft); }
.status-tile.none { background: var(--track); }
.status-tile.warn { background: var(--warn-soft); }
.warn .st-icon { background: var(--warn); }
.warn .st-main strong { color: var(--warn-text); }
.st-icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent); }
.down .st-icon { background: var(--bad); }
.none .st-icon { background: var(--muted); }
.st-main { display: grid; gap: 3px; min-width: 0; line-height: 1.3; }
.st-main strong { font-size: 22px; font-weight: 700; letter-spacing: -.5px; color: var(--accent-dark); }
.down .st-main strong { color: var(--bad-text); }
.none .st-main strong { color: var(--ink); font-size: 18px; }
.st-main > span { font-size: 12px; color: #46544B; }
.st-main .st-time { font-size: 11px; color: var(--muted); }
.status-tile form { margin: 0 0 0 auto; }
.status-tile .btn { background: #fff; }
/* Historia dostępności: pasek 24 h (godzina = słupek) i czas odpowiedzi. */
.ustrip { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 22px; }
.ustrip.mini { height: 10px; margin-top: -4px; }
.ustrip i { border-radius: 2px; background: var(--track); }
.ustrip i.ok { background: var(--accent); }
.ustrip i.part { background: var(--warn); }
.ustrip i.down { background: var(--bad); }
.history { display: grid; gap: 10px; }
.history-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.history-head span { font-size: 12px; color: var(--muted); }
.history-head strong { color: var(--ink); }
.rtbars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; height: 48px; align-items: end; }
.rtbars i { display: block; background: var(--blue); opacity: .55; border-radius: 2px 2px 0 0; }
.strip-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.maint { padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.maint p { flex: 1 1 260px; font-size: 12px; }
.maint.on { background: var(--warn-soft); border-color: var(--warn-ic); }
.maint form { margin: 0; }
.maint-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 500; color: #46544B; margin-top: 2px; }
.sc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 11px; border-top: 1px solid var(--line); }
.sc-foot a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: 12px; text-decoration: none; }
.ownership { padding: 17px; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; align-items: center; }
.owner-intro { display: grid; gap: 4px; }
.owner-col { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; }
.owner-head { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; }
.owner-col .sub { grid-column: 1 / -1; }
.pct { font-size: 12px; font-weight: 600; }
.shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shortcut { padding: 14px 15px; display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.shortcut:hover { border-color: var(--nav-active); color: var(--ink); }
.shortcut > .i:last-child { color: var(--muted); margin-left: auto; }
.sc-main { display: grid; min-width: 0; }
.sc-main strong { font-size: 12px; }
.foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; padding-top: 4px; }
.empty-state { color: var(--muted); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 4px; }
.page-head h1 { font-size: 27px; line-height: 1.15; font-weight: 600; letter-spacing: -1px; }

/* ---------- szczegóły strony ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12px; text-decoration: none; justify-self: start; }
.flash { padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-value { font-size: 22px; font-weight: 600; letter-spacing: -.5px; line-height: 1.2; }
.stat-line { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.tabs-wrap { display: grid; gap: 12px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs [role=tab] { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: 600 13px var(--font); cursor: pointer; margin-bottom: -1px; }
.tabs [role=tab][aria-selected=true] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; display: grid; place-items: center; }
.act-layout { display: grid; grid-template-columns: minmax(0, 1fr) 203px; gap: 15px; align-items: start; }
.task-card { display: grid; gap: 12px; }
.task-card > h2 + .tasks-head { margin-top: -30px; }
.tasks-head { display: flex; justify-content: flex-end; }
.filter { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.filter select { height: 36px; border-radius: 10px; font-size: 13px; }
.tasks { display: grid; gap: 9px; }
.tasks section { display: grid; gap: 9px; }
.group-title { font-size: 13px; font-weight: 600; margin-top: 6px; }
.task { display: grid; grid-template-columns: 92px minmax(0, 1fr) 200px; border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.task-prio { display: grid; place-content: center; justify-items: center; gap: 6px; padding: 14px 6px; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.task.red .task-prio { background: var(--bad-soft); color: var(--bad-text); }
.task.orange .task-prio { background: var(--warn-soft); color: var(--warn-text); }
.task.grey .task-prio { background: var(--track); color: #45524A; }
/* Kółko ryzyka pod priorytetem: % z EPSS albo ocena słowna; podpowiedź mówi, skąd wynik. */
.risk { position: relative; display: grid; justify-items: center; gap: 2px; margin-top: 6px; cursor: help; letter-spacing: 0; }
.risk svg { width: 44px; height: 44px; }
.risk-track { fill: #fff; stroke: #0000000f; stroke-width: 4; }
.risk-fill { fill: none; stroke-width: 4; stroke-linecap: round; }
.risk.red .risk-fill { stroke: var(--bad); } .risk.orange .risk-fill { stroke: var(--warn); } .risk.grey .risk-fill { stroke: #9AA39E; }
.risk strong { position: absolute; top: 0; height: 44px; display: grid; place-items: center; width: 44px; font-size: 11px; font-weight: 700; color: var(--ink); }
.risk em { font-style: normal; font-size: 9.5px; font-weight: 600; line-height: 1.15; text-align: center; max-width: 80px; text-transform: none; }
.task-main { padding: 16px 18px; display: grid; gap: 5px; align-content: start; min-width: 0; }
.task-main .owner { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.task-main h3 { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.why { color: #46544B; font-size: 12px; }
.todo { font-size: 12px; margin-top: 4px; }
.task-side { padding: 16px 16px 14px 0; display: grid; gap: 8px; align-content: start; }
.task-side form { margin: 0; }
.task-side .btn { width: 100%; }
.anchor { display: block; position: relative; top: -80px; height: 0; }
/* Podświetlenie miejsca po „Pokaż szczegóły”. */
.jump-hit { outline: 3px solid var(--warn); outline-offset: 2px; border-radius: 10px; transition: outline-color .4s; }
.howto summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; justify-self: center; width: 100%; justify-content: center; font-size: 12px; color: var(--muted); cursor: pointer; padding: 4px 0; }
.howto summary::-webkit-details-marker { display: none; }
.howto[open] summary .i { transform: rotate(180deg); }
.howto p { font-size: 11px; color: #46544B; margin-top: 4px; }
.calm { display: flex; gap: 12px; align-items: center; color: var(--accent); padding: 6px 0; }
.calm h3 { color: var(--ink); font-size: 14px; }
.task-aside { display: grid; gap: 12px; }
.task-aside h2 { margin-bottom: 10px; }
.helpers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.helpers li { display: flex; gap: 9px; align-items: center; line-height: 1.3; font-size: 12px; }
.helper { display: grid; gap: 7px; justify-items: start; }
.helper h3 { font-size: 13px; font-weight: 600; }
.helper form { margin: 0; }
.tech-body { display: grid; gap: var(--gap); }

dialog { width: min(560px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 20px 70px #00000033; color: var(--ink); }
dialog::backdrop { background: #10201866; }
dialog h2 { font-size: 16px; font-weight: 600; }
dialog textarea { width: 100%; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--input); font: 13px/1.5 var(--font); resize: vertical; }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

/* ---------- tabele i karty techniczne ---------- */
.tbl { margin: 0 10px 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { background: var(--input); height: 40px; text-align: left; font-weight: 600; color: #46544B; padding: 0 14px; border-bottom: 1px solid var(--line); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: break-word; }
th + th, td + td { border-left: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
td a { color: var(--ink); }
.site-link { font-weight: 600; text-decoration: none; }
.site-link:hover { text-decoration: underline; }
.c-status, .c-date, .c-cve, .c-sev, .c-fix, .c-type { white-space: nowrap; }
.c-site { min-width: 150px; }
.sev.critical, .sev.high { color: var(--bad-text); font-weight: 600; }
.sev.medium { color: var(--warn-text); }
.prio-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 0 17px 6px; font-size: 12px; }
h3.cat { font-size: 13px; font-weight: 600; padding: 14px 17px 8px; }
.c-act { min-width: 170px; }
.c-risk { width: 96px; text-align: center; }
td .risk { margin: 0 auto; }
.risk.sm svg { width: 34px; height: 34px; }
.risk.sm strong { width: 34px; height: 34px; font-size: 10px; }
.risk.sm em { font-size: 9px; }
.epss, .kev { display: inline-block; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--track); color: #45524A; white-space: nowrap; }
.epss.orange { background: var(--warn-soft); color: var(--warn-text); }
.epss.red, .kev { background: var(--bad-soft); color: var(--bad-text); }
.kev.info { background: var(--track); color: #45524A; }
.pad-x { padding: 0 17px 14px; }
.c-src { min-width: 240px; }
.src { display: block; color: #46544B; }
.src-note { padding-top: 12px; line-height: 1.5; }
.pad-x .cat { padding: 12px 0 8px; }
form.inline { display: inline; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.recent { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 12px; }
.vlist { margin-top: 6px; }
.vlist summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.vlist ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.plain-list li { display: flex; gap: 8px; align-items: baseline; }
.more { font-size: 12px; color: var(--muted); margin-top: 4px; display: inline-block; }

/* ---------- formularze ---------- */
.cfg summary { cursor: pointer; font-weight: 600; }
.cfg p { margin-top: 10px; }
.cfg .tech-body { margin-top: 12px; }
.secret { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; vertical-align: middle; }
.rotate { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.import { display: grid; gap: 10px; margin-top: 12px; }
.import textarea { width: 100%; font: 12px ui-monospace, Consolas, monospace; padding: 10px; border: 1px solid var(--line); border-radius: 10px; resize: vertical; }
.import .btn { justify-self: start; }
code { background: var(--track); padding: 2px 6px; border-radius: 4px; font-size: 12px; overflow-wrap: anywhere; }
.danger { margin-top: 4px; }
.form { display: grid; gap: 14px; max-width: 560px; }
label { display: grid; gap: 6px; font-weight: 500; }
input, select { font: 13px var(--font); height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--input); color: var(--ink); font-weight: 400; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.err { color: var(--bad-text); }
.form .btn { justify-self: start; }
/* Ostatni krok po dodaniu strony: wyraźna karta nad banerem. */
.onboarding { padding: 18px; display: grid; gap: 14px; border-color: var(--warn-ic); }
.onb-head { display: flex; gap: 12px; align-items: flex-start; }
.onb-head h2 { font-size: 18px; margin-top: 2px; }
.eyebrow.dark { color: var(--warn-text); }
.onb-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: start; }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.onb-body .steps { font-size: 13px; gap: 10px; }
.onb-actions { display: grid; gap: 8px; }
.onb-warn { display: flex; gap: 6px; align-items: center; color: var(--warn-text); }
.rename { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.rename form { margin: 0; display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.rename form:first-child { flex: 1 1 320px; }
.rename label { flex: 1 1 220px; }
.rename p { width: 100%; }
.notice { display: flex; gap: 12px; align-items: flex-start; }
.recipient { padding: 15px 17px; display: flex; gap: 12px; align-items: center; }
.rc-main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.rc-main h3 { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.rc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rc-actions form { margin: 0; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; display: grid; gap: 8px; min-width: 0; }
legend { font-weight: 600; padding: 0 4px; }
label.check { display: flex; align-items: center; gap: 9px; font-weight: 400; min-height: 32px; }
label.check input { width: 18px; height: 18px; min-width: 18px; padding: 0; accent-color: var(--accent); }
.always { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); }
.always p { font-size: 13px; }
/* Długie opcje listy „Typ” nie rozpychają formularza na telefonie. */
.form input, .form select { width: 100%; min-width: 0; }

.login-body { display: grid; place-items: center; min-height: 100vh; padding: 16px; background: var(--backdrop); }
.login { width: 100%; max-width: 380px; padding: 24px; display: grid; gap: 14px; }
.login-logo { justify-self: center; height: 96px; width: auto; margin: 6px 0 4px; }
.login h1 { font-size: 22px; font-weight: 600; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .metrics, .shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .shell { grid-template-columns: 145px minmax(0, 1fr); }
  .side { padding: 20px 10px; }
  .content { padding: 3px 15px 20px; }
  .top { padding: 18px 15px 14px; }
  .today { display: none; }
  .site-grid { grid-template-columns: minmax(0, 1fr); }
  .health-body .ring { width: 95px !important; height: 95px !important; }
  .ownership { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .owner-intro { grid-column: 1 / -1; }
  .shortcuts { grid-template-columns: minmax(0, 1fr); }
  .act-layout { grid-template-columns: minmax(0, 1fr); }
  .onb-body { grid-template-columns: minmax(0, 1fr); }
  .task { grid-template-columns: 76px minmax(0, 1fr); }
  .task-side { grid-column: 2; padding: 0 16px 14px 18px; }
  /* Tabele bez poziomego przewijania: wiersz staje się kartą z etykietami pól. */
  .tbl { border: 0; overflow: visible; }
  .tbl thead { display: none; }
  .tbl table, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; padding: 6px 0; }
  .tbl td { border: 0; padding: 5px 14px; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; white-space: normal; min-width: 0; }
  .tbl td + td { border-left: 0; }
  .tbl td::before { content: attr(data-label); color: var(--muted); font-size: 11px; }
}

/* ---------- telefon: zwarty nagłówek zamiast paska bocznego ---------- */
@media (max-width: 620px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .main { border-left: 0; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand img { height: 36px; }
  .side .nav { display: flex; gap: 4px; order: 3; width: 100%; overflow-x: auto; }
  .nav a { min-height: 44px; }
  .side-sites { order: 4; width: 100%; }
  .side-label { display: none; }
  .side-sites nav { display: flex; gap: 6px; overflow-x: auto; }
  .side-sites a { min-height: 40px; border: 1px solid var(--line); border-radius: 999px; }
  .side-card, .acc-main, .account .avatar { display: none; }
  .account { margin-left: auto; }
  .top { padding: 12px 16px; flex-wrap: wrap; }
  .search { flex: 1 1 100%; }
  .top .btn { margin-left: auto; }
  .content { padding: 4px 16px 20px; }
  .metrics, .ownership { grid-template-columns: minmax(0, 1fr); }
  .health-body { flex-wrap: wrap; }
  .task-card > h2 + .tasks-head { margin-top: 0; justify-content: flex-start; }
  .recipient { flex-wrap: wrap; }
  .rc-actions { width: 100%; }
  .task { grid-template-columns: minmax(0, 1fr); }
  .task-prio { grid-auto-flow: column; justify-content: start; padding: 9px 16px; }
  .task-prio .risk { margin: 0 0 0 auto; grid-auto-flow: column; align-items: center; gap: 6px; }
  .task-prio .risk strong { left: 0; }
  .task-side { grid-column: 1; padding: 0 16px 14px; }
  .status-tile { flex-wrap: wrap; padding: 16px; }
  .status-tile form { margin: 0; width: 100%; }
  .status-tile .btn { width: 100%; }
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 340px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- szkielet Visitly: mniejsze ekrany ---------- */
@media (max-width: 1300px) { .stage { padding: 24px; } .shell { grid-template-columns: 200px minmax(0, 1fr); } .dashboard-grid { grid-template-columns: minmax(0, 1fr) 280px; } }
@media (max-width: 1000px) { .stage { padding: 12px; } .shell { grid-template-columns: 185px minmax(0, 1fr); padding: 10px; } .content { padding: 16px; } .dashboard-grid { grid-template-columns: minmax(0, 1fr); } .clock { display: none; } .topbar { padding: 10px 16px; } }
@media (max-width: 700px) {
  .stage { padding: 0; } body { background: #fff; }
  .shell { display: block; padding: 0; min-height: 100vh; border-radius: 0; }
  .sidebar { display: none; padding: 14px; background: var(--sidebar); }
  .shell.menu-open .sidebar { display: flex; }
  .main { border: 0; border-radius: 0; }
  .mobile-menu { display: flex; }
  .breadcrumbs { font-size: 12px; gap: 7px; } .breadcrumbs > .i { display: none; }
  .topbar .button span { display: none; }
  .content { padding: 14px; }
  .page-head { align-items: flex-start; } .page-head h1 { font-size: 22px; }
  .actions { width: 100%; } .actions > * { flex: 1; } .actions .button { width: 100%; }
}

/* Visitly: lista spraw na całą szerokość, karty stron w jednej kolumnie, gdy obok jest panel boczny */
.act-layout { grid-template-columns: minmax(0, 1fr) !important; }
.left-column .site-grid { grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); }
.status-tile.up { background: var(--green-ic); }
.status-tile .btn { box-shadow: var(--shadow); }
.up .st-icon { background: var(--ok); } .up .st-title, .status-tile.up h3 { color: var(--ok-text); }

/* Logowanie wg Visitly: odstępy między polami, pełna szerokość, prostokątny czarny przycisk */
.login { max-width: 400px; padding: 28px; gap: 18px; border-radius: 14px; }
.auth-form { display: grid; gap: 16px; }
.auth-form label { gap: 7px; font-size: 13px; }
.auth-form input { width: 100%; height: 42px; border-radius: 8px; background: #fff; }
.auth-form .btn, .login .btn.primary { width: 100%; min-height: 42px; border-radius: 8px; margin-top: 4px; }
.login .btn.pill { border-radius: 8px; }
.login details summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.auth-links { font-size: 13px; text-align: center; }
.login p.muted, .login > p { font-size: 13px; }

/* Pełna szerokość okna: bez szarego marginesu i limitu szerokości */
.stage { padding: 0; }
.shell { max-width: none; min-height: 100vh; border-radius: 0; }

/* Właściciele na pulpicie jako odnośniki do przefiltrowanego planu napraw */
a.owner-col { color: var(--ink); text-decoration: none; border-radius: 10px; padding: 8px; margin: -8px; }
a.owner-col:hover { background: var(--input); }
a.owner-col:hover strong { text-decoration: underline; }
.filter-note { font-size: 13px; }

/* Zespół: zaproszenie w jednym rzędzie (e-mail, rola, przycisk), na telefonie jedno pod drugim */
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 12px; align-items: end; padding: 16px 0 4px; }
.inline-form input, .inline-form select { width: 100%; }
.inline-form .btn { min-height: 40px; border-radius: 8px; }
.content > form.card.form { max-width: 560px; }
.content .btn.pill { border-radius: 8px; }
@media (max-width: 700px) { .inline-form { grid-template-columns: minmax(0, 1fr); } .inline-form .btn { width: 100%; } }

/* Zastrzeżenie pod planem napraw: DevaGuard podpowiada, nie rozstrzyga */
.advice { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--input); color: var(--muted); font-size: 12px; line-height: 1.5; }
.advice .i { margin-top: 2px; }

/* Twoje strony w menu: ikona strony z kropką stanu w rogu */
.area { gap: 10px; }
.area-ico { position: relative; flex: none; width: 22px; height: 22px; border-radius: 6px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font: bold 10px var(--font); color: var(--muted); }
.area-ico img { width: 16px; height: 16px; border-radius: 3px; object-fit: contain; }
.area-ico .sq { position: absolute; right: -3px; bottom: -3px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--sidebar); }

/* Wtyczki i motywy: wyraźnie „aktualna” albo „dostępna X” zamiast kreski */
.upd-ok, .upd-new { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.upd-ok { background: var(--green-ic); color: var(--ok-text); }
.upd-new { background: var(--warn-soft); color: var(--warn-text); }

/* Ekrany logowania, rejestracji i błędu: powrót na stronę główną */
.auth-back { justify-self: start; font-size: 13px; color: var(--muted); text-decoration: none; }
.auth-back:hover { color: var(--ink); text-decoration: underline; }

/* Księga znaku DevaGroup: znak DevaGuard w menu min. 16 mm (~60 px) z polem ochronnym, bez napisu obok; DevaGroup jako autor w stopce. */
.brand { flex-direction: column; align-items: center; gap: 0; padding: 16px 15px; }
.brand .logo { width: auto; height: 84px; }
.brand small { margin-top: 12px; text-align: center; }
.app-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.app-foot span { font: 11px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.app-foot img { height: 60px; width: auto; display: block; }
