:root {
  --ink: #1f2433; --muted: #5d6478; --bg: #fbf8f3; --card: #fff; --line: #e8e2d6;
  --blue: #2d6cdf; --orange: #e07a2d;
  --cy1: #9ec5ff; --cy2: #5c9df5; --cy3: #2f6fd6; --pov: #1fa58f; --ss: #0f6e7a; --ms: #ffb38a;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
.app { max-width: 1080px; margin: 0 auto; padding: 0 20px 40px; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 20px; } .brand span { color: var(--muted); font-weight: 500; }
.toggle { font-size: 14px; color: var(--muted); display: flex; gap: 6px; align-items: center; }

/* lišta cesty */
.journey { list-style: none; display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; padding: 0; margin: 4px 0 4px; }
.journey li { text-align: center; font-size: 13px; font-weight: 700; padding: 6px 0; border-radius: 8px; color: #fff; opacity: .35; transition: opacity .3s, transform .3s; }
.journey li.done { opacity: .7; }
.journey li.on { opacity: 1; transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.journey .ms { background: var(--ms); } .journey .cy1 { background: var(--cy1); color: #183a6e; } .journey .cy2 { background: var(--cy2); }
.journey .cy3 { background: var(--cy3); } .journey .pov { background: var(--pov); } .journey .ss { background: var(--ss); } .journey .dal { background: #7a5ac9; }
.jlegend-row { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.jlegend-row span { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-left: 8px; }
.jlegend-row .cy1 { background: var(--cy1); } .jlegend-row .cy2 { background: var(--cy2); } .jlegend-row .cy3 { background: var(--cy3); } .jlegend-row .pov { background: var(--pov); } .jlegend-row .ss { background: var(--ss); }

/* jeviště */
.stage-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(40,30,10,.12); background: #cfe8ff; }
.stage { display: block; width: 100%; height: auto; }
.stage text { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.stage.in > * { animation: fadein .6s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.walkin { animation: walkin 2.4s cubic-bezier(.3,.7,.4,1) both; }
@keyframes walkin { from { transform: translateX(-420px); } to { transform: translateX(0); } }
.walkin .leg { transform-box: fill-box; transform-origin: 50% 0; animation: swing .3s ease-in-out 8 alternate; }
.walkin .leg.rl { animation-delay: .3s; }
@keyframes swing { from { transform: rotate(14deg); } to { transform: rotate(-14deg); } }
.walkin .arm { transform-box: fill-box; transform-origin: 50% 0; animation: swing .3s ease-in-out 8 alternate-reverse; }
.bob { animation: bob 2.6s ease-in-out 2.4s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.eyes { transform-box: fill-box; transform-origin: center; animation: blink 4s infinite; }
@keyframes blink { 0%,94%,100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

.cloud { animation: drift 40s linear infinite alternate; } .cloud.c2 { animation-duration: 55s; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(60px); } }
.sun { transform-box: fill-box; transform-origin: center; animation: pulse 5s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.07); } }
.twinkle { transform-box: fill-box; transform-origin: center; animation: tw 1.6s ease-in-out infinite; }
@keyframes tw { 50% { opacity: .2; transform: scale(.6); } }
.float { animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.float { transform-box: view-box; }
.note { animation: notes 3s ease-in-out infinite; } .note.n2 { animation-delay: 1s; } .note.n3 { animation-delay: 2s; }
@keyframes notes { 0% { transform: translateY(10px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
.gear { animation: spin 6s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.ball { animation: bounce 1s ease-in infinite alternate; }
@keyframes bounce { from { transform: translateY(-60px); } to { transform: translateY(0); } }
.confetto { animation: fall 4s linear infinite; }
@keyframes fall { from { transform: translateY(-30px) rotate(0); } to { transform: translateY(560px) rotate(540deg); } }
.pop { transform-box: fill-box; transform-origin: 30% 100%; animation: pop .5s 2.4s ease-out both; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.flag { animation: wave 1.5s ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
@keyframes wave { 50% { transform: skewY(4deg); } }

/* úvodní obrazovka */
.start { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(251,248,243,.82); backdrop-filter: blur(3px); }
.start[hidden] { display: none; }
.start-card { max-width: 560px; text-align: center; padding: 24px; }
.start-card h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; margin: 6px 0 12px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; color: var(--muted); margin: 0; }

/* volby: ramena rozcestníku jsou tlačítka */
.choices { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.94); border-radius: 999px;
  padding: 8px 18px; box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: 15px; white-space: nowrap; }
.choices[hidden] { display: none; }
.choices span { color: var(--muted); }
.arm-btn { cursor: pointer; }
.arm-btn path { fill: #fff7e6; stroke: #b8835a; stroke-width: 3; transition: fill .2s; }
.arm-btn text { fill: #5b3b25; pointer-events: none; } .arm-btn text.sub { fill: #8a6648; font-weight: 500; }
.arm-btn:hover path, .arm-btn:focus path { fill: #ffe2a8; stroke: #2d6cdf; }
.arm-btn:focus { outline: none; }
.arm-btn.sel path { fill: #2d6cdf; stroke: #1b4fa8; } .arm-btn.sel text { fill: #fff; }
.arm-btn { animation: beckon 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.arm-btn:nth-of-type(2) { animation-delay: .3s; } .arm-btn:nth-of-type(3) { animation-delay: .6s; } .arm-btn:nth-of-type(4) { animation-delay: .9s; } .arm-btn:nth-of-type(5) { animation-delay: 1.2s; }
.arm-btn:hover { animation: none; }
@keyframes beckon { 0%, 80%, 100% { transform: translateX(0); } 88% { transform: translateX(4px); } }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(calc(-50% - 8px)); } 75% { transform: translateX(calc(-50% + 8px)); } }

/* titulky a ovládání */
.caption { background: var(--card); border-radius: var(--radius); padding: 18px 22px; margin-top: 14px; border: 1px solid var(--line); }
.cap-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cap-head h2 { margin: 0; font-size: 24px; }
.age { font-size: 13px; font-weight: 700; color: #fff; background: var(--blue); border-radius: 999px; padding: 3px 10px; }
.narr { font-size: 18.5px; margin: 10px 0 14px; max-width: 70ch; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn { border: 0; background: var(--blue); color: #fff; font: inherit; font-weight: 700; font-size: 15px; padding: 9px 16px; border-radius: 10px; cursor: pointer; }
.btn.ghost { background: #eef2fb; color: var(--blue); }
.btn.big { font-size: 19px; padding: 13px 26px; margin: 8px 6px; }
.btn:disabled { opacity: .4; cursor: default; }
.voice-note { font-size: 13px; color: var(--muted); }

/* v pozadí */
.behind { margin-top: 18px; }
.behind h3, .calc h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.behind-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.bcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; animation: fadein .5s both; }
.bcard h4 { margin: 0 0 4px; font-size: 15.5px; }
.bcard p { margin: 0; font-size: 15px; color: #353b4d; }
.pill { font-style: normal; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 1px 8px; vertical-align: 2px; white-space: nowrap; }
.pill.o { background: #fde8d6; color: #a2501a; }
.pill.m { background: #dde8fb; color: #1c4fa8; }

/* kalkulačka */
.calc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-top: 22px; }
.calc[hidden] { display: none; }
.calc-form { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.calc-form label { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; gap: 4px; }
.calc-form label.check { flex-direction: row; align-items: center; gap: 6px; }
.calc input, .calc select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.verdict { padding: 12px 14px; border-radius: 10px; margin: 6px 0 12px; }
.verdict.new { background: #e3effd; } .verdict.bridge { background: #efe7fb; } .verdict.old { background: #f1efe9; }
.ctable { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.ctable th, .ctable td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctable td:first-child { white-space: nowrap; font-weight: 600; } .ctable td:last-child { text-align: right; }
.ctable th:last-child { text-align: right; }
.warn { background: #fff4e6; border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.fine { font-size: 13px; color: var(--muted); }
.foot { font-size: 13px; color: var(--muted); margin-top: 26px; }

@media (max-width: 700px) {
  body { font-size: 16px; }
  .journey { grid-template-columns: repeat(7, 1fr); }
  .narr { font-size: 17px; }
  .choices { white-space: normal; border-radius: 12px; width: 90%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* navigace mezi částmi */
.brand { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; font-size: 22px; }
.pages { display: flex; gap: 6px; flex-wrap: wrap; }
.pages a { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 5px 12px; border-radius: 999px; background: #efe9de; }
.pages a.here { background: var(--ink); color: #fff; }

/* vesmírný motiv: pohled učitele */
.space-theme .stage-wrap { background: #141236; }
.space-theme .start { background: rgba(20,18,54,.78); color: #fff; }
.space-theme .start .kicker { color: #c9c4ff; }
.space-theme .btn.ghost { }
.space-theme .age { background: #5b4bc4; }
.flyin { animation: flyin 2.2s cubic-bezier(.25,.8,.35,1) both; }
@keyframes flyin { from { transform: translate(-520px, 260px) rotate(-12deg); opacity: 0; } 20% { opacity: 1; } to { transform: translate(0,0) rotate(0); } }
.hover { animation: hov 3s ease-in-out 2.2s infinite; }
@keyframes hov { 50% { transform: translateY(-6px) rotate(-2deg); } }
.flame { transform-box: fill-box; transform-origin: right center; animation: flick .15s ease-in-out infinite alternate; }
@keyframes flick { from { transform: scaleX(.8); } to { transform: scaleX(1.15); } }
.halo { transform-box: fill-box; transform-origin: center; animation: pulse 2.5s ease-in-out infinite; }
.spin-slow { animation: spin 40s linear infinite; }
.float-s { animation: float 3.4s ease-in-out infinite; }
.needle { animation: needle 4s ease-in-out infinite; }
@keyframes needle { 0% { transform: rotate(-40deg); } 30% { transform: rotate(25deg); } 55% { transform: rotate(-10deg); } 75%, 100% { transform: rotate(5deg); } }
.wave { animation: tw 1.2s ease-in-out infinite; }
.planet text { font-family: system-ui, sans-serif; }

/* ===================== Web 8+2: společná hlavička a pracovní stránky ===================== */
.wsnav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 20px; background: rgba(251,248,243,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.wsnav .logo { font-weight: 900; font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.wsnav .pages { display: flex; gap: 6px; flex-wrap: wrap; }
.wsnav .pages a { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; background: #efe9de; }
.wsnav .pages a:hover { color: var(--ink); }
.wsnav .pages a.here { background: var(--ink); color: #fff; }
.navright { margin-left: auto; display: flex; gap: 10px; align-items: center; font-size: 14px; }
.logout { color: var(--muted); }
.badge { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.badge.demo { background: #fff4e6; color: #a2501a; cursor: help; }
.badge.admin { background: #e3effd; color: #1c4fa8; }
.space-theme .wsnav { background: rgba(251,248,243,.94); }
.app .toggle { margin-left: auto; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px 48px; }
.muted { color: var(--muted); }
.err { color: #b42318; }
.btn.small { font-size: 13px; padding: 6px 11px; }
.ws input, .ws select, .ws textarea { font: inherit; font-size: 15.5px; padding: 8px 10px; border: 1px solid #d9d1c2; border-radius: 9px; background: #fff; width: 100%; }
.ws textarea { resize: vertical; }
.ws label { display: block; font-size: 14px; font-weight: 600; margin: 10px 0 0; }
.ws label > input, .ws label > select, .ws label > textarea { margin-top: 4px; font-weight: 400; }

/* rozcestník 8+2 */
.hero82 { padding: 36px 0 12px; }
.hero82 h1 { font-size: clamp(56px, 9vw, 96px); margin: 0; letter-spacing: -.04em; line-height: 1; }
.hero82 p { font-size: 19px; max-width: 62ch; color: #353b4d; }
.four { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 18px 0 30px; }
.part { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; transition: transform .2s, box-shadow .2s; border-top: 6px solid var(--blue); }
.part:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(40,30,10,.1); }
.part svg { width: 56px; height: 56px; }
.part h2 { font-size: 20px; margin: 8px 0 6px; line-height: 1.2; }
.part p { font-size: 15px; color: #4a5064; margin: 0 0 10px; }
.part .stat { font-size: 13px; font-weight: 700; color: var(--muted); }
.part.p2 { border-top-color: #2a9d6f; } .part.p3 { border-top-color: #ff7b54; } .part.p4 { border-top-color: #5b4bc4; }
.feed h2 { font-size: 20px; }
.feedlist { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.feedlist li { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.feedlist li:last-child { border-bottom: 0; }
.feedlist a { color: var(--ink); text-decoration: none; }
.feedlist .meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.k { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.k-pripominka { background: #e3effd; color: #1c4fa8; } .k-schvaleno { background: #dff3e6; color: #1d7a4a; } .k-srozumitelnost { background: #fde8d6; color: #a2501a; }

/* přihlášení */
.login { display: grid; place-items: center; min-height: 100vh; }
.logincard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; width: min(420px, 92vw); box-shadow: 0 12px 30px rgba(40,30,10,.08); }
.logincard h1 { font-size: 56px; margin: 0; letter-spacing: -.04em; }
.logincard .btn { margin-top: 16px; width: 100%; }

/* pracovní prostor */
.pagehead { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding: 22px 0 10px; }
.pagehead h1 { margin: 0; font-size: 34px; }
.pagehead .sub { margin: 6px 0 0; max-width: 70ch; color: #4a5064; }
.headtools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.wsgrid { display: grid; grid-template-columns: 290px 1fr; gap: 22px; align-items: start; }
.chapters { position: sticky; top: 70px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; max-height: calc(100vh - 90px); overflow: auto; }
.chapters h3 { margin: 4px 6px 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.chapters ol { margin: 0; padding: 0 0 0 26px; }
.chapters li { padding: 4px 4px; font-size: 14.5px; display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.chapters li::marker { color: var(--muted); }
.chapters li.sp { list-style: none; margin-left: -20px; border-top: 1px dashed var(--line); padding-top: 8px; }
.chapters a { color: var(--ink); text-decoration: none; }
.chapters li.on a { font-weight: 800; color: var(--blue); }
.cnt { font-size: 12px; font-weight: 700; background: #efe9de; border-radius: 999px; padding: 0 8px; }
.cnt.new { background: var(--blue); color: #fff; }
.chapter { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; min-width: 0; }
.chapter h2 { margin: 0 0 10px; font-size: 26px; }
details.text { background: #faf8f4; border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; }
details.text summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.mdtext { font-size: 15.5px; }
.mdtext h3, .mdtext h4 { margin: 14px 0 6px; }
.mdtext blockquote { margin: 10px 0; padding: 4px 14px; border-left: 4px solid #d9c79a; background: #fffdf4; }
.tbl { overflow-x: auto; margin: 10px 0; }
.tbl table { border-collapse: collapse; font-size: 14.5px; width: 100%; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 6px 9px; text-align: left; vertical-align: top; }
.tbl th { background: #f5f1e9; }
.tag { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.tag.m { background: #dde8fb; color: #1c4fa8; } .tag.o { background: #fde8d6; color: #a2501a; }
.cmhead { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.cmhead select { width: auto; }
.cm { border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.cm header { font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cm .typ { font-size: 12px; font-weight: 700; background: #efe9de; border-radius: 999px; padding: 1px 8px; }
.cm .state, .zpart .state { margin-left: auto; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; background: #e3effd; color: #1c4fa8; }
.cm.st-k-diskusi { border-left-color: #f2b134; } .cm.st-k-diskusi .state { background: #fff1d0; color: #7a5a12; }
.cm.st-zapracovano { border-left-color: #2a9d6f; } .cm.st-zapracovano .state { background: #dff3e6; color: #1d7a4a; }
.cm.st-zamitnuto { border-left-color: #b9b2a6; opacity: .75; } .cm.st-zamitnuto .state { background: #eee; color: #666; }
.cm p { margin: 8px 0; }
.navrh { background: #f3f8ff; border-radius: 9px; padding: 8px 12px; font-size: 15px; }
.navrh span, .why span, .note span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.why span, .note span { display: inline; }
.note { background: #fffbea; border-radius: 8px; padding: 6px 10px; font-size: 14px; }
.adm { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.adm select, .adm input { width: auto; font-size: 14px; padding: 5px 8px; }
.adm input { flex: 1; min-width: 160px; }
.promo { background: #f2faf5; border: 1px solid #cfe9d9; border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.promo h4 { margin: 0; }
.cmform { margin-top: 18px; background: #faf8f4; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cmform h3 { margin: 0 0 4px; font-size: 17px; }
.cmform .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cmform .btn { margin-top: 12px; }
.msg { font-size: 14px; color: #1d7a4a; }

/* Reforma žije */
.zgrid { display: grid; grid-template-columns: 1fr 280px; gap: 22px; align-items: start; }
.zcap { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 16px; }
.zcap h2 { margin: 0 0 8px; font-size: 22px; } .zcap h2 a { color: var(--ink); text-decoration: none; }
.zpart { border-left: 5px solid #2a9d6f; padding: 4px 0 4px 14px; margin: 12px 0; }
.zpart.old { border-left-color: #c9c2b5; opacity: .6; }
.zpart header { font-size: 14.5px; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.ver { font-size: 12px; font-weight: 700; background: #dff3e6; color: #1d7a4a; border-radius: 999px; padding: 0 8px; }
.timeline { position: sticky; top: 70px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.timeline h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.timeline ol { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.timeline li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.empty { background: #fff; border: 1px dashed #cfc6b5; border-radius: 14px; padding: 20px; }

/* hodnocení srozumitelnosti v příbězích */
.clarity { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14.5px; }
.cq { font-weight: 700; }
.cbtn { font: inherit; font-size: 14px; border: 1px solid #d9d1c2; background: #fff; border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.cbtn.yes:hover { background: #dff3e6; } .cbtn.no:hover { background: #fde8d6; }
.cbtn:disabled { opacity: .5; cursor: default; }
.cform { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.cform textarea { flex: 2; min-width: 240px; font: inherit; font-size: 14.5px; padding: 6px 9px; border: 1px solid #d9d1c2; border-radius: 9px; }
.cform input { flex: 1; min-width: 140px; font: inherit; font-size: 14.5px; padding: 6px 9px; border: 1px solid #d9d1c2; border-radius: 9px; }
.cthanks { color: #1d7a4a; font-weight: 600; }

@media (max-width: 860px) {
  .wsgrid, .zgrid { grid-template-columns: 1fr; }
  .chapters, .timeline { position: static; max-height: none; }
  .cmform .row { grid-template-columns: 1fr; }
}
.cform[hidden], .choices[hidden] { display: none; }

/* Legislativa */
.lsec { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin: 16px 0; }
.lsec > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 22px; }
.lsec > summary::-webkit-details-marker { display: none; }
.lsec > summary::before { content: '▸'; font-size: 22px; color: var(--muted); transition: transform .2s; }
.lsec[open] > summary::before { transform: rotate(90deg); }
.lsec .lt { font-size: 26px; font-weight: 800; margin-right: auto; }
.lsec .ls { font-size: 14px; color: var(--muted); }
.lbody { padding: 0 22px 22px; }
.law { border-top: 1px solid var(--line); padding: 14px 0; }
.law header { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.law h3 { margin: 0; font-size: 19px; }
.law .links { margin-left: auto; font-size: 14px; }
.small { font-size: 13px; }
.pz summary { cursor: pointer; color: var(--blue); font-size: 14px; }
.platne { background: #faf8f4; border-radius: 8px; padding: 8px 10px; font-size: 14px; margin: 6px 0; font-family: Georgia, serif; }
.pzf textarea, .pzf input { margin: 4px 0; font-size: 14px; }
.lawh { margin: 22px 0 6px; font-size: 18px; }
.bod { border: 1px solid var(--line); border-radius: 12px; margin: 8px 0; padding: 0 14px; }
.bod > summary { cursor: pointer; padding: 10px 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.bst { margin-left: auto; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; background: #e3effd; color: #1c4fa8; }
.bst.ok { background: #dff3e6; color: #1d7a4a; } .bst.none { background: #f1efe9; color: var(--muted); }
.zamer { font-size: 14.5px; } .zamer span { font-weight: 700; }
.nf h4 { margin: 0 0 4px; }
.cm.st-odsouhlaseno { border-left-color: #2a9d6f; } .cm.st-odsouhlaseno .state { background: #dff3e6; color: #1d7a4a; }
.ltools { margin: 6px 0 12px; }
.draft { border: 1px solid #d9c79a; border-radius: 12px; background: #fffdf4; padding: 14px; margin-bottom: 18px; }
.dhelp { font-size: 14.5px; margin-bottom: 6px; }
.dinfo { font-size: 13px; margin-bottom: 8px; }
.editor { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px; min-height: 260px; font-family: 'Times New Roman', Georgia, serif; font-size: 17px; line-height: 1.6; white-space: pre-wrap; outline: none; }
.editor:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,108,223,.15); }
b.add { font-weight: 800; color: #0b3d91; background: #eaf2ff; border-radius: 2px; }
s.del { color: #a32020; text-decoration: line-through; text-decoration-thickness: 2px; }
.dtools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.dtools .inl { display: flex; align-items: center; gap: 6px; margin: 0; }
.dtools .inl input { width: 180px; margin: 0; }
.vers { margin-top: 10px; font-size: 14px; } .vers summary { cursor: pointer; color: var(--muted); }
.part.p5 { border-top-color: #c9a46a; }
.wsnav .logo { background: #1f2433; color: #fff; border-radius: 10px; padding: 2px 10px; font-size: 21px; }
.wsnav .logo .plus, .hero82 .plus, .logincard .plus { color: #ff9f4a; }

/* ---------- mobil ---------- */
@media (max-width: 700px) {
  .start { position: static; background: #fff; backdrop-filter: none; border-top: 1px solid var(--line); }
  .space-theme .start { background: #1b1844; }
  .start-card { padding: 16px 14px 18px; }
  .start-card h1 { font-size: 24px; margin: 4px 0 8px; }
  .start-card p { font-size: 15px; margin: 0 0 8px; }
  .btn.big { font-size: 18px; padding: 12px 22px; margin: 6px 4px; }
  .wsnav { flex-wrap: nowrap; gap: 10px; padding: 8px 12px; }
  .wsnav .pages { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .wsnav .pages::-webkit-scrollbar { display: none; }
  .wsnav .pages a { white-space: nowrap; font-size: 13px; padding: 5px 10px; }
  .navright { margin-left: 0; }
  .navright .badge { display: none; }
  .app { padding: 0 10px 30px; }
  .caption { padding: 14px 14px; }
  .cap-head h2 { font-size: 20px; }
  .controls .btn { padding: 8px 12px; }
  .app .toggle { margin-left: 0; font-size: 13px; }
  .choices { top: auto; bottom: 8px; font-size: 13px; padding: 6px 12px; }
}
@media (max-width: 700px) {
  .stage-wrap { position: sticky; top: 50px; z-index: 5; }
  .journey, .jlegend-row { display: none; }
}
.stage-wrap { scroll-margin-top: 58px; }
.arm-btn rect.hit { fill: transparent; stroke: none; }
@media (max-width: 700px) {
  .choices { position: static; transform: none; border-radius: 0; width: 100%; white-space: normal; text-align: center; box-shadow: none; background: #fff7e6; }
}

/* ---------- celá obrazovka ---------- */
.fsbtn { position: absolute; top: 10px; right: 10px; z-index: 6; width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(20,20,40,.55); color: #fff; font-size: 20px; cursor: pointer; }
.fsbar, .rotate-hint { display: none; }
body.fullmode { overflow: hidden; }
.stage-wrap.full { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; background: #0b0b14; display: flex; align-items: center; justify-content: center; box-shadow: none; }
.stage-wrap.full .stage { width: 100%; height: 100%; }
.stage-wrap.full .fsbtn { display: none; }
.stage-wrap.full .fsbar { display: flex; flex-direction: column; gap: 6px; position: absolute; left: 0; right: 0; bottom: 0; padding: 28px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: linear-gradient(transparent, rgba(0,0,0,.78) 35%); color: #fff; }
.fstitle { font-weight: 800; font-size: clamp(15px, 2.2vw, 22px); }
.fssub { font-size: clamp(13px, 1.9vw, 20px); line-height: 1.4; max-height: 26vh; overflow-y: auto; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.fsctl { display: flex; gap: 8px; align-items: center; }
.fsctl button { border: 0; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; font: inherit; font-weight: 700; font-size: 15px; padding: 7px 14px; cursor: pointer; }
.fsctl .exit { margin-left: auto; }
.stage-wrap.full .choices { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: auto; max-width: 92%; border-radius: 999px; background: rgba(255,255,255,.94); white-space: normal; }
@media (orientation: portrait) and (max-width: 700px) {
  .stage-wrap.full .rotate-hint { display: block; position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.9); color: #1f2433; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 700; white-space: nowrap; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .fssub { max-height: 22vh; font-size: 14px; }
  .fstitle { font-size: 15px; }
  .stage-wrap.full .fsbar { padding-top: 18px; gap: 4px; }
}
.stage-wrap.full .start { display: none; }
mark.q { background: #fff200; font-style: italic; border-radius: 2px; padding: 0 2px; }
.editor .h1 { text-align: center; font-size: 21px; letter-spacing: .5px; margin-bottom: 8px; }
.editor .h2 { text-align: center; font-size: 18px; margin: 26px 0 8px; padding-top: 12px; border-top: 1px solid #d9d1c2; }
.editor .h3 { text-align: center; margin: 18px 0 6px; }
.editor .par { text-align: center; margin-top: 16px; }
.editor .tit { text-align: center; margin-bottom: 6px; }
.editor > div { margin-bottom: 6px; }
.editor { white-space: normal; max-height: 75vh; overflow-y: auto; }

/* Věci k rozhodnutí */
.chapters li.first { margin-top: -4px; border-top: 0; padding-top: 2px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; margin-bottom: 4px; }
.chapters li.first a { font-weight: 700; }
.dsum { font-size: 15px; }
.dfilters { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.dfilters select { width: auto; }
.dtable td { font-size: 14px; }
.dtable td:nth-child(4) { min-width: 260px; }
.dtable td.c { text-align: center; font-weight: 700; }
.drow { cursor: pointer; } .drow:hover td { background: #fffbea; }
.drow.rozhodnuto td { opacity: .7; }
.dtyp { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.dtyp.r { background: #fff200; color: #5a4a00; } .dtyp.p { background: #fde8d6; color: #a2501a; }
.dst { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; white-space: nowrap; background: #e3effd; color: #1c4fa8; }
.dst.rozhodnuto { background: #dff3e6; color: #1d7a4a; } .dst.k-diskusi { background: #fff1d0; color: #7a5a12; } .dst.odlozeno { background: #eee; color: #666; }
.ddetail > td { background: #faf8f4; }
.dbox form { margin-top: 8px; }
.dadm { background: #f3f8ff; border-radius: 10px; padding: 8px 12px; }
.dadm h4 { margin: 0; }
.people { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; margin-bottom: 16px; }
.people h3 { margin: 0 0 8px; }
.ptools { margin-bottom: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
a.btn { text-decoration: none; display: inline-block; }
