#direction-room{--room-bg:#f4f7fb;--room-panel:#ffffff;--room-ink:#1b2438;--room-muted:#55627d;--room-line:#e1e7f0;--room-accent:#1d2b47;--room-floor:#a58c70;--room-floor-line:#89735b;--room-wall:#415d5b;--room-wall-light:#64847c;--room-paper:#fff4db;--room-wood:#a76337;--room-wood-light:#d59157;--paper:var(--room-panel);--pearl:var(--room-panel);--deep:var(--room-ink);--slate:var(--room-muted);--pebble:var(--room-line);--orange-dark:var(--room-accent);border:1px solid var(--room-line);border-radius:18px;padding:22px;color:var(--room-ink);background:var(--room-bg);width:min(1080px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;box-shadow:0 28px 100px #1d2b4740;font-family:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif}
#direction-room:not([open]){display:none}#direction-room::backdrop{background:#1d2b47b3;backdrop-filter:blur(5px)}#direction-room[data-theme=sand]{--room-bg:#fbf8f3;--room-panel:#fffdf8;--room-ink:#263732;--room-muted:#5c665b;--room-line:#b9ad96;--room-accent:#9b400d;--room-floor:#d6bf9a;--room-floor-line:#c1a982;--room-wall:#8ea792;--room-wall-light:#b1c5a4}
#direction-room .room-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}#direction-room .room-top h2{font-family:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;font-size:30px;letter-spacing:-.5px;margin:0}#direction-room .room-kicker{font-family:"JetBrains Mono",monospace;font-size:10px;letter-spacing:1.7px;color:var(--room-accent);margin:0 0 5px}#direction-room .room-owner{font-size:12px;color:var(--room-muted);margin:5px 0 0}#direction-room button{font:inherit;font-size:13px;min-height:44px;border-radius:7px;border:1px solid var(--room-line);color:var(--room-ink);background:var(--room-panel);padding:9px 12px}#direction-room button:focus-visible,#direction-room .room-canvas:focus-visible{outline:3px solid var(--room-accent);outline-offset:3px}#direction-room button:hover:not(:disabled){border-color:var(--room-accent)}#direction-room button[aria-pressed=true]{background:var(--room-accent);border-color:var(--room-accent);color:var(--room-bg)}#direction-room .room-toolbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}#direction-room .room-toolbar nav,#direction-room .room-themes{display:flex;gap:6px;flex-wrap:wrap}#direction-room .room-themes button{font-size:11px;padding-inline:10px}
#direction-room .room-canvas{width:min(100%,calc((100dvh - 255px)*1.6667));aspect-ratio:20/12;position:relative;margin:auto;background-color:var(--room-floor);background-image:linear-gradient(90deg,var(--room-floor-line) 1px,transparent 1px),linear-gradient(var(--room-floor-line) 1px,transparent 1px);background-size:5% 8.3333%;border:8px solid var(--room-wall);border-top-width:16px;border-radius:8px;isolation:isolate;overflow:hidden;cursor:crosshair;box-shadow:0 9px 0 #0003}#direction-room .room-canvas:before{content:'';position:absolute;inset:0 0 auto;height:15%;background:var(--room-wall);box-shadow:inset 0 -7px 0 #0002;z-index:-1}#direction-room .room-window{position:absolute;left:8%;top:0;width:22%;height:13%;border:5px solid var(--room-wall-light);background:linear-gradient(90deg,transparent 45%,var(--room-wall-light) 45% 53%,transparent 53%),linear-gradient(#b5d9c0,#79aaa0);box-shadow:0 4px 0 #0003}#direction-room .room-wall-sign{position:absolute;right:9%;top:4%;color:#f0ecd8;font:10px "JetBrains Mono",monospace;letter-spacing:2px}#direction-room .room-plant{position:absolute;left:6%;top:57%;font-size:35px;filter:drop-shadow(0 6px 0 #0002);pointer-events:none}
#direction-room .room-object{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;border-radius:2px;padding:8px;font-size:13px;box-shadow:0 8px 0 #0003;cursor:pointer}#direction-room .room-computer{left:10%;top:25%;width:25%;height:25%;background:var(--room-wood-light);border:5px solid var(--room-wood);color:#31241c}#direction-room .room-monitor{display:block;background:#294e51;border:5px solid #40494b;width:58%;height:45%;box-shadow:0 5px 0 #293639;position:relative}#direction-room .room-monitor:after{content:'›_';position:absolute;inset:0;color:#c8f2d8;font:clamp(10px,1.2vw,17px) monospace;text-align:left;padding:2px}#direction-room .room-keyboard{display:block;background:repeating-linear-gradient(90deg,#354144 0 4px,#71847f 4px 6px);width:45%;height:10%;margin-top:3px}#direction-room .room-object-label{font-size:12px;line-height:1.25;font-weight:600;text-align:center}#direction-room .room-object-label small{font-size:11px;font-weight:400}#direction-room .room-board{left:60%;top:16.67%;width:30%;height:25%;background:var(--room-paper);border:6px solid #896b49;color:#3d352b;transform:rotate(-1deg)}#direction-room .room-notes{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;width:85%;height:45%;align-items:center}#direction-room .room-notes i{height:100%;background:#e8bc78;border-top:3px solid #c89956;box-shadow:1px 2px 0 #0002}#direction-room .room-notes i:nth-child(even){background:#b8c6a2;border-color:#8caa82}#direction-room .room-ai{left:65%;top:58.33%;width:25%;height:25%;background:#38575a;border:5px solid #6d8a86;color:#f1f0d9}#direction-room .room-robot{display:grid;place-items:center;background:#98b8a8;border:3px solid #d5e4d2;color:#203e3d;width:38%;height:44%;font:12px "JetBrains Mono",monospace;box-shadow:4px 4px 0 #203e3d}#direction-room .room-door{position:absolute;left:7%;bottom:0;min-height:30px;width:18%;padding:4px;background:#71563e;color:#fff0d6;border:3px solid #a7835b;border-bottom:0;border-radius:3px 3px 0 0;font-size:11px}
#direction-room .room-avatar{position:absolute;width:24px;height:36px;transform:translate(-50%,-100%);pointer-events:none;z-index:3;transition:left 125ms linear,top 125ms linear;filter:drop-shadow(2px 4px 0 #0004);image-rendering:pixelated}#direction-room .room-avatar span{position:absolute;display:block;border-radius:0}#direction-room .pixel-head{left:5px;top:5px;width:14px;height:12px;background:#e8b589;border:2px solid #654532}#direction-room .pixel-hair{left:4px;top:2px;width:16px;height:7px;background:#3c302b;z-index:2;box-shadow:3px 4px 0 -1px #3c302b}#direction-room .pixel-shirt{left:3px;top:17px;width:18px;height:11px;background:#e8843f;border:2px solid #9d451f}#direction-room .pixel-legs{left:5px;top:28px;width:6px;height:8px;background:#29393c;box-shadow:9px 0 0 #29393c}#direction-room .room-avatar small{position:absolute;bottom:40px;left:50%;transform:translateX(-50%);font-size:11px;padding:2px 5px;white-space:nowrap;color:#263732;background:#fff4db;border-radius:3px}#direction-room .room-help,#direction-room .room-status{color:var(--room-muted);font-size:12px;line-height:1.6;margin:14px 0 0}#direction-room .room-status{min-height:20px}#direction-room .room-workbench{max-height:calc(100dvh - 255px);overflow:auto;padding:0 10px 10px 0;scrollbar-gutter:stable}#direction-room .room-workbench .tasks-area{margin:0;border-top:0;padding-top:6px}#direction-room .room-workbench h3{color:var(--room-ink)}#direction-room .room-workbench .task-card{background:var(--room-panel);border-color:var(--room-line);color:var(--room-ink)}#direction-room .room-workbench a{color:var(--room-accent)}#direction-room .room-workbench input,#direction-room .room-workbench textarea,#direction-room .room-workbench select{background:var(--room-bg);color:var(--room-ink);border-color:var(--room-line)}#direction-room .room-workbench .content-card{background:var(--room-panel);border-color:var(--room-line);color:var(--room-ink)}#direction-room .room-ai-info{padding:26px 10px;max-width:640px;min-height:240px}#direction-room .room-ai-info h3{font-family:"Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;font-size:27px;font-weight:500}#direction-room .room-ai-info p{font-size:14px;line-height:1.8;color:var(--room-muted)}
@media(max-width:540px){#direction-room{padding:14px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}#direction-room .room-top h2{font-size:25px}#direction-room .room-top button{font-size:11px;max-width:110px}#direction-room .room-toolbar{gap:8px}#direction-room .room-toolbar nav{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}#direction-room .room-toolbar nav button{padding:8px 3px;font-size:12px}#direction-room .room-canvas{width:100%;border-width:5px;border-top-width:10px}#direction-room .room-object{padding:4px;border-width:3px}#direction-room .room-board{border-width:3px}#direction-room .room-wall-sign{font-size:7px;letter-spacing:1px}#direction-room .room-plant{font-size:24px}#direction-room .room-monitor{border-width:3px}#direction-room .room-robot{font-size:10px;border-width:2px}#direction-room .room-notes{gap:3px}#direction-room .room-object-label{font-size:11px}#direction-room .room-object-label small{font-size:10px}#direction-room .room-avatar{transform:translate(-50%,-100%) scale(.8);transform-origin:bottom center}#direction-room .room-workbench{max-height:calc(100dvh - 290px)}#direction-room .room-workbench input,#direction-room .room-workbench textarea,#direction-room .room-workbench select{font-size:16px}}
#direction-room .room-top-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media(prefers-reduced-motion:reduce){#direction-room .room-avatar{transition:none}#direction-room .room-board{transform:none}}
