#editor #editor-save-style{min-height:44px;padding:10px 14px;font-size:14px;border:1px solid var(--proof-control-border);background:var(--proof-surface);color:var(--proof-text);border-radius:8px}#editor #editor-save-style svg{width:17px;height:17px}
#editor-style-dialog{padding:0;border:0;border-radius:12px;width:min(520px,calc(100vw - 32px));height:min(780px,calc(100dvh - 48px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;background:var(--proof-surface);color:var(--proof-text);box-shadow:var(--proof-shadow-dialog);overflow:hidden;font:14px/1.5 var(--proof-font-family);color-scheme:var(--proof-color-scheme)}
#editor-style-dialog::backdrop{background:var(--proof-backdrop)}#editor-style-dialog [hidden]{display:none!important}#editor-style-dialog *{box-sizing:border-box}#editor-style-dialog ::selection{background:var(--proof-selection);color:var(--proof-selection-text)}
#editor-style-dialog :focus-visible{outline:2px solid var(--proof-focus);outline-offset:3px}#editor-style-dialog h2{font-size:20px;line-height:1.3;margin:0;font-weight:600}#editor-style-dialog p{margin:10px 0 0;color:var(--proof-text-muted);font-size:13px}
#editor-style-dialog button{font:inherit;cursor:pointer;border:1px solid var(--proof-control-border);border-radius:7px;background:var(--proof-surface);color:var(--proof-text);padding:10px 14px;min-height:42px}#editor-style-dialog button:hover{background:var(--proof-surface-hover)}#editor-style-dialog button:disabled{cursor:default;opacity:.6}#editor-style-dialog .editor-style-primary{background:var(--proof-primary);border-color:var(--proof-primary);color:var(--proof-text-on-action)}#editor-style-dialog .editor-style-primary:hover{background:var(--proof-primary-hover)}
#editor-style-form{height:100%;display:flex;flex-direction:column;margin:0}.editor-style-head{padding:20px 24px 18px;border-bottom:1px solid var(--proof-border)}.editor-style-head>div{display:flex;justify-content:space-between;align-items:center;gap:12px}#editor-style-dialog .editor-style-head button{padding:8px;border:0;min-height:36px}.editor-style-head svg{width:20px;height:20px;display:block}
#editor-style-dialog .editor-style-content{padding:20px 24px;overflow:auto;flex:1;min-height:0;scrollbar-color:var(--proof-control-border) var(--proof-surface-subtle)}#editor-style-dialog .editor-style-picker{position:relative}#editor-style-dialog label{display:block;font-weight:600;font-size:13px;margin-bottom:7px}#editor-style-search{width:100%;border:1px solid var(--proof-control-border);border-radius:7px;padding:11px 12px;font:inherit;background:var(--proof-surface);color:var(--proof-text);caret-color:var(--proof-primary)}#editor-style-search::placeholder{color:var(--proof-text-muted)}
#editor-style-options{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:2;max-height:228px;overflow:auto;margin:0;padding:5px;list-style:none;background:var(--proof-surface);border-radius:8px;box-shadow:var(--proof-shadow-menu);scrollbar-color:var(--proof-control-border) var(--proof-surface-subtle)}#editor-style-options li{padding:11px 12px;border-radius:5px;cursor:pointer;font-size:13px;overflow-wrap:anywhere}#editor-style-options li:hover,#editor-style-options [data-active=true]{background:var(--proof-selection)}#editor-style-options small{display:block;font-size:11px;color:var(--proof-text-muted);margin-top:2px}
#editor-style-dialog #editor-style-replace{padding:12px;background:var(--proof-selection);color:var(--proof-text);border-radius:7px}.editor-style-snapshot{margin-top:26px}#editor-style-dialog h3{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;margin:0 0 12px}#editor-style-dialog h3 span{font-size:11px;color:var(--proof-text-muted);font-weight:400}.editor-style-sample{padding:20px 16px;background:#292c37;border-radius:8px;min-height:90px;display:grid;place-items:center;text-align:center;overflow:hidden}
#editor-style-dialog dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:10px 12px;font-size:12px;margin:18px 0}#editor-style-dialog dt{color:var(--proof-text-muted)}#editor-style-dialog dd{margin:0;overflow-wrap:anywhere}#editor-style-dialog details{border-top:1px solid var(--proof-border);padding-top:12px;font-size:12px}#editor-style-dialog summary{cursor:pointer}#editor-style-dialog details p{font-size:12px}#editor-style-dialog .editor-style-excluded{font-size:12px;margin-top:18px}
#editor-style-dialog footer{padding:18px 24px;border-top:1px solid var(--proof-border)}#editor-style-dialog footer>p{font-size:11px;text-align:center}.editor-style-actions{display:flex;justify-content:flex-end;gap:10px}#editor-style-error{color:var(--proof-error);font-size:13px;margin-bottom:12px}#editor-style-reload{margin-bottom:12px}
#editor-style-success{padding:40px 28px;overflow:auto;height:100%;text-align:center}#editor-style-dialog .editor-style-success-icon{margin:0 auto 20px;color:var(--proof-success)}.editor-style-success-icon svg{width:40px;height:40px}.editor-style-saved{background:var(--proof-surface-subtle);border-radius:8px;padding:20px;margin:24px 0;overflow-wrap:anywhere}#editor-style-success>button{margin-top:24px}.editor-style-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:600px){#editor-style-dialog{width:calc(100vw - 20px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}#editor-style-dialog .editor-style-content,.editor-style-head,#editor-style-dialog footer{padding-left:18px;padding-right:18px}#editor-style-dialog dl{grid-template-columns:85px minmax(0,1fr)}}
