*{box-sizing:border-box}body{margin:0;background:#08130d;color:#f7f4ea;font:16px "Trebuchet MS",sans-serif}nav,footer,.toolbar,form section{display:flex;align-items:center;gap:12px;flex-wrap:wrap}nav,footer{justify-content:space-between;padding:16px 3vw}nav{border-bottom:1px solid #314739}nav strong,small,footer{font-size:.78rem;letter-spacing:.09em}a{color:#b8ecb9}nav a{margin-left:14px}main{width:min(98%,1920px);margin:auto}header{text-align:center;background:linear-gradient(90deg,#07100be8,#0c251cea 38%,#0c251cea 62%,#07100bd9),url(/jungle.webp) center/cover;padding:34px 12px;border-bottom:2px solid #93602c;position:relative}header:before,header:after{content:"";position:absolute;top:0;bottom:0;width:18%;left:0;background:url(/geckos.webp) center/cover;mask-image:linear-gradient(90deg,#000,transparent)}header:after{left:auto;right:0;transform:scaleX(-1)}h1{font:italic 900 clamp(2.8rem,6vw,6rem)/1 Georgia,serif;color:#ffab39;margin:8px 0;text-shadow:0 3px #513412,0 0 22px #9d5c263d}h1 i{color:#42df80}header b{background:#48321f;border:1px solid #93602c;padding:5px 16px;letter-spacing:.19em;font-size:.78rem}button,input,textarea{font:inherit}button{cursor:pointer;background:#213e2b;color:#fff;border:1px solid #52705b;padding:7px 12px;border-radius:5px}button:hover,button:focus-visible{background:#365a3b}.toolbar{margin:20px 0}.toolbar strong{margin-right:auto}#msg{color:#ffd28d}#grid,.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.day{background:#101d15;border:1px solid #354d3d;border-radius:7px;min-height:270px;overflow:hidden}.day h2{font-size:1rem;text-transform:uppercase;background:linear-gradient(115deg,#096039,#193625);margin:0;padding:12px 8px;border-bottom:1px solid #48ac73}.day h2 small{display:block;font-size:.7rem;color:#c5e9d1;margin-top:3px}.card,.empty{padding:10px;margin:8px 5px}.card{background:#0c1610;border:1px solid #465b44;border-radius:5px;overflow-wrap:anywhere}.card time{color:#ffb13c;font-size:1.18rem;font-weight:bold}.card h3{margin:7px 0;text-transform:uppercase;font-size:1rem}.card p,.empty{color:#c2d0c4;font-size:.85rem}.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(64px,100%),1fr));gap:4px}.gallery img,.art{width:100%;border-radius:3px;object-fit:cover}.gallery span{font-size:.72rem;min-width:0}.art{height:65px;object-position:center 43%}.actions button{font-size:.73rem;padding:4px}.actions{margin-top:10px}footer{border-top:1px solid #355540;margin-top:18px;color:#c2d0c4}dialog{width:min(520px,96vw);max-height:90vh;color:inherit;background:#14221a;border:1px solid #69a278;border-radius:8px}dialog::backdrop{background:#030a07cf}label{display:block;margin:10px 0}input:not([type=checkbox]),textarea{display:block;width:100%;padding:8px;margin-top:5px;background:#08130d;color:#fff;border:1px solid #63906b}fieldset{margin:12px 0}#results button{display:block;margin:4px}#results img{width:60px;vertical-align:middle;margin-right:8px}.poster{width:1920px;height:1080px;padding:20px;background:#08130d;display:flex;flex-direction:column}.poster .calendar{flex:1}.poster .day{min-height:0}.poster footer{margin-top:10px}.poster header{padding:20px}.poster .actions{display:none}@media(max-width:900px){#grid{grid-template-columns:repeat(2,minmax(0,1fr))}.day{min-height:0}}@media(max-width:540px){#grid{grid-template-columns:1fr}.toolbar strong{font-size:.9rem}header small{font-size:.6rem}footer{display:grid}}
body,.poster{background:#0a100d url(/planning-bg.webp) center top/cover fixed}
header,.poster header{background:transparent;border:0}header:before,header:after{display:none}
nav,footer,.toolbar{background:#08140de8}.toolbar{padding:10px;border-radius:6px}
.grid-wrap{overflow:auto;max-height:78vh;scrollbar-color:#467858 #0b1510}
#grid.timeline,.timeline{display:grid;grid-template-columns:52px repeat(7,minmax(0,1fr));align-items:start;gap:4px;min-width:840px}
.timeline .day,.ruler{border:0;border-radius:5px;min-height:0;background:#0e1b14db;overflow:visible}
.timeline h2{height:58px;position:sticky;top:0;z-index:2;margin:0;padding:9px;background:linear-gradient(110deg,#126944,#183928);font-size:15px;text-transform:uppercase;border-bottom:1px solid #4b9365}
.ruler{position:sticky;left:0;z-index:3;color:#c4dccb}.ruler h2{font-size:12px}
.track{position:relative;height:var(--track-height);background:repeating-linear-gradient(to bottom,#4b6d5066 0 1px,transparent 1px var(--hour))}
.tick{position:absolute;font:12px/1.5 monospace;left:4px}.slot{position:absolute;margin:0;padding:5px 6px;overflow:hidden;cursor:pointer;background:#10251b;border:1px solid #478259;border-left:3px solid #e8a13c;min-width:0}
.slot[draggable=true]{cursor:grab}.slot:focus-visible{outline:3px solid white;z-index:2}
.slot h3{margin:3px 0}.slot time{font-size:14px}.slot p{margin:3px 0}
.slot .art{height:58px;object-position:50% 38%}.gallery img{aspect-ratio:460/215;display:block}
#move-preview{white-space:pre-line}#detail .card{margin:0 0 12px}.poster{background-attachment:scroll;position:absolute;left:-20000px;top:0}
.poster header{padding:14px;height:145px}.poster h1{font-size:68px}.poster .track{background:#0e1914bf}
.poster .timeline{display:grid;min-width:0;grid-template-columns:54px repeat(7,minmax(0,1fr));gap:6px}
.poster .timeline h2,.poster .ruler{position:relative}.poster .slot .art{height:72px}.poster .slot p{font-size:15px}.poster .slot h3{font-size:19px}
.poster .gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.poster .slot time{font-size:18px}.poster footer{margin-top:auto}
@media(max-width:700px){#grid.timeline{grid-template-columns:49px repeat(7,175px);min-width:1300px}.grid-wrap{max-height:74vh}}

.poster .slot{display:grid;grid-template-columns:minmax(0,1fr) 39%;grid-template-rows:auto auto 1fr;column-gap:5px;align-content:start;padding:5px}
.poster .slot time,.poster .slot h3,.poster .slot p{grid-column:1}
.poster .slot h3{font-size:16px;line-height:1.06}.poster .slot p{font-size:12px;line-height:1.1}
.poster .slot .art,.poster .slot .gallery{grid-column:2;grid-row:1 / 4;align-self:start}
.poster .slot .art{height:60px}.poster .slot .gallery{display:flex;flex-direction:column;gap:2px}
.poster .slot .gallery span{display:flex;align-items:center;gap:2px;font-size:9px;line-height:1.05}
.poster .slot .gallery img{width:44%;height:23px;object-fit:cover}
body{margin:0;height:100dvh;display:flex;flex-direction:column}
body>nav{flex:none;padding:6px 2vw}body>main{min-height:0;flex:1;display:flex;flex-direction:column}
main>header{padding:8px 4px}main>header h1{font-size:clamp(30px,5vh,62px);margin:2px}
main>.toolbar{margin:5px 0;gap:5px;padding:4px 8px}.toolbar button,#grid-pager button,#day-buttons button{padding:4px 8px}
main>#msg{margin:2px 0;font-size:.8rem;overflow-wrap:anywhere}main>footer{margin:2px 0 0;padding:5px;font-size:.67rem}
.grid-wrap{flex:1;min-height:0;max-height:none;overflow:visible}
#grid.timeline{min-width:0;grid-template-columns:45px repeat(7,minmax(0,1fr))}#grid.one-day{grid-template-columns:45px minmax(0,1fr)}
#grid .day h2,#grid .ruler h2{height:42px;padding:3px 6px}#grid .empty{margin:4px;padding:2px}
#grid .slot{padding:3px 5px}#grid .slot p{margin:2px 0}#grid .slot .art{height:40px}#grid .slot .gallery img{height:35px}
#grid.one-day .slot{padding-right:min(32%,140px)}#grid.one-day .slot .art,#grid.one-day .slot .gallery{position:absolute;right:3px;top:4px;width:30%;max-width:132px;max-height:48px;overflow:hidden}
#day-buttons:not([hidden]){display:grid;grid-template-columns:repeat(7,1fr);gap:2px}#day-buttons button{min-width:0;font-size:.78rem;padding:5px 1px}#day-buttons [aria-pressed=true]{background:#116f3d}
#grid-pager{height:28px;flex:none;text-align:center}#grid-pager button{line-height:1}
@media(max-height:580px){main>header small,main>header b,main>footer span{display:none}main>header{padding:0}main>header h1{font-size:24px}body>nav{padding:2px 8px}.toolbar button{font-size:.8rem}}
@media(max-width:800px){main>footer{display:flex;justify-content:center}main>footer span{display:none}main>header small{display:none}#grid .slot time{font-size:.82rem}}

.compact-cards #grid .slot{padding:3px 4px 3px 6px;display:grid;grid-template-columns:minmax(0,1fr) min(32%,64px);column-gap:4px;align-content:start}
.compact-cards #grid .slot time,.compact-cards #grid .slot h3{grid-column:1;font-size:12px;line-height:1.12;margin:0}
.compact-cards #grid .slot h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.compact-cards #grid .slot p{display:none}
.compact-cards #grid .slot .art,.compact-cards #grid .slot .gallery{grid-column:2;grid-row:1/3;position:static;width:100%;height:32px;overflow:hidden}
.compact-cards #grid .slot .gallery{display:flex}.compact-cards #grid .slot .gallery span{flex:1}
.compact-cards #grid .slot .gallery img{height:32px}.compact-cards #grid .slot .gallery b{display:none}
@media(max-width:950px) and (max-height:500px){main>.toolbar{margin:1px 0}}
.card{--portrait-width:56px}
.covers{display:flex;align-items:flex-start;gap:3px;min-width:0}
.covers figure{flex:0 1 var(--portrait-width);min-width:0;margin:0}
.portrait{width:100%;aspect-ratio:9/16;background:#172b1e center/cover no-repeat;border-radius:3px;overflow:hidden}
.portrait img{display:block;width:100%;height:100%;object-fit:cover}
.poster .portrait img{visibility:hidden}
.covers figcaption{font-size:.7rem;line-height:1.1;overflow-wrap:anywhere}
#grid .slot{--portrait-width:41px}
#grid.one-day .slot,.compact-cards #grid .slot,.poster .slot{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,46%);grid-template-rows:auto auto 1fr;column-gap:4px;align-content:start;padding:4px}
#grid.one-day .slot :is(time,h3,p){grid-column:1}
#grid.one-day .covers,.compact-cards #grid .covers,.poster .covers{grid-column:2;grid-row:1/4}
.compact-cards #grid .slot{--portrait-width:24px}
.compact-cards .covers figcaption{font-size:.62rem}
.poster .slot{--portrait-width:35px}
#detail .card{--portrait-width:120px}
#grid-pager:empty{height:4px}
.timeline .track{display:flow-root}@media(max-height:650px){.compact-cards #grid .slot{--portrait-width:19px}}

.stream-card{color:#f8f4df;background:linear-gradient(145deg,#293e30,#11251c 66%,#15241b);border:1px solid #627852;border-radius:8px}
#grid .slot.stream-card,.poster .slot.stream-card{border:1px solid #607554;border-top:3px solid #e9aa51;padding:7px;box-shadow:inset 0 1px 0 #ffffff12}
.stream-card time{display:flex;align-items:baseline;gap:3px;flex-wrap:wrap;font-variant-numeric:tabular-nums}
.stream-card time strong{font-size:1.12em;color:#ffd289}.stream-card time span{color:#dddcc9;font-size:.84em}
.stream-card time small{font:700 10px/1.3 sans-serif;background:#344b41;color:#dcf2d9;padding:1px 4px;border-radius:3px;white-space:nowrap}
.stream-card h3,#grid .stream-card h3,.poster .stream-card h3{text-transform:none;letter-spacing:-.025em;line-height:1.08;font-family:Georgia,serif}
#grid .stream-card h3{font-size:clamp(16px,1.35vw,24px);margin:4px 0}.stream-card .covers{gap:4px;justify-content:center;text-align:center}
.stream-card .portrait{border-radius:4px;box-shadow:0 2px 5px #04120c99}
.stream-card .covers figcaption{color:#d5dfce;font-weight:600;padding-top:2px}
#grid .stream-card.slot:focus-visible,#grid .stream-card.slot:hover{border-color:#ffc773;background:linear-gradient(140deg,#354a32,#162d21)}
.compact-cards #grid .stream-card.slot,.poster .stream-card.slot,#grid.one-day .stream-card.slot{grid-template-columns:minmax(0,1fr) minmax(0,43%);grid-template-rows:auto auto 1fr;column-gap:6px}
.compact-cards #grid .stream-card.slot time,.poster .stream-card.slot time,#grid.one-day .stream-card.slot time{grid-column:1/-1}
.compact-cards #grid .stream-card.slot .covers,.poster .stream-card.slot .covers,#grid.one-day .stream-card.slot .covers{grid-column:1/-1;grid-row:auto;justify-content:center}
.compact-cards #grid .stream-card.slot h3{font-size:14px;line-height:1.08}
.poster .stream-card.slot h3{font-size:20px}
@media(max-height:650px){#grid .slot.stream-card{padding:3px 4px}.compact-cards #grid .stream-card.slot h3{font-size:12px}}


.compact-cards #grid .stream-card.slot h3,.poster .stream-card.slot h3,#grid.one-day .stream-card.slot h3,.poster .stream-card.slot p,#grid.one-day .stream-card.slot p{grid-column:1/-1}
.compact-cards #grid .stream-card.slot,.poster .stream-card.slot,#grid.one-day .stream-card.slot{grid-template-rows:auto auto auto auto}
