.appearance-ui{z-index:3;color:var(--ui-text);font-family:var(--ui-font-body);font-weight:var(--ui-font-weight);font-size:14px;position:absolute;inset:16px 16px auto auto}.appearance-ui button,.appearance-ui select{font:inherit;color:inherit;cursor:pointer}.appearance-ui button:focus-visible,.appearance-ui select:focus-visible{outline:2px solid var(--ui-focus);outline-offset:4px}.appearance-ui button{transition:background-color .12s ease-out}.appearance-ui svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}.appearance-editor{background:var(--window-panel);border:1px solid var(--window-line);border-radius:var(--window-radius);width:min(680px,100vw - 32px);box-shadow:var(--window-shadow);scrollbar-color:var(--window-line) var(--window-panel);max-height:calc(100dvh - 90px);margin-top:10px;overflow:auto}.appearance-editor header{justify-content:space-between;align-items:start;gap:20px;padding:24px 24px 0;display:flex}.appearance-editor h1{font-family:var(--ui-font-display);font-size:27px;font-weight:var(--ui-font-weight);color:var(--ui-text);margin:0 0 8px}.appearance-editor header p{color:var(--ui-text-secondary);margin:0;line-height:1.5}.appearance-close{min-width:var(--ui-touch-target);background:0 0;border:0;border-radius:4px;place-items:center;height:44px;display:grid}.appearance-close:hover{background:var(--ui-surface-hover)}.appearance-content{grid-template-columns:1fr 1fr;gap:24px;padding:24px;display:grid}.appearance-preview{min-width:0}.appearance-stage{aspect-ratio:1;background:var(--ui-surface-sunken);border-radius:var(--ui-radius-control);position:relative;overflow:hidden}.appearance-stage canvas{image-rendering:auto;width:100%;height:100%;display:block;position:relative}.appearance-ground{background:var(--ui-border);border-radius:50%;width:28%;height:5%;position:absolute;bottom:1%;left:36%}.appearance-preview-message{color:var(--ui-text);text-align:center;line-height:1.5;position:absolute;inset:35% 16px auto}.appearance-directions{grid-template-columns:repeat(4,1fr);gap:4px;margin-top:12px;display:grid}.appearance-directions button,.appearance-choice button{border:1px solid var(--ui-border);border-radius:var(--ui-radius-control);background:0 0;padding:9px 5px;font-size:12px}.appearance-directions button:hover,.appearance-choice button:hover{background:var(--ui-surface-hover)}.appearance-directions button[aria-pressed=true],.appearance-choice button[aria-pressed=true]{background:var(--ui-action);border-color:var(--ui-action);color:var(--ui-on-action)}.appearance-motion{color:var(--ui-text-secondary);justify-content:space-between;align-items:center;gap:8px;margin-top:20px;display:flex}.appearance-motion select{border:1px solid var(--ui-border);border-radius:var(--ui-radius-control);background:var(--ui-surface);padding:8px}.appearance-pause{text-underline-offset:4px;background:0 0;border:0;margin:12px auto 0;text-decoration:underline;display:block}.appearance-options{flex-direction:column;gap:20px;display:flex}.appearance-options fieldset{border:0;min-width:0;margin:0;padding:0}.appearance-options legend{width:100%;color:var(--ui-text);margin-bottom:9px}.appearance-options legend span{float:right;color:var(--ui-text-secondary);font-size:12px}.appearance-choice div{gap:8px;display:flex}.appearance-choice button{flex:1 0 auto;font-size:14px}.appearance-palette div{flex-wrap:wrap;gap:10px;display:flex}.appearance-palette button{border:1px solid var(--ui-border);border-radius:50%;place-items:center;width:44px;height:44px;display:grid}.appearance-palette button[aria-pressed=true]{outline:2px solid var(--ui-focus);outline-offset:3px}.appearance-palette button svg{visibility:hidden;color:#fff;stroke-width:2.5px;filter:drop-shadow(0 1px 1px #000)}.appearance-palette button[aria-pressed=true] svg{visibility:visible}.appearance-editor footer{border-top:1px solid var(--ui-divider);justify-content:space-between;align-items:center;gap:20px;padding:18px 24px;display:flex}.appearance-editor footer p{color:var(--ui-text-secondary);max-width:30ch;margin:0;font-size:12px;line-height:1.5}.appearance-apply{border-radius:var(--ui-radius-control);background:var(--ui-action);white-space:nowrap;border:0;padding:12px 16px;color:var(--ui-on-action)!important}.appearance-apply:hover{background:var(--ui-action-hover)}@media (width<=600px){.appearance-ui{inset:10px 10px auto auto}.appearance-editor{width:calc(100vw - 20px);max-height:calc(100dvh - 80px)}.appearance-editor header{padding:18px 18px 0}.appearance-content{grid-template-columns:1fr;gap:24px;padding:18px}.appearance-preview{width:min(100%,260px);margin:0 auto}.appearance-editor footer{background:var(--ui-surface);padding:18px;position:sticky;bottom:0}.appearance-palette button{width:38px;height:38px}}@media (prefers-reduced-motion:reduce){.appearance-ui button{transition:none}}.appearance-custom-color{border:1px solid var(--ui-border);cursor:pointer;border-radius:50%;place-items:center;width:44px;height:44px;display:grid;position:relative;overflow:hidden}.appearance-custom-color input{cursor:pointer;border:0;width:56px;height:56px;padding:0;position:absolute;inset:-6px}.appearance-custom-color svg{pointer-events:none;color:#fff;filter:drop-shadow(0 1px 1px #000);position:relative}.appearance-custom-color:focus-within{outline:2px solid var(--ui-focus);outline-offset:4px}.appearance-stage[data-isolated=true]{background-color:var(--ui-surface-sunken);background-image:conic-gradient(var(--ui-border-subtle) 25%, transparent 0 50%, var(--ui-border-subtle) 0 75%, transparent 0);background-size:20px 20px}.appearance-playback{justify-content:space-between;align-items:center;gap:8px;margin-top:12px;display:flex}.appearance-playback .appearance-pause{margin:0}.appearance-playback label{color:var(--ui-text-secondary);align-items:center;gap:6px;font-size:12px;display:flex}.appearance-playback select{background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:var(--ui-radius-control);padding:7px}.appearance-preview{align-self:start;position:sticky;top:18px}.appearance-motion select{min-width:0;max-width:68%}.appearance-choice div{flex-wrap:wrap}.appearance-choice button{min-width:65px}.appearance-editor footer{background:var(--ui-surface);position:sticky;bottom:0}@media (width<=600px){.appearance-preview{position:static}.appearance-custom-color{width:38px;height:38px}}.appearance-preview-message button{min-height:var(--ui-touch-target);border:1px solid var(--ui-border);border-radius:var(--ui-radius-control);background:var(--ui-surface);color:var(--ui-text);padding:8px 12px}@media (width<=600px){.appearance-editor header p{display:none}.appearance-close{min-width:var(--ui-touch-target);height:44px}.appearance-preview{z-index:1;background:var(--ui-surface);border-bottom:1px solid var(--ui-divider);grid-template-columns:128px minmax(0,1fr);align-items:center;gap:6px 12px;width:100%;padding:12px 0;display:grid;position:sticky;top:0}.appearance-stage{grid-area:1/1/5}.appearance-directions,.appearance-motion,.appearance-playback{grid-column:2;margin:0}.appearance-directions{gap:2px}.appearance-directions button{min-height:var(--ui-touch-target);padding:4px 0;font-size:10px}.appearance-motion,.appearance-playback label{gap:4px;font-size:11px}.appearance-motion select{min-height:var(--ui-touch-target);padding:4px}.appearance-playback{flex-wrap:wrap;gap:4px}.appearance-playback select,.appearance-pause{min-height:var(--ui-touch-target)}.appearance-playback label{gap:2px}.appearance-pause{padding:4px;font-size:11px!important}.appearance-choice button{min-height:var(--ui-touch-target)}.appearance-palette button,.appearance-custom-color{width:44px;height:44px}.appearance-custom-color input{width:52px;height:52px;inset:-4px}}@media (width<=360px){.appearance-preview{grid-template-columns:104px minmax(0,1fr);gap:6px}}@media (width<=600px){.appearance-preview{width:calc(100% + 36px);margin-inline:-18px;padding-inline:18px}}@media (orientation:landscape) and (height<=500px){.appearance-ui{inset:8px}.appearance-editor{box-sizing:border-box;flex-direction:column;width:min(820px,100vw - 16px);height:calc(100dvh - 16px);max-height:none;margin:0;display:flex;overflow:hidden}.appearance-editor header{flex:none;align-items:center;padding:6px 12px}.appearance-editor h1{margin:0;font-size:20px}.appearance-editor header p{display:none}.appearance-close{min-width:var(--ui-touch-target);min-height:var(--ui-touch-target)}.appearance-content{flex:1;grid-template-columns:180px minmax(0,1fr);gap:16px;min-height:0;padding:8px 12px;overflow:hidden}.appearance-preview{scrollbar-width:thin;height:100%;position:static;overflow-y:auto}.appearance-stage{width:144px;margin-inline:auto}.appearance-options{gap:14px;min-height:0;padding:4px;overflow-y:auto}.appearance-choice button,.appearance-directions button,.appearance-motion select,.appearance-playback select,.appearance-pause{min-height:var(--ui-touch-target)}.appearance-palette button,.appearance-custom-color{flex-shrink:0;width:44px;height:44px}.appearance-editor footer{flex:none;padding:6px 12px;position:static}.appearance-apply{min-height:var(--ui-touch-target)}.appearance-directions{grid-template-columns:repeat(4,minmax(0,1fr));gap:1px}.appearance-directions button{min-width:0;padding-inline:0;font-size:10px}.appearance-playback{flex-wrap:wrap}.appearance-playback label{justify-content:space-between;width:100%}.appearance-custom-color input{width:52px;height:52px;inset:-4px}}.appearance-ui button,.appearance-motion select,.appearance-playback select{min-height:var(--ui-touch-target)}
