.hft-selecting { overflow: hidden !important; overscroll-behavior: none; }
.hft-shell { position: fixed; inset: 0; z-index: 2147483000; touch-action: none; cursor: crosshair; }
.hft-overlay { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.hft-toolbar { box-sizing: border-box; position: absolute; top: max(16px, env(safe-area-inset-top)); left: 16px; right: 16px; max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); cursor: default; }
.hft-toolbar p { margin: 0; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.hft-toolbar.hft-toolbar-bottom { top: auto; bottom: max(16px, env(safe-area-inset-bottom)); }
.hft-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex-shrink: 0; }
.hft-toolbar button { flex-shrink: 0; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; }
.hft-toolbar button:hover { background: var(--surface-3); }
.hft-toolbar button:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.hft-toolbar button:active { filter: brightness(.94); }
[data-hf-target-preview], canvas[data-feedback-target-json] { box-sizing: border-box; display: block; width: 100%; max-width: 480px; height: auto; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface-2); }
[data-hf-target-preview][hidden], canvas[data-feedback-target-json][hidden] { display: none; }
[data-hf-target-summary] { color: var(--ink-2); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.hft-picker { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); }
.hft-modes { display: flex; flex-wrap: wrap; gap: 8px; }
.hft-modes button, .hft-picker [data-hf-target-clear] { min-height: 44px; min-width: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.hft-modes button:hover, .hft-picker [data-hf-target-clear]:hover { background: var(--surface-3); }
.hft-modes button:focus-visible, .hft-picker [data-hf-target-clear]:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.hft-modes button:disabled, .hft-picker [data-hf-target-clear]:disabled { opacity: .5; cursor: default; }
.hft-card { display: grid; gap: 12px; margin-top: 16px; padding: 16px; min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); }
.hft-card p { margin: 0; }
.hft-card code { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.hft-card a { color: var(--link); text-underline-offset: 4px; overflow-wrap: anywhere; }
.hft-card canvas { display: block; width: 100%; max-width: 480px; height: auto; }
@media (max-width: 480px) { .hft-toolbar { align-items: stretch; flex-direction: column; gap: 8px; padding: 12px; } .hft-toolbar-actions { flex-shrink: 1; } .hft-toolbar button { align-self: flex-end; } }
