/*
 * Vzhled portálu – tokeny převzaté z návrhu „Portál projektů v2" (24. 8. 2026).
 * Hodnoty se nemění bez úpravy návrhu.
 */

:root {
  --bg: #f6f7f9; --bg-blur: rgba(246,247,249,0.86);
  --panel: #ffffff; --panel-2: #f7f8fa;
  --border: #e8ebef; --border-soft: #eef1f4; --border-strong: #dbe2ea;
  --chip: #f2f4f7; --chip-hover: #e4e9ef;
  --text: #16181c; --text-2: #4b5563; --muted: #7c848f; --muted-2: #9aa1ab;
  --accent: #4b6f95; --accent-press: #2c4f70; --accent-text: #3f6d99;
  --accent-soft: #eaf0f6; --accent-soft-2: #6a90b6; --on-accent: #ffffff;
  --shadow-1: 0 1px 2px rgba(22,24,28,0.06);
  --shadow-2: 0 10px 26px rgba(22,24,28,0.09);
  --shadow-drawer: -24px 0 60px rgba(22,24,28,0.16);
  --scrim: rgba(22,24,28,0.34);
  --st-live-dot: #3f8f6b; --st-live-bg: #e8f4ee; --st-live-fg: #2c6b50;
  --st-build-dot: #4b6f95; --st-build-bg: #eaf0f6; --st-build-fg: #35597c;
  --st-review-dot: #b0873f; --st-review-bg: #f7f0e2; --st-review-fg: #7d5f27;
  --st-hold-dot: #9aa1ab; --st-hold-bg: #f1f3f6; --st-hold-fg: #5b636e;
  --st-done-dot: #7b6bb0; --st-done-bg: #f0edf8; --st-done-fg: #54487d;
  --ok-bar: #cfe6da; --warn-bar: #f0dfbf;
  --thumb-1: #eef1f5; --thumb-2: #f0f2f0; --thumb-3: #f2f0ec;
  --thumb-4: #eef0f4; --thumb-5: #f1eff2; --thumb-6: #eff2f2;
}

html[data-theme="dark"] {
  --bg: #101216; --bg-blur: rgba(16,18,22,0.86);
  --panel: #191c21; --panel-2: #1f232a;
  --border: #272c34; --border-soft: #22262d; --border-strong: #343a44;
  --chip: #23272e; --chip-hover: #2c313a;
  --text: #eceef1; --text-2: #c2c7cf; --muted: #949aa4; --muted-2: #767d88;
  --accent: #6f9bc7; --accent-press: #8fb4d8; --accent-text: #9dc0e0;
  --accent-soft: #1e2a37; --accent-soft-2: #4b6f95; --on-accent: #0f1216;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 12px 30px rgba(0,0,0,0.5);
  --shadow-drawer: -24px 0 60px rgba(0,0,0,0.55);
  --scrim: rgba(6,8,11,0.6);
  --st-live-dot: #52a97f; --st-live-bg: #16281f; --st-live-fg: #8fd3b0;
  --st-build-dot: #6f9bc7; --st-build-bg: #182430; --st-build-fg: #a5c6e4;
  --st-review-dot: #c9a35a; --st-review-bg: #2a2318; --st-review-fg: #e0c48d;
  --st-hold-dot: #767d88; --st-hold-bg: #23262b; --st-hold-fg: #a8aeb8;
  --st-done-dot: #9182c9; --st-done-bg: #221f2e; --st-done-fg: #bcb0e5;
  --ok-bar: #24402f; --warn-bar: #3d3320;
  --thumb-1: #1c2027; --thumb-2: #1d2124; --thumb-3: #211f1d;
  --thumb-4: #1b1f26; --thumb-5: #201d24; --thumb-6: #1c2121;
}

/* ---------- základ ---------- */

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html { color-scheme: light dark; transition: background 160ms ease; }
* { box-sizing: border-box; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-press); text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent-soft); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input::placeholder { color: var(--muted-2); }
svg.lucide { stroke-width: 1.75; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; border: 3px solid var(--bg); }

@keyframes drawer-in { from { transform: translateX(28px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- kostra ---------- */

.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 26px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(180deg, var(--accent-soft-2), var(--accent));
  display: grid; place-items: center;
  color: var(--on-accent); font-weight: 600; font-size: 14px;
}
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-sub { font-size: 11.5px; color: var(--muted); }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 11px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  cursor: pointer; background: transparent;
  border: 0; width: 100%; text-align: left; font-family: inherit;
  transition: background 120ms ease;
}
.nav-item:hover { background: var(--chip); }
.nav-item.is-active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.nav-item .lucide { width: 16px; height: 16px; flex: none; }
.nav-count { margin-left: auto; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--muted-2); }
.nav-item.is-active .nav-count { color: var(--accent-text); }

.uptime { padding: 14px; border-radius: 12px; background: var(--panel-2); display: flex; flex-direction: column; gap: 9px; }
.uptime-label { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.uptime-value { display: flex; align-items: baseline; gap: 7px; }
.uptime-value strong { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.uptime-value span { font-size: 11.5px; color: var(--muted); }
.uptime-bars { display: flex; gap: 3px; }
.uptime-bars span { flex: 1; height: 22px; border-radius: 3px; }
.uptime-note { font-size: 11.5px; color: var(--muted); }

.sidebar-user {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 9px 6px 0; border-top: 1px solid var(--border);
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--chip-hover); color: var(--text-2);
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 30px;
  background: var(--bg-blur); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.search {
  display: flex; align-items: center; gap: 9px;
  flex: 1; max-width: 420px; padding: 9px 12px;
  border-radius: 10px; background: var(--panel);
  border: 1px solid var(--border); box-shadow: var(--shadow-1);
}
.search input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 13.5px; padding: 0;
}
.search .lucide { width: 16px; height: 16px; color: var(--muted-2); flex: none; }
.kbd {
  display: inline-flex; align-items: center; padding: 1px 6px;
  border-radius: 5px; background: var(--chip); font-size: 11px; color: var(--muted-2);
}
.search-clear {
  display: grid; place-items: center; width: 20px; height: 20px;
  border: 0; border-radius: 6px; background: var(--chip);
  color: var(--muted); cursor: pointer; padding: 0;
}
.search-clear:hover { background: var(--chip-hover); color: var(--text); }

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--chip); }
.seg button {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 11px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text-2);
  font: inherit; font-size: 12.5px; font-weight: 500;
  cursor: pointer; transition: background 120ms ease;
}
.seg button .lucide { width: 14px; height: 14px; }
.seg button.is-active { background: var(--panel); color: var(--text); box-shadow: var(--shadow-1); }

.icon-button {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--panel); color: var(--text-2);
  cursor: pointer; transition: background 120ms ease, color 120ms ease;
}
.icon-button:hover { background: var(--chip); color: var(--text); }
.icon-button .lucide { width: 16px; height: 16px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border: 0; border-radius: 10px;
  background: var(--accent); color: var(--on-accent);
  font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background 120ms ease;
}
.btn-primary:hover { background: var(--accent-text); }
.btn-primary:active { background: var(--accent-press); }
.btn-primary .lucide { width: 15px; height: 15px; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 15px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--panel); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.btn-secondary:hover { background: var(--panel-2); }

/* ---------- hlavička obsahu ---------- */

.page-head { padding: 28px 30px 16px; display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0 0 5px; font-size: 27px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.page-crumb { font-size: 13.5px; color: var(--muted); }
.stats { margin-left: auto; display: flex; gap: 10px; }
.stat {
  min-width: 116px; padding: 11px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--border);
  cursor: pointer; text-align: left; font: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.stat:hover { border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.stat.is-active { border-color: var(--accent); }
.stat-label { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.stat-value { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.content { padding: 8px 30px 48px; }

/* ---------- karty ---------- */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }

.card {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: var(--border-strong); }

.card-tile {
  height: 112px; position: relative;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--border-soft);
}
.card-tile-initial { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--muted-2); }
.card-tile img { width: 100%; height: 100%; object-fit: cover; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 7px; border-radius: 99px;
  font-size: 11.5px; font-weight: 500;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.card-tile .pill { position: absolute; top: 11px; left: 11px; }

.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 16px; }
.density-airy .card-body { padding: 20px; }
.density-compact .card-body { padding: 13px; }

.card-client { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.card-title { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.card-desc {
  margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 7px;
  background: var(--chip); color: var(--text-2);
  font-size: 11.5px; font-weight: 500;
}
.chip .lucide { width: 12px; height: 12px; color: var(--muted); }

.card-foot {
  margin-top: auto; display: flex; align-items: center; gap: 9px;
  padding-top: 11px; border-top: 1px solid var(--border-soft);
}
.version {
  padding: 2px 8px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.card-activity { font-size: 11.5px; color: var(--muted-2); }
.card-actions { margin-left: auto; display: flex; gap: 4px; }
.mini-button {
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: var(--chip);
  color: var(--text-2); cursor: pointer; transition: background 120ms ease;
}
.mini-button:hover { background: var(--chip-hover); color: var(--text); }
.mini-button .lucide { width: 14px; height: 14px; }
.attention {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 6px;
  background: var(--st-review-bg); color: var(--st-review-fg);
  font-size: 11.5px; font-weight: 600;
}
.attention .lucide { width: 12px; height: 12px; }

/* ---------- seznam ---------- */

.table {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-1);
}
.table-row {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) 140px minmax(0, 1.4fr) 96px;
  gap: 14px; align-items: center;
}
.table-head {
  padding: 11px 18px; border-bottom: 1px solid var(--border-soft);
  background: var(--panel-2);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--muted);
}
.table-body-row {
  padding: 13px 18px; border-bottom: 1px solid var(--chip);
  cursor: pointer; transition: background 120ms ease;
}
.table-body-row:hover { background: var(--panel-2); }
.table-body-row:last-child { border-bottom: 0; }
.cell-title { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.cell-sub, .cell-text {
  font-size: 12.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cell-text { color: var(--text-2); }
.cell-client { font-size: 13px; color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.empty { padding: 72px 0; text-align: center; color: var(--muted); font-size: 14px; }
.empty button { border: 0; background: none; color: var(--accent-text); font: inherit; font-weight: 500; cursor: pointer; }

/* ---------- panel detailu ---------- */

.scrim {
  position: fixed; inset: 0; background: var(--scrim);
  backdrop-filter: blur(2px); z-index: 20;
  animation: fade-in 150ms ease-out both;
  border: 0; width: 100%; padding: 0;
}
.drawer {
  position: fixed; top: 0; right: 0; width: 480px; max-width: 94vw; height: 100vh;
  background: var(--panel); z-index: 21; overflow-y: auto;
  box-shadow: var(--shadow-drawer);
  animation: drawer-in 200ms cubic-bezier(0.2,0.7,0.2,1) both;
  display: flex; flex-direction: column;
}
.drawer-head {
  padding: 22px 26px 16px; border-bottom: 1px solid var(--border-soft);
  position: sticky; top: 0; background: var(--panel);
  display: flex; align-items: flex-start; gap: 14px;
}
.drawer-head h2 { margin: 0 0 9px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.drawer-kicker { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.drawer-close {
  margin-left: auto; width: 32px; height: 32px;
  display: grid; place-items: center; border: 0; border-radius: 9px;
  background: var(--chip); color: var(--text-2); cursor: pointer;
}
.drawer-close:hover { background: var(--chip-hover); color: var(--text); }
.drawer-body { padding: 22px 26px 28px; display: flex; flex-direction: column; gap: 24px; }
.drawer-lead { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact { padding: 12px 13px; border-radius: 11px; background: var(--panel-2); }
.fact-key { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.fact-value { font-size: 14px; font-weight: 500; }
.env-list { display: flex; flex-direction: column; gap: 8px; }
.env {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px;
}
.env .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.env-name { font-size: 13.5px; font-weight: 500; }
.env-note { font-size: 12.5px; color: var(--muted); }
.env .version { margin-left: auto; font-size: 12px; }
.release {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--chip);
}
.release-ver {
  min-width: 54px; font-size: 12.5px; font-weight: 600;
  color: var(--accent-text); font-variant-numeric: tabular-nums;
}
.release-what { font-size: 13.5px; color: var(--text); }
.release-date { margin-left: auto; font-size: 12px; color: var(--muted-2); white-space: nowrap; }
.drawer-actions { display: flex; gap: 9px; }
.drawer-actions .btn-primary { flex: 1; justify-content: center; padding: 11px; font-size: 14px; }

/* ---------- responzivita ---------- */

@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .table-row { grid-template-columns: minmax(0, 2fr) 130px 96px; }
  .table-row > .col-client, .table-row > .col-stack { display: none; }
}
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; padding: 12px 16px; }
  .search { max-width: none; }
  .page-head, .content { padding-left: 16px; padding-right: 16px; }
  .stats { margin-left: 0; width: 100%; overflow-x: auto; }
}

/* ---------- přihlášení ---------- */

.auth {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 32px 20px;
}
.auth-box {
  width: 100%; max-width: 380px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-2);
  padding: 30px 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.auth-box h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.auth-lead { margin: 0; font-size: 13.5px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.input {
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--panel-2);
  color: var(--text); font: inherit; font-size: 14px;
}
.input:focus-visible { border-color: var(--accent); }
.auth-error {
  padding: 9px 12px; border-radius: 9px;
  background: var(--st-review-bg); color: var(--st-review-fg);
  font-size: 12.5px;
}
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.auth-row label { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); cursor: pointer; }

/* ---------- nasazení ---------- */

.notice {
  padding: 11px 13px; border-radius: 10px;
  font-size: 13px; line-height: 1.5;
}
.notice-ok { background: var(--st-live-bg); color: var(--st-live-fg); }
.notice-warn { background: var(--st-review-bg); color: var(--st-review-fg); }
.notice-error { background: var(--st-review-bg); color: var(--st-review-fg); }

.field-hint { font-size: 11.5px; color: var(--muted); }

.steps {
  margin: 0; padding-left: 20px;
  display: flex; flex-direction: column; gap: 5px;
  font-size: 13px; color: var(--text-2);
}
.steps li::marker { color: var(--muted-2); font-variant-numeric: tabular-nums; }

.checkbox {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--text); cursor: pointer;
}

.deploy-row {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px;
}
.deploy-row .dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.deploy-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.btn-small {
  padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel); color: var(--text-2);
  font: inherit; font-size: 12px; font-weight: 500; cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.btn-small:hover { background: var(--chip); color: var(--text); }
.btn-small:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- monitoring ---------- */

.meters { display: flex; flex-direction: column; gap: 8px; }
.meter-head {
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: var(--muted); margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.meter-track {
  height: 6px; border-radius: 99px; background: var(--chip); overflow: hidden;
}
.meter-track span { display: block; height: 100%; border-radius: 99px; transition: width 300ms ease; }

.chart { display: flex; flex-direction: column; gap: 10px; }
.chart svg { width: 100%; height: 180px; display: block; }
.chart-legend {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted);
}
.chart-key { display: inline-flex; align-items: center; gap: 6px; }
.chart-swatch { width: 10px; height: 3px; border-radius: 99px; }
.chart-range { margin-left: auto; color: var(--muted-2); }
.chart-axis {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted-2); font-variant-numeric: tabular-nums;
}

/* ---------- zabezpečení účtu ---------- */

.recovery-codes {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px;
  padding: 14px; border-radius: 11px; background: var(--panel-2);
}
.recovery-codes code {
  font-family: ui-monospace, "SFMono-Regular", monospace;
  font-size: 13px; color: var(--text); letter-spacing: 0.02em;
}

/* ---------- centrum pozornosti ---------- */

.kind-filter {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 5px 7px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text-2);
  font: inherit; font-size: 12.5px; text-align: left; cursor: pointer;
  transition: background 120ms ease;
}
.kind-filter:hover { background: var(--chip); }
.kind-filter.is-active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }

.issue-list { display: flex; flex-direction: column; gap: 10px; }
.issue {
  display: flex; align-items: stretch; gap: 0;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-1);
}
.issue-severity { width: 4px; flex: none; }
.issue-critical { background: var(--st-review-dot); }
.issue-warning { background: var(--st-review-dot); opacity: 0.6; }
.issue-info { background: var(--st-build-dot); opacity: 0.5; }
.issue-body { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.issue-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.issue-title { margin: 0; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.issue-detail { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.issue-meta { display: flex; gap: 6px; font-size: 11.5px; color: var(--muted-2); flex-wrap: wrap; }
.issue-action {
  align-self: center; margin-right: 14px; white-space: nowrap;
  padding: 6px 11px; border-radius: 8px;
  background: var(--chip); color: var(--text-2); font-size: 12px; font-weight: 500;
}

/* ---------- detail projektu ---------- */

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px; box-shadow: var(--shadow-1);
}

.timeline-row {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 10px 0; border-bottom: 1px solid var(--chip);
}
.timeline-row:last-child { border-bottom: 0; }
.timeline-icon { width: 15px; height: 15px; color: var(--muted-2); flex: none; margin-top: 2px; }
.timeline-text { font-size: 13.5px; color: var(--text); }
.timeline-note { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.timeline-when { margin-left: auto; font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }

/* ---------- průvodce ---------- */

.step-number {
  width: 20px; height: 20px; flex: none;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--chip); color: var(--muted);
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.nav-item.is-active .step-number { background: var(--accent); color: var(--on-accent); }
.step-number.is-done { background: var(--st-live-bg); color: var(--st-live-fg); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .field-wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

select.input { appearance: auto; }
textarea.input { resize: vertical; font-family: inherit; }

.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; }
.pick {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: border-color 120ms ease, background 120ms ease;
}
.pick:hover { background: var(--panel-2); }
.pick.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.pick-title { display: block; font-size: 13.5px; font-weight: 500; color: var(--text); }
.pick-note { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
