:root{
  --bg:#f4f7fb;
  --panel:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;

  --brand:#179ad6;     /* SIMVR/EDUNIO blue vibe */
  --brand2:#0f7fb3;
  --ok:#16a34a;
  --warn:#f59e0b;
  --bad:#ef4444;

  --radius:14px;
  --shadow:0 10px 30px rgba(16,24,40,.08);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
}

a{color:inherit;text-decoration:none}
a:hover{text-decoration:none}

.container{
  width:min(1200px, 100%);
  margin:0 auto;
  padding:14px;
}

.topbar{
  position:sticky; top:0; z-index:50;
  background:linear-gradient(90deg, var(--brand), var(--brand2));
  color:#fff;
  box-shadow:0 6px 18px rgba(2, 44, 77, .18);
}

.topbar__inner{
  width:min(1200px, 100%);
  margin:0 auto;
  padding:10px 14px;
  display:flex;
  align-items:center;
  gap:14px;
}

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700;
  letter-spacing:.3px;
}
.brand:hover .brand__text{
  color:#000;
  text-decoration:none;
}
.brand__logo{
  height:38px;
  padding:6px 10px;
  border-radius:10px;
  background:rgba(255,255,255,.18);
  display:flex; align-items:center; gap:8px;
  border:1px solid rgba(255,255,255,.18);
}
.brand__logo img{display:block; height:22px; width:auto;}
.brand__text{
  font-style:italic;
  font-weight:400;
  color:#000;
}

.nav{
  display:flex;
  gap:10px;
  align-items:center;
  flex:1;
  overflow:auto;
  scrollbar-width:none;
}
.nav::-webkit-scrollbar{display:none}

.nav a{
  padding:8px 10px;
  border-radius:10px;
  font-size:14px;
  white-space:nowrap;
  opacity:.95;
}
.nav a:hover{background:rgba(255,255,255,.12);text-decoration:none}
.nav a.active{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.18)}

.nav-toggle{
  display:none;
  width:40px;
  height:36px;
  border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.12);
  border-radius:10px;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:6px;
}
.nav-toggle span{
  display:block;
  width:20px;
  height:2px;
  background:#fff;
  border-radius:2px;
}
.nav-drawer{
  display:none;
  background:#0f172a;
  border-top:1px solid rgba(255,255,255,.12);
}
.nav-drawer.is-open{display:block;}
.nav-drawer__inner{
  max-width:1100px;
  margin:0 auto;
  padding:12px 18px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.nav-drawer a,
.nav-drawer span.nav-disabled{
  color:#fff;
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
}
.nav-drawer a.active{
  background:rgba(255,255,255,.15);
}

.topbar__right{
  display:flex; gap:10px; align-items:center;
}
.pill{
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  padding:7px 10px;
  border-radius:999px;
  font-size:13px;
  display:flex; gap:8px; align-items:center;
}
.pill__dot{
  width:8px;height:8px;border-radius:50%;
  background:#fff; opacity:.9;
}
.iconbtn{
  width:36px;height:36px;
  border-radius:12px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  display:grid; place-items:center;
  cursor:pointer;
}
.iconbtn svg{width:18px;height:18px;fill:#fff}
.nav-disabled{
  opacity:.55;
  cursor:not-allowed;
  padding:8px 10px;
}

.footerbar{
  position:fixed;
  left:0; right:0; bottom:0;
  background:linear-gradient(90deg, var(--brand), var(--brand2));
  color:#fff;
  border-top:1px solid rgba(255,255,255,.12);
  z-index:50;
}
.footerbar__inner{
  max-width:1100px;
  margin:0 auto;
  padding:10px 18px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  font-size:13px;
}
.footerbar a{color:#fff;text-decoration:none;opacity:.9}
.footerbar a:hover{opacity:1;text-decoration:underline}

.container{padding-bottom:70px;}

@media (max-width: 1150px){
  .nav{display:none;}
  .nav-toggle{display:flex;}
  .brand span:last-child{display:none;}
}

.layout{
  display:grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap:14px;
  margin-top:14px;
}

.panel{
  background:var(--panel);
  border:1px solid rgba(17,24,39,.06);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.panel__head{
  padding:14px 14px 10px;
  border-bottom:1px solid var(--line);
  font-weight:700;
}
.panel__body{padding:14px}

.small{font-size:13px;color:var(--muted)}
.hr{height:1px;background:var(--line);margin:12px 0}

.badge{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.08);
  background:#f8fafc;
}
.badge.ok{background:#ecfdf5;border-color:#bbf7d0;color:#166534}
.badge.warn{background:#fffbeb;border-color:#fde68a;color:#92400e}
.badge.bad{background:#fef2f2;border-color:#fecaca;color:#991b1b}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:12px;
}
.table th, .table td{
  padding:10px 12px;
  font-size:14px;
  border-bottom:1px solid var(--line);
}
.table th{
  text-align:left;
  color:#0f172a;
  background:#f8fafc;
  font-size:13px;
}
.table tr:last-child td{border-bottom:0}

.actions{
  display:flex; gap:8px; justify-content:flex-end;
}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid rgba(17,24,39,.10);
  background:#fff;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
}
.btn:hover{box-shadow:0 8px 20px rgba(16,24,40,.08)}
.btn.primary{
  background:linear-gradient(90deg, var(--brand), var(--brand2));
  color:#fff;
  border-color:rgba(255,255,255,.18);
}
.btn.ghost{
  background:#f8fafc;
}
.btn svg{width:18px;height:18px}

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 10px 26px rgba(16,24,40,.06);
  display:flex;
  flex-direction:column;
}
.card__img{
  height:120px;
  background:linear-gradient(120deg, #e6f4fb, #f3fbff);
  display:grid; place-items:center;
}
.card__img img{max-width:96px;max-height:96px;opacity:.95}
.card__body{padding:12px}
.card__title{font-weight:800;margin:2px 0 6px}
.card__meta{display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:13px}
.card__foot{
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid var(--line);
}

.kpi{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.kpi__item{
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.kpi__label{font-size:12px;color:var(--muted)}
.kpi__value{font-size:20px;font-weight:800;margin-top:4px}

.notice{
  background:#f8fafc;
  border:1px dashed rgba(17,24,39,.18);
  border-radius:14px;
  padding:12px;
  color:#0f172a;
}

.roadmap{
  display:grid;
  gap:10px;
}
.roadmap__item{
  display:grid;
  grid-template-columns:56px 1fr;
  gap:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.roadmap__item:hover{
  border-color:#bfdbfe;
  box-shadow:0 10px 24px rgba(15, 127, 179, .10);
}
.roadmap__step{
  width:44px;
  height:44px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-weight:800;
  font-size:13px;
  color:#075985;
  background:linear-gradient(160deg, #e0f2fe, #bae6fd);
  border:1px solid #7dd3fc;
}
.roadmap__title{
  margin:2px 0 4px;
  font-size:16px;
  line-height:1.25;
}
.roadmap__text{
  margin:0;
  color:#475569;
  font-size:14px;
  line-height:1.45;
}

.rightlogo{
  height:110px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  display:grid; place-items:center;
  overflow:hidden;
}
.rightlogo img{max-width:80%; max-height:70%}

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}

@media (max-width: 1100px){
  .layout{grid-template-columns: 1fr 3fr; }
  .rightcol{display:none;}
  .cards{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 820px){
  .layout{grid-template-columns: 1fr;}
  .leftcol{display:none;}
  .cards{grid-template-columns: 1fr;}
  .topbar__inner{flex-wrap:wrap}
  .roadmap__item{grid-template-columns:44px 1fr; gap:10px;}
  .roadmap__step{width:36px; height:36px; font-size:12px; border-radius:10px;}
}


.editor { border:1px solid #e5e7eb; border-radius:16px; overflow:hidden; }
.editor__toolbar { display:flex; flex-wrap:wrap; gap:8px; padding:10px; background:#f9fafb; border-bottom:1px solid #e5e7eb; }
.editor__area { min-height:260px; padding:12px; outline:none; }
.editor__area:empty:before { content:"Začni psát…"; color:#9ca3af; }
.editor__area p { margin: 0 0 10px 0; }
.editor__area h2 { margin: 12px 0 8px; }
.editor__area h3 { margin: 10px 0 6px; }
table { border-collapse: collapse; width:100%; }
td,th { border:1px solid #e5e7eb; padding:8px; vertical-align:top; }


pdfbox { border:1px solid #e5e7eb; border-radius:14px; overflow:hidden; margin:10px 0; }
.pdfbox iframe { display:block; }
.pdfbox object { display:block; }

.editor__area img { max-width:100%; height:auto; display:block; margin:10px 0; }

.badge { user-select:none; }
.badge.ok { background:#16a34a; color:#fff; }
.badge.bad { background:#991b1b; color:#fff; }
.badge:hover { opacity:.85; }

.grip {font-size:20px;}

.drag-handle { cursor: grab; user-select: none; white-space: nowrap; }
.drag-handle:active { cursor: grabbing; }
tr.dragging { opacity: .4; }

.layout.layout--2col{
  display:grid;
  grid-template-columns: 1fr 3fr; /* left + main */
  gap:16px;
  align-items:start;
}
.layout.layout--2col .rightcol{ display:none; }
