/* gm-tasks v2: Studio owner to-do list + footer, styled like the Open Rack footer strip and list (footer-sync 1031).
   The docked To Do List strip itself is the shared GMCommunity component (/assets/community/gm-community.js, room=studio).
   Palette, sizes and type follow the rack's strip: #0c0d10 strip, #111318 panel, #2a2d38 lines, #7c5cff / #a991ff accent, #5fe27c bug green. */
:root{--gmt-bg:#111318;--gmt-strip:#0c0d10;--gmt-line:#2a2d38;--gmt-line2:#333744;--gmt-btn:#181a21;--gmt-acc:#7c5cff;--gmt-acc2:#a991ff;--gmt-green:#5fe27c;--gmt-text:#e8e8ee;--gmt-muted:#7d8090;--gmt-font:13px/1.35 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
/* ---- buttons (same look as the strip's) ---- */
.gmt-sb{height:30px;min-width:30px;padding:0 10px;border-radius:var(--r,10px);border:1px solid var(--gmt-line2);background:var(--gmt-btn);color:inherit;font:inherit;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex:none;cursor:pointer}
.gmt-sb:hover{border-color:var(--gmt-acc)}
.gmt-sb.gmt-bugb{border-color:#2f5d3a;background:#14201a;color:#c9f5d2}.gmt-sb.gmt-bugb:hover{border-color:var(--gmt-green)}
/* the alien bug: transform-only breathing, still under reduced motion */
.gmt-bug{display:inline-block;filter:drop-shadow(0 0 3px rgba(95,226,124,.75));animation:gmtBreathe 2.6s ease-in-out infinite;transform-origin:50% 90%}
.gmt-sb.gmt-bugb:hover .gmt-bug{animation:gmtScuttle .45s linear 2}
@keyframes gmtBreathe{0%,100%{transform:scale(1,1) skewX(0)}30%{transform:scale(1.09,.9) skewX(-5deg)}55%{transform:scale(.93,1.08) skewX(4deg)}80%{transform:scale(1.04,.96) skewX(-2deg)}}
@keyframes gmtScuttle{0%,100%{transform:translateX(0) rotate(0)}25%{transform:translateX(-2px) rotate(-8deg)}75%{transform:translateX(2px) rotate(8deg)}}
@media (prefers-reduced-motion:reduce){.gmt-bug{animation:none!important}}
/* page lifts while the To Do List strip shows (html.gm-guest, set by GMCommunity with --gm-guest-h): the app never sits under it.
   Desktop: the app is a fixed-height shell (body overflow hidden), so main shrinks instead of body padding. */
html.gm-guest body[data-mode]{padding-bottom:0}
html.gm-guest main{height:calc(100% - var(--topbar) - var(--gm-guest-h,0px))}
html.gm-guest .toast-zone{bottom:calc(16px + var(--gm-guest-h,0px))}
@media (max-width:1020px){html.gm-guest main{height:auto}html.gm-guest body[data-mode]{padding-bottom:var(--gm-guest-h,0px)}}
/* ---- list card at the bottom of each page (normal flow, not an overlay) ---- */
.gm-tasks{background:var(--gmt-bg);border:1px solid var(--gmt-line);border-radius:12px;padding:12px 12px 10px;margin:0 0 12px;color:var(--gmt-text);font:var(--gmt-font);position:relative;z-index:0;box-shadow:0 -10px 40px rgba(0,0,0,.25)}
.sound-mode>.gm-tasks{grid-column:1/-1}
.console-mode>.gm-tasks{margin-top:12px}
@media (min-width:1021px){.sound-mode.has-gm-tasks{grid-template-rows:100% auto;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--gmt-line2) transparent}}
.gmt-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 2px}
.gmt-title{font:650 15px/1.3 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;text-transform:none;letter-spacing:0;margin:0;color:var(--gmt-text)}
.gmt-title:focus{outline:none}
.gmt-tk{color:var(--gmt-acc2)}
.gmt-count{font-size:12px;color:var(--gmt-acc2);font-weight:600}
.gmt-sub{color:var(--gmt-muted);font-size:12px;margin:0 0 8px}
.gmt-msg{margin:6px 0 0;min-height:1.2em;font-size:12px;color:var(--gmt-acc2)}.gmt-msg.is-err{color:#ff8a8a}.gmt-msg:empty{display:none}
.gmt-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));column-gap:12px}
.gmt-item{display:flex;gap:9px;align-items:flex-start;padding:8px 6px;border-bottom:1px solid #1d2028;min-width:0}
.gmt-box{appearance:none;-webkit-appearance:none;flex:none;width:18px;height:18px;margin:1px 0 0;border:1.5px solid #4a4e5c;border-radius:4px;background:#0b0c0f;display:grid;place-content:center;cursor:pointer;opacity:1}
.gmt-box::after{content:"";width:9px;height:5px;border:solid #fff;border-width:0 0 2px 2px;transform:translateY(-1px) rotate(-45deg) scale(0);transition:transform .12s ease}
.gmt-box:checked{background:var(--gmt-acc);border-color:var(--gmt-acc)}.gmt-box:checked::after{transform:translateY(-1px) rotate(-45deg) scale(1)}
.gmt-box:disabled{cursor:default}.gmt-box:not(:disabled):hover{border-color:var(--gmt-acc2)}.gmt-box[aria-busy="true"]{opacity:.6}
.gmt-ic{flex:none;width:20px;text-align:center}
.gmt-text{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1;cursor:default}
.gmt-box:not(:disabled)+.gmt-ic+.gmt-text{cursor:pointer}
.gmt-t{color:var(--gmt-text);overflow-wrap:anywhere}
.is-done .gmt-t{text-decoration:line-through;color:#8a8d99}
.gmt-ship{display:block;color:#6fd08a;font-size:11.5px}
.gmt-ref{display:block;width:max-content;max-width:100%;margin:2px 0 1px;padding:0 5px;border:1px solid #2a2e3a;border-radius:4px;color:#9aa0b0;font-size:10.5px}
.gmt-d{display:block;color:var(--gmt-muted);font-size:11.5px;overflow-wrap:anywhere}
.gmt-owner{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.gmt-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.gmt-lab{font-size:12px;color:var(--gmt-muted)}
.gmt-in{min-height:36px;min-width:min(100%,260px);padding:0 10px;border-radius:8px;border:1px solid var(--gmt-line2);background:#0b0c0f;color:var(--gmt-text);font:inherit;font-size:16px}
.gmt-btn{min-height:32px;padding:0 12px;border-radius:8px;border:1px solid var(--gmt-line2);background:var(--gmt-btn);color:var(--gmt-text);font:inherit;cursor:pointer}.gmt-btn:hover{border-color:var(--gmt-acc)}
.gmt-badge{font-size:11.5px;font-weight:600;color:#fff;background:#2a2147;border:1px solid var(--gmt-acc);border-radius:8px;padding:6px 9px}
.gmt-ft{padding:8px 0 2px;margin-top:4px;border-top:1px solid #22252e;font-size:11.5px;color:#6b6e7c;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.gmt-ft a,.gmt-appfoot a{color:#8d90a0}.gmt-ft a:hover,.gmt-appfoot a:hover{color:var(--gmt-acc2)}
.gmt-appfoot{padding:14px 0 2px;color:var(--gmt-muted);font-size:12.5px}.gmt-appfoot p{margin:0}.gmt-appfoot b{color:var(--gmt-text)}
/* small screens: the fixed MIDI button sits bottom-left above the strip; leave room so the last line scrolls clear of it */
@media (max-width:640px){.gm-tasks{padding:10px;margin-bottom:64px}}
@media (forced-colors:active){.gmt-box{appearance:auto;-webkit-appearance:auto}.gmt-box::after{display:none}}

.gmt-ft>span:first-child{flex:1;min-width:min(100%,260px);align-self:center}
.gmt-acts{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}
.gmt-rack{font-size:12px;padding:0 4px}
.gmt-ft .gmt-sb{font-size:12.5px}
