:root{--bg:#111214;--surface:#1b1d20;--raised:#25282d;--line:#303339;--text:#f0f1f4;--muted:#92979f;--accent:#69a5ff;--accent-ink:#101319;--green:#63d9a2;--red:#fa8386;--radius:8px;color-scheme:dark;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:14px;letter-spacing:0}
html[data-theme=white]{--accent:#f0f1f4}html[data-theme=yellow]{--accent:#f5d16f}html[data-theme=purple]{--accent:#b49af9}html[data-theme=pink]{--accent:#ef9fcc}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);letter-spacing:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:var(--text);border:1px solid var(--line);background:var(--surface);border-radius:var(--radius);min-height:44px;padding:10px 14px;display:inline-flex;gap:9px;align-items:center;justify-content:center}button:hover{background:var(--raised);border-color:#545a64}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:disabled{opacity:.5;cursor:wait}svg{width:19px;height:19px;flex-shrink:0}a{color:inherit;text-decoration:none}small{display:block;color:var(--muted);font-size:12px}strong{font-weight:600}h1{font-size:26px;line-height:1.2;margin:6px 0 0;font-weight:650}h2{font-size:18px;margin:0 0 16px}p{line-height:1.6}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;padding:26px 18px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#17181b}.brand{display:flex;gap:12px;align-items:center;font-size:17px;font-weight:650;padding:0 6px 34px}.brand small{font-weight:400;margin-top:5px}.brand-mark{display:grid;place-items:center;color:var(--accent);width:38px;height:38px;border:1px solid var(--line);border-radius:8px}.brand-mark svg{width:24px;height:24px}nav{display:flex;flex-direction:column;gap:6px}nav button{border-color:transparent;justify-content:flex-start;background:transparent;color:var(--muted);min-height:48px}nav button.active{background:var(--raised);color:var(--accent)}nav button .count{margin-left:auto;font-size:12px;background:var(--line);color:var(--text);padding:2px 7px;border-radius:4px}.profile{margin-top:auto;display:flex;align-items:center;gap:10px;padding-top:20px;border-top:1px solid var(--line)}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;background:var(--raised);color:var(--accent);font-weight:700}.profile strong{font-size:13px;word-break:break-word}.profile small{margin-top:4px}.connection,.dot{width:7px;height:7px;display:inline-block;border-radius:50%;background:var(--green);flex-shrink:0}.connection{margin-left:auto}.dot.off{background:var(--red)}.workspace{margin-left:232px;max-width:1500px;padding:32px 40px}.topbar{display:flex;align-items:center;justify-content:space-between;padding-bottom:28px;border-bottom:1px solid var(--line);gap:14px}.eyebrow{font-size:10px;letter-spacing:0;color:var(--muted)}.header-actions{display:flex;align-items:center;gap:12px}.header-actions span{font-size:11px;color:var(--muted)}.icon-button{width:42px;padding:0;flex-shrink:0}main{padding-top:26px}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;border-bottom:1px solid var(--line);padding-bottom:26px;margin-bottom:24px}.summary>div{border-left:2px solid var(--line);padding-left:16px}.summary small{margin-bottom:8px}.summary b{font-size:23px;font-weight:600}.summary .online{color:var(--green)}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:26px 0 16px}.section-heading h2{margin:0}.section-heading span{font-size:12px;color:var(--muted)}.bot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.bot-tile{display:flex;flex-direction:column;align-items:stretch;text-align:left;min-height:150px;padding:20px;background:var(--surface);border-radius:8px}.bot-tile .slot-number{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;align-items:center}.status{display:flex;align-items:center;gap:7px;font-size:11px}.bot-tile .bot-name{font-size:18px;font-weight:600;display:flex;align-items:center;gap:10px;margin:18px 0 16px;overflow-wrap:anywhere}.bot-tile .bot-name svg{color:var(--accent)}.bot-tile .tile-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:12px;font-size:12px;color:var(--muted);gap:10px}.tile-footer span{overflow-wrap:anywhere}.bot-tile.empty-slot{background:transparent;border-style:dashed}.bot-tile.empty-slot .bot-name{color:var(--muted)}.bot-tabs{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:22px}.bot-tabs button{background:transparent}.bot-tabs button.active{border-color:var(--accent);color:var(--accent)}.panel-identity{display:flex;align-items:center;gap:12px;margin-bottom:24px}.panel-identity .avatar{width:44px;height:44px}.panel-identity h2{margin:0;font-size:20px}.panel-identity small{margin-top:6px}.text-block{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere;margin:0 0 22px;color:#d6d9df;font-size:14px}.data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line);margin-bottom:24px}.data-row{padding:16px 0;border-bottom:1px solid var(--line);min-width:0}.data-row small{margin-bottom:7px}.data-row strong{font-size:15px;overflow-wrap:anywhere}.data-row .secret{color:var(--muted);padding:0;border:0;background:none;min-height:24px;justify-content:flex-start}.controls{display:flex;flex-direction:column;gap:10px;margin-top:20px}.control-row{display:grid;grid-template-columns:repeat(var(--columns,2),minmax(0,1fr));gap:10px}.control-row>button{overflow-wrap:anywhere;min-width:0;line-height:1.4}.control-row .danger{color:var(--red)}.control-row .toggle{justify-content:space-between;text-align:left;min-height:56px;padding:14px 16px}.switch{display:block;width:34px;height:20px;border-radius:12px;background:#454952;position:relative;flex-shrink:0}.switch:after{content:"";width:14px;height:14px;position:absolute;left:3px;top:3px;background:#dde1e8;border-radius:50%}.switch.on{background:var(--accent)}.switch.on:after{left:17px;background:var(--accent-ink)}.input-bar{border-top:1px solid var(--line);padding-top:22px;margin-top:24px;display:flex;gap:10px}.input-bar input{flex:1;min-width:0}.input-bar button{background:var(--accent);color:var(--accent-ink);border:0;width:48px;padding:0}input,select,textarea{min-height:46px;background:#17191d;border:1px solid var(--line);color:var(--text);border-radius:6px;padding:10px 12px;width:100%}.logs{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.log-line{font-family:Consolas,monospace;font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;border-left:2px solid var(--line);padding:6px 12px;color:var(--muted)}.theme-row{display:flex;align-items:center;justify-content:space-between;min-height:72px;border-bottom:1px solid var(--line)}.theme-swatch{width:30px;height:30px;border-radius:50%;border:4px solid var(--bg);outline:1px solid var(--line);margin-right:12px}.theme-row>span{display:flex;align-items:center}.theme-row.active .theme-swatch{outline:2px solid var(--accent)}.empty{padding:60px 24px;text-align:center;color:var(--muted)}.empty svg{width:36px;height:36px;margin-bottom:16px}.toast{position:fixed;bottom:30px;left:calc(50% + 116px);transform:translateX(-50%);max-width:calc(100% - 32px);padding:14px 20px;background:var(--raised);border:1px solid var(--line);border-radius:8px;box-shadow:0 8px 35px #0006;z-index:5;line-height:1.5}dialog{background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:8px;width:min(440px,calc(100% - 32px));padding:24px}dialog::backdrop{background:#0008}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.danger{color:var(--red)}[hidden]{display:none!important}.document-button{justify-content:flex-start;width:100%;margin:8px 0}.progress-track{height:6px;background:var(--line);border-radius:3px;overflow:hidden;margin:16px 0}.progress-track span{display:block;height:100%;background:var(--accent)}.label{display:flex;align-items:center;gap:8px;min-width:0}.control-row .label{overflow-wrap:anywhere}
@media(min-width:1100px){.bot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.control-row{max-width:820px}.text-block{max-width:850px}.data-grid{max-width:850px}}
@media(max-width:760px){.sidebar{position:fixed;inset:auto 0 0;width:100%;height:72px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line);z-index:4}.brand,.profile{display:none}nav{flex-direction:row;justify-content:space-around;gap:2px}nav button{flex-direction:column;gap:5px;min-height:48px;padding:4px 8px;font-size:10px;min-width:0;border-radius:6px}nav button svg{width:19px;height:19px}nav .count{display:none}.workspace{margin-left:0;padding:22px 18px 100px}.topbar{padding-bottom:20px}h1{font-size:23px}.eyebrow{font-size:9px}.header-actions{gap:7px}.header-actions span{max-width:75px;line-height:1.5}.summary{gap:10px;padding-bottom:22px}.summary>div{padding-left:10px}.summary b{font-size:20px}.bot-grid{gap:10px}.bot-tile{min-height:148px;padding:14px}.bot-tile .bot-name{font-size:16px;margin:16px 0 14px;gap:7px}.bot-tile .status{font-size:10px}.bot-tile .tile-footer{font-size:10px;align-items:flex-start}.bot-tile .slot-number{font-size:10px}.bot-tabs{gap:6px}.bot-tabs button{font-size:12px;padding:8px 10px}.control-row{gap:7px}.control-row>button{font-size:12px;padding:10px 8px}.control-row .toggle{font-size:12px;padding:12px 10px}.switch{width:30px;height:18px}.switch:after{width:12px;height:12px}.switch.on:after{left:15px}.toast{left:50%;bottom:90px}.data-grid{column-gap:18px}.panel-identity h2{font-size:18px}}
.sidebar{inset:auto 0 0;width:100%;height:auto;padding:8px 16px calc(8px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line);z-index:4;background:var(--bg)}
.profile{display:none}#navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:900px;margin:auto}#navigation button{justify-content:center;min-width:0;min-height:44px;padding:8px 6px;font-size:13px;flex-direction:row;gap:6px}#navigation .danger{color:var(--red)}
.workspace{margin:0 auto;padding:14px 18px calc(90px + env(safe-area-inset-bottom));max-width:1100px}.bot-view .workspace{padding-bottom:calc(150px + env(safe-area-inset-bottom))}.topbar{border:0;padding-bottom:8px;min-height:44px}.topbar:has(#page-title[hidden]){justify-content:flex-end}.topbar:has(#page-title[hidden])>div:first-child{display:none}main{padding-top:8px}
.bot-grid{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.bot-tile{min-height:54px;padding:12px;flex-direction:row;align-items:center;gap:8px}.bot-tile .bot-name{font-size:14px;line-height:1.4;margin:0;min-width:0;overflow-wrap:anywhere}.bot-tile .slot-number{font-size:12px;flex-shrink:0}.dot{width:9px;height:9px}.dot.pending{background:#f5d16f}.panel-identity{flex-wrap:wrap;gap:10px;margin-bottom:18px}.panel-identity h2{font-size:18px;overflow-wrap:anywhere;min-width:0}.panel-identity .status{font-size:12px}.toast{left:50%;bottom:calc(85px + env(safe-area-inset-bottom))}.bot-view .toast{bottom:calc(140px + env(safe-area-inset-bottom))}
@media(min-width:900px){.bot-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:360px){#navigation button{font-size:12px;gap:4px}#navigation button svg{width:16px;height:16px}.workspace{padding-left:12px;padding-right:12px}}
#navigation{grid-template-columns:repeat(var(--nav-columns,2),minmax(0,1fr))}.bot-view #navigation .nav-section{grid-column:span 3}.bot-view #navigation .nav-control{grid-column:span 2}
.header-actions{width:100%;justify-content:flex-end}.header-actions #bots-count{display:flex;align-items:center;gap:8px;margin-right:auto;max-width:none;font-size:14px;color:var(--text);font-weight:600}.header-actions #bots-count svg{color:var(--accent)}.connection-data{column-gap:20px}.connection-data .secret{display:flex;gap:12px;min-height:32px;overflow-wrap:anywhere;text-align:left;max-width:100%}.connection-data .secret>span{min-width:0;overflow-wrap:anywhere}.connection-data .secret svg{color:var(--accent)}dialog{margin:auto;max-height:calc(100dvh - 32px);overflow:auto}
@media(max-width:420px){#navigation button{font-size:12px;gap:5px;padding-left:4px;padding-right:4px}#navigation button svg{width:17px;height:17px}}
#bot-identity{margin-right:auto;min-width:0;display:flex;flex-direction:column;gap:4px;text-align:left}#bot-identity>strong{overflow-wrap:anywhere;font-size:15px;line-height:1.3}#bot-identity .status{font-size:11px;max-width:none;gap:6px}.header-actions #bot-identity .status{color:var(--muted)}.header-actions .icon-button{height:44px;width:42px;flex-shrink:0}
.inventory-view{max-width:500px;margin:4px auto 20px;--inventory-cell:clamp(25px,calc((100vw - 70px)/9),50px)}.inventory-gui{background:#c6c6c6;border:3px solid;border-color:#fff #555 #555 #fff;padding:10px;box-shadow:0 0 0 2px #111;border-radius:2px;color:#fff}.inventory-upper{display:grid;grid-template-columns:11.111% 28% minmax(0,1fr);gap:7px;height:calc(var(--inventory-cell)*4);margin-bottom:10px}.armor-slots{display:grid;grid-template-rows:repeat(4,minmax(0,1fr));gap:2px}.inventory-cell{position:relative;min-width:0;min-height:0;aspect-ratio:1;background:#8b8b8b;border:2px solid;border-color:#373737 #fff #fff #373737;display:grid;place-items:center;overflow:hidden;padding:3px}.inventory-cell.selected{outline:2px solid #ffe075;outline-offset:-3px}.inventory-cell svg{width:60%;height:60%;color:#eee}.inventory-cell:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.item-texture{position:absolute;inset:3px;overflow:hidden;display:grid;place-items:center}.item-texture img{position:absolute;top:0;left:0;width:100%;height:auto;image-rendering:pixelated}.item-count{position:absolute;right:2px;bottom:0;font-size:clamp(10px,14px,16px);font-weight:700;line-height:1.1;font-variant-numeric:tabular-nums;text-shadow:1px 1px #222,2px 2px #222;z-index:2}.item-durability{position:absolute;bottom:2px;left:3px;right:3px;height:3px;background:#111;z-index:3}.item-durability>span{height:100%;display:block}.inventory-main,.inventory-hotbar{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:2px}.inventory-hotbar{margin-top:10px}.inventory-player{position:relative;background:#111;min-width:0;overflow:hidden}.inventory-player canvas{position:absolute;width:100%;height:100%;inset:0;object-fit:contain;image-rendering:pixelated}.armor-canvas{animation:armor-shimmer 2.6s ease-in-out infinite;mix-blend-mode:screen}.item-glint{position:absolute;inset:3px;background:linear-gradient(120deg,transparent 25%,#c479fa88 45%,transparent 65%);mix-blend-mode:screen;animation:armor-shimmer 2.6s ease-in-out infinite;pointer-events:none}.inventory-side{min-width:0;display:flex;flex-direction:column;gap:5px}.inventory-side>.inventory-cell{width:var(--inventory-cell);flex-shrink:0}.inventory-effects{height:100%;min-height:0;min-width:0;overflow-y:auto;overflow-x:hidden;flex:1;scrollbar-width:thin}.effect-row{display:flex;align-items:center;gap:6px;background:#242424;border:2px solid;border-color:#777 #111 #111 #777;padding:5px;margin-bottom:4px;min-height:42px;width:100%;max-width:100%;overflow:hidden}.effect-row>img{width:24px;height:24px;image-rendering:pixelated;flex-shrink:0}.effect-copy{min-width:0;flex:1}.effect-copy strong{display:block;font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.effect-time{font-size:12px;color:#aaa;font-variant-numeric:tabular-nums;white-space:nowrap;line-height:1.3}.inventory-offline .inventory-cell{opacity:.75}@keyframes armor-shimmer{0%,100%{opacity:.15}50%{opacity:.65;filter:brightness(1.4)}}
@media(max-width:360px){.inventory-gui{padding:7px}.inventory-upper{gap:5px}.effect-row{padding:4px;gap:4px}.effect-row>img{width:20px;height:20px}.effect-copy strong,.effect-time{font-size:11px}.item-count{font-size:11px}}
.inventory-upper{overflow:hidden}.armor-slots{min-height:0}.armor-slots>.inventory-cell{aspect-ratio:auto;height:100%;width:100%}.inventory-side{height:100%;min-height:0;overflow:hidden}.inventory-effects{height:auto}.effect-row>svg{width:24px;height:24px;flex-shrink:0}.item-texture canvas{width:100%;height:100%;image-rendering:pixelated}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.armor-canvas,.item-glint{animation:none;opacity:.3}}
.inventory-cell{min-height:0;border-radius:0;padding:3px;gap:0;touch-action:pan-y;color:#fff}.inventory-cell:hover{background:#aaa;border-color:#373737 #fff #fff #373737}.inventory-cell:disabled{opacity:1;cursor:default}.inventory-cell.picked{box-shadow:inset 0 0 0 2px #fff}.inventory-cell.picked .item-texture{transform:scale(1.12);inset:4px}.inventory-cell.picked .item-glint{inset:4px}.inventory-player.item-picked canvas{visibility:hidden}.inventory-trash{position:absolute;inset:25% 20%;width:60%;height:50%;min-height:0;padding:8px;border-radius:2px;background:#292929;border:2px solid #aaa}.inventory-trash svg{width:40px;height:40px;max-width:90%;max-height:90%;color:#f78888}.inventory-trash:hover{background:#3d2525}
.minecraft-label{image-rendering:pixelated;display:block;width:auto;height:16px}.inventory-back>span{min-width:80px}
.inventory-effects.dense{gap:2px}.inventory-effects.compact.dense .effect-row{min-height:18px;height:calc((100% - (var(--effect-count) - 1)*2px)/var(--effect-count))}.inventory-effects.dense .effect-copy{display:flex;align-items:center;gap:3px}.inventory-effects.dense .effect-copy strong{flex:1;min-width:0}.inventory-effects.dense .effect-time{flex-shrink:0}.inventory-effects.compact.dense .effect-row>img,.inventory-effects.compact.dense .effect-row>svg{width:12px;height:12px}
.inventory-tools{display:grid;grid-template-columns:var(--inventory-cell) minmax(0,1fr) var(--inventory-cell) minmax(0,1fr) minmax(0,1fr);gap:2px;height:var(--inventory-cell);flex-shrink:0;min-width:0}.inventory-tools>.inventory-cell{width:100%;height:100%}.minecraft-button{min-width:0;min-height:0;border-radius:0;background:#777;color:#fff;border:2px solid;border-color:#ddd #333 #333 #ddd;text-shadow:1px 1px #222;font-family:Consolas,"Courier New",monospace;font-weight:bold;padding:2px;gap:3px}.minecraft-button:hover{background:#929292;border-color:#fff #444 #444 #fff}.minecraft-button svg{width:18px;height:18px;max-width:100%}.inventory-effects{display:flex;flex-direction:column;gap:3px}.effect-row{flex:0 0 auto;margin:0;min-height:0;height:calc((100% - (var(--effect-count) - 1)*3px)/var(--effect-count));max-height:45px;padding:3px}.inventory-effects.compact .effect-row{padding:1px 2px;gap:3px;min-height:20px}.inventory-effects.compact .effect-row>img,.inventory-effects.compact .effect-row>svg{width:16px;height:16px}.inventory-effects.compact .effect-copy strong{font-size:11px;line-height:11px}.inventory-effects.compact .effect-time{display:block;font-size:10px;line-height:10px}.inventory-effects.compact .effect-row:nth-child(n+4) .effect-copy{display:flex;align-items:center;gap:3px}.inventory-effects.compact .effect-row:nth-child(n+4) strong{flex:1;min-width:0}.inventory-effects.compact .effect-row:nth-child(n+4) .effect-time{flex-shrink:0}
.inventory-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:12px}.inventory-actions button{font-size:12px;padding:8px 4px;flex-direction:column;min-width:0;line-height:1.25;overflow-wrap:anywhere}.inventory-actions button:first-child{color:var(--red)}.inventory-preview{min-height:calc(var(--inventory-cell)*8);display:flex;flex-direction:column;position:relative;gap:12px;font-family:Consolas,"Courier New",monospace;text-shadow:1px 1px #333;color:#242424;overflow-wrap:anywhere}.inventory-preview h2{font-size:16px;line-height:1.4;margin:0;min-width:0}.inventory-preview>.inventory-cell{width:var(--inventory-cell);flex-shrink:0}.inventory-preview p{margin:0;font-size:13px;line-height:1.5;text-shadow:none}.item-details{display:flex;flex-direction:column;gap:5px;min-width:0}.inventory-preview .enchantment-line{color:#64389f}.shulker-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:2px}.inventory-back{align-self:flex-start;padding:8px 16px;min-height:34px;margin-top:auto;font-size:14px}.inventory-preview .shulker-status{color:#333}.inventory-cell.holding:after{content:"";position:absolute;inset:2px;border:3px solid #ffe075;pointer-events:none;animation:hotbar-grow 3s linear forwards;z-index:4}.hotbar-holding .inventory-cell.selected:not(.holding){animation:hotbar-shrink 3s linear forwards}@keyframes hotbar-grow{from{transform:scale(.2);opacity:.4}to{transform:scale(1);opacity:1}}@keyframes hotbar-shrink{from{outline-offset:-3px}to{outline-offset:-16px}}
