.bd-head-tool{display:flex;flex-direction:column;gap:9px;min-width:0}.bd-editor .bd-editor-grid{align-items:start}.bd-editor .bd-editor-preview{position:sticky;top:20px;align-self:start}.bd-head-status{font-size:12px;line-height:1.5;margin:0;color:#825b70;display:flex;align-items:center;gap:8px}.bd-head-spinner{width:13px;height:13px;border:2px solid #e2c8d3;border-top-color:#995570;border-radius:50%;animation:bd-head-spin .8s linear infinite;flex-shrink:0}.bd-head-workspace{display:flex;flex-direction:column;gap:10px;padding:10px;border:1px solid #ead4dd;border-radius:14px;background:#fffdfb}.bd-head-source{position:relative;align-self:center;width:100%;max-width:340px;overflow:hidden;border-radius:8px;line-height:0;-webkit-user-select:none;user-select:none}.bd-head-source>img{display:block;width:100%;height:100%;object-fit:contain}.bd-head-face{position:absolute;box-sizing:border-box;border:2px solid #ffe7f4;border-radius:9px;background:#ab57751a;box-shadow:0 0 0 1px #81465e90;min-width:0;padding:0}.bd-head-face.is-chosen{border-color:#ffb5d2;background:#ee83ad25;box-shadow:0 0 0 2px #ad5c7b}.bd-head-face>span{position:absolute;left:-8px;top:-10px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;font:600 11px/1 Arial,sans-serif;background:#9b5674;color:#fff;box-shadow:0 1px 6px #47263430}.bd-head-result{background-color:#fff;background-image:conic-gradient(#eee4e9 25%,transparent 0 50%,#eee4e9 0 75%,transparent 0);background-size:16px 16px;border-radius:10px;overflow:hidden;display:flex;justify-content:center}.bd-head-result.is-dark{background-color:#343043;background-image:conic-gradient(#454053 25%,transparent 0 50%,#454053 0 75%,transparent 0)}.bd-head-result canvas{display:block;max-width:100%;max-height:340px;width:auto;height:auto;object-fit:contain}.bd-head-result canvas[data-editing=true]{touch-action:none;cursor:crosshair}.bd-head-tools-row{display:flex;flex-wrap:wrap;gap:6px}.bd-head-tools-row button{border:1px solid #e4cbd5;background:#fff9fc;color:#8e5d75;padding:7px 9px;border-radius:8px;font-size:11px;line-height:1.35}.bd-head-tools-row button[aria-pressed=true]{background:#f1d5e2;border-color:#c38ca6;color:#76425c}.bd-head-tools-row button:disabled{opacity:.4}.bd-head-refine summary{font-size:12px;color:#8e5d75;cursor:pointer;padding:5px 0}.bd-head-refine[open]{display:flex;flex-direction:column;gap:8px}.bd-head-refine label{margin:9px 0}.bd-head-tool .bd-head-apply{background:#a15b76;color:#fff8f3;border-color:#a15b76}@keyframes bd-head-spin{to{transform:rotate(360deg)}}@media (max-width:759px){.bd-editor .bd-editor-grid{grid-template-columns:1fr}.bd-editor .bd-editor-preview .bd-chibi{max-width:130px}.bd-editor .bd-editor-preview{position:relative;top:auto;padding-bottom:8px}.bd-editor-fields{gap:14px}.bd-head-result canvas{max-height:310px}}@media (prefers-reduced-motion:reduce){.bd-head-spinner{animation:none}}.bd-head-original{min-width:0}.bd-head-original>summary{cursor:pointer;font-size:12px;color:#93677e;padding:4px 0 10px}.bd-head-original .bd-head-source{margin:0 auto}.bd-head-tool-compact .bd-head-workspace{display:block;padding:12px}.bd-head-tool-compact .bd-head-workspace>summary{cursor:pointer;color:#86586d;font-size:12px;list-style-position:inside}.bd-head-tool-compact .bd-head-workspace[open]>summary{margin-bottom:12px}.bd-head-tool-compact .bd-head-workspace>div,.bd-head-tool-compact .bd-head-refine,.bd-head-tool-compact .bd-head-apply{margin-top:10px}.bd-head-tool-compact .bd-head-result canvas{max-height:230px}.bd-head-tool-compact .bd-head-apply{width:100%}
