#shipment-voice-open{min-height:42px;padding:8px 12px;border:0;border-radius:8px;background:#148765;color:white;font-weight:800;font-size:14px;cursor:pointer;white-space:nowrap}
#shipment-voice-result{padding:10px;background:#e0f6eb;color:#076648;border-radius:8px}
#shipment-voice-dialog{box-sizing:border-box;border:0;border-radius:16px;width:calc(100% - 24px);max-width:700px;max-height:90vh;padding:22px;color:#17303a;background:white;font:16px/1.6 system-ui}
#shipment-voice-dialog::backdrop{background:#102b3780}
#shipment-voice-dialog .sv-cleanup{color:#765000;background:#fff3d8;border-left:4px solid #bb8500;padding:12px;font-size:13px;white-space:pre-line}
#shipment-voice-dialog *{box-sizing:border-box}#shipment-voice-dialog h2{font-size:19px;margin:0}#shipment-voice-dialog h3{font-size:17px;margin:18px 0 8px}#shipment-voice-dialog p{margin:8px 0 16px}
#shipment-voice-dialog header{display:flex;justify-content:space-between;align-items:center;gap:10px}
#shipment-voice-dialog button{font:inherit;font-weight:700;cursor:pointer;border:1px solid #b8ccca;border-radius:9px;min-height:44px;padding:9px 14px;background:white;color:#17303a}
#shipment-voice-dialog button:disabled{opacity:.5;cursor:default}#shipment-voice-dialog .sv-primary{background:#148765;border-color:#148765;color:white}#shipment-voice-dialog label{display:block;font-weight:650;margin-bottom:6px}
#shipment-voice-dialog textarea{width:100%;resize:vertical;border:1px solid #acbec5;border-radius:9px;padding:12px;font:16px/1.7 system-ui;min-height:140px}
#shipment-voice-dialog .sv-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}#shipment-voice-dialog .sv-hint{font-size:13px;color:#576e78}
#shipment-voice-dialog .sv-error{color:#ae2b20;background:#fff0ed;padding:12px;border-left:4px solid #ae2b20;white-space:pre-line}
#shipment-voice-dialog .sv-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:center;padding:7px 0;border-bottom:1px solid #e3eaed}
#shipment-voice-dialog .sv-head{font-size:12px;color:#576e78}#shipment-voice-dialog input,#shipment-voice-dialog select{width:100%;min-width:0;font:16px system-ui;padding:10px;border:1px solid #bed0d4;border-radius:7px}#shipment-voice-dialog input{text-align:right}
#shipment-voice-dialog [data-voice-status]{min-height:24px;font-size:14px}#shipment-voice-dialog [data-voice-total]{font-weight:700}
#shipment-voice-dialog .sv-mic-icon{display:inline-flex;align-items:center;justify-content:center;width:1.7em;height:1.7em;border-radius:50%;vertical-align:middle}
#shipment-voice-dialog [data-voice-state="listening"],#shipment-voice-dialog [data-voice-state="waiting"]{background:#a82727;border-color:#a82727;color:#fff;box-shadow:0 0 0 3px #a8272720}
#shipment-voice-dialog [data-voice-state="listening"] .sv-mic-icon,#shipment-voice-dialog [data-voice-state="waiting"] .sv-mic-icon{background:#fff2;animation:sv-mic-pulse 1.6s ease-in-out infinite}
#shipment-voice-dialog [data-voice-state="starting"],#shipment-voice-dialog [data-voice-state="reconnecting"]{background:#fff2cd;border-color:#aa7400;color:#654200}
#shipment-voice-dialog [data-voice-state="stopping"]{background:#edf0f1;color:#3e5056}
@keyframes sv-mic-pulse{0%,100%{transform:scale(1);opacity:1;box-shadow:0 0 0 0 #ffffff50}50%{transform:scale(1.1);opacity:.7;box-shadow:0 0 0 5px #ffffff00}}
@media(prefers-reduced-motion:reduce){#shipment-voice-dialog .sv-mic-icon{animation:none!important}}
@media(max-width:700px){.shipment-voice-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.shipment-voice-heading h3{font-size:15px;white-space:nowrap}#shipment-voice-open{font-size:13px}.shipment-voice-heading .hybrid-counter{grid-column:1 / -1;justify-self:start;font-size:11px}}
@media(max-width:420px){#shipment-voice-dialog{padding:16px}}
#shipment-product-options{margin-top:16px}
#shipment-product-options summary{font-weight:800;cursor:pointer;padding:10px 0}
#shipment-input-modes:not([hidden]){display:flex;gap:8px;margin-bottom:12px}
#shipment-input-modes button{flex:1;min-height:44px;padding:8px;border:1px solid #a9c7bf;border-radius:8px;background:white;color:#17303a;font-weight:750}
#shipment-input-modes button[aria-pressed="true"]{background:#148765;color:white;border-color:#148765}
#shipment-voice-dialog.sv-inline{position:static;width:100%;max-width:none;max-height:none;margin:0;padding:0;font-size:14px}
#shipment-voice-dialog.sv-inline header[hidden]{display:none}
#shipment-voice-dialog.sv-inline textarea{min-height:100px;padding:8px}
#shipment-voice-dialog.sv-inline .sv-actions{margin:8px 0;gap:6px}
#shipment-voice-dialog.sv-inline p{margin:6px 0 10px}
#shipment-voice-dialog.sv-inline [data-voice-status]:empty{display:none}
@media(max-width:760px){#shipment-product-options{margin-top:10px;border-top:1px solid #dce5e7}#shipment-product-options .hybrid-fields{gap:8px}#shipment-product-options .hybrid-field{font-size:12px}#shipment-product-options select{min-height:38px;padding:6px;font-size:14px}}
