@font-face{font-family:Manrope;src:url('assets/manrope-regular.woff2') format('woff2'),url('assets/manrope-regular.ttf') format('truetype');font-weight:400 600;font-display:swap}
@font-face{font-family:Manrope;src:url('assets/manrope-bold.woff2') format('woff2'),url('assets/manrope-bold.ttf') format('truetype');font-weight:700;font-display:swap}
@font-face{font-family:Manrope;src:url('assets/manrope-extrabold.woff2') format('woff2'),url('assets/manrope-extrabold.ttf') format('truetype');font-weight:800;font-display:swap}
:root{
 --paper:#edf1ff;--surface:#f9faff;--surface-deep:#e2e8fc;--ink:#172343;--muted:#4e5c7b;--line:#c7d1ec;
 --accent-top:#2454dc;--accent-bottom:#793bd4;--accent:#2454dc;--accent-text:#7c3aed;--accent-light:#c6d6ff;--link:#3159b8;--action:#ff784a;--action-text:#c2410c;--action-end:#ffac6e;--action-ink:#321609;--danger:#b91c1c;--state:#465bc9;--primary-solid:#6d3bd1;
 --spectral-start:#2448ae;--spectral-end:#6736a5;--on-spectral:#ffffff;--on-spectral-muted:#e2e9ff;
 --dialog-glass:rgba(247,249,255,.48);--glass:rgba(247,249,255,.9);--chrome-glass:rgba(252,253,255,.75);--shadow:rgba(22,43,100,.18);--edge:rgba(255,255,255,.9);--inset:rgba(25,49,119,.12);
 --button:var(--ink);--inverse:var(--surface);--raised:0 8px 22px -13px var(--shadow),inset 0 1px 0 var(--edge);--pressed:inset 0 2px 7px var(--inset),inset 0 -1px 0 var(--edge);
 --ease-out:cubic-bezier(.23,1,.32,1);--ease-in-out:cubic-bezier(.77,0,.175,1);
 color-scheme:light;font-family:Manrope,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none;
}
:root[data-theme=dark]{
 --paper:#050b14;--surface:#131d38;--surface-deep:#0b132c;--ink:#f3f5ff;--muted:#b1bfde;--line:#293654;
 --accent-top:#407cff;--accent-bottom:#9f5cff;--accent:#9bbaff;--accent-text:#ab80ff;--accent-light:#b4c9ff;--link:#9db8ff;--action:#ff784a;--action-text:#ff784a;--action-end:#ffac6e;--action-ink:#321609;--danger:#ff6b6b;
 --spectral-start:#173576;--spectral-end:#44266f;--on-spectral:#ffffff;--on-spectral-muted:#d8e3ff;
 --dialog-glass:rgba(17,26,52,.38);--glass:rgba(17,26,52,.91);--chrome-glass:rgba(43,62,105,.58);--shadow:rgba(0,3,14,.55);--edge:rgba(170,197,255,.18);--inset:rgba(0,3,14,.5);color-scheme:dark;
}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer;color:inherit;border:0}a{color:inherit;text-decoration:none}button:disabled{cursor:not-allowed;opacity:.48}a,button{text-underline-offset:5px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex='-1']:focus-visible{outline:3px solid var(--accent);outline-offset:4px}::selection{background:var(--accent-top);color:white}input,textarea{caret-color:var(--accent)}html{scroll-padding-top:126px;scrollbar-color:var(--line) var(--paper)}[hidden]{display:none!important}.sprite{position:absolute;width:0;height:0;overflow:hidden}.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.wrap{width:min(1240px,calc(100% - 96px));margin-inline:auto}.skip{position:fixed;left:24px;top:-80px;z-index:30;padding:14px 20px;background:var(--ink);color:var(--paper);border-radius:12px}.skip:focus{top:14px}
.header-wrap{position:sticky;top:16px;z-index:10;width:min(1344px,calc(100% - 48px));margin:16px auto 0}.topbar{min-height:80px;display:flex;align-items:center;padding:14px 24px;gap:32px;background:var(--chrome-glass);backdrop-filter:blur(18px) saturate(120%);-webkit-backdrop-filter:blur(18px) saturate(120%);border:1px solid color-mix(in srgb,var(--edge) 70%,transparent);border-radius:22px;box-shadow:0 2px 10px -6px var(--shadow),0 14px 32px -22px var(--shadow),inset 0 1px 0 var(--edge),inset 0 -1px 0 var(--line)}.material{position:relative;isolation:isolate}.surface-light{position:absolute;inset:0;border-radius:inherit;pointer-events:none;opacity:0;background:radial-gradient(300px 140px at var(--light-x,60%) var(--light-y,0%),color-mix(in srgb,var(--accent-top) 18%,transparent),transparent);z-index:-1}
.brand{display:inline-flex;align-items:center;gap:8px;font-size:1.6875rem;letter-spacing:-.04em;font-weight:800;white-space:nowrap}.brand-mark{width:36px;height:36px;color:var(--accent-top)}.brand-period{color:var(--accent-top)}.brand-suffix{color:var(--accent-text)}.navigation{display:flex;gap:3px;padding:4px;background:var(--paper);box-shadow:var(--pressed);border-radius:15px}.nav-button{min-height:44px;padding:10px 23px;border-radius:11px;font-size:0.875rem;font-weight:700;background:transparent;color:var(--muted)}.nav-button.active{background:var(--state);color:var(--on-spectral);box-shadow:var(--raised)}.header-tools{margin-left:auto;display:flex;align-items:center;gap:12px}.search{display:flex;align-items:center;gap:10px;width:276px;height:46px;background:var(--paper);border-radius:12px;padding:0 14px;box-shadow:var(--pressed);color:var(--muted)}.search .icon{width:19px;height:19px}.search input{border:0;outline:0;background:transparent;color:var(--ink);width:100%;min-width:0;font-size:0.875rem;padding:10px 0}.search input::placeholder{color:var(--muted);opacity:1}.search:focus-within{outline:2px solid var(--accent);outline-offset:3px}.search input:focus-visible{outline:0}.search kbd{font-size:0.75rem;border:1px solid var(--line);border-radius:4px;padding:0 5px}.tactile{background:var(--surface);box-shadow:var(--raised)}.theme-button{width:44px;height:44px;border-radius:12px;display:grid;place-items:center}.theme-button .icon{width:20px;height:20px}#inline-mode.mode-armed{background:var(--state);color:var(--on-spectral);box-shadow:var(--raised)}
.hero{position:relative;display:grid;grid-template-columns:1.15fr 1fr;align-items:center;min-height:555px;padding-block:50px 46px;gap:8px}.hero-copy{position:relative;z-index:2}.hero h1{margin:0;font-size:clamp(48px,5.35vw,76px);font-weight:800;line-height:1.065;letter-spacing:-.04em;text-wrap:balance}.hero h1 span{color:var(--accent-text);white-space:nowrap;font-size:.72em;letter-spacing:-.035em}[data-theme=light] .hero h1 span{color:var(--accent-text)}.hero-description{font-size:1.0625rem;line-height:1.75;color:var(--muted);margin:24px 0 26px;max-width:480px}.hero-actions{display:flex;align-items:center;gap:24px}.primary,.secondary,.quiet-button{min-height:43.2px;display:inline-flex;align-items:center;justify-content:center;gap:12px;font-size:0.875rem;font-weight:700;border-radius:12px;padding:12px 20px}.primary{background:var(--primary-solid);color:#fff;box-shadow:0 8px 18px -12px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.18)}.primary .icon{width:20px;height:20px}.secondary{background:var(--surface);box-shadow:var(--raised)}.quiet-button{background:transparent;padding-inline:0;gap:8px}.quiet-button .icon{width:18px;height:18px;color:var(--accent)}.author{display:flex;align-items:center;gap:11px;margin-top:32px}.author-seal{height:40px;width:40px;display:grid;place-items:center;border-radius:12px;background:var(--state);box-shadow:var(--raised);font-size:0.75rem;font-weight:800;color:var(--on-spectral)}.author strong{display:block;font-size:0.8125rem;font-weight:700}.author div>span{display:block;margin-top:3px;font-size:0.75rem;color:var(--muted)}
.hero-object{position:relative;align-self:stretch;min-height:460px;pointer-events:none}.hero-object canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1}.glass-fallback{position:absolute;inset:0;width:100%;height:100%;opacity:1}.glass-ready .glass-fallback{visibility:hidden}.optical-bench{position:absolute;inset:0;width:100%;height:100%;color:var(--accent-top);opacity:.65}.object-note{position:absolute;left:16%;bottom:0;display:flex;align-items:center;gap:12px;font-size:0.75rem;color:var(--muted);z-index:2;white-space:nowrap}.note-line{width:42px;height:2px;background:linear-gradient(90deg,var(--accent-top),var(--accent-bottom))}.object-tag{position:absolute;right:-4px;top:18%;display:flex;align-items:center;gap:9px;border-radius:10px;padding:12px 15px;font-size:0.75rem;font-weight:700;color:var(--on-spectral-muted);background:var(--state);box-shadow:var(--raised);z-index:2;transform:rotate(4deg)}.object-tag .icon{width:18px;height:18px;color:var(--action)}
.library{padding-top:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.section-heading h2{font-size:0.9rem;letter-spacing:-.035em;font-weight:800;line-height:1.2;margin:0}.title-period{color:var(--action-text)}.section-heading p{font-size:0.875rem;color:var(--muted);margin:9px 0 0}.filter-button{display:flex;align-items:center;gap:9px;font-size:0.8125rem;font-weight:700;min-height:39.6px;padding:9px 14px;border-radius:12px}.filter-button .icon{width:18px;height:18px}.filter-button>span{background:#ab80ff;color:#2b1658;border-radius:6px;font-size:0.75rem;min-width:21px;padding:2px}.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid color-mix(in srgb,var(--edge) 70%,transparent);border-radius:16px;background:var(--chrome-glass);backdrop-filter:blur(18px) saturate(120%);-webkit-backdrop-filter:blur(18px) saturate(120%);box-shadow:0 10px 28px -22px var(--shadow),0 2px 8px -6px var(--shadow),inset 0 1px 0 var(--edge),inset 0 -1px 0 var(--line);margin-bottom:28px;margin-top:0.5cm}.topics{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;min-width:0;flex:1 1 auto}.topics-rail{flex:1 1 auto;min-width:0;overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(90deg,transparent,#000 20px,#000 calc(100% - 20px),transparent);mask-image:linear-gradient(90deg,transparent,#000 20px,#000 calc(100% - 20px),transparent)}.topics-track{display:flex;gap:5px;width:max-content;will-change:transform}.topics-track.is-marquee{animation:topics-marquee var(--topics-duration,28s) linear infinite}.topics-track.is-paused,.topics-rail:hover .topics-track,.topics-rail:active .topics-track,.topics-rail:focus-within .topics-track,.is-page-scrolling .topics-track{animation-play-state:paused}.topics-group{display:flex;gap:5px;flex:none}.topics-clone .topic{pointer-events:none}.topics-track:not(.is-marquee) .topics-clone{display:none}.topics-rail.is-static{overflow-x:auto;scrollbar-width:thin}.topics-rail.is-static .topics-clone{display:none}.topics-rail.is-manual{overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.topics-rail.is-manual::-webkit-scrollbar{display:none}.topics-rail.is-manual .topics-track{animation:none;transform:none;will-change:auto}.topics-rail.is-manual .topics-clone{display:none}.topic-fixed{flex:0 0 auto}@keyframes topics-marquee{from{transform:translate3d(0,0,0)}to{transform:translate3d(var(--topics-shift,-50%),0,0)}}.topic{font-size:0.8125rem;font-weight:700;padding:9px 20px;border-radius:10px;min-height:39.6px;background:transparent;color:var(--muted)}.topic.selected{background:var(--state);color:var(--on-spectral);box-shadow:var(--raised)}.library-type{font-size:0.75rem;color:var(--muted);text-align:right}.library-disclosure{color:var(--muted);font-size:0.75rem;margin:0 0 20px;display:flex;align-items:center;gap:8px}.library-disclosure .icon{width:16px;height:16px;color:var(--accent)}.active-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}.active-chip{display:flex;align-items:center;gap:8px;background:var(--surface);min-height:40px;padding:8px 12px;border-radius:8px;color:var(--ink);font-size:0.8125rem;box-shadow:var(--raised)}.active-chip .icon{width:15px;height:15px}.posts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 40px}.post{position:relative;display:grid;grid-template-columns:160px 1fr;gap:24px;padding:30px 0;border-bottom:1px solid var(--line);align-items:start;min-width:0}.post-art{display:block;position:relative;overflow:hidden;border-radius:14px;background:var(--surface-deep);aspect-ratio:1.08;box-shadow:0 12px 26px -20px var(--shadow)}.post-art::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 1px 0 var(--edge);pointer-events:none}.post-art img{width:100%;height:100%;display:block;object-fit:cover}.post-content{min-width:0}.post-topic{font-size:0.75rem;font-weight:800;letter-spacing:.065em;color:var(--accent);text-transform:uppercase;display:flex;flex-wrap:wrap;align-items:center;gap:12px}.pin-label{font-weight:400;letter-spacing:0;text-transform:none;color:var(--muted);font-size:0.75rem;display:flex;align-items:center;gap:6px}.pin-label .icon{width:15px;height:15px}.result-kind{color:var(--muted);font-size:0.75rem;letter-spacing:0;text-transform:none;font-weight:700}.post h3{font-size:1.375rem;line-height:1.35;letter-spacing:-.025em;font-weight:800;margin:10px 0}.post p{font-size:0.875rem;line-height:1.75;color:var(--muted);margin:0}.post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px;font-size:0.75rem;color:var(--muted);margin-top:17px;font-variant-numeric:tabular-nums}
.meta-upd{color:var(--accent);font-weight:700}.post-dates{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;line-height:1.35;vertical-align:middle}.post-dates .meta-upd{display:block;max-width:100%;white-space:normal;overflow-wrap:break-word}.meta-dot{height:3px;width:3px;border-radius:50%;background:var(--muted)}.read-link{display:inline-flex;align-items:center;gap:8px;min-height:40px;font-size:0.8125rem;font-weight:700;margin-top:6px}.read-link .icon{width:18px;height:18px;color:var(--accent)}
.post.featured{grid-column:1/-1;grid-template-columns:1.06fr 1fr;gap:42px;border:0;padding:0 0 20px;align-items:center}.featured .post-art{aspect-ratio:1.58;border-radius:16px}.featured .post-content{padding:18px 28px 18px 0}.featured h3{font-size:2.25rem;line-height:1.22;margin:17px 0;letter-spacing:-.035em;max-width:490px}.featured p{font-size:1rem;line-height:1.75}.featured .post-meta{margin-top:22px}.featured .read-link{font-size:0.875rem;margin-top:13px}.featured .read-link .icon{width:21px;height:21px}.posts.apps{gap:30px}.apps .post{display:block;padding:0 0 24px}.apps .post-art{aspect-ratio:1.65;margin-bottom:24px}.apps .post-content{padding:0 10px}.apps .post h3{font-size:1.875rem}.apps .post p{font-size:0.9375rem}.apps .read-link{font-size:0.875rem}.art-caption{font-size:0.6875rem;color:var(--muted);margin:8px 0 14px;letter-spacing:.01em}
.catalogue-band{padding-block:40px 64px}.catalogue{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center;background:var(--dialog-glass);backdrop-filter:blur(18px) saturate(120%);-webkit-backdrop-filter:blur(18px) saturate(120%);border:1px solid color-mix(in srgb,var(--edge) 70%,transparent);color:var(--ink);border-radius:20px;box-shadow:0 28px 80px rgba(0,3,18,.3),inset 0 1px 0 rgba(255,255,255,.28),inset 0 -1px 0 rgba(255,255,255,.07);padding:50px;overflow:hidden}.catalogue h2{font-size:2.75rem;line-height:1.15;letter-spacing:-.035em;font-weight:800;margin:0}.catalogue-hi{color:var(--accent-text)}.catalogue-copy p{font-size:0.9375rem;line-height:1.8;color:var(--muted);margin:20px 0 26px}.catalogue .primary{background:var(--primary-solid);color:#fff;box-shadow:0 8px 18px -12px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.18)}.catalogue-art{position:relative}.mini-window{overflow:hidden;width:100%;border-radius:12px;box-shadow:0 20px 30px -18px var(--shadow)}.mini-window-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:#101d3b;color:#d8e3ff}.mini-window-head b{font-size:0.75rem;font-weight:700}.mini-window-head small{font-size:0.6875rem}.mini-window img,.mini-window video{width:100%;display:block;height:auto;aspect-ratio:1.6;object-fit:cover}.catalogue-chip{font-size:0.75rem;display:flex;align-items:center;gap:9px;margin-top:17px;color:var(--muted)}.catalogue-chip .icon{width:17px;height:17px;color:var(--action)}.footer{padding-block:12px 28px}.footer-top{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:30px}.footer-top p{font-size:0.875rem;color:var(--muted)}.footer-top-link{display:flex;align-items:center;gap:12px;font-size:0.8125rem;min-height:44px}.footer-top-link .icon{width:17px;height:17px;transform:rotate(-90deg);animation:rise-pulse 1.8s ease-in-out infinite}@keyframes rise-pulse{0%,100%{transform:rotate(-90deg) scale(1);opacity:1}50%{transform:rotate(-90deg) scale(1.3);opacity:.6}}@media(prefers-reduced-motion:reduce){.footer-top-link .icon{animation:none}}.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid var(--line);padding-top:24px;color:var(--muted);font-size:0.75rem}.footer-copy{display:flex;align-items:center;gap:14px}
.reader{max-width:1040px;padding-block:48px 64px;outline:none}.reader-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:42px}.back-link{display:flex;align-items:center;gap:10px;background:transparent;font-size:0.875rem;font-weight:700;padding:12px 0;min-height:39.6px}.back-link .icon{width:20px;height:20px;color:var(--accent)}.reader-top .secondary{font-size:0.8125rem}.reader-head{max-width:820px;margin:auto}.reader .post-topic{font-size:0.8125rem}.reader h1{font-size:clamp(38px,4.5vw,62px);line-height:1.1;letter-spacing:-.035em;font-weight:800;margin:20px 0 26px;text-wrap:balance}.reader .reader-intro{font-size:1.3125rem;line-height:1.7;color:color-mix(in srgb,var(--accent) 55%,var(--muted))}.reader .post-meta{font-size:0.8125rem;margin:24px 0}.demo-label{display:inline-flex;font-size:0.75rem;letter-spacing:0;text-transform:none;font-weight:700;color:var(--muted);padding:5px 9px;background:var(--surface);border-radius:6px}.reader-cover{margin:34px 0 38px;background:var(--surface-deep);overflow:hidden;border-radius:16px;aspect-ratio:2.4}.reader-cover img{width:100%;height:100%;object-fit:cover}.reader-body{max-width:68ch;margin:0 auto;font-size:1.0625rem;line-height:1.85}.reader-body h2{font-size:1.875rem;line-height:1.3;letter-spacing:-.025em;margin:44px 0 16px}.reader-body p{color:var(--muted);margin:0 0 20px}.reader-body img{max-width:100%;height:auto;display:block;margin:26px 0;border-radius:12px;box-shadow:var(--raised)}.reader-body a{color:var(--link);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}.reader-body a:hover{text-decoration-thickness:2px}.reader-body li{color:var(--muted);padding-left:6px;margin:12px 0}.reader-body li strong{color:var(--ink)}.reader-links{margin:30px 0 0;padding:16px 18px;background:var(--surface);border-radius:12px;box-shadow:var(--pressed)}.reader-links-head{font-size:0.6875rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}.reader-link{font-size:0.8125rem;line-height:1.75;margin:0;color:var(--muted);overflow-wrap:anywhere}.reader-link a{color:var(--link)}.reader-download .article-resources{justify-content:flex-end}
.reader-notice{font-size:0.8125rem;line-height:1.8;color:var(--muted);padding:18px 20px;background:var(--surface);border-radius:12px;box-shadow:var(--pressed)}.prompt-box{margin:30px 0;background:var(--surface);box-shadow:var(--raised);border-radius:14px;overflow:hidden}.prompt-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 22px;background:var(--state);color:var(--on-spectral);font-size:0.875rem}.prompt-head .secondary{font-size:0.8125rem;min-height:39.6px;padding:10px 14px;color:var(--ink)}.prompt-box pre{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:0.875rem;line-height:1.85;padding:24px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:var(--ink)}.reader-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
dialog{border:0;color:var(--ink);background:linear-gradient(145deg,var(--surface),var(--surface-deep));padding:30px;border-radius:20px;box-shadow:0 30px 90px rgba(0,3,18,.4),inset 0 1px 0 var(--edge);width:560px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto}dialog::backdrop{background:rgba(3,7,23,.63);backdrop-filter:blur(5px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.dialog-heading h2{font-size:1.625rem;letter-spacing:-.025em;line-height:1.3;margin:0}.dialog-heading>span{font-size:0.8125rem;color:var(--muted)}.icon-button{display:grid;place-items:center;width:39.6px;height:39.6px;border-radius:12px;background:var(--paper);box-shadow:var(--pressed);flex-shrink:0}.icon-button .icon{width:20px;height:20px}.filter-explanation{font-size:0.8125rem;line-height:1.7;color:var(--muted);margin:0}.filter-body h3{font-size:0.9375rem;font-weight:800;margin:26px 0 14px}.filter-options{display:flex;flex-wrap:wrap;gap:9px}.filter-option{font-size:0.8125rem;padding:11px 15px;border-radius:10px;background:var(--paper);box-shadow:var(--raised);min-height:39.6px}.filter-option[aria-pressed=true]{color:var(--on-spectral);background:var(--state);box-shadow:var(--raised)}#filter-live-count{font-size:0.8125rem;color:var(--muted);margin-top:24px}.filter-footer{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.filter-footer button{flex:1;white-space:nowrap;padding-inline:14px}
.login-dialog{width:430px}.login-username-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.login-note{font-size:0.8125rem;line-height:1.7;color:var(--muted);margin:0 0 20px}.login-form label{display:block;font-size:0.75rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}.login-form input{width:100%;background:var(--paper);color:var(--ink);border:0;border-radius:12px;box-shadow:var(--pressed);padding:14px 16px;font:inherit;font-size:1rem}.login-form input+label{margin-top:16px}.login-error{font-size:0.8125rem;line-height:1.6;color:var(--danger);min-height:20px;margin:12px 0 0}.footer-contact.admin-signed{color:var(--accent-top)}
#inline-mode.mode-hint{animation:hint-pulse 1.4s ease-in-out infinite}@keyframes hint-pulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--accent-top) 55%,transparent)}55%{box-shadow:0 0 0 7px color-mix(in srgb,var(--accent-top) 0%,transparent)}}@media(prefers-reduced-motion:reduce){#inline-mode.mode-hint{animation:none;outline:2px solid var(--accent-top);outline-offset:3px}}
@media(max-width:760px){.image-grid{grid-template-columns:1fr}}
.image-dialog{width:820px;max-width:calc(100vw - 24px)}.image-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px;align-items:start}.image-stage canvas{width:100%;height:auto;display:block;border-radius:12px;background:var(--surface-deep);box-shadow:var(--pressed);cursor:grab;touch-action:none}.image-stage canvas.is-dragging{cursor:grabbing}.image-stage.is-drop canvas{outline:2px dashed var(--accent-top);outline-offset:3px}.image-hint{font-size:0.75rem;line-height:1.6;color:var(--muted);margin:10px 0 0}.image-status{font-size:0.75rem;line-height:1.6;color:var(--muted);min-height:18px;margin:6px 0 0}.image-status[data-tone=error]{color:var(--danger)}.image-controls{display:grid;gap:12px}.image-choose{justify-self:start}.img-range{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 10px;font-size:0.75rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}.img-range input[type=range]{grid-column:1/-1;width:100%;accent-color:var(--accent-top)}.img-range output{font-variant-numeric:tabular-nums;font-weight:700;color:var(--ink);letter-spacing:0;text-transform:none}.img-buttons{display:flex;flex-wrap:wrap;gap:6px}.img-buttons .secondary{font-size:0.75rem;padding:8px 10px;min-height:36px}.img-buttons .secondary[aria-pressed=true]{color:var(--on-spectral);background:var(--state)}.image-card{display:flex;flex-direction:column;gap:6px;align-items:flex-start}.image-card-head{font-size:0.6875rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.image-card-head small{font-weight:400;letter-spacing:0;text-transform:none;font-size:0.6875rem}.image-card canvas{width:200px;max-width:100%;height:auto;border-radius:10px;background:var(--surface-deep);box-shadow:var(--pressed);cursor:move;touch-action:none}.image-card output{font-size:0.6875rem;color:var(--muted)}.img-alt{display:grid;gap:6px;font-size:0.75rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}.img-alt textarea{width:100%;font:inherit;font-size:0.875rem;text-transform:none;letter-spacing:0;font-weight:400;background:var(--paper);color:var(--ink);border:0;border-radius:10px;box-shadow:var(--pressed);padding:10px 12px;resize:vertical;min-height:62px}.img-notice{font-size:0.6875rem;line-height:1.6;color:var(--muted);margin:0}.icon-dialog{width:620px;max-width:calc(100vw - 24px)}
.icon-note{font-size:0.8125rem;line-height:1.7;color:var(--muted);margin:0 0 16px}
.icon-rows{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.icon-row{display:grid;grid-template-columns:44px minmax(0,1fr) minmax(0,1.4fr) 38px;gap:8px;align-items:center}
.icon-row input{min-width:0;background:var(--paper);color:var(--ink);border:0;border-radius:9px;box-shadow:var(--pressed);padding:10px 12px;font:inherit;font-size:0.875rem}
.icon-pick{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;background:var(--paper);box-shadow:var(--pressed);color:var(--accent-top)}
.icon-pick .icon{width:20px;height:20px}
.icon-remove{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;color:var(--danger);background:var(--paper);box-shadow:var(--pressed)}
.icon-remove .icon{width:17px;height:17px}
.icon-empty{font-size:0.8125rem;color:var(--muted);margin:0}
.icon-picker{display:flex;flex-direction:column;gap:10px;margin-bottom:12px}
.icon-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:0.8125rem;font-weight:700}
.icon-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(94px,1fr));gap:8px}
.icon-choice{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px;border-radius:10px;background:var(--paper);box-shadow:var(--pressed);font-size:0.625rem;color:var(--muted)}
.icon-choice .icon{width:22px;height:22px;color:var(--ink)}
.icon-choice.on{outline:2px solid var(--accent-top);outline-offset:2px;color:var(--ink)}
.icon-status{font-size:0.75rem;line-height:1.6;color:var(--danger);min-height:18px;margin:8px 0 0}
.icon-add{align-self:flex-start}
.icon-resource-add{display:none;place-items:center;width:34px;height:34px;border-radius:10px;border:1px dashed color-mix(in srgb,var(--accent-top) 45%,transparent);color:var(--accent-top);flex:0 0 34px}
.icon-resource-add .icon{width:16px;height:16px}
body.admin-editing .icon-resource-add{display:grid}
.cover-plus{display:none;position:absolute;top:10px;left:10px;z-index:4;place-items:center;width:34px;height:34px;border-radius:10px;color:var(--on-spectral);background:var(--state);border:1px solid rgba(255,255,255,.5);backdrop-filter:blur(18px);cursor:pointer}.cover-plus .icon{width:17px;height:17px}body.admin-editing .cover-plus{display:grid}.ghost-body{min-height:180px!important;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:0.8125rem!important;line-height:1.7!important}
/*Skryté ikony v administraci (šedé) + šedé tlačítko skryté položky v modalu.*/
.resource-link.icon-off{opacity:.35;filter:grayscale(1)}
body.icon-editing #posts .resource-link[data-icon]{cursor:pointer;outline:1px dashed transparent}
body.icon-editing #posts .resource-link[data-icon]:hover{outline-color:var(--accent)}
body.icon-editing #posts .resource-link.icon-off{outline:1px dashed var(--muted)}
#icon-mode[aria-pressed="true"]{color:var(--accent-top);border:1px solid currentColor}
.archive-row .archive-hidden-btn{color:var(--muted);border-color:var(--line);background:transparent}
/*Tlačítko zařazení karty vedle úchytu přesunu (jen režim správce).*/
.placement-btn{display:none;position:absolute;top:8px;right:48px;z-index:4;place-items:center;width:32px;height:36px;padding:6px;color:var(--accent-top);background:var(--dialog-glass);border:1px solid var(--line);border-radius:9px;backdrop-filter:blur(18px);cursor:pointer}
.placement-btn .icon{width:18px;height:18px}
body.admin-editing .placement-btn{display:grid}
/*Modal zařazení: řádky jako tabulka, volby vedle sebe (zalamují se do řádku).*/
.placement-table{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin:0 0 16px}
.placement-row{display:grid;grid-template-columns:minmax(96px,150px) 1fr;gap:8px 16px;padding:12px 16px;border-top:1px solid var(--line)}
.placement-row:first-child{border-top:0}
.placement-rowhead{font-size:0.8125rem;font-weight:800;padding-top:6px}
.placement-options{display:flex;flex-wrap:wrap;gap:2px 18px;min-width:0}
.placement-opt{display:flex;align-items:center;gap:8px;font-size:0.875rem;line-height:1.35;padding:4px 0;cursor:pointer}
.placement-opt input{width:19px;height:19px;accent-color:var(--accent-top);flex-shrink:0}
.placement-opt input:disabled{cursor:not-allowed}
.placement-scope{margin:0 0 16px}
.placement-scope h3{font-size:0.8125rem;font-weight:800;margin:0 0 8px}
.placement-scope table{width:100%;border-collapse:collapse;font-size:0.8125rem}
.placement-scope th,.placement-scope td{border:1px solid var(--line);padding:6px 8px;text-align:center}
.placement-scope th:first-child,.placement-scope td:first-child{text-align:left}
.placement-scope tbody tr:nth-child(odd){background:color-mix(in srgb, var(--line) 18%, transparent)}
.placement-scope input{width:17px;height:17px;accent-color:var(--accent-top)}
.placement-scope-status{font-size:0.8125rem;color:var(--accent);margin:8px 0 0;min-height:1.3em}
@media (max-width:560px){.placement-row{grid-template-columns:1fr;gap:4px}}
.placement-auto{margin-top:4px}
#placement-sub{font-size:0.8125rem;color:var(--muted);line-height:1.7}
#placement-status{font-size:0.8125rem;color:var(--accent);min-height:1.4em}
/*Náhled promptu/kódu po zkopírování: tlačítka drží nahoře, dlouhý text scrolluje.*/
.prompt-view-bar{position:sticky;top:0;display:flex;gap:10px;justify-content:flex-end;background:var(--surface);padding:12px 4px;margin-bottom:14px;z-index:2}
.prompt-view-pre{max-height:58vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:0.875rem;line-height:1.8;background:var(--paper);border-radius:12px;padding:18px 20px;margin:0;color:var(--ink)}.app-dialog{width:680px}.app-preview{display:block;border-radius:12px;max-height:285px;width:100%;object-fit:contain;background:var(--surface-deep)}.app-dialog h2{font-size:2.25rem;letter-spacing:-.03em;line-height:1.2;margin:26px 0 16px}.app-dialog p,.edit-dialog>p{font-size:0.9375rem;line-height:1.8;color:var(--muted)}.app-notice{padding:14px 16px;background:var(--paper);border-radius:10px;font-size:0.8125rem!important}.dialog-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.edit-dialog{width:670px}.edit-dialog label{font-size:0.875rem;font-weight:700;display:block;margin:24px 0 10px}.edit-dialog textarea{width:100%;background:var(--paper);color:var(--ink);border:0;border-radius:12px;box-shadow:var(--pressed);padding:16px;font-size:1rem;line-height:1.8;resize:vertical;min-height:160px}.edit-dialog .edit-status{font-size:0.8125rem;min-height:22px;margin:12px 0}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:30;width:max-content;max-width:calc(100% - 32px);padding:15px 22px;border-radius:12px;background:var(--ink);color:var(--paper);font-size:0.875rem;line-height:1.6;box-shadow:0 14px 28px -10px var(--shadow);text-align:center}.empty-state{grid-column:1/-1;text-align:center;padding:65px 20px;background:linear-gradient(135deg,var(--surface),var(--surface-deep));border-radius:16px}.empty-state>.icon{width:42px;height:42px;color:var(--accent)}.empty-state h3{font-size:1.75rem;margin:20px 0 12px}.empty-state p{font-size:0.9375rem;color:var(--muted);line-height:1.8;margin:0 0 24px}.loading-note{padding:60px 0;color:var(--muted);font-size:1rem}.loading-note::before{content:"";display:block;width:68px;height:4px;border-radius:2px;background:linear-gradient(90deg,var(--accent-top),var(--accent-bottom));margin-bottom:20px}.noscript{padding:40px;color:var(--accent)}.noscript a{text-decoration:underline}
@media(hover:hover) and (pointer:fine){.nav-button:not(.active):hover,.topic:not(.selected):hover,.post h3 a:hover,.read-link:hover,.quiet-button:hover{color:var(--accent)}.secondary:hover,.tactile:hover{background:var(--surface-deep)}.primary:hover{box-shadow:0 12px 22px -14px rgba(0,0,0,.35)}.catalogue .primary:hover{box-shadow:0 12px 22px -14px rgba(0,0,0,.35)}}
@media(max-width:1100px){.wrap{width:calc(100% - 64px)}.topbar{gap:20px;padding:14px 18px}.brand{font-size:1.5rem}.brand-mark{width:31px;height:31px}.search{width:220px}.nav-button{padding-inline:16px}.hero{grid-template-columns:1.22fr 1fr;min-height:530px}.hero h1{font-size:3.75rem}.hero h1 span{font-size:.69em}.hero-description{font-size:1rem}.hero-object{min-height:440px}.hero-actions{gap:18px}.hero-actions .primary,.hero-actions .quiet-button{font-size:0.8125rem}.object-tag{right:-8px;padding:11px;font-size:0.6875rem}.posts{column-gap:28px}.post{grid-template-columns:120px 1fr;gap:18px}.post h3{font-size:1.25rem}.post p{font-size:0.8125rem}.post.featured{gap:32px}.featured .post-content{padding-right:0}.featured h3{font-size:1.875rem}.featured p{font-size:0.9375rem}.catalogue{padding:36px}.catalogue h2{font-size:2.375rem}.catalogue-copy p{font-size:0.875rem}.desktop-break{display:none}}
@media(max-width:850px){.header-wrap{width:calc(100% - 32px);top:12px;margin-top:12px}.topbar{gap:12px;min-height:76px;padding:12px 16px;flex-wrap:wrap}.brand{font-size:1.375rem}.brand-mark{width:28px;height:28px}.search{width:180px}.search kbd{display:none}.header-tools{gap:8px}.nav-button{font-size:0.8125rem;padding-inline:12px}.hero{grid-template-columns:1.2fr 1fr;min-height:475px;padding-block:38px}.hero h1{font-size:3rem}.hero h1 span{font-size:.7em}.hero-description{font-size:0.9375rem;margin:20px 0}.hero-object{min-height:396px}.hero-actions{gap:10px;flex-wrap:wrap}.hero-actions .primary{font-size:0.75rem;padding-inline:16px}.hero-actions .quiet-button{font-size:0.75rem}.author{margin-top:22px}.object-tag{top:22%;font-size:0.625rem;gap:6px}.object-note{left:14%;font-size:0.6875rem;gap:8px}.note-line{width:23px}.section-heading h2{font-size:0.75rem}.section-heading p{font-size:0.8125rem}.filter-button{font-size:0.75rem;padding-inline:13px}.posts{grid-template-columns:1fr}.post{grid-template-columns:156px 1fr;gap:22px}.post h3{font-size:1.125rem}.post p{font-size:0.8125rem}.featured h3{font-size:1.6875rem}.featured p{font-size:0.875rem}.post-topic,.pin-label{font-size:0.6875rem}.featured .post-topic{gap:8px}.catalogue{gap:24px;padding:30px}.catalogue h2{font-size:2rem}.catalogue-chip{font-size:0.6875rem}.reader h1{font-size:2.875rem}.reader .reader-intro{font-size:1.1875rem}.footer-bottom{font-size:0.6875rem}}
@media(max-width:680px){
 html{scroll-padding-top:184px}.wrap{width:calc(100% - 40px)}.header-wrap{width:calc(100% - 24px);top:8px;margin-top:8px}.topbar{padding:10px 12px;gap:9px 6px;border-radius:16px;justify-content:space-between}.brand{font-size:1.3125rem;gap:4px}.brand-mark{width:27px;height:27px}.navigation{padding:3px;border-radius:12px}.nav-button{min-height:40px;padding:8px 13px;border-radius:9px;font-size:0.75rem}.header-tools{flex-basis:100%;margin:0;gap:9px}.search{width:auto;flex:1;height:42px;border-radius:10px}.search input{font-size:1rem;padding-block:8px}.theme-button{width:42px;height:42px;border-radius:10px}.hero{display:block;min-height:0;padding-block:30px 28px}.hero h1{font-size:clamp(40px,10.9vw,62px);line-height:1.05;letter-spacing:-.04em}.hero h1 span{font-size:.73em;line-height:1.35;white-space:normal}.hero-description{font-size:0.875rem;line-height:1.7;margin:28px 0 18px;max-width:420px}.hero-actions{gap:16px;flex-wrap:wrap}.hero-actions .primary{min-height:39.6px;padding:12px 15px;font-size:0.75rem;border-radius:10px}.hero-actions .quiet-button{font-size:0.75rem;min-height:39.6px}.hero-actions .icon{width:17px;height:17px}.author{margin-top:22px;min-height:42px;padding-right:90px}.author strong{font-size:0.75rem}.author div>span{font-size:0.6875rem}.author-seal{width:35px;height:35px;border-radius:10px;font-size:0.6875rem}.hero-object{position:absolute;top:8px;right:-2px;bottom:auto;width:144px;height:148px;min-height:0;z-index:3}.hero h1{padding-right:80px}.hero-description{padding-right:0}.hero-object canvas{inset:0;width:100%;height:100%}.optical-bench,.object-tag,.object-note{display:none}.library{padding-top:16px}.section-heading{align-items:center;gap:14px;margin-bottom:18px}.section-heading h2{font-size:0.675rem;line-height:1.15;max-width:250px}.section-heading p{font-size:0.75rem;line-height:1.6;max-width:235px;margin-top:7px}.filter-button{font-size:0;gap:0;width:38px;height:38px;min-width:38px;padding:0;justify-content:center;border-radius:11px}.filter-button .icon{width:19px;height:19px}.filter-button>span{position:absolute;right:-5px;top:-7px}.library-toolbar{margin-top:0;margin-bottom:16px;padding-bottom:15px}.topic{padding:8px 13px;min-height:38px;font-size:0.75rem}.topics{gap:3px}.library-type{display:none}.library-disclosure{font-size:0.6875rem;margin-bottom:14px}.posts{grid-template-columns:1fr;gap:0}.post{grid-template-columns:106px 1fr;padding:24px 0;gap:17px}.post h3{font-size:1.25rem;margin:8px 0}.post p{font-size:0.8125rem;line-height:1.75}.post-art{border-radius:12px;aspect-ratio:.95}.post-topic{font-size:0.6875rem;gap:8px}.post .post-meta{font-size:0.6875rem;margin-top:12px;gap:7px}.read-link{font-size:0.75rem;margin-top:5px}.post.featured{display:flex;flex-direction:column;gap:0;padding-bottom:8px;align-items:stretch}.featured .post-art{aspect-ratio:1.85;border-radius:14px}.featured .post-content{padding:22px 0 12px}.featured h3{font-size:1.8125rem;line-height:1.24;max-width:none;margin:12px 0}.featured p{font-size:0.9375rem;line-height:1.75}.featured .read-link{font-size:0.875rem;margin-top:10px}.featured .post-meta{font-size:0.75rem}.pin-label{font-size:0.6875rem}.posts.apps{gap:28px}.apps .post-art{aspect-ratio:1.65;margin-bottom:21px}.apps .post-content{padding:0}.apps .post h3{font-size:1.75rem}.apps .post p{font-size:0.9375rem}.catalogue-band{padding-block:34px 44px}.catalogue{grid-template-columns:1fr;padding:28px 24px;gap:28px;border-radius:16px}.catalogue h2{font-size:2.1875rem}.catalogue-copy p{font-size:0.875rem;margin:16px 0 23px}.catalogue-art{max-width:430px}.catalogue-chip{font-size:0.6875rem}.footer-top{flex-wrap:wrap;gap:6px 16px;padding-bottom:22px}.footer-top p{font-size:0.75rem}.footer-top-link{font-size:0.75rem}.footer-bottom{align-items:flex-start;flex-direction:column;gap:8px;font-size:0.6875rem;line-height:1.7;padding-top:20px}.reader{padding-block:28px 40px}.reader-top{gap:12px;margin-bottom:28px;align-items:flex-start}.back-link{font-size:0.75rem;white-space:nowrap;gap:6px}.reader-top .secondary{font-size:0.6875rem;min-height:44px;padding:10px 12px;max-width:154px}.reader h1{font-size:2.3125rem;line-height:1.12;margin:19px 0 21px}.reader .post-topic{font-size:0.75rem}.reader .reader-intro{font-size:1.0625rem;line-height:1.75}.reader .post-meta{font-size:0.75rem;margin:23px 0}.reader-cover{margin:26px 0;aspect-ratio:1.6;border-radius:12px}.reader-body{font-size:1rem;line-height:1.85}.reader-body h2{font-size:1.6875rem;margin:34px 0 14px}.reader-notice{font-size:0.75rem;padding:16px}.prompt-head{padding:14px 16px;font-size:0.8125rem;gap:10px}.prompt-head .secondary{font-size:0.75rem;padding:10px}.prompt-box pre{font-size:0.8125rem;padding:20px 17px}.reader-actions{gap:10px}.reader-actions button{font-size:0.8125rem}.dialog-heading h2{font-size:1.4375rem}dialog{padding:22px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:16px}.filter-body h3{margin-top:22px}.filter-option{font-size:0.75rem;padding:10px 13px}.filter-footer{gap:8px}.filter-footer button{font-size:0.75rem;padding-inline:12px}.app-dialog h2{font-size:1.875rem}.app-dialog p,.edit-dialog>p{font-size:0.875rem}.dialog-actions{gap:9px}.dialog-actions .primary,.dialog-actions .secondary{font-size:0.75rem;min-height:44px;padding:12px 14px}.app-preview{max-height:225px}.edit-dialog textarea{font-size:1rem;min-height:155px}.toast{bottom:18px;font-size:0.8125rem;padding:14px 18px}.empty-state{padding:46px 20px}.empty-state h3{font-size:1.5625rem}.empty-state p{font-size:0.875rem}
}
@media(max-width:360px){.wrap{width:calc(100% - 32px)}.topbar{padding-inline:10px}.brand{font-size:1.125rem}.brand-mark{width:23px;height:23px}.nav-button{font-size:0.6875rem;padding-inline:10px}.hero{padding-top:26px}.hero h1{font-size:2.375rem}.hero h1 span{font-size:.68em}.hero-description{font-size:0.8125rem}.hero-actions{gap:5px 12px}.hero-actions .primary,.hero-actions .quiet-button{font-size:0.6875rem}.hero-object{width:125px;height:129px;right:-2px}.hero h1{padding-right:68px}.author{padding-right:62px;gap:8px}.author strong{font-size:0.6875rem}.author-seal{width:32px;height:32px}.section-heading h2{font-size:0.625rem}.section-heading p{font-size:0.6875rem}.topic{padding-inline:12px;font-size:0.6875rem}.post{grid-template-columns:88px 1fr;gap:13px}.post h3{font-size:1.125rem}.featured h3{font-size:1.625rem}.featured p{font-size:0.875rem}.post-meta{gap:6px}.post .card-corner{width:30px;height:30px}.post .card-corner .icon{width:15px;height:15px}.article-resources{gap:6px}.article-resources .resource-link{flex:0 0 32px;width:32px;height:32px}.article-resources .resource-link .icon{width:17px;height:17px}.prompt-attachment{gap:4px}.catalogue{padding:24px 20px}.catalogue h2{font-size:1.9375rem}.reader h1{font-size:2.0625rem}.reader-top{gap:8px}.reader-top .secondary{font-size:0.625rem;max-width:137px}.back-link{font-size:0.6875rem}.reader-body{font-size:1rem}.dialog-heading h2{font-size:1.3125rem}dialog{padding:18px}.dialog-actions{flex-direction:column;align-items:stretch}.filter-footer button{font-size:0.6875rem}.footer-top p{margin-block:8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}[data-spring]{transform:none!important}.topics-track.is-marquee{animation:none}.topics-rail.is-static{overflow-x:auto}}
@media(prefers-reduced-transparency:reduce){.topbar,.library-toolbar{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}dialog{background:var(--surface)}dialog::backdrop{backdrop-filter:none;background:rgba(3,7,23,.85)}.surface-light{display:none}}
@media(prefers-contrast:more){:root{--muted:#303d5a;--line:#7181a3}:root[data-theme=dark]{--muted:#e0e7ff;--line:#8292b6}.topbar,.library-toolbar{background:var(--surface);backdrop-filter:none}button:focus-visible,a:focus-visible{outline-width:4px}.primary{background:#ab80ff}.secondary,.tactile,.filter-option{outline:1px solid var(--line)}}
dialog::backdrop{background:transparent;backdrop-filter:none}
.dialog-scrim{position:fixed;inset:0;z-index:90;pointer-events:none;background:rgba(3,7,23,.18);backdrop-filter:none}
dialog[data-exiting]{display:block;position:fixed;inset:0;margin:auto;z-index:91;pointer-events:none}
@media(prefers-reduced-transparency:reduce){.dialog-scrim{backdrop-filter:none;background:rgba(3,7,23,.85)}}
[data-spring],.primary,.secondary,.nav-button,.topic,.filter-option,.read-link,.icon-button,.quiet-button,.theme-button,.filter-button{position:relative;isolation:isolate}

/* The cinematic stage never owns interaction or document layout. */
main{overflow-x:clip}
.scene-stage{position:fixed;inset:0;z-index:8;pointer-events:none;overflow:hidden;isolation:isolate;contain:strict}
.scene-memories,.scene-memory,.scene-optics,.scene-fallback{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.scene-memory{overflow:hidden;transform-origin:50% 30%;background:var(--paper);will-change:transform,opacity}
.scene-memory .hero-object{visibility:hidden!important}
.scene-optics{z-index:2;mix-blend-mode:normal}
.scene-fallback{z-index:2;overflow:hidden}
.scene-fallback i{position:absolute;left:15%;top:-30%;width:35%;height:170%;border-radius:80px;background:linear-gradient(105deg,var(--spectral-start),var(--accent-top) 32%,var(--accent-bottom));box-shadow:inset 2px 0 1px var(--accent-light),inset -14px 0 30px var(--spectral-end);opacity:0}
.scene-fallback i:nth-child(2){left:60%;width:24%;background:linear-gradient(85deg,var(--spectral-end),var(--accent-bottom),var(--action))}
.scene-fallback i:nth-child(3){left:-15%;width:18%}
.scene-caption{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--ink);gap:22px;will-change:transform,opacity;text-align:center;padding:24px}
.scene-caption strong{font-size:clamp(58px,11vw,176px);line-height:1;letter-spacing:-.065em;font-weight:800}
.scene-index{font-size:0.75rem;font-weight:800;letter-spacing:.16em;color:var(--accent);text-wrap:balance}
.scene-rule{width:110px;height:3px;background:linear-gradient(90deg,var(--accent-top),var(--accent-bottom),var(--action));transform:rotate(-12deg)}
.scene-shared{position:absolute;top:0;left:0;z-index:4;width:640px;height:420px;transform-origin:0 0;overflow:hidden;background:var(--surface-deep);will-change:transform;isolation:isolate}
.scene-shared img{display:block;width:640px;height:420px;max-width:none;transform-origin:center;will-change:transform}
@media(max-width:680px){.scene-caption{gap:18px}.scene-caption strong{font-size:clamp(51px,14vw,90px)}.scene-index{font-size:0.625rem;letter-spacing:.1em}}
@media(prefers-reduced-motion:reduce){.scene-stage{display:none!important}}
@media(prefers-reduced-transparency:reduce){.scene-optics{display:none}.scene-caption{color:var(--ink)}}

.scene-veil{position:absolute;inset:0;z-index:1;background:var(--paper);pointer-events:none}

/* Three navigation sections stay readable on narrow screens. */
.navigation{white-space:nowrap}
@media(max-width:680px){.navigation{flex:1 0 100%;display:flex}.navigation .nav-button{flex:1}html{scroll-padding-top:184px}}

/* Icon-only article resources retain accessible names and native tooltips. */
.article-resources{display:flex;flex-wrap:wrap;gap:14px;margin:20px 0;justify-content:flex-end}
.resource-link{display:inline-flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;height:46px;border:1px solid var(--line);border-radius:12px;color:var(--ink);text-decoration:none;background:var(--surface)}
.resource-link:hover{border-color:var(--accent);color:var(--accent)}
.resource-link .icon{width:22px;height:22px;stroke-width:1.75}
.reader-download{margin-top:34px}

.reader-download .article-resources{justify-content:flex-end;gap:12px;margin:0}
.reader-download a.resource-link[download]{animation:supply-pulse 2.4s ease-in-out infinite}
@keyframes supply-pulse{0%,100%{box-shadow:0 0 0 0 transparent}50%{box-shadow:0 0 16px 2px color-mix(in srgb,var(--accent) 55%,transparent)}}
@media(prefers-reduced-motion:reduce){.reader-download a.resource-link[download]{animation:none}}
.reader[data-format=short]{max-width:850px}
.reader[data-format=short] .reader-cover{display:none}
.reader[data-format=short] .reader-body{max-width:none}
.reader[data-format=short] .reader-body>.article-resources{margin:0 0 28px}
.reader[data-format=short] .reader-body ul{padding-left:1.2em}

/* Code excerpts in long Markdown tutorials */
.reader-body pre{max-width:100%;overflow-x:auto;padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font-size:0.875rem;line-height:1.65;tab-size:2}
.reader-body pre code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;overflow-wrap:normal}
.reader-body :not(pre)>code{font-size:.88em;overflow-wrap:anywhere}
.reader-body h2{overflow-wrap:anywhere}

.code-panel{min-width:0;max-width:100%;margin:24px 0;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:var(--surface);box-shadow:var(--raised)}
.code-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--surface-deep)}
.code-caption{min-width:0;display:grid;gap:2px;font-size:0.75rem;line-height:1.5}
.code-caption strong{overflow-wrap:anywhere;color:var(--ink);font-family:ui-monospace,Consolas,monospace;font-size:0.8125rem}
.code-caption span{color:var(--muted)}
.code-tools{display:flex;gap:14px;flex-shrink:0}
.code-tools button{width:46px;height:46px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink)}
.code-tools button:hover{background:var(--paper);color:var(--accent)}
.code-tools button:active{transform:scale(.96)}
.code-tools .icon{width:20px;height:20px}
.reader-body .code-panel pre{margin:0;padding:22px;border:0;border-radius:0;background:transparent;max-height:560px;overflow:auto;font-size:0.875rem;line-height:1.75;color:var(--ink)}
.reader-body .code-panel-prose pre code{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:600px){.code-toolbar{padding:10px;gap:8px}.reader-body .code-panel pre{padding:16px;font-size:0.8125rem}}

.syntax{--code-keyword:#6930ad;--code-string:#176544;--code-number:#995010;--code-name:#164baa;--code-comment:#58647a}
[data-theme=dark] .syntax{--code-keyword:#c7a4ff;--code-string:#9ad9ac;--code-number:#ffc18b;--code-name:#92bfff;--code-comment:#a4b1cb}
.syntax .k,.syntax .kd,.syntax .kn,.syntax .kr,.syntax .kt,.syntax .kc,.syntax .ow{color:var(--code-keyword)}
.syntax .s,.syntax .s1,.syntax .s2,.syntax .sa,.syntax .sb,.syntax .sc,.syntax .sd,.syntax .se,.syntax .si,.syntax .sr,.syntax .ss{color:var(--code-string)}
.syntax .m,.syntax .mi,.syntax .mf,.syntax .mh,.syntax .il{color:var(--code-number)}
.syntax .na,.syntax .nt,.syntax .nf,.syntax .nc,.syntax .nb,.syntax .nn{color:var(--code-name)}
.syntax .c,.syntax .c1,.syntax .cm,.syntax .cp,.syntax .cs{color:var(--code-comment);font-style:italic}
.syntax .gh,.syntax .gu{color:var(--code-name);font-weight:700}
.syntax .gs{color:var(--code-keyword);font-weight:700}
.syntax .ge{font-style:italic;color:var(--code-string)}
.syntax .-Marker{color:var(--code-number);font-weight:700}

.pointer-trail{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:25}
@media(prefers-reduced-motion:reduce),(pointer:coarse),(hover:none){.pointer-trail{display:none}}

[data-theme=dark] .pointer-trail{mix-blend-mode:screen}

.article-table{max-width:100%;overflow-x:auto;margin:24px 0;border:1px solid var(--line);border-radius:14px}
.reader-body table{width:100%;border-collapse:collapse;font-size:0.875rem;line-height:1.7;text-align:left}
.reader-body th,.reader-body td{padding:14px 16px;border-bottom:1px solid var(--line);vertical-align:top;min-width:150px}
.reader-body th{background:var(--surface-deep);font-weight:700;color:var(--ink)}
.reader-body tr:nth-child(odd) td{background:color-mix(in srgb,var(--line) 16%,transparent)}
.article-table{position:relative}
.article-table[data-shaded="1"]::after{content:"";position:absolute;top:4px;bottom:4px;right:0;width:30px;border-radius:0 13px 13px 0;background:linear-gradient(90deg,transparent,var(--paper) 88%);pointer-events:none}
.reader-body tr:last-child td{border-bottom:0}
.reader-body h3{line-height:1.4;margin-top:32px}

.post-art:has(.article-photo){aspect-ratio:16/9}
/* Generované ilustrace mají poměr 640:420; rámeček se mu přizpůsobí, aby se neořezávaly. */
.post-art:has(>img[data-art]),.featured .post-art:has(>img[data-art]),.apps .post-art:has(>img[data-art]),.reader-cover:has(img[data-art]){aspect-ratio:640/420}
.post-art>img[data-art],.reader-cover img[data-art]{object-fit:contain}
.article-photo{object-position:50% 50%}
.reader[data-format=short]:has(.article-photo) .reader-cover{display:block;aspect-ratio:16/9}

/* Public School catalogue: direct launch and spaced, labelled icon controls. */
.app-controls{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-top:24px}
.app-controls-left,.app-controls-right{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.app-controls-right{margin-left:auto}
.app-control{cursor:pointer;padding:0}.app-control:disabled{opacity:.5;cursor:progress}
.app-controls-left .resource-link{color:var(--accent)}
.control-code{color:#23ad72}.control-prompt{color:#b17fe6}.control-ai{color:var(--action-text)}
.app-launch{color:var(--accent)}
.app-no-preview{width:100%;height:100%;display:flex;flex-direction:column;gap:20px;align-items:center;justify-content:center;padding:30px;background:var(--surface);color:var(--muted);text-align:center}
.app-no-preview .icon{width:48px;height:48px}
.app-qr{display:block;width:min(100%,320px);height:auto;margin:24px auto;background:white;border-radius:12px}
.qr-tools{display:flex;align-items:center;justify-content:center;gap:16px;margin:16px auto 4px}
.qr-zoom{width:min(100%,240px);accent-color:var(--accent-top)}
.resource-url{overflow-wrap:anywhere;font-size:0.8125rem!important;text-align:center}
.program-post .post-topic{line-height:1.7}
.program-post .article-photo{object-fit:contain;background:var(--surface)}
@media(max-width:600px){.app-controls{gap:16px}.app-controls-right{margin-left:0}.program-post{display:flex;flex-direction:column}.program-post .post-art{width:100%}.app-controls .resource-link{flex-shrink:0}}

/* Temporarily hidden hero controls remain available in the source. */
.hero .hero-actions,.hero .author,.library-type{display:none}
.hero{min-height:440px;padding-block:32px}
.hero-object{scale:.8;margin-block:-46px}
.library-toolbar{align-items:center}
.library-toolbar .topics{flex:1;min-width:0}
.library-toolbar .filter-button{flex-shrink:0}
@media(max-width:1100px){.hero{min-height:424px}.hero-object{margin-block:-44px}}
@media(max-width:850px){.hero{min-height:380px;padding-block:30px}.hero-object{margin-block:-40px}}
@media(max-width:600px){.hero{min-height:0;padding-block:30px 20px}.hero-object{margin-block:0;bottom:2px}.hero-description{padding-right:72px}}

/* All catalogue cards are present; responsive layout is a visitor preference. */
.app-layout{position:relative;flex-shrink:0;z-index:6}
.app-layout[hidden]{display:none}
.posts.apps{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:24px;align-items:start}
.posts.apps:not([data-columns="auto"]){grid-template-columns:repeat(auto-fit,minmax(min(100%,max(190px,calc((100% - (var(--app-columns) - 1)*24px) / var(--app-columns)))),1fr))}
.posts[data-columns="1"]{--app-columns:1}.posts[data-columns="2"]{--app-columns:2}.posts[data-columns="3"]{--app-columns:3}.posts[data-columns="4"]{--app-columns:4}.posts[data-columns="5"]{--app-columns:5}
.apps .post{min-width:0;width:100%}.apps .post-art{display:block;width:100%;aspect-ratio:16/9}.apps .post-content{padding:0}.apps .post h3{font-size:clamp(20px,2vw,28px);overflow-wrap:anywhere}.apps .post p{font-size:0.875rem}.apps .post-topic{font-size:0.625rem;line-height:1.75}
.apps .app-controls{gap:14px;margin-top:20px}.apps .app-controls-right{max-width:100%}
@media(max-width:600px){.app-layout{margin-left:auto}}

/* Decorative quiz starfield stays behind interactive content. */
body{isolation:isolate}#bg-canvas{position:fixed;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}:root:not([data-theme=dark]) #bg-canvas{visibility:hidden}
#app-layout-button{width:35.6px;height:35.6px;padding:0;display:grid;place-items:center;border-radius:10px;background:var(--state);color:var(--on-spectral);box-shadow:var(--raised)}#app-layout-button .icon{width:19px;height:19px}

/* Card width controls both hit areas and SVG size; groups stay left/right. */
.posts.apps{align-items:stretch}
.apps .post{display:flex;flex-direction:column;align-items:stretch;container-type:inline-size}
.apps .post-content{flex:1;display:flex;flex-direction:column;min-width:0;width:100%}
.apps .post-topic,.apps .post-topic>span,.apps .post p{min-width:0;overflow-wrap:anywhere}
/* Karta hry žáka: dvouřádkový údaj místo horní rubriky — jméno / třída · období. */
.post-topic.post-topic-student{display:block;text-transform:none;letter-spacing:0;font-weight:600;color:var(--muted);line-height:1.5}
.post-topic.post-topic-student .student-name{display:block;color:var(--ink);font-weight:800}
.post-topic.post-topic-student .student-meta{display:block;margin-top:2px}
.post-topic.post-topic-student .pin-label{margin-top:6px}
/* U hry žáka je název hned pod obrázkem: bez dvojí mezery (gap + margin obrázku). */
.post.student-game{row-gap:12px}
.post.student-game .post-art{margin-bottom:0}
.apps .app-controls{gap:14px;margin-top:auto;padding-top:20px;width:100%;align-self:stretch;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px}
.apps .app-controls-left,.apps .app-controls-right{display:flex;flex:0 0 auto;flex-wrap:wrap;align-items:center;gap:14px;max-width:none;margin:0}
.apps .app-controls-right{margin-left:auto}
.apps .app-controls .resource-link{flex:0 0 46px;width:46px;height:46px;min-width:0;min-height:0;padding:0;border-radius:12px}
.apps .app-controls .icon{width:22px;height:22px;flex:none}

dialog{background:var(--dialog-glass);backdrop-filter:blur(18px) saturate(120%);-webkit-backdrop-filter:blur(18px) saturate(120%);border:1px solid color-mix(in srgb,var(--edge) 70%,transparent);box-shadow:0 28px 80px rgba(0,3,18,.3),inset 0 1px 0 rgba(255,255,255,.28),inset 0 -1px 0 rgba(255,255,255,.07)}
dialog .filter-option:not([aria-pressed=true]),dialog .icon-button{background:color-mix(in srgb,var(--surface) 45%,transparent);border:1px solid var(--line)}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){dialog,.catalogue{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(max-width:680px){.navigation{flex-basis:100%;display:flex;justify-content:space-between}.navigation .nav-button{flex:1;padding-inline:8px}.topbar .brand{margin-right:auto}.header-tools{flex-basis:100%}}

/* The blue mark is the initial V of the clickable wordmark. */
.brand{gap:0}.brand .brand-mark{width:1.32em;height:1.32em;flex:none;margin-right:.02em;margin-left:2mm}

.brand>span{color:color-mix(in srgb,var(--ink) 86%,var(--accent-top) 14%);font-style:italic;font-synthesis:style;margin-left:-1mm}

.prompt-attachment{display:inline-flex;align-items:center;gap:10px}

.prompt-file-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.prompt-file-row:last-child{border-bottom:0}.prompt-file-row p{margin:0;overflow-wrap:anywhere;min-width:0}.prompt-file-row .article-resources{margin:0;flex:none}

.footer-bottom{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px 18px;text-align:left;flex-wrap:wrap}.footer-bottom>span{white-space:nowrap}.footer-contacts{display:flex;align-items:center;justify-content:flex-end;gap:8px 18px;flex-wrap:wrap;margin-left:auto}.footer-contact{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:0.6875rem;color:var(--muted);background:transparent;padding:4px 0}.footer-contact .icon{width:17px;height:17px}.footer-contact:hover{color:var(--accent)}.license-text{white-space:pre-wrap;font-family:inherit;font-size:0.8125rem;line-height:1.75;overflow-wrap:anywhere}.license-note{font-size:0.75rem;line-height:1.65;color:var(--muted)}

.admin-link{min-width:44px;justify-content:center}

.inline-pencil{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;flex:0 0 28px;width:28px;height:28px;min-width:28px;margin:0 0 0 6px;padding:5px;border:1px solid var(--line);border-radius:7px;background:var(--dialog-glass);color:var(--accent-top);font-size:0.875rem;cursor:pointer}.inline-pencil .icon{width:1em;height:1em}.inline-pencil:hover{background:var(--glass);color:var(--ink)}
#hero-title .inline-pencil,#catalogue-title .inline-pencil{width:30px;height:30px;flex-basis:30px;min-width:0;padding:6px;border-radius:9px;margin-left:12px}
#hero-title .inline-pencil .icon,#catalogue-title .inline-pencil .icon{width:18px;height:18px}
#hero-description .inline-pencil,#catalogue-text .inline-pencil{width:28px;height:28px;flex-basis:28px;min-width:0;padding:5px;border-radius:9px;margin-left:8px}
#hero-description .inline-pencil .icon,#catalogue-text .inline-pencil .icon{width:18px;height:18px}#inline-mode[aria-pressed="true"]{color:var(--accent-top);border:1px solid currentColor}#inline-form fieldset{border:0;padding:0;display:flex;flex-wrap:wrap;gap:12px 18px}#inline-form fieldset label{display:flex;align-items:center;gap:6px;margin:0}#inline-form input[type="checkbox"],#inline-form input[type="radio"]{width:auto}#inline-form input:not([type="checkbox"]):not([type="radio"]){width:100%;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--dialog-glass);color:var(--ink);font:inherit}#inline-form>div>label{display:grid;gap:8px}#inline-status{color:var(--accent);min-height:1em}

.article-editor-dialog{width:min(1120px,calc(100vw - 32px));max-width:1120px;max-height:90dvh;overflow:auto}.article-editor-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}.article-editor-toolbar .secondary{padding:8px 11px;font-size:0.75rem}.article-editor-layout{display:grid;grid-template-columns:1fr 1fr;gap:20px}.article-editor-layout>label{display:grid;align-content:start;gap:8px}.article-editor-layout textarea{width:100%;min-height:360px;resize:vertical;font:14px/1.7 monospace;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--dialog-glass);color:var(--ink)}.article-editor-preview{max-height:520px;overflow:auto;padding:14px;border:1px solid var(--line);border-radius:12px;font-size:0.875rem}.article-editor-preview>:first-child{margin-top:0}#inline-form .editor-links{display:block;margin-top:20px}#inline-form .editor-link-row{display:grid;grid-template-columns:1fr 1.6fr auto;gap:10px;border-top:1px solid var(--line);padding:14px 0}.editor-link-row>label{display:grid!important;gap:6px!important}.editor-icon-options{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:10px}.editor-icon-options label{border:1px solid var(--line);border-radius:8px;padding:7px;cursor:pointer}.editor-icon-options label:has(:checked){border-color:var(--accent-top);color:var(--accent-top)}.editor-icon-options .icon{width:20px;height:20px}.reader-body>.inline-pencil{margin:0 0 14px}.article-editor-preview .code-panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;background:var(--dialog-glass);font-size:0.75rem}.article-editor-preview .code-panel-header>span:last-child{display:flex;gap:6px}
@media(max-width:760px){.article-editor-layout{grid-template-columns:1fr}.article-editor-preview{max-height:280px}#inline-form .editor-link-row{grid-template-columns:1fr}.editor-icon-options{grid-column:auto}.article-editor-dialog{padding:20px}}
.code-panel .token.keyword,.code-panel .token.tag{color:#a99afa}.code-panel .token.string,.code-panel .token.attr-value{color:#70d9b0}.code-panel .token.comment{color:var(--muted)}.code-panel .token.number,.code-panel .token.function{color:#ffad80}
.article-editor-layout>*{min-width:0}.article-editor-layout textarea{height:360px;min-height:240px}.article-editor-preview{width:100%;max-width:none;margin:28px 0 0;height:360px}.article-editor-preview h2{font-size:1.5rem}.article-editor-layout{align-items:start}@media(max-width:760px){.article-editor-preview{margin-top:0;height:auto;min-height:160px}.article-editor-layout textarea{height:300px}}
.post{position:relative}.order-handle{position:absolute;top:8px;right:8px;z-index:4;display:grid;place-items:center;width:32px;height:36px;padding:6px;color:var(--accent-top);background:var(--dialog-glass);border:1px solid var(--line);border-radius:9px;backdrop-filter:blur(18px);cursor:grab;touch-action:none}.order-handle .icon{width:18px;height:24px}.order-drag-active,.order-drag-active *{cursor:grabbing!important;user-select:none}.order-dragging{opacity:.45}.post.order-before{box-shadow:0 -4px 0 var(--accent-top)}.post.order-after{box-shadow:0 4px 0 var(--accent-top)}.order-saving .order-handle{opacity:.5;pointer-events:none}.program-post .delete-corner{right:88px}.post.order-armed{outline:2px dashed var(--accent-top);outline-offset:6px}.post.order-armed .order-handle{opacity:1}

.catalogue .mini-window img,.catalogue .mini-window video{aspect-ratio:16/9;object-fit:contain}
.card-corner{position:absolute;top:10px;right:10px;z-index:3;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;color:var(--accent-top);background:var(--dialog-glass);border:1px solid var(--line);backdrop-filter:blur(18px)}
.card-corner .icon{width:17px;height:17px}
body.admin-editing .card-corner{display:none}
.delete-corner{display:none;position:absolute;top:10px;right:48px;z-index:4;place-items:center;width:34px;height:34px;border-radius:10px;color:#fff;background:rgba(200,30,40,.82);border:1px solid rgba(255,255,255,.5);backdrop-filter:blur(18px);cursor:pointer}
.delete-corner .icon{width:17px;height:17px}
body.admin-editing .delete-corner{display:grid}
.archive-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;font-size:0.8125rem}
.archive-note{font-size:0.75rem;color:var(--muted);margin:8px 0 0}

/* Náhledy karet: poster (okamžitý) + líně přehrané video/animace + skeleton */
.media-frame{position:relative;display:block;width:100%}
.post-art .media-frame,.reader-cover .media-frame{height:100%}
.media-frame .media-poster{position:relative;z-index:1}
.media-video,.media-anim{position:absolute;inset:0;z-index:2;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .35s ease;pointer-events:none;background:transparent}
.media-frame.is-playing .media-video,.media-frame.is-playing .media-anim{opacity:1}
.program-post .media-video,.program-post .media-anim{object-fit:contain;background:var(--surface)}
.media-dots{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;gap:7px;opacity:0;transition:opacity .2s ease;pointer-events:none}
.media-dots i{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:mediaDot 1.05s ease-in-out infinite}
.media-dots i:nth-child(2){animation-delay:.16s}
.media-dots i:nth-child(3){animation-delay:.32s}

.media-frame.is-pending .media-dots,.media-frame.is-pending 
.media-frame.is-pending .media-poster{opacity:0}
.media-frame.is-pending::after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(100deg,transparent 25%,rgba(255,255,255,.09) 50%,transparent 75%);animation:mediaShimmer 1.5s linear infinite}
.media-frame.is-media-error::before{content:"";position:absolute;inset:0;z-index:1;background:var(--surface);border-radius:inherit}
@keyframes mediaDot{0%,100%{transform:translateY(0);opacity:.35}50%{transform:translateY(-4px);opacity:1}}
@keyframes mediaShimmer{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
@media(prefers-reduced-motion:reduce){.media-dots i,.media-frame.is-pending::after{animation:none}.media-video,.media-anim,.media-dots{transition:none}}

/* Náhled v dialogu aplikace: nepřetékat přes text, statický poster i video vejít do limitu */
.app-preview{overflow:hidden}
.app-preview .media-frame{height:auto;max-height:285px}
.app-preview .media-poster{display:block;width:100%;height:auto;max-height:285px;object-fit:contain}
.app-preview .media-video,.app-preview .media-anim{object-fit:contain}

/* Obsah výš: méně prázdna mezi úvodním V a katalogem. Na desktopu se tak
   vejde první karta i s textem, na mobilu je obsah hned pod V (2026-10-17). */
.hero{min-height:340px;padding-block:24px 20px}
.hero-object{min-height:380px}
.library{padding-top:14px}
.library-toolbar{margin-top:0;margin-bottom:20px;padding-bottom:16px}
@media(max-width:1100px){.hero-object{min-height:360px}}
@media(max-width:850px){.hero{min-height:300px;padding-block:22px 18px}.hero-object{min-height:330px}}
@media(max-width:680px){.hero{min-height:0}.hero-object{min-height:0}.library{padding-top:4px}.library-toolbar{margin-bottom:14px;padding-bottom:12px}}
@media(max-width:600px){.hero{padding-block:22px 4px}.hero-description{margin:28px 0 8px}}

/* =====================================================================
   V-grain karet (2026-10-20) — karty článků a appek tažené blíž k velkému V.
   Materiál panelů kopíruje katalogovou bandu (sklo + spektrální rim-light),
   rim-light na ukázkách připomíná osvětlenou hranu V, titulek při najetí
   přechází do spektrálního gradientu jako značka. Vše přes tématické tokeny:
   světlé téma i omezená průhlednost fungují samy, rozvržení se nemění.
   ===================================================================== */

/* 1) Ukázka karty (post-art) — spektrální rim-light po obvodu, jako hra V */
@supports (mask-composite:exclude) or (-webkit-mask-composite:xor){
  .post-art::before{content:"";position:absolute;inset:0;z-index:4;border-radius:inherit;padding:1px;
    background:linear-gradient(155deg,var(--accent-top),transparent 42%,transparent 58%,var(--accent-bottom));
    -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    -webkit-mask-composite:xor;
    mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
    mask-composite:exclude;
    opacity:.55;pointer-events:none}
}

/* 2) Panely karet appek — stejný skleněný materiál jako katalogová banda */
.posts.apps .post{background:linear-gradient(135deg,rgba(255,255,255,.09),transparent 46%),var(--dialog-glass);
  backdrop-filter:blur(12px) saturate(140%);-webkit-backdrop-filter:blur(12px) saturate(140%);
  border:1px solid color-mix(in srgb,var(--edge) 62%,transparent);border-radius:18px;
  box-shadow:0 18px 44px -22px var(--shadow),inset 0 1px 0 rgba(255,255,255,.16),inset 0 -1px 0 rgba(255,255,255,.05);
  overflow:hidden;padding:0;
  transition:box-shadow .3s ease,border-color .3s ease}
.posts.apps .post-art{border-radius:0;box-shadow:none;margin-bottom:0}
.posts.apps .post-content{padding:15px 20px 13px}
.posts.apps .post::after{content:"";position:absolute;inset:0;z-index:5;border-radius:inherit;padding:1px;
  background:linear-gradient(150deg,var(--accent-top),transparent 40%,transparent 60%,var(--accent-bottom));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite:exclude;
  opacity:.5;pointer-events:none}

/* 3) Featured článek — stejný panel, aby úvodní karta nesla V stejně jako appky */
.post.featured{border:1px solid color-mix(in srgb,var(--edge) 62%,transparent);border-radius:20px;
  background:linear-gradient(135deg,rgba(255,255,255,.09),transparent 46%),var(--dialog-glass);
  backdrop-filter:blur(12px) saturate(140%);-webkit-backdrop-filter:blur(12px) saturate(140%);
  box-shadow:0 22px 54px -24px var(--shadow),inset 0 1px 0 rgba(255,255,255,.16),inset 0 -1px 0 rgba(255,255,255,.05);
  overflow:hidden;padding:26px 28px 22px;
  transition:box-shadow .3s ease,border-color .3s ease}
.post.featured::after{content:"";position:absolute;inset:0;z-index:5;border-radius:inherit;padding:1px;
  background:linear-gradient(150deg,var(--accent-top),transparent 40%,transparent 60%,var(--accent-bottom));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  mask-composite:exclude;
  opacity:.5;pointer-events:none}

/* 4) Titulek karty — najetí či tab rozsvítí spektrální gradient (odkaz na značku) */
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  @media(hover:hover) and (pointer:fine){
    .post h3 a:hover{color:transparent;
      background-image:linear-gradient(115deg,var(--accent-top),var(--accent-bottom));
      -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
  }
  .post h3 a:focus-visible{color:transparent;
    background-image:linear-gradient(115deg,var(--accent-top),var(--accent-bottom));
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
}

/* 5) Najetí myší — panel dostane studenou spektrální záři, rim se rozsvítí */
@media(hover:hover) and (pointer:fine){
  .posts.apps .post:hover,.post.featured:hover{border-color:color-mix(in srgb,var(--accent-top) 36%,var(--edge));
    box-shadow:0 26px 64px -26px color-mix(in srgb,var(--accent-bottom) 42%,transparent),
      0 18px 44px -22px var(--shadow),inset 0 1px 0 rgba(255,255,255,.2)}
  .posts.apps .post:hover::after,.post.featured:hover::after{opacity:.95}
  .post:hover .post-art::before{opacity:.95}
}

/* 6) Responzivita — užší panely a menší vnitřní odsazení na mobilu */
@media(max-width:850px){
  .posts.apps .post{border-radius:16px}
  .posts.apps .post-content{padding:13px 15px 11px}
  .post.featured{padding:18px 16px 16px;border-radius:16px}
}
@media(max-width:360px){
  .posts.apps .post-content{padding:12px 13px 10px}
  .post.featured{padding:14px 12px 12px}
}

/* 7) Omezená průhlednost a vyšší kontrast — panely bez skla, solidní povrch */
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
  .posts.apps .post,.post.featured{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}
}

/* 8) Bez pohybů — panely nemají přechody */
@media(prefers-reduced-motion:reduce){
  .posts.apps .post,.post.featured{transition:none}
}

/* =====================================================================
   Tisk (2026-10-20) — světlý tisk textu článků a promptů pro učitele.
   Skrývá dekorace a navigation, spektrální materiály přepíná na černý
   text na bílém papíře, v prompty nechává zalomené řádky a vypisuje
   externí odkazy. Využívá existující třídy, nepřidává žádné rozhraní.
   ===================================================================== */
@media print{
  @page{margin:16mm}
  /* Přemapování tokenů na světlou tiskovou sadu — tisk nepřepíná téma, takže
     tmavé tokeny (--ink atd.) by na papíře zůstaly nečitelné. */
  :root,:root[data-theme=dark],:root[data-theme=light]{
    --ink:#111117;--muted:#3c4257;--paper:#fff;--surface:#fff;--surface-deep:#f2f2f5;
    --line:#c9c9d2;--edge:rgba(0,0,0,.12);--shadow:rgba(0,0,0,.22);--inset:transparent;
    --accent:#2454dc;--accent-top:#2454dc;--accent-bottom:#3b2d9e;
    --spectral-start:#2448ae;--spectral-end:#6736a5;
    --on-spectral:#fff;--on-spectral-muted:#1b2a4a;
    --dialog-glass:#fff;color-scheme:light}
  html{background:#fff}
  body{background:#fff;color:#111}
  #bg-canvas,.scene-stage,.scene-caption,.hero-object,.header-wrap,.header-tools,
  .library-toolbar,.active-filters,.library-disclosure,.footer,
  .app-controls,.reader-actions,.back-link,.hero-actions,.catalogue-band,
  .toast,.dialog-scrim,.post-art,.reader-cover,.mini-window,.bottom-nav,.search-open,
  #admin-hud,.studio,.studio-open,.post-ghost,.chip-edit,.date-edit,.cover-plus,.icon-resource-add{display:none!important}
  /* Editační affordance správce (čárky/podtržení) na papír neksoucní. */
  body.admin-editing [data-edit-field]{cursor:auto;box-shadow:none!important;outline:none!important;background:none!important;text-decoration:none!important}
  .wrap{width:100%!important;max-width:none}
  .hero,.library,.reader{padding-block:0}
  .hero h1,.hero h1 span,.catalogue-hi,.brand-suffix,.post h3,.post h3 a,
  .reader h1,.title-period{color:#000}
  .post-topic,.pin-label,.post p,.reader .reader-intro,.reader-body,
  .reader-body p,.reader-body li,.post .post-meta,.reader .post-meta{color:#111}
  .reader-body a{color:#000!important;text-decoration:underline}
  .reader-body a[href^="http"]::after{content:" <"attr(href)">";font-size:0.6875rem;color:#555}
  .resource-link,.prompt-attachment{display:none!important}
  .demo-label{background:#fff;border:1px solid #888;color:#000;box-shadow:none}
  .prompt-head{background:none!important;color:#000;box-shadow:none}
  .prompt-head .secondary{color:#000}
  .prompt-box{background:#fff;border:1px solid #888;box-shadow:none;break-inside:avoid}
  .prompt-box pre{color:#000;max-height:none;overflow:visible}
  .reader-notice{background:none;border:1px solid #888;box-shadow:none;color:#111}
  .posts{display:block}
  .post,.post.featured{display:block;border:0;background:none;box-shadow:none;
    backdrop-filter:none;-webkit-backdrop-filter:none;padding:10px 0;break-inside:avoid}
  .featured .post-content,.apps .post-content{padding:0}
  .posts.apps .post::after,.post.featured::after,.post-art::before{display:none}
  .read-link,.read-link .icon{color:#000}
  img{max-width:100%}
  dialog{display:none!important}
}

/* =====================================================================
   Mobilní ovládání (2026-10-20) — spodní navigační lišta (vzor dreviny),
   kompaktní horní panel na jeden řádek a vyhledávání jako widget (nativní
   dialog). Dosud sloučené plovoucí panely nehrbou do 4 řádků; tablet
   a desktop (≥681 px) zůstávají beze změny.
   ===================================================================== */
.search-open{display:none}
.bottom-nav{display:none}
@media(max-width:680px){
  html{scroll-padding-top:184px}
  .navigation{display:none}
  .search{display:none}
  .search-open{display:grid}
  .topbar{flex-wrap:nowrap;min-height:64px;padding:10px 12px;gap:8px}
  .header-tools{flex-basis:auto;margin-left:auto}
  .bottom-nav{position:fixed;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom) + 10px);z-index:40;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:7px 8px;background:var(--chrome-glass);backdrop-filter:blur(18px) saturate(120%);-webkit-backdrop-filter:blur(18px) saturate(120%);border:1px solid color-mix(in srgb,var(--edge) 70%,transparent);border-radius:20px;box-shadow:0 2px 10px -6px var(--shadow),0 16px 32px -18px var(--shadow),inset 0 1px 0 var(--edge),inset 0 -1px 0 var(--line)}
  .bottom-nav .nav-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;padding:7px 4px;border-radius:12px;font-size:0.65625rem;font-weight:700;letter-spacing:.02em;color:var(--muted)}
  .bottom-nav .nav-button .icon{width:21px;height:21px}
  .bottom-nav .nav-button.active{background:var(--state);color:var(--on-spectral);box-shadow:var(--raised)}
  .footer{padding-bottom:calc(env(safe-area-inset-bottom) + 104px)}
  .toast{bottom:calc(env(safe-area-inset-bottom) + 88px)}  .search-sheet form{display:flex;align-items:center;gap:10px;height:46px;background:var(--paper);border-radius:12px;padding:0 14px;box-shadow:var(--pressed);color:var(--muted)}
  .search-sheet form .icon{width:19px;height:19px}
  .search-sheet form input{border:0;outline:0;background:transparent;color:var(--ink);width:100%;min-width:0;font-size:1rem;padding:10px 0}
  .search-sheet form input::placeholder{color:var(--muted);opacity:1}
  #search-sheet-count{font-size:0.75rem;color:var(--muted);margin:12px 0 8px}
  .search-sheet-results{max-height:min(46vh,340px);overflow:auto;border:1px solid var(--line);border-radius:12px;padding:6px;display:grid;grid-template-columns:minmax(0,1fr);gap:2px;align-content:start}
  .sheet-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:8px 10px;border-radius:9px;font-size:0.875rem;color:var(--ink);text-align:left;width:100%}
  .sheet-row-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
  .sheet-row-kind{font-size:0.6875rem;color:var(--muted);white-space:nowrap;flex:none;max-width:46%;overflow:hidden;text-overflow:ellipsis}
  .sheet-empty{font-size:0.75rem;color:var(--muted);padding:10px}
  .search-sheet-hint{font-size:0.6875rem;color:var(--muted);margin-top:10px}
  .app-layout{display:none}
  .posts.apps{grid-template-columns:1fr!important}
  .post:not(.program-post) .card-corner{position:static;width:32px;height:32px;border-radius:9px;margin-left:auto;flex:0 0 auto}
  .post:not(.program-post) .card-corner .icon{width:16px;height:16px}
  .post-meta{flex-wrap:nowrap;min-height:32px}
  .post-meta>span{white-space:nowrap;min-width:0}
  .post-meta span:last-of-type{overflow:hidden;text-overflow:ellipsis}
  .article-resources{gap:7px;margin:16px 0 0;justify-content:flex-start}
  .article-resources .resource-link{flex:0 0 36px;width:36px;height:36px;border-radius:10px}
  .article-resources .resource-link .icon{width:19px;height:19px}
  .prompt-attachment{gap:5px}
  .reader-download .article-resources{justify-content:flex-end}
  .footer-copy{width:100%;justify-content:space-between}
  .reader-body table{font-size:0.8125rem}
  .reader-body th,.reader-body td{padding:10px 12px;min-width:112px}
  .reader-body th{font-size:0.75rem}
}
@media(hover:hover) and (pointer:fine){.bottom-nav .nav-button:not(.active):hover{color:var(--accent)}}
@media(max-width:360px){.bottom-nav{padding-inline:6px}.bottom-nav .nav-button{font-size:0.59375rem;border-radius:10px;min-height:52px}}
@media(prefers-reduced-transparency:reduce){.bottom-nav{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(prefers-contrast:more){.bottom-nav{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}.bottom-nav .nav-button{outline:1px solid var(--line)}}

/* Tématová lišta: na mobilu přilepená pod topbarem, karty roluji pod ní */
@media(max-width:680px){
  .library-toolbar{position:sticky;top:78px;z-index:8;gap:6px;margin-top:2px;margin-bottom:12px;padding:6px 9px;border:1px solid color-mix(in srgb,var(--edge) 62%,transparent);border-radius:14px;background:linear-gradient(135deg,rgba(255,255,255,.10),transparent 46%),color-mix(in srgb,var(--chrome-glass) 20%,transparent);backdrop-filter:blur(34px) saturate(195%);-webkit-backdrop-filter:blur(34px) saturate(195%);box-shadow:0 6px 20px -12px var(--shadow),inset 0 1px 0 var(--edge),inset 0 -1px 0 var(--line)}
  /* Témata zůstávají v jednom řádku; co se nevejde, plyne jako pásek. */
  .topics{flex-wrap:nowrap;overflow:visible;scrollbar-width:auto;padding-bottom:0}
  .topic{flex:0 0 auto;padding:8px 12px}
}

/* ==== Vlna 71 — editace na místě (klikatelná pole), Studio textu, Nová aplikace, HUD ==== */
body.admin-editing [data-edit-field]{cursor:text;border-radius:3px;text-decoration:underline dotted 1px;text-decoration-color:color-mix(in srgb,var(--accent-top) 25%,transparent);text-underline-offset:4px}
@media(hover:hover){body.admin-editing [data-edit-field]:hover{text-decoration-color:color-mix(in srgb,var(--accent-top) 50%,transparent)}}
[data-edit-field][contenteditable="true"],[data-edit-field].edit-open{outline:1px dotted color-mix(in srgb,var(--accent-top) 40%,transparent);outline-offset:4px;background:transparent}
[data-edit-field][contenteditable="true"]:focus{outline-style:solid;outline-width:2px;outline-color:color-mix(in srgb,var(--accent-top) 65%,transparent)}
.date-edit{width:150px;min-height:40px;padding:8px 10px;font:inherit;color:var(--ink);background:var(--dialog-glass);border:1px solid var(--line);border-radius:8px}
.chips-editor{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.chips-group{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.chips-head{font-size:0.625rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.chip{padding:6px 12px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);font-size:0.75rem;font-weight:700;cursor:pointer;box-shadow:var(--raised)}
.chip.on{border-color:var(--accent-top);color:var(--accent-top);background:color-mix(in srgb,var(--accent-top) 8%,var(--surface))}
.chip:active{box-shadow:var(--pressed)}
.studio-open{position:absolute;top:0;right:0;z-index:5;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--surface);color:var(--muted);box-shadow:var(--raised)}
.studio-open:hover{color:var(--accent-top)}
.studio{display:flex;flex-direction:column;gap:14px}
.studio-bar{position:sticky;top:68px;z-index:8;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:9px 11px;background:var(--chrome-glass);backdrop-filter:blur(18px) saturate(120%);-webkit-backdrop-filter:blur(18px) saturate(120%);border:1px solid color-mix(in srgb,var(--edge) 70%,transparent);border-radius:14px;box-shadow:0 2px 10px -6px var(--shadow),inset 0 1px 0 var(--edge)}
.studio-mode{display:flex;gap:3px;padding:3px;background:var(--paper);border-radius:10px;box-shadow:var(--pressed)}
.studio-tab{min-height:32px;padding:6px 14px;border-radius:8px;font-size:0.75rem;font-weight:700;color:var(--muted)}
.studio-tab.active{background:var(--state);color:var(--on-spectral);box-shadow:var(--raised)}
.studio-tools{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
.studio-tool{min-height:32px;padding:5px 10px;border-radius:8px;font-size:0.75rem;font-weight:700;color:var(--muted);background:var(--surface);box-shadow:var(--raised);border:1px solid var(--line)}
.studio-tool:hover{color:var(--accent-top);border-color:var(--accent-top)}
.studio-history{display:flex;gap:5px}
.studio-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.studio-status{font-size:0.75rem;color:var(--muted)}
.studio-write textarea,#studio-input{width:100%;min-height:340px;resize:vertical;font:15px/1.75 monospace;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--dialog-glass);color:var(--ink)}
.studio-preview{padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--dialog-glass)}
.reader-body{position:relative}
.studio-links{display:block;margin-top:4px;border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--dialog-glass)}
.studio-links legend{font-size:0.6875rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;padding:0 6px;color:var(--muted)}
.studio-links .editor-link-row{display:grid;grid-template-columns:1fr 1.6fr auto;gap:10px;border-top:1px solid var(--line);padding:12px 0}
.studio-link-label,.studio-link-url{display:grid;gap:5px;font-size:0.6875rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.studio-link-label input,.studio-link-url input{padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;font-size:0.8125rem}
.post-ghost{border:2px dashed color-mix(in srgb,var(--accent-top) 55%,transparent);border-radius:16px;min-height:190px;display:grid;place-items:center;padding:24px 26px}
.post-ghost:hover{border-color:var(--accent-top)}
.ghost-open{display:flex;align-items:center;gap:10px;padding:12px 20px;border-radius:12px;color:var(--accent-top);font-weight:800;font-size:0.9375rem}
.ghost-open .icon{width:22px;height:22px}
.ghost-form{display:flex;flex-direction:column;gap:12px;width:100%}
.ghost-form label{display:grid;gap:6px;font-size:0.6875rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ghost-form input,.ghost-form textarea{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:var(--dialog-glass);color:var(--ink);font:inherit;font-size:0.875rem}
.ghost-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.post-ghost.is-open{grid-column:1/-1;display:block;padding:26px 28px}

.ghost-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:14px 24px;align-items:start}
.ghost-fields{display:flex;flex-direction:column;gap:12px;min-width:0}
.ghost-photo{display:flex;flex-direction:column;gap:10px;align-items:stretch;min-height:196px;padding:12px;border:2px dashed var(--line);border-radius:12px;background:color-mix(in srgb,var(--surface) 35%,transparent)}
.ghost-photo-head{display:flex;align-items:center;gap:8px;font-size:0.6875rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ghost-photo-head .icon{width:18px;height:18px;color:var(--accent-top)}
.ghost-photo-empty{display:grid;place-items:center;flex:1;min-height:92px;font-size:0.75rem;color:var(--muted);text-align:center;line-height:1.6}
.ghost-photo .ghost-drop-preview img{width:100%;border-radius:8px}
.ghost-photo>.secondary{align-self:flex-start}
@media(max-width:900px){.ghost-grid{grid-template-columns:1fr}}.ghost-row.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ghost-head{display:flex;align-items:center;justify-content:space-between;font-size:1.125rem}
.ghost-drop{position:relative;display:grid;place-items:center;gap:8px;min-height:96px;padding:14px;border:2px dashed var(--line);border-radius:12px;cursor:pointer;background:color-mix(in srgb,var(--surface) 40%,transparent)}
.ghost-drop.dragover{border-color:var(--accent-top);background:color-mix(in srgb,var(--accent-top) 8%,var(--surface))}
.ghost-drop-empty{display:flex;align-items:center;gap:8px;font-size:0.75rem;color:var(--muted)}
.ghost-drop-empty .icon{width:20px;height:20px}
.ghost-drop-preview{display:flex;align-items:center;gap:12px}
.ghost-drop-preview img{width:110px;border-radius:8px;border:1px solid var(--line);display:block}
.ghost-status{font-size:0.75rem;color:var(--muted)}.ghost-photo .ghost-drop{flex:1;width:100%;border-color:transparent;background:transparent}.ghost-head .icon-button{display:grid;place-items:center;width:38px;height:38px;border-radius:10px}.ghost-head .icon-button .icon{width:18px;height:18px}
.ghost-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#ghost-error,#ag-error{font-size:0.75rem;color:var(--danger);font-weight:700}
#admin-hud{position:fixed;left:50%;transform:translateX(-50%);bottom:14px;z-index:52;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 20px);padding:10px 13px;background:var(--chrome-glass);backdrop-filter:blur(18px) saturate(120%);-webkit-backdrop-filter:blur(18px) saturate(120%);border:1px solid color-mix(in srgb,var(--edge) 70%,transparent);border-radius:16px;box-shadow:0 2px 10px -6px var(--shadow),0 16px 32px -18px var(--shadow),inset 0 1px 0 var(--edge)}
.hud-dot{width:10px;height:10px;border-radius:50%;flex:none;background:#3ecf7a;box-shadow:0 0 0 3px color-mix(in srgb,#3ecf7a 18%,transparent)}
.hud-dot[data-tone="busy"]{background:#ffb020;box-shadow:none}
.hud-dot[data-tone="saved"]{background:#3ecf7a}
.hud-dot[data-tone="error"]{background:var(--danger)}
#admin-hud.hud-error{border-color:color-mix(in srgb,var(--danger) 45%,transparent)}
.hud-text{font-size:0.78125rem;font-weight:700;color:var(--ink);white-space:nowrap}
.hud-actions{display:flex;gap:6px}
.hud-button{min-height:34px;padding:7px 13px;border-radius:10px;font-size:0.75rem;font-weight:800}
.hud-publish{background:var(--state);color:var(--on-spectral);box-shadow:var(--raised)}
.hud-sleep{background:var(--surface);color:var(--muted);box-shadow:var(--raised);border:1px solid var(--line)}
@media(max-width:680px){
  #admin-hud{left:12px;right:12px;transform:none;bottom:calc(env(safe-area-inset-bottom) + 80px);flex-wrap:wrap;row-gap:8px}
  .studio-bar{top:118px}
  .studio-actions{margin-left:0;width:100%}
  .ghost-row.two{grid-template-columns:1fr}
  .post-ghost{min-height:150px}
}
/* Toast nad lištou správce (HUD), ať se u stavové lišty neztrácí. */
body.admin-editing .toast{bottom:78px}
@media (max-width:680px){
  body.admin-editing .toast{bottom:calc(env(safe-area-inset-bottom) + 148px)}
}

/* Ilustrace: náhled na kliknutí (karta i reader), bez ořezu. */
button.post-art{padding:0;border:0;cursor:zoom-in;text-align:left;font:inherit;color:inherit;background:var(--surface-deep)}
/* Prázdná interaktivní vrstva nad dekorativním kódovým náhledem skillu. */
.post-art-hit{position:absolute;inset:0;z-index:6;padding:0;border:0;border-radius:inherit;background:transparent;cursor:pointer}
.post-art-hit:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.art-zoom{display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:zoom-in}
.reader-cover{cursor:zoom-in}
.art-dialog{width:min(920px,calc(100vw - 24px))}
.art-zoom-frame{background:var(--surface-deep);border-radius:12px;overflow:hidden}
.art-zoom-frame img{display:block;width:100%;height:auto}

.login-remember{display:flex;align-items:center;gap:9px;margin:12px 0 0;font-size:0.8125rem;color:var(--muted);cursor:pointer}
.login-remember input{width:18px;height:18px;accent-color:var(--accent)}

/* Obsah článku a související odkazy. */
.reader-toc{margin:0 0 26px;padding:16px 18px;background:var(--surface);border-radius:12px;box-shadow:var(--pressed)}
.reader-toc-head{font-size:0.6875rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0}
.reader-toc ol{margin:8px 0 0;padding-left:20px}
.reader-toc li{margin:5px 0;font-size:0.875rem}
.reader-toc a{color:var(--link);text-decoration:none}
.reader-toc a:hover{text-decoration:underline}
.reader-related{margin:44px 0 0;padding-top:26px;border-top:1px solid var(--line)}
.reader-related h2{font-size:1.375rem;margin:0 0 14px}
.reader-related ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.reader-related a{display:block;padding:13px 16px;border-radius:10px;background:var(--surface);text-decoration:none}
.reader-related strong{display:block;font-size:0.9375rem;color:var(--ink)}
.reader-related span{display:block;margin-top:4px;font-size:0.8125rem;line-height:1.6;color:var(--muted)}

.reader-body h2[id]{scroll-margin-top:120px}

/* Poster: celý plakát v readeru, náhled na kartě zůstává oříznutý na střed. */
.reader[data-format=poster]{max-width:900px}
.reader[data-format=poster] .reader-cover{aspect-ratio:auto;background:transparent}
.reader[data-format=poster] .reader-cover img{width:100%;height:auto;object-fit:contain;border-radius:12px}
.reader[data-format=poster] .art-zoom{height:auto}

/* ==== Dlouhý seznam: lepivé filtry, návrat nahoru, oznámení počtu ==== */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.back-to-top{position:fixed;right:20px;bottom:24px;z-index:30;display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid color-mix(in srgb,var(--edge) 80%,transparent);border-radius:50%;background:var(--chrome-glass);backdrop-filter:blur(18px) saturate(155%);-webkit-backdrop-filter:blur(18px) saturate(155%);color:var(--ink);box-shadow:var(--raised);cursor:pointer}
.back-to-top .icon{width:21px;height:21px;transform:rotate(-90deg)}
.back-to-top:hover{color:var(--accent)}
@media(max-width:680px){.back-to-top{right:14px;bottom:calc(env(safe-area-inset-bottom) + 86px);width:44px;height:44px}}
@media(min-width:681px){
  .library-toolbar{position:sticky;top:110px;z-index:8;margin-top:12px;margin-bottom:12px;padding:8px 12px;border:1px solid color-mix(in srgb,var(--edge) 62%,transparent);border-radius:14px;background:linear-gradient(135deg,rgba(255,255,255,.10),transparent 46%),color-mix(in srgb,var(--chrome-glass) 50%,transparent);backdrop-filter:blur(34px) saturate(195%);-webkit-backdrop-filter:blur(34px) saturate(195%);box-shadow:0 6px 20px -12px var(--shadow),inset 0 1px 0 var(--edge),inset 0 -1px 0 var(--line)}
}
@media(min-width:681px) and (max-width:1100px){.library-toolbar{top:108px}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.back-to-top{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}}
@media(min-width:681px) and (max-width:799px){.library-toolbar{top:156px}}

/* ==========================================================================
   MD Inspector Modal (GitHub náhled vs. Programátorský mód)
   ========================================================================== */
.md-dialog:not([open]):not([data-exiting]){
  display:none!important;
}
.md-dialog{
  width:min(980px,calc(100vw - 28px));
  max-width:980px;
  height:min(88vh,820px);
  max-height:calc(100dvh - 32px);
  padding:0;
  flex-direction:column;
  overflow:hidden;
  border-radius:18px;
  border:1px solid color-mix(in srgb,var(--edge) 75%,transparent);
  background:linear-gradient(145deg,rgba(255,255,255,.09),transparent 45%),var(--dialog-glass);
  backdrop-filter:blur(24px) saturate(175%);
  -webkit-backdrop-filter:blur(24px) saturate(175%);
  box-shadow:0 32px 90px rgba(0,3,18,.5),inset 0 1px 0 rgba(255,255,255,.28);
}
.md-dialog[open],
.md-dialog[data-exiting]{
  display:flex;
}
.md-dialog-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 20px;
  border-bottom:1px solid var(--line);
  background:color-mix(in srgb,var(--surface) 65%,transparent);
  flex-shrink:0;
}
.md-dialog-meta{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.md-file-icon{
  width:26px;
  height:26px;
  color:var(--accent-top);
  flex-shrink:0;
}
.md-dialog-titles{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.md-dialog-title{
  font-size:1rem;
  font-weight:800;
  letter-spacing:-.02em;
  margin:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:280px;
  color:var(--ink);
}
.md-dialog-badge{
  font-size:0.6875rem;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.md-dialog-tabs{
  display:inline-flex;
  align-items:center;
  padding:3px;
  border-radius:10px;
  background:color-mix(in srgb,var(--paper) 70%,transparent);
  border:1px solid var(--line);
  gap:2px;
}
.md-tab{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 14px;
  font-size:0.75rem;
  font-weight:700;
  border-radius:7px;
  border:0;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  transition:color .15s ease,background-color .15s ease,opacity .15s ease;
}
.md-tab:hover{
  color:var(--ink);
}
.md-tab.active{
  background:var(--surface);
  color:var(--ink);
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}
.md-tab .icon{
  width:14px;
  height:14px;
}
.md-dialog-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}
.md-dialog-actions .secondary{
  font-size:0.75rem;
  padding:8px 12px;
  min-height:36px;
  border-radius:9px;
  gap:6px;
  display:inline-flex;
  align-items:center;
}
.md-dialog-actions .secondary .icon{
  width:15px;
  height:15px;
}
.md-dialog-actions .icon-button{
  width:36px;
  height:36px;
  border-radius:10px;
}
.md-dialog-body{
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
  padding:26px 30px;
  color:var(--ink);
  scroll-behavior:smooth;
}
/* Režim 1: GitHub Preview (Renderovaný Markdown) */
.md-preview-pane{
  font-size:0.9375rem;
  line-height:1.75;
  max-width:860px;
  margin:0 auto;
}
.md-preview-pane h1{
  font-size:1.5rem;
  font-weight:800;
  letter-spacing:-.025em;
  margin:0 0 16px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
  color:var(--ink);
}
.md-preview-pane h2{
  font-size:1.25rem;
  font-weight:800;
  letter-spacing:-.02em;
  margin:28px 0 12px;
  padding-bottom:8px;
  border-bottom:1px solid var(--line);
  color:var(--ink);
}
.md-preview-pane h3{
  font-size:1rem;
  font-weight:800;
  margin:22px 0 10px;
  color:var(--ink);
}
.md-preview-pane h4,.md-preview-pane h5,.md-preview-pane h6{
  font-size:0.875rem;
  font-weight:800;
  margin:16px 0 8px;
  color:var(--muted);
}
.md-preview-pane p{
  margin:0 0 14px;
}
.md-preview-pane ul,.md-preview-pane ol{
  margin:0 0 16px 22px;
  padding:0;
}
.md-preview-pane li{
  margin-bottom:6px;
}
.md-preview-pane blockquote{
  margin:16px 0;
  padding:12px 18px;
  border-left:4px solid var(--accent-top);
  background:color-mix(in srgb,var(--accent-top) 8%,transparent);
  border-radius:0 10px 10px 0;
  color:var(--ink);
}
.md-preview-pane blockquote p:last-child{
  margin-bottom:0;
}
.md-preview-pane code{
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:0.8125rem;
  background:color-mix(in srgb,var(--paper) 80%,transparent);
  padding:2px 7px;
  border-radius:6px;
  border:1px solid var(--line);
  color:var(--accent-top);
}
.md-preview-pane pre{
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:12px;
  padding:16px 18px;
  overflow-x:auto;
  margin:18px 0;
  box-shadow:var(--pressed);
}
.md-preview-pane pre code{
  background:transparent;
  border:0;
  padding:0;
  color:inherit;
  font-size:0.84375rem;
  line-height:1.6;
}
.md-preview-pane table{
  width:100%;
  border-collapse:collapse;
  margin:20px 0;
  font-size:0.84375rem;
}
.md-preview-pane th,.md-preview-pane td{
  padding:10px 14px;
  border:1px solid var(--line);
  text-align:left;
}
.md-preview-pane th{
  background:color-mix(in srgb,var(--paper) 60%,transparent);
  font-weight:800;
}
.md-preview-pane hr{
  border:0;
  height:1px;
  background:var(--line);
  margin:24px 0;
}
/* Režim 2: Kód / Programátorský mód (Editor se zvýrazněnou syntaxí a čísly řádků) */
.md-code-pane{
  display:flex;
  font-family:'JetBrains Mono','SF Mono',Consolas,monospace;
  font-size:0.8125rem;
  line-height:1.65;
  background:color-mix(in srgb,var(--surface-deep) 90%,transparent);
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  box-shadow:var(--pressed);
}
.md-line-numbers{
  user-select:none;
  padding:16px 12px;
  color:var(--muted);
  opacity:.5;
  text-align:right;
  background:color-mix(in srgb,var(--paper) 35%,transparent);
  border-right:1px solid var(--line);
  font-size:0.75rem;
  line-height:1.65;
  min-width:44px;
}
.md-code-pre{
  flex:1;
  margin:0;
  padding:16px 18px;
  overflow-x:auto;
  white-space:pre;
  background:transparent;
  color:var(--ink);
}
.md-code-pre code{
  background:transparent;
  border:0;
  padding:0;
  font:inherit;
  color:inherit;
}
/* Tokeny zvýraznění Markdownu */
.md-code-pane .token.title,.md-code-pane .token.important{color:var(--accent-top);font-weight:800}
.md-code-pane .token.front-matter-block{color:#64b5f6}
.md-code-pane .token.bold{font-weight:700;color:#81c784}
.md-code-pane .token.italic{font-style:italic;color:#ba68c8}
.md-code-pane .token.code-snippet{color:#ffb74d;background:rgba(255,183,77,.1);padding:1px 4px;border-radius:4px}
.md-code-pane .token.code-block{color:#ffe082}
.md-code-pane .token.url,.md-code-pane .token.url-reference{color:#4fc3f7;text-decoration:underline}
.md-code-pane .token.blockquote{color:#90a4ae;font-style:italic}
.md-code-pane .token.list{color:var(--accent-bottom);font-weight:700}
.md-code-pane .token.punctuation{color:rgba(255,255,255,.45)}

@media(max-width:680px){
  .md-dialog-header{flex-wrap:wrap;padding:12px 14px;gap:10px}
  .md-dialog-tabs{order:3;width:100%;justify-content:center;margin-top:4px}
  .md-tab{flex:1;justify-content:center}
  .md-dialog-actions .secondary span{display:none}
  .md-dialog-actions .secondary{padding:8px 10px}
  .md-dialog-title{max-width:180px;font-size:0.90625rem}
  .md-dialog-body{padding:16px 14px}
}

/* ==========================================================================
   Skill Code Stage (Miniaturní náhled kódu v kartě)
   ========================================================================== */
.skill-code-stage{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  background:linear-gradient(160deg,#090e1c 0%,#050914 100%);
  font-family:ui-monospace,SFMono-Regular,"JetBrains Mono",Menlo,Consolas,monospace;
  overflow:hidden;
  user-select:none;
}
.skill-code-stage-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:7px 12px;
  background:rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.08);
  flex-shrink:0;
}
.skill-code-stage-dots{
  display:flex;
  align-items:center;
  gap:4px;
}
.skill-code-stage-dots i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:rgba(255,255,255,.32);
  display:inline-block;
}
.skill-code-stage-file{
  color:var(--accent-top);
  font-weight:700;
  font-size:0.6875rem;
  letter-spacing:-.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  flex:1;
  text-align:left;
  margin-left:4px;
}
.skill-code-stage-badge{
  font-size:0.53125rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:2px 5px;
  border-radius:4px;
  background:color-mix(in srgb,var(--accent-top) 18%,transparent);
  color:var(--accent-top);
  border:1px solid color-mix(in srgb,var(--accent-top) 30%,transparent);
}
.skill-code-stage-body{
  position:relative;
  flex:1;
  display:flex;
  padding:8px 12px 14px;
  overflow:hidden;
  font-size:0.625rem;
  line-height:1.55;
  text-align:left;
}
.skill-code-stage-lines{
  display:flex;
  flex-direction:column;
  padding-right:8px;
  margin-right:8px;
  border-right:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.25);
  font-variant-numeric:tabular-nums;
  text-align:right;
  flex-shrink:0;
  user-select:none;
}
.skill-code-stage-pre{
  margin:0;
  padding:0;
  background:transparent;
  color:#c9d6f0;
  white-space:pre;
  overflow:hidden;
  font-family:inherit;
  font-size:inherit;
  line-height:inherit;
  flex:1;
}
.skill-code-stage::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:38px;
  background:linear-gradient(to bottom,transparent,#050914 94%);
  pointer-events:none;
}
.post-art:hover .skill-code-stage-header{
  background:rgba(255,255,255,.08);
}
.post-art:hover .skill-code-stage-file{
  color:#b4cbff;
}

/* Syntax Token Barvy pro Mini Stage */
.skill-code-stage .tok-comment{color:#768ba7;font-style:italic}
.skill-code-stage .tok-heading{color:#9bb8ff;font-weight:700}
.skill-code-stage .tok-quote{color:#f6c177;font-style:italic}
.skill-code-stage .tok-keyword{color:#c084fc;font-weight:700}
.skill-code-stage .tok-selector{color:#38bdf8}
.skill-code-stage .tok-string{color:#4ade80}
.skill-code-stage .tok-check.pass{color:#4ade80;font-weight:800}
.skill-code-stage .tok-check.fail{color:#f87171;font-weight:800}

/* Světlý motiv pro Skill Code Stage */
[data-theme="light"] .skill-code-stage{
  background:linear-gradient(160deg,#f0f4fa 0%,#e3e9f5 100%);
}
[data-theme="light"] .skill-code-stage-header{
  background:rgba(0,0,0,.035);
  border-bottom:1px solid rgba(0,0,0,.08);
}
[data-theme="light"] .skill-code-stage-dots i{
  background:rgba(0,0,0,.28);
}
[data-theme="light"] .skill-code-stage-lines{
  border-right:1px solid rgba(0,0,0,.08);
  color:rgba(0,0,0,.35);
}
[data-theme="light"] .skill-code-stage-pre{
  color:#1a253d;
}
[data-theme="light"] .skill-code-stage::after{
  background:linear-gradient(to bottom,transparent,#e3e9f5 94%);
}
[data-theme="light"] .skill-code-stage .tok-comment{color:#64748b}
[data-theme="light"] .skill-code-stage .tok-heading{color:#2563eb}
[data-theme="light"] .skill-code-stage .tok-quote{color:#b45309}
[data-theme="light"] .skill-code-stage .tok-keyword{color:#7c3aed}
[data-theme="light"] .skill-code-stage .tok-selector{color:#0284c7}
[data-theme="light"] .skill-code-stage .tok-string{color:#15803d}

@media(max-width:680px){
  .skill-code-stage{font-size:0.59375rem}
  .skill-code-stage-header{padding:5px 9px}
  .skill-code-stage-file{font-size:0.625rem}
  .skill-code-stage-body{padding:6px 9px 10px;font-size:0.59375rem;line-height:1.45}
  .skill-code-stage-lines{padding-right:6px;margin-right:6px}
}




/* Dialog (hledání, filtry, reader) nesmí nechat spodní navigaci na očích:
   vypadá aktivně, ale klik jen zavře dialog. */
body:has(dialog[open], dialog[data-exiting]) .bottom-nav{display:none}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.library-toolbar{background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}}
