:root{color-scheme:dark;--bg:#14181b;--panel:#191e22;--line:#29333b;--text:#f0f0ed;--muted:#b1b9c5;--accent:#d6ff57}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px 'Segoe UI',Arial,sans-serif;height:100dvh;display:flex;flex-direction:column;overflow:hidden}button,a,select,input{-webkit-tap-highlight-color:transparent}button,select{font:inherit;color:inherit}button{cursor:pointer;background:none;border:0;display:inline-flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.studio-header{height:60px;flex-shrink:0;display:flex;align-items:center;padding:0 12px 0 20px;border-bottom:1px solid var(--line);gap:16px}.studio-brand{display:flex;align-items:center;gap:7px;white-space:nowrap}.studio-brand img{width:29px;height:29px;object-fit:contain}.studio-brand strong{font-size:20px;letter-spacing:1.5px}.studio-brand>span{font-size:16px;letter-spacing:3px;margin-left:3px}.breadcrumb-arrow{font-size:29px;font-weight:200;color:var(--muted);margin:0 2px}.plain{padding:0;font-size:16px}.slash{color:#7b8795}.document-name{font-size:16px;white-space:nowrap}.studio-header>svg{width:18px;height:18px}.project-status{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;white-space:nowrap;margin-left:12px}.project-status svg{width:21px;height:21px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:17px}.header-actions>button{height:35px;padding:0 14px;border:1px solid #35404b;border-radius:3px}.header-actions .export{background:var(--accent);color:#121710;font-weight:600;border-color:var(--accent)}.mode-tabs{display:flex;gap:2px;margin-right:8px}.mode-tabs button{height:35px;min-width:128px;border:1px solid #35404b;border-radius:3px;color:var(--muted)}.mode-tabs .selected{border-color:var(--accent);color:var(--accent)}.menu-bar{height:40px;flex-shrink:0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:33px;padding:0 24px}.menu-bar button{padding:5px 0}.options-bar{height:51px;flex-shrink:0;display:flex;align-items:center;gap:21px;padding:0 28px;border-bottom:1px solid var(--line);white-space:nowrap}.options-bar>svg{width:20px;height:20px}.divider{display:block;flex-shrink:0;width:1px;height:26px;background:#35404b}.brush-color{width:14px;height:17px;background:#a8b8d3}.options-bar label{display:flex;align-items:center;gap:18px}.options-bar select{height:31px;width:99px;border:1px solid var(--line);border-radius:4px;padding:0 11px;background:var(--panel);font-size:13px}.options-bar button{padding:0;font-size:14px}.switch{width:36px;height:20px;background:var(--accent);border:1px solid var(--accent);border-radius:20px;position:relative}.switch:after{content:'';position:absolute;width:16px;height:16px;right:1px;top:1px;background:white;border-radius:50%}.pixel-toggle[aria-pressed=false] .switch{background:#35404b;border-color:#55616b}.pixel-toggle[aria-pressed=false] .switch:after{right:17px}.workspace{flex:1;min-height:0;display:flex}.tool-rail{width:69px;flex-shrink:0;border-right:1px solid var(--line);display:flex;align-items:center;flex-direction:column;justify-content:flex-start;padding:10px 0 8px;gap:10px;overflow-y:auto;scrollbar-width:thin}.tool{width:41px;height:43px;border:1px solid transparent;border-radius:4px;flex-shrink:0}.tool svg{width:27px;height:27px}.tool:first-child{height:38px;margin-bottom:1px}.tool.active{border-color:var(--accent);color:var(--accent)}.tool.active svg{fill:var(--accent)}.tool:hover{background:#222a30}.color-pair{position:relative;height:52px;width:42px;margin-top:10px;flex-shrink:0}.color-pair span{position:absolute;width:28px;height:29px;background:#fff;border:2px solid #d7dbda;border-radius:2px;left:17px;top:20px}.color-pair span:first-child{background:var(--accent);z-index:1;left:2px;top:0}.background-swatch{width:25px;height:26px;border:1px solid #fff;flex-shrink:0;margin:0 0 0 -5px}.canvas-area{position:relative;flex:1;min-width:0;min-height:0;display:grid;grid-template-columns:29px 1fr;grid-template-rows:35px 1fr;padding-right:11px;padding-bottom:28px;background:#171c20}.ruler-corner{border-right:1px solid #39444e;border-bottom:1px solid #39444e;background:#1c2227}.ruler-x{display:flex;justify-content:space-between;padding:8px 0 0 6px;font-size:12px;color:#c2c9d4;border-bottom:1px solid #39444e;position:relative;background:repeating-linear-gradient(90deg,transparent 0 9px,#39444e 9px 10px) bottom/100% 6px no-repeat,#1c2227}.ruler-x span{background:#1c2227;height:15px}.ruler-y{display:flex;flex-direction:column;justify-content:space-between;padding:3px 5px 0 0;align-items:flex-end;font-size:11px;color:#c2c9d4;border-right:1px solid #39444e;background:repeating-linear-gradient(0deg,transparent 0 9px,#39444e 9px 10px) right/6px 100% no-repeat,#1c2227}.artboard{min-height:0;min-width:0;margin:11px 0 0 8px;border:1px solid #3a444f;background:#11161c;overflow:hidden}.artboard img{display:block;width:100%;height:100%;object-fit:fill;image-rendering:pixelated;user-select:none}.studio-status{height:52px;flex-shrink:0;display:flex;align-items:center;gap:27px;padding:0 30px 0 57px;border-top:1px solid var(--line);font-size:14px;white-space:nowrap}.studio-status .divider{height:22px}.coords{margin-left:22px;font:13px Consolas,monospace}.zoom-control{display:flex;align-items:center;gap:20px}.zoom-control label{display:flex;gap:26px}.zoom-control input{width:150px;height:3px;accent-color:var(--accent)}.zoom-control button{font-size:22px;padding:0 2px}.design-status{margin-left:auto;color:var(--muted);display:flex;align-items:center;gap:8px;font-size:13px}.design-status svg{width:20px;height:20px}dialog{background:var(--panel);color:var(--text);border:1px solid #46535f;border-radius:5px;padding:26px;max-width:calc(100% - 36px);width:430px}dialog::backdrop{background:#0009}dialog h2{font-size:20px;margin:0 0 14px}dialog p{color:var(--muted);line-height:1.6}dialog button{background:var(--accent);color:#14181b;padding:10px 22px;margin-top:12px;border-radius:3px}
@media(max-width:1200px){.studio-header{gap:10px;padding-left:12px}.studio-brand>span{font-size:12px;letter-spacing:2px}.studio-brand strong{font-size:17px}.mode-tabs button{min-width:85px}.header-actions{gap:10px}.project-status{margin-left:0;font-size:11px}.options-bar{gap:15px;padding:0 20px}.options-bar label{gap:10px}.studio-status{padding-left:24px;gap:18px;font-size:12px}.zoom-control{gap:12px}.zoom-control label{gap:14px}.zoom-control input{width:110px}.coords{margin-left:12px}}
@media(max-width:850px){.projects,.breadcrumb-arrow,.slash,.project-status,.studio-header>svg{display:none}.studio-header{height:56px}.studio-brand>span{display:none}.document-name{font-size:13px}.header-actions .save{display:none}.header-actions>button{padding:0 10px;font-size:12px}.mode-tabs button{min-width:65px;font-size:12px}.mode-tabs{margin-right:0}.options-bar{overflow-x:auto;gap:16px;height:49px;scrollbar-width:thin}.options-bar>*,.options-bar label{flex-shrink:0}.menu-bar{gap:25px;overflow-x:auto;padding:0 15px;scrollbar-width:none}.studio-status{padding:0 13px;gap:13px;height:48px}.studio-status>.divider,.studio-status>span:nth-child(3){display:none}.design-status{font-size:10px}.zoom-control input{width:70px}.zoom-control{gap:8px}.zoom-control label{gap:8px}.tool-rail{width:53px;gap:5px;padding-top:7px}.tool{height:39px;width:38px}.tool svg{width:24px;height:24px}.canvas-area{grid-template-columns:25px 1fr;grid-template-rows:29px 1fr;padding-right:7px;padding-bottom:14px}.ruler-x{font-size:10px}.ruler-x span:nth-child(even){visibility:hidden}.artboard{margin:7px 0 0 5px}.artboard img{object-fit:cover;object-position:center}.color-pair{margin-top:4px}.studio-brand img{width:25px;height:25px}}
@media(max-width:480px){.studio-header{flex-wrap:wrap;height:95px;padding:8px 10px;gap:8px}.studio-brand strong{font-size:18px}.document-name{margin-left:auto}.header-actions{width:100%;justify-content:space-between;gap:8px}.mode-tabs{flex:1}.mode-tabs button{flex:1;height:30px}.header-actions>button{height:30px}.studio-status{font-size:10px;gap:12px}.design-status{display:none}.zoom-control{margin-left:auto}.zoom-control input{width:65px}.zoom-control label{gap:7px}.studio-status .coords{display:none}.ruler-x span:nth-child(3n){visibility:hidden}}
.mode-tabs .room-mode-link{display:flex;align-items:center;justify-content:center;height:35px;min-width:128px;border:1px solid #35404b;border-radius:3px;color:var(--muted)}.room-strip{height:44px;flex-shrink:0;display:flex;align-items:center;gap:20px;padding:0 16px 0 24px;border-bottom:1px solid var(--line);background:#191f23;font-size:12px;position:relative}.room-privacy{color:var(--accent)}.room-privacy small{font-size:11px;color:var(--muted);margin-left:8px}.invite-area{margin-left:auto;display:flex;align-items:center;gap:14px}.invite-area>span{color:var(--muted)}.invite-area strong{color:var(--text);font-family:Consolas,monospace;letter-spacing:1px;margin-left:8px}.invite-area button{border:1px solid #3a4650;border-radius:3px;height:28px;font-size:12px;padding:0 10px}.copy-status{position:absolute;right:18px;top:42px;background:var(--panel);z-index:5}.room-panel{width:304px;flex-shrink:0;background:#191e22;border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.room-panel[hidden]{display:none}.panel-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 17px;border-bottom:1px solid var(--line)}.panel-heading h1{font-size:15px;margin:0;font-weight:600}.panel-heading button{font-size:25px;width:28px;height:28px;color:var(--muted)}.participants{padding:15px 16px;border-bottom:1px solid var(--line)}.panel-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.panel-label h2{font-size:12px;font-weight:600;margin:0}.panel-label>span{font-size:10px;color:#939eaa}.participant{display:flex;align-items:center;gap:10px;margin-top:12px}.participant img,.chat-message img{object-fit:contain;flex-shrink:0}.participant>div{display:flex;flex-direction:column;gap:3px;font-size:12px}.participant>div>span{color:var(--muted);font-size:10px}.permission-tag{margin-left:auto;font-size:10px;padding:5px 7px;background:#d6ff5710;color:var(--accent);border:1px solid #d6ff572e;border-radius:3px}.permission-tag.muted{color:var(--muted);background:#ffffff04;border-color:var(--line)}.room-chat{padding:16px;display:flex;flex-direction:column;flex:1;min-height:0}.chat-messages{flex:1;overflow-y:auto;min-height:50px;scrollbar-width:thin}.chat-demo-label{text-align:center;font-size:10px;color:#8e99a4;margin:5px 0 22px}.chat-message{display:flex;align-items:flex-start;gap:9px;margin:0 0 21px}.chat-message strong{font-size:11px;color:#ff9a8f}.chat-message:nth-of-type(2) strong{color:#aab7d5}.chat-message.own strong{color:var(--accent)}.chat-message p{font-size:12px;line-height:1.6;margin:5px 0 0;color:#e1e5e8}.chat-composer{border:1px solid #39454f;border-radius:4px;background:#14191d;margin-top:14px;padding:10px}.chat-composer textarea{width:100%;resize:none;background:none;color:var(--text);border:0;font:12px 'Segoe UI',sans-serif;line-height:1.5;min-height:44px}.chat-composer textarea:focus{outline:0}.chat-composer:focus-within{border-color:var(--accent)}.chat-composer>div{display:flex;justify-content:space-between;align-items:center}.chat-composer span{font-size:9px;color:#8f9aa6}.chat-composer button{background:var(--accent);color:#14181b;font-size:20px;width:27px;height:27px;border-radius:3px}.room-permission-note{font-size:10px;color:#9ca7b4;line-height:1.6;margin:0;padding:10px 16px 13px;border-top:1px solid var(--line)}.room-studio .artboard{position:relative;background:#243754}.room-studio .artboard img{object-fit:cover}.room-cursor{position:absolute;transform:rotate(-35deg);font-size:27px;color:#ff7e70;top:36%;left:68%;filter:drop-shadow(1px 1px 0 #000)}.room-cursor span{position:absolute;left:20px;top:25px;transform:rotate(35deg);background:#d76b5e;color:white;font-size:11px;padding:4px 8px;border-radius:2px}.cursor-you{top:57%;left:43%;color:var(--accent)}.cursor-you span{background:#6e831e}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1200px){.mode-tabs .room-mode-link{min-width:85px}.room-studio .projects,.room-studio .project-status{display:none}}
@media(max-width:850px){.mode-tabs .room-mode-link{min-width:65px;font-size:12px}.room-strip{padding:0 10px;gap:8px;height:44px}.room-privacy small{display:none}.invite-area{gap:7px}.invite-area>span{font-size:0}.invite-area strong{font-size:11px;margin:0}.invite-area button{font-size:10px;padding:0 7px}.room-panel{position:fixed;right:0;top:190px;bottom:48px;width:min(304px,calc(100% - 54px));z-index:10;box-shadow:-10px 0 30px #0006}.room-studio .document-name{max-width:190px;overflow:hidden;text-overflow:ellipsis}.room-studio .artboard img{object-position:35% center}}
@media(max-width:480px){.mode-tabs .room-mode-link{flex:1;height:30px}.room-panel{top:229px}.room-privacy{font-size:10px}.room-studio .studio-brand>strong{font-size:16px}.room-studio .document-name{font-size:12px;max-width:180px}}
.room-cursor{transform:none;filter:drop-shadow(1px 1px 0 #000)}.room-cursor>svg{width:26px;height:30px;fill:currentColor;stroke:#15191c;stroke-width:1}.room-cursor span{transform:none;top:23px;left:19px}
