.appearance-live{margin:22px 0;border:1px solid var(--border,#ccc);border-radius:14px;padding:16px;background:var(--surface,#fff);min-width:0}.appearance-live-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.appearance-live-toolbar button{min-height:44px;font-size:13px;padding:8px 12px}.appearance-live-toolbar [data-preview-save]{margin-inline-start:auto}.appearance-live-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;align-items:start}.appearance-live-stage{position:relative;min-width:0;overflow:auto;background:var(--background,#eee);border:1px solid var(--border,#ddd);border-radius:10px;height:700px;direction:ltr}.appearance-live-stage iframe{display:block;max-width:none;border:0;transform-origin:top left;background:var(--background,#fff);height:1000px}.appearance-live-tools{min-width:0;max-height:700px;overflow:auto;padding:4px 8px 12px}.appearance-live-tools .fields{display:block}.appearance-live-tools label{font-size:13px;display:block}.appearance-live-tools input[type=number]{width:100%;font-size:16px}.appearance-live-tools input[type=color]{width:100%;height:40px;min-height:40px;padding:3px}.appearance-live-tools details{margin:10px 0}.appearance-live-tools summary{min-height:44px}.appearance-current{display:block;font-size:12px;color:var(--muted,#777);line-height:1.8}.appearance-current bdi{font-family:monospace;font-size:12px}.appearance-live-expanded{position:fixed;inset:10px;z-index:250;margin:0;overflow:auto;box-shadow:0 10px 70px #0004}.appearance-live-expanded .appearance-live-stage,.appearance-live-expanded .appearance-live-tools{height:calc(100dvh - 160px);max-height:calc(100dvh - 160px)}.appearance-live select{font-size:14px}.appearance-live-note{font-size:13px;margin:8px 0}.appearance-live [data-preview-status]{font-size:13px;min-height:24px;margin:0}.apv-selected{outline:2px dashed var(--accent,#a37e2b)!important;outline-offset:3px}.apv-drag-mode .apv-selected{touch-action:none;cursor:move}.appearance-live-positions{border-top:1px solid var(--border,#ddd);margin-top:12px;padding-top:8px}
@media(max-width:900px){.appearance-live-layout{grid-template-columns:minmax(0,1fr)}.appearance-live-tools{max-height:none;overflow:visible}.appearance-live-stage{height:520px}.appearance-live{padding:10px}.appearance-live-expanded .appearance-live-stage{height:55dvh}.appearance-live-expanded .appearance-live-tools{height:auto;max-height:none}.appearance-live-toolbar [data-preview-save]{margin-inline-start:0}}

.appearance-extra{margin:18px 0}.appearance-extra>summary{min-height:44px;padding:10px 0}.appearance-current bdi{direction:ltr;unicode-bidi:isolate}.appearance-live button[data-preview-save]{white-space:normal}

.appearance-live-toolbar{position:sticky;top:0;z-index:2;background:var(--surface,#fff);padding-block:8px}

.appearance-live-toolbar [data-desktop-width]{width:100px;min-height:38px}.appearance-live-toolbar>label{font-size:12px}.appearance-live-tools [data-region] .fields select{width:100%}
