.checkItem input:checked{
  accent-color: var(--gold-main);
}
:root{
  /* ===== jednotné „zlomené bílé“ pozadí pro celý web (včetně topbar) ===== */
  --pageBg: #FFFFFF;
  --cardBg: #FFFFFF;
  --iu-page-bg: linear-gradient(180deg,#eaf1f8 0%,#dde7f2 100%);

  /* světlý moderní design */
  /* unify sticky header background with app background to prevent flash */
  --iu-bg: var(--iu-page-bg);
  --iu-surface: #f7f8fa;
  --iu-text: #111111;
  --iu-meta: #6b7280;
  --iu-accent: #1f3a5f;

  /* Topbar pill shape (match search input) */
  --iuTopbarPillR: 18px; /* match searchHeight/2; keep in sync with measured search */

  /* spacing kolem denního přehledu - odpovídá horní mezeře (padding-top #leftContent + margin-top .iu-daily-brief) */
  --iu-brief-gap-top: 20px; /* desktop: 12px + 8px */
  --iu-brief-gap-bottom: 10px; /* desktop: margin-bottom na .iu-daily-brief (celkem s chips margin-top 10px = 20px) */

  /* šířka hamburgeru pro zarovnání sloupce kostiček */
  --iu-hamb-w: 34px;
  --iu-side-pad: 12px;   /* levý/pravý vnitřní okraj */
  --iu-gap: 10px;        /* vodorovná mezera mezi sloupci */
  --iu-row-gap: 10px;    /* svislá mezera mezi řádky */
  --iu-mind-gap: 10px;   /* jednotná mezera mezi prvky MindMenu */

  /* text */
  --text: rgba(11,27,43,0.92);
  --muted: rgba(11,27,43,0.60);
  --muted2: rgba(11,27,43,0.50);
  --hair: rgba(20,40,70,0.10);

  /* barva článků (titulky + běžný text) */
  --titleGreen: rgba(11,27,43,0.92);

  /* Media title typography (single source of truth) */
  --iuMediaTitleFontSize: 18px;

  /* ===== JEDEN AKCENT PRO CELÝ WEB ===== */
  --accent: #1F4B99;
  --accentSoft: rgba(31,75,153,0.10);
  --accentBorder: rgba(31,75,153,0.28);

  /* zlaté systémy */
  --gold-main: #C9A24D;
  --gold-soft: rgba(201,162,77,0.35);
  --gold-softer: rgba(201,162,77,0.22);

  /* linka mezi články */
  --divider: rgba(11,27,43,0.10);

  /* reklamy */
  --adBg: rgba(255, 176, 64, 0.14);
  --adStroke: rgba(255, 176, 64, 0.22);

  /* stíny */
  --shadow: 0 10px 28px rgba(20,40,70,0.07);
  --shadow2: 0 6px 18px rgba(20,40,70,0.05);

  /* radius */
  --radius: 16px;
  --radius2: 14px;

  /* dynamické odsazení pod FIXED topbar (doplňuje JS v app.js) */
  --topbarStackH: 68px;
  /* Celková výška sticky hlavičky: 68px (main) + 28px (links padding) + 1px (border) = 97px */
  --topbarFullH: 97px;

  /* line-clamp titulků */
  --titleLineHeight: 1.22;
  --titleLinesDesktop: 2;
  --titleLinesMobile: 3;

  /* pevná šířka čtecího sloupce */
  --readWidth: 760px;

  /* jednotné “chip” rohy (rounded rectangle) */
  --chipRadius: 12px;

  /* ===== VIDEO (sjednoceno do feedu) ===== */
  --videoSoft: rgba(20,40,70,0.04);

  /* ===== ROZCESTNÍK (ikony) ===== */
  --rcTile: 60px;
  --rcGap: 10px;
  --rcLabel: 12.5px;
  --rcLabelColor: var(--accent);

  /* ===== HORNÍ PRUH NA RÁMEČCÍCH (sjednocení pro všechny rámečky) ===== */
  --frameBarH: 2px;
  --frameBarColor: var(--accent);

  /* ===== VIP ===== */
  --vipGold: #C9A227;
}

*{ box-sizing:border-box; }

/* ==== GLOBAL CLS GUARDS ==== */

/* 1) Stabilní scrollbar – eliminuje vodorovné „cuknutí“ při objevení scrollbaru */
html{
  scroll-padding-top: var(--topbarStackH);
  scrollbar-gutter: stable;
}

/* 2) Média nikdy nemají měnit rozměr po načtení */
img, svg, video, iframe{
  display:block;
  max-width:100%;
  height:auto;
}

/* 3) Všechny obrázky, které mají mít pevný poměr stran, dostanou aspect-ratio přes třídy (viz níže) */

/* ==== GLOBAL BACKGROUND LOCK (page + columns only) ==== */
:root{
  --iu-bg-lock: var(--iu-page-bg);
}

/* Celé pozadí stránky */
html, body{
  background: var(--iu-page-bg);
}

/* ==== LAYOUT BACKGROUND OVERRIDE (news-style white) ==== */
/* Only containers (no cards). Must override gradients/transparency. */
html, body,
#content,
.container,
.iuFrame,
.iuLayout,
#iuLeftRail,
.iu-rightContent,
#feed,
#feedWrap{
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
}

/* Pozadí layoutu / sloupců (jen kontejnery, ne karty) */
#feed,
#feedWrap,
#feedColumn,
#leftFeed,
#main,
#mainColumn,
#content,
#contentWrap,
#rightColumn,
#rightSidebar,
#side,
#sidebar,
.iu-main,
.iu-mainCol,
.iu-left,
.iu-feed,
.iu-right,
.iu-sidebar,
.iu-shell,
.iu-layout,
.iu-wrap,
.page,
.container{
  background: var(--iu-page-bg);
}

html,body{ height:100%; }

body{
  margin:0;
  /* TEMP DEBUG BACKGROUND */
  background: var(--iu-page-bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1.48;
  letter-spacing: 0.005em;
  font-weight: 400;
  color: var(--text);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* CLS mitigation: keep daily panel slots reserved before JS toggles text */
html:not([data-iu-js]) .iuDailyNameday,
html:not([data-iu-js]) .iuDailyWeather{
  visibility: hidden;
}

.container{
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Sticky wrapper pro hlavičku v levém sloupci */
#leftStickyHeader{
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--iu-bg);
  display: flex;
  align-items: center;
  min-height: 68px;
}

.topbar-new{
  position: relative;
  top: 0;
  left: 0;
  right: auto;
  z-index: 1000;
  background: #243B55;
  color: #fff;
  border-bottom: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box;
}
.topbar-new-inner{
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 20px;
  box-sizing: border-box;
  background: transparent;
  z-index: 1000;
}

/* ==============================
   TOP BAR — match LEFT RAIL BUTTONS (soft)
   CSS-only: match topbar radius to search box
   ============================== */

.topbar-new{
  border-radius: 0; /* stable bar: no bending */
  overflow: visible;
  box-shadow: none;
  border: 0;
}

.topbar-new::before{
  content: none !important; /* remove bottom line */
  display: none !important;
}

.topbar-new::after{
  content: none !important; /* remove bottom bend */
  display: none !important;
}

.topbar-new-inner{
  /* local vars (match LEFT RAIL BUTTONS soft) */
  --iuLeftBtnRadius: 14px;
  --iuLeftBtnBgTop: #353d46;
  --iuLeftBtnBgBottom: #2b3138;
  --iuLeftBtnBorder: rgba(255,255,255,0.10);
  --iuLeftBtnShadow: 0 10px 22px rgba(0,0,0,0.22);

  border-radius: 0; /* NO rounding on panel itself */
  /* Pill silhouette (stable across browsers) */
  border-radius: var(--iuTopbarPillR);
  overflow: hidden;
  --iuTopbarPillEnabled: 1; /* marker for gate */

  /* inset edge + ambient shadow (no box-model change) */
  box-shadow: none;
}
.topbar-new-main{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 68px;
  height: 68px;
  padding: 0;
}
.topbar-logo{
  flex: 0 0 auto;
  margin-left: 0 !important;
  margin-right: 0;
  justify-self: auto !important;
  text-align: left;
}
.topbar-logo .brand .name{
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
}
.topbar-search{
  margin-left: auto;
  display: flex;
  align-items: center;
  border-radius: 999px; /* match topbar/searchInput */
  overflow: hidden;
}
.topbar-searchInput{
  height: 36px;
  width: 440px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.15);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 36px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.topbar-searchInput::placeholder{
  color: rgba(255,255,255,0.65);
}
.topbar-searchInput:focus{
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.25);
  box-shadow: 0 0 0 2px rgba(127,179,255,.2);
}
@media (max-width: 640px){
  .topbar-search{ display: none; }
}
.topbar-new .searchForm{
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.topbar-new .search{
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: inherit;
  overflow: hidden;
  background: #fff;
  min-width: 0;
}
.topbar-new .search .icon{
  flex: 0 0 auto;
  font-size: 16px;
}
.topbar-new .search input{
  flex: 1 1 auto;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  font-size: 14px;
  min-width: 0;
}
.topbar-new .searchBtn{
  display: none !important;
}
.topbar-new .menuBtn{
  flex: 0 0 auto;
  height: 36px;
  width: 36px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease, background .15s ease;
}
.topbar-new .menuBtn:hover{
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.2);
}
.topbar-links-wrapper{
  position: relative;
  border-top: 1px solid rgba(255,255,255,.1);
  background: #243B55;
}

/* Navigační lišta: padding-left/right 0 je default, JS přidává 56px přes has-left-arrow/has-right-arrow jako safe area proti překrytí textu šipkami */
.topbar-links{
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
  padding-left: 0;
  padding-right: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  transition: padding-left 150ms ease, padding-right 150ms ease;
}

/* Safe area padding: 56px = šířka šipky (48px) + rezerva, JS přidává třídy dynamicky */
.topbar-links-wrapper.has-left-arrow .topbar-links{
  padding-left: 56px;
}

.topbar-links-wrapper.has-right-arrow .topbar-links{
  padding-right: 56px;
}

.topbar-links::-webkit-scrollbar{
  display: none;
}

.topbar-link{
  font-size: 14px;
  color: #FFFFFF;
  text-decoration: none;
  transition: border-color 150ms ease, font-weight 150ms ease;
  font-weight: 500;
  white-space: nowrap;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  line-height: 1.4;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  /* Zajistit, že text není ořezán - žádný overflow:hidden ani text-overflow:ellipsis */
  overflow: visible;
  text-overflow: clip;
}
.topbar-link:hover{
  color: #FFFFFF;
  border-bottom: 2px solid #7FB3FF;
}
.topbar-link:active,
.topbar-link.is-active{
  color: #FFFFFF;
  font-weight: 600;
  border-bottom: 2px solid #FFFFFF;
}

/* Šipky pro horizontální scroll navigační lišty */
/* Šipky scroll: base třída NEMÁ background (gradient je schválně jen na --left/--right pro symetrický fade) */
.topbar-links-arrow{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 10;
  opacity: 0.75;
  transition: opacity 150ms ease;
  pointer-events: auto;
}

.topbar-links-arrow:hover{
  opacity: 1;
}

.topbar-links-arrow:active{
  opacity: 0.9;
}

/* Gradient pouze na variantách: --left fade doprava, --right fade doleva (symetrické) */
.topbar-links-arrow--left{
  left: 0;
  background: linear-gradient(to right, #243B55 0%, rgba(36,59,85,0.8) 50%, transparent 100%);
}

.topbar-links-arrow--right{
  right: 0;
  background: linear-gradient(to left, #243B55 0%, rgba(36,59,85,0.8) 50%, transparent 100%);
}

.topbar-links-arrow svg{
  width: 20px;
  height: 20px;
  color: #FFFFFF;
  flex-shrink: 0;
  pointer-events: none;
}

.topbar-links-arrow[hidden]{
  display: none;
}

/* Kompenzace pro levý obsah pod sticky hlavičkou */
#leftContent{
  padding-top: 12px; /* desktop: malý odstup pod menu */
}

@media (max-width: 900px){
  #leftContent{
    padding-top: 10px; /* mobil: ještě menší odstup */
  }
  :root{
    --iu-brief-gap-top: 18px; /* mobil: 10px + 8px */
    --iu-brief-gap-bottom: 8px; /* mobil: margin-bottom na .iu-daily-brief (celkem s chips margin-top 10px = 18px) */
  }
}

/* Informační pás - globální neutrální základ (pro případné budoucí použití) */
.iu-infoBar{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Informační pás - scopovaný styl pro header */
.topbar-new-main .iu-infoBar{
  font-size: 11px;
  line-height: 1.15;
  color: rgba(255,255,255,.75);
  margin: 6px 0 2px 0;
  padding: 0;
  border: 0;
}

.topbar-new-main .iu-infoTime{
  font-weight: 650;
  color: rgba(255,255,255,.9);
  font-variant-numeric: tabular-nums;
}

.iu-infoItem{
  display: inline-flex;
  align-items: center;
}

.iu-infoItem::before{
  content: "·";
  margin: 0 6px 0 2px;
  color: rgba(0,0,0,.35);
}

@media (max-width: 520px){
  .topbar-new-main .iu-infoBar{
    font-size: 11px;
    gap: 6px;
  }
  .iu-infoItem::before{
    margin: 0 5px 0 2px;
  }
}

.checkItem input:checked{
  accent-color: var(--gold-main);
}

.news-card, .videoRow{ contain: content; }

@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

a{ color: inherit; text-decoration: none; }
img{ max-width:100%; height:auto; }

/* .container má page shell výše, zde jen box-sizing */
.container{
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  display: block; /* pojistka proti nechtěnému flex */
}

.mainCol{
  min-width: 0;
  order: 1;
  min-height: 1px;
  overflow: visible;
  width: 100%;
}
.sideCol,
aside.accordionCol{
  min-width: 0;
  order: 2;
  width: var(--sideW, 360px);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 14px;
  align-self: stretch;
  position: relative;
}
.accordionCol{
  background: var(--iu-page-bg);
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 0;
  min-width: 0;
  align-self: stretch;
  height: auto;
  min-height: 0;
}
.mindMenu{
  background: var(--iu-page-bg);
  color: #2A2E33;
  padding-left: 16px;
  padding-right: 16px;
  padding-bottom: 40px;
  padding-top: 0;
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

/* Informační blok v pravém sloupci */
.iu-rightInfo{
  font-size: 12px;
  line-height: 1.25;
  color: rgba(0,0,0,.65);
  margin: 0 0 12px 0;
  padding: 0 0 10px 0;
  padding-right: 0;
  margin-right: 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  text-align: right;
  width: 100%;
  box-sizing: border-box;
  align-self: flex-end;
}

.iu-rightInfo-time{
  font-weight: 650;
  color: rgba(0,0,0,.85);
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
  text-align: right;
}

.iu-rightInfo-line{
  margin-bottom: 2px;
  text-align: right;
}

/* PRAVÝ SLOUPEC – autorita rychlých odkazů */
.mindMenu > *{
  order: 10;
}

/* PRAVÝ SLOUPEC – žádný prostor nahoře */
.accordionCol,
.mindMenu-scroll-wrapper,
.mindMenu{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ===== IU Daily Panel ===== */
.iuDailyPanel{
  order: 0;
  width: 100%;
  max-width: 100%;
  padding: 14px;
  margin-bottom: 0;
  min-height: 140px;
  box-sizing: border-box;
  background: linear-gradient(180deg,#eaf1f8 0%,#dde7f2 100%);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(31,58,95,0.08);
  align-self: stretch;
}

.iuDailyPanel [hidden]{
  display: none !important;
}

.iuDailyTop{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
}

.iuDailyTime{
  font-size:20px;
  font-weight:600;
}

.iuDailyDate{
  font-size:14px;
  opacity:.85;
  line-height: 20px;
  min-height: 20px;          /* 1 řádek natvrdo */
  white-space:nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iuDailyNameday{
  font-size:13px;
  opacity:.8;
  line-height: 18px;
  min-height: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CLS stabilization: keep nameday line height stable even on fetch failure */
.iuDailyPanel #iuDailyNameday[hidden]{
  display: block !important;
  visibility: hidden !important;
}

/* CLS FIX v4: nameday must never collapse height (even if hidden=true) */
#iuDailyNameday[hidden]{
  display: block !important;
  visibility: hidden !important;
}

/* UX/CLS experiment: remove nameday line entirely (no more hide/show toggling) */
#iuDailyNameday,
.iuDailyNameday{
  display: none !important;
}

.iuDailyWeather{
  margin-top: 10px;
  min-height: 200px;
  contain: layout paint;
}

/* CLS FIX (post PR#38): stabilize right column weather slot + prevent anchor jumps */
#iuDailyWeather.iuDailyWeather{
  overflow-anchor: none;    /* zabrání skokům při dynamickém dočítání */
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  min-height: 200px !important; /* zmenšeno (dřív se to chovalo kolem 300px) */
}

/* Weather */
.iuWxNowRow{
  display:flex;
  gap:10px;
  margin-top:10px;
}

/* CLS FIX v2: keep weather row layout stable */
#iuDailyWeather .iuWxNowRow{
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 10px;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}

.iuWxIcon{font-size:28px;}

/* CLS FIX v3: stabilize icon box (prevents meta deltaX nudge) */
#iuDailyWeather .iuWxIcon{
  width: 40px;
  min-width: 40px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
}

.iuWxNowMeta{
  display:flex;
  flex-direction:column;
  gap:4px;
}

/* CLS FIX: prevent horizontal nudge of weather meta block (dump: width ~217.5px, deltaX ~15.7px) */
#iuDailyWeather .iuWxNowMeta{
  box-sizing: border-box;
  min-width: 145px;
  white-space: nowrap;
}
#iuDailyWeather .iuWxNowMeta > *{
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 900px){
  .iuDailyDate{
    display: inline-block;
    min-width: 160px;
  }
  .iuWxNowMeta{
    white-space: nowrap;
    min-width: 145px;
  }
}

.iuWxNowLine{
  display:flex;
  align-items:center;
  gap:8px;
}

.iuWxTemp{font-size:26px;font-weight:600;}

.iuWxMinMax{font-size:12px;opacity:.8;}

.iuDailyErr{
  font-size:12px;
  opacity:.7;
  margin-top:8px;
}

.iuWxHours{
  display:flex;
  gap:10px;
  overflow-x:auto;
  margin-top: 6px !important;
}

.iuWxHours--skeleton .iuWxHour{
  visibility: hidden;
}

.iuWxHours::-webkit-scrollbar{display:none;}

.iuWxHour{
  min-width:48px;
  text-align:center;
}

.iuWxHourTemp{font-weight:500;}

/* REFERENČNÍ RYTMUS – Rychlé odkazy */
.iu-mmQuickLinks{
  order: 0;
  width: 100%;
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: relative;
}

.iu-mmSectionHead{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

/* Moje schránky – MUSÍ odpovídat Rychlým odkazům */
.iu-mmMailHead{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  width: 100%;
}

/* Uprava pro header v summary - aby vypadal správně */
.iu-userHeader .iu-mmMailHead{
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 !important;
  grid-column: 1 / -1; /* Překryje celý grid */
}

/* Moje schránky – zrušení nadbytečného spacingu z rodičů */
.iu-userHeader .iu-mmMailHead,
.iu-userTitleSummary .iu-mmMailHead{
  margin-top: 0 !important;
}

/* Avoid relational selectors for broad browser compatibility */
.iu-userHeader{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.iu-userTitleSummary{
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.iu-mmSectionTitle{
  font-size: 12px;
  font-weight: 600;
  color: rgba(0,0,0,.85);
  white-space: nowrap;
  flex-shrink: 0;
}

.iu-mmSectionLine{
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,.15);
  min-width: 0;
}

.iu-mmQuickGrid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.iu-mmQuickItem{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

button.iu-mmQuickItem{
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.iu-mmQuickItem:hover{
  background: rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.iu-mmQuickItem:active{
  background: rgba(0,0,0,.12);
  transform: translateY(0);
}

.iu-mmQuickItem:focus-visible{
  outline: 2px solid rgba(0,123,255,.5);
  outline-offset: 2px;
}

.iu-mmQuickItem i{
  font-size: 20px;
  margin-bottom: 4px;
}

.iu-mmQuickItem span{
  font-size: 12px;
  line-height: 1.1;
}

/* Barvy ikon */
.iu-mmQuickItem[aria-label="ChatGPT"] i{
  color: #10a37f;
}

.iu-mmQuickItem[aria-label="DeepL"] i{
  color: #0d2e4c;
}

.iu-mmQuickItem[aria-label="Balíky"] i{
  color: #e60012;
}

.iu-mmQuickItem[aria-label="Google"] i{
  color: #4285f4;
}

.iu-mmQuickItem[aria-label="Seznam.cz"] i{
  color: #0066cc;
}

.iu-mmQuickItem[aria-label="YouTube"] i{
  color: #ff0000;
}

/* Responzivní úpravy */
@media (max-width: 768px){
  .iu-mmQuickItem{
    min-height: 50px;
    padding: 6px;
  }

  .iu-mmQuickItem i{
    font-size: 20px;
  }

  .iu-mmQuickItem span{
    font-size: 10px;
  }
}

/* Debug: diagnostické obrysy (pouze pro vývoj) */
.iu-mmQuickLinks{
  /* outline: 1px dashed rgba(255,0,0,.3); */
}

.iu-mmQuickItem{
  /* outline: 1px dashed rgba(0,0,255,.3); */
}

/* MindMenu toggle wrapper */
.iu-mindDetails{
  width: 100%;
  height: auto;
  min-height: 0;
}

/* summary musí být klikací, bez default markeru */
.iu-userTitleSummary{
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.iu-userTitleSummary::-webkit-details-marker{ display:none; }

.iu-userTitleSummary:focus,
.iu-userTitleSummary:focus-visible{
  outline: none;
  box-shadow: none;
}

/* summary = hlavička */
.iu-userHeader{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;

  /* PEVNÉ ODSAZENÍ OD OKRAJŮ */
  padding-left: 0.5cm;
  padding-right: 0.5cm;
  padding-top: 8px;
  padding-bottom: 8px;

  border-bottom: 1px solid rgba(0,0,0,0.10);
  box-sizing: border-box;

  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.85);
}

.iu-starCluster{
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.iu-userTitleText{
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
}

.iu-starCount{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  color: rgba(0,0,0,0.75);
}

/* pravý spacer – drží grid, ať zůstane střed středem */
.iu-userHeaderSpacer{
  width: 1px; /* minimální, jen existuje */
}

.iu-userTitle{
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,0.85);
}

.iu-userTitle span{
  margin-left: 6px;
}

.iu-userSettings{
  display: none !important;
}

/* Wrapper: celý obsah pravého sloupce, zarovnání doprava */
.iu-rightContent{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: var(--iu-row-gap);
  height: auto;
  min-height: 0;
}

/* Pravý sloupec – rychlé nástroje */
.iu-right-tools{
  display: flex;
  gap: 10px;
  margin: 6px 0 10px;

  /* Zrušit oddělovací čáru lícující s horní hranou ikon */
  border-top: 0 !important;
}

.iu-right-tools::before{
  content: none !important;
}

.iu-mindDetails summary + .iu-right-tools{
  border-top: 0 !important;
}

.iu-right-tool{
  flex: 1 1 0;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.iu-right-tool i{
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  line-height: 1.25em;
  text-align: center;
  font-size: 18px;
}

/* Horní řada 6 čtverečků */
/* Rychlý řádek v MindMenu - 3 oválné štítky + hamburger */
.iu-mindQuickRow{
  display: grid;
  grid-template-columns: 1fr 1fr var(--iu-hamb-w);
  align-items: center;
  column-gap: var(--iu-gap);
  padding-left: var(--iu-side-pad);
  padding-right: var(--iu-side-pad);
  box-sizing: border-box;
  width: 100%;
}

.iu-quickChip{
  width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  color: rgba(0,0,0,0.78);
  font-size: 13px;
  line-height: 32px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  justify-self: stretch;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.iu-mindQuickRow .iu-quickChip{
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.iu-quickChip:hover{
  border-color: rgba(0,0,0,0.25);
  background: rgba(0,0,0,0.02);
}

.iu-quickHamburger{
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 0;
  margin-left: auto;
  cursor: pointer;
}

.iu-mindQuickRow .iu-quickHamburger{
  width: var(--iu-hamb-w);
  height: var(--iu-hamb-w);
  justify-self: end;
  margin: 0;
}

.iu-quickHamburger span{
  width: 18px;
  height: 2px;
  background: #000;
  border-radius: 1px;
  transition: opacity 150ms ease;
}

.iu-quickHamburger:hover span{
  opacity: 0.7;
}

.iu-topSquares{
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  align-self: center;
}

/* Dvousloupcový layout: tlačítka vlevo + čtverce vpravo */
.iu-actionsWithSquares{
  display: grid;
  grid-template-columns: 1fr var(--iu-hamb-w);
  align-items: start;
  column-gap: var(--iu-gap);
  row-gap: var(--iu-row-gap);
  padding-left: var(--iu-side-pad);
  padding-right: var(--iu-side-pad);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

#iuMindPanel .iu-actionsWithSquares{
  padding-top: var(--iu-mind-gap);
}

/* Moje schránky: panel – zachovat animaci, ale neomezovat rozšíření pravého sloupce */
.iu-mindDetails #iuMindPanel{
  overflow: hidden;
  transition: max-height 220ms ease, opacity 180ms ease;
  opacity: 1;
  max-height: 9999px; /* velký strop – aby se panel neusekával, ale animace fungovala */
}

.iu-mindDetails:not([open]) #iuMindPanel{
  opacity: 0;
  max-height: 0;
}

/* zachovat svislé mezery automaticky – žádné pevné výšky */
.iu-mindDetails,
.iu-mindDetails > .iu-userHeader,
.iu-mindDetails #iuMindPanel{
  height: auto;
  min-height: 0;
}

/* Levý sloupec: oválná tlačítka */
.iu-actionsCol{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--iu-mind-gap);
}

/* Pravý sloupec: kostičky - zarovnat doprava a držet pod hamburgerem */
.iu-squaresCol{
  width: var(--iu-hamb-w);
  justify-self: end;
  display: grid;
  gap: var(--iu-mind-gap);
}

/* Svislé oválné štítky vlevo: ať končí před kostičkami */
.iu-actionsCol .iu-actionBtn{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
}

/* MindMenu: Moje schránky – sjednocení mezer mezi řádky */
.iu-mmMailSection{
  gap: 0;
}
.iu-mmMailSection .iu-actionBtn{
  margin: 0 0 10px 0;
}
.iu-mmMailSection .iu-actionBtn:last-child{
  margin-bottom: 0;
}

/* Oválná tlačítka v pravém sloupci (zachovat pro kompatibilitu) */
.iu-rightActions{
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
}

/* Svislý sloupek 5 čtverečků (zachovat pro kompatibilitu) */
.iu-railSquares{
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 auto;
}

.iu-actionBtn{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.15);
  font-size: 13px;
  line-height: 32px;
  font-weight: 600;
  color: rgba(0,0,0,.85);
  cursor: pointer;
  width: 100%;
}

.iu-actionBtn:hover{
  border-color: rgba(0,0,0,.35);
  background: rgba(0,0,0,.02);
}

.iu-actionBurger{
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Skrytí hamburger ikonek u oválných štítků v MindMenu */
.mindMenu .iu-actionBurger{
  display: none;
}

.iu-actionBurger i{
  width: 14px;
  height: 2px;
  background: rgba(0,0,0,.65);
  border-radius: 2px;
}

/* Hamburger čtverec v horní řadě */
.iu-hambSquare{
  border: 0;
  cursor: pointer;
  background: #000;
  color: #fff;
  padding: 0;
}

/* Mini hamburger uvnitř čtverce */
.iu-miniBurger{
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.iu-miniBurger i{
  display: block;
  width: 14px;
  height: 2px;
  background: rgba(255,255,255,.92);
  border-radius: 2px;
}

/* Zajisti, že čtverce mají správnou velikost */
.iu-topSquares .iu-socialSquare,
.iu-railSquares .iu-socialSquare{
  width: 32px;
  height: 32px;
}

/* Horní řádek MindMenu - sociální ikony */
.iu-mindSocialRow{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 6px 0;
}

/* řádek čtverců do hrany boxu */
.mindMenu .iu-mindSocialRow{
  margin-left: -24px;
  margin-right: -24px;
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 0;
  padding-bottom: 0;
  flex-wrap: nowrap;
  align-items: center;
  display: flex;
}

.iu-socialSquare{
  width: 32px;
  height: 32px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  transition: opacity 140ms ease;
  flex: 0 0 auto;
  margin-top: 0;
  margin-bottom: 0;
}

.iu-socialSquare:hover{
  opacity: 0.8;
  text-decoration: none !important;
}


/* jemný hover */
.iu-mindSocialRow .iu-hamburgerPlain:hover{
  opacity: 0.75;
}

/* MindMenu v horním řádku - zarovnání nahoře */
.mindMenu-scroll-wrapper{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 68px;
  width: 100%;
  box-sizing: border-box;
  height: auto;
  max-height: none;
  overflow-anchor: none;
}
.mindMenu-scroll-wrapper::after{
  content: "";
  display: block;
  background: transparent;
  min-height: 0;
}
.mindMenu-title{
  font-size: 24px;
  font-weight: 700;
  color: #2A2E33;
  margin: 0;
}
.mindMenu-tags{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mindMenu-tag{
  height: 40px;
  background: rgba(42,46,51,0.08);
  border-radius: 4px;
}
.mindMenu-rectangle{
  margin-top: auto;
  height: 200px;
  background: rgba(42,46,51,0.08);
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
  padding: 16px;
}
.mindMenu-square{
  width: 40px;
  height: 40px;
  background: #2A2E33;
  border-radius: 4px;
}
.accItem{
  margin: 0;
}

.accHeader{
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.55);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.accHeader:hover,
.accHeader:focus-visible{
  background: rgba(31,75,153,0.14);
  outline: none;
}

.accHeader.is-open{
  background: rgba(31,75,153,0.10);
  color: var(--accent);
}

.accContent{
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
  padding: 0 10px;
}

.accContent > *{
  margin-top: 10px;
}

.accContent[hidden]{
  display: block;
}

.accPlaceholder{
  color: rgba(11,27,43,0.62);
  font-size: 13px;
  line-height: 1.45;
}

/* Panel: povolit vnitřním prvkům dýchat */
.accordionCol .accContent{
  overflow: hidden;
}
.accordionCol .accContent.is-open-overflow{
  overflow: visible;
}
@media (min-width: 901px){
  .mainCol{ padding-left: 0 !important; }
}
.topbar{
  position: relative;
  width: min(1100px, calc(100% - 2 * var(--pageGutter)));
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px var(--pageGutter);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 72px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.topbar::before{
  content: none;
}

.topbar::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #F5C16A;
  transform: translateY(1px);
  pointer-events: none;
}

.leftPack{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
  flex: 0 0 auto;
}

.menuBtn{
  height: 40px;
  width: 48px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: rgba(255,255,255,0.90);
  box-shadow: 0 4px 14px rgba(20,40,70,0.05);
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
  flex: 0 0 auto;
}

@media (hover:hover) and (pointer:fine){
  .menuBtn:hover{
    border-color: rgba(31,75,153,0.22);
    box-shadow: 0 10px 24px rgba(20,40,70,0.08);
    background: rgba(255,255,255,0.94);
  }
}
.menuBtn:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
}

.burger{
  width: 18px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.burger span{
  display:block;
  height:2px;
  background: rgba(11,27,43,0.75);
  border-radius: 2px;
}
.topbar-new .burger span{
  background: #FFFFFF;
}

.brand{
  display:flex;
  align-items: baseline;
  gap: 0;
  min-width: 0;
  flex: 0 1 auto;
}
.brand .name{
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.1px;
  line-height: 1.0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Brand link container */
.iuBrand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  flex: 0 0 auto;
  margin-right: 14px;
  margin-top: 2px;
}

/* ===== Brand SVG logo (LOCKED) ===== */
.iuBrandSvg{
  display:block;
  height:60px;
  width:auto;
  overflow:visible;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  flex: 0 0 auto !important;
  max-width: none !important;
  min-width: 0 !important;
  user-select: none;
}

@media (max-width: 640px){
  .iuBrandSvg{
    height:48px;
  }
}

/* Zákaz deformace uvnitř hlavičky */
.header .iuBrandSvg,
.topbar .iuBrandSvg,
.brand .iuBrandSvg{
  flex: 0 0 auto;
}

a.brand,
.topbar a,
.header a{
  display:flex;
  align-items:center;
}

.searchForm{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(20,40,70,0.04);
  border:1px solid rgba(20,40,70,0.10);
}

.search{
  position: relative;
  min-width: 0;
  width: min(620px, 70%);
}

.search,
.searchWrap{
  flex: 1 1 auto;
  min-width: 0;
}

.search input{
  width: 100%;
  height: 40px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255,255,255,0.90);
  padding: 0 14px 0 38px;
  font-size: 15px;
  font-weight: 450;
  outline: none;
  box-shadow: 0 4px 14px rgba(20,40,70,0.05);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.search input:focus{
  border-color: rgba(31,75,153,0.26);
  box-shadow: 0 10px 24px rgba(20,40,70,0.08);
  background: rgba(255,255,255,0.94);
}

.search .icon{
  position:absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(11,27,43,0.45);
  font-size: 14px;
  user-select: none;
  pointer-events: none;
}

.searchBtn{
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(20,40,70,0.12);
  background: rgba(255,255,255,0.90);
  color: rgba(11,27,43,0.86);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20,40,70,0.04);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  transition: box-shadow 140ms ease, border-color 140ms ease, color 140ms ease, background 140ms ease;
  flex: 0 0 auto;
}

@media (hover:hover) and (pointer:fine){
  .searchBtn:hover{
    background: var(--accentSoft, rgba(31,75,153,0.08));
    color: var(--accent, #1F3557);
  }
  .searchBtn:hover svg{
    stroke: #1F3557;
  }
}

.searchBtn:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
}

.rightMeta{
  display:flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
  flex: 0 0 auto;
  max-width: 300px;
}

.topbarInfo{
  font-size: 12px;
  font-weight: 560;
  color: var(--muted);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.topbarInfo strong{
  color: var(--accent);
  font-weight: 750;
}

.homePinRow{
  display:flex;
  align-items:center;
  gap: 10px;
  max-width: 300px;
  justify-content: flex-end;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.homePinSep{
  width: 1px;
  height: 14px;
  background: rgba(20,40,70,0.14);
  flex: 0 0 auto;
}

.homePinStar{
  width: 14px;
  height: 14px;
  display:block;
  flex: 0 0 auto;
  color: rgba(11,27,43,0.52);
  transition: color 140ms ease;
}
.homePinStar svg{ display:block; width: 14px; height: 14px; }

.homePinText{
  font-size: 11.8px;
  font-weight: 650;
  color: rgba(11,27,43,0.62);
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.vipBadge{
  display:none;
  align-items:center;
  gap: 6px;
  font-size: 11.6px;
  font-weight: 800;
  color: var(--vipGold);
  line-height: 1.1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.homePinRow.isVip .homePinStar{
  color: var(--vipGold);
}
.homePinRow.isVip .vipBadge{
  display:inline-flex;
}

@media (hover:hover) and (pointer:fine){
  .homePinRow:hover .homePinText{
    color: rgba(11,27,43,0.74);
  }
  .homePinRow:hover .homePinStar{
    color: rgba(31,75,153,0.70);
  }
  .homePinRow.isVip:hover .homePinStar{
    color: var(--vipGold);
  }
}

.homePinRow:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
  border-radius: 10px;
}

.dataUpdatedAt{
  font-size: 11.2px;
  font-weight: 560;
  color: rgba(11,27,43,0.52);
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.statusLine{
  font-size: 13px;
  color: var(--muted);
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.pill{
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.92);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  user-select: none;
}

.btn{
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(20,40,70,0.12);
  background: rgba(255,255,255,0.94);
  font-weight: 700;
  cursor: pointer;
  padding: 0 14px;
  font-size: 13px;
  transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, background 140ms ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible, .btn:hover{
  border-color: var(--accentBorder);
  color: var(--accent);
  box-shadow: 0 12px 28px rgba(20,40,70,0.08);
}

.statusLine .btn{
  flex: 0 0 auto;
}

.block{
  margin-top: 0;
  background: var(--cardBg);
  border: 1px solid rgba(20,40,70,0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 14px 14px 12px;
  position: relative;
  overflow: hidden;
}

.block + .block{ margin-top: 14px; }

.blockHead{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.blockHead .title{
  font-size: 16.5px;
  font-weight: 750;
  line-height: 1.1;
  color: var(--accent);
}

.tinyLegal{
  margin-top: 12px;
  font-size: 10.2px;
  line-height: 1.22;
  color: rgba(11,27,43,0.40);
  font-weight: 540;
  letter-spacing: 0.01em;
}

.chips{ display:flex; flex-wrap: wrap; gap: 10px; }

.chipLink{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: var(--chipRadius);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(20,40,70,0.10);
  box-shadow: none;
  font-weight: 650;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
  font-size: 12.8px;
  line-height: 1.1;
  -webkit-tap-highlight-color: transparent;
  color: var(--text);
}

.chipIcon{ display:none !important; }

@media (hover:hover) and (pointer:fine){
  .chipLink:hover{
    color: var(--accent);
    border-color: var(--accentBorder);
    background: var(--accentSoft);
  }
}

.chipLink:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
}

.servicesBlock{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  position: static !important;
  overflow: visible !important;
}
.servicesBlock::before{ display:none !important; }

.servicesList{ padding: 0; margin: 0; }

.serviceGroup{
  padding: 12px 0 14px;
}

.serviceGroup + .serviceGroup{
  border-top: 1px solid var(--hair);
  padding-top: 16px;
  margin-top: 2px;
}

.serviceGroup .groupTitle{
  font-size: 14px;
  font-weight: 750;
  color: var(--accent);
  line-height: 1.15;
  margin: 0 0 10px 0;
}

.servicesBlock .chipLink{
  color: var(--titleGreen) !important;
  background: rgba(255,255,255,0.92);
}

@media (hover:hover) and (pointer:fine){
  .servicesBlock .chipLink:hover{
    color: var(--accent) !important;
    border-color: var(--accentBorder);
    background: var(--accentSoft);
  }
}

.serviceGroup.isFramed{
  position: relative;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: calc(14px + var(--frameBarH)) 12px 14px;
  background: rgba(255,255,255,0.88);
  overflow: hidden;
}

.serviceGroup.isFramed::before{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--frameBarH);
  background: var(--frameBarColor);
  pointer-events: none;
}

.servicesList .serviceGroup.isFramed + .serviceGroup.isFramed{
  border-top: none;
  margin-top: 14px;
  padding-top: calc(14px + var(--frameBarH));
}

.rcBlock{
  background: transparent !important;
  box-shadow: none !important;
  border: 1px solid var(--hair) !important;
  border-radius: var(--radius) !important;
  padding: calc(14px + var(--frameBarH)) 14px 14px !important;
  position: relative;
  overflow: hidden;
}
.rcBlock::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--frameBarH);
  background: var(--frameBarColor);
  pointer-events:none;
}

.rcPanel{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.rcGrid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--rcGap);
  align-items: start;
}

.rcItem{
  display:flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  -webkit-tap-highlight-color: transparent;
}

.rcItem img{
  width: var(--rcTile);
  height: var(--rcTile);
  display:block;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  object-fit: contain;
  object-position: center;
  transform: none !important;
}

.rcItem span{
  margin-top: 6px;
  font-size: var(--rcLabel);
  line-height: 1.1;
  font-weight: 800;
  color: var(--rcLabelColor);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

@media (max-width: 520px){
  :root{ --rcTile: 54px; --rcGap: 10px; --rcLabel: 12px; }
  .rcGrid{ grid-template-columns: repeat(4, 1fr); }
}

.weatherPanel{ display: grid; gap: 10px; }
.weatherLine{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.weatherLine .left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}
.weatherLine .sun{
  font-size: 18px;
  width: 20px;
  text-align:center;
  flex: 0 0 auto;
}
.weatherLine .temp{
  font-size: 16px;
  font-weight: 850;
  white-space: nowrap;
  flex: 0 0 auto;
}
.weatherLine .wMeta{
  display:flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  line-height: 1.08;
}
.weatherLine .cond{
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(11,27,43,0.74);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.weatherLine .loc{
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 560;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.weatherLine .arrow{
  color: rgba(11,27,43,0.55);
  font-weight: 800;
  user-select: none;
  flex: 0 0 auto;
}

.horoBox{
  font-size: 13px;
  color: rgba(11,27,43,0.72);
  line-height: 1.5;
  font-weight: 560;
}
.horoHint{
  margin-top: 8px;
  font-size: 10.6px;
  color: rgba(11,27,43,0.46);
  font-weight: 560;
  line-height: 1.35;
}

.feedHead{
  margin-top: 0;
  display:flex;
  flex-direction: column;
  gap: 8px;
  max-width: var(--readWidth);
  margin-left: auto;
  margin-right: auto;
}

.feedTopRow{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.feedHead .sec{
  font-size: 12.5px;
  color: var(--titleGreen);
  font-weight: 650;
  min-width: 0;
}
.feedUpdatedAt{
  font-size: 11.2px;
  font-weight: 560;
  color: rgba(11,27,43,0.52);
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  max-width: 260px;
  flex: 0 0 auto;
}

@media (max-width: 520px){
  .feedTopRow{
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .feedUpdatedAt{
    text-align: left;
    max-width: 100%;
    white-space: normal;
  }
}

.sectionsBar,
.sectionBar{
  width: 100%;
  margin: 0 0 12px 0;
  padding: 0 0 16px 0;
  background: transparent;
  border-bottom: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.sectionsBar .secBtn,
.sectionBar .secBtn{
  appearance: none;
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  color: var(--iu-text);
  letter-spacing: 0;
  transition: all 150ms ease;
  -webkit-appearance: none;
  text-decoration: none;
  white-space: nowrap;
}
.sectionsBar .secBtn.isActive,
.sectionBar .secBtn.isActive{
  background: var(--iu-accent);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}
.sectionsBar .secBtn:hover:not(.isActive),
.sectionsBar .secBtn:focus-visible:not(.isActive),
.sectionBar .secBtn:hover:not(.isActive),
.sectionBar .secBtn:focus-visible:not(.isActive){
  color: var(--iu-accent);
  background: var(--iu-surface);
}
.sectionsBar .secBtn:focus-visible,
.sectionBar .secBtn:focus-visible{
  outline: 2px solid var(--iu-accent);
  outline-offset: 2px;
}

@media (max-width: 680px){
  .sectionsBar,
  .sectionBar{
    gap: 6px;
    padding: 0 0 12px 0;
  }
  .sectionsBar .secBtn,
  .sectionBar .secBtn{
    font-size: 13px;
    padding: 5px 10px;
  }
}

.card{
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 18px 0;
  box-shadow: none;
  overflow-wrap: anywhere;
  position: relative;
  transition: none;
}

/* REMOVED: .news-card::after divider - now using border-top instead */

.srcSep{
  color: rgba(11,27,43,0.40);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  user-select: none;
  pointer-events: none;
}

.ad-card{
  background: var(--adBg);
  border: 1px solid var(--adStroke);
  border-radius: var(--radius2);
  box-shadow: 0 10px 26px rgba(20,40,70,0.06);
  padding: 12px 12px 12px;
  margin: 14px 0;
  overflow-wrap: anywhere;
  position: relative;
}
.ad-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  min-width: 0;
}
.ad-head .pos{
  font-size: 11.6px;
  font-weight: 800;
  color: rgba(11,27,43,0.70);
  white-space: nowrap;
}
.ad-head .ad-label{
  font-size: 11.6px;
  font-weight: 750;
  color: rgba(11,27,43,0.58);
  white-space: nowrap;
}

.ad-title{
  margin: 0 0 6px 0;
  font-size: 14px;
  font-weight: 800;
  color: rgba(11,27,43,0.86);
  line-height: 1.18;
}

.ad-text{
  font-size: 12.6px;
  line-height: 1.38;
  color: rgba(11,27,43,0.72);
  font-weight: 560;
}

.ad-email{
  font-weight: 800;
  color: rgba(11,27,43,0.82);
  border-bottom: 1px solid rgba(11,27,43,0.18);
  padding-bottom: 1px;
  white-space: nowrap;
}

.news-title{
  margin: 0;
  font-size: var(--iuMediaTitleFontSize, 18px);
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: 0;
  min-width: 0;
}

.news-titleLink{
  display: inline-block;
  -webkit-box-orient: vertical;
  line-height: var(--titleLineHeight);
  min-height: calc(var(--titleLineHeight) * var(--titleLinesDesktop) * 1em);
  max-height: calc(var(--titleLineHeight) * var(--titleLinesDesktop) * 1em);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  color: #0b3a66;
  text-decoration: none;
  text-decoration-line: none;
  text-decoration-color: transparent;
  transition: color 140ms ease, text-decoration-color 140ms ease;
  border-radius: 8px;
}
.news-titleLink:visited{
  color: #0b3a66;
}
.news-titleLink:hover,
.news-titleLink:focus-visible{
  color: #000;
  text-decoration: underline;
  text-decoration-line: underline;
  text-decoration-color: #000;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Emergency: DOM je naplněný, ale vizuálně nic není vidět */
.iu-feedEmergencyVisible .layout,
.iu-feedEmergencyVisible .mainCol,
.iu-feedEmergencyVisible #newsList,
.iu-feedEmergencyVisible #feed{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  height: auto !important;
  min-height: 1px !important;
  overflow: visible !important;
}

.iu-feedEmergencyVisible #feed{
  position: relative !important;
  z-index: 2 !important;
}

.iu-feedEmergencyVisible #feed .news-card{
  display: block !important;
  background: #fff !important;
  border: 1px solid rgba(11,27,43,0.10) !important;
  border-radius: 12px !important;
  padding: 14px 14px !important;
  margin: 10px 0 !important;
}

.iu-feedEmergencyVisible #feed .news-titleLink{
  color: #0b3a66 !important;
  text-decoration: none !important;
}

#feed a:not(.news-titleLink){
  color: rgba(11,27,43,0.92);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(11,27,43,0.45);
}
@media (max-width: 900px){
  #feed{
    grid-template-columns: 1fr;
  }
}

/* Denní přehled – "Dnes je dobré vědět" */
.iu-daily-brief{
  margin: 8px 0 var(--iu-brief-gap-bottom, 10px) 0; /* spodní vzdálenost dorovnána na horní mezeru */
  padding-top: 0;
  display: flow-root; /* prevence margin-collapse */
}

.iu-daily-brief-inner{
  background: #f6f4ee;
  border: 1px solid rgba(0,0,0,0.10);
  /* Dnes je dobré vědět – bez zaoblení rohů */
  border-radius: 0;
  padding: 12px 14px;
  margin-top: 0;
}

.iu-daily-brief h2{
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
}

.iu-daily-brief ul{
  margin: 0;
  padding-left: 18px;
}

.iu-daily-brief li{
  margin: 4px 0;
}

.iu-todayGrid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px; /* jemná mezera pod H2 */
}

.iu-todayBox ul{
  margin: 0;
}

@media (max-width: 768px){
  .iu-todayGrid{
    grid-template-columns: 1fr;
  }
}

/* === AI Panel (Modal) === */
.iu-aiOverlay[hidden],
.iu-aiPanel[hidden]{
  display: none !important;
}

.iu-aiOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9998;
}

.iu-aiPanel{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.iu-aiModal{
  width: min(560px, calc(100vw - 36px));
  max-height: min(80vh, calc(100vh - 36px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0,0,0,.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.iu-aiPanelHeader{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.iu-aiClose{
  border: 0;
  background: transparent;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
}

.iu-aiClose:hover{
  opacity: 1;
}

.iu-aiPanelBody{
  padding: 8px;
  overflow: auto;
}

.iu-aiItem{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
}

.iu-aiItem:hover{
  background: rgba(0,0,0,.04);
}

.iu-aiItem strong{
  font-size: 14px;
}

.iu-aiItem p{
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(0,0,0,.65);
}

.iu-aiItem a{
  flex: 0 0 auto;
  align-self: center;
  font-size: 12px;
  font-weight: 600;
  color: #1f3a5f;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(31,58,95,.08);
}

.iu-aiItem a:hover{
  background: rgba(31,58,95,.14);
}

/* Filter chips - řádek štítků nad feedem */
.iu-filterChips{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 14px 0;
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.iu-filterChips::-webkit-scrollbar{ display:none; }

.iu-chip{
  flex: 0 0 auto;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fff;
  color: rgba(0,0,0,.78);
  font-size: 13px;
  line-height: 32px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.iu-chip:hover{
  border-color: rgba(0,0,0,.25);
}

.iu-chip.is-active{
  background: rgba(0,0,0,.92);
  border-color: rgba(0,0,0,.92);
  color: #fff;
}

/* Feed – default 1 sloupec (pro čitelnost) */
#feed{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 18px;
  margin: 0;
  padding-right: 8px;
}

/* ==============================
   FEED VISIBILITY — only in Media
   (UI-only; uses routing hook data-section on body/html)
   ============================== */
html[data-section]:not([data-section="media"]) #feed,
body[data-section]:not([data-section="media"]) #feed{
  display: none !important;
}
html[data-section="media"] #feed,
body[data-section="media"] #feed{
  display: grid !important; /* match #feed default display */
}

/* Radio view – matches feed look & feel (middle column only) */
.iuRadioView[hidden]{
  display: none !important;
}
/* Exclusive view safety: if feed is hidden, remove from layout */
#feed[hidden]{
  display: none !important;
}
.iuRadioView{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  /* wrapper only; inner .iuRadioGrid owns the grid */
  margin: 0;
  padding-right: 8px;
}

/* TV online view – reuse Radio tile system (2 cols + same hover), hide feed only here */
#iuTvOnlineView{
  display: none;
  /* make radio tiles use TV online accent (red) inside this view only */
  --iu-accent-radio: var(--iu-accent-tvonline, var(--iuNavAccent-tvonline, #DC2626));
}
body[data-section="tvonline"] #iuTvOnlineView,
html[data-section="tvonline"] #iuTvOnlineView{
  display: block !important;
}

/* TV online view: section heads span both columns */
.iuTvOnlineGrid .iuRadioHead{
  grid-column: 1 / -1;
  margin-top: 8px;
}
.iuTvOnlineGrid .iuRadioHead:first-child{
  margin-top: 0;
}

/* TV ONLINE GRID = 2 sloupce (stejný princip jako rádia) */
.iuTvOnlineGrid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
.iuTvOnlineGroup{
  margin: 0 0 18px 0;
}
.iuTvOnlineGroup:last-child{
  margin-bottom: 0;
}

/* TV online — grouped tile (CLS-safe) */
.iu-tvTileGroup{
  height:160px;
  padding:12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border-radius:12px;
  border:1px solid rgba(11,27,43,0.08);
  box-sizing:border-box;
  background: var(--iu-accent-tvonline, var(--iuNavAccent-tvonline, #DC2626));
}
.iu-tvGroupTitle{
  font-weight:600;
  margin-bottom:6px;
  color:#fff;
  text-align:center;
}
.iu-tvGroupList{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:6px;
}
.iu-tvGroupList a{
  display:flex;
  justify-content:space-between;
  padding:6px 8px;
  border-radius:8px;
  background:#1b2430;
  color:#fff;
  font-size:14px;
  text-decoration:none;
}
.iu-tvGroupList a:hover{
  background: var(--iuNavAccent-tv, var(--iuNavAccent-tvonline, #DC2626));
}

/* === TV ONLINE: Česká televize tile (4+3 layout) === */
.iuTvOnlineGrid .iuRadioChip{
  /* Ensure CT tile can be exactly same height as other TV tiles (CLS=0) */
  box-sizing: border-box;
  height:110px;
  overflow:hidden;
}

/* TV online title typography = Media title */
body[data-section="tvonline"] .iuTvOnlineGrid .iuRadioChipTitle,
html[data-section="tvonline"] .iuTvOnlineGrid .iuRadioChipTitle{
  font-size: var(--iuMediaTitleFontSize);
}
.iuRadioGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* Radio section: match TV online chip grid (2 cols + gap 12) and fixed height (CLS=0) */
body[data-section="radio"] #iuRadioView .iuRadioGrid,
html[data-section="radio"] #iuRadioView .iuRadioGrid{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
body[data-section="radio"] #iuRadioView .iuRadioChip,
html[data-section="radio"] #iuRadioView .iuRadioChip{
  box-sizing:border-box;
  height:110px;
  overflow:hidden;
}

/* Radio title typography = Media title */
body[data-section="radio"] #iuRadioView .iuRadioChipTitle,
html[data-section="radio"] #iuRadioView .iuRadioChipTitle{
  font-size: var(--iuMediaTitleFontSize);
}
.iuRadioHead{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: auto;
}
.iuRadioTitle{
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--iu-accent-radio);
  opacity: 0.92;
}
.iuRadioLine{
  height: 2px;
  flex: 1 1 auto;
  background: linear-gradient(to right, var(--iu-accent-radio), rgba(0,0,0,0));
  opacity: 0.35;
  border-radius: 999px;
}

/* ==============================
   RADIO — "Přání do rádia" (MVP, whitelist-only)
   ============================== */
.iuRadioWish{
  margin: 14px 0 18px 0;
  padding: 16px 16px;
  border-radius: 14px;
  background-color: rgba(255,255,255,0.94);
  border: 1px solid rgba(11,27,43,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
}
.iuWishAccSummary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 150ms ease, color 150ms ease;
  /* Default surface (no purple fill); purple only on hover/focus */
  padding: 16px 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,27,43,0.08);
  background-color: var(--iu-surface, #fff);
  color: rgba(11,27,43,0.92);
}
.iuWishAccSummary::marker{ content: ""; }

/* Ensure summary hit-area covers full card width (no dead zone in padding/border) */
#iuRadioWish > summary.iuWishAccSummary{
  width: calc(100% + 42px);
  margin-left: -21px;
  margin-right: -21px;
  padding-inline-start: 0;
  border-radius: 14px;
}
.iuWishAccSummary::-webkit-details-marker{ display:none; }
.iuWishAccTitle{
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--iu-accent-radio);
  opacity: 1;
  flex: 1 1 auto;
  text-align: center;
}
.iuWishAccCaret{
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 150ms ease;
}
#iuRadioWish[open] .iuWishAccCaret{
  transform: rotate(-135deg);
}
.iuWishAccBody{
  margin-top: 12px;
}

/* Wish accordion header hover/focus — sync with radio chips hover */
#iuRadioWish:not([open]) .iuWishAccSummary:hover{
  background-color: var(--iu-accent-radio);
  color: #fff;
}
#iuRadioWish:not([open]) .iuWishAccSummary:hover .iuWishAccTitle{
  color: inherit;
  opacity: 1;
}
#iuRadioWish:not([open]) .iuWishAccSummary:hover .iuWishAccCaret{
  border-right-color: currentColor;
  border-bottom-color: currentColor;
}
#iuRadioWish .iuWishAccSummary:focus-visible{
  background-color: var(--iu-accent-radio);
  color: #fff;
  outline: 2px solid color-mix(in srgb, var(--iu-accent-radio) 70%, white);
  outline-offset: 2px;
}
#iuRadioWish .iuWishAccSummary:focus-visible .iuWishAccTitle{
  color: inherit;
  opacity: 1;
}
#iuRadioWish .iuWishAccSummary:focus-visible .iuWishAccCaret{
  border-right-color: currentColor;
  border-bottom-color: currentColor;
}

/* Open state: no full purple fill; allow subtle active hint on summary only */
#iuRadioWish[open]{
  background-color: rgba(255,255,255,0.94);
  border-color: rgba(11,27,43,0.08);
}
#iuRadioWish[open] .iuWishAccSummary{
  border-color: color-mix(in srgb, var(--iu-accent-radio) 28%, rgba(11,27,43,0.18));
}

/* Open state: keep form on standard surface with dark labels */
#iuRadioWish[open] .iuWishCard{
  background: transparent;
  border-color: rgba(0,0,0,0.08);
}
#iuRadioWish[open] .iuLabel{
  color: rgba(11,27,43,0.78);
}
#iuRadioWish[open] .iuHint{
  color: rgba(11,27,43,0.72);
}
#iuRadioWish[open] .iuErr{
  color: rgba(185, 28, 28, 0.92);
}
#iuRadioWish[open] .iuCtrl{
  background: #fff;
  color: #111;
  border-color: rgba(0,0,0,0.18);
}
#iuRadioWish[open] .iuCtrl:focus-visible{
  outline: 2px solid rgba(11,58,102,0.35);
  outline-offset: 2px;
}
#iuRadioWish[open] .iuErrBlock{
  background: rgba(185, 28, 28, 0.08);
  border-color: rgba(185, 28, 28, 0.18);
  color: inherit;
}
/* Layout V2 uses .iuWishRows/.iuWishRow; keep legacy grid visible if ever used */
.iuWishGrid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.iuField{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.iuLabel{
  font-size: 12px;
  font-weight: 700;
  color: rgba(11,27,43,0.78);
}
.iuCtrl{
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,27,43,0.12);
  background: #fff;
  color: rgba(11,27,43,0.92);
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  box-sizing: border-box;
}
.iuCtrl:focus-visible{
  outline: 2px solid rgba(11,58,102,0.35);
  outline-offset: 2px;
}
select.iuCtrl{
  appearance: auto;
}
.iuHint{
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.25;
  color: rgba(11,27,43,0.72);
}
.iuErr{
  font-size: 12px;
  color: rgba(185, 28, 28, 0.92);
}
.iuErrBlock{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.18);
}
.iuSpan2{
  grid-column: span 2;
}
.iuWishRows{
  display: grid;
  gap: 16px;
  width: 100%;
}
.iuWishRow{
  gap: 16px;
  width: 100%;
}
.iuWishRow--3{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.iuWishRow--2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.iuWishCard{
  display: block;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,27,43,0.10);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
  min-height: 92px;
  box-sizing: border-box;
}
.iuWishCardBody{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.iuWishStatus{
  font-size: 12px;
  color: rgba(11,27,43,0.70);
}
.iuWishActions{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.iuBtn{
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11,27,43,0.14);
  background: #2b3138;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.iuBtn:hover{
  filter: none;
}
.iuBtnGhost{
  background: transparent;
  color: rgba(11,27,43,0.92);
}
.iuTA{
  min-height: 150px;
  resize: vertical;
}
/* Removed in Wish Layout V2: previews + copy rows */

/* Autocomplete panel */
.iuAc{
  position: relative;
  min-width: 0;
}
.iuAcPanel{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(11,27,43,0.14);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.12);
  padding: 6px;
  z-index: 20;
}
.iuAcItem{
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  color: rgba(11,27,43,0.92);
}
.iuAcItem:hover,
.iuAcItem.is-active{
  background: rgba(11,27,43,0.06);
}

/* ==============================
   RADIO — "Přání do rádia" (layout v2) — compact UI
   ============================== */
#iuRadioWish .iuLabel{
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
#iuRadioWish .iuCtrl{
  font-size: 14px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 8px;
}
#iuRadioWish .iuAcItem{
  font-size: 14px;
  padding: 6px 10px;
}
#iuRadioWish .iuWishCard{
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.08);
  min-height: auto;
  box-shadow: none;
}
#iuRadioWish .iuWishCardBody{
  gap: 4px;
}
.iuRadioWish#iuRadioWish{
  padding: 18px 20px;
}
.iuWishRow--3,
.iuWishRow--2{
  gap: 12px;
}
#iuRadioWish .iuWishRow{
  margin-bottom: 14px;
}
#iuRadioWish .iuWishRow:last-child{
  margin-bottom: 0;
}
#iuRadioWish #iuWishSendRadio{
  min-height: 40px;
  font-size: 14px;
  padding: 0 18px;
  border-radius: 8px;
}

@media (max-width: 520px){
  .iuWishRow--3,
  .iuWishRow--2{
    grid-template-columns: 1fr;
  }
}
.iuRadioChip{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 16px 12px;
  border-radius: 12px;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(11,27,43,0.08);
  color: rgba(11,27,43,0.92);
  transition: background-color 150ms ease, color 150ms ease;
}
.iuRadioChip:hover{
  background-color: var(--iu-accent-radio);
  color: #fff;
}
.iuRadioChip:hover .iuRadioChipTitle,
.iuRadioChip:hover .iuRadioChipDesc{
  color: #fff;
}
.iuRadioChip:focus-visible{
  background-color: var(--iu-accent-radio);
  color: #fff;
  outline: 2px solid color-mix(in srgb, var(--iu-accent-radio) 70%, white);
  outline-offset: 2px;
}
.iuRadioChip:focus-visible .iuRadioChipTitle,
.iuRadioChip:focus-visible .iuRadioChipDesc{
  color: #fff;
}
.iuRadioChipTitle{
  /* Match .news-title typographic system exactly */
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: 0;
  min-width: 0;
}
.iuRadioChipDesc{
  font-size: 12px;
  opacity: .8;
  line-height: 1.2;
}
@media (prefers-reduced-motion: reduce){
  .iuRadioChip{ transition: none; }
}
@media (max-width:520px){
  .iuRadioGrid{
    grid-template-columns: 1fr;
  }
}

/* UI: feed má být vždy 1 sloupec (žádné 2 vedle sebe na desktopu) */

#feed > *{
  background-color: rgba(255,255,255,0.94);
  border: 1px solid rgba(11,27,43,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 10px 0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.05);
  display:block;
  opacity:1;
  visibility:visible;
  min-height: 60px;
}

/* Karty ve feedu musí být anchor pro absolutní pseudo-element */
#feed > .news-card,
#feed > article{
  position: relative;
  overflow: hidden;
}

/* Obsah karty nad pozadím */
#feed > .news-card > *,
#feed > article > *{
  position: relative;
  z-index: 1;
}

/* REMOVED: FEED grafika přes ::after - now using background-image directly on cards */

/* Meta řádek - pill styling pouze pro TOP kartu */
#feed > .news-card:first-child .iu-meta-line,
#feed > article:first-child .iu-meta-line{
  width: fit-content;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.70);
}

/* Meta řádek - běžné karty bez pill */
#feed > .news-card:not(:first-child) .iu-meta-line,
#feed > article:not(:first-child) .iu-meta-line{
  padding: 0;
  border-radius: 0;
  background: transparent;
  width: auto;
}

/* FEED titulky – bez zkracování + bez hnusného dělení slov */
#feed .news-title,
#feed .news-titleLink{
  -webkit-line-clamp: unset !important;
  max-height: none !important;
  overflow: visible !important;
  display: inline !important;

  hyphens: none;
  -webkit-hyphens: none;

  word-break: normal;
  overflow-wrap: normal;

  text-shadow: 0 1px 0 rgba(255,255,255,0.85);
}

/* TOP článek - první položka v feedu */
#feed > .news-card:first-child,
#feed > article:first-child{
  background-color: #ffffff;
  border-left: 3px solid var(--iu-accent);
  border-radius: 14px;
  padding: 34px 16px 16px 16px;  /* navýšen padding-top pro štítek, padding-left vrácen na původní */
  margin-bottom: 0;
  width: 100%;
  display: block;
  position: relative;
  grid-column: 1 / -1;
}

/* Štítek "Zpráva dne" přes ::after (NOVĚ, bez kolize s akcentem) */
#feed > .news-card:first-child::after,
#feed > article:first-child::after{
  content: "Zpráva dne";
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--iu-accent);
  background: #fff;
  border: 1px solid rgba(17,17,17,0.10);
  border-radius: 999px;
  padding: 4px 10px;
  position: absolute;
  left: 14px;
  top: 12px;
  pointer-events: none;
  z-index: 3;
}

/* Meta řádek v TOP položce - spacing už řeší margin-top z #feed .iu-meta-line */

/* Titulek v TOP položce */
#feed > .news-card:first-child .news-title,
#feed > article:first-child .news-title{
  font-size: 22px;
  line-height: 1.3;
  margin-top: 0;
}

/* Media section: first article title uses Media accent (CSS-only) */
body[data-section="media"] #feed > .news-card:first-child .news-title,
body[data-section="media"] #feed > article:first-child .news-title{
  color: var(--iu-accent-media);
}

/* MEDIA – sjednocení všech běžných titulků podle "Zpráva dne" (natvrdo, bez var/inherit) */
body[data-section="media"] #feed > .news-card:not(:first-child) .news-title,
body[data-section="media"] #feed > article:not(:first-child) .news-title{
  color: #0B2A4A;   /* = --iuNavAccent-media */
  font-size: 22px; /* = "Zpráva dne" title */
  line-height: 1.3;
}

#feed > .news-card:first-child .news-titleLink,
#feed > article:first-child .news-titleLink{
  font-size: 22px;
  line-height: 1.3;
  display: block;
  -webkit-line-clamp: unset;
  max-height: none;
  letter-spacing: normal;
}

body[data-section="media"] #feed > .news-card:first-child .news-titleLink,
body[data-section="media"] #feed > article:first-child .news-titleLink,
body[data-section="media"] #feed > .news-card:first-child .news-titleLink:visited,
body[data-section="media"] #feed > article:first-child .news-titleLink:visited{
  color: var(--iu-accent-media);
}

body[data-section="media"] #feed > .news-card:not(:first-child) .news-titleLink,
body[data-section="media"] #feed > article:not(:first-child) .news-titleLink,
body[data-section="media"] #feed > .news-card:not(:first-child) .news-titleLink:visited,
body[data-section="media"] #feed > article:not(:first-child) .news-titleLink:visited{
  color: #0B2A4A;   /* = --iuNavAccent-media */
  font-size: 22px; /* = "Zpráva dne" title */
  line-height: 1.3;
}

/* Skrýt pouze velké thumbnaily v TOP položce (pokud by existovaly) */
/* Poznámka: V aktuální HTML struktuře nejsou žádné obrázky/thumbnaily v článcích,
   takže tento selektor je preventivní. Pokud by se přidaly thumbnaily s třídou
   .thumb, .thumbnail, .news-thumb, .article-image apod., použijeme tyto selektory. */
#feed > .news-card:first-child .thumb img,
#feed > .news-card:first-child .thumbnail img,
#feed > .news-card:first-child .news-thumb img,
#feed > .news-card:first-child .article-image img,
#feed > article:first-child .thumb img,
#feed > article:first-child .thumbnail img,
#feed > article:first-child .news-thumb img,
#feed > article:first-child .article-image img{
  display: none;
}

/* Feed thumbnails – rezervace místa ještě před načtením obrázku (pokud se přidají) */
#feed .iu-article-thumb,
#feed .iu-card-thumb,
#feed .article-thumb,
#feed .thumb,
#feed .thumbnail,
#feed .news-thumb,
#feed .article-image{
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(0,0,0,0.06);
}

#feed .iu-article-thumb img,
#feed .iu-card-thumb img,
#feed .article-thumb img,
#feed .thumb img,
#feed .thumbnail img,
#feed .news-thumb img,
#feed .article-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ostatní položky - jemná oddělovací linka */
#feed > .news-card:not(:first-child),
#feed > article:not(:first-child){
  padding: 16px 14px;
  margin: 0;
  border: none;
  border-top: 1px solid var(--iu-accent); /* Modrá akcentní linka na horní hraně - subtilní varianta */
  border-radius: 14px; /* Stejné zakulacení jako "Zpráva dne" */
  box-shadow: none;
}

/* MEDIA: soften horizontal dividers between articles (do not change radius/layout) */
body[data-section="media"] #feed > .news-card:not(:first-child),
body[data-section="media"] #feed > article:not(:first-child){
  border-top-color: rgba(11, 42, 74, 0.14); /* lighter / less distracting than full accent */
}

/* FEED: Load more paging button (UI-only) */
.iuLoadMoreWrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 0 10px;
}
.iuLoadMoreBtn{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(11,27,43,0.18);
  background: rgba(255,255,255,0.85);
  color: rgba(11,27,43,0.88);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
}
.iuLoadMoreBtn:hover{
  background: rgba(255,255,255,0.95);
}
.iuLoadMoreBtn:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
}
.iuLoadMoreMeta{
  font-size: 12px;
  color: rgba(11,27,43,0.55);
}

/* MEDIA: center "Load more" within the middle feed column (UI-only) */
body[data-section="media"] #feed .iuLoadMoreWrap{
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* HOME layout: hide left rail, expand center across left+center */
body.iu-home .iu-leftRail{
  display: none !important;
}

/* HOME canvas + perfect hexagons + weather + text + favorites (UI-only) */
.iuHomeCanvas{
  padding: 16px 14px;
}

/* Ensure Home is a stable vertical stack (no overlaps) */
.iuHomeView .iuHomeCanvas{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* HOME Weather panel — pixel-perfect + no CLS */
.iuHomeWeather{
  height: 160px;
  width: 100%;
  flex: 0 0 160px;
}
@media (max-width: 640px){
  .iuHomeWeather{
    height: 140px;
    flex: 0 0 140px;
  }
}
.iuHomeWeatherShell{
  height: 100%;
  width: 100%;
  position: relative;
  border-radius: 14px;
  background: var(--iu-side-bg-main, #243B55);
  border: 1px solid var(--iu-border-soft, rgba(255,255,255,0.18));
  color: #fff;
  overflow: hidden;
  padding: 14px;
  box-sizing: border-box;
}
.iuHomeWeatherSkeleton{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.9);
  background: transparent;
}
.iuHomeWeatherContent{
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto; /* 2 rows (mobile-friendly) */
  gap: 10px;
}
.iuHomeWeatherTopRow{
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 14px;
  row-gap: 8px;
  align-items: start;
}
.iuHomeWeatherMeta{
  min-width: 0;
}
.iuHomeWeatherCity{
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iuHomeWeatherDate{
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iuHomeWeatherDesc{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.84);
  min-height: 18px; /* CLS guard */
}
.iuHomeWeatherNow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.iuHomeWeatherTemp{
  font-size: 38px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.iuHomeWeatherIcon{
  font-size: 30px;
  line-height: 1;
  width: 32px;
  text-align: center;
  flex: 0 0 32px;
}
.iuHomeWeatherForecast{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.iuHomeWxChip{
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 10px;
  text-align: center;
  min-height: 44px; /* CLS guard */
}
.iuHomeWxChipT{
  font-size: 12px;
  color: rgba(255,255,255,0.78);
}
.iuHomeWxChipV{
  font-size: 14px;
  font-weight: 750;
  margin-top: 2px;
  color: rgba(255,255,255,0.94);
}

/* ==============================
   HOME TILES (RECT) — stable grid
   (Replaces old layout experiments)
   ============================== */

.iuHomeHexGrid{
  --iuHomeTileGap: clamp(10px, 1.2vw, 18px);
  --iuHomeTileMaxW: 240px;
  --iuHomeTileColsDesktop: 4;

  display: grid;
  grid-template-columns: repeat(var(--iuHomeTileColsDesktop), minmax(0, var(--iuHomeTileMaxW)));
  gap: var(--iuHomeTileGap);
  justify-content: center;
  align-content: start;
  padding: 12px 0 18px;
}
@media (max-width: 1100px){
  .iuHomeHexGrid{
    grid-template-columns: repeat(2, minmax(0, var(--iuHomeTileMaxW)));
  }
}
@media (max-width: 640px){
  .iuHomeHexGrid{
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .iuHomeHex{
    max-width: none;
  }
}

.iuHomeHex{
  width: 100%;
  max-width: var(--iuHomeTileMaxW);

  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: var(--iuHexBg, #3B82F6);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  padding: 16px 14px;

  clip-path: none !important;
  -webkit-clip-path: none !important;
  border-radius: 14px;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.14);
  filter: none;
  transform: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.iuHomeHex:hover{
  transform: translateY(-3px);
  filter: none;
  box-shadow: 0 18px 38px rgba(0,0,0,0.18);
}
.iuHomeHex:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
}
.iuHomeHexIcon{
  line-height: 0;
  color: #fff;
}
.iuHomeHex svg{
  width: 48px;
  height: 48px;
  display: block;
  color: currentColor;
  flex-shrink: 0;
}
.iuHomeHexLabel{
  line-height: 1.15;
  max-width: 170px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

/* ==============================
   HOME TILES (RECT) — stable grid
   (Replaces old layout experiments)
   ============================== */

.iuHomeHex434{ /* ponecháme název kvůli existujícímu HTML, ale chování je RECT grid */
  width: min(100%, 1100px);
  margin: 18px auto 0;
  padding: 0 14px;

  --iuHomeTileGap: clamp(10px, 1.2vw, 18px);
  --iuHomeTileMaxW: 240px; /* jen max šířka dlaždice */
  --iuHomeTileColsDesktop: 4;

  display: grid;
  grid-template-columns: repeat(var(--iuHomeTileColsDesktop), minmax(0, var(--iuHomeTileMaxW)));
  gap: var(--iuHomeTileGap);
  justify-content: center;
  align-content: start;

  position: relative;
  z-index: 2; /* home tiles above modules */
}

@media (max-width: 1100px){
  .iuHomeHex434{
    grid-template-columns: repeat(2, minmax(0, var(--iuHomeTileMaxW)));
  }
}

@media (max-width: 640px){
  .iuHomeHex434{
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

.iuHomeModules{
  width: min(100%, 1100px);
  padding: 0 14px 24px;
  position: relative;
  z-index: 1; /* modules under hex grid */
}
body[data-section="home"] .iuHomeModules{
  display: flex;
  flex-direction: column;
}
body[data-section="home"] .iuHomeCanvas{
  display: flex;
  flex-direction: column;
}
.iuHomeModules *{
  max-width: 100%;
}

.iuHomeHex434 .iuHexRow{
  display: contents; /* keep HTML rows but flatten for grid layout */
}

.iuHomeHex434 .iuHex{
  width: 100%;
  max-width: var(--iuHomeTileMaxW);
  position: relative; /* safety for inner elements */
  overflow: hidden;   /* safety: nothing can overflow the tile */

  clip-path: none !important;
  -webkit-clip-path: none !important;
  border-radius: 14px;

  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;

  text-decoration: none;
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.iuHomeHex434 .iuHex:hover{
  transform: translateY(-3px);
  filter: none;
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.iuHomeHex434 .iuHex:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
}

.iuHomeHex434 .iuHexBadge{
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  color: #000;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.iuHomeHex434 .iuHex__icon{
  width: 34px;
  height: 34px;
  display: block;
  opacity: .95;
}
.iuHomeHex434 .iuHex__icon svg{
  width: 100%;
  height: 100%;
  display: block;
  color: currentColor;
  flex-shrink: 0;
}

.iuHomeHex434 .iuHex__label{
  display: block;
  font-size: 16px;
  line-height: 1.15;
  padding: 0 10px;
  color: #fff;
}

@media (max-width: 640px){
  .iuHomeHex434 .iuHex{
    max-width: none; /* allow full-width tiles on mobile */
  }
  .iuHomeHex434 .iuHex__label{
    font-size: 14px;
  }
  .iuHomeHex434 .iuHex__icon svg{
    width: 28px;
    height: 28px;
  }
}

/* ==============================
   HOME TILE ORDER = LEFT RAIL ORDER
   ============================== */

.iuHomeHex434 .iuHex{ order: 999; }

/* SECTION COLORS (use existing IU tokens if present) */
.iuHomeHex434 .iuHex--pocasi{    background: var(--iuNavAccent-pocasi, #2563EB); }
.iuHomeHex434 .iuHex--namedays{  background: var(--iuNavAccent-namedays, #7C3AED); }
.iuHomeHex434 .iuHex--tvonline{  background: var(--iuNavAccent-tvonline, #DC2626); }
.iuHomeHex434 .iuHex--mapy{      background: var(--iuNavAccent-mapy, #16A34A); }
.iuHomeHex434 .iuHex--culture{   background: var(--iuNavAccent-culture, #EA580C); }
.iuHomeHex434 .iuHex--radio{     background: var(--iuNavAccent-radio, #6D28D9); }
.iuHomeHex434 .iuHex--ads{       background: var(--iuNavAccent-ads, #0EA5A4); }
.iuHomeHex434 .iuHex--media{     background: var(--iuNavAccent-media, #111827); }
.iuHomeHex434 .iuHex--travel{    background: var(--iuNavAccent-travel, #0284C7); }
.iuHomeHex434 .iuHex--jr{        background: var(--iuNavAccent-jr, #B45309); }
.iuHomeHex434 .iuHex--tvprogram{ background: var(--iuNavAccent-tvprogram, #334155); }

/* TEXT block (no CLS) */
.iuHomeText{
  flex: 0 0 auto;
}
.iuHomeTextInner{
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 4px 6px;
  line-height: 1.6;
}
.iuHomeTextTitle{
  font-size: 18px;
  margin: 0 0 8px 0;
  color: rgba(11,27,43,0.92);
}
.iuHomeTextBody{
  margin: 0;
  color: rgba(11,27,43,0.74);
}

/* FAVORITES (UI-only placeholder, stable) */
.iuHomeFav{
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 10px 4px 18px;
}
.iuHomeFavHead{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.iuHomeFavTitle{
  font-size: 18px;
  margin: 0;
  color: rgba(11,27,43,0.92);
}
.iuHomeFavAdd{
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(11,27,43,0.18);
  background: #fff;
  border-radius: 12px;
  height: 34px;
  padding: 0 12px;
  font-weight: 650;
  color: rgba(11,27,43,0.82);
  cursor: pointer;
}
.iuHomeFavAdd:hover{
  background: rgba(255,255,255,0.9);
}
.iuHomeFavGrid{
  min-height: 72px; /* stable placeholder */
  border-radius: 14px;
  background: rgba(255,255,255,0.75);
  border: 1px dashed rgba(11,27,43,0.18);
}

#feed a{
  color: rgba(11,27,43,0.92);
}

#feed a:hover{
  text-decoration: underline;
}

@media (max-width: 680px){
  .news-title{
    font-size: 16px;
    line-height: 1.3;
  }
  .news-titleLink{
    -webkit-line-clamp: var(--titleLinesMobile);
    min-height: calc(var(--titleLineHeight) * var(--titleLinesMobile) * 1em);
    max-height: calc(var(--titleLineHeight) * var(--titleLinesMobile) * 1em);
  }
  /* TOP položka na mobilu */
  #feed > .news-card:first-child,
  #feed > article:first-child{
    padding: 14px 14px;
  }
  #feed > .news-card:first-child .news-title,
  #feed > article:first-child .news-title{
    font-size: 18px;
    line-height: 1.28;
  }
  #feed > .news-card:first-child .news-titleLink,
  #feed > article:first-child .news-titleLink{
    font-size: 18px;
    line-height: 1.28;
  }

  /* MEDIA – běžné titulky na mobilu musí odpovídat "Zpráva dne" */
  body[data-section="media"] #feed > .news-card:not(:first-child) .news-title,
  body[data-section="media"] #feed > article:not(:first-child) .news-title,
  body[data-section="media"] #feed > .news-card:not(:first-child) .news-titleLink,
  body[data-section="media"] #feed > article:not(:first-child) .news-titleLink{
    font-size: 18px;
    line-height: 1.28;
  }
  /* Feed na mobilu - 1 sloupec */
  #feed{
    max-width: 100%;
    padding-right: 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  /* Ostatní položky na mobilu */
  #feed > .news-card:not(:first-child),
  #feed > article:not(:first-child){
    padding: 14px 12px;
  }
  /* Meta řádek v feedu na mobilu - max 2 řádky s line-clamp */
  #feed .iu-meta-line{
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* REMOVED: Fade panel na mobilu - now using background-image directly */
}


.news-titleLink:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
}

.news-row2{
  display:flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  min-width: 0;
}

.meta-time{
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(11,27,43,0.55);
  white-space: nowrap;
  line-height: 1.2;
}

.news-sourceLabel{
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(11,27,43,0.45);
  line-height: 1.2;
  white-space: nowrap;
}

.news-sources{
  display:inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.iuSuspicious{
  display:inline-block;
  margin-left:6px;
  font-size:12px;
  line-height:1;
  opacity:.75;
  vertical-align:middle;
  cursor:help;
  user-select:none;
}
.iuSuspicious:hover{
  opacity:1;
}

.sourceDomain{
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(11,27,43,0.56);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid rgba(11,27,43,0.14);
  padding-bottom: 1px;
  transition: color 140ms ease, border-bottom-color 140ms ease;
}

@media (hover:hover) and (pointer:fine){
  .sourceDomain:hover{
    color: var(--accent);
    border-bottom-color: rgba(31,75,153,0.26);
  }
}

.empty{
  margin-top: 10px;
  background: rgba(255,255,255,0.86);
  border: 1px dashed rgba(20,40,70,0.18);
  border-radius: 14px;
  padding: 18px;
  color: rgba(11,27,43,0.65);
  font-weight: 560;
  text-align:center;
  max-width: var(--readWidth);
  margin-left: auto;
  margin-right: auto;
}

.footer{
  margin-top: 16px;
  text-align:center;
  color: rgba(11,27,43,0.55);
  font-weight: 560;
  font-size: 12px;
  max-width: var(--readWidth);
  margin-left: auto;
  margin-right: auto;
}

.feedPause{
  position: relative;
  padding: 10px 0 6px;
}
.feedPause::before{
  content:"";
  display:block;
  height: 1px;
  background: var(--divider);
  opacity: 0.9;
}

.videoRow{
  background: transparent;
  border: none;
  border-radius: 14px; /* Stejné zakulacení jako "Zpráva dne" */
  box-shadow: none;
  padding: 18px 0;
  margin: 0;
  position: relative;
  overflow-wrap: anywhere;
}
.videoRow::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--divider);
  pointer-events:none;
}

.videoCardInner{
  width: min(50%, 520px);
  max-width: 520px;
  min-width: 0;
  margin-left: 0;
  margin-right: auto;
  padding: 0;
}

.videoTop{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  min-width: 0;
}

.videoTitle{
  font-size: 13px;
  font-weight: 750;
  color: rgba(11,27,43,0.82);
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.videoBadge{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(20,40,70,0.12);
  background: rgba(255,255,255,0.88);
  color: rgba(11,27,43,0.70);
  font-size: 11.6px;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.videoMeta{
  font-size: 11.6px;
  font-weight: 560;
  color: rgba(11,27,43,0.54);
  white-space: nowrap;
  flex: 0 0 auto;
}

.videoTopRight{
  display:flex;
  align-items: baseline;
  gap: 8px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.videoFrame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--videoSoft);
  border: 1px solid rgba(20,40,70,0.10);
}

.videoFrame iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

.videoDesc{
  margin-top: 10px;
  font-size: 12.4px;
  line-height: 1.4;
  color: rgba(11,27,43,0.70);
  font-weight: 560;
}

.videoSource{
  margin-top: 6px;
  font-size: 11.6px;
  line-height: 1.25;
  color: rgba(11,27,43,0.52);
  font-weight: 560;
}

.videoSource a{
  color: rgba(11,27,43,0.62);
  border-bottom: 1px solid rgba(11,27,43,0.14);
  padding-bottom: 1px;
  transition: color 140ms ease, border-bottom-color 140ms ease;
}

@media (hover:hover) and (pointer:fine){
  .videoSource a:hover{
    color: var(--accent);
    border-bottom-color: rgba(31,75,153,0.26);
  }
}

@media (max-width: 680px){
  .videoCardInner{
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

.overlay{
  position: fixed;
  inset: 0;
  z-index: 20000;
  background: rgba(11,27,43,0.30);
  display:none;
  padding: 14px;
}
.overlay:not([hidden]){
  pointer-events: auto;
}
.overlay[hidden]{
  pointer-events: none !important;
  inset: auto !important;
  width: 0 !important;
  height: 0 !important;
}
.overlay.show{ display:block; }

.drawer{
  width: min(420px, 100%);
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(20,40,70,0.14);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  padding: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.drawerTop{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 6px 10px;
}

.drawerTop .t{
  font-weight: 750;
  font-size: 15px;
  color: rgba(11,27,43,0.88);
}

.x{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(20,40,70,0.14);
  background: rgba(255,255,255,0.90);
  cursor:pointer;
  font-weight: 750;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

@media (hover:hover) and (pointer:fine){
  .x:hover{
    border-color: rgba(31,75,153,0.22);
    box-shadow: 0 10px 24px rgba(20,40,70,0.08);
    background: rgba(255,255,255,0.94);
  }
}
.x:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
}

.menuList{
  display:grid;
  gap: 8px;
  padding: 4px;
}
.menuItem{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(20,40,70,0.10);
  background: rgba(255,255,255,0.90);
  font-weight: 700;
  color: rgba(11,27,43,0.86);
  cursor:pointer;
}
.menuItem[aria-pressed="true"]{
  color: var(--accent);
  border-color: var(--accentBorder);
  background: var(--accentSoft);
}

.modal{
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(11,27,43,0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal.show{ display:flex; }

.modalCard{
  width: min(420px, 100%);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(20,40,70,0.14);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
  padding: 14px;
}

.modalTitle{
  font-weight: 750;
  font-size: 14px;
  color: rgba(11,27,43,0.90);
  margin: 2px 4px 12px;
  line-height: 1.25;
}

.modalActions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}

.btn{
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(20,40,70,0.14);
  background: rgba(255,255,255,0.90);
  font-weight: 750;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 140ms ease, border-color 140ms ease, color 140ms ease, background 140ms ease;
}
.btnPrimary{
  border-color: rgba(20,40,70,0.18);
  background: rgba(255,255,255,0.94);
}

@media (hover:hover) and (pointer:fine){
  .btn:hover{
    color: var(--accent);
    border-color: var(--accentBorder);
    box-shadow: 0 12px 28px rgba(20,40,70,0.08);
    background: rgba(255,255,255,0.94);
  }
}

.btn:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
}

@media (max-width: 820px){
  :root{
    --topbarStackH: 148px;
  }
  .topbar{
    display:grid;
    grid-template-columns: 52px 1fr 44px;
    gap: 10px;
    align-items:center;
    padding: 8px 12px;
  }
  .leftPack{ grid-column: 1 / 3; }
  .rightMeta{ display:none; }

  .searchForm{
    grid-column: 1 / 4;
    justify-content: stretch;
  }
  .search{ width: 100%; }

  .searchBtn{
    width: 44px;
    padding: 0;
    display:grid;
    place-items:center;
  }
  .searchBtn::before{
    content: "⌕";
    font-size: 16px;
    color: rgba(11,27,43,0.72);
  }
  .searchBtn{ font-size: 0; }
}

@media (max-width: 780px){
  .news-title{ font-size: 18px; }
  .container{ padding-left: 12px; padding-right: 12px; }
  .videoTitle{ font-size: 12.8px; }
  .videoDesc{ font-size: 12.2px; }
  .videoBadge{ font-size: 11.4px; padding: 6px 9px; }
}

@media (max-width: 420px){
  .brand .name{ font-size: 18px; }
  .news-row2{ gap: 9px; }
}

.timerWrap{
  display:grid;
  gap: 10px;
}
.timerRowTop{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.timerTitleMini{
  font-size: 13.5px;
  font-weight: 800;
  color: rgba(11,27,43,0.86);
  line-height: 1.1;
}
.timerStatus{
  font-size: 12.2px;
  font-weight: 750;
  color: rgba(11,27,43,0.60);
  line-height: 1.1;
  white-space: nowrap;
}
.timerStatus.isWarn{ color: rgba(184, 94, 0, 0.92); }
.timerStatus.isEnd{ color: rgba(164, 34, 34, 0.92); }
.timerStatus.isOver{ color: rgba(31,75,153,0.92); }

.timerBig{
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.0;
  color: rgba(11,27,43,0.92);
  text-align: left;
}

.timerMetaGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tCard{
  border: 1px solid rgba(20,40,70,0.10);
  background: rgba(255,255,255,0.92);
  border-radius: 14px;
  padding: 10px 10px;
}
.tLab{
  font-size: 11.6px;
  color: rgba(11,27,43,0.55);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 4px;
}
.tVal{
  font-size: 14.6px;
  color: rgba(11,27,43,0.86);
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timerControls{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}
.tBtn{
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(20,40,70,0.14);
  background: rgba(255,255,255,0.92);
  font-weight: 850;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 140ms ease, border-color 140ms ease, color 140ms ease, background 140ms ease;
  color: rgba(11,27,43,0.86);
}
@media (hover:hover) and (pointer:fine){
  .tBtn:hover{
    color: var(--accent);
    border-color: var(--accentBorder);
    box-shadow: 0 12px 28px rgba(20,40,70,0.08);
    background: rgba(255,255,255,0.96);
  }
}
.tBtn:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
}
.tBtn.isPrimary{
  border-color: rgba(31,75,153,0.20);
  background: rgba(255,255,255,0.96);
}

.timerSetRow{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.timerSetRow label{
  font-size: 12.2px;
  font-weight: 750;
  color: rgba(11,27,43,0.70);
}
.timerTime{
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(20,40,70,0.12);
  background: rgba(255,255,255,0.92);
  padding: 0 10px;
  font-weight: 800;
  color: rgba(11,27,43,0.86);
  outline: none;
  box-shadow: 0 4px 14px rgba(20,40,70,0.04);
}
.timerTime:focus{
  border-color: rgba(31,75,153,0.26);
  box-shadow: 0 10px 24px rgba(20,40,70,0.08);
  background: rgba(255,255,255,0.96);
}

.timerHint{
  font-size: 10.8px;
  color: rgba(11,27,43,0.46);
  font-weight: 600;
  line-height: 1.3;
}

.pollWrap{
  display:grid;
  gap: 10px;
}
.pollTopRow{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}
.pollClose{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(20,40,70,0.12);
  background: rgba(255,255,255,0.92);
  cursor: pointer;
  font-weight: 900;
  color: rgba(11,27,43,0.70);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}
@media (hover:hover) and (pointer:fine){
  .pollClose:hover{
    color: var(--accent);
    border-color: var(--accentBorder);
    box-shadow: 0 12px 28px rgba(20,40,70,0.08);
    background: rgba(255,255,255,0.96);
  }
}
.pollClose:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
}

.pollQ{
  font-size: 13.2px;
  line-height: 1.35;
  color: rgba(11,27,43,0.82);
  font-weight: 650;
}

.pollBtns{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pollBtn{
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(20,40,70,0.12);
  background: rgba(255,255,255,0.92);
  font-weight: 800;
  cursor:pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 140ms ease, box-shadow 140ms ease, color 140ms ease, background 140ms ease;
  color: rgba(11,27,43,0.82);
}
@media (hover:hover) and (pointer:fine){
  .pollBtn:hover{
    color: var(--accent);
    border-color: var(--accentBorder);
    box-shadow: 0 12px 28px rgba(20,40,70,0.07);
    background: rgba(255,255,255,0.96);
  }
}
.pollBtn:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
}
.pollResult{
  display:grid;
  gap: 8px;
}
.pollRow{
  display:grid;
  gap: 6px;
}
.pollRowTop{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.2px;
  color: rgba(11,27,43,0.72);
  font-weight: 650;
}

.pollBar{
  height: 10px;
  border-radius: 999px;
  background: rgba(20,40,70,0.06);
  border: 1px solid rgba(20,40,70,0.10);
  overflow: hidden;
}
.pollBar > i{
  display:block;
  height: 100%;
  width: 0%;
  background: rgba(31,75,153,0.28);
}
.pollNote{
  font-size: 10.8px;
  line-height: 1.25;
  color: rgba(11,27,43,0.48);
  font-weight: 560;
}

.timerToolsWrap{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.sideToolsV{
  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2px;
}

.toolBtn{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(20,40,70,0.12);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 6px 18px rgba(20,40,70,0.05);
  cursor: pointer;
  display:grid;
  place-items:center;
  font-size: 16px;
  color: rgba(11,27,43,0.78);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}
@media (hover:hover) and (pointer:fine){
  .toolBtn:hover{
    color: var(--accent);
    border-color: var(--accentBorder);
    box-shadow: 0 12px 28px rgba(20,40,70,0.08);
    background: rgba(255,255,255,0.96);
  }
}
.toolBtn.isActive{
  color: var(--accent);
  border-color: var(--accentBorder);
  background: var(--accentSoft);
  box-shadow: 0 12px 28px rgba(20,40,70,0.08);
}
.toolBtn:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
}

.toolPanel{
  background: var(--cardBg);
  border: 1px solid rgba(20,40,70,0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  padding: 14px 14px 12px;
  overflow: hidden;
  transform-origin: top;
  transition: transform 140ms ease, opacity 140ms ease;
  opacity: 1;
  transform: translateY(0);
  position: relative;
  margin-top: 14px;
}
.toolPanel::before{
  content:"";
  position:absolute; left:0; right:0; top:0;
  height: var(--frameBarH);
  background: var(--frameBarColor);
  pointer-events:none;
}
.toolPanel{
  padding-top: calc(14px + var(--frameBarH));
}
.toolPanel[hidden]{
  display:block;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  margin: 0;
}
.toolPanelInner{
  display:grid;
  gap: 10px;
}
.toolPane{
  display:none;
}
.toolPane.isOpen{
  display:block;
}
.toolPaneHead{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.toolPaneTitle{
  font-size: 14.5px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.15;
}
.toolPaneClose{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(20,40,70,0.12);
  background: rgba(255,255,255,0.92);
  cursor: pointer;
  font-weight: 850;
  color: rgba(11,27,43,0.70);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease;
}
@media (hover:hover) and (pointer:fine){
  .toolPaneClose:hover{
    color: var(--accent);
    border-color: var(--accentBorder);
    box-shadow: 0 12px 28px rgba(20,40,70,0.08);
    background: rgba(255,255,255,0.96);
  }
}
.toolPaneClose:focus-visible{
  outline: 2px solid rgba(31,75,153,0.22);
  outline-offset: 3px;
}

.todayText{
  font-size: 13px;
  color: rgba(11,27,43,0.72);
  line-height: 1.45;
  font-weight: 560;
}
.todayText b{
  color: rgba(11,27,43,0.84);
  font-weight: 800;
}

.debug{
  margin-top: 20px;
  border: 1px solid rgba(20,40,70,0.15);
  border-radius: var(--radius);
  background: var(--cardBg);
  overflow: hidden;
  display: none;
}
.debugHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  background: rgba(0,0,0,0.03);
  border-bottom:1px solid rgba(20,40,70,0.10);
  color: var(--muted);
  font-size:12px;
}
.debug pre{
  margin:0;
  padding:12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;
  font-size:12px;
  line-height:1.35;
  max-height:360px;
  overflow:auto;
  background:#fbfbfb;
}

/* FINAL LAYOUT */
.layout{
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
  width: 100%;
  justify-content: start;
}

/* layout anchors - feed left, MindMenu right */
.layout > .mainCol{
  grid-column: 1;
  min-width: 0;
}

.layout > aside.accordionCol{
  grid-column: 2;
  width: 360px;
  min-width: 360px;
  max-width: 360px;
  justify-self: stretch;
  overflow: visible;
  box-sizing: border-box;
  background: #f5f5f5;
  color: var(--text);
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-top: 0;
  align-self: start;
}

/* Desktop: mobilní kopii schovat */
.iu-mobileStack{
  display: none;
}
@media (max-width: 768px){
  .layout{
    grid-template-columns: 1fr;
    gap: 20px;
    display: flex;
    flex-direction: column;
  }
  /* Mobil: používáme stack v mainCol */
  .iu-mobileStack{
    display: block;
  }
  /* Mobil: původní pravý sloupec schovat (aby nebyl duplicitně) */
  aside.accordionCol{
    display: none;
  }
  /* A – hlavní lišta */
  .topbar-links{
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .topbar-links a{
    white-space: nowrap;
  }
  
  /* B – rychlé odkazy (mobilní kopie) */
  .iu-mobileQuickLinks .iu-mmQuickGrid{
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    gap: 14px; /* zvětšeno z 10px kvůli scale(1.2) */
    white-space: nowrap;
  }
  .iu-mobileQuickLinks .iu-mmQuickGrid > *{
    flex: 0 0 auto;
  }
  
  /* B – Rychlé odkazy (mobil): zvětšení ikon + popisků o ~20 % */
  .iu-mobileQuickLinks .iu-mmQuickItem{
    transform: scale(1.2);
    transform-origin: center;
  }
  
  /* mírně větší popisek */
  .iu-mobileQuickLinks .iu-mmQuickItem span{
    font-size: 1.1em;
  }
  
  /* C – moje schránky (mobilní kopie): VERTIKÁLNĚ, bez scrollu */
  .iu-mobileMail .iu-actionsCol{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 8px 12px;

    overflow: visible;
    white-space: normal;
  }

  /* tlačítka jako seznam pod sebou */
  .iu-mobileMail .iu-actionBtn{
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;

    margin: 0; /* necháme řídit gapem */
  }

  /* text uvnitř tlačítka – klidně bez zalamování, ale není potřeba scroll */
  .iu-mobileMail .iu-actionText{
    white-space: nowrap;
  }
  
  /* D – lišta sekcí (Vše/Zprávy/…) */
  .iu-filterChips{
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  .iu-filterChips > *{
    flex: 0 0 auto;
  }
  .iu-filterChips a,
  .iu-filterChips button,
  .iu-filterChips span{
    white-space: nowrap;
  }
  
  .mindMenu-scroll-wrapper::after{
    display: none;
  }
}

/* Diagnostika skrytá mimo debug režim */
#iuDiagPanel {
  display: none;
}
html[data-iu-debug="1"] #iuDiagPanel {
  display: block;
}

/* DIAG bar skrytý (vytváří se v JS, zobrazuje DIAG | href=...) */
#iuDiagBar {
  display: none !important;
}

/* dataStatus skrytý (může obsahovat DIAG text) */
#dataStatus {
  display: none !important;
}

/* Fallback hláška – neblikat při refreshi.
   Ukázat až po ~2s pouze pokud JS neoznačil html[data-iu-js="loaded"]. */

#newsList,
#feed{
  width: 100%;
  max-width: none;
  min-width: 0;
  text-align: left;
}

.feedGrid,
.feedCols,
.feedMasonry{
  display: block !important;
  column-count: 1 !important;
}

#feed .feedItem,
#feed .articleCard,
#feed .videoCard{
  flex: none !important;
  flex-basis: auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

#feed,
.feedItem,
.articleCard,
.videoCard{
  scroll-margin-top: calc(var(--topbarStackH) + 8px);
}

/* #feed display/width je už nastaveno výše (řádky 1317-1323) */

#feed > *{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
/* REMOVE FEED CATEGORY BAR - permanently hidden */
#feed > #sectionsBar,
#feed > .sectionsBar,
.sectionsBar,
#sectionsBar {
  display: none !important;
}

/* Globální meta řádek - jemný, bez omezení (pro MindMenu a další) */
.iu-meta-line{
  font-size: 12px;
  line-height: 1.3;
  color: var(--iu-meta);
  font-weight: 400;
  margin-top: 6px;
  margin-bottom: 0;
}
/* Meta řádek v feedu - desktop: nowrap s ellipsis */
#feed .iu-meta-line{
  display: block;
  font-size: 12px;
  color: var(--iu-meta);
  font-weight: 400;
  line-height: 1.3;
  margin-top: 8px;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iu-meta-line .iu-meta-link{
  text-decoration: none;
}
.iu-meta-line .iu-meta-link:hover{
  text-decoration: underline;
}
.iu-meta-line .iu-meta-link-secondary{
  font-size: 12px;
}
.iu-meta-sep{
  margin: 0 6px;
  opacity: .6;
}

/* ===== FEED BG (override, only left feed) ===== */

/* 1) Ujistit se, že položka není display: contents (pak ::after nefunguje) */
#feed > article.news-card,
#feed > .news-card{
  display: block !important;           /* důležité */
  position: relative !important;       /* ukotvení ::after */
  overflow: hidden !important;         /* grafika zůstane uvnitř položky */
  min-width: 0;
  contain: none !important;            /* přepíše contain: content z ř. 202 */
}

/* 2) Obsah vždy nad pozadím */
#feed > article.news-card > *,
#feed > .news-card > *{
  position: relative;
  z-index: 1;
}

/* REMOVED: FEED grafika přes ::after override - now using background-image directly */

/* === MAINTENANCE MODE ACTIVE ===
   Feed a jeho viditelnost jsou uzamčeny */
/* CHECKPOINT: FEED VISIBILITY LOCKED
   Jakákoli změna pod tímto bodem je zakázaná */

/* ===== FEED BG (FINAL, no ::after, only left feed) ===== */
#feed article.news-card,
#feed .news-card{
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

/* Mobil – čisté pozadí */
@media (max-width: 680px){
  #feed article.news-card,
  #feed .news-card{
    background-color: #ffffff;
  }
}

/* Loading message: zachovat pro a11y, ale vizuálně a layoutově odstranit */
.iu-loadingMsg{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* DEBUG: Feed struktura (pouze pod html[data-iu-debug="1"]) */
html[data-iu-debug="1"] #feed { outline: 2px solid red; }
html[data-iu-debug="1"] #feed > * { outline: 2px dashed blue; }
html[data-iu-debug="1"] #feed > article,
html[data-iu-debug="1"] #feed > .news-card { outline: 2px solid green; }

/* DEBUG overlays: keep out of layout and avoid viewport/scrollbar side-effects */
#iuDebugBox,
#iuLayoutShiftBox{
  position: fixed !important;
  z-index: 2147483647 !important;
  contain: layout paint !important;
  pointer-events: none !important;
  transform: translateZ(0) !important;
  box-sizing: border-box !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  max-inline-size: 100% !important;
  word-break: break-word !important;
}

#iuDebugBox{
  left: 12px !important;
  bottom: 12px !important;
  height: min(260px, 40vh) !important;
  max-width: min(420px, calc(100vw - 24px)) !important;
  pointer-events: auto !important;
}

#iuLayoutShiftBox{
  left: 8px !important;
  bottom: 8px !important;
  height: min(260px, 40vh) !important;
  max-width: min(520px, calc(100vw - 16px)) !important;
}

/* Popover pro sledování zásilek */
/* Overlay pro modal */
.iu-parcels-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 9999;
  display: none;
  pointer-events: none;
}

.iu-parcels-overlay.is-open{
  display: block;
  pointer-events: auto;
}

/* Sledování zásilek – Varianta A (čistý nástroj) */
.iu-parcels-modal{
  position: fixed;
  inset: 24px;
  width: auto;
  max-width: calc(var(--mainW, 1100px) + var(--sideW, 360px));
  max-height: calc(100vh - 48px);
  margin: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.iu-parcels-modal.is-open{
  display: flex;
}

.iu-parcels-modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,.10);
}

.iu-parcels-modal-title{
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.iu-parcels-modal-close{
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: .7;
}

.iu-parcels-modal-close:hover{
  opacity: 1;
}

.iu-parcels-modal-content{
  padding: 12px 16px 16px;
  overflow: auto;
  min-height: 0;
}

.iu-parcels-content-inner{
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  max-height: 100%;
  min-height: 0;
}

.iu-parcels-content-inner *{
  max-width: 100%;
  box-sizing: border-box;
}

/* Ad-sloty odstraněny v Variantě A */

/* Dopravci – jemné dělení, žádné „karty" */
.iu-parcel-carrier{
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.iu-parcel-carrier:last-child{
  border-bottom: none;
}

.iu-parcel-carrier-name{
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--iu-text, #111);
}

.iu-parcelRows{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

/* Řádky input + tlačítko */
.iu-parcel-row{
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
  position: relative;
}

.iu-parcelRows .iu-parcel-row:last-child{
  margin-bottom: 0;
}

.iu-parcel-row-inputs{
  display: flex;
  gap: 8px;
  align-items: center;
}

.iu-parcel-input{
  flex: 0 0 50%;
  max-width: 50%;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  box-sizing: border-box;
  min-width: 0;
}

.iu-parcel-input:focus{
  outline: none;
  border-color: rgba(0,123,255,.5);
  box-shadow: 0 0 0 2px rgba(0,123,255,.1);
}

.iu-parcel-search-btn{
  flex: 0 0 auto;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(0,0,0,.85);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.iu-parcel-search-btn:hover{
  background: rgba(0,0,0,.02);
  border-color: rgba(0,0,0,.35);
}

.iu-parcel-search-btn:active{
  background: rgba(0,0,0,.05);
}

/* + Přidat další – jednoduchý link-button styl */
.iu-parcel-add-btn{
  margin-top: 8px;
  background: transparent;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  color: var(--iu-link, #1f3a5f);
  text-decoration: underline;
  text-decoration-color: rgba(31,58,95,.35);
}

.iu-parcel-add-btn:hover{
  text-decoration-color: rgba(31,58,95,.75);
}

.iu-parcel-fallback-btn{
  margin-top: 8px;
  padding: 4px 8px;
  background: transparent;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  color: rgba(0,0,0,.5);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,.2);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.iu-parcel-fallback-btn:hover{
  color: rgba(0,0,0,.75);
  text-decoration-color: rgba(0,0,0,.4);
}

.iu-parcel-fallback-btn:focus-visible{
  outline: 2px solid rgba(0,123,255,.5);
  outline-offset: 2px;
  color: rgba(0,0,0,.75);
}

/* Mobil */
@media (max-width: 768px){
  .iu-parcels-modal{
    inset: 12px;
    max-height: calc(100vh - 24px);
  }
}

@media (max-width: 520px){
  .iu-parcel-row-inputs{
    flex-direction: column;
    align-items: stretch;
  }
  .iu-parcel-input{
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
  }
  .iu-parcel-search-btn{
    width: 100%;
  }
}

/* CLS FIX v6: shrink and stabilize Daily Panel */
.iuDailyPanel{
  padding: 8px 10px !important;
  min-height: 110px !important;
  font-size: 13px !important;
  overflow-anchor: none;
}

.iuDailyPanel h3,
.iuDailyPanel .iuDailyTitle{
  font-size: 14px !important;
  margin-bottom: 4px !important;
}

.iuDailyPanel .iuDailyRow{
  gap: 6px !important;
  margin-bottom: 2px !important;
}

.iuDailyPanel small{
  font-size: 12px !important;
}

.iuDailyPanel .iuDailyValue{
  font-weight: 500 !important;
}

/* ==============================
   IU FRAME + LEFT HEX RAIL (UI-only)
   - NO JS changes
   - NO feed pipeline changes (render target #feed stays)
   ============================== */
:root{
  --iu-frame-bg: #1b2430;
}

/* Frame color: topbar (pill only) */
.topbar-new,
.topbar-new-inner{
  background: #243B55 !important;
}

/* Sticky header background must NOT match topbar,
   otherwise pill silhouette disappears */
#leftStickyHeader{
  background: transparent !important;
}

/* Right column outer shell only (keep inner cards intact) */
.layout > aside.accordionCol{
  background: var(--iu-frame-bg) !important;
}

/* 3 visible columns without touching feed render:
   [LEFT rail] + [#feed] live inside #newsList, right column stays as-is */
#newsList{
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px 20px; /* row-gap / column-gap */
}

/* Keep non-feed rows full-width above the rail+feed row */
#newsList > #dataStatus,
#newsList > #emptyBox,
#newsList > .iu-filterChips{
  flex: 0 0 100%;
  width: 100%;
}

.iu-leftRail{
  flex: 0 0 120px;
  width: 120px;
  min-width: 120px;
  /* Match center feed background (no panel effect) */
  background: var(--iu-page-bg);
  align-self: stretch; /* extend background alongside feed height */
  border-radius: 0;
  box-shadow: none;
  border-right: none;
  position: relative; /* required for ::before anchor */
  z-index: 0;
}

/* === LEFT RAIL: extend background to viewport-left WITHOUT changing layout width === */
/* This draws background under the rail and extends to the left edge of the viewport */
.iu-leftRail::before{
  content: none !important; /* disable full-bleed */
}

/* FEED must adapt to remaining width (critical) */
#newsList > #feed{
  flex: 1 1 0;
  min-width: 0;
  width: auto !important; /* override #feed{width:100%} so it can sit next to left rail */
}

/* Radio view must adapt like #feed (same middle column footprint) */
#newsList > #iuRadioView{
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
}

/* TV online view must adapt like #feed (same middle column footprint) */
#newsList > #iuTvOnlineView{
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
}

/* Home view must adapt like #feed (same middle column footprint) */
#newsList > #iuHomeView{
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
}

/* Responsive: hide left rail below 1100px (no JS) */
@media (max-width: 1100px){
  .iu-leftRail{ display: none; }
  #newsList > #feed{
    flex: 0 0 100%;
    width: 100% !important;
    min-width: 0;
  }
  #newsList > #iuRadioView{
    flex: 0 0 100%;
    width: 100% !important;
    min-width: 0;
  }
  #newsList > #iuTvOnlineView{
    flex: 0 0 100%;
    width: 100% !important;
    min-width: 0;
  }
  #newsList > #iuHomeView{
    flex: 0 0 100%;
    width: 100% !important;
    min-width: 0;
  }
}

/* ==============================
   LEFT RAIL ICON NAV (refactor)
   ============================== */

:root{
  --iu-frame-bg: #1b2430;
  --iu-rail-active: #2D6CDF; /* aktivní linka */
  /* Keep rail palette stable; contrast is handled locally under .iu-leftNav */
  --iu-rail-muted: rgba(255,255,255,0.78);
  --iu-rail-muted2: rgba(255,255,255,0.62);
}

.iu-leftRail{
  /* Match center feed background (no panel effect) */
  background: var(--iu-page-bg);
  margin-top: 0 !important;
  padding-top: 0 !important;
  box-shadow: none;
  border-right: none;
}

.iu-leftNav{
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 8px 6px 12px 6px;
  gap: 6px;
  box-sizing: border-box;
  background: var(--iu-page-bg);
  box-shadow: none;
  border-right: none;
  color: var(--text);
}

/* ==== LEFT COLUMN BACKGROUND SYNC ==== */
/* Must match global page background (html/body). Color only. */
.iuLeftRail,
.iu-leftRail,
#iuLeftRail,
.iu-leftNav{
  background: #fff;
  background-color: #fff;
  background-image: none;
}

.iu-leftNavItem{
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;

  height: 48px;
  width: 100%;
  padding: 0 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--iu-rail-muted);
  box-sizing: border-box;

  /* jemné oddělení bez “karet” */
  background: rgba(255,255,255,0.04);
}

/* Local contrast: rail now sits on feed background */
.iu-leftNav .iu-leftNavItem{
  color: var(--text);
  flex-direction: column;   /* icon above label */
  align-items: center;
  justify-content: center;
  text-align: center;       /* fallback */
  gap: 6px;
  height: auto;             /* override base height:48px without affecting widths */
  min-height: 74px;         /* fits 1–2 lines without “autobus” */
  padding: 10px;
  box-sizing: border-box;
}

.iu-leftNavItem:focus-visible{
  outline: 2px solid var(--iuNavAccent, var(--iu-rail-active));
  outline-offset: 2px;
}

.iu-leftNavIcon{
  width: 22px;
  height: 22px;
  display: block;
  margin-bottom: 6px;
  color: currentColor; /* Feather stroke přes currentColor */
}

/* Safety: keep icon + label color synced via inheritance */
.iu-leftNav .iu-leftNavIcon,
.iu-leftNav .iu-leftNavLabel{
  color: inherit;
}

/* ==== LEFT COLUMN ICON LIGHTEN 50% (inactive only) ==== */
/* Only inactive icons; do not touch hover/active/focus rules. */
.iu-leftNavItem:not(.is-active) .iu-leftNavIcon{
  color: inherit;
}

/* Keep label color in sync with inactive icon color */
.iu-leftNavItem:not(.is-active) .iu-leftNavLabel{
  color: inherit;
}

.iu-leftNavIcon svg{
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.iu-leftNavLabel{
  font-size: 11px;
  font-weight: 400;
  line-height: 1.05;
  text-align: center;
  color: var(--iu-rail-muted2);
  padding: 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.iu-leftNav .iu-leftNavLabel{
  color: inherit; /* label must match icon/currentColor */
}

/* Vertical layout tweaks (icon top, label bottom) */
.iu-leftNav .iu-leftNavIcon{
  margin: 0;                 /* remove offsets */
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.iu-leftNav .iu-leftNavLabel{
  display: -webkit-box; /* 2-line wrap without truncation */
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 0 0 auto;
  margin: 0;
  width: 100%;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: clip;
  overflow-wrap: break-word; /* avoid awkward breaks inside words */
  word-break: normal;
  hyphens: auto;

  /* slightly smaller to avoid awkward wraps (e.g. "Kultura / Akce") */
  font-size: 0.92em;
}

.iu-leftNavItem.is-active{
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.iu-leftNav .iu-leftNavItem:not(.is-active) i{
  opacity: 0.86;
}

/* ==============================
   LEFT NAV — Accent System
   Future-proof implementation
   UI-only, no layout changes
   ============================== */

/* Accent palette (optional mapping via data-accent) */
:root{
  --iuNavAccent-media:  #0B2A4A; /* darker journalist-style navy */
  --iuNavAccent-radio:  #8B5CF6;
  --iuNavAccent-tv:     #EF4444;
  --iuNavAccent-tvonline: var(--iuNavAccent-tv, #DC2626);
  --iuNavAccent-jr:     #F97316;
  --iuNavAccent-mapy:   #22C55E;
  --iuNavAccent-travel: #06B6D4;
  --iuNavAccent-pocasi: #38BDF8;
  /* Existing items (fallbacks) */
  --iuNavAccent-namedays: #F59E0B;
  --iuNavAccent-tvprogram: #10B981;
  --iuNavAccent-culture: #6366F1;
  --iuNavAccent-ads: #94A3B8;

  /* Section accents (content hooks) */
  --iu-accent-media: var(--iuNavAccent-media, #3B82F6);
  --iu-accent-radio: var(--iuNavAccent-radio, #8B5CF6);
  --iu-accent-tv: var(--iuNavAccent-tv, #EF4444);
  --iu-accent-tvonline: var(--iuNavAccent-tvonline, #DC2626);
  --iu-accent-maps: var(--iuNavAccent-mapy, #22C55E);
  --iu-accent-timetable: var(--iuNavAccent-jr, #F97316);
  --iu-accent-travel: var(--iuNavAccent-travel, #06B6D4);
}

/* Local button palette only (rail background unchanged) */
.iu-leftNav{
  --iuLeftBtnBgTop: #353d46;
  --iuLeftBtnBgBottom: #2b3138;
  --iuLeftBtnBorder: rgba(255,255,255,0.10);
  --iuLeftBtnShadow: 0 10px 22px rgba(0,0,0,0.22);
}

.iu-leftNav .iu-leftNavItem{
  --iuNavAccent: #3B82F6; /* default fallback accent */
  /* stripe-only: no fill, no border, no brighten */
  border-radius: 14px;
  background: transparent;
  background-image: none;
  background-color: transparent;
  border: 0;
  box-shadow: none;
  filter: none;
  transition: color 220ms ease;

  /* same gray as article meta time (.meta-time) */
  color: rgba(11,27,43,0.55);
}

/* Inner highlight (soft light from top) */
.iu-leftNav .iu-leftNavItem::after{
  content: none;
  display: none;
}

/* Default typography/weights */
.iu-leftNav .iu-leftNavIcon{ opacity: 0.96; }
.iu-leftNav .iu-leftNavLabel{ opacity: 0.92; }

/* LEFT RAIL — quiet default (meta-time gray) */
.iu-leftNav .iu-leftNavItem{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none;
  filter: none !important;
  color: rgba(11,27,43,0.55); /* 1:1 as .meta-time */
}

.iu-leftNav .iu-leftNavIcon,
.iu-leftNav .iu-leftNavLabel{
  color: inherit;
  font-weight: 400;
}

/* LEFT RAIL — strong highlight (hover/focus/active all same) */
.iu-leftNav .iu-leftNavItem:hover,
.iu-leftNav .iu-leftNavItem:focus-visible,
.iu-leftNav .iu-leftNavItem.is-active{
  color: var(--iuNavAccent, currentColor);
}

.iu-leftNav .iu-leftNavItem:hover .iu-leftNavIcon,
.iu-leftNav .iu-leftNavItem:hover .iu-leftNavLabel,
.iu-leftNav .iu-leftNavItem:focus-visible .iu-leftNavIcon,
.iu-leftNav .iu-leftNavItem:focus-visible .iu-leftNavLabel,
.iu-leftNav .iu-leftNavItem.is-active .iu-leftNavIcon,
.iu-leftNav .iu-leftNavItem.is-active .iu-leftNavLabel{
  color: var(--iuNavAccent, currentColor);
  font-weight: 700;
}

.iu-leftNav .iu-leftNavItem:hover .iu-leftNavIcon svg,
.iu-leftNav .iu-leftNavItem:focus-visible .iu-leftNavIcon svg,
.iu-leftNav .iu-leftNavItem.is-active .iu-leftNavIcon svg{
  stroke-width: 2.6;
}

/* Guard: no scale/brightness/filters in left rail */
.iu-leftNav .iu-leftNavIcon,
.iu-leftNav .iu-leftNavItem{
  transform: none !important;
  filter: none !important;
}

/* Accent mapping */
.iu-leftNav .iu-leftNavItem[data-accent="media"]{ --iuNavAccent: var(--iuNavAccent-media); }
.iu-leftNav .iu-leftNavItem[data-accent="radio"]{ --iuNavAccent: var(--iuNavAccent-radio); }
.iu-leftNav .iu-leftNavItem[data-accent="tv"]{ --iuNavAccent: var(--iuNavAccent-tv); }
.iu-leftNav .iu-leftNavItem[data-accent="tvonline"]{ --iuNavAccent: var(--iuNavAccent-tvonline); }
.iu-leftNav .iu-leftNavItem[data-accent="jr"]{ --iuNavAccent: var(--iuNavAccent-jr); }
.iu-leftNav .iu-leftNavItem[data-accent="mapy"]{ --iuNavAccent: var(--iuNavAccent-mapy); }
.iu-leftNav .iu-leftNavItem[data-accent="travel"]{ --iuNavAccent: var(--iuNavAccent-travel); }
.iu-leftNav .iu-leftNavItem[data-accent="pocasi"]{ --iuNavAccent: var(--iuNavAccent-pocasi); }
.iu-leftNav .iu-leftNavItem[data-accent="namedays"]{ --iuNavAccent: var(--iuNavAccent-namedays); }
.iu-leftNav .iu-leftNavItem[data-accent="tvprogram"]{ --iuNavAccent: var(--iuNavAccent-tvprogram); }
.iu-leftNav .iu-leftNavItem[data-accent="culture"]{ --iuNavAccent: var(--iuNavAccent-culture); }
.iu-leftNav .iu-leftNavItem[data-accent="ads"]{ --iuNavAccent: var(--iuNavAccent-ads); }

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  .iu-leftNav .iu-leftNavItem{
    transition: none;
  }
}

/* ==============================
   IU ICON SYSTEM (shared)
   ============================== */

.iuIconTile{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  line-height: 1;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.iuIconTile > i,
.iuIconTile > svg{
  display: block;
}

/* === Left rail (existing vibe, stronger) === */
.iu-leftNav .iuIconTile{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(31,47,58,0.98), rgba(38,56,70,0.98));
  box-shadow: 0 6px 14px rgba(0,0,0,0.28);
}

.iu-leftNav .iuIconTile > i{
  font-size: 20px;
}

/* === MindMenu QuickLinks (softer, smaller) === */
.iu-mmQuickLinks .iuIconTile{
  width: 32px;
  height: 32px;
  border-radius: 10px;

  /* jemnější pozadí + lehký „glass“ */
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.04)
  );

  /* jemnější hrana + stín */
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 2px 8px rgba(0,0,0,0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.iu-mmQuickLinks .iuIconTile > i{
  font-size: 14px;
  margin: 0 !important; /* neutralize legacy .iu-mmQuickItem i margin */
  opacity: 0.92;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Hover/focus (jemné, bez posunu layoutu) */
.iu-mmQuickLinks a:hover .iuIconTile,
.iu-mmQuickLinks button:hover .iuIconTile{
  box-shadow: 0 4px 12px rgba(0,0,0,0.22);
  border-color: rgba(255,255,255,0.16);
}

.iu-mmQuickLinks a:focus-visible .iuIconTile,
.iu-mmQuickLinks button:focus-visible .iuIconTile{
  outline: 2px solid rgba(255,255,255,0.28);
  outline-offset: 2px;
}

/* === WHITE BACKGROUND BASE (site-wide) === */
/* Keep full page white across sections (incl. Media). */
html, body{
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
}

/* Layout carriers must stay white */
.container,
main#content,
#content,
#feed,
#feedWrap,
#iuLeftRail,
.iu-leftRail,
.iu-rightContent,
.mindMenu,
.iu-hexNav,
.iu-daily-brief,
.iu-todayGrid,
.iu-todayBox,
.news-card{
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
}

/* If there are iframes in media list, keep their surroundings white */
#feed iframe,
.news-card iframe{
  background: #fff !important;
  background-color: #fff !important;
  display: block;
}
