:root{--navy:#06284d;--navy2:#0a3b6c;--blue:#1662a5;--gold:#c89b2d;--gold2:#f0cd73;--cream:#fffaf0;--cream2:#f8edcf;--paper:#fffdf7;--ink:#09294b;--muted:#657184;--line:#dfc98e;--green:#2e8651;--purple:#7453a6;--shadow:0 10px 28px rgba(25,45,74,.12);font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:#f6edd9}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#fffaf0 0,#f7eedb 60%,#efe2c3 100%);color:var(--ink)}a{color:inherit}.shell{width:min(1260px,calc(100% - 34px));margin:auto}.topbar{position:sticky;top:0;z-index:20;background:linear-gradient(90deg,#041f3d,#08345f);border-bottom:3px solid var(--gold);box-shadow:0 4px 18px rgba(0,0,0,.14)}.nav-wrap{min-height:78px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;text-decoration:none;color:white;min-width:245px}.brand img{width:72px;height:72px;object-fit:contain;margin:-7px 8px -7px 0;filter:drop-shadow(0 3px 5px rgba(0,0,0,.35))}.brand b{font-size:34px;letter-spacing:.5px;color:var(--gold2)}.brand small{display:block;font-weight:700;letter-spacing:.8px}.nav{display:flex;gap:8px;flex:1;justify-content:center}.nav a{text-decoration:none;color:#fff;padding:26px 13px 22px;border-bottom:4px solid transparent;font-weight:750;white-space:nowrap}.nav a:hover,.nav a.on{color:var(--gold2);border-color:var(--gold2)}.lang select{background:#fffaf0;border:1px solid var(--gold);border-radius:10px;padding:9px 12px;color:var(--ink);font-weight:800}.nav-toggle{display:none;background:none;border:0;color:white;font-size:28px}.hero{padding:48px 0 28px;background:radial-gradient(circle at 10% 0,rgba(240,205,115,.22),transparent 35%)}.hero-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:28px;align-items:stretch}.hero-copy{padding:28px 10px}.eyebrow{font-size:14px;font-weight:900;letter-spacing:1.4px;color:#9a6b07;text-transform:uppercase}.hero h1{font-size:clamp(42px,6vw,72px);line-height:.98;margin:10px 0 12px}.hero h2{font-size:26px;color:#9b6e13;margin:0 0 18px}.hero p{font-size:18px;line-height:1.6;max-width:760px}.hero-art{position:relative;min-height:270px;border-radius:24px;overflow:hidden;background:linear-gradient(135deg,#06284d,#0b477c);border:2px solid var(--gold);box-shadow:var(--shadow)}.hero-art:before{content:"";position:absolute;inset:0;background:url('tota-world-map.png') center/cover no-repeat;opacity:.72}.hero-art img{position:absolute;width:185px;right:34px;bottom:17px;filter:drop-shadow(0 8px 15px rgba(0,0,0,.45))}.hero-art .motto{position:absolute;left:30px;top:34px;color:white;font-size:21px;font-weight:800;max-width:280px;line-height:1.45}.hero-art .motto b{color:var(--gold2)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:6px auto 34px}.stat{background:rgba(255,253,247,.92);border:1px solid var(--line);border-radius:18px;padding:18px;text-align:center;box-shadow:0 6px 18px rgba(45,58,83,.08)}.stat .ico{font-size:29px}.stat b{display:block;font-size:31px;margin:5px}.stat span{color:var(--muted);font-weight:700}.section{padding:16px 0 34px}.section-title{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #e7d39c;margin-bottom:18px}.section-title h2{margin:0;padding:0 0 10px;font-size:24px}.challenge-card{display:grid;grid-template-columns:1fr 330px;min-height:330px;overflow:hidden;background:var(--paper);border:2px solid var(--gold);border-radius:22px;box-shadow:var(--shadow)}.challenge-main{position:relative;padding:34px;background:linear-gradient(135deg,rgba(3,35,68,.98),rgba(7,62,107,.94));color:white}.challenge-main:after{content:"";position:absolute;inset:0;background:url('tota-world-map.png') center bottom/cover no-repeat;opacity:.25;pointer-events:none}.challenge-main>*{position:relative;z-index:1}.challenge-main h3{font-size:33px;color:var(--gold2);margin:5px 0 12px}.challenge-main p{font-size:17px;line-height:1.55;max-width:720px}.challenge-side{display:flex;align-items:center;justify-content:center;background:radial-gradient(circle,#fff7d8,#ebd69b);padding:25px}.challenge-side img{width:220px;filter:drop-shadow(0 12px 15px rgba(0,0,0,.25))}.badge{display:inline-block;padding:6px 11px;border-radius:8px;background:var(--gold2);color:#3b2c03;font-size:12px;font-weight:950;text-transform:uppercase}.badge.upcoming{background:#d7e8f7;color:#164a78}.badge.archived{background:#e2e6eb;color:#53606e}.period{margin-left:10px;font-weight:750}.pills{display:flex;flex-wrap:wrap;gap:8px;margin:17px 0}.pill{padding:6px 11px;border-radius:8px;font-size:13px;font-weight:850;background:#d39b31;color:#fff}.pill.activator{background:#2870b5}.pill.hunter{background:#3b9557}.pill.r2r{background:#7657aa}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;border:1px solid var(--gold);border-radius:10px;padding:11px 17px;background:linear-gradient(#f5d477,#c79729);color:#102d4b;font-weight:900;cursor:pointer}.btn.secondary{background:transparent;color:white;border-color:#e2bd56}.btn.blue{background:linear-gradient(#176eb8,#0b4c87);color:white;border-color:#0b4c87}.columns{display:grid;grid-template-columns:1fr 360px;gap:24px}.panel{background:rgba(255,253,247,.94);border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 7px 19px rgba(40,50,72,.08)}.panel.navy{background:linear-gradient(145deg,#05264a,#0a467d);color:white;border:2px solid var(--gold)}.panel h3{margin-top:0}.search-row{display:flex;gap:8px}.search-row input{min-width:0;flex:1;border:1px solid #cdb777;border-radius:10px;padding:12px 13px;font-size:16px}.mini-list{display:grid;gap:12px}.mini-card{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:17px}.empty{padding:24px;border:1px dashed #cbb474;border-radius:16px;color:var(--muted);background:rgba(255,255,255,.45)}.table-wrap{overflow:auto;border-radius:14px;border:1px solid var(--line)}table{width:100%;border-collapse:collapse;background:var(--paper)}th,td{padding:12px 14px;text-align:left;border-bottom:1px solid #eadfbf}th{background:#f2e3b8;font-size:13px;text-transform:uppercase;letter-spacing:.5px}.rank{font-weight:900;color:#a87711}.progress-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.progress-card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 7px 19px rgba(40,50,72,.07)}.progress-card h3{display:flex;justify-content:space-between}.meter{height:13px;background:#e8e2d2;border-radius:99px;overflow:hidden;margin:12px 0}.meter span{display:block;height:100%;background:linear-gradient(90deg,#176eb8,#d5a52f)}.levels{display:grid;gap:8px}.level{display:flex;justify-content:space-between;padding:8px 10px;border-radius:9px;background:#f5eedb}.level.ok{background:#e0f2e5;color:#175b31}.page-hero{padding:38px 0 24px}.page-hero h1{font-size:44px;margin:4px 0 12px}.breadcrumbs{color:var(--muted);font-size:14px}.footer{margin-top:42px;background:linear-gradient(90deg,#041f3d,#08345f);border-top:3px solid var(--gold);color:white}.footer-inner{min-height:100px;display:flex;align-items:center;justify-content:space-between}.footer b{font-size:28px;color:var(--gold2);display:block}.footer span{font-size:13px}.admin-bar{background:#fff6d8;border-bottom:1px solid var(--gold);padding:10px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.field{display:grid;gap:6px}.field.full{grid-column:1/-1}.field label{font-weight:850}.field input,.field select,.field textarea{width:100%;padding:10px 12px;border:1px solid #c9b471;border-radius:9px;background:white}.notice{padding:13px 15px;border-radius:10px;margin:12px 0;background:#e5f2e9;color:#1c6339;border:1px solid #9dc7aa}.notice.error{background:#f9e0df;color:#8b2925;border-color:#e6a9a5}.code{font-family:Consolas,monospace;background:#071f38;color:#f4cf6b;padding:10px;border-radius:8px;word-break:break-all}
@media(max-width:950px){.nav{display:none;position:absolute;left:0;right:0;top:78px;background:#06284d;flex-direction:column;padding:12px 20px}.nav.open{display:flex}.nav a{padding:12px;border-bottom:1px solid rgba(255,255,255,.12)}.nav-toggle{display:block}.lang{margin-left:auto}.hero-grid,.challenge-card,.columns{grid-template-columns:1fr}.challenge-side{display:none}.stats{grid-template-columns:repeat(2,1fr)}.progress-grid{grid-template-columns:1fr}.brand{min-width:auto}.brand span{display:none}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}}
@media(max-width:560px){.shell{width:min(100% - 20px,1260px)}.stats{grid-template-columns:1fr 1fr}.stat{padding:12px}.hero{padding-top:24px}.hero-copy{padding:12px 0}.hero-art{min-height:230px}.hero-art img{width:135px;right:14px}.challenge-main{padding:23px}.challenge-main h3{font-size:27px}.page-hero h1{font-size:35px}.footer-inner{flex-direction:column;justify-content:center;gap:10px;text-align:center}}

/* =========================================================
   COMPACT DESKTOP LAYOUT — 2026-08-01
   Více obsahu na první obrazovce, zachovaný TOTA design.
   ========================================================= */
@media (min-width:951px){
  .shell{width:min(1180px,calc(100% - 32px))}

  .nav-wrap{min-height:62px;gap:20px}
  .brand{min-width:210px}
  .brand img{width:56px;height:56px;margin:-4px 7px -4px 0}
  .brand b{font-size:28px}
  .brand small{font-size:11px;letter-spacing:.65px}
  .nav{gap:4px}
  .nav a{padding:19px 10px 16px;border-bottom-width:3px;font-size:14px}
  .lang select{padding:7px 10px;border-radius:9px}

  .hero{padding:27px 0 17px}
  .hero-grid{grid-template-columns:1.45fr .9fr;gap:22px}
  .hero-copy{padding:14px 6px}
  .eyebrow{font-size:12px;letter-spacing:1.15px}
  .hero h1{font-size:clamp(38px,4.4vw,54px);line-height:1;margin:7px 0 8px}
  .hero h2{font-size:21px;margin:0 0 10px}
  .hero p{font-size:16px;line-height:1.45;margin:0;max-width:680px}
  .hero-art{min-height:210px;border-radius:18px}
  .hero-art img{width:148px;right:24px;bottom:12px}
  .hero-art .motto{left:24px;top:25px;font-size:18px;line-height:1.38}

  .stats{gap:12px;margin:4px auto 23px}
  .stat{border-radius:15px;padding:12px 14px}
  .stat .ico{font-size:24px}
  .stat b{font-size:24px;margin:3px}
  .stat span{font-size:13px}

  .section{padding:10px 0 23px}
  .section-title{margin-bottom:13px}
  .section-title h2{padding-bottom:8px;font-size:21px}

  .challenge-card{grid-template-columns:1fr 280px;min-height:255px;border-radius:18px}
  .challenge-main{padding:25px 27px}
  .challenge-main h3{font-size:28px;margin:5px 0 9px}
  .challenge-main p{font-size:15.5px;line-height:1.45;margin:0;max-width:700px}
  .challenge-side{padding:18px}
  .challenge-side img{width:174px}
  .badge{padding:5px 9px;font-size:11px}
  .period{font-size:14px}
  .pills{gap:6px;margin:12px 0}
  .pill{padding:5px 9px;font-size:12px}
  .actions{gap:10px;margin-top:16px}
  .btn{padding:9px 14px;border-radius:9px;font-size:14px}

  .columns{grid-template-columns:1fr 320px;gap:20px}
  .panel{border-radius:15px;padding:17px}
  .search-row input{padding:10px 11px;font-size:15px}
  .mini-list{gap:10px}
  .mini-card{border-radius:14px;padding:14px 16px}
  .mini-card h3{margin:9px 0 7px}
  .mini-card p{margin:6px 0 9px}
  .empty{padding:18px;border-radius:14px}

  .page-hero{padding:25px 0 17px}
  .page-hero h1{font-size:36px;margin:3px 0 9px}
  .progress-grid{gap:13px}
  .progress-card{border-radius:15px;padding:16px}

  .footer{margin-top:30px}
  .footer-inner{min-height:78px}
  .footer b{font-size:24px}
}

/* =========================================================
   BALANCED HOME V2 — plné využití plochy bez ztráty designu.
   Na běžném desktopu je stránka bez vnějšího svislého scrollu;
   delší seznamy se posouvají pouze uvnitř svých panelů.
   ========================================================= */
@media (min-width:951px){
  body.home-balanced .shell{width:min(1500px,calc(100% - 32px))}

  body.home-balanced .nav-wrap{min-height:58px}
  body.home-balanced .brand{min-width:220px}
  body.home-balanced .brand img{width:52px;height:52px;margin:-3px 7px -3px 0}
  body.home-balanced .brand b{font-size:27px}
  body.home-balanced .brand small{font-size:10px;letter-spacing:.7px}
  body.home-balanced .nav a{padding:17px 11px 14px;font-size:13px}

  body.home-balanced .home-hero{padding:10px 0 7px}
  body.home-balanced .home-hero .hero-grid{grid-template-columns:minmax(0,1.7fr) minmax(360px,.68fr);gap:24px;align-items:center}
  body.home-balanced .home-hero .hero-copy{padding:4px 4px}
  body.home-balanced .home-hero .hero-heading-row{display:flex;align-items:baseline;gap:20px;flex-wrap:wrap}
  body.home-balanced .home-hero .eyebrow{font-size:11px;letter-spacing:1.05px}
  body.home-balanced .home-hero h1{font-size:39px;line-height:1;margin:5px 0 5px}
  body.home-balanced .home-hero h2{font-size:18px;margin:0;color:#9b6e13}
  body.home-balanced .home-hero p{font-size:14px;line-height:1.35;margin:0;max-width:940px}
  body.home-balanced .home-hero .hero-art{height:106px;min-height:106px;border-radius:15px}
  body.home-balanced .home-hero .hero-art .motto{left:18px;top:15px;font-size:15px;line-height:1.28;max-width:190px}
  body.home-balanced .home-hero .hero-art .motto span,
  body.home-balanced .home-hero .hero-art .motto b{display:block}
  body.home-balanced .home-hero .hero-art img{width:94px;right:15px;bottom:3px}

  body.home-balanced .home-stats{gap:10px;margin:1px auto 8px}
  body.home-balanced .home-stats .stat{height:54px;padding:7px 16px;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:14px;text-align:left}
  body.home-balanced .home-stats .stat .ico{font-size:24px;line-height:1}
  body.home-balanced .home-stats .stat b{display:inline;font-size:23px;line-height:1;margin:0;color:var(--ink)}
  body.home-balanced .home-stats .stat span:last-child{font-size:12px;line-height:1.15}

  body.home-balanced .section{padding:4px 0 8px}
  body.home-balanced .section-title{margin-bottom:6px;min-height:29px}
  body.home-balanced .section-title h2{padding-bottom:5px;font-size:19px;line-height:1.1}
  body.home-balanced .section-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--gold2);color:#684900;font-size:12px;font-weight:900}

  body.home-balanced .active-stack{display:grid;gap:10px;max-height:285px;overflow:auto;padding-right:2px}
  body.home-balanced .challenge-card{grid-template-columns:minmax(0,1fr) 270px;height:265px;min-height:265px;border-radius:18px}
  body.home-balanced .challenge-main{padding:21px 26px;display:flex;flex-direction:column;justify-content:center}
  body.home-balanced .challenge-main h3{font-size:29px;line-height:1.08;margin:8px 0 8px}
  body.home-balanced .challenge-main p{font-size:14.5px;line-height:1.42;margin:0;max-width:920px}
  body.home-balanced .challenge-side{padding:12px 16px}
  body.home-balanced .challenge-side .anniversary-mark{text-align:center}
  body.home-balanced .challenge-side img{width:150px}
  body.home-balanced .challenge-side b{display:block;margin-top:4px;font-size:18px;color:#8b6412}
  body.home-balanced .challenge-side span{font-size:12px}
  body.home-balanced .badge{padding:4px 8px;font-size:10px}
  body.home-balanced .period{font-size:12px;margin-left:8px}
  body.home-balanced .pills{gap:5px;margin:10px 0}
  body.home-balanced .pill{padding:4px 8px;font-size:11px}
  body.home-balanced .actions{gap:8px;margin-top:11px}
  body.home-balanced .btn{padding:8px 13px;border-radius:8px;font-size:12px}

  body.home-balanced .home-lower-section{padding-top:3px;padding-bottom:8px;min-height:170px}
  body.home-balanced .home-lower-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 350px;gap:12px;align-items:stretch}
  body.home-balanced .home-list-block{min-width:0;display:flex;flex-direction:column}
  body.home-balanced .home-list-block .section-title{margin-bottom:5px;flex:0 0 auto}
  body.home-balanced .home-list-block .empty{min-height:126px;padding:15px;display:flex;align-items:center;justify-content:center;text-align:center;background:rgba(255,253,247,.72)}
  body.home-balanced .home-scroll-list{max-height:150px;overflow:auto;padding-right:3px}
  body.home-balanced .mini-list{gap:7px}
  body.home-balanced .mini-card{padding:10px 12px;border-radius:11px}
  body.home-balanced .mini-card h3{font-size:14px;margin:5px 0 3px}
  body.home-balanced .mini-card p{font-size:11px;margin:3px 0 5px}
  body.home-balanced .mini-card a{font-size:12px;font-weight:800}

  body.home-balanced .home-tools{padding-top:34px;display:flex;flex-direction:column;min-height:0}
  body.home-balanced .progress-panel{min-height:126px;padding:15px 16px;border-radius:14px;display:flex;flex-direction:column;justify-content:center}
  body.home-balanced .progress-panel h3{font-size:16px;margin:0 0 10px}
  body.home-balanced .progress-panel p{font-size:11px;margin:8px 0 0}
  body.home-balanced .search-row input{padding:9px 10px;font-size:13px}
  body.home-balanced .source-warning{padding:9px 11px;margin:8px 0 0;font-size:12px}

  body.home-balanced .footer{margin-top:0}
  body.home-balanced .footer.compact .footer-inner{min-height:40px}
  body.home-balanced .footer.compact b{display:inline;font-size:15px;margin-right:7px}
  body.home-balanced .footer.compact span,
  body.home-balanced .footer.compact .footer-inner>div:last-child{font-size:10px}
}

/* Přesně využije výšku obrazovky; při menší výšce zůstane běžný scroll. */
@media (min-width:951px) and (min-height:720px){
  body.home-balanced{height:100vh;overflow:hidden;display:flex;flex-direction:column}
  body.home-balanced>.topbar{flex:0 0 auto}
  body.home-balanced main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden}
  body.home-balanced .home-hero,
  body.home-balanced .home-stats,
  body.home-balanced .home-active-section,
  body.home-balanced .footer{flex:0 0 auto}
  body.home-balanced .home-lower-section{flex:1 1 auto;min-height:0;overflow:hidden}
  body.home-balanced .home-lower-grid{height:100%;min-height:0}
  body.home-balanced .home-list-block{min-height:0}
  body.home-balanced .home-list-block .empty{flex:1 1 auto;min-height:0}
  body.home-balanced .home-scroll-list{flex:1 1 auto;max-height:none;min-height:0}
  body.home-balanced .home-tools{height:100%}
  body.home-balanced .progress-panel{flex:1 1 auto;min-height:0}
}

@media (min-width:951px) and (min-height:720px) and (max-height:820px){
  body.home-balanced .home-hero .hero-art{height:92px;min-height:92px}
  body.home-balanced .home-hero .hero-art img{width:82px}
  body.home-balanced .home-hero h1{font-size:35px}
  body.home-balanced .home-stats .stat{height:48px}
  body.home-balanced .challenge-card{height:235px;min-height:235px}
  body.home-balanced .challenge-main h3{font-size:26px}
}

/* --- Challenge rules and final-award workflow --- */
.rules-hero{padding-bottom:18px}
.rules-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}
.rules-facts>div{display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;background:rgba(255,253,247,.92);border:1px solid var(--line);border-radius:14px;padding:13px 15px;box-shadow:0 5px 14px rgba(40,50,72,.06)}
.rules-facts span{grid-row:1/3;font-size:25px}.rules-facts b{font-size:14px}.rules-facts small{color:var(--muted);font-weight:700}
.rules-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.rule-card{display:flex;gap:14px;align-items:flex-start;background:rgba(255,253,247,.94);border:1px solid var(--line);border-radius:16px;padding:17px 18px;box-shadow:0 6px 16px rgba(40,50,72,.06)}
.rule-card:last-child{grid-column:1/-1}.rule-icon{font-size:27px;line-height:1}.rule-card h2{font-size:18px;margin:0 0 7px}.rule-card p{margin:0;color:var(--muted);line-height:1.5}
.rules-section-title{margin-top:25px}.rules-categories .progress-card>small{display:block;margin-top:12px;color:var(--muted)}
.final-award-callout{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;margin-top:22px;padding:20px 22px;border:2px solid var(--gold);border-radius:18px;background:linear-gradient(135deg,#fff8dc,#f0d991);box-shadow:var(--shadow)}
.final-award-callout h2,.final-award-callout p{margin:0 0 6px}.final-award-icon{font-size:42px}
.challenge-status-section{padding-bottom:0}.challenge-status-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:13px}
.status-callout{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:rgba(255,253,247,.94)}
.status-callout.provisional{border-color:#6da0cf;background:#edf6ff}.status-callout.released{border-color:#79b58a;background:#e9f7ed}.status-callout>span{font-size:24px}.status-callout b{display:block;margin-bottom:4px}.status-callout p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.progress-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}.progress-heading h2{margin:0 0 5px}.progress-heading p{margin:0;color:var(--muted)}
.progress-deadline{min-width:235px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff8df}.progress-deadline b,.progress-deadline span{display:block}.progress-deadline span{margin-top:4px;color:var(--muted)}
.final-candidate{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:9px 10px;border-radius:10px;background:#fff5d4;border:1px solid #e5c765}.final-candidate.released{background:#e2f3e7;border-color:#9ac6a6}.progress-final-note{margin-top:15px;padding:11px 13px;border-radius:11px;background:#edf6ff;border:1px solid #9dc2e1}
.admin-challenge-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.admin-challenge-card h2{margin-top:0}.admin-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.admin-metrics span{padding:10px;border-radius:10px;background:#f6eed8;font-size:12px}.admin-metrics b{display:block;font-size:16px;margin-bottom:3px}.btn[disabled]{filter:grayscale(.3)}
@media(max-width:950px){.rules-facts,.rules-grid,.challenge-status-grid,.admin-challenge-grid{grid-template-columns:1fr}.rule-card:last-child{grid-column:auto}.final-award-callout{grid-template-columns:1fr;text-align:left}.progress-heading{display:block}.progress-deadline{margin-top:12px;min-width:0}.admin-metrics{grid-template-columns:1fr}}

/* TOTA anniversary popup: homepage only, 8 s auto-close, 24 h suppression. */
body.tc-popup-open{overflow:hidden}
.tc-popup-overlay[hidden]{display:none!important}
.tc-popup-overlay{position:fixed;inset:var(--tc-popup-top,0px) 0 0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(2,20,39,.66);backdrop-filter:blur(5px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,visibility 0s linear .18s}
body.tc-popup-open .topbar{z-index:1201}
.tc-popup-overlay.is-visible{visibility:visible;pointer-events:auto;transition-delay:0s}
.tc-popup-overlay.is-visible{opacity:1}
.tc-popup{position:relative;width:min(790px,100%);max-height:calc(100vh - 40px);display:grid;grid-template-columns:minmax(0,1fr) 170px;overflow:auto;border:2px solid var(--gold);border-radius:22px;background:#fff8df;box-shadow:0 28px 80px rgba(0,0,0,.38);transform:translateY(12px) scale(.985);transition:transform .2s ease}
.tc-popup-overlay.is-visible .tc-popup{transform:none}
.tc-popup-close{position:absolute;z-index:5;top:10px;right:10px;width:36px;height:36px;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(2,27,52,.78);color:#fff;font:700 26px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 5px 15px rgba(0,0,0,.25)}
.tc-popup-close:hover,.tc-popup-close:focus-visible{background:#fff;color:var(--navy);outline:3px solid rgba(240,205,115,.5)}
.tc-popup-main{position:relative;min-width:0;padding:29px 29px 24px;color:#fff;background:linear-gradient(135deg,rgba(3,35,68,.99),rgba(7,67,115,.96));overflow:hidden}
.tc-popup-main:before{content:"";position:absolute;inset:0;background:url('tota-world-map.png') center/cover no-repeat;opacity:.25;pointer-events:none}
.tc-popup-main>*{position:relative;z-index:1}
.tc-popup-topline{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:10px;padding-right:20px}
.tc-popup .period{margin-left:0;font-size:12px;color:#f8f1dd}
.tc-popup h2{margin:0 0 9px;color:var(--gold2);font-size:clamp(24px,3.4vw,34px);line-height:1.08;letter-spacing:-.025em}
.tc-popup p{margin:0;max-width:590px;font-size:15px;line-height:1.47;color:#f8fbff}
.tc-popup .pills{margin:13px 0 15px;gap:6px}
.tc-popup .pill{padding:5px 9px;font-size:11px}
.tc-popup-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.tc-popup-actions .btn{min-height:38px;padding:9px 13px;font-size:12.5px}
.tc-popup-progress-link{padding:8px 2px;color:var(--gold2);font-size:12.5px;font-weight:900;text-decoration:underline;text-underline-offset:3px}
.tc-popup-side{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:30px 19px;background:radial-gradient(circle at 50% 42%,#fff9db,#efd99c);text-align:center}
.tc-popup-side img{width:116px;max-width:100%;filter:drop-shadow(0 10px 13px rgba(0,0,0,.25))}
.tc-popup-side b{color:#7b5509;font-size:15px;line-height:1.1}
.tc-popup-timer{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(100px,1fr);align-items:center;gap:13px;padding:8px 13px;background:#f8edcc;border-top:1px solid #dfc98e;color:#66521d;font-size:11px;font-weight:800}
.tc-popup-track{height:5px;overflow:hidden;border-radius:999px;background:rgba(104,79,17,.18)}
.tc-popup-track i{display:block;width:100%;height:100%;transform-origin:left center;background:linear-gradient(90deg,#d39b31,#0b5b99);will-change:transform}
@media(max-width:680px){.tc-popup-overlay{padding:10px;align-items:flex-end}.tc-popup{grid-template-columns:1fr;max-height:calc(100vh - 20px);border-radius:18px}.tc-popup-main{padding:25px 18px 20px}.tc-popup-side{display:none}.tc-popup h2{font-size:24px;padding-right:25px}.tc-popup p{font-size:13.5px}.tc-popup-actions .btn{flex:1 1 auto}.tc-popup-progress-link{width:100%;text-align:center}.tc-popup-timer{grid-template-columns:1fr;gap:5px;text-align:center}}
@media(prefers-reduced-motion:reduce){.tc-popup-overlay,.tc-popup{transition:none}}

/* Real top navigation destinations: Active / Upcoming / Archive. */
.challenge-list-hero{padding:30px 0 18px;background:radial-gradient(circle at 10% 0,rgba(240,205,115,.24),transparent 38%)}
.challenge-list-hero .breadcrumbs a{font-weight:800;text-decoration:none;color:#9a6b07}
.challenge-list-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:22px}
.challenge-list-heading h1{margin:6px 0 5px;font-size:clamp(34px,4.2vw,50px);line-height:1.02}
.challenge-list-heading p{margin:0;max-width:780px;color:var(--muted);font-size:16px}
.challenge-total{display:grid;place-items:center;flex:0 0 auto;min-width:54px;height:54px;padding:0 12px;border:1px solid var(--gold);border-radius:17px;background:#fff7db;color:#8b620b;font-size:25px;font-weight:950;box-shadow:0 7px 18px rgba(45,58,83,.08)}
.challenge-list-section{padding-top:12px}
.challenge-list-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.challenge-list-card{overflow:hidden;border:1px solid var(--line);border-radius:19px;background:rgba(255,253,247,.96);box-shadow:0 8px 24px rgba(25,45,74,.1)}
.challenge-list-cover{min-height:72px;display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;padding:18px 20px 13px;color:#fff;background:linear-gradient(110deg,rgba(3,35,68,.98),rgba(8,68,116,.88)),url('tota-world-map.png') center/cover no-repeat;border-bottom:2px solid var(--gold)}
.challenge-list-cover .period{margin-left:0;font-size:12px}
.challenge-list-body{padding:20px}
.challenge-list-title-row{display:grid;grid-template-columns:minmax(0,1fr) 78px;gap:14px;align-items:start}
.challenge-list-title-row h2{margin:0 0 8px;font-size:23px;line-height:1.12;color:var(--navy)}
.challenge-list-title-row p{margin:0;color:#465872;line-height:1.5}
.challenge-list-logo{display:grid;place-items:center;min-height:72px;border-radius:16px;background:radial-gradient(circle,#fff8d9,#eddaa2)}
.challenge-list-logo img{width:64px;filter:drop-shadow(0 5px 7px rgba(0,0,0,.2))}
.challenge-list-card .pills{margin:15px 0 12px}
.challenge-list-meta{display:flex;gap:18px;flex-wrap:wrap;padding-top:11px;border-top:1px solid #eadfbf;color:#526178;font-size:13px}
.challenge-list-card .actions{margin-top:16px}
.challenge-list-card .btn{padding:9px 13px;font-size:13px}
.challenge-list-card .btn.list-secondary{background:#fffaf0;color:var(--navy)}
.challenge-list-empty{min-height:190px;display:grid;place-items:center;text-align:center;font-size:17px}
.challenge-list-notice{margin-top:18px}
@media(max-width:900px){.challenge-list-grid{grid-template-columns:1fr}.challenge-list-heading{align-items:center}.challenge-list-heading p{font-size:14px}}
@media(max-width:560px){.challenge-list-heading{align-items:flex-start}.challenge-total{min-width:46px;height:46px;font-size:21px}.challenge-list-title-row{grid-template-columns:1fr}.challenge-list-logo{display:none}.challenge-list-card .actions .btn{flex:1 1 auto}}

/* Challenge admin: multilingual text tabs and native UTC date/time pickers. */
.admin-lang-help{margin:-4px 0 14px;color:var(--muted);line-height:1.45}
.admin-lang-editor{margin-bottom:24px;border:1px solid var(--line);border-radius:15px;background:#fffaf0;overflow:hidden}
.admin-lang-tabs{display:flex;gap:5px;flex-wrap:wrap;padding:9px 10px;background:#f1e2b8;border-bottom:1px solid var(--line)}
.admin-lang-tab{min-width:48px;padding:8px 12px;border:1px solid #c9b471;border-radius:9px;background:#fffaf0;color:var(--ink);font-weight:900;cursor:pointer}
.admin-lang-tab:hover{background:#fff3c9}
.admin-lang-tab.is-active{background:linear-gradient(#176eb8,#0b4c87);border-color:#0b4c87;color:#fff;box-shadow:0 3px 8px rgba(11,76,135,.22)}
.admin-lang-pane{display:none;padding:16px}
.admin-lang-pane.is-active{display:block}
.field-hint{display:block;color:var(--muted);font-size:12px;line-height:1.35}
.field input[type="datetime-local"]{min-height:43px;cursor:pointer;font-variant-numeric:tabular-nums}
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.85}
@media(max-width:620px){.admin-lang-tabs{display:grid;grid-template-columns:repeat(4,1fr)}.admin-lang-tab{min-width:0;padding:8px 5px}}


/* Automatické překlady v administraci */
.admin-translation-review{margin:16px 0 24px;border:1px solid rgba(182,132,28,.35);border-radius:14px;background:rgba(255,255,255,.45);overflow:hidden}
.admin-translation-review>summary{cursor:pointer;padding:14px 16px;font-weight:800;color:#082b55;background:rgba(246,225,169,.45)}
.admin-translation-review[open]>summary{border-bottom:1px solid rgba(182,132,28,.25)}
.admin-translation-review .admin-lang-help{padding:0 16px;margin-top:14px}
.admin-translation-review .admin-lang-editor{padding:0 16px 16px}
.translation-state-ok{border-color:rgba(32,133,79,.35);background:rgba(225,248,233,.9);color:#145f38}


/* 2026-08-03 – pravidla: úrovně i spodní jednotky jsou zarovnané ke spodní hraně karet */
.rules-categories{align-items:stretch}
.rules-categories .progress-card{display:flex;flex-direction:column;height:100%}
.rules-categories .progress-card>p{margin:0 0 14px;line-height:1.45}
.rules-categories .progress-card .levels{margin-top:auto}
.rules-categories .progress-card>small{display:block;margin-top:0;padding-top:12px;color:var(--muted)}


/* 2026-08-02 – prázdné Připravované/Archiv jako kompaktní stavové řádky. */
@media (min-width:951px){
  body.home-balanced .home-list-block.is-empty .empty{
    flex:0 0 auto;
    min-height:0;
    padding:12px 14px;
    justify-content:flex-start;
    text-align:left;
    border-radius:11px;
  }
  body.home-balanced .home-lower-section.all-lists-empty .home-lower-grid{
    align-items:start;
    align-content:start;
  }
  body.home-balanced .home-lower-section.all-lists-empty .home-tools{
    height:auto;
  }
  body.home-balanced .home-lower-section.all-lists-empty .progress-panel{
    flex:0 0 auto;
    min-height:0;
  }
}
@media (min-width:951px) and (min-height:720px){
  body.home-balanced .home-lower-section.all-lists-empty .home-list-block .empty{
    flex:0 0 auto;
    min-height:0;
  }
}


/* 2026-08-02 – prázdné Připravované/Archiv stejně vysoké jako box kontroly. */
@media (min-width:951px){
  body.home-balanced .home-lower-section.all-lists-empty .home-lower-grid{
    align-items:start;
    align-content:start;
  }
  body.home-balanced .home-lower-section.all-lists-empty .home-list-block .empty{
    flex:0 0 126px;
    min-height:126px;
    height:126px;
    padding:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    border-radius:14px;
  }
  body.home-balanced .home-lower-section.all-lists-empty .home-tools{
    height:auto;
  }
  body.home-balanced .home-lower-section.all-lists-empty .progress-panel{
    flex:0 0 126px;
    min-height:126px;
    height:126px;
  }
}

/* 2026-08-02 – kompaktní detail výzvy a přehled výsledků bez pořadí. */
body.challenge-results-page .challenge-hero-compact{padding:15px 0 9px}
body.challenge-results-page .challenge-hero-compact .breadcrumbs{margin-bottom:4px;font-size:12px}
body.challenge-results-page .challenge-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:22px}
body.challenge-results-page .challenge-hero-copy h1{font-size:clamp(27px,3vw,36px);line-height:1.05;margin:2px 0 6px}
body.challenge-results-page .challenge-hero-copy>p{max-width:900px;margin:0;color:var(--muted);font-size:14px;line-height:1.4}
body.challenge-results-page .challenge-hero-copy .pills{margin:8px 0 0;gap:6px}
body.challenge-results-page .challenge-hero-copy .pill{padding:4px 8px;font-size:11px}
body.challenge-results-page .challenge-hero-actions{margin:0;justify-content:flex-end;align-items:center;flex-wrap:nowrap}
body.challenge-results-page .challenge-hero-actions .btn{padding:8px 12px;font-size:12px;white-space:nowrap}
body.challenge-results-page .challenge-status-section{padding:3px 0 0}
body.challenge-results-page .challenge-status-grid{gap:9px}
body.challenge-results-page .status-callout{min-height:48px;padding:8px 11px;gap:8px;align-items:center;border-radius:11px}
body.challenge-results-page .status-callout>span{font-size:19px}
body.challenge-results-page .status-callout b{margin:0;font-size:12px}
body.challenge-results-page .status-callout p{font-size:11px;line-height:1.25}
body.challenge-results-page .challenge-stats-section{padding:7px 0 3px}
body.challenge-results-page .challenge-stats{gap:9px;margin:0 auto}
body.challenge-results-page .challenge-stats .stat{height:52px;padding:6px 12px;border-radius:12px;display:grid;grid-template-columns:auto auto 1fr;align-items:center;justify-content:center;gap:8px;text-align:left}
body.challenge-results-page .challenge-stats .stat .ico{font-size:21px;line-height:1}
body.challenge-results-page .challenge-stats .stat b{display:inline;margin:0;font-size:20px;line-height:1;white-space:nowrap}
body.challenge-results-page .challenge-stats .stat>span:last-child{font-size:11px;line-height:1.1}
body.challenge-results-page .challenge-results-section{padding:6px 0 10px}
body.challenge-results-page .results-section-title{margin-bottom:7px}
body.challenge-results-page .results-section-title h2{padding-bottom:6px;font-size:20px}
body.challenge-results-page .results-counter{padding-bottom:6px;color:var(--muted);font-size:12px;font-weight:700}
body.challenge-results-page .results-counter b{color:var(--ink);font-size:14px}
body.challenge-results-page .results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:7px}
body.challenge-results-page .results-search{display:flex;align-items:center;gap:7px;width:min(330px,100%);padding:0 10px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}
body.challenge-results-page .results-search input{width:100%;height:34px;padding:0;border:0;outline:0;background:transparent;color:var(--ink);font:inherit;font-size:13px;text-transform:uppercase}
body.challenge-results-page .results-toolbar-note{color:var(--muted);font-size:11px;text-align:right}
body.challenge-results-page .challenge-results-scroll{height:min(548px,calc(100vh - 360px));min-height:315px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border-radius:12px;background:var(--paper)}
body.challenge-results-page .challenge-results-table{table-layout:fixed}
body.challenge-results-page .challenge-results-table th{position:sticky;top:0;z-index:3;height:37px;padding:0;background:#f2e3b8;box-shadow:0 1px 0 #dfc98e}
body.challenge-results-page .challenge-results-table th:first-child{width:34%}
body.challenge-results-page .challenge-results-table th:not(:first-child){text-align:center}
body.challenge-results-page .challenge-results-table td{height:34px;padding:5px 14px;font-size:13px;line-height:1.15}
body.challenge-results-page .challenge-results-table td:not(:first-child){text-align:center;font-variant-numeric:tabular-nums}
body.challenge-results-page .challenge-results-table tbody tr:nth-child(even){background:#fffaf0}
body.challenge-results-page .challenge-results-table tbody tr:hover{background:#fff1bf}
body.challenge-results-page .challenge-results-table tbody tr[hidden]{display:none}
body.challenge-results-page .results-sort{width:100%;height:37px;display:flex;align-items:center;justify-content:flex-start;gap:7px;padding:0 14px;border:0;background:transparent;color:var(--ink);font:inherit;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.45px;cursor:pointer}
body.challenge-results-page th:not(:first-child) .results-sort{justify-content:center}
body.challenge-results-page .results-sort:hover,body.challenge-results-page .results-sort.active{color:#8d6308;background:rgba(255,255,255,.24)}
body.challenge-results-page .sort-arrow{min-width:13px;color:#a87711;font-size:11px}
body.challenge-results-page .results-filter-empty{padding:28px;text-align:center;color:var(--muted)}
body.challenge-results-page .footer.compact{margin-top:0}
body.challenge-results-page .footer.compact .footer-inner{min-height:40px}
body.challenge-results-page .footer.compact b{display:inline;font-size:15px;margin-right:7px}
body.challenge-results-page .footer.compact span,body.challenge-results-page .footer.compact .footer-inner>div:last-child{font-size:10px}

@media(max-width:950px){
  body.challenge-results-page .challenge-hero-grid{grid-template-columns:1fr}
  body.challenge-results-page .challenge-hero-actions{justify-content:flex-start;flex-wrap:wrap}
  body.challenge-results-page .challenge-status-grid{grid-template-columns:1fr}
  body.challenge-results-page .challenge-stats{grid-template-columns:repeat(2,1fr)}
  body.challenge-results-page .results-toolbar{align-items:stretch;flex-direction:column}
  body.challenge-results-page .results-toolbar-note{text-align:left}
  body.challenge-results-page .challenge-results-scroll{height:min(62vh,548px);min-height:330px}
}
@media(max-width:560px){
  body.challenge-results-page .challenge-stats .stat{grid-template-columns:auto auto;grid-template-rows:auto auto;height:auto;min-height:55px}
  body.challenge-results-page .challenge-stats .stat>span:last-child{grid-column:1/-1;text-align:center}
  body.challenge-results-page .challenge-results-table th:first-child{width:42%}
  body.challenge-results-page .challenge-results-table td,body.challenge-results-page .results-sort{padding-left:8px;padding-right:8px;font-size:11px}
}


/* 2026-08-02 – detail výzvy: 10 viditelných řádků a vyváženější horní část. */
@media (min-width:951px){
  body.challenge-results-page .challenge-hero-compact{padding:21px 0 13px}
  body.challenge-results-page .challenge-hero-compact .breadcrumbs{margin-bottom:6px;font-size:13px}
  body.challenge-results-page .challenge-hero-grid{gap:26px}
  body.challenge-results-page .challenge-hero-copy h1{font-size:clamp(34px,3.4vw,44px);line-height:1.06;margin:3px 0 8px}
  body.challenge-results-page .challenge-hero-copy>p{max-width:940px;font-size:15px;line-height:1.48}
  body.challenge-results-page .challenge-hero-copy .pills{margin-top:10px;gap:7px}
  body.challenge-results-page .challenge-hero-copy .pill{padding:5px 9px;font-size:12px}
  body.challenge-results-page .challenge-hero-actions .btn{padding:10px 14px;font-size:13px}

  body.challenge-results-page .challenge-status-section{padding:5px 0 0}
  body.challenge-results-page .challenge-status-grid{gap:10px}
  body.challenge-results-page .status-callout{min-height:58px;padding:10px 13px;gap:10px}
  body.challenge-results-page .status-callout>span{font-size:22px}
  body.challenge-results-page .status-callout b{font-size:13px}
  body.challenge-results-page .status-callout p{font-size:12px;line-height:1.3}

  body.challenge-results-page .challenge-stats-section{padding:8px 0 4px}
  body.challenge-results-page .challenge-stats{gap:10px}
  body.challenge-results-page .challenge-stats .stat{height:62px;padding:8px 13px;gap:9px}
  body.challenge-results-page .challenge-stats .stat .ico{font-size:23px}
  body.challenge-results-page .challenge-stats .stat b{font-size:22px}
  body.challenge-results-page .challenge-stats .stat>span:last-child{font-size:12px}

  body.challenge-results-page .challenge-results-section{padding:7px 0 10px}
  body.challenge-results-page .results-section-title{margin-bottom:8px}
  body.challenge-results-page .results-section-title h2{padding-bottom:7px;font-size:22px}
  body.challenge-results-page .results-toolbar{margin-bottom:8px}
  body.challenge-results-page .results-search input{height:36px;font-size:13px}

  /* 37 px hlavička + 10 × 34 px datový řádek. Všechny další výsledky zůstávají ve vnitřním scrollu. */
  body.challenge-results-page .challenge-results-scroll{height:377px;min-height:377px;max-height:377px}
}

@media (min-width:951px) and (max-height:780px){
  body.challenge-results-page .challenge-hero-compact{padding:15px 0 9px}
  body.challenge-results-page .challenge-hero-copy h1{font-size:34px}
  body.challenge-results-page .status-callout{min-height:52px;padding:8px 11px}
  body.challenge-results-page .challenge-stats .stat{height:56px}
  body.challenge-results-page .challenge-results-scroll{height:343px;min-height:343px;max-height:343px}
}


/* 2026-08-02 – odstranění duplicitního souhrnu na detailu výzvy */
body.challenge-results-page .challenge-hero-actions{justify-content:flex-end}
body.challenge-results-page .challenge-status-section{padding-top:6px}
body.challenge-results-page .challenge-results-section{padding-top:8px}
@media(max-width:950px){body.challenge-results-page .challenge-hero-actions{justify-content:flex-start}}


/* 2026-08-02 – více výsledků na obrazovce a tmavší text pro lepší čitelnost. */
body.challenge-results-page .challenge-hero-copy>p,
body.challenge-results-page .status-callout p,
body.challenge-results-page .results-toolbar-note,
body.challenge-results-page .results-counter,
body.challenge-results-page .challenge-hero-compact .breadcrumbs,
body.challenge-results-page .challenge-hero-compact .breadcrumbs a{
  color:#405168;
}
body.challenge-results-page .challenge-results-table td{color:#173653}
body.challenge-results-page .results-search input{color:#173653}
body.challenge-results-page .results-search input::placeholder{color:#5b6878;opacity:1}

/* Po odstranění duplicitního souhrnu se na běžném desktopu vejde přibližně 13 řádků. */
@media (min-width:951px) and (min-height:781px){
  body.challenge-results-page .challenge-results-scroll{
    height:479px;
    min-height:479px;
    max-height:479px;
  }
}


/* 2026-08-02 – přehlednější popisky statistik na hlavní stránce */
body.home-balanced .home-stats .stat{display:grid;grid-template-columns:auto auto;align-items:center;justify-content:center;column-gap:13px;text-align:left}
body.home-balanced .home-stats .stat .ico{font-size:25px;line-height:1}
body.home-balanced .home-stats .stat .stat-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;line-height:1}
body.home-balanced .home-stats .stat .stat-copy b{display:block;font-size:24px;line-height:1;margin:0 0 4px;color:var(--ink)}
body.home-balanced .home-stats .stat .stat-copy span{display:block;font-size:11px;line-height:1.1;color:#465873;font-weight:800;white-space:nowrap}
@media(max-width:700px){body.home-balanced .home-stats .stat{column-gap:9px;padding-left:10px;padding-right:10px}body.home-balanced .home-stats .stat .stat-copy b{font-size:21px}body.home-balanced .home-stats .stat .stat-copy span{font-size:10px;white-space:normal}}

/* TOTA Permanent Awards */
.permanent-grid{align-items:stretch}
.permanent-card{display:flex;flex-direction:column}
.permanent-card .challenge-list-body{display:flex;flex-direction:column;gap:12px;flex:1}
.permanent-card .levels{margin-top:auto}
.permanent-card.internal-card{outline:2px dashed rgba(184,134,11,.35)}
.permanent-card .challenge-list-cover{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.check-stack{display:grid;gap:8px;min-width:210px}
.check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.check-row{display:flex!important;align-items:center!important;gap:9px!important;padding:10px 12px;border:1px solid #dcc17a;border-radius:12px;background:#fffaf0;font-weight:700}
.check-row input[type="checkbox"]{width:20px!important;height:20px!important;min-width:20px!important;margin:0!important;flex:0 0 auto!important}
@media(max-width:900px){.nav a{font-size:.78rem}.permanent-grid{grid-template-columns:1fr}}


/* Permanent awards admin cards */
.permanent-admin-overview{display:grid;gap:18px}
.permanent-admin-overview-head{display:grid;gap:14px}
.permanent-admin-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.permanent-admin-stat{background:linear-gradient(180deg,#fffdf6,#f6edd9);border:1px solid #dcc17a;border-radius:16px;padding:16px;text-align:center;box-shadow:0 5px 14px rgba(40,50,72,.06)}
.permanent-admin-stat span{display:block;font-size:23px;line-height:1}
.permanent-admin-stat b{display:block;font-size:28px;line-height:1.1;margin:5px 0;color:#0f3357}
.permanent-admin-stat small{display:block;color:#4d6075;font-weight:800;line-height:1.25}
.permanent-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px}
.permanent-admin-card{display:flex;flex-direction:column;gap:14px;height:100%}
.permanent-admin-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.permanent-admin-title{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:900;color:#0d3357;line-height:1.2}
.permanent-admin-title span{display:inline-block}
.permanent-admin-desc{margin:8px 0 0;color:#324960;line-height:1.45;font-size:14px}
.permanent-type-pill{display:inline-flex;align-items:center;justify-content:center;padding:7px 10px;border-radius:999px;background:#eaf0f7;border:1px solid #bfd0e5;color:#234c77;font-size:11px;font-weight:900;text-align:center;white-space:nowrap}
.permanent-admin-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px;color:#55677b}
.permanent-admin-meta code{background:#f5eedb;border:1px solid #dcc17a;border-radius:8px;padding:3px 8px;color:#35485c}
.permanent-admin-meta b{color:#0d3357}
.permanent-card-checks{min-width:0;grid-template-columns:1fr}
.permanent-card-checks .check-row{padding:9px 10px}
.permanent-admin-preview{margin-top:auto;border:1px solid #e8d9af;border-radius:14px;background:#fffdf7;padding:12px}
.permanent-admin-preview-title{font-size:12px;text-transform:uppercase;letter-spacing:.6px;color:#8d6a18;font-weight:900;margin-bottom:8px}
.permanent-preview-list{display:grid;gap:8px}
.permanent-preview-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:start;padding:8px 10px;border-radius:10px;background:#f7efdc;font-size:13px}
.permanent-preview-row span{color:#30475f}
.permanent-preview-row b{color:#0f3357;text-align:right;font-weight:900}
.mini-empty{padding:10px 12px;border-radius:10px;background:#f7efdc;color:#5b6977;font-size:13px}
.permanent-admin-detail{border-top:1px dashed #dcc17a;padding-top:12px}
.permanent-admin-detail summary{cursor:pointer;list-style:none;font-weight:900;color:#0e406d;display:flex;align-items:center;gap:8px}
.permanent-admin-detail summary::-webkit-details-marker{display:none}
.permanent-admin-detail summary:before{content:'▸';display:inline-block;transition:transform .15s ease;color:#9a6b07}
.permanent-admin-detail[open] summary:before{transform:rotate(90deg)}
.permanent-admin-detail-body{display:grid;gap:12px;margin-top:12px}
.permanent-subhead{margin:2px 0 0;font-size:16px;color:#0f3357}
@media(max-width:1200px){.permanent-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.permanent-admin-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.permanent-admin-grid,.permanent-admin-stats{grid-template-columns:1fr}.permanent-admin-card-top,.permanent-admin-meta{display:grid}.permanent-type-pill{justify-self:start}}

/* Hotfix 14 – veřejná trvalá ocenění: 3 kompaktní karty a rozbalovací podmínky */
body.permanent-awards-page .permanent-public-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:start;
  gap:16px;
}
body.permanent-awards-page .permanent-public-grid .permanent-card{
  height:auto;
  align-self:start;
}
body.permanent-awards-page .permanent-public-grid .challenge-list-cover{
  min-height:54px;
  padding:13px 15px;
  align-items:center;
}
body.permanent-awards-page .permanent-public-grid .challenge-list-body{
  display:grid;
  gap:12px;
  padding:16px;
  flex:none;
}
body.permanent-awards-page .permanent-card-description{
  margin:0;
  min-height:0;
  color:#30475f;
  line-height:1.45;
}
body.permanent-awards-page .permanent-card-badges{
  display:flex;
  gap:6px;
  align-items:center;
  flex-wrap:wrap;
}
body.permanent-awards-page .permanent-public-preview{
  display:grid;
  gap:7px;
}
body.permanent-awards-page .permanent-public-preview-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:10px;
  background:#f5edda;
  font-size:13px;
}
body.permanent-awards-page .permanent-public-preview-row span{
  min-width:0;
  color:#27415c;
  font-weight:700;
}
body.permanent-awards-page .permanent-public-preview-row b{
  color:#0d3357;
  font-weight:900;
  white-space:nowrap;
}
body.permanent-awards-page .permanent-public-detail{
  border-top:1px dashed #d9bd74;
  padding-top:10px;
}
body.permanent-awards-page .permanent-public-detail summary{
  display:flex;
  align-items:center;
  gap:7px;
  cursor:pointer;
  list-style:none;
  color:#0e406d;
  font-size:13px;
  font-weight:900;
}
body.permanent-awards-page .permanent-public-detail summary::-webkit-details-marker{display:none}
body.permanent-awards-page .permanent-public-detail summary:after{
  content:'▾';
  margin-left:auto;
  color:#9a6b07;
  transition:transform .15s ease;
}
body.permanent-awards-page .permanent-public-detail[open] summary:after{
  transform:rotate(180deg);
}
body.permanent-awards-page .permanent-public-detail-body{
  display:grid;
  gap:10px;
  margin-top:12px;
}
body.permanent-awards-page .permanent-public-detail-body .levels{
  margin-top:0;
}
body.permanent-awards-page .permanent-public-detail-body h4{
  margin:5px 0 0;
  color:#0f3357;
  font-size:14px;
}
@media(max-width:1180px){
  body.permanent-awards-page .permanent-public-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:760px){
  body.permanent-awards-page .permanent-public-grid{
    grid-template-columns:1fr;
  }
}

/* Hotfix 15 – stejně vysoké karty v jednotlivých řádcích */
body.permanent-awards-page .permanent-public-grid{
  align-items:stretch;
}
body.permanent-awards-page .permanent-public-grid .permanent-card{
  height:100%;
  align-self:stretch;
}
body.permanent-awards-page .permanent-public-grid .challenge-list-body{
  display:flex;
  flex-direction:column;
  height:100%;
}
body.permanent-awards-page .permanent-public-preview{
  margin-bottom:auto;
}
body.permanent-awards-page .permanent-public-detail{
  margin-top:auto;
}

/* Na mobilu se karty řadí pod sebe a používají přirozenou výšku. */
@media(max-width:760px){
  body.permanent-awards-page .permanent-public-grid .permanent-card{
    height:auto;
  }
}

/* Hotfix 16 – kompaktní hlavičky, stavové štítky a lokalizované karty */
body.permanent-awards-page .permanent-public-grid .challenge-list-cover{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  flex-wrap:nowrap;
}
body.permanent-awards-page .permanent-public-grid .challenge-list-cover > .badge:first-child{
  min-width:0;
  width:max-content;
  max-width:100%;
  white-space:normal;
  line-height:1.15;
}
body.permanent-awards-page .permanent-card-badges{
  justify-content:flex-end;
  flex-wrap:nowrap;
  min-width:0;
}
body.permanent-awards-page .permanent-card-badges .badge{
  padding:5px 8px;
  font-size:10px;
  line-height:1;
  white-space:nowrap;
}
body.permanent-awards-page .permanent-public-preview-row span{
  overflow-wrap:anywhere;
}
.permanent-admin-title{
  min-width:0;
}
.permanent-admin-title span{
  overflow-wrap:anywhere;
}
.permanent-type-pill{
  flex:0 0 auto;
  max-width:145px;
  white-space:normal;
  line-height:1.15;
}
@media(max-width:420px){
  body.permanent-awards-page .permanent-public-grid .challenge-list-cover{
    grid-template-columns:1fr;
  }
  body.permanent-awards-page .permanent-card-badges{
    justify-content:flex-start;
  }
}

/* Hotfix 18 – jednoznačné označení administrace a veřejného interního náhledu */
.permanent-page-mode{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
  padding:16px 18px;
  border-radius:16px;
  border:1px solid;
  box-shadow:0 8px 24px rgba(16,50,82,.08);
}
.permanent-page-mode > div:first-child{
  display:grid;
  gap:4px;
  min-width:0;
}
.permanent-page-mode-kicker{
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
}
.permanent-page-mode strong{
  color:#102f50;
  font-size:20px;
  line-height:1.15;
}
.permanent-page-mode small{
  color:#486178;
  line-height:1.4;
}
.permanent-page-mode-admin{
  background:linear-gradient(135deg,#fff5d7,#f7e5a8);
  border-color:#d4a72c;
}
.permanent-page-mode-admin .permanent-page-mode-kicker{
  color:#8a5e00;
}
.permanent-page-mode-preview{
  background:linear-gradient(135deg,#eaf5ff,#d8ebff);
  border-color:#6ca5d8;
}
.permanent-page-mode-preview .permanent-page-mode-kicker{
  color:#155b91;
}
.permanent-page-mode-actions{
  display:flex;
  gap:9px;
  flex-wrap:wrap;
  justify-content:flex-end;
  flex:0 0 auto;
}
.permanent-internal-preview-section{
  padding-bottom:0;
}
@media(max-width:760px){
  .permanent-page-mode{
    align-items:flex-start;
    flex-direction:column;
  }
  .permanent-page-mode-actions{
    width:100%;
    justify-content:flex-start;
  }
}

/* Hotfix 19 – lepší kontrast tlačítek v informačních panelech */
.permanent-page-mode-actions .btn.secondary{
  background:#fffaf0;
  color:#123f68 !important;
  border:1px solid #d5a52b;
  box-shadow:0 2px 8px rgba(16,50,82,.08);
  text-shadow:none;
  font-weight:800;
}
.permanent-page-mode-actions .btn.secondary:hover,
.permanent-page-mode-actions .btn.secondary:focus{
  background:#0f4f82;
  color:#ffffff !important;
  border-color:#0f4f82;
  transform:translateY(-1px);
}
.permanent-page-mode-preview .permanent-page-mode-actions .btn.secondary{
  background:#ffffff;
  border-color:#6ca5d8;
  color:#155b91 !important;
}
.permanent-page-mode-preview .permanent-page-mode-actions .btn.secondary:hover,
.permanent-page-mode-preview .permanent-page-mode-actions .btn.secondary:focus{
  background:#155b91;
  border-color:#155b91;
  color:#ffffff !important;
}

/* Hotfix 20 – podrobný rozpad výsledků trvalých ocenění */
.permanent-result-box{
  display:grid;
  gap:9px;
  margin:2px 0 4px;
  padding:11px;
  border:1px solid #bfd5e8;
  border-radius:12px;
  background:#eef7ff;
}
.permanent-result-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  color:#123e66;
  font-size:12px;
}
.permanent-result-head > span{
  text-align:right;
  color:#526d83;
  line-height:1.3;
}
.permanent-result-head > span strong{
  color:#0b3d68;
  font-size:15px;
}
.permanent-result-levels{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.permanent-result-pill{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:6px 8px;
  border-radius:9px;
  background:#ffffff;
  border:1px solid #d7e5f0;
  font-size:11px;
}
.permanent-result-pill span{
  min-width:0;
  overflow-wrap:anywhere;
  color:#344f66;
  font-weight:700;
}
.permanent-result-pill b{
  color:#073d69;
  font-size:13px;
  white-space:nowrap;
}
.permanent-result-pill.single{
  grid-column:1/-1;
}
.permanent-result-categories{
  display:grid;
  gap:9px;
}
.permanent-result-category{
  display:grid;
  gap:5px;
  padding-top:7px;
  border-top:1px dashed #b9d0e1;
}
.permanent-result-category:first-child{
  padding-top:0;
  border-top:0;
}
.permanent-result-category > strong{
  color:#173f61;
  font-size:12px;
}
.permanent-result-empty{
  margin:2px 0 4px;
  padding:10px;
  border-radius:10px;
  background:#f2f2f2;
  color:#6b6b6b;
  font-size:12px;
  font-weight:700;
}
@media(max-width:440px){
  .permanent-result-head{
    flex-direction:column;
  }
  .permanent-result-head > span{
    text-align:left;
  }
  .permanent-result-levels{
    grid-template-columns:1fr;
  }
}

/* Hotfix 21 – sbalené výsledky a rychlý přehled pro kratší karty */
.permanent-result-box.permanent-result-details{
  display:block;
  margin:2px 0 4px;
  padding:0;
  overflow:hidden;
  border:1px solid #bfd5e8;
  border-radius:11px;
  background:#eef7ff;
}
.permanent-result-summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:9px 11px;
  cursor:pointer;
  list-style:none;
  color:#123e66;
  font-size:12px;
}
.permanent-result-summary::-webkit-details-marker{
  display:none;
}
.permanent-result-summary:after{
  content:'▾';
  grid-column:3;
  color:#176099;
  font-size:13px;
  transition:transform .15s ease;
}
.permanent-result-details[open] .permanent-result-summary:after{
  transform:rotate(180deg);
}
.permanent-result-summary-count{
  color:#526d83;
  white-space:nowrap;
}
.permanent-result-summary-count strong{
  color:#0b3d68;
  font-size:14px;
}
.permanent-result-body{
  display:grid;
  gap:9px;
  padding:0 10px 10px;
  border-top:1px dashed #bfd5e8;
  padding-top:10px;
}
.permanent-result-details:not([open]) .permanent-result-body{
  display:none;
}

.permanent-admin-preview.permanent-admin-preview-details{
  margin-top:auto;
  padding:0;
  overflow:hidden;
}
.permanent-admin-preview-summary{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:9px 11px;
  cursor:pointer;
  list-style:none;
  color:#8d6a18;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.45px;
}
.permanent-admin-preview-summary::-webkit-details-marker{
  display:none;
}
.permanent-admin-preview-summary:after{
  content:'▾';
  margin-left:auto;
  color:#9a6b07;
  transition:transform .15s ease;
}
.permanent-admin-preview-details[open] .permanent-admin-preview-summary:after{
  transform:rotate(180deg);
}
.permanent-admin-preview-body{
  padding:0 11px 11px;
  border-top:1px dashed #e3d09d;
  padding-top:9px;
}
.permanent-admin-preview-details:not([open]) .permanent-admin-preview-body{
  display:none;
}

/* Karty jsou ve výchozím stavu výrazně kratší. */
.permanent-admin-card{
  align-content:start;
}
.permanent-card-checks{
  margin-top:2px;
}

@media(max-width:440px){
  .permanent-result-summary{
    grid-template-columns:minmax(0,1fr) auto auto;
  }
  .permanent-result-summary-count{
    font-size:11px;
  }
}

/* Hotfix 24 – širší administrace trvalých ocenění */
.permanent-admin-section > .shell{
  width:min(1680px,calc(100% - 36px));
  max-width:none;
}
.permanent-admin-section .permanent-admin-grid{
  gap:20px;
}
.permanent-admin-section .permanent-admin-card{
  min-width:0;
}
.permanent-admin-section .permanent-admin-detail-body .table-wrap{
  width:100%;
}
.permanent-admin-section .permanent-admin-detail-body table{
  min-width:0;
  table-layout:auto;
}
.permanent-admin-section .permanent-admin-detail-body td input[type="number"]{
  width:100%;
  min-width:90px;
  max-width:180px !important;
}

/* Na středně širokých monitorech jsou pohodlnější dva sloupce. */
@media(min-width:1001px) and (max-width:1320px){
  .permanent-admin-section .permanent-admin-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* Mobilní a úzké zobrazení zůstává bez bočních ztrát. */
@media(max-width:760px){
  .permanent-admin-section > .shell{
    width:min(100% - 20px,1680px);
  }
}

/* Hotfix 25 – spolehlivé ukládání a viditelný stav */
.permanent-storage-status{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
  padding:9px 13px;
  border:1px solid #b9d8bc;
  border-radius:11px;
  background:#eef8ef;
  color:#315c36;
  font-size:12px;
}
.permanent-storage-status.fallback{
  border-color:#e1bd67;
  background:#fff6db;
  color:#795500;
}
.permanent-save-message{
  position:sticky;
  top:8px;
  z-index:80;
  box-shadow:0 7px 22px rgba(14,48,78,.14);
}
.permanent-save-actions{
  position:sticky;
  bottom:10px;
  z-index:75;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:20px;
  padding:12px;
  border:1px solid #d4a72c;
  border-radius:14px;
  background:rgba(255,248,224,.96);
  box-shadow:0 10px 30px rgba(14,48,78,.18);
  backdrop-filter:blur(7px);
}
.permanent-save-actions-text{
  display:grid;
  gap:2px;
  margin-right:auto;
  color:#173f61;
}
.permanent-save-actions-text small{
  color:#617386;
}
@media(max-width:760px){
  .permanent-storage-status{
    align-items:flex-start;
    flex-direction:column;
  }
  .permanent-save-actions{
    bottom:5px;
  }
  .permanent-save-actions-text{
    width:100%;
  }
}

/* Hotfix 26 – garantované odeslání formuláře a stav neuložených změn */
.permanent-save-actions .btn.secondary{
  background:#fff8e6;
  color:#6f4b00 !important;
  border:1px solid #d5a52b;
  text-shadow:none;
  opacity:1;
  font-weight:800;
}
.permanent-save-actions .btn.secondary:hover,
.permanent-save-actions .btn.secondary:focus{
  background:#b8352b;
  color:#ffffff !important;
  border-color:#9f281f;
}
#permanent-awards-form.has-unsaved-changes .permanent-save-actions{
  border-color:#d97b22;
  background:rgba(255,239,206,.98);
  box-shadow:0 10px 32px rgba(173,91,12,.23);
}
#permanent-awards-form.has-unsaved-changes .permanent-save-actions-text b{
  color:#9b4500;
}

/* Hotfix 27 – přesný počet skutečně změněných polí */
#permanent-awards-form.has-unsaved-changes .permanent-save-actions{
  border-width:2px;
}
#permanent-awards-form.has-unsaved-changes .permanent-save-actions-text b{
  font-size:15px;
}

/* Hotfix 30 – původní tabulkový vzhled + přidání a koš */
.pa-level-editor{
  display:grid;
  gap:8px;
  margin:6px 0 14px;
}
.pa-level-editor-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 0 7px;
  border:0;
  border-radius:0;
  background:transparent;
}
.pa-level-editor-toolbar small{
  color:#6d6350;
  line-height:1.3;
}
.pa-level-editor-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
.pa-level-editor-actions .btn{
  padding:6px 9px;
  font-size:11px;
  white-space:nowrap;
}
.pa-level-editor-actions .btn.secondary{
  background:#fff;
  color:#164d7b!important;
  border-color:#77a8d1;
}
.pa-level-table-wrap{
  margin:0;
}
.pa-level-table{
  width:100%;
}
.pa-level-table th:last-child,
.pa-level-table td:last-child{
  width:38px;
  min-width:38px;
  padding-left:3px;
  padding-right:3px;
  text-align:center;
}
.pa-level-table td{
  vertical-align:middle;
}
.pa-level-table input[type=number],
.pa-combined-level-table input[type=number]{
  width:100%;
  min-width:88px;
  max-width:180px;
}
.pa-level-standard-label{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:#0f3357;
  font-weight:700;
}
.pa-custom-level-fields{
  display:grid;
  grid-template-columns:44px minmax(110px,1fr);
  align-items:center;
  gap:6px;
  min-width:0;
}
.pa-level-icon-input,
.pa-level-name-input{
  width:100%;
  min-width:0;
  border:1px solid #c9b67d;
  border-radius:5px;
  background:#fff;
  padding:5px 6px;
  color:#0b315b;
  font-weight:700;
}
.pa-level-icon-input{
  text-align:center;
  font-size:16px;
  padding-left:2px;
  padding-right:2px;
}
.pa-level-row.has-error td,
.pa-combined-level-block.has-error{
  background:#fff0ee;
}
.pa-level-metric{
  color:#294d6b;
  font-size:12px;
  font-weight:700;
  overflow-wrap:anywhere;
}
.pa-level-delete-cell{
  text-align:center;
}
.pa-remove-level{
  display:inline-grid;
  place-items:center;
  width:27px;
  height:27px;
  padding:0;
  border:1px solid #e2b7b1;
  border-radius:6px;
  background:#fff8f7;
  color:#9c3027;
  cursor:pointer;
  font-size:13px;
  line-height:1;
}
.pa-remove-level:hover,
.pa-remove-level:focus{
  background:#b8352b;
  color:#fff;
  border-color:#9f281f;
}
.pa-combined-level-list{
  display:grid;
  gap:14px;
}
.pa-combined-level-block{
  display:grid;
  gap:5px;
}
.pa-combined-level-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.pa-combined-level-heading .permanent-subhead{
  margin:2px 0;
}
.pa-combined-level-heading .pa-custom-level-fields{
  width:min(310px,100%);
}
.pa-combined-level-table{
  width:100%;
}
.pa-combined-level-table td:last-child,
.pa-combined-level-table th:last-child{
  width:46%;
}
.pa-requirement-row{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}
.pa-level-editor-note{
  color:#6d6350;
  font-size:10px;
}
@media(max-width:760px){
  .pa-level-editor-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }
  .pa-level-editor-actions{
    justify-content:flex-start;
  }
  .pa-level-table{
    min-width:520px;
  }
}

/* Hotfix 31 – tlačítka pro přidání úrovně vždy vedle sebe */
.pa-level-editor-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
}
.pa-level-editor-actions{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
}
.pa-level-editor-actions .btn{
  flex:0 0 auto;
  padding:6px 8px;
  font-size:10px;
  line-height:1.15;
  white-space:nowrap;
}
@media(max-width:760px){
  .pa-level-editor-toolbar{
    grid-template-columns:1fr;
    align-items:start;
  }
  .pa-level-editor-actions{
    width:100%;
    justify-content:flex-start;
  }
  .pa-level-editor-actions .btn{
    flex:1 1 0;
    text-align:center;
  }
}

/* Hotfix 32 – audit úplnosti standardní řady úrovní */
.pa-sequence-audit{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 14px;
  padding:10px 13px;
  border:1px solid #bfd5e8;
  border-radius:11px;
  background:#eef7ff;
  color:#244d6f;
  font-size:12px;
}
.pa-sequence-audit.warn{
  border-color:#dfb75f;
  background:#fff6dc;
  color:#755300;
}
.pa-sequence-audit.ok{
  border-color:#a8d3ad;
  background:#edf8ef;
  color:#2f6337;
}
.pa-sequence-status{
  font-weight:700;
}
.pa-sequence-status.warn{
  color:#9b5200;
}
.pa-sequence-status.ok{
  color:#2f6b38;
}



/* Hotfix 36 – Excel export/import trvalých ocenění */
.pa-excel-panel{
  display:grid;
  gap:14px;
  border-color:#b8d3e7;
  background:linear-gradient(135deg,#f5fbff,#fffaf0);
}
.pa-excel-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.pa-excel-panel-head h2{margin:0 0 5px}
.pa-excel-panel-head p{margin:0;max-width:900px;color:#486178;line-height:1.45}
.pa-excel-import-form{
  display:grid;
  grid-template-columns:minmax(260px,1fr) auto;
  align-items:end;
  gap:10px;
  padding:12px;
  border:1px solid #d9bd74;
  border-radius:12px;
  background:#fffdf6;
}
.pa-excel-file{display:grid;gap:5px;color:#173f61;font-weight:800}
.pa-excel-file input[type=file]{
  width:100%;padding:8px;border:1px solid #cbb36d;border-radius:8px;background:#fff;color:#25445f;
}
.pa-excel-sheet-list{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.pa-excel-sheet-list span{
  padding:8px 10px;border:1px solid #d7e5f0;border-radius:9px;background:#fff;color:#405c73;font-size:11px;line-height:1.35;
}
@media(max-width:900px){
  .pa-excel-panel-head{flex-direction:column}
  .pa-excel-import-form{grid-template-columns:1fr}
  .pa-excel-sheet-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){.pa-excel-sheet-list{grid-template-columns:1fr}}

/* Hotfix 37 – kompaktní a sjednocená horní část administrace */
.pa-system-summary{
  display:grid;
  gap:13px;
  padding:17px 18px;
}
.pa-system-summary-head{
  display:grid;
  grid-template-columns:minmax(260px,.9fr) minmax(620px,1.65fr);
  align-items:center;
  gap:22px;
}
.pa-system-summary-head h2{margin:0 0 5px}
.pa-system-summary-head p{margin:0;color:#486178;line-height:1.4}
.pa-system-status-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.pa-system-status,
.pa-system-status-grid .pa-sequence-audit{
  display:grid;
  align-content:center;
  gap:2px;
  min-height:62px;
  margin:0;
  padding:9px 10px;
  border:1px solid #b7d5bb;
  border-radius:11px;
  background:#eef8ef;
  color:#2e6035;
  font-size:11px;
  line-height:1.22;
}
.pa-system-status-grid .pa-sequence-audit span{font-weight:800}
.pa-system-status > span{font-weight:700}
.pa-system-status > b{color:#123e66;font-size:12px;overflow-wrap:anywhere}
.pa-system-status > small{color:#5c7180}
.pa-system-status.warn,
.pa-system-status-grid .pa-sequence-audit.warn{
  border-color:#e0bc68;
  background:#fff5d8;
  color:#785400;
}
.pa-system-rules{
  border-top:1px dashed #d7bd76;
  padding-top:10px;
}
.pa-system-rules summary{
  display:flex;
  align-items:center;
  gap:7px;
  cursor:pointer;
  list-style:none;
  color:#164d7b;
  font-weight:900;
  font-size:12px;
}
.pa-system-rules summary::-webkit-details-marker{display:none}
.pa-system-rules summary:after{
  content:'▾';
  margin-left:auto;
  color:#98700a;
  transition:transform .15s ease;
}
.pa-system-rules[open] summary:after{transform:rotate(180deg)}
.pa-system-rules-body{
  display:grid;
  gap:5px;
  margin-top:10px;
  padding:11px 13px;
  border-radius:10px;
  background:#f7f2e5;
  color:#405970;
  font-size:12px;
}
.pa-system-rules-body p{margin:0;line-height:1.42}
.permanent-save-message{
  padding:10px 13px;
  font-size:12px;
}
@media(max-width:1280px){
  .pa-system-summary-head{grid-template-columns:1fr}
}
@media(max-width:820px){
  .pa-system-status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:500px){
  .pa-system-status-grid{grid-template-columns:1fr}
}

/* Hotfix 41 – tři administrační karty i na běžném notebooku */
@media(min-width:1051px){
  .permanent-admin-section .permanent-admin-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
@media(min-width:761px) and (max-width:1050px){
  .permanent-admin-section .permanent-admin-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:760px){
  .permanent-admin-section .permanent-admin-grid{
    grid-template-columns:1fr !important;
  }
}

/* Hotfix 42 – srovnané vnitřní řádky administračních karet */
@media(min-width:761px){
  .permanent-admin-section .permanent-admin-card{
    display:grid;
    grid-template-rows:auto 28px auto auto auto auto;
    align-content:start;
    gap:12px;
  }

  /*
   * Nadpis a typ zůstávají vedle sebe, popis ale pokračuje přes celou
   * šířku karty. Tím se zkrátí zalamování a sjednotí výška hlaviček.
   */
  .permanent-admin-section .permanent-admin-card-top{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto 1fr;
    column-gap:10px;
    row-gap:7px;
    align-items:start;
    min-width:0;
  }
  .permanent-admin-section .permanent-admin-card-top > div{
    display:contents;
  }
  .permanent-admin-section .permanent-admin-title{
    grid-column:1;
    grid-row:1;
    min-width:0;
  }
  .permanent-admin-section .permanent-type-pill{
    grid-column:2;
    grid-row:1;
    align-self:start;
    max-width:145px;
    white-space:normal;
    line-height:1.15;
  }
  .permanent-admin-section .permanent-admin-desc{
    grid-column:1/-1;
    grid-row:2;
    align-self:start;
    margin:0;
  }

  /* Stejná výška horní zóny zajistí návaznost modrých výsledkových řádků. */
  .permanent-admin-section .permanent-admin-card-top{
    min-height:108px;
  }

  .permanent-admin-section .permanent-admin-meta{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    min-height:28px;
    flex-wrap:nowrap;
  }
  .permanent-admin-section .permanent-admin-meta code{
    min-width:0;
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .permanent-admin-section .permanent-admin-meta > span{
    white-space:nowrap;
    text-align:right;
  }

  .permanent-admin-section .permanent-result-box.permanent-result-details,
  .permanent-admin-section .permanent-result-empty{
    align-self:start;
    width:100%;
    margin:0;
  }

  .permanent-admin-section .permanent-card-checks{
    align-self:start;
    width:100%;
    margin-top:0;
  }

  .permanent-admin-section .permanent-admin-preview.permanent-admin-preview-details{
    align-self:start;
    width:100%;
    margin-top:0;
  }

  .permanent-admin-section .permanent-admin-detail{
    align-self:start;
    width:100%;
  }
}

/* Při třech užších sloupcích na notebooku necháme hlavičce trochu více místa. */
@media(min-width:1051px) and (max-width:1399px){
  .permanent-admin-section .permanent-admin-card-top{
    min-height:118px;
  }
}

/* Ve dvou sloupcích je karta širší, takže stačí nižší hlavička. */
@media(min-width:761px) and (max-width:1050px){
  .permanent-admin-section .permanent-admin-card-top{
    min-height:96px;
  }
}

/* Mobil zůstává přirozený, bez pevných výšek. */
@media(max-width:760px){
  .permanent-admin-section .permanent-admin-card{
    display:flex;
  }
}

/* =========================================================
   Hotfix 43 – kompaktní administrační karty
   Méně prázdného místa při zachování zarovnání všech řádků.
   ========================================================= */
@media(min-width:761px){
  .permanent-admin-section .permanent-admin-grid{
    column-gap:16px !important;
    row-gap:14px !important;
    margin-top:14px;
  }

  .permanent-admin-section .panel.permanent-admin-card{
    padding:14px;
    gap:8px;
    border-radius:15px;
  }

  .permanent-admin-section .permanent-admin-card-top{
    column-gap:8px;
    row-gap:4px;
    min-height:86px !important;
  }

  .permanent-admin-section .permanent-admin-title{
    font-size:17px;
    line-height:1.12;
  }

  .permanent-admin-section .permanent-admin-desc{
    font-size:12px;
    line-height:1.32;
  }

  .permanent-admin-section .permanent-type-pill{
    max-width:132px;
    padding:5px 8px;
    font-size:9px;
    line-height:1.12;
  }

  .permanent-admin-section .permanent-admin-meta{
    min-height:23px;
    gap:6px;
    font-size:11px;
  }

  .permanent-admin-section .permanent-admin-meta code{
    padding:2px 7px;
    border-radius:7px;
  }

  .permanent-admin-section .permanent-result-summary{
    min-height:36px;
    padding:7px 9px;
  }

  .permanent-admin-section .permanent-result-body{
    gap:6px;
    padding:7px 8px 8px;
  }

  .permanent-admin-section .permanent-result-pill{
    padding:5px 7px;
  }

  .permanent-admin-section .permanent-card-checks{
    gap:6px;
  }

  .permanent-admin-section .permanent-card-checks .check-row{
    padding:7px 9px;
    border-radius:9px;
  }

  .permanent-admin-section .permanent-admin-preview-summary{
    min-height:35px;
    padding:7px 9px;
    font-size:10px;
  }

  .permanent-admin-section .permanent-admin-detail{
    padding-top:8px;
  }

  .permanent-admin-section .permanent-admin-detail summary{
    font-size:12px;
    line-height:1.2;
  }

  .permanent-admin-section .permanent-admin-detail-body{
    gap:9px;
    margin-top:9px;
  }
}

/* Běžný notebook se třemi sloupci – místo zůstává vyrovnané,
   ale hlavičky už nejsou zbytečně vysoké. */
@media(min-width:1051px) and (max-width:1399px){
  .permanent-admin-section .permanent-admin-card-top{
    min-height:94px !important;
  }
}

/* Široký desktop. */
@media(min-width:1400px){
  .permanent-admin-section .permanent-admin-card-top{
    min-height:82px !important;
  }
}

/* Dva sloupce – ještě kompaktnější hlavička. */
@media(min-width:761px) and (max-width:1050px){
  .permanent-admin-section .permanent-admin-card-top{
    min-height:78px !important;
  }
}

/* Na mobilu žádné pevné výšky ani ořezávání. */
@media(max-width:760px){
  .permanent-admin-section .panel.permanent-admin-card{
    padding:13px;
    gap:9px;
  }
}

/* =========================================================
   Hotfix 44 – skutečně kompaktní administrace
   Opravuje konstrukci rozložení, ne pouze velikost písma.
   ========================================================= */

/* Kompaktní horní část pouze na stránce správy trvalých ocenění. */
@supports selector(body:has(.permanent-admin-section)){
  body:has(.permanent-admin-section) .admin-bar{
    padding:5px 10px;
    font-size:12px;
  }
  body:has(.permanent-admin-section) .page-hero{
    padding:14px 0 10px;
  }
  body:has(.permanent-admin-section) .page-hero h1{
    margin:0 0 8px;
    font-size:30px;
    line-height:1.05;
  }
  body:has(.permanent-admin-section) .page-hero .actions{
    gap:7px;
    margin-top:0;
  }
  body:has(.permanent-admin-section) .page-hero .btn{
    padding:7px 12px;
    border-radius:8px;
    font-size:12px;
  }
}

.permanent-admin-section{
  padding-top:4px;
  padding-bottom:20px;
}
.permanent-admin-section > .shell{
  width:min(1680px,calc(100% - 24px));
}

/* Tenký administrační informační pruh. */
.permanent-admin-section .permanent-page-mode{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  margin:0 0 9px;
  padding:9px 13px;
  border-radius:12px;
  box-shadow:0 4px 12px rgba(16,50,82,.06);
}
.permanent-admin-section .permanent-page-mode > div:first-child{
  display:grid;
  grid-template-columns:auto auto minmax(0,1fr);
  align-items:baseline;
  gap:5px 9px;
}
.permanent-admin-section .permanent-page-mode-kicker{
  font-size:9px;
}
.permanent-admin-section .permanent-page-mode strong{
  font-size:16px;
  white-space:nowrap;
}
.permanent-admin-section .permanent-page-mode small{
  font-size:11px;
  line-height:1.25;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.permanent-admin-section .permanent-page-mode-actions{
  gap:6px;
}
.permanent-admin-section .permanent-page-mode-actions .btn{
  padding:7px 10px;
  border-radius:8px;
  font-size:11px;
}

/* Stav systému: nižší pruh a menší stavové bloky. */
.permanent-admin-section .pa-system-summary{
  gap:7px;
  margin-bottom:9px;
  padding:10px 13px;
  border-radius:13px;
}
.permanent-admin-section .pa-system-summary-head{
  grid-template-columns:minmax(245px,.7fr) minmax(650px,1.8fr);
  gap:14px;
}
.permanent-admin-section .pa-system-summary-head h2{
  margin:0 0 2px;
  font-size:18px;
  line-height:1.1;
}
.permanent-admin-section .pa-system-summary-head p{
  font-size:11px;
  line-height:1.25;
}
.permanent-admin-section .pa-system-status-grid{
  gap:6px;
}
.permanent-admin-section .pa-system-status,
.permanent-admin-section .pa-system-status-grid .pa-sequence-audit{
  min-height:44px;
  gap:0;
  padding:6px 8px;
  border-radius:8px;
  font-size:9px;
  line-height:1.15;
}
.permanent-admin-section .pa-system-status > b{
  font-size:10px;
}
.permanent-admin-section .pa-system-status > small{
  font-size:8px;
}
.permanent-admin-section .pa-system-rules{
  padding-top:5px;
}
.permanent-admin-section .pa-system-rules summary{
  font-size:10px;
}

/* Excel je ve výchozím stavu jediný nízký řádek. */
.permanent-admin-section .pa-excel-panel{
  display:block;
  margin:0 0 9px;
  padding:0;
  overflow:hidden;
  border-radius:13px;
}
.permanent-admin-section .pa-excel-panel-summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:54px;
  padding:8px 12px;
  cursor:pointer;
  list-style:none;
}
.permanent-admin-section .pa-excel-panel-summary::-webkit-details-marker{
  display:none;
}
.permanent-admin-section .pa-excel-panel-summary-copy{
  display:grid;
  gap:1px;
  min-width:0;
}
.permanent-admin-section .pa-excel-panel-summary-copy strong{
  font-size:16px;
  line-height:1.1;
}
.permanent-admin-section .pa-excel-panel-summary-copy small{
  color:#536b7f;
  font-size:10px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.permanent-admin-section .pa-excel-panel-summary-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.permanent-admin-section .pa-excel-panel-summary-actions .btn{
  padding:7px 10px;
  font-size:10px;
}
.permanent-admin-section .pa-excel-panel-toggle{
  color:#164d7b;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}
.permanent-admin-section .pa-excel-panel-toggle:after{
  content:' ▾';
  color:#9a6b07;
}
.permanent-admin-section .pa-excel-panel[open] .pa-excel-panel-toggle:after{
  content:' ▴';
}
.permanent-admin-section .pa-excel-panel-body{
  display:grid;
  gap:8px;
  padding:0 12px 11px;
  border-top:1px dashed #c9dceb;
  padding-top:9px;
}
.permanent-admin-section .pa-excel-panel-description{
  margin:0;
  color:#486178;
  font-size:11px;
  line-height:1.3;
}
.permanent-admin-section .pa-excel-import-form{
  padding:8px;
}
.permanent-admin-section .pa-excel-sheet-list span{
  padding:6px 8px;
  font-size:9px;
}

/* Hlavní přehled – jedna kompaktní oblast. */
.permanent-admin-section .permanent-admin-overview{
  gap:9px;
  margin-bottom:0;
  padding:11px 13px;
  border-radius:13px;
}
.permanent-admin-section .permanent-admin-overview-head{
  display:grid;
  grid-template-columns:auto minmax(520px,1fr);
  align-items:center;
  gap:14px;
}
.permanent-admin-section .permanent-admin-overview-head h2{
  margin:0;
  font-size:18px;
  white-space:nowrap;
}
.permanent-admin-section .permanent-admin-overview-head .check-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
.permanent-admin-section .permanent-admin-overview-head .check-row{
  padding:7px 9px;
  border-radius:8px;
  font-size:11px;
}
.permanent-admin-section .permanent-admin-overview-head .check-row input[type="checkbox"]{
  width:17px!important;
  height:17px!important;
  min-width:17px!important;
}
.permanent-admin-section .permanent-admin-stats{
  gap:7px;
}
.permanent-admin-section .permanent-admin-stat{
  display:grid;
  grid-template-columns:auto auto;
  grid-template-rows:auto auto;
  align-items:center;
  justify-content:center;
  column-gap:7px;
  padding:7px 9px;
  border-radius:10px;
}
.permanent-admin-section .permanent-admin-stat span{
  grid-row:1/3;
  font-size:18px;
}
.permanent-admin-section .permanent-admin-stat b{
  margin:0;
  font-size:20px;
  line-height:1;
  text-align:left;
}
.permanent-admin-section .permanent-admin-stat small{
  font-size:9px;
  line-height:1.1;
  text-align:left;
}

/* Karty: skutečně menší mezery a kratší pevná horní zóna. */
@media(min-width:761px){
  .permanent-admin-section .permanent-admin-grid{
    gap:11px !important;
    margin-top:10px;
  }
  .permanent-admin-section .panel.permanent-admin-card{
    grid-template-rows:68px 23px auto auto auto auto;
    gap:6px;
    padding:11px;
    border-radius:12px;
  }
  .permanent-admin-section .permanent-admin-card-top{
    min-height:0!important;
    height:68px;
    column-gap:7px;
    row-gap:2px;
    overflow:hidden;
  }
  .permanent-admin-section .permanent-admin-title{
    gap:6px;
    font-size:16px;
    line-height:1.08;
  }
  .permanent-admin-section .permanent-admin-desc{
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    font-size:11px;
    line-height:1.25;
  }
  .permanent-admin-section .permanent-type-pill{
    max-width:126px;
    padding:4px 7px;
    font-size:8px;
    line-height:1.08;
  }

  /* ID je jen krátký štítek, nikoli okno přes polovinu karty. */
  .permanent-admin-section .permanent-admin-meta{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    justify-content:start;
    min-height:23px;
    gap:8px;
  }
  .permanent-admin-section .permanent-admin-meta code{
    justify-self:start;
    width:max-content;
    max-width:210px;
    padding:2px 7px;
    font-size:10px;
  }
  .permanent-admin-section .permanent-admin-meta > span{
    justify-self:end;
    font-size:10px;
  }

  .permanent-admin-section .permanent-result-summary{
    min-height:32px;
    padding:5px 8px;
    font-size:10px;
  }
  .permanent-admin-section .permanent-result-summary-count strong{
    font-size:12px;
  }
  .permanent-admin-section .permanent-card-checks{
    gap:4px;
  }
  .permanent-admin-section .permanent-card-checks .check-row{
    min-height:30px;
    padding:5px 8px;
    border-radius:7px;
    font-size:11px;
  }
  .permanent-admin-section .permanent-card-checks .check-row input[type="checkbox"]{
    width:17px!important;
    height:17px!important;
    min-width:17px!important;
  }
  .permanent-admin-section .permanent-admin-preview-summary{
    min-height:30px;
    padding:5px 8px;
    font-size:9px;
  }
  .permanent-admin-section .permanent-admin-detail{
    padding-top:5px;
  }
  .permanent-admin-section .permanent-admin-detail summary{
    font-size:10px;
  }
}

/* Širší notebooky: tři sloupce zůstávají, ale bez zbytečné rezervy. */
@media(min-width:1051px) and (max-width:1399px){
  .permanent-admin-section .permanent-admin-card-top{
    height:72px;
  }
  .permanent-admin-section .panel.permanent-admin-card{
    grid-template-rows:72px 23px auto auto auto auto;
  }
}

@media(max-width:1280px){
  .permanent-admin-section .pa-system-summary-head{
    grid-template-columns:1fr;
    gap:7px;
  }
}
@media(max-width:900px){
  .permanent-admin-section .permanent-page-mode > div:first-child{
    grid-template-columns:1fr;
  }
  .permanent-admin-section .permanent-page-mode small{
    white-space:normal;
  }
  .permanent-admin-section .permanent-admin-overview-head{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .permanent-admin-section > .shell{
    width:min(100% - 14px,1680px);
  }
  .permanent-admin-section .permanent-page-mode{
    grid-template-columns:1fr;
  }
  .permanent-admin-section .pa-excel-panel-summary{
    grid-template-columns:1fr;
  }
  .permanent-admin-section .pa-excel-panel-summary-actions{
    justify-content:space-between;
  }
}

/* =========================================================
   Hotfix 45 – výrazné kompaktní karty bez hluchého prostoru
   ========================================================= */

@media(min-width:761px){
  .permanent-admin-section .panel.permanent-admin-card{
    display:grid;
    grid-template-rows:54px 36px 25px auto auto auto auto;
    align-content:start;
    gap:7px;
    padding:0 11px 10px;
    overflow:hidden;
    border:1px solid #d5a638;
    border-radius:14px;
    background:#fffdf8;
    box-shadow:
      0 7px 18px rgba(10,51,87,.10),
      inset 0 1px 0 rgba(255,255,255,.9);
  }

  /* Výrazná společná hlavička karty. */
  .permanent-admin-section .permanent-admin-card-top{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    height:54px!important;
    min-height:54px!important;
    margin:0 -11px;
    padding:8px 11px;
    overflow:hidden;
    border:0;
    border-bottom:3px solid #efc34c;
    border-radius:13px 13px 0 0;
    background:
      linear-gradient(135deg,rgba(255,255,255,.04),rgba(255,255,255,0)),
      linear-gradient(135deg,#07385f 0%,#0b4f7f 64%,#0a416d 100%);
    box-shadow:inset 0 -1px 0 rgba(255,255,255,.08);
  }

  .permanent-admin-section .permanent-admin-card-top > div{
    display:block!important;
  }

  .permanent-admin-section .permanent-admin-title{
    display:flex;
    grid-column:auto;
    grid-row:auto;
    align-items:center;
    gap:7px;
    min-width:0;
    color:#fff;
    font-size:17px;
    font-weight:900;
    line-height:1.08;
    text-shadow:0 1px 1px rgba(0,0,0,.2);
  }
  .permanent-admin-section .permanent-admin-title span{
    display:-webkit-box;
    overflow:hidden;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }

  .permanent-admin-section .permanent-type-pill{
    grid-column:auto;
    grid-row:auto;
    align-self:center;
    max-width:145px;
    padding:5px 8px;
    border:1px solid rgba(255,255,255,.48);
    border-radius:999px;
    background:#ffe28c;
    color:#0b365a;
    font-size:9px;
    font-weight:900;
    line-height:1.08;
    text-align:center;
    box-shadow:0 2px 5px rgba(0,0,0,.12);
  }

  /* Popis je samostatný, krátký řádek – ne součást vysoké hlavičky. */
  .permanent-admin-section .permanent-admin-desc{
    display:-webkit-box;
    grid-column:auto;
    grid-row:auto;
    align-self:center;
    height:36px;
    margin:0;
    overflow:hidden;
    color:#263f58;
    font-size:11px;
    line-height:1.35;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }

  /* Interní ID jen jako malý štítek podle délky textu. */
  .permanent-admin-section .permanent-admin-meta{
    display:flex;
    grid-template-columns:none;
    align-items:center;
    justify-content:space-between;
    min-height:25px;
    gap:8px;
    margin:0;
  }
  .permanent-admin-section .permanent-admin-meta code{
    display:inline-flex;
    align-items:center;
    justify-self:auto;
    width:auto!important;
    max-width:190px;
    min-width:0;
    padding:2px 7px;
    overflow:hidden;
    border:1px solid #d8b458;
    border-radius:6px;
    background:#fff4d5;
    color:#29445d;
    font-size:9px;
    line-height:1.2;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .permanent-admin-section .permanent-admin-meta > span{
    justify-self:auto;
    color:#52677a;
    font-size:9px;
    white-space:nowrap;
  }
  .permanent-admin-section .permanent-admin-meta b{
    color:#07385f;
    font-size:11px;
  }

  /* Výsledkový řádek má větší kontrast než okolí. */
  .permanent-admin-section .permanent-result-box{
    border-color:#9fc7e8;
    background:#edf7ff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
  }
  .permanent-admin-section .permanent-result-summary{
    min-height:33px;
    padding:6px 9px;
    color:#09385d;
    font-size:10px;
  }

  /* Přepínače mají jemně odlišené pozadí, aby karta nebyla plochá. */
  .permanent-admin-section .permanent-card-checks{
    gap:5px;
  }
  .permanent-admin-section .permanent-card-checks .check-row{
    min-height:31px;
    padding:5px 8px;
    border-color:#dfb552;
    background:linear-gradient(180deg,#fffdf7,#fff8e8);
  }
  .permanent-admin-section .permanent-card-checks .check-row:hover{
    background:#fff2cc;
  }

  .permanent-admin-section .permanent-admin-preview-summary{
    min-height:31px;
    padding:6px 9px;
    border-color:#dfb552;
    background:#fffaf0;
  }

  .permanent-admin-section .permanent-admin-detail{
    padding-top:5px;
    border-top:1px dashed #dfb552;
  }

  /* Jemné zvýraznění při najetí bez posouvání layoutu. */
  .permanent-admin-section .panel.permanent-admin-card:hover{
    border-color:#bf8512;
    box-shadow:
      0 10px 24px rgba(10,51,87,.14),
      inset 0 1px 0 rgba(255,255,255,.9);
  }
}

/* Užší tři sloupce: hlavička je o něco vyšší jen kvůli dlouhým názvům. */
@media(min-width:1051px) and (max-width:1290px){
  .permanent-admin-section .panel.permanent-admin-card{
    grid-template-rows:60px 38px 25px auto auto auto auto;
  }
  .permanent-admin-section .permanent-admin-card-top{
    height:60px!important;
    min-height:60px!important;
  }
  .permanent-admin-section .permanent-admin-title{
    font-size:15px;
  }
  .permanent-admin-section .permanent-type-pill{
    max-width:112px;
    padding:4px 6px;
    font-size:8px;
  }
  .permanent-admin-section .permanent-admin-desc{
    height:38px;
    font-size:10px;
  }
}

/* Dva sloupce – více místa, kompaktnější hlavička. */
@media(min-width:761px) and (max-width:1050px){
  .permanent-admin-section .panel.permanent-admin-card{
    grid-template-rows:52px 34px 25px auto auto auto auto;
  }
  .permanent-admin-section .permanent-admin-card-top{
    height:52px!important;
    min-height:52px!important;
  }
}

/* Mobil bez pevných řádků, ale se stejnou výraznou hlavičkou. */
@media(max-width:760px){
  .permanent-admin-section .panel.permanent-admin-card{
    padding:0 10px 10px;
    overflow:hidden;
  }
  .permanent-admin-section .permanent-admin-card-top{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    gap:6px;
    margin:0 -10px 8px;
    padding:9px 10px;
    border-bottom:3px solid #efc34c;
    background:linear-gradient(135deg,#07385f,#0b4f7f);
  }
  .permanent-admin-section .permanent-admin-title{
    color:#fff;
  }
  .permanent-admin-section .permanent-type-pill{
    justify-self:start;
    background:#ffe28c;
    color:#0b365a;
  }
  .permanent-admin-section .permanent-admin-desc{
    margin:0 0 6px;
  }
}

/* =========================================================
   Hotfix 47 – Strong Compact Cards:
   čitelnější popis a menší mezera před interním ID
   ========================================================= */

@media(min-width:1291px){
  .permanent-admin-section .panel.permanent-admin-card{
    grid-template-rows:54px 29px 25px auto auto auto auto;
    gap:5px;
  }
  .permanent-admin-section .permanent-admin-desc{
    height:29px;
    color:#183b59;
    font-size:12px;
    font-weight:500;
    line-height:1.25;
  }
  .permanent-admin-section .permanent-admin-meta code{
    font-size:10px;
  }
  .permanent-admin-section .permanent-admin-meta > span{
    font-size:10px;
  }
}

/* Běžný notebook se třemi užšími kartami. */
@media(min-width:1051px) and (max-width:1290px){
  .permanent-admin-section .panel.permanent-admin-card{
    grid-template-rows:60px 31px 25px auto auto auto auto;
    gap:5px;
  }
  .permanent-admin-section .permanent-admin-desc{
    height:31px;
    color:#183b59;
    font-size:11px;
    font-weight:500;
    line-height:1.25;
  }
  .permanent-admin-section .permanent-admin-meta code,
  .permanent-admin-section .permanent-admin-meta > span{
    font-size:9.5px;
  }
}

/* Dva sloupce. */
@media(min-width:761px) and (max-width:1050px){
  .permanent-admin-section .panel.permanent-admin-card{
    grid-template-rows:52px 28px 25px auto auto auto auto;
    gap:5px;
  }
  .permanent-admin-section .permanent-admin-desc{
    height:28px;
    color:#183b59;
    font-size:12px;
    font-weight:500;
    line-height:1.2;
  }
}

/* Mobil: pouze lepší čitelnost, bez pevných výšek. */
@media(max-width:760px){
  .permanent-admin-section .permanent-admin-desc{
    color:#183b59;
    font-size:13px;
    font-weight:500;
    line-height:1.3;
  }
}

/* =========================================================
   Hotfix 48 – Strong Compact Cards:
   popisy alespoň stejně čitelné jako text ve spodní liště
   a menší mezera před interním ID
   ========================================================= */

/* Široké zobrazení / desktop */
@media(min-width:1291px){
  .permanent-admin-section .panel.permanent-admin-card{
    grid-template-rows:54px 25px 25px auto auto auto auto;
    gap:3px;
  }
  .permanent-admin-section .permanent-admin-desc{
    display:flex;
    align-items:flex-start;
    height:25px;
    margin:0;
    color:#173f61;
    font-size:13px;
    font-weight:600;
    line-height:1.2;
  }
}

/* Běžný notebook se třemi sloupci */
@media(min-width:1051px) and (max-width:1290px){
  .permanent-admin-section .panel.permanent-admin-card{
    grid-template-rows:60px 27px 25px auto auto auto auto;
    gap:3px;
  }
  .permanent-admin-section .permanent-admin-desc{
    display:flex;
    align-items:flex-start;
    height:27px;
    margin:0;
    color:#173f61;
    font-size:12px;
    font-weight:600;
    line-height:1.2;
  }
}

/* Dva sloupce */
@media(min-width:761px) and (max-width:1050px){
  .permanent-admin-section .panel.permanent-admin-card{
    grid-template-rows:52px 26px 25px auto auto auto auto;
    gap:3px;
  }
  .permanent-admin-section .permanent-admin-desc{
    display:flex;
    align-items:flex-start;
    height:26px;
    margin:0;
    color:#173f61;
    font-size:13px;
    font-weight:600;
    line-height:1.2;
  }
}

/* Mobil */
@media(max-width:760px){
  .permanent-admin-section .permanent-admin-desc{
    color:#173f61;
    font-size:13px;
    font-weight:600;
    line-height:1.3;
  }
}

/* =========================================================
   Hotfix 49 – Strong Compact Cards:
   čitelnější text v kartách + obnovená výrazná spodní lišta
   ========================================================= */

/* Spodní ukládací lišta zůstává velká, výrazná a dobře čitelná. */
.permanent-admin-section .permanent-save-actions{
  min-height:92px;
  padding:14px 18px;
  gap:14px;
  border-radius:16px;
}
.permanent-admin-section .permanent-save-actions-text{
  gap:4px;
}
.permanent-admin-section .permanent-save-actions-text b{
  font-size:21px;
  line-height:1.15;
}
.permanent-admin-section .permanent-save-actions-text small{
  font-size:16px;
  line-height:1.25;
}
.permanent-admin-section .permanent-save-actions .btn{
  min-height:54px;
  padding:12px 22px;
  font-size:18px;
  line-height:1.15;
  border-radius:12px;
}

/* Text v kartách – větší, ale bez návratu velkých prázdných mezer. */
@media(min-width:1291px){
  .permanent-admin-section .panel.permanent-admin-card{
    grid-template-rows:54px 28px 27px auto auto auto auto;
    gap:3px;
  }
  .permanent-admin-section .permanent-admin-desc{
    height:28px;
    color:#173f61;
    font-size:14px;
    font-weight:600;
    line-height:1.2;
  }
  .permanent-admin-section .permanent-admin-meta code{
    font-size:12px;
    padding:3px 8px;
  }
  .permanent-admin-section .permanent-admin-meta > span{
    font-size:12px;
  }
  .permanent-admin-section .permanent-result-summary{
    font-size:13px;
  }
  .permanent-admin-section .permanent-card-checks .check-row{
    font-size:14px;
  }
  .permanent-admin-section .permanent-admin-preview-summary,
  .permanent-admin-section .permanent-admin-detail summary{
    font-size:12px;
  }
}

/* Notebook – stále tři kompaktní sloupce, ale text není titěrný. */
@media(min-width:1051px) and (max-width:1290px){
  .permanent-admin-section .panel.permanent-admin-card{
    grid-template-rows:60px 30px 27px auto auto auto auto;
    gap:3px;
  }
  .permanent-admin-section .permanent-admin-desc{
    height:30px;
    color:#173f61;
    font-size:13px;
    font-weight:600;
    line-height:1.2;
  }
  .permanent-admin-section .permanent-admin-meta code,
  .permanent-admin-section .permanent-admin-meta > span{
    font-size:11px;
  }
  .permanent-admin-section .permanent-result-summary{
    font-size:12px;
  }
  .permanent-admin-section .permanent-card-checks .check-row{
    font-size:13px;
  }
}

/* Dva sloupce. */
@media(min-width:761px) and (max-width:1050px){
  .permanent-admin-section .panel.permanent-admin-card{
    grid-template-rows:52px 29px 27px auto auto auto auto;
    gap:3px;
  }
  .permanent-admin-section .permanent-admin-desc{
    height:29px;
    color:#173f61;
    font-size:14px;
    font-weight:600;
    line-height:1.2;
  }
}

/* Mobil – spodní lišta se skládá, ale text zůstává čitelný. */
@media(max-width:760px){
  .permanent-admin-section .permanent-save-actions{
    min-height:0;
    padding:12px;
  }
  .permanent-admin-section .permanent-save-actions-text b{
    font-size:18px;
  }
  .permanent-admin-section .permanent-save-actions-text small{
    font-size:14px;
  }
  .permanent-admin-section .permanent-save-actions .btn{
    min-height:46px;
    padding:10px 14px;
    font-size:15px;
  }
  .permanent-admin-section .permanent-admin-desc{
    font-size:14px;
    font-weight:600;
  }
}

/* =========================================================
   Hotfix 50 – spodní ukládací lišta na notebooku
   Bez osamoceného tlačítka na druhém řádku.
   ========================================================= */

/* Širší notebook / desktop: vše v jednom řádku. */
@media(min-width:1241px){
  .permanent-admin-section .permanent-save-actions{
    display:grid;
    grid-template-columns:minmax(300px,1fr) repeat(4,max-content);
    align-items:center;
    min-height:0;
    padding:10px 14px;
    gap:10px;
  }
  .permanent-admin-section .permanent-save-actions-text{
    min-width:0;
    margin:0;
  }
  .permanent-admin-section .permanent-save-actions-text b{
    font-size:19px;
  }
  .permanent-admin-section .permanent-save-actions-text small{
    font-size:14px;
  }
  .permanent-admin-section .permanent-save-actions .btn{
    min-height:46px;
    padding:9px 15px;
    font-size:15px;
    white-space:nowrap;
  }
}

/* Běžný notebook: text nahoře, všechna čtyři tlačítka společně pod ním. */
@media(min-width:901px) and (max-width:1240px){
  .permanent-admin-section .permanent-save-actions{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    align-items:center;
    min-height:0;
    padding:10px 12px;
    gap:8px;
  }
  .permanent-admin-section .permanent-save-actions-text{
    grid-column:1/-1;
    width:100%;
    margin:0;
  }
  .permanent-admin-section .permanent-save-actions-text b{
    font-size:18px;
  }
  .permanent-admin-section .permanent-save-actions-text small{
    font-size:13px;
  }
  .permanent-admin-section .permanent-save-actions .btn{
    width:100%;
    min-height:44px;
    padding:8px 9px;
    font-size:13px;
    white-space:nowrap;
  }
}

/* Menší displeje: přehledná mřížka 2 × 2. */
@media(min-width:761px) and (max-width:900px){
  .permanent-admin-section .permanent-save-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    min-height:0;
    padding:10px;
    gap:8px;
  }
  .permanent-admin-section .permanent-save-actions-text{
    grid-column:1/-1;
    width:100%;
    margin:0;
  }
  .permanent-admin-section .permanent-save-actions .btn{
    width:100%;
    min-height:44px;
    padding:8px 10px;
    font-size:14px;
  }
}

/* Mobil: jeden sloupec. */
@media(max-width:760px){
  .permanent-admin-section .permanent-save-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .permanent-admin-section .permanent-save-actions-text{
    grid-column:1;
  }
  .permanent-admin-section .permanent-save-actions .btn{
    width:100%;
  }
}

/* =========================================================
   Hotfix 51 – užší spodní ukládací lišta
   ========================================================= */

/* Širší notebook / desktop – jeden kompaktní řádek. */
@media(min-width:1241px){
  .permanent-admin-section .permanent-save-actions{
    min-height:64px;
    padding:6px 12px;
    gap:9px;
    border-radius:13px;
  }
  .permanent-admin-section .permanent-save-actions-text{
    gap:1px;
  }
  .permanent-admin-section .permanent-save-actions-text b{
    font-size:17px;
    line-height:1.08;
  }
  .permanent-admin-section .permanent-save-actions-text small{
    font-size:12px;
    line-height:1.15;
  }
  .permanent-admin-section .permanent-save-actions .btn{
    min-height:40px;
    padding:7px 13px;
    font-size:14px;
    line-height:1.1;
    border-radius:10px;
  }
}

/* Běžný notebook – společný řádek tlačítek, nižší lišta. */
@media(min-width:901px) and (max-width:1240px){
  .permanent-admin-section .permanent-save-actions{
    padding:7px 10px;
    gap:6px;
  }
  .permanent-admin-section .permanent-save-actions-text{
    gap:1px;
  }
  .permanent-admin-section .permanent-save-actions-text b{
    font-size:16px;
    line-height:1.08;
  }
  .permanent-admin-section .permanent-save-actions-text small{
    font-size:12px;
    line-height:1.15;
  }
  .permanent-admin-section .permanent-save-actions .btn{
    min-height:39px;
    padding:7px 8px;
    font-size:12px;
    border-radius:9px;
  }
}

/* Menší displeje – kompaktnější mřížka 2 × 2. */
@media(min-width:761px) and (max-width:900px){
  .permanent-admin-section .permanent-save-actions{
    padding:7px 9px;
    gap:6px;
  }
  .permanent-admin-section .permanent-save-actions .btn{
    min-height:39px;
    padding:7px 9px;
    font-size:13px;
  }
}

/* Mobil */
@media(max-width:760px){
  .permanent-admin-section .permanent-save-actions{
    padding:8px;
    gap:6px;
  }
  .permanent-admin-section .permanent-save-actions-text b{
    font-size:16px;
  }
  .permanent-admin-section .permanent-save-actions-text small{
    font-size:12px;
  }
  .permanent-admin-section .permanent-save-actions .btn{
    min-height:40px;
    padding:8px 10px;
    font-size:13px;
  }
}

