/* Rejestr – motyw (głęboka zieleń morska + turkus, akcent koralowy dla błędów) i style własnych stron.
   Układ i wspólne elementy: rdzen.css + rdzen-ui.css (te same co w Kalibrze i Kwerendzie). */
:root {
  --bg: #F3F6F6; --surface: #FFFFFF; --surface-2: #F7FAFA; --surface-3: #E9EFEF;
  --ink: #15242A; --ink-2: #33464D; --muted: #64767C; --line: #D9E2E3; --line-2: #E8EEEE;
  --nav-bg: #173A40; --nav-2: #22494F; --nav-3: #112E33; --nav-ink: #E9F3F2; --nav-muted: #93B1B1; --nav-w: 240px;
  --nav-accent: #3CC4AE;
  --accent: #14897A; --accent-2: #0F7366; --accent-ink: #062F29; --accent-soft: #DAF1EC;
  --link: #0F7366;
  --bad: #C2452F; --bad-soft: #FBE4DE;
  --font: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --cond: "IBM Plex Sans Condensed", "Arial Narrow", "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.row-actions:empty { display: none; }
.big-btn { height: 48px; font-size: 16px; border-radius: 10px; }
.big-btn svg { width: 22px; height: 22px; }
.login-card .stack { gap: 14px; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.nowrap { white-space: nowrap; }
.me-av.sm { width: 30px; height: 30px; flex: 0 0 30px; font-size: 13px; background: var(--accent-soft); color: var(--accent-ink); }

/* pulpit: kafle programów */
.tile.proc .name { font-size: 20px; }
.tile.proc .row b { color: var(--ink); font-weight: 600; }
.tile.proc.bad { border-left: 4px solid var(--bad); }

/* lista wpisów */
.loglist { display: grid; }
.lrow { display: grid; grid-template-columns: 150px 64px minmax(0, 1fr) 20px; gap: 12px; align-items: center; padding: 11px 16px;
  border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none !important; }
.lrow:first-child { border-top: 0; }
.lrow:hover { background: var(--surface-2); }
.lrow.err { box-shadow: inset 3px 0 0 var(--bad); }
.lwhen b { display: block; font-weight: 600; font-size: 14px; }
.lwhen small, .lwhat small { display: block; color: var(--muted); font-size: 12.5px; }
.lwhat { min-width: 0; }
.lwhat .lt, .lwhat small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lwhat small.bad-t { color: var(--bad); }
.lgo svg { width: 16px; height: 16px; color: var(--muted); }
.count { margin: 12px 2px 8px; }
.more-btn { margin-top: 12px; }

/* filtry */
.filters-card { padding: 14px 16px; display: grid; gap: 12px; margin-bottom: 4px; }
.fl-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fl-grid .field select, .fl-grid .field input { width: 100%; height: 38px; font-size: 14px; }
.fl-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; background: var(--surface); }
.fl-search:focus-within { border-color: var(--accent); }
.fl-search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.fl-search input { border: 0 !important; flex: 1; height: 38px; padding: 0; background: none; }

/* wpis */
.meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; margin-bottom: 14px; }
.meta-grid > div { display: grid; gap: 3px; min-width: 0; }
.meta-grid span:first-child { color: var(--muted); font-size: 12.5px; }
.meta-grid b { overflow-wrap: anywhere; }
.meta-grid .pill { justify-self: start; }
.row-actions:has(> .install-slot[hidden]:only-child) { display: none; }
.meta-grid .w { grid-column: span 2; }
.log-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.log-bar .btn.on { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.logview { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 0; font: 12.5px/1.55 var(--mono);
  overflow-x: auto; max-height: 75vh; overflow-y: auto; }
.logview .ln { display: block; padding: 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.logview .ln.e { background: var(--bad-soft); color: #8E2A18; }
.logview .tm { color: var(--muted); margin-right: 10px; }

/* urządzenia, klucze, ustawienia powiadomień, historia */
.devlist { display: grid; }
.devlist.pad { padding: 4px 16px; }
.dev { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.dev:first-child { border-top: 0; }
.dev small, .hrow small, .uhead small, .mode small { display: block; font-size: 12.5px; }
.dev .icon-btn svg { width: 18px; height: 18px; color: var(--muted); }
.modes { display: grid; }
.mode { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.mode:first-child { border-top: 0; }
.mode.def { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 12px; }
.mode .seg button { height: 28px; padding: 0 10px; font-size: 13px; }
.hist { display: grid; }
.hrow { display: flex; gap: 12px; align-items: flex-start; padding: 10px 16px; border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none !important; }
.hrow:first-child { border-top: 0; }
a.hrow:hover { background: var(--surface-2); }
.ulist { display: grid; }
.urow { padding: 14px 16px; border-top: 1px solid var(--line-2); display: grid; gap: 10px; }
.urow:first-child { border-top: 0; }
.urow.off { opacity: .65; }
.uhead { display: flex; align-items: center; gap: 10px; }
.uhead .pill { margin-left: 6px; }
.ukeys { display: flex; flex-wrap: wrap; gap: 6px; }
.ukeys:empty { display: none; }
.kchip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 4px 0 8px; border-radius: 7px; background: var(--surface-3); font-size: 12.5px; }
.kchip svg { width: 14px; height: 14px; color: var(--accent); }
.kchip button { border: 0; background: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; cursor: pointer; color: var(--muted); }
.kchip button:hover { background: var(--bad-soft); color: var(--bad); }
.kchip button svg { color: inherit; width: 12px; height: 12px; }
.linkbox { padding: 12px; border: 1px dashed var(--accent); border-radius: 10px; background: var(--accent-soft); overflow-wrap: anywhere; user-select: all; }
.btn.ghost.bad-t { color: var(--bad); }

@media (max-width: 1100px) {
  .fl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .lrow { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "what st" "when when"; gap: 4px 10px; padding: 11px 14px; }
  .lwhat { grid-area: what; } .lst { grid-area: st; } .lwhen { grid-area: when; display: flex; gap: 8px; align-items: baseline; }
  .lwhen b { display: inline; font-size: 12.5px; font-weight: 500; color: var(--muted); } .lgo { display: none; }
  .meta-grid .w { grid-column: 1 / -1; }
  .logview { max-height: none; font-size: 12px; }
  .mode { gap: 6px; }
  .mode .grow { flex-basis: 100%; }
}
