.appearance-trigger{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:8px 14px;border:0;border-radius:10px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.appearance-trigger:hover{background:var(--accent-soft)}
.appearance-trigger__swatch{width:18px;height:18px;flex:none;border-radius:50%;background:var(--accent-raw,#9b6546);box-shadow:inset 0 0 0 1px #0003}
.appearance-dialog{width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:0;border:0;border-radius:20px;background:#fff;color:#292825;box-shadow:0 24px 80px #0004;overflow:auto}
.appearance-dialog::backdrop{background:#18171499}
.appearance-panel{padding:28px}
.appearance-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.appearance-head h2{margin:0;font-size:24px;line-height:1.3;color:#292825}
.appearance-head p{margin:8px 0 0;color:#625e58;font-size:14px;line-height:1.6}
.appearance-head .appearance-kicker{margin:0 0 7px;color:var(--accent-ink);font-weight:700;font-size:12px}
.appearance-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:10px;background:#f4f2ef;color:#292825;font-size:25px;cursor:pointer}
.appearance-dialog fieldset{padding:0;margin:26px 0 22px;border:0}
.appearance-dialog legend,.appearance-custom>label{display:block;margin-bottom:12px;font-size:14px;font-weight:700}
.appearance-presets{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.appearance-preset{display:flex;flex-direction:column;align-items:center;gap:7px;min-height:64px;padding:4px 0;border:0;background:none;color:#4d4944;cursor:pointer}
.appearance-preset span{width:36px;height:36px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #0003}
.appearance-preset[aria-pressed=true] span{outline:2px solid #292825;outline-offset:3px}
.appearance-preset small{font-size:12px}
.appearance-custom>div{display:flex;gap:10px;align-items:center}
.appearance-custom input[type=color]{width:48px;height:44px;padding:3px;border:1px solid #b7b1a9;border-radius:8px;background:#fff;cursor:pointer}
.appearance-custom input[type=text]{width:150px;min-height:44px;padding:8px 12px;border:1px solid #b7b1a9;border-radius:8px;background:#fff;color:#292825;font:inherit}
.appearance-status{min-height:22px;margin:12px 0;color:#93402e;font-size:13px}
.appearance-actions{display:flex;align-items:center;gap:8px}
.appearance-actions span{flex:1}
.appearance-actions button{min-height:44px;padding:9px 14px;border:1px solid #b7b1a9;border-radius:9px;background:#fff;color:#292825;font:inherit;cursor:pointer}
.appearance-actions .appearance-reset{border-color:transparent}
.appearance-actions .appearance-save{border-color:var(--accent);background:var(--accent);color:var(--accent-on)}
.appearance-actions button:disabled{opacity:.6;cursor:wait}
.appearance-dialog :focus-visible,.appearance-trigger:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(min-width:761px){
 .workspace-rail .appearance-trigger{margin-top:auto}
 .workspace-rail .appearance-trigger+.workspace-rail-foot{margin-top:12px}
 .appearance-dialog{position:fixed;inset:auto auto var(--appearance-bottom,90px) var(--appearance-left,16px);margin:0;width:320px;max-height:min(460px,calc(100dvh - var(--appearance-bottom,90px) - 8px));border:1px solid #e5e0dc;border-radius:12px;box-shadow:0 12px 32px #30221b26}
 .appearance-dialog::backdrop{background:transparent}
 .appearance-panel{padding:14px 16px 16px}
 .appearance-head{align-items:center}
 .appearance-head h2{font-size:16px}
 .appearance-close{width:44px;height:44px;margin:-6px -6px -6px 0;background:transparent;font-size:21px}
 .appearance-dialog fieldset{margin:12px 0 14px;padding-bottom:12px;border-bottom:1px solid #eae6e2}
 .appearance-dialog legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .appearance-presets{gap:3px}
 .appearance-preset{min-height:44px;gap:0}
 .appearance-preset span{width:30px;height:30px}
 .appearance-preset small{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .appearance-custom>label{font-size:13px;margin-bottom:6px}
 .appearance-custom input[type=text]{flex:1;width:auto;min-width:0}
 .appearance-status{margin:6px 0;min-height:0}
 .appearance-status:not(:empty){min-height:20px}
 .appearance-actions{gap:4px}
 .appearance-actions button{padding:8px}
}
@media(max-width:420px){.appearance-panel{padding:22px 18px}.appearance-presets{grid-template-columns:repeat(3,1fr)}.appearance-actions{flex-wrap:wrap}.appearance-actions span{display:none}.appearance-actions .appearance-reset{margin-right:auto}}
