:root {
  --blue-950: #082143;
  --blue-900: #0d2f63;
  --blue-800: #123f7d;
  --blue-700: #1a5da8;
  --blue-600: #2a72c4;
  --blue-100: #e3edf9;
  --blue-50: #f1f6fc;
  --yellow-600: #d99e00;
  --yellow-500: #f2b705;
  --yellow-200: #fbe6a2;
  --yellow-100: #fdf3d7;
  --ink-900: #16233a;
  --ink-700: #33415c;
  --ink-500: #5b6a84;
  --ink-300: #8b98ad;
  --line: #d7e0ec;
  --bg: #f5f7fa;
  --white: #ffffff;
  --green-700: #1c7a4a;
  --green-100: #e2f3ea;
  --red-700: #b3372e;
  --red-100: #fbe9e7;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 47, 99, 0.08);
  --shadow-md: 0 4px 16px rgba(13, 47, 99, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
}

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.4em; color: var(--blue-900); }
h1 { font-size: 2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.45rem; letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--blue-700); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--yellow-500);
  color: var(--blue-950); padding: 8px 16px; z-index: 100; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--blue-950);
  color: #cfdcf0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 34px; gap: 16px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px;
}
.topbar strong { color: #fff; font-weight: 600; }
.topbar .updated { color: var(--yellow-200); }
.demo-strip {
  background: var(--yellow-500); color: var(--blue-950);
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.01em;
}
.demo-strip .container {
  display: flex; justify-content: center; align-items: center; text-align: center;
  min-height: 38px; gap: 16px; flex-wrap: wrap; padding-top: 5px; padding-bottom: 5px;
}
.demo-strip strong { font-weight: 800; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--yellow-500);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 40;
}
.site-header .container {
  display: flex; align-items: center; gap: 20px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 9px; flex: none;
  background: linear-gradient(160deg, var(--blue-800), var(--blue-950));
  display: grid; place-items: center;
}
.brand-mark svg { display: block; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 1.15rem; font-weight: 700; color: var(--blue-900); letter-spacing: 0.01em; }
.brand-sub { font-size: 0.75rem; color: var(--ink-500); letter-spacing: 0.04em; text-transform: uppercase; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 8px 14px; text-decoration: none; color: var(--ink-700);
  font-weight: 600; font-size: 0.92rem; border-radius: 7px;
}
.site-nav a:hover { background: var(--blue-50); color: var(--blue-900); }
.site-nav a.nav-admin {
  border: 1.5px solid var(--blue-700); color: var(--blue-700);
}
.site-nav a.nav-admin:hover { background: var(--blue-700); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head .hint { color: var(--ink-500); font-size: 0.9rem; }
.rule { width: 46px; height: 4px; background: var(--yellow-500); border-radius: 2px; margin-bottom: 14px; }
.band {
  background:
    radial-gradient(900px 300px at 88% -60px, rgba(242, 183, 5, 0.18), transparent 60%),
    linear-gradient(180deg, var(--blue-900), var(--blue-800));
  color: #fff; border-radius: var(--radius); padding: 26px 28px; margin-bottom: 22px;
  border-bottom: 4px solid var(--yellow-500);
}
.band h2 { color: #fff; margin: 4px 0 8px; }
.band .eyebrow {
  color: var(--yellow-500); font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.74rem;
}
.band .hint { color: #c9d8ee; font-size: 0.9rem; max-width: 70ch; }

/* ---------- Areas grid ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.area-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow-sm);
  display: flex; gap: 12px; align-items: flex-start;
}
.area-num {
  flex: none; width: 34px; height: 34px; border-radius: 8px;
  background: var(--blue-100); color: var(--blue-900);
  font-weight: 800; display: grid; place-items: center; font-size: 0.9rem;
}
.area-card h3 { font-size: 0.98rem; margin-bottom: 2px; }
.area-card p { font-size: 0.83rem; color: var(--ink-500); margin: 0 0 6px; }
.area-count { font-size: 0.78rem; color: var(--blue-700); font-weight: 700; }

/* ---------- Toolbar / filters ---------- */
.toolbar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.toolbar label { font-size: 0.8rem; font-weight: 700; color: var(--ink-500); display: block; margin-bottom: 3px; }
.toolbar .field { display: flex; flex-direction: column; }
.toolbar input[type="search"], .toolbar select {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--white); color: var(--ink-900); min-width: 150px;
}
.toolbar input[type="search"] { min-width: 220px; }
.toolbar .spacer { flex: 1; }
.result-count { font-size: 0.85rem; color: var(--ink-500); margin: -8px 0 16px; }

/* ---------- Buttons ---------- */
.btn {
  font: inherit; font-weight: 700; border-radius: 8px; border: 1px solid transparent;
  padding: 9px 16px; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; gap: 8px;
}
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-800); }
.btn-accent { background: var(--yellow-500); color: var(--blue-950); }
.btn-accent:hover { background: var(--yellow-600); color: #fff; }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink-700); }
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-700); }
.btn-danger { background: var(--white); border-color: #e5b7b2; color: var(--red-700); }
.btn-danger:hover { background: var(--red-100); }
.btn-sm { padding: 6px 11px; font-size: 0.85rem; }

/* ---------- Status badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid transparent;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.naplanovane { background: #eef1f6; color: var(--ink-500); border-color: var(--line); }
.badge.v_priprave { background: var(--yellow-100); color: var(--yellow-600); border-color: var(--yellow-200); }
.badge.prebieha { background: var(--blue-100); color: var(--blue-700); }
.badge.hotovo { background: var(--green-100); color: var(--green-700); }
.badge.pozastavene { background: var(--red-100); color: var(--red-700); }

.chip {
  display: inline-block; font-size: 0.76rem; font-weight: 700; color: var(--blue-800);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  padding: 3px 10px; border-radius: 999px;
}

/* ---------- Project cards ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.project-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm); cursor: pointer; text-align: left;
  font: inherit; color: inherit; display: flex; flex-direction: column; gap: 10px;
  border-top: 4px solid var(--blue-700);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.project-card:focus-visible { outline: 3px solid var(--yellow-500); outline-offset: 2px; }
.project-card[data-status="v_priprave"] { border-top-color: var(--yellow-500); }
.project-card[data-status="hotovo"] { border-top-color: var(--green-700); }
.project-card[data-status="naplanovane"] { border-top-color: var(--ink-300); }
.project-card[data-status="pozastavene"] { border-top-color: var(--red-700); }
.project-card .card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.project-card h3 { font-size: 1.02rem; margin: 0; }
.project-card .summary {
  font-size: 0.88rem; color: var(--ink-700); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.progress { margin-top: auto; }
.progress .track {
  height: 8px; background: var(--blue-50); border: 1px solid var(--line);
  border-radius: 999px; overflow: hidden;
}
.progress .fill { height: 100%; background: linear-gradient(90deg, var(--blue-700), var(--blue-600)); border-radius: 999px; }
.project-card[data-status="v_priprave"] .progress .fill { background: linear-gradient(90deg, var(--yellow-600), var(--yellow-500)); }
.project-card[data-status="hotovo"] .progress .fill { background: linear-gradient(90deg, var(--green-700), #2e9a63); }
.progress .meta { display: flex; justify-content: space-between; font-size: 0.76rem; color: var(--ink-500); margin-top: 5px; }
.card-next { font-size: 0.8rem; color: var(--ink-500); border-top: 1px dashed var(--line); padding-top: 9px; }
.card-next strong { color: var(--blue-800); }
.card-timeline { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line); }
.card-timeline li { position: relative; padding: 0 0 9px 22px; font-size: 0.8rem; color: var(--ink-500); }
.card-timeline li:last-child { padding-bottom: 0; }
.card-timeline li::before {
  content: ""; position: absolute; left: 4px; top: 3px; width: 8px; height: 8px;
  border-radius: 50%; background: #fff; border: 2px solid var(--ink-300);
}
.card-timeline li.done::before { background: var(--blue-700); border-color: var(--blue-700); }
.card-timeline li:not(:last-child)::after {
  content: ""; position: absolute; left: 7px; top: 15px; bottom: 0; width: 2px; background: var(--line);
}
.card-timeline .d { font-weight: 800; color: var(--blue-700); }
.card-timeline .t { display: block; color: var(--ink-700); font-weight: 600; }
.card-timeline .more { color: var(--ink-300); font-style: italic; }
.howto { margin: 18px 0 0; padding: 0 0 0 4px; list-style: none; counter-reset: how; }
.howto li {
  counter-increment: how; position: relative; padding: 0 0 12px 40px;
  font-size: 0.92rem; color: var(--ink-700); max-width: 720px;
}
.howto li::before {
  content: counter(how); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue-800); color: #fff;
  font-weight: 800; font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
}
.howto li:last-child { padding-bottom: 0; }
.projects-list { display: flex; flex-direction: column; gap: 8px; }
.project-row {
  display: grid; grid-template-columns: 128px minmax(220px, 1fr) 110px 150px 72px;
  gap: 12px; align-items: center; text-align: left; width: 100%;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue-700);
  border-radius: var(--radius); padding: 12px 14px; cursor: pointer; font: inherit; color: inherit;
  box-shadow: var(--shadow-sm);
}
.project-row:hover { box-shadow: var(--shadow-md); }
.project-row:focus-visible { outline: 3px solid var(--yellow-500); outline-offset: 2px; }
.project-row[data-status="v_priprave"] { border-left-color: var(--yellow-500); }
.project-row[data-status="hotovo"] { border-left-color: var(--green-700); }
.project-row[data-status="naplanovane"] { border-left-color: var(--ink-300); }
.project-row[data-status="pozastavene"] { border-left-color: var(--red-700); }
.pr-title { font-weight: 700; font-size: 0.95rem; color: var(--ink-900); }
.pr-area { display: block; font-size: 0.76rem; color: var(--ink-500); margin-top: 2px; }
.pr-date { font-size: 0.8rem; font-weight: 700; color: var(--blue-800); }
.pr-progress { display: flex; align-items: center; gap: 8px; }
.pr-progress .track { flex: 1; height: 8px; background: var(--line); border-radius: 999px; display: block; }
.pr-progress .fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue-700), var(--blue-600)); }
.project-row[data-status="v_priprave"] .pr-progress .fill { background: linear-gradient(90deg, var(--yellow-600), var(--yellow-500)); }
.project-row[data-status="hotovo"] .pr-progress .fill { background: linear-gradient(90deg, var(--green-700), #2e9a63); }
.pr-progress .pct { font-size: 0.76rem; font-weight: 800; color: var(--ink-500); min-width: 40px; text-align: right; }
.pr-open { font-size: 0.78rem; font-weight: 800; color: var(--blue-700); white-space: nowrap; }
@media (max-width: 900px) {
  .project-row { grid-template-columns: 1fr auto; }
  .project-row .badge { grid-row: 1; grid-column: 2; justify-self: end; }
  .pr-title { grid-row: 1; grid-column: 1; }
  .pr-area { grid-row: 2; grid-column: 1 / -1; }
  .pr-date { grid-row: 3; grid-column: 1; }
  .pr-open { grid-row: 3; grid-column: 2; justify-self: end; }
  .pr-progress { grid-row: 4; grid-column: 1 / -1; }
}

.empty {
  text-align: center; color: var(--ink-500); background: var(--white);
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 20px;
}

/* ---------- Inline project detail ---------- */
.pr-item { break-inside: avoid; }
.pr-detail {
  background: var(--white); border: 1px solid var(--line); border-top: none;
  border-left: 4px solid var(--blue-700); border-radius: 0 0 var(--radius) var(--radius);
  padding: 20px 22px 26px; margin: -8px 0 8px; box-shadow: var(--shadow-md);
}
.pr-detail[data-status="v_priprave"] { border-left-color: var(--yellow-500); }
.pr-detail[data-status="hotovo"] { border-left-color: var(--green-700); }
.pr-detail[data-status="naplanovane"] { border-left-color: var(--ink-300); }
.pr-detail[data-status="pozastavene"] { border-left-color: var(--red-700); }
.pr-detail .lead { font-size: 1rem; color: var(--ink-700); }
.project-row[aria-expanded="true"] { border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow-md); }
.project-row[aria-expanded="true"] .pr-open { color: var(--blue-800); }
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px;
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 16px 18px; margin: 18px 0;
}
.detail-grid .k { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); font-weight: 700; }
.detail-grid .v { font-size: 0.92rem; font-weight: 600; }
.next-step {
  border-left: 4px solid var(--yellow-500); background: var(--yellow-100);
  padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 18px 0;
  font-size: 0.92rem;
}
.next-step .k { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--yellow-600); font-weight: 800; display: block; margin-bottom: 3px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 14px 0 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line);
}
.timeline li { position: relative; padding: 0 0 20px 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot {
  position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--yellow-500);
}
.timeline li.done .dot { background: var(--blue-700); border-color: var(--blue-700); }
.timeline li.done .dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--white); clip-path: polygon(18% 45%, 40% 66%, 82% 20%, 90% 30%, 41% 82%, 12% 52%);
}
.timeline .date { font-size: 0.76rem; font-weight: 800; color: var(--blue-700); letter-spacing: 0.04em; }
.timeline li:not(.done) .date { color: var(--ink-300); }
.timeline .t-title { font-weight: 700; font-size: 0.95rem; }
.timeline li:not(.done) .t-title { color: var(--ink-500); }
.timeline .note { font-size: 0.84rem; color: var(--ink-500); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-950); color: #b9c9e2; padding: 44px 0 28px; margin-top: 20px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer p { font-size: 0.88rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d9e5f5; text-decoration: none; }
.site-footer a:hover { color: var(--yellow-500); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14); margin-top: 28px; padding-top: 18px;
  font-size: 0.8rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Admin ---------- */
.admin-topbar { background: var(--yellow-500); color: var(--blue-950); font-size: 0.8rem; font-weight: 700; }
.admin-topbar .container { display: flex; align-items: center; gap: 14px; min-height: 38px; flex-wrap: wrap; }
.admin-topbar .dotmark { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-950); }
.admin-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.admin-wrap { padding: 28px 0 60px; }
.admin-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px 24px; margin-bottom: 20px;
}
.admin-panel > h2 { display: flex; align-items: center; gap: 10px; }
.admin-panel .count-pill {
  font-size: 0.75rem; background: var(--blue-100); color: var(--blue-800);
  border-radius: 999px; padding: 3px 10px; font-weight: 800;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field-block label { display: block; font-size: 0.78rem; font-weight: 800; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 5px; }
.field-block input, .field-block select, .field-block textarea {
  width: 100%; font: inherit; padding: 9px 11px; border: 1px solid var(--line);
  border-radius: 7px; background: var(--white); color: var(--ink-900);
}
.field-block textarea { min-height: 84px; resize: vertical; }
.field-block input:focus, .field-block select:focus, .field-block textarea:focus {
  outline: 2px solid var(--blue-600); outline-offset: 1px; border-color: var(--blue-600);
}
.milestones-editor { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--blue-50); }
.milestone-row {
  display: grid; grid-template-columns: 110px 1fr 1fr 150px 36px; gap: 8px;
  align-items: center; margin-bottom: 8px;
}
.milestone-row input[type="month"] { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; }
.milestone-row input[type="text"] { font: inherit; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; width: 100%; }
.milestone-row .done-cell { display: flex; align-items: center; gap: 7px; font-size: 0.84rem; font-weight: 700; color: var(--ink-700); }
.icon-btn {
  border: 1px solid var(--line); background: var(--white); border-radius: 6px; width: 32px; height: 32px;
  cursor: pointer; color: var(--red-700); font-size: 1rem; line-height: 1;
}
.icon-btn:hover { background: var(--red-100); border-color: #e5b7b2; }

.admin-list { display: flex; flex-direction: column; gap: 8px; }
.admin-item { break-inside: avoid; }
.admin-row {
  display: grid; grid-template-columns: 128px minmax(220px, 1fr) 110px 90px 72px;
  gap: 12px; align-items: center; text-align: left; width: 100%; font: inherit; color: inherit;
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--blue-700);
  border-radius: var(--radius); padding: 12px 14px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.admin-row:hover { box-shadow: var(--shadow-md); }
.admin-row:focus-visible { outline: 3px solid var(--yellow-500); outline-offset: 2px; }
.admin-row .ar-title { font-weight: 700; font-size: 0.95rem; color: var(--ink-900); }
.admin-row .ar-area { display: block; font-size: 0.76rem; color: var(--ink-500); margin-top: 2px; font-weight: 400; }
.admin-row .ar-date { font-size: 0.8rem; font-weight: 700; color: var(--blue-800); }
.admin-row .ar-pct { font-size: 0.78rem; font-weight: 800; color: var(--ink-500); }
.admin-row .ar-open { font-size: 0.78rem; font-weight: 800; color: var(--blue-700); white-space: nowrap; }
.admin-row[aria-expanded="true"] { border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow-md); }
.admin-detail {
  background: var(--white); border: 1px solid var(--line); border-top: none;
  border-left: 4px solid var(--blue-700); border-radius: 0 0 var(--radius) var(--radius);
  padding: 20px 22px 24px; margin: -8px 0 8px; box-shadow: var(--shadow-md);
}
.admin-detail .ro {
  background: #f6f7f9; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; font-size: 0.88rem; color: var(--ink-500);
}
.admin-detail .ro .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); font-weight: 700; display: block; margin-bottom: 2px; }
.admin-detail .detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.admin-item[data-status="v_priprave"] .admin-row, .admin-item[data-status="v_priprave"] .admin-detail { border-left-color: var(--yellow-500); }
.admin-item[data-status="hotovo"] .admin-row, .admin-item[data-status="hotovo"] .admin-detail { border-left-color: var(--green-700); }
.admin-item[data-status="naplanovane"] .admin-row, .admin-item[data-status="naplanovane"] .admin-detail { border-left-color: var(--ink-300); }
.admin-item[data-status="pozastavene"] .admin-row, .admin-item[data-status="pozastavene"] .admin-detail { border-left-color: var(--red-700); }
@media (max-width: 900px) {
  .admin-row { grid-template-columns: 1fr auto; }
  .admin-row .badge { grid-row: 1; grid-column: 2; justify-self: end; }
  .admin-row .ar-title { grid-row: 1; grid-column: 1; }
  .admin-row .ar-area { grid-row: 2; grid-column: 1 / -1; }
  .admin-row .ar-date { grid-row: 3; grid-column: 1; }
  .admin-row .ar-open { grid-row: 3; grid-column: 2; justify-self: end; }
  .admin-row .ar-pct { grid-row: 4; grid-column: 1; }
}

.save-bar {
  position: sticky; bottom: 0; z-index: 30;
  background: var(--blue-900); color: #fff; padding: 12px 0; box-shadow: 0 -4px 18px rgba(8,33,67,0.25);
}
.save-bar .container { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.save-bar .status { font-size: 0.85rem; color: #cfdcf0; }
.save-bar .status.dirty { color: var(--yellow-500); font-weight: 700; }
.save-bar .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.gate {
  max-width: 460px; margin: 70px auto; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 34px 32px;
}
.gate h1 { font-size: 1.4rem; }
.gate p.note { font-size: 0.85rem; color: var(--ink-500); }
.gate input { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; margin-bottom: 12px; }

.notice {
  border: 1px solid var(--yellow-200); background: var(--yellow-100); color: var(--ink-700);
  border-radius: var(--radius); padding: 12px 16px; font-size: 0.88rem; margin-bottom: 18px;
}
.notice strong { color: var(--yellow-600); }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--blue-900); color: #fff; padding: 11px 20px; border-radius: 8px;
  font-size: 0.9rem; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease; z-index: 90;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .milestone-row { grid-template-columns: 1fr 1fr; }
  .milestone-row .done-cell { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-header .container { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav ul { flex-wrap: wrap; }
  h1 { font-size: 1.55rem; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .toolbar, .site-footer, .admin-topbar, .save-bar { display: none !important; }
  body { background: #fff; }
  .project-card { break-inside: avoid; box-shadow: none; }
}
