#capture-root{position:absolute;inset:0;z-index:110;pointer-events:none;isolation:isolate;font-family:"Segoe UI Variable","Segoe UI","Microsoft YaHei UI",sans-serif}
#capture-root.capture-active{pointer-events:auto}
.capture-layer{position:absolute;inset:0;overflow:hidden;cursor:crosshair;user-select:none;touch-action:none;color:#fff;outline:none}
.capture-layer:focus,.capture-layer:focus-visible{outline:none}
.capture-instruction{position:absolute;top:20px;left:50%;transform:translateX(-50%);height:34px;display:flex;align-items:center;gap:9px;padding:0 13px;border:1px solid #ffffff26;border-radius:4px;background:#252e3bee;box-shadow:0 2px 8px #0f19212b;pointer-events:none;z-index:3;font-size:12px;white-space:nowrap}
.capture-instruction svg{width:16px;height:16px;color:#c8e5ff}
.capture-instruction kbd{font:10px "Segoe UI","Microsoft YaHei UI",sans-serif;line-height:1.5;color:#c4ceda;margin-left:12px;border:1px solid #ffffff29;border-radius:3px;padding:1px 5px}
.capture-selection{position:absolute;border:1px solid #39a3ff;box-shadow:0 0 0 2200px #111b2e66;cursor:move;z-index:1;box-sizing:border-box;background:transparent;outline:none}
.capture-selection:focus,.capture-selection:focus-visible{outline:none}
.capture-selection:after{content:"";position:absolute;inset:1px;border:1px solid #ffffff5e;pointer-events:none}
.capture-size{position:absolute;left:-1px;top:-28px;height:23px;display:flex;align-items:center;padding:0 8px;background:#263344ef;border-radius:3px;color:#fff;font-size:11px;font-variant-numeric:tabular-nums;letter-spacing:.2px;white-space:nowrap;pointer-events:none}
.capture-size.inside{top:8px;left:8px}
.capture-handle{position:absolute;height:7px;width:7px;box-sizing:border-box;background:#fff;border:1px solid #1685ed;z-index:2}
.capture-handle.nw{top:-4px;left:-4px;cursor:nwse-resize}
.capture-handle.ne{top:-4px;right:-4px;cursor:nesw-resize}
.capture-handle.sw{bottom:-4px;left:-4px;cursor:nesw-resize}
.capture-handle.se{bottom:-4px;right:-4px;cursor:nwse-resize}
.capture-toolbar{position:absolute;z-index:4;display:flex;align-items:center;gap:3px;height:39px;padding:4px 5px 4px 10px;box-sizing:border-box;color:var(--text,#26313e);background:var(--surface,#fff);border:1px solid var(--window-line,#d5dae0);border-radius:5px;box-shadow:var(--menu-shadow,0 2px 5px #17223214,0 6px 20px #17223214);cursor:default;white-space:nowrap}
.capture-toolbar-size{font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted,#707b88);min-width:58px;text-align:center;padding-right:5px}
.capture-toolbar-divider{height:16px;width:1px;background:var(--line,#e9ecef);margin:0 5px 0 1px}
.capture-toolbar button{height:29px;display:flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;border:0;border-radius:3px;background:transparent;color:var(--text,#26313e);font:12px "Segoe UI","Microsoft YaHei UI",sans-serif;cursor:pointer;white-space:nowrap}
.capture-toolbar button:hover{background:var(--hover,#f0f3f6)}
.capture-toolbar button:focus-visible{outline:2px solid var(--blue,#1685ed);outline-offset:-2px;background:var(--hover,#f0f3f6)}
.capture-toolbar button svg{height:15px;width:15px;color:var(--muted,#707b88)}
.capture-toolbar button kbd{font:10px "Segoe UI",sans-serif;color:var(--muted,#707b88);margin-left:4px}
.capture-toolbar button.capture-done{background:var(--blue,#1685ed);color:#fff;padding:0 12px;margin-left:4px}
.capture-toolbar button.capture-done:hover{filter:brightness(.95)}
.capture-toolbar button.capture-done svg{color:#fff}
.capture-keyboard-help{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);padding:6px 10px;margin:0;border-radius:3px;background:#263344df;color:#e3eaf2;z-index:3;font-size:10px;line-height:1.6;pointer-events:none;white-space:nowrap;letter-spacing:.1px}
[data-theme="dark"] .capture-selection{box-shadow:0 0 0 2200px #070b136e}
[data-theme="dark"] .capture-toolbar button.capture-done{background:#3c8fdf}
@media(prefers-reduced-motion:reduce){.capture-layer *{animation:none!important;transition:none!important}}
