.reference-mask-entry{margin-top:12px}.reference-mask-entry .secondary-button{width:100%;min-height:44px}.reference-mask-entry p{color:var(--muted);margin:7px 0 0;font-size:12px;line-height:1.6}.studio-mask-edit{width:min(920px,100%);margin:0 auto 20px;scroll-margin-top:78px;container-type:inline-size}.task-result-panel:has(.studio-mask-edit){align-content:start;place-items:stretch stretch}.mask-editor{border:1px solid var(--line);background:var(--surface);border-radius:14px;min-width:0;padding:22px}.mask-editor-heading{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.mask-editor-heading h2{letter-spacing:-.02em;margin:0;font-size:20px;line-height:1.4}.mask-editor-heading p{max-width:65ch;color:var(--muted);margin:6px 0 0;font-size:13px;line-height:1.7}.mask-editor-heading .icon-button{width:44px;height:44px}.mask-editor-loading{min-height:260px;color:var(--muted);justify-content:center;align-items:center;gap:10px;font-size:14px;display:flex}.mask-editor-modes{gap:8px;margin-top:18px;display:flex}.mask-editor-modes button{text-align:left;min-width:0;min-height:64px;color:var(--ink);background:var(--surface);border:1px solid var(--line);cursor:pointer;border-radius:8px;flex:1;gap:4px;padding:10px 12px;display:grid}.mask-editor-modes button:hover:enabled{background:#f2f5f1}.mask-editor-modes button[aria-pressed=true]{color:#1d5e48;background:#edf5ef;border-color:#83aa95}.mask-editor-modes strong{font-size:14px;font-weight:650}.mask-editor-modes span{font-size:12px;line-height:1.5}.mask-editor-form .mask-editor-fill{cursor:pointer;align-items:start;gap:8px;display:flex}.mask-editor-fill input{width:18px;height:18px;accent-color:var(--green);flex-shrink:0;margin:0}.mask-editor-fill small{color:var(--muted);margin-top:4px;font-size:12px;font-weight:400;line-height:1.6;display:block}.mask-editor-tools{flex-wrap:wrap;align-items:center;gap:6px;margin:18px 0 12px;display:flex}.mask-editor-tools button{border:1px solid var(--line);min-height:44px;color:var(--ink);background:var(--surface);cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:0 12px;font-size:13px;transition:background-color .15s,border-color .15s,transform .12s cubic-bezier(.23,1,.32,1);display:inline-flex}.mask-editor-tools button:hover:enabled{background:#f2f5f1;border-color:#a6b6ac}.mask-editor-tools button[aria-pressed=true]{color:#1d5e48;background:#edf5ef;border-color:#83aa95}.mask-editor-tools button:active:enabled{transform:scale(.97)}.mask-editor-tools>label{min-height:44px;color:var(--muted);align-items:center;gap:8px;padding:0 8px;font-size:12px;display:flex}.mask-editor-tools input[type=range]{width:94px;min-height:44px;accent-color:var(--green);cursor:pointer}.mask-editor-tools>label>span{font-variant-numeric:tabular-nums;width:2ch}.mask-editor-workspace{background:#eeefeb;border-radius:8px;place-items:center;min-height:180px;padding:16px;display:grid}.mask-editor-canvas{background:#fff;width:100%;position:relative;overflow:hidden}.mask-editor-canvas img,.mask-editor-canvas canvas{width:100%;height:100%;display:block}.mask-editor-canvas img{-webkit-user-select:none;user-select:none}.mask-editor-canvas canvas{opacity:.52;cursor:crosshair;touch-action:none;position:absolute;inset:0}.mask-editor-canvas canvas:focus-visible{outline-offset:-3px;outline:3px solid #1b634b}.mask-keyboard-cursor{pointer-events:none;border:2px solid #fff;border-radius:50%;outline:1px solid #15191a;position:absolute;transform:translate(-50%,-50%)}.mask-editor-hint{color:var(--muted);margin:10px 0 20px;font-size:12px;line-height:1.7}.mask-editor-hint span{display:block}.mask-editor-form{gap:14px;display:grid}.mask-editor-form label{color:var(--ink);gap:8px;font-size:13px;font-weight:650;display:grid}.mask-editor-form textarea{width:100%;min-height:90px;color:var(--ink);resize:vertical;caret-color:var(--green);background:#fff;border:1px solid #bdc6bf;border-radius:8px;padding:11px 12px;font-size:14px;font-weight:400;line-height:1.7}.mask-editor-form textarea::placeholder{color:#656e68;opacity:1}.mask-editor-form textarea::selection{color:#163d2b;background:#d9eadf}.mask-editor-settings{flex-wrap:wrap;align-items:end;gap:14px;display:flex}.mask-editor-settings label{min-width:110px}.mask-editor-settings select{min-height:44px;color:var(--ink);background:#fff;border:1px solid #bdc6bf;border-radius:8px;padding:0 28px 0 12px;font-size:13px}.mask-editor-settings p{color:var(--muted);margin:0 0 12px;font-size:12px}.mask-editor-form footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;padding-top:16px;display:flex}.mask-editor-form footer>span{max-width:65ch;color:var(--muted);overflow-wrap:anywhere;font-size:12px;line-height:1.6}.mask-editor-form footer>span[role=alert]{color:#a53326}.mask-editor-form footer .primary-button{flex-shrink:0;min-height:44px}.mask-editor :is(button,input,textarea,select):focus-visible{outline:2px solid var(--green);outline-offset:3px}.mask-editor :is(button,input,textarea,select):disabled{opacity:.5;cursor:not-allowed}@container (min-width:760px){.mask-editor{grid-template-columns:minmax(0,1fr) 280px;align-items:start;column-gap:22px;display:grid}.mask-editor-heading,.mask-editor-modes,.mask-editor-tools,.mask-editor-loading{grid-column:1/-1}.mask-editor-workspace{grid-area:4/1}.mask-editor-hint{grid-area:5/1;margin-bottom:0}.mask-editor-form{grid-area:4/2/span 2}.mask-editor-form textarea{min-height:160px}.mask-editor-settings label{flex:1;min-width:0}.mask-editor-settings p{width:100%;margin:0}.mask-editor-form footer{flex-direction:column;align-items:stretch}}@media (max-width:600px){.studio-mask-edit{margin-bottom:88px}.mask-editor{padding:16px 12px}.mask-editor-heading h2{font-size:18px}.mask-editor-tools{gap:5px}.mask-editor-tools>label{order:1;width:100%;padding:0}.mask-editor-tools input[type=range]{flex:1}.mask-editor-tools button{flex:1;padding:0 8px}.mask-editor-workspace{padding:8px}.mask-editor-settings{gap:12px}.mask-editor-settings label{flex:1;min-width:0}.mask-editor-settings p{width:100%;margin:0}.mask-editor-form footer{flex-direction:column;align-items:stretch}}@media (prefers-reduced-motion:reduce){.mask-editor-tools button{transition:none}}
