.thfc-editor{--thfc-surface:var(--thrs-surface,#faf5ec);--thfc-ink:var(--thrs-ink,#594a3f);--thfc-edge:var(--thrs-edge,#ded0bf);position:fixed;inset:0;z-index:2147483002;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:rgba(32,29,27,.4);color:var(--thfc-ink);font:14px/1.55 system-ui,sans-serif;overscroll-behavior:contain}
.thfc-editor,.thfc-editor *{box-sizing:border-box}.thfc-panel{display:flex;flex-direction:column;width:min(100%,540px);max-height:100%;min-height:0;background:var(--thfc-surface);border-radius:16px;overflow:hidden}.thfc-panel header,.thfc-panel footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;flex:none}.thfc-panel h3{margin:0;font-size:17px}.thfc-panel footer{justify-content:flex-end}.thfc-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 16px}.thfc-body p{margin:8px 0 12px}.thfc-note{font-size:12px}.thfc-art{position:relative;width:100%;margin:16px auto;background:#eee8dd;line-height:0;touch-action:manipulation;outline:1px solid var(--thfc-edge)}.thfc-art img{display:block;width:100%;height:auto}.thfc-art svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.thfc-art polygon,.thfc-art polyline{fill:#57817d18;stroke:#35716c;stroke-width:4;vector-effect:non-scaling-stroke}.thfc-art .is-selected{fill:#d2822426;stroke:#9d5810}.thfc-art circle{fill:#fff;stroke:#9d5810;stroke-width:3}.thfc-art text{fill:#663907;stroke:#fff;stroke-width:2;paint-order:stroke;font:bold 36px system-ui,sans-serif}.thfc-parts,.thfc-row{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:12px 0}.thfc-parts button[aria-pressed=true]{border-color:currentColor;background:#b3884722}.thfc-panel button,.thfc-panel select,.thfc-panel input{font:inherit;color:inherit;min-height:44px;border:1px solid var(--thfc-edge);border-radius:8px;background:var(--thfc-surface);padding:8px 10px;max-width:100%}.thfc-panel button{cursor:pointer;overflow-wrap:anywhere}.thfc-panel button:disabled{opacity:.5;cursor:default}.thfc-panel input,.thfc-panel select{display:block;width:100%;min-width:0}.thfc-panel label{display:block;min-width:0;margin:8px 0}.thfc-row>label{flex:1;min-width:70px;margin:0}.thfc-row>select{flex:1;width:auto}.thfc-panel button:focus-visible,.thfc-panel select:focus-visible,.thfc-panel input:focus-visible,.thfc-art:focus-visible{outline:2px solid currentColor;outline-offset:2px}.thfc-panel [hidden]{display:none}.thfc-status{overflow-wrap:anywhere}.thfc-panel button:hover:not(:disabled){text-decoration:underline}.thfc-panel button:active:not(:disabled){opacity:.75}
.thfc-art .thfc-anchor{fill:#2d8fd6;stroke:#fff;stroke-width:3}.thfc-art .thfc-anchor-line{stroke:#2d8fd6;stroke-width:3;stroke-dasharray:6 5;vector-effect:non-scaling-stroke}.thfc-art .thfc-anchor-ring{fill:#3b82f61f;stroke:#2d6fd6;stroke-width:3;vector-effect:non-scaling-stroke}.thfc-art .thfc-anchor-label{fill:#174f7a}
@media(prefers-color-scheme:dark){.thfc-editor{--thfc-surface:var(--thrs-surface,#302d2a);--thfc-ink:var(--thrs-ink,#eee5da);--thfc-edge:var(--thrs-edge,#675d53)}}
