:root{
  --bg:#fafafa;
  --card:#ffffff;
  --text:#111;
  --muted:#666;
  --line:#e9e9e9;
  --shadow: 0 1px 10px rgba(0,0,0,.05);
  --radius: 14px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

.top{
  max-width:1100px;
  margin:24px auto 0;
  padding:0 14px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
}


.top .tabs{
  width:100%;
  flex: 0 0 100%;
}

h1{margin:0 0 6px; font-size:28px}
h2{margin:0; font-size:18px}

.grid{
  max-width:1100px;
  margin:14px auto 24px;
  padding:0 14px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
}

@media (max-width: 980px){
  .grid{grid-template-columns:1fr}
}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
}

.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.space{justify-content:space-between}

.field .row{
  width:100%;
}
.field input[type="number"]{
  flex: 1 1 120px;
  min-width: 120px;
}

.field label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}

.muted{color:var(--muted)}
.small{font-size:13px}
.error{color:#b00020}

.tableWrap{overflow:auto; border-radius:12px; border:1px solid var(--line)}
table{width:100%; border-collapse:collapse; background:#fff}
th,td{padding:10px 10px; border-bottom:1px solid var(--line); text-align:left; vertical-align:middle}
th{font-size:12px; color:var(--muted); background:#fcfcfc; position:sticky; top:0}
tr:last-child td{border-bottom:none}

.right{text-align:right}
.nowrap{white-space:nowrap}

input[type="text"], input[type="number"]{
  padding:9px 10px;
  border:1px solid #d8d8d8;
  border-radius:12px;
  outline:none;
  min-width:160px;
  background:#fff;
}
input[type="number"]{min-width:120px}

.btn{
  border:1px solid #d0d0d0;
  background:#fff;
  padding:9px 10px;
  border-radius:12px;
  cursor:pointer;
  user-select:none;
  font-size: 1em; /* 1 * 16 = 16px */
}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.5; cursor:not-allowed}

.btn-primary{border-color:#111}
.btn-danger{border-color:#b00020}

.pill{
  display:inline-block;
  font-size:12px;
  padding:2px 8px;
  border:1px solid #ddd;
  border-radius:999px;
  color:var(--muted);
  margin-left:8px;
}

.inactive{opacity:.55}
code{font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px}

.tabs{
  width:100%;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

.tabs a,
.tabs button{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  text-decoration:none;
  color:var(--text);
  background:var(--card);
  box-shadow: 0 1px 6px rgba(0,0,0,.04);

  /* DŮLEŽITÉ pro sjednocení buttonu s odkazem */
  cursor: pointer;
  font: inherit;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--line); /* pro jistotu */
  font-size: 3em; /* 1 * 16 = 16px */
}

.tabs a:hover,
.tabs button:hover{ filter:brightness(.98); }

.tabs a.is-active{
  border-color:#111;
  font-weight:700;
}

.grid--1{ grid-template-columns: 1fr; }

@media (max-width: 600px){
  .tabs a,
  .tabs button{ flex:1 1 auto; justify-content:center; }
}

.tabs button{
  margin: 0;
}

.hero{
  width:100%;
  flex: 0 0 100%;
  padding: 6px 12px;          /* menší výška hero */
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f5f7ff);
  box-shadow: var(--shadow);
}

.heroTitle{
  display:flex;               /* důležité */
  align-items:center;
  justify-content:flex-start; /* nebo center */
  width:100%;
}

.heroLogo{
  display:block;              /* ať není baseline mezera */
  height:72px;                /* řídíme výšku */
  width:auto;                 /* šířka se dopočítá -> žádná deformace */
  max-width:240px;            /* kdyby byl obrázek široký */
  object-fit:contain;         /* jistota */
}

@media (max-width: 600px){
  .hero{ padding: 4px 10px; }
  .heroLogo{
    height:56px;              /* menší na mobilu */
    max-width:200px;
  }
}

/* Refresh button – natvrdo stejně jako pill odkazy 
.tabs .tab-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px !important;

  padding:8px 12px !important;
  border-radius:999px !important;

  border:1px solid var(--line) !important;
  background:var(--card) !important;
  color:var(--text) !important;

  box-shadow: 0 1px 6px rgba(0,0,0,.04) !important;

  font: inherit !important;
  line-height: 1 !important;
  margin: 0 !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  cursor:pointer !important;
}*/