:root{--bg: #f5f6f8;--panel: #ffffff;--border: #e1e4e8;--text: #1f2328;--muted: #6a737d;--accent: #2f5bd3;--erro: #c62828;--aviso: #b26a00;--info: #3b6ea8;font:13px/1.45 system-ui,-apple-system,Segoe UI,sans-serif;color:var(--text)}*{box-sizing:border-box}body{margin:0;background:var(--bg)}code{font:12px ui-monospace,Consolas,monospace}button,.button{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:1px solid var(--accent);border-radius:6px;background:var(--accent);color:#fff;font:inherit;cursor:pointer;white-space:nowrap}button.ghost,.button.ghost{background:transparent;color:var(--accent)}button.small,.button.small{height:24px;padding:0 8px;font-size:12px}.app{min-height:100vh;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:10px;padding:10px 16px;background:var(--panel);border-bottom:1px solid var(--border)}.topbar .spacer{flex:1}.muted{color:var(--muted)}.empty{flex:1;display:grid;place-content:center;text-align:center;color:var(--muted)}.error{color:var(--erro)}.workspace{flex:1;display:grid;grid-template-columns:340px 1fr;min-height:0}.sidebar{background:var(--panel);border-right:1px solid var(--border);overflow-y:auto;max-height:calc(100vh - 51px)}.stage{padding:16px;overflow-y:auto;max-height:calc(100vh - 51px)}.editor section{padding:14px 16px;border-bottom:1px solid var(--border)}.editor h3,.diagnostics h3{margin:0 0 10px;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.meta{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;margin:0 0 10px}.meta dt{color:var(--muted)}.meta dd{margin:0}.field{display:flex;flex-direction:column;gap:4px;margin-bottom:10px}.field>span{font-size:12px;color:var(--muted)}.field input,.field textarea,.field select{width:100%;padding:6px 8px;border:1px solid var(--border);border-radius:6px;font:inherit}.color-row{display:flex;gap:8px}.color-row input{font-family:ui-monospace,Consolas,monospace}.swatch{flex:none;width:30px;height:30px;border:1px solid var(--border);border-radius:6px;cursor:pointer;background-image:linear-gradient(45deg,#ddd 25%,transparent 25%,transparent 75%,#ddd 75%)}.swatch input{opacity:0;width:100%;height:100%;cursor:pointer}.image-row{display:flex;gap:10px;align-items:center}.thumb{flex:none;width:96px;height:56px;display:grid;place-items:center;border:1px solid var(--border);border-radius:6px;background:repeating-conic-gradient(#eee 0,#eee 25%,#fff 0,#fff 50%) 0 0 / 12px 12px;overflow:hidden}.thumb img{max-width:100%;max-height:100%}.thumb em{font-size:11px;color:var(--muted)}.image-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-width:0}.image-actions code{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tabs{display:flex;align-items:center;gap:4px;margin-bottom:10px}.tab{background:transparent;color:var(--text);border-color:var(--border)}.tab.active{background:var(--text);border-color:var(--text);color:#fff}.badge{margin-left:auto;padding:2px 8px;border-radius:999px;background:#fff4d6;color:#7a5200;font-size:11px;cursor:help}.preview-box{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:8px;background:#fff;box-shadow:0 2px 12px #0000000f}.preview-box iframe{position:absolute;top:0;left:0;border:0;transform-origin:0 0}.diagnostics{margin-top:16px;padding:14px 16px;background:var(--panel);border:1px solid var(--border);border-radius:8px}.diagnostics ul{list-style:none;margin:0 0 10px;padding:0}.diag{display:flex;gap:10px;padding:6px 0;border-bottom:1px solid var(--border)}.diag:last-child{border-bottom:0}.diag span{flex:none;width:52px;font-size:11px;font-weight:600;text-transform:uppercase}.diag.erro span{color:var(--erro)}.diag.aviso span{color:var(--aviso)}.diag.info span{color:var(--info)}.files{max-height:260px;overflow:auto;padding:10px;background:var(--bg);border-radius:6px;font-size:11px}.badge.real{background:#dff3e4;color:#1d6b34}.range-row{display:flex;align-items:center;gap:10px;margin-top:6px;font-size:12px;color:var(--muted)}.range-row span{flex:none;width:92px}.range-row input{flex:1}button:disabled{opacity:.5;cursor:not-allowed}.browser-tab{display:inline-flex;align-items:center;gap:8px;max-width:320px;padding:6px 14px;background:var(--panel);border:1px solid var(--border);border-bottom:0;border-radius:8px 8px 0 0;font-size:12px}.browser-tab span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.browser-tab img,.favicon-default{flex:none;width:16px;height:16px}.favicon-default{border-radius:50%;background:conic-gradient(#0b8bd1 0,#0b8bd1 25%,#8dc63f 0,#8dc63f 50%,#f8982b 0,#f8982b 75%,#2ab7b0 0)}.position-grid{display:grid;grid-template-columns:repeat(3,44px);grid-template-rows:repeat(3,30px);gap:4px;padding:6px;width:max-content;border:1px solid var(--border);border-radius:8px;background:var(--bg)}.position-grid .cell{height:30px;padding:0;justify-content:center;background:var(--panel);border-color:var(--border)}.position-grid .cell span{width:14px;height:10px;border-radius:2px;background:var(--border)}.position-grid .cell.active{border-color:var(--accent)}.position-grid .cell.active span{background:var(--accent)}.diagnostics h3+p.muted{margin:-4px 0 8px}.diagnostics ul+h3{margin-top:14px}.range-row.panel-opacity{margin:-4px 0 12px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;display:grid;place-items:center;padding:24px;background:#0f141e73}.modal{width:min(760px,100%);max-height:calc(100vh - 48px);display:flex;flex-direction:column;background:var(--panel);border-radius:12px;box-shadow:0 12px 40px #00000040;outline:none}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid var(--border)}.modal-head h2{margin:0;font-size:16px}.modal-body{overflow-y:auto;padding:4px 20px 20px}.modal-body section{padding:14px 0;border-bottom:1px solid var(--border)}.modal-body section:last-child{border-bottom:0}.modal-body h3{margin:0 0 8px;font-size:13px}.modal-body p{margin:0 0 8px}.modal-body ol{margin:8px 0;padding-left:20px}.modal-body li{margin-bottom:8px}.modal-body pre{margin:6px 0 0;padding:10px 12px;overflow-x:auto;background:#1f2328;color:#e6edf3;border-radius:6px;font:12px/1.5 ui-monospace,Consolas,monospace}.modal-body .tested{padding:8px 12px;background:#eef4ff;border-radius:6px}.modal-body .disclaimer{margin-top:4px}.modal-body .disclaimer p{padding:10px 12px;background:#fff4d6;color:#5c3d00;border-radius:6px}.beer{display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap}.beer .qr{flex:none;display:grid;place-items:center;width:232px;height:232px;border:1px solid var(--border);border-radius:8px;background:#fff}.notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;background:#fdecea;color:#8a1c14;border-bottom:1px solid #f5c2bd}.help-button{background:#ffd43b;border-color:#e6b800;color:#3d2e00;font-weight:600;box-shadow:0 0 #ffd43bb3;animation:help-pulse 2s ease-out 3}.help-button:hover{background:#ffc800}.help-button span{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#3d2e00;color:#ffd43b;font-size:12px;font-weight:700}@keyframes help-pulse{70%{box-shadow:0 0 0 8px #ffd43b00}to{box-shadow:0 0 #ffd43b00}}@media (prefers-reduced-motion: reduce){.help-button{animation:none}}
