:root{--bg:#050505;--g:#8a8a8a;--a:#7cc4f0;--st-listen:#ff8a1f;--st-think:#ff4d3d;--st-delegate:#d65cff;--st-voice:#36d17a;--line:#292929;--panel:#111;--txt:#ececec;--mut:var(--g);--amb:var(--a)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--txt);font:300 17px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button{cursor:pointer}button,input,textarea{font:inherit}.wrap{max-width:760px;margin:auto;padding:0 20px 100px}header.top{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:28px 0 8px}h1{font:300 clamp(34px,7vw,54px)/1.1 system-ui,sans-serif;margin:0}h1 em{color:var(--a-text,var(--a));font-style:normal}h2,h3{font-weight:300}nav.menu{display:flex;gap:22px;margin:10px 0 26px;font-size:15px;color:var(--g);flex-wrap:wrap}nav.menu a:hover,nav.menu a.on,.tag{color:var(--a-text,var(--a))}.btn{background:none;border:0;color:var(--g);font-size:15px;padding:0}.btn:hover{color:var(--a-text,var(--a))}.resume{display:block;border:1px solid var(--a);border-radius:18px;padding:18px 20px;margin:6px 0 30px}.resume small{color:var(--a-text,var(--a));letter-spacing:.12em;text-transform:uppercase;font-size:12px}.resume b{display:block;font-size:22px;font-weight:300;margin-top:4px}.row{display:flex;gap:22px;align-items:baseline;padding:22px 0;border-top:1px solid var(--line);position:relative}.row:last-child{border-bottom:1px solid var(--line)}.row .n{font-size:38px;font-weight:300;color:var(--g);min-width:56px}.row .t{font-size:22px;line-height:1.25}.row .meta{color:var(--g);font-size:14px;margin-top:2px}.row:hover .n{color:var(--a-text,var(--a))}.row .bar{position:absolute;left:0;bottom:-1px;height:2px;background:var(--a)}.row.soon{opacity:.55}body:has(.podcast-card) .podcast-card{border:1px solid var(--line);border-left:1px solid var(--card-accent);border-radius:18px;padding:20px;margin:14px 0;background:#0d0d0d} .podcast-card p{color:var(--g);margin:8px 0}.podcast-card small{color:var(--card-text)}
audio{max-width:100%}input[type=range],progress{width:100%;accent-color:var(--a)}.tabs{display:flex;gap:6px;margin:24px 0 16px;border-bottom:1px solid var(--line);overflow-x:auto}.tabs button{background:none;border:0;border-bottom:2px solid transparent;color:var(--g);font-size:15px;padding:10px 12px;white-space:nowrap}.tabs button.on{color:var(--a-text,var(--a));border-color:var(--a)}.pane{display:none}.pane.on{display:block}.pane li{margin:10px 0}dt{color:var(--a-text,var(--a));margin-top:14px}dd{margin:2px 0 0}textarea,input[type=text],input[type=password],input[type=search]{width:100%;background:#111;color:var(--txt);border:1px solid var(--line);border-radius:14px;padding:12px}textarea{min-height:240px;resize:vertical}textarea:focus,input:focus{outline:1px solid var(--a)}.saved,.muted{color:var(--g)}.saved{font-size:13px;height:20px}.transcript p{margin:0 0 14px}mark{background:var(--a-text,var(--a));color:#111}.auth{max-width:360px;margin:12vh auto;padding:0 20px}.auth label{display:block;margin:14px 0 4px;color:var(--g);font-size:14px}.go,.pill{background:none;color:var(--a-text,var(--a));border:1px solid var(--a);border-radius:14px;padding:12px 18px}.go{margin-top:20px;width:100%}.err{color:#ff8a7a;margin-top:12px}
.as{margin-top:6px}.as-h{font-size:20px;text-align:center}.as-sub{font-size:14px;color:var(--g);text-align:center;margin:6px auto 12px;max-width:34em}.micwrap{display:flex;justify-content:center}.bigmic{--stage-color:var(--a-text,var(--a));width:min(320px,34dvh,calc(100vw - 40px));height:min(320px,34dvh,calc(100vw - 40px));position:relative;border:0;background:transparent;color:var(--stage-color);display:flex;align-items:center;justify-content:center;isolation:isolate;transition:color .6s}.bigmic[data-stage=listen]{--stage-color:var(--st-listen)}.bigmic[data-stage=think]{--stage-color:var(--st-think)}.bigmic[data-stage=delegate]{--stage-color:var(--st-delegate)}.bigmic[data-stage=voice]{--stage-color:var(--st-voice)}.bubble-outline,.bubble-ring{position:absolute;left:50%;top:50%;width:90%;height:90%;transform:translate(-50%,-50%);overflow:visible;pointer-events:none}.bubble-outline path,.bubble-ring path{fill:none;stroke:currentColor;stroke-width:1.5;vector-effect:non-scaling-stroke}.bubble-ring{opacity:0}.bigmic.rec .bubble-ring{animation:bubble-in 2s ease-out infinite}.bigmic[data-stage=voice] .bubble-ring{animation:bubble-out 2s ease-out infinite}.mic-icon{width:72px;height:72px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}.bigmic.has-agents .mic-icon{display:none}#bubble-agents{display:none;position:relative;width:75%;font-size:12px;text-align:center}.bigmic.has-agents #bubble-agents{display:block}.bubble-agent{margin:2px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bubble-agent.idle{color:var(--g)}.bubble-agent-state{opacity:.7;margin-left:.4em}@keyframes bubble-in{0%{transform:translate(-50%,-50%) scale(1);opacity:.6}100%{transform:translate(-50%,-50%) scale(.3);opacity:0}}@keyframes bubble-out{0%{transform:translate(-50%,-50%) scale(1);opacity:.6}100%{transform:translate(-50%,-50%) scale(1.1);opacity:0}}@media(prefers-reduced-motion:reduce){.bubble-ring{animation:none!important}}.mic-caption{text-align:center;font-size:15px;letter-spacing:.04em}.mic-caption b{font-weight:300}.as-stat,.creator-progress{color:var(--g);font-size:13px;text-align:center}.as-stat{min-height:20px;margin:8px 0}.creator-progress progress{max-width:260px;height:5px}.as-row{display:flex;justify-content:center;gap:10px;margin:4px 0 22px;flex-wrap:wrap}.pill{border-color:var(--line);color:var(--g);font-size:14px}.pill.on{color:var(--a-text,var(--a));border-color:var(--a)}.pill.stop{color:#ff8a7a}#as-q{min-height:84px}.as-hh{margin:34px 0 10px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--g);text-align:center}#as-hist{display:flex;flex-direction:column;gap:8px}#as-hist .m{max-width:82%;white-space:pre-wrap;overflow-wrap:anywhere;background:#1b1b1b;border-radius:18px;padding:10px 14px;font-size:16px;line-height:1.38;align-self:flex-start}#as-hist .m.u{align-self:flex-end;background:color-mix(in srgb,var(--a) 20%,#171717)}#as-hist .who{font-size:12px;color:var(--g);margin-bottom:4px}.pend{color:var(--g)}.lis{display:block;margin-top:8px;background:none;border:0;color:var(--g);font-size:13px;padding:4px 0}.lis:hover{color:var(--a-text,var(--a))}
.podcast-switch{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;padding:10px 0;scrollbar-width:thin}.podcast-chip{display:flex;align-items:center;gap:8px;white-space:nowrap;flex:none;border:1px solid var(--chip-accent);border-radius:14px;padding:7px 14px;color:#b8b8b8;font-size:15px}.podcast-chip span{width:8px;height:8px;border-radius:50%;background:var(--chip-accent)}.podcast-chip.on{border-color:var(--a);color:#fff;box-shadow:0 0 14px color-mix(in srgb,var(--a) 25%,transparent)}
.bell-wrap{position:relative;flex:none}#bell{width:42px;height:42px;border-radius:50%;border:1.5px solid currentColor;background:none;color:var(--g);display:grid;place-items:center}#bell.on{color:var(--a-text,var(--a))}#bell svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}#bell.on svg{fill:currentColor}#bell-status:not(:empty){position:absolute;z-index:10;top:100%;right:0;width:220px;padding:8px;background:#171717;border:1px solid var(--line);border-radius:10px;color:var(--txt);font-size:13px;line-height:1.3}
#player{display:flex;flex-direction:column;background:var(--bg)}.pb:disabled{opacity:.3;cursor:default}
.m.a.selected{outline:2px solid var(--a)}
/* Mobile-first navigation and shared spacing */
:root{--nav-height:70px}
.wrap{padding:0 var(--sp-4) calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 24px)}
header.top{align-items:center;gap:var(--sp-2);padding:var(--sp-2) 0;min-height:60px}
.podcast-top .podcast-switch{min-width:0;flex:1;padding:0}.top-actions{display:flex;align-items:center;gap:var(--sp-2);flex:none}.podcast-chip{min-height:44px;border-color:var(--line);border-radius:var(--r);padding:7px 12px}.podcast-chip.on{border-color:var(--a)}
#bell{width:44px;height:44px}.profile{position:relative}.profile summary{list-style:none;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;color:var(--a-text,var(--a));cursor:pointer}.profile summary::-webkit-details-marker{display:none}.profile-menu{position:absolute;z-index:20;right:0;top:calc(100% + 6px);min-width:150px;padding:12px;background:#171717;border:1px solid var(--line);border-radius:var(--r);font-size:14px}.profile-menu span{display:block;color:var(--g);overflow-wrap:anywhere}.profile-menu button{min-height:44px;border:0;background:none;color:var(--txt);padding:0}
.bottom-nav{position:fixed;z-index:15;left:0;right:0;bottom:0;display:flex;justify-content:center;background:#0b0b0b;border-top:1px solid var(--line);padding:4px max(4px,env(safe-area-inset-right, 0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(4px,env(safe-area-inset-left, 0px))}.bottom-nav a{flex:1;max-width:152px;min-width:0;min-height:62px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;color:var(--g);font-size:11px;line-height:1.2}.bottom-nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.bottom-nav a.on,.bottom-nav .assistant-link{color:var(--a-text,var(--a))}.bottom-nav .assistant-link svg{width:28px;height:28px}.bottom-nav a.on span{font-weight:600}
.page-title{font-size:clamp(30px,6vw,42px);margin:var(--sp-5) 0}.index-top h1{font-size:clamp(30px,6vw,42px)}.podcast-card a{display:block;min-height:44px}.row{min-height:60px}.back-link{display:inline-flex;align-items:center;min-height:44px;color:var(--a-text,var(--a));font-size:15px}
.tabs{border:1px solid var(--line);border-radius:var(--r);padding:4px;gap:2px}.tabs button{min-height:44px;border:0;border-radius:10px}.tabs button.on{background:color-mix(in srgb,var(--a) 16%,#111);color:var(--a-text,var(--a))}
.micwrap{position:relative;align-items:center}.as-row{margin:4px 0 12px}.compose{display:flex;align-items:stretch;gap:8px}.compose #as-q{min-height:48px;height:48px;resize:vertical}.compose .go{width:auto;min-height:48px;margin:0;flex:none}.as-hh{margin-top:24px}


/* Shared spacing, type and touch targets */
:root{--sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:24px;--sp-6:32px;--r:14px;--tap:48px;--type-small:14px;--type-body:17px;--type-title:22px;--g:#a3a3a3;--nav-height:70px}
body{font-size:var(--type-body)}button,a,input,textarea{transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}:focus-visible{outline:3px solid var(--a);outline-offset:3px}button:active:not(:disabled),a:active{transform:scale(.97)}button:disabled{opacity:.4}
.wrap{padding-left:var(--sp-4);padding-right:var(--sp-4)}header.top{gap:var(--sp-3);padding:var(--sp-3) 0;min-height:72px}.podcast-chip,#bell,.profile summary{min-height:var(--tap)}#bell,.profile summary{width:var(--tap);height:var(--tap)}
.bottom-nav{padding-top:var(--sp-1)}.bottom-nav a{min-height:56px;border-radius:var(--r);gap:var(--sp-1);transition:color .18s ease,background-color .18s ease,transform .18s ease}.bottom-nav a.on{color:var(--a-text,var(--a));background:color-mix(in srgb,var(--a) 13%,transparent)}.bottom-nav .assistant-link:not(.on){color:var(--g)}
.resume,.row,body:has(.podcast-card) .podcast-card{border:1px solid var(--line);border-radius:var(--r);background:#101010;box-shadow:0 4px 16px #0004}.resume{padding:var(--sp-4);margin:var(--sp-3) 0 var(--sp-5)}.row{align-items:center;gap:var(--sp-4);padding:var(--sp-4);margin:var(--sp-3) 0;overflow:hidden}.row:last-child{border-bottom:1px solid var(--line)}.row:hover,.resume:hover,.podcast-card:hover{border-color:var(--a);background:#171717}.row>div:not(.n),.podcast-card>div{min-width:0;flex:1}.row .n{font-size:28px;min-width:44px}.row .t{font-size:var(--type-title);font-weight:500;overflow-wrap:anywhere}.row .meta,.podcast-card p{font-size:var(--type-small);line-height:1.45;margin-top:var(--sp-2)}body:has(.podcast-card) .podcast-card{padding:var(--sp-4);margin:var(--sp-3) 0}.podcast-card p{overflow-wrap:anywhere}.podcast-card small{font-size:13px}h1,h2,h3,.resume b{overflow-wrap:anywhere}
textarea,input[type=text],input[type=password],input[type=search]{min-height:var(--tap);padding:var(--sp-3);border-radius:var(--r)}.go,.pill,.tabs button,.profile-menu button,.lis{min-height:var(--tap)}.tabs{gap:var(--sp-1);margin:var(--sp-5) 0 var(--sp-4)}#as-hist{gap:var(--sp-3)}#as-hist .m{padding:var(--sp-3) var(--sp-4);border-radius:var(--r)}#as-hist:empty::before{content:'Zatím tu nejsou žádné zprávy. Začni otázkou nebo klepni na mikrofon.';display:block;text-align:center;color:var(--g);font-size:var(--type-small);padding:var(--sp-4)}
#ctl,.voice-buttons{display:flex;align-items:center;justify-content:center;gap:4px;width:100%}#ctl .pb,.voice-buttons button{display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:0;min-height:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--a-text,var(--a));line-height:1}#ctl #back,#ctl #fwd,.voice-buttons #voice-back,.voice-buttons #voice-forward{width:64px;height:64px}#ctl #pp,.voice-buttons #voice-play{width:80px;height:80px;background:var(--a);color:var(--bg);border:0;font-size:24px}#ctl button:active,.voice-buttons button:active{background:color-mix(in srgb,var(--a) 20%,transparent)}#ctl svg,.voice-buttons svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}#ctl #back svg,#ctl #fwd svg,.voice-buttons #voice-back svg,.voice-buttons #voice-forward svg{width:38px;height:38px;stroke-width:2.2}#ctl svg text,.voice-buttons svg text{fill:currentColor;stroke:none;font:600 20px system-ui;text-anchor:middle}
#seekrow,#spdrow,.voice-speed-row{display:flex;align-items:center;gap:var(--sp-2);font-size:13px;color:var(--g);width:100%;font-variant-numeric:tabular-nums}#seekrow span:first-child,#seekrow span:last-child{width:42px;min-width:42px;flex:none}#seekrow span:last-child{text-align:right}#spdrow .lbl,.voice-speed-row span{width:62px;flex:none}#spdv,.voice-speed-row #voice-speed-value{width:64px;min-width:64px;min-height:48px;padding:0 var(--sp-2);border:1px solid var(--line);border-radius:var(--r);background:#151515;color:var(--txt);text-align:center}
#player input[type=range]{appearance:none;-webkit-appearance:none;flex:1;width:100%;min-width:0;height:48px;margin:0;background:transparent;accent-color:var(--a)}#player input[type=range]::-webkit-slider-runnable-track{height:4px;background:#454545;border-radius:4px}#player input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;margin-top:-8px;border-radius:50%;background:var(--a)}#player input[type=range]::-moz-range-track{height:4px;background:#454545;border-radius:4px}#player input[type=range]::-moz-range-thumb{width:20px;height:20px;border:0;border-radius:50%;background:var(--a)}
.voice-controls{display:flex;flex-direction:column;gap:var(--sp-2);margin:var(--sp-4) 0}.voice-speed-row #voice-speed-value{font-size:14px}#resumeinfo:empty,#part-message:empty{display:none}#part-count,#part-message{margin:0;font-size:13px}
@media(max-width:360px){#ctl,.voice-buttons{gap:4px}.bottom-nav a{font-size:10px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:0s!important;animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}
:root{--line-ui:#5c5c5c}
body:has(#player) .wrap{padding-bottom:calc(var(--player-h, 310px) + var(--nav-height) + env(safe-area-inset-bottom,0px) + 16px)}
body.detail-page header.top{min-height:56px}
#player{position:fixed;top:auto;bottom:calc(var(--nav-height) + env(safe-area-inset-bottom,0px));left:0;right:0;z-index:5;border-top:1px solid var(--line);border-bottom:0;padding:var(--sp-2) var(--sp-4);gap:0}
#ctl #prev,#ctl #next,#voice-prev,#voice-next{color:var(--g)}
#ctl .icon-play,#ctl .icon-pause,.voice-buttons .icon-play,.voice-buttons .icon-pause{fill:currentColor;stroke:none;width:28px;height:28px}
.icon-pause,.playing .icon-play{display:none}.playing .icon-pause{display:block}
body.detail-page .voice-controls:not(.has-answer){display:none}body.detail-page .voice-buttons #voice-play{width:56px;height:56px}body.detail-page #voice-prev,body.detail-page #voice-next{display:none}
#seekrow{font-size:15px;font-weight:400}#spdrow,.as-stat,.who,.bottom-nav a{font-weight:400}.bottom-nav a{font-size:12px}.row.soon{opacity:1}.row.soon .t{color:var(--g)}
.pill,.tabs,textarea,input[type=text],input[type=password],input[type=search],#spdv,.voice-speed-row #voice-speed-value,#bell,.profile summary{border-color:var(--line-ui)}
.ep-title{font:300 28px system-ui,sans-serif;margin:2px 0 var(--sp-3)}.resume-info{text-align:center;font-size:13px}.transcript-search{margin-bottom:var(--sp-4)}
.micwrap #as-cancel{width:auto;height:56px;padding:0 var(--sp-4);border-radius:var(--r);font-size:14px}
@media(max-width:360px){#ctl .pb,.voice-buttons button{width:40px;height:40px}#ctl #back,#ctl #fwd,.voice-buttons #voice-back,.voice-buttons #voice-forward{width:56px;height:56px}#ctl #pp,.voice-buttons #voice-play{width:72px;height:72px}.bottom-nav a{font-size:12px}}

.reset{margin-top:var(--sp-4);border:1px solid var(--line-ui);border-radius:var(--r);padding:var(--sp-3) var(--sp-4)}
@media(max-width:360px){#ctl,.voice-buttons{gap:0}}
