
#emv-hd-open{width:100%!important;min-height:52px;margin:9px 0 0;padding:12px 16px!important;box-sizing:border-box;border:1px solid #cbbda6!important;border-radius:15px!important;background:linear-gradient(105deg,#fff9ee,#ede1ca)!important;color:#30281d!important;font:650 16px system-ui,sans-serif!important;display:flex!important;align-items:center;gap:10px;cursor:pointer}
#emv-hd-open svg{color:#65594b;flex:none}#emv-hd-open .hd-launch-text{flex:1;text-align:left}#emv-hd-open small{font-size:10px;letter-spacing:.08em;color:#255b53;border:1px solid #cbbda6;padding:4px 7px;border-radius:6px;white-space:nowrap}#emv-hd-open .hd-launch-arrow{color:#255b53}#emv-hd-open:disabled{opacity:.55;cursor:default}
#emv-hd-dialog{color-scheme:light;color:#30281d;background:radial-gradient(ellipse at 92% 0,#ede1ca 0,transparent 44%),#fff9ee;border:1px solid #cbbda6;border-radius:24px;padding:20px;max-width:min(520px,calc(100vw - 24px));width:100%;max-height:90dvh;overflow:auto;box-sizing:border-box;font:14px system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 28px 100px #5b3f20bb;margin:auto}
#emv-hd-dialog::backdrop{background:#f2e9d7de;backdrop-filter:blur(5px)}#emv-hd-dialog [hidden]{display:none!important}#emv-hd-dialog .hd-head{display:flex;justify-content:space-between;align-items:center;gap:10px}#emv-hd-dialog .hd-kicker{font-size:10px;letter-spacing:.18em;font-weight:750;color:#65594b;display:flex;align-items:center;gap:7px}#emv-hd-dialog .hd-brand-dot{display:inline-block;width:8px;height:8px;background:linear-gradient(135deg,#f1dfc9,#e2e9da);border-radius:50%}#emv-hd-dialog h2{font-size:26px;line-height:1.12;letter-spacing:-.045em;margin:6px 0 2px;font-weight:700;color:#30281d}
#emv-hd-dialog button,#emv-hd-dialog select,#emv-hd-dialog a{font:600 14px system-ui;border:1px solid #cbbda6;border-radius:12px;background:#ede1ca;color:#30281d;padding:11px;text-align:center;text-decoration:none;cursor:pointer;box-sizing:border-box}
#emv-hd-dialog #emv-hd-close{border-radius:50%;height:40px;width:40px;flex:none;font-size:26px;line-height:1;padding:0;color:#65594b;background:#fff9ee}
#emv-hd-dialog .hd-format{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:16px 0 10px;font-size:10px;font-weight:750;letter-spacing:.09em;color:#65594b}#emv-hd-dialog .hd-format span:first-child{color:#255b53;display:flex;align-items:center;gap:6px}#emv-hd-dialog .hd-format i{width:6px;height:6px;background:#e2e9da;border-radius:100%}
#emv-hd-dialog .hd-monitor{padding:14px 14px 10px;background:linear-gradient(155deg,#fff9ee,#f2e9d7);border:1px solid #cbbda6;border-radius:18px;box-shadow:inset 0 1px 0 #5b3f2008}#emv-hd-dialog .hd-monitor-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;letter-spacing:.11em;color:#65594b;font-weight:700}#emv-hd-state{color:#255b53}#emv-hd-dialog[data-state="recording"] #emv-hd-state{color:#a64131}#emv-hd-dialog[data-state="paused"] #emv-hd-state{color:#805011}
#emv-hd-time{text-align:center;font:500 clamp(38px,11vw,53px)/1.2 system-ui;font-variant-numeric:tabular-nums;letter-spacing:-.055em;margin:10px 0;color:#30281d}#emv-hd-dialog .hd-wave-wrap{background:repeating-linear-gradient(90deg,transparent 0 24px,#fff9ee0b 24px 25px),linear-gradient(0deg,transparent 49%,#ede1ca4d 49% 51%,transparent 51%);border-radius:8px;overflow:hidden}#emv-hd-wave{display:block;width:100%;height:66px}
#emv-hd-dialog label{display:block;margin:10px 0 5px;font-size:10px;letter-spacing:.09em;font-weight:750;color:#65594b}#emv-hd-db{float:right;font-variant-numeric:tabular-nums;color:#255b53;font-size:11px}#emv-hd-dialog meter{width:100%;height:13px;display:block;accent-color:#255b53}#emv-hd-dialog meter::-webkit-meter-bar{background:#ede1ca;border:0;border-radius:3px}#emv-hd-dialog meter::-webkit-meter-optimum-value{background:linear-gradient(90deg,#ede1ca,#e2e9da);border-radius:3px}#emv-hd-dialog meter::-webkit-meter-suboptimum-value{background:#f1dfc9}#emv-hd-dialog meter::-webkit-meter-even-less-good-value{background:#f1dfc9}#emv-hd-dialog .hd-scale{display:flex;justify-content:space-between;font-size:9px;color:#65594b;margin:4px 0}
#emv-hd-clip{font-size:11px;color:#65594b;min-height:2.2em;margin:8px 0 0;line-height:1.4}
#emv-hd-dialog .hd-config{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:10px;margin:5px 0 14px}#emv-hd-dialog select{width:100%;min-width:0;text-align:left;font-size:12px;padding:11px 8px;white-space:nowrap;text-overflow:ellipsis}#emv-hd-dialog button:disabled,#emv-hd-dialog select:disabled{opacity:.44;cursor:default}
#emv-hd-dialog .hd-controls{display:flex;flex-direction:column;gap:12px}#emv-hd-dialog #emv-hd-check{width:100%;background:linear-gradient(105deg,#ede1ca,#ede1ca);border-color:#255b53;min-height:43px}
#emv-hd-dialog .hd-transport{display:flex;justify-content:center;align-items:center;gap:24px;padding:4px 0 1px}#emv-hd-dialog .hd-transport button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;background:transparent;border:0;font-size:12px;color:#30281d;padding:0;min-width:52px}
#emv-hd-dialog .hd-transport button::before{display:grid;place-items:center;width:48px;height:48px;background:#ede1ca;border:1px solid #cbbda6;border-radius:50%;font-size:19px;font-weight:700;line-height:1}
#emv-hd-pause::before{content:"Ⅱ"}#emv-hd-dialog[data-state="paused"] #emv-hd-pause::before{content:"▶";font-size:16px}#emv-hd-stop::before{content:"■";font-size:16px!important}
#emv-hd-dialog #emv-hd-record::before{content:"";width:64px;height:64px;background:#ede1ca;border:5px solid #cbbda6;box-shadow:0 0 0 2px #5b3f2020,0 6px 20px #5b3f2035;box-sizing:border-box}#emv-hd-dialog[data-state="recording"] #emv-hd-record::before{box-shadow:0 0 0 2px #5b3f2020,0 0 22px #5b3f20a0}
#emv-hd-dialog[data-state="result"] .hd-controls,#emv-hd-dialog[data-state="recording"] #emv-hd-check,#emv-hd-dialog[data-state="paused"] #emv-hd-check,#emv-hd-dialog[data-state="transition"] #emv-hd-check,#emv-hd-dialog[data-state="stopping"] #emv-hd-check{display:none}
#emv-hd-dialog[data-state="ready"] #emv-hd-check{background:#ede1ca;border-color:#cbbda6;font-size:12px;min-height:36px;padding:8px}#emv-hd-dialog[data-state="recording"] .hd-config,#emv-hd-dialog[data-state="paused"] .hd-config,#emv-hd-dialog[data-state="transition"] .hd-config,#emv-hd-dialog[data-state="stopping"] .hd-config,#emv-hd-dialog[data-state="result"] .hd-config{display:none}
#emv-hd-status{min-height:2.5em;text-align:center;color:#255b53;font-size:12px;line-height:1.4;margin:12px 0 7px}#emv-hd-result{background:#fff9ee;border:1px solid #cbbda6;border-radius:15px;padding:13px}#emv-hd-dialog .hd-result-heading{color:#30281d;font-size:14px;font-weight:650;margin:0 0 10px}#emv-hd-dialog .hd-result-heading span{color:#255b53;margin-right:6px}#emv-hd-dialog audio{width:100%;height:44px}#emv-hd-dialog .hd-buttons{display:grid;gap:8px;margin:12px 0 8px}#emv-hd-dialog #emv-hd-use{background:linear-gradient(105deg,#f1dfc9,#e2e9da);color:#30281d;border:0}#emv-hd-dialog #emv-hd-again{width:100%;background:transparent;font-size:12px;padding:8px}
#emv-hd-dialog .hd-diagnostics{border-top:1px solid #cbbda6;margin-top:12px;padding-top:12px;font-size:12px;color:#65594b}#emv-hd-dialog summary{cursor:pointer;font-weight:600}#emv-hd-info,#emv-hd-dialog .hd-copy{font-size:11px;color:#65594b;line-height:1.5;overflow-wrap:anywhere;margin:8px 0 0}
#emv-hd-dialog button:focus-visible,#emv-hd-dialog a:focus-visible,#emv-hd-dialog select:focus-visible,#emv-hd-dialog summary:focus-visible,#emv-hd-open:focus-visible{outline:2px solid #255b53!important;outline-offset:3px}
@media(max-width:380px){#emv-hd-dialog{padding:14px;border-radius:18px}#emv-hd-dialog .hd-transport{gap:17px}#emv-hd-dialog .hd-config{gap:7px}#emv-hd-dialog .hd-format{font-size:9px}}
