/* ISWU shell – topbalk, hoofdmenu, rechterkolom, mobiele onderbalk. Komt ná theme.css. */
body.shl{padding-top:64px}
#shbar{position:fixed;top:0;left:0;right:0;height:64px;z-index:45;display:grid;grid-template-columns:var(--sw,264px) minmax(0,1fr) auto;align-items:center;gap:12px;padding:0 16px 0 0;background:rgba(0,0,0,.8);backdrop-filter:saturate(180%) blur(22px);-webkit-backdrop-filter:saturate(180%) blur(22px);border-bottom:1px solid var(--line)}
.sh-l{display:flex;align-items:center;gap:6px;padding-left:20px}
.sh-menu{display:none!important}
.sh-logo{font:800 24px/1 Inter;letter-spacing:-.05em;color:var(--y);text-decoration:none}
.sh-c{position:relative;justify-self:center;width:min(620px,100%)}
.sh-search{display:flex;align-items:center;gap:10px;height:44px;padding:0 14px;border-radius:999px;background:var(--card2,#16171b);color:var(--mut);border:1px solid transparent;transition:border-color .2s,background .2s}
.sh-search:focus-within{border-color:rgba(47,123,255,.6);background:#1a1b20;box-shadow:0 0 0 4px rgba(47,123,255,.14)}
.sh-search input,.sh-search input:focus{flex:1;background:transparent!important;border:0!important;box-shadow:none!important;padding:0;height:100%;font-size:15px;color:var(--tx)}
.sh-search kbd{font:600 11px Inter;color:var(--mut2,#636366);border:1px solid var(--line2);border-radius:6px;padding:2px 7px}
.sh-drop{position:absolute;top:52px;left:0;right:0;max-height:70vh;overflow-y:auto;padding:6px 10px 12px;border-radius:18px;background:#111214;border:1px solid var(--line2);box-shadow:0 30px 80px -20px rgba(0,0,0,.9);z-index:50}
.sh-drop .csh{margin:12px 8px 4px}
.sh-r{display:flex;align-items:center;gap:6px;justify-content:flex-end}
.sh-r>.ib{width:42px;height:42px;display:inline-grid!important;place-items:center;position:relative}
.sh-r>.sh-sq{display:none!important}
.sh-new{display:inline-flex;align-items:center;gap:6px;margin-right:6px;padding:9px 16px 9px 12px}
.sh-chat .cbadge{position:absolute;top:2px;right:0;margin:0}
.sh-me{padding:0;border:0;background:transparent;border-radius:50%;margin-left:4px;line-height:0}
.sh-me .cav{box-shadow:0 0 0 2px #000,0 0 0 3.5px rgba(255,214,10,.6)}
.sh-me .av{display:grid;place-items:center;border-radius:50%;background:var(--y);color:#000;font-weight:800}
.sh-mh{display:flex;align-items:center;gap:10px;text-align:left}.sh-mh span{display:flex;flex-direction:column}.sh-mh small{color:var(--mut);font-size:12px;font-weight:400}
#cmenu .danger{color:#ff6b6b}

/* hoofdmenu links */
body.shl .side{top:64px}
body.shl .side .brand,body.shl .side .me{display:none}
body.shl .snav .sg:empty{display:none}
body.shl .snav{padding-top:6px}
body.shl .si{font-size:15px;padding:11px 12px;gap:14px;font-weight:500}
body.shl .si .ic{width:22px;height:22px}
body.shl .si.on{font-weight:700}
body.shl .snav .sg{margin-top:22px}

/* paginakop */
body.shl .top{top:64px;padding-top:22px}
body.shl .top .tp-m,body.shl .top #dxsb,body.shl .top .dxsb{display:none!important}

/* rechterkolom */
#rail{display:none}
@media (min-width:1240px){
 body.has-rail #rail{display:block;position:fixed;top:64px;right:0;bottom:0;width:340px;overflow-y:auto;padding:20px 20px 40px;border-left:1px solid var(--line);scrollbar-width:thin}
 body.has-rail main.wrap,body.has-rail .foot{margin-right:340px!important}
}
.rl-card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:14px 12px 10px;margin-bottom:12px}
.rl-card header{display:flex;align-items:center;justify-content:space-between;padding:0 6px 6px}
.rl-card h4{margin:0;font:700 15px Inter;letter-spacing:-.02em}
.rl-card header a{font-size:13px;color:var(--blue2,#6ea2ff);text-decoration:none}
.rl-row{display:flex;align-items:center;gap:11px;width:100%;text-align:left;border:0;background:transparent;border-radius:12px;padding:8px 6px;color:var(--tx);font-weight:400}
@media(hover:hover){.rl-row:hover,.rl-o:hover{background:rgba(255,255,255,.05)}}
.rl-row>span{min-width:0;display:flex;flex-direction:column}.rl-row b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rl-row small{color:var(--mut);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rl-row img{width:44px;height:44px;border-radius:10px;object-fit:cover;flex:none}
.rl-d{width:44px;height:44px;border-radius:10px;flex:none;display:grid!important;place-content:center;text-align:center;background:var(--y);color:#000}.rl-d b{font-size:17px;line-height:1}.rl-d small{color:#000!important;font-size:11px;font-weight:700;text-transform:uppercase}
.rl-who{display:flex!important;flex-direction:row!important;align-items:center;gap:2px}.rl-who .cav{box-shadow:0 0 0 2px var(--card)!important;margin-right:-5px}
.rl-t .fxdot{margin:0 4px}
.rl-o{flex:1;display:flex;align-items:center;gap:11px;border:0;background:transparent;padding:0;text-align:left;color:var(--tx);min-width:0;border-radius:12px}
.rl-o span{display:flex;flex-direction:column;min-width:0}
.rl-mk{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:2px 4px 6px}
.rl-mk button{aspect-ratio:1;border-radius:12px;border:0;background:#111 center/cover;position:relative;padding:0;overflow:hidden}
.rl-mk b{position:absolute;left:6px;bottom:6px;background:rgba(0,0,0,.75);backdrop-filter:blur(6px);color:#fff;font-size:12px;padding:3px 8px;border-radius:999px}
.rl-foot{color:var(--mut2,#636366);font-size:12px;padding:4px 8px;line-height:1.6}.rl-foot a{color:inherit}

/* mobiel */
@media (max-width:900px){
 #shbar{grid-template-columns:auto 1fr auto;padding:0 8px 0 4px;height:58px;padding-top:env(safe-area-inset-top);height:calc(58px + env(safe-area-inset-top))}
 body.shl{padding-top:calc(58px + env(safe-area-inset-top))}
 .sh-l{padding-left:0}.sh-menu{display:inline-grid!important}
 .sh-c,.sh-new,.sh-r>.sh-chat{display:none!important}
 .sh-r>.sh-sq{display:inline-grid!important}
 body.shl .side{top:calc(58px + env(safe-area-inset-top))}
 body.shl .top{top:calc(58px + env(safe-area-inset-top));padding-top:14px}
 .bnav button[data-tab="create"]{color:#000}
 .bnav button[data-tab="create"] .ic{background:var(--y);border-radius:12px;padding:5px;width:40px;height:30px;box-shadow:0 6px 18px -6px rgba(255,214,10,.6)}
 .bnav button[data-tab="create"] span{color:var(--mut)}
}
body.shl .top h1{font-size:28px;letter-spacing:-.035em}
body.shl .top .up{font-size:11px}
body.has-rail #top,body.has-rail #m,body.has-rail #app{max-width:720px;margin-left:auto;margin-right:auto}
body.has-rail .cfeed,body.has-rail .fxwrap{max-width:none}
body.shl .osw{background:transparent;border-color:var(--line)}

/* ---------- Maken-paneel (shCreate): schuift uit de + of de Maken-knop ---------- */
.shmk{position:fixed;inset:0;z-index:300;--mk-e:cubic-bezier(.23,1,.32,1)}
.shmk-bg{position:absolute;inset:0;background:rgba(0,0,0,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);animation:shmkFade .22s ease-out both}
.shmk-bot .shmk-bg{bottom:0}
body.shmk-open .bnav{z-index:310}
.shmk-p{position:absolute;background:#151518;border:1px solid rgba(255,255,255,.08);border-radius:28px;padding:10px 12px 12px;box-shadow:0 30px 80px -20px rgba(0,0,0,.8);animation:shmkIn .28s var(--mk-e) both;touch-action:pan-x;transition:transform .2s var(--mk-e)}
.shmk-bot .shmk-p{left:10px;right:10px;max-width:520px;margin:0 auto}
.shmk-top .shmk-p{width:380px;border-radius:22px;animation-duration:.22s}
.shmk-grab{display:block;width:36px;height:5px;border-radius:9px;background:rgba(255,255,255,.18);margin:0 auto 6px}
.shmk-h{display:flex;align-items:center;gap:6px;min-height:40px;padding:0 6px}
.shmk-h b{font-family:Anton,Impact,sans-serif;font-weight:400;text-transform:uppercase;font-size:22px;letter-spacing:.01em}
.shmk-back{display:grid;place-items:center;width:36px;height:36px;margin-left:-8px;border:0;border-radius:99px;background:transparent;color:var(--tx,#f5f5f7);padding:0}
.shmk button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.shmk-main{display:flex;align-items:center;gap:14px;width:100%;margin:6px 0 10px;padding:14px;border:0;border-radius:20px;background:#ffd60a;color:#000!important;text-align:left}
.shmk-main>span:nth-child(2){flex:1;display:grid;gap:1px}.shmk-main b{font-size:17px;font-weight:700}.shmk-main small{font-size:13.5px;color:rgba(0,0,0,.66)}
.shmk-mi{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:rgba(0,0,0,.1)}
.shmk-g{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.shmk-g2{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:6px}
.shmk-t{display:grid;justify-items:start;align-content:start;gap:2px;min-height:96px;padding:14px 12px 12px;border:0;border-radius:18px;background:rgba(255,255,255,.06);text-align:left}
.shmk-t .shmk-i{margin-bottom:8px;color:#ffd60a}.shmk-t b{font-size:15px;font-weight:600}.shmk-t small{font-size:12px;line-height:1.3;color:var(--mut,#a1a1a6)}
.shmk-main,.shmk-t,.shmk-back{transition:transform .16s var(--mk-e),background-color .16s}
.shmk-main:active,.shmk-t:active{transform:scale(.96)}.shmk-t:active{background:rgba(255,255,255,.1)}
@media(hover:hover){.shmk-t:hover{background:rgba(255,255,255,.1)}.shmk-back:hover{background:rgba(255,255,255,.08)}.shmk-main:hover{filter:brightness(1.04)}}
.shmk button:focus-visible{outline:2px solid #ffd60a;outline-offset:2px}
.shmk-main,.shmk-t{animation:shmkItem .32s var(--mk-e) both;animation-delay:calc(40ms + var(--i,0) * 22ms)}
.shmk-in.sw{animation:shmkSw .22s var(--mk-e) both}.shmk-in.sw .shmk-t,.shmk-in.sw .shmk-main{animation:none}
.shmk.out .shmk-bg{animation:shmkFadeOut .18s ease-in both}.shmk.out .shmk-p{animation:shmkOut .18s ease-in both}
/* de + draait naar × zolang het paneel open is */
.bnav button[data-tab="create"] .ic path{transform-box:fill-box;transform-origin:center;transition:transform .26s cubic-bezier(.23,1,.32,1)}
body.shmk-open .bnav button[data-tab="create"] .ic path{transform:rotate(45deg)}
/* losse laatste tegel vult de rij (liggend) */
.shmk-g>.shmk-t:last-child:nth-child(3n+1){grid-column:1/-1;min-height:0;grid-template-columns:auto 1fr;column-gap:12px;align-items:center;padding:14px}
.shmk-g>.shmk-t:last-child:nth-child(3n+1) .shmk-i{grid-row:span 2;margin:0}
@media(max-width:360px){.shmk-g>.shmk-t:last-child:nth-child(3n+1){grid-column:auto;grid-template-columns:none;align-items:start}.shmk-g>.shmk-t:last-child:nth-child(3n+1) .shmk-i{grid-row:auto;margin-bottom:8px}.shmk-g>.shmk-t:last-child:nth-child(2n+1){grid-column:1/-1}}
@keyframes shmkIn{from{opacity:0;transform:translateY(14px) scale(.9)}to{opacity:1;transform:none}}
@keyframes shmkOut{to{opacity:0;transform:translateY(10px) scale(.94)}}
.shmk-top .shmk-p{animation-name:shmkInTop}.shmk-top.out .shmk-p{animation-name:shmkOutTop}
@keyframes shmkInTop{from{opacity:0;transform:translateY(-6px) scale(.95)}to{opacity:1;transform:none}}
@keyframes shmkOutTop{to{opacity:0;transform:translateY(-4px) scale(.97)}}
@keyframes shmkItem{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes shmkSw{from{opacity:0;transform:translateX(10px)}to{opacity:1;transform:none}}
@keyframes shmkFade{from{opacity:0}}@keyframes shmkFadeOut{to{opacity:0}}
@media(max-width:360px){.shmk-g{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.shmk-p,.shmk-bg,.shmk-main,.shmk-t,.shmk-in.sw{animation:none!important}.bnav button[data-tab="create"] .ic path{transition:none}}
