:root{font-family:Inter,"Segoe UI","Noto Sans JP",Meiryo,sans-serif;color:#323232;background:#f0f0f0;font-synthesis:none;--accent:#262626;--line:#e7e7e7;--muted:#858585;--panel:#fff}
*{box-sizing:border-box}body{margin:0;font-size:12px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button{transition:background .12s,color .12s,border-color .12s}button:hover:not(:disabled){filter:brightness(.97)}button svg{flex-shrink:0}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}a{color:inherit;text-decoration:none}[hidden]{display:none!important}#app{height:100dvh;min-height:550px;display:flex;flex-direction:column;overflow:hidden}.header{height:70px;flex-shrink:0;background:var(--panel);display:flex;align-items:center;padding:0 24px;gap:24px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px}.brand-symbol{display:block;width:34px;height:34px;flex-shrink:0}.brand strong{font-size:23px;letter-spacing:-1.1px}.brand-caption{font-size:7px;line-height:1.6;letter-spacing:1.3px;color:#8e8e8e;margin-left:2px}.header-divider{height:24px;width:1px;background:var(--line);margin-left:4px}.workspace-name{font-size:12px;color:#747474;display:flex;gap:13px;align-items:center}.local-tag{font-size:8px;letter-spacing:1.2px;border:1px solid #e2e2e2;color:#808080;padding:3px 5px;border-radius:3px}.header-actions{margin-left:auto;display:flex;gap:9px;align-items:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #e0e0e0;background:#fff;border-radius:5px;min-height:34px;padding:7px 12px;font-size:11px;font-weight:500;white-space:nowrap}.button svg{width:15px;height:15px}.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.button.quiet{border-color:transparent;background:transparent;color:#737373}.button.compact{padding:5px 9px;font-size:10px}.button.full{width:100%}.icon-button{border:0;background:transparent;width:31px;height:31px;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;color:#7d7d7d;padding:5px}.icon-button:hover{background:#f0f0f0}.icon-button.active{background:#efefef;color:var(--accent)}.workspace{display:flex;flex:1;min-height:0}.tool-rail{background:#fcfcfc;width:68px;flex-shrink:0;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;padding:17px 0 12px}.rail-caption{font-size:8px;letter-spacing:1.7px;color:#a0a0a0;margin-bottom:14px}#tools{display:flex;flex-direction:column;gap:5px;align-items:center;width:100%}.tool-button{width:40px;height:38px;display:flex;align-items:center;justify-content:center;border:1px solid transparent;background:transparent;border-radius:6px;position:relative;color:#7b7b7b}.tool-button svg{width:20px;height:20px}.tool-button:hover{background:#f0f0f0}.tool-button.active{color:var(--accent);border-color:#e0e0e0;background:#f0f0f0}.tool-button.active:before{position:absolute;left:-15px;width:3px;height:21px;content:"";background:var(--accent);border-radius:0 2px 2px 0}.tool-divider{height:1px;width:24px;background:var(--line);margin:6px 0}.rail-bottom{margin-top:auto;padding-top:12px}.editor{display:flex;flex:1;min-width:0;flex-direction:column}.tabs-bar{height:43px;background:#f8f8f8;display:flex;border-bottom:1px solid var(--line);padding-left:15px;flex-shrink:0;align-items:center;gap:3px}#tabs{display:flex;overflow:auto;height:100%;scrollbar-width:thin;max-width:calc(100% - 40px)}.document-tab{flex-shrink:0;display:flex;align-items:center;gap:10px;border:0;border-right:1px solid transparent;background:transparent;color:#8d8d8d;padding:0 13px;font-size:11px;max-width:220px;height:100%;position:relative}.document-tab.selected{background:white;color:#3f3f3f;border-left:1px solid var(--line);border-right:1px solid var(--line)}.document-tab.selected:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--accent)}.document-tab>svg{width:14px;height:14px}.tab-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tab-close{display:grid;place-items:center;width:18px;height:18px;border:0;background:transparent;color:#9e9e9e;border-radius:3px}.tab-close:hover{background:#e7e7e7}.tab-close svg{width:12px;height:12px}.tab-dot{width:4px;height:4px;flex-shrink:0;background:var(--accent);border-radius:50%}.context-bar{height:47px;display:flex;justify-content:space-between;align-items:center;background:white;border-bottom:1px solid var(--line);padding:0 22px;flex-shrink:0;gap:10px}.context-left{display:flex;gap:11px;align-items:center;min-width:0}.context-left>span:first-child{color:var(--accent)}.context-left strong{font-size:11px;font-weight:600;white-space:nowrap}.context-divider{height:16px;background:var(--line);width:1px;display:inline-block;margin:0 3px;flex-shrink:0}#tool-hint{font-size:10px;color:#949494;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-controls{display:flex;align-items:center;gap:2px}.stage{flex:1;position:relative;min-height:0;overflow:auto;background-color:#ececec;background-image:radial-gradient(#d5d5d5 .65px,transparent .65px);background-size:14px 14px;display:flex;align-items:flex-start;justify-content:flex-start;padding:52px 42px 72px;scrollbar-width:thin}.canvas-wrap{flex-shrink:0;position:relative;margin:auto;box-shadow:0 4px 8px #2f2f2f08,0 20px 45px #2f2f2f14;line-height:0;background:#b1b1b1;touch-action:none}#canvas{touch-action:none;display:block;max-width:none;cursor:crosshair;outline:none}.stage-caption{position:fixed;margin-top:-33px;display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:1.5px;color:#9b9b9b;pointer-events:none}.live-dot{width:5px;height:5px;background:#aaaaaa;border-radius:50%}.canvas-controls{position:fixed;bottom:58px;left:calc(50% - 145px);height:37px;display:flex;align-items:center;gap:3px;padding:3px 7px;background:#fff;border:1px solid #e1e1e1;border-radius:6px;box-shadow:0 3px 10px #4343430b;z-index:2}.canvas-controls .icon-button{width:27px;height:27px}.canvas-controls svg{width:15px;height:15px}#zoom-fit{border:0;display:flex;background:transparent;font-size:10px;color:#717171;width:70px;justify-content:center}.status-bar{height:30px;flex-shrink:0;background:#fafafa;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 16px;font-size:9px;color:#949494;gap:12px}.status-bar>div{display:flex;align-items:center;gap:7px;white-space:nowrap}.status-dot{width:5px;height:5px;border-radius:50%;background:#989898}.status-separator{color:#d2d2d2;margin:0 3px}.inspector{width:278px;flex-shrink:0;border-left:1px solid var(--line);background:white;overflow-y:auto;scrollbar-width:thin;display:flex;flex-direction:column}.inspector-title{height:43px;display:flex;justify-content:space-between;align-items:center;padding:0 20px;font-size:11px;font-weight:600;border-bottom:1px solid var(--line);flex-shrink:0}.inspector-title>span{font-size:8px;letter-spacing:1.1px;color:#999999;font-weight:400}.property-section{flex-shrink:0;padding:20px;border-bottom:1px solid var(--line)}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:5px}.section-heading h2{font-size:11px;font-weight:600;margin:0}.section-subtitle{font-size:9px;color:#9b9b9b;font-weight:400}.field-label{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#7d7d7d;margin-bottom:9px;line-height:1.5}.field-label:not(:first-child){margin-top:19px}.field-label output{color:#606060;font-variant-numeric:tabular-nums;font-size:10px}.field-label small{color:#a2a2a2;font-size:9px}.color-palette{display:flex;flex-wrap:wrap;gap:5px;align-items:center}.color-swatch{width:23px;height:23px;border-radius:50%;border:2px solid white;box-shadow:0 0 0 1px #e6e6e6;background:var(--swatch);padding:0}.color-swatch.selected{box-shadow:0 0 0 1.5px var(--swatch);border-width:3px}.custom-color{width:23px;height:23px;border:1px solid #e4e4e4;border-radius:50%;overflow:hidden;position:relative;background:conic-gradient(#ff0000,#ffcc00,#00c853,#0066ff,#aa00ff,#ff0000);cursor:pointer}.custom-color input{opacity:0;position:absolute;inset:-10px;width:45px;height:45px;cursor:pointer}.color-value{font-size:9px;color:#949494;border:1px solid var(--line);padding:7px 9px;border-radius:4px;margin-top:11px;display:flex;gap:10px;align-items:center}.color-value:before{width:10px;height:10px;content:"";background:var(--current);border-radius:2px}.color-value span{margin-left:auto;font-size:8px;color:#b8b8b8}input[type=range]{width:100%;height:3px;margin:6px 0;accent-color:var(--accent);cursor:pointer}input[type=text],input[type=number],textarea,select{width:100%;border:1px solid #e4e4e4;border-radius:4px;background:#fafafa;color:#606060;padding:8px 9px;font-size:11px;min-width:0}select{cursor:pointer;padding-right:4px;min-height:33px}textarea{resize:vertical;min-height:64px;line-height:1.6}input[type=color].inline-color{width:31px;height:26px;cursor:pointer;padding:2px;border:1px solid var(--line);border-radius:4px;background:white}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:10px;color:#7d7d7d;margin-top:20px;margin-bottom:3px}.toggle-row label{cursor:pointer}.toggle-row input{appearance:none;width:28px;height:16px;background:#e1e1e1;border-radius:10px;position:relative;cursor:pointer;flex-shrink:0;margin:0}.toggle-row input:before{content:"";position:absolute;top:3px;left:3px;background:#fff;width:10px;height:10px;border-radius:50%;transition:transform .15s}.toggle-row input:checked{background:var(--accent)}.toggle-row input:checked:before{transform:translateX(12px)}.toggle-hint{font-size:9px;color:#a2a2a2;line-height:1.7;margin:7px 0 0}.inline-inputs{display:flex;align-items:center;gap:7px}.inline-inputs>*{flex:1;min-width:0}.detection-status{display:inline-flex;align-items:center;gap:5px;font-size:8px;color:#787878;background:#f3f3f3;padding:4px 6px;border-radius:3px}.detection-status:before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}.detection-status.uncertain{color:#828282;background:#f4f4f4}.grid-section .button.full{margin-top:16px;font-size:10px;color:#7d7d7d}.subtle-note{font-size:9px;color:#9f9f9f;line-height:1.8;margin:10px 0 0}.annotation-section{border-bottom:0;flex:1 0 auto;min-height:180px}.count-badge{font-size:9px;background:#f2f2f2;border-radius:4px;color:#979797;min-width:20px;padding:3px 5px;text-align:center}#layers{max-height:240px;overflow:auto;margin:0 -8px 15px;scrollbar-width:thin}.layer{display:flex;align-items:center;gap:8px;border:1px solid transparent;border-radius:4px;padding:7px 7px;cursor:pointer;margin-bottom:3px}.layer:hover{background:#f7f7f7}.layer.selected{background:#f3f3f3;border-color:#e6e6e6}.layer-icon{width:26px;height:26px;background:#f5f5f5;border-radius:4px;display:grid;place-items:center;color:var(--layer-color,#8c8c8c);flex-shrink:0}.layer-icon svg{width:15px;height:15px}.layer-title{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.layer-title small{display:block;font-size:8px;color:#ababab;margin-top:3px}.layer .icon-button{width:23px;height:23px;opacity:0}.layer:hover .icon-button,.layer.selected .icon-button{opacity:1}.layer .icon-button svg{width:12px;height:12px}.empty-layers{text-align:center;color:#adadad;font-size:10px;padding:22px 0;line-height:1.8}.annotation-section>.button{font-size:9px}.inspector-footer{flex-shrink:0;padding:14px 20px;border-top:1px solid var(--line);font-size:9px;color:#a3a3a3;display:flex;gap:8px;align-items:center;background:#fdfdfd}.keyboard-key,kbd{border:1px solid #e2e2e2;border-bottom-width:2px;border-radius:3px;padding:2px 5px;background:#fff;font-family:inherit;font-size:9px}.range-labels{display:flex;justify-content:space-between;font-size:8px;color:#acacac;margin-top:5px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:17px}.two-fields .field-label{margin-top:0}.segmented{display:flex;background:#f4f4f4;padding:3px;border-radius:5px;border:1px solid var(--line);gap:3px}.segmented button{flex:1;border:0;background:transparent;border-radius:3px;padding:7px 4px;font-size:10px;color:#8f8f8f}.segmented button.selected{background:white;color:var(--accent);box-shadow:0 1px 4px #0000000c}.emoji-picker,.label-picker{display:flex;gap:5px;flex-wrap:wrap}.emoji-picker button,.label-picker button{border:1px solid var(--line);background:white;border-radius:4px;width:33px;height:33px;font-size:19px}.emoji-picker button.selected,.label-picker button.selected{border-color:var(--accent);background:#f3f3f3}.hint-box{padding:10px 12px;border:1px solid #eaeaea;border-radius:4px;background:#f8f8f8;font-size:9px;line-height:1.9;color:#909090;margin-top:18px}.hint-box b{font-weight:500;color:#767676}.inspector .danger{color:#757575;border-color:#e2e2e2;margin-top:18px}.empty-icon svg{width:40px;height:40px;color:#9a9a9a}#empty-state{margin:auto;text-align:center}#empty-state h2{font-size:20px;font-weight:500;margin:24px 0 12px}#empty-state p{font-size:11px;color:#969696;margin-bottom:25px}#empty-state .button{margin:3px}.drop-overlay{position:fixed;inset:100px 300px 60px 90px;background:#f6f6f6ef;border:2px dashed #aeaeae;border-radius:12px;z-index:10;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px;color:var(--accent);pointer-events:none}.drop-overlay svg{width:44px;height:44px}.drop-overlay strong{font-size:20px;font-weight:500}.drop-overlay>span:last-child{font-size:11px;color:#9f9f9f}dialog{border:1px solid #e3e3e3;border-radius:10px;background:#fff;padding:28px;width:min(560px,calc(100vw - 32px));color:#444444;box-shadow:0 25px 100px #28282833}dialog::backdrop{background:#2a2a2a66;backdrop-filter:blur(3px)}.dialog-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.eyebrow{font-size:8px;letter-spacing:1.6px;color:var(--accent)}.dialog-title h2{font-size:20px;font-weight:600;margin:8px 0 0}.dialog-description{font-size:11px;color:#949494;margin-bottom:24px}.export-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:20px}.export-options label{cursor:pointer;border:1px solid var(--line);border-radius:6px;padding:16px 10px;display:flex;flex-direction:column;gap:10px;position:relative}.export-options label:has(input:checked){border-color:var(--accent);background:#f7f7f7}.export-options input{position:absolute;right:9px;top:9px;accent-color:var(--accent)}.export-options strong{font-size:11px;font-weight:500}.export-options small{font-size:8px;color:#999999}.export-options svg{color:var(--accent);margin-bottom:5px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:26px}.help-content{font-size:11px;line-height:1.9;max-height:65vh;overflow:auto;padding-right:8px;color:#898989}.help-content h3{font-size:12px;color:#4b4b4b;font-weight:600;margin:24px 0 8px}.shortcut-list{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:10px;align-items:center}.shortcut-list kbd{font-size:9px}.help-content b{font-weight:500;color:#676767}#toast{position:fixed;bottom:50px;left:50%;transform:translate(-50%,10px);padding:12px 22px;background:#393939;color:#fff;font-size:11px;border-radius:5px;box-shadow:0 6px 25px #27272720;opacity:0;transition:opacity .15s,transform .15s;pointer-events:none;z-index:100;max-width:80vw;text-align:center;line-height:1.7}#toast.visible{opacity:1;transform:translate(-50%,0)}#export-progress{color:var(--accent);font-size:11px}button.recording{opacity:.7;cursor:wait}.shortcut-tag{font-size:8px;color:#adadad;margin-left:auto}.selected-caption{font-size:9px;color:var(--accent);padding-bottom:13px;border-bottom:1px dashed var(--line);margin-bottom:17px}.tool-properties-placeholder{font-size:10px;color:#9f9f9f;line-height:1.8}.color-row{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#7d7d7d;margin-top:14px}
/* Fixed-size controls must not inherit native button padding or baseline alignment. */
.icon-button,.tool-button,.tab-close,.emoji-picker button,.label-picker button{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;line-height:1}
button svg,.layer-icon svg{display:block}
.document-tab>svg{flex-shrink:0}
.label-picker button{font-size:16px;font-weight:500}
.emoji-picker button{font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}
#zoom-fit{align-items:center;height:27px;flex-shrink:0;padding:0 4px;line-height:1}
@media(min-height:900px){.tool-button{height:42px}#tools{gap:7px}.property-section{padding-top:24px;padding-bottom:24px}}
@media(max-width:1100px){.header{padding:0 17px;gap:15px}.brand-caption,.workspace-name,.header-divider{display:none}.inspector{width:245px}.property-section{padding:17px}.context-bar{padding:0 14px}#tool-hint{max-width:230px}.stage{padding-left:28px;padding-right:28px}.canvas-controls{left:calc(50% - 135px)}.color-palette{gap:3px}.color-swatch,.custom-color{width:21px;height:21px}.status-bar>div:last-child>span:last-child{display:none}}
@media(max-width:760px){.header{height:58px;padding:0 12px}.header-actions{gap:4px}.header-actions #save-project{font-size:0;gap:0;padding:7px 9px}.header-actions #save-project svg{width:16px;height:16px}.header-actions #help-btn{display:none}.header-actions .button{font-size:10px;padding:6px 9px}.brand strong{font-size:20px}.brand-symbol{width:29px;height:29px}.brand{gap:7px}.tool-rail{width:49px;padding-top:12px}.rail-caption{font-size:7px}.tool-button{width:34px;height:35px}.tool-button.active:before{left:-8px}#tools{gap:3px}.inspector{width:205px}.property-section{padding:14px 12px}.inspector-title{padding:0 12px}.context-bar{height:40px;padding:0 10px}.context-left{gap:6px}#tool-hint{display:none}.stage{padding:35px 20px 60px}.tabs-bar{padding-left:4px;height:38px}.document-tab{padding:0 8px;max-width:180px}.stage-caption{margin-top:-24px;font-size:7px}.canvas-controls{left:calc(50% - 145px);bottom:49px}.status-bar{padding:0 9px}.status-bar>div:last-child{display:none}.color-palette{gap:5px}.color-swatch,.custom-color{width:20px;height:20px}.drop-overlay{inset:90px 220px 50px 60px}.drop-overlay strong{font-size:14px}.color-value{font-size:8px}.inspector-footer{flex-shrink:0;padding:12px;font-size:8px}.inline-inputs .button{font-size:9px;gap:4px;padding:5px}.inline-inputs select{font-size:10px}.detection-status{font-size:7px}.annotation-section{min-height:130px}}
@media(max-width:520px){#app{min-height:500px}.workspace{flex-wrap:wrap}.tool-rail{width:45px}.inspector{width:100%;height:220px;flex-shrink:0;flex-direction:row;overflow:auto;border-left:0;border-top:1px solid var(--line)}.inspector-title,.inspector-footer{display:none}.property-section{min-width:235px;max-width:280px;overflow:auto;border-right:1px solid var(--line);border-bottom:0}.grid-section{min-width:230px}.annotation-section{min-width:220px}.editor{height:calc(100% - 220px);flex:1}.tool-rail{height:calc(100% - 220px);padding-top:8px;overflow:auto}.tool-button{height:28px}.tool-button svg{width:17px;height:17px}#tools{gap:1px}.tool-divider{margin:2px 0}.rail-caption{margin-bottom:6px}.rail-bottom{display:none}.canvas-controls{bottom:259px;left:calc(50% - 65px);height:30px}.stage{padding:25px 15px 44px}.stage-caption{display:none}.header-actions #open-files{font-size:0;gap:0}.header-actions #open-files svg{width:16px;height:16px}.status-bar{height:23px}.tabs-bar{height:33px}.context-bar{height:35px}.drop-overlay{inset:75px 15px 250px 55px}.export-options{gap:6px}.export-options label{padding:14px 8px}.export-options small{font-size:7px}.brand strong{font-size:18px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.font-load-button{margin-top:10px;font-size:10px}.font-name-row{display:flex;gap:6px}.font-name-row input{flex:1;width:0}.font-name-row .button{flex-shrink:0}.font-preview{font-size:23px;line-height:1.6;padding:12px;border:1px solid var(--line);border-radius:4px;background:#fafafa;margin-top:12px;overflow-wrap:anywhere;white-space:pre-wrap;max-height:140px;overflow:auto}#font-status{min-height:16px}#font-preview+ .subtle-note{margin-top:5px}

.color-history{margin-top:13px;padding:10px;border:1px solid var(--line);border-radius:4px;background:#fafafa}.color-history-label{display:block;font-size:9px;color:#737373;margin-bottom:9px}.color-history .color-palette{gap:8px}.color-history .color-swatch{width:20px;height:20px;flex-shrink:0}.color-history-empty{font-size:9px;line-height:1.7;color:#999}

.group-set-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.group-set-heading .field-label{margin:0}.group-set-heading .icon-button{width:26px;height:26px;border:1px solid var(--line);border-radius:4px}.group-set-heading svg{width:14px;height:14px}.group-sets{display:grid;gap:5px;max-height:280px;overflow-y:auto;scrollbar-width:thin;padding:2px}.group-set{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:4px;background:#fff;padding-right:8px}.group-set.selected{border-color:#888;background:#f4f4f4}.group-set-select{display:flex;align-items:center;gap:9px;flex:1;min-width:0;min-height:36px;padding:6px 8px;border:0;background:transparent;text-align:left;color:#666;font-size:10px}.group-set-badge{display:grid;place-items:center;min-width:23px;height:23px;padding:0 3px;border-radius:50%;background:var(--group-color);color:#fff;font-size:11px;font-weight:600}.group-set input.inline-color{flex-shrink:0;width:32px;height:25px}.group-set:focus-within{outline:2px solid #777;outline-offset:1px}
.group-set{gap:4px;padding-right:4px}.group-set-select>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-set-delete{width:25px;height:27px;border-radius:3px;color:#888}.group-set-delete:hover{background:#e8e8e8;color:#444}.group-set-delete svg{width:14px;height:14px}.group-common-heading{font-size:10px;font-weight:600;margin:20px 0 0;padding-top:16px;border-top:1px solid var(--line)}
.group-set-mode{width:29px;height:27px;border:1px solid #dedede;border-radius:3px;background:#fafafa;color:#666}.group-set-mode svg{width:22px;height:22px}.group-set-mode.individual{background:#e5e5e5;color:#333;border-color:#aaa}.group-set-mode:hover{background:#e8e8e8;border-color:#888}.group-mode-legend{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:10px;color:#888;font-size:9px}.group-mode-legend>span{display:flex;align-items:center;gap:4px}.group-mode-legend svg{width:20px;height:20px;flex-shrink:0}.group-mode-legend small{font-size:8px;color:#999}

/* Native text input uses image coordinates and scales with the canvas. */
textarea.canvas-text-editor{position:absolute;z-index:3;display:block;box-sizing:border-box;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;outline:1px dashed #777;outline-offset:4px;resize:none;overflow:hidden;white-space:pre;overflow-wrap:normal;word-break:normal;letter-spacing:normal;text-align:left;text-indent:0;transform-origin:top left;paint-order:stroke fill;touch-action:auto}
textarea.canvas-text-editor:focus{outline:1px dashed #555;box-shadow:none}

.export-options{grid-template-columns:repeat(4,1fr)}
.export-options label{padding:14px 8px}
.export-resolution{padding:16px;border:1px solid var(--line);border-radius:6px;margin-bottom:20px}
.export-resolution-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.export-resolution-heading .field-label{margin:0}
.export-resolution .two-fields{margin-top:14px}
.export-resolution .toggle-row{margin-top:14px}
@media(max-width:520px){.export-options{grid-template-columns:repeat(2,1fr)}}

.copyright{flex-shrink:0;white-space:nowrap}
.copyright:hover{text-decoration:underline}
.version-button{flex-shrink:0;padding:4px 6px;border:0;background:transparent;color:#808080;font-size:10px;white-space:nowrap}
.version-button:hover{color:var(--accent)}
.release-notes-content{max-height:60vh;overflow-y:auto;color:#737373;font-size:11px;line-height:1.9;overflow-wrap:anywhere}
.release-notes-content section+section{margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}
.release-notes-content h3{margin:0 0 12px;color:#4b4b4b;font-size:13px;font-weight:600}
.release-notes-content ul{margin:0;padding-left:20px}
.release-notes-content li+li{margin-top:8px}
.language-control{display:flex;align-items:center;gap:7px;flex-shrink:0}
.sgf-navigation{display:flex;align-items:center;gap:5px;margin-top:12px}
.sgf-navigation .button{flex-shrink:0;width:30px;min-height:31px;padding:4px;font-size:16px;line-height:1}
.sgf-navigation input{flex:1;min-width:0;text-align:center;font-variant-numeric:tabular-nums;padding:7px 3px}
.sgf-section .section-heading{margin-bottom:14px}
#sgf-text{font-family:Consolas,"Courier New",monospace;line-height:1.7;min-height:150px;overflow-wrap:anywhere}
#sgf-dialog .field-label{margin-top:22px}
.sgf-import-error{font-size:11px;line-height:1.8;color:#a33030;margin:12px 0 0;overflow-wrap:anywhere}
.language-label{font-size:10px;color:#888}
#language-select{width:108px;min-height:32px;padding:6px 7px;background:#fff;font-size:11px}
.section-heading h2{line-height:1.5;min-width:0}
.section-heading .section-subtitle,.detection-status{flex-shrink:0}
.field-label{gap:8px}
.tool-action{padding:0;gap:0;overflow:visible}
.tool-action button{min-width:0;min-height:44px;border-radius:0;padding:9px 3px;overflow-wrap:anywhere;color:#737373}
.tool-action button+button{border-left:1px solid var(--line)}
.tool-action button:first-child{border-radius:4px 0 0 4px}
.tool-action button:last-child{border-radius:0 4px 4px 0}
.tool-action button.selected{background:var(--accent);color:white;box-shadow:none}
.tool-action button:focus-visible{position:relative;z-index:1}
.field-label output{flex-shrink:0}
.button{white-space:normal}
.export-resolution-heading .button{flex-shrink:0;max-width:58%}
@media(max-width:1280px){.workspace-name,.header-divider{display:none}}
@media(max-width:760px){.language-label{display:none}#language-select{width:91px;font-size:10px}.header{gap:8px}.header-actions{min-width:0}}
@media(max-width:520px){#language-select{width:84px}.header-actions #export-btn{font-size:0;gap:0;padding:7px 9px}.header-actions #export-btn svg{width:16px;height:16px}.header{gap:5px}}
