.ais-trim-open {display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 13px;border:1px solid #d8e5de;border-radius:12px;background:#f1f7f3;color:#173e37;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.ais-trim-open:hover {background:#e4f1e9;border-color:#80ac9b}
.ais-trim-open svg,.ais-trim-mark svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ais-trim-dialog {border:0;border-radius:24px;padding:0;width:min(780px,calc(100vw - 30px));max-height:calc(100dvh - 30px);color:#173e37;background:#fcfdfb;box-shadow:0 26px 100px #0a281a45;font-family:inherit;overflow:auto}
.ais-trim-dialog::backdrop {background:#0d251e99;backdrop-filter:blur(5px)}
.ais-trim-header {display:flex;justify-content:space-between;align-items:flex-start;gap:15px;padding:23px 26px;border-bottom:1px solid #e1eae3;background:linear-gradient(120deg,#f3f8f1,#fff)}
.ais-trim-heading {display:flex;gap:13px;align-items:center;min-width:0}
.ais-trim-mark {width:45px;height:45px;display:grid;place-items:center;background:#173e37;color:#fff;border-radius:14px;flex:none}
.ais-trim-header h2 {font-size:20px;line-height:1.5;margin:0;font-weight:800}
.ais-trim-header p {font-size:13px;color:#678076;margin:3px 0 0;overflow-wrap:anywhere}
.ais-trim-close {border:0;background:#eaf1eb;border-radius:10px;padding:9px 12px;color:#315649;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}
.ais-trim-content {padding:20px 26px 24px}
.ais-trim-status {min-height:24px;font-size:12px;color:#56776b;margin-bottom:13px;overflow-wrap:anywhere}
.ais-trim-status.is-error {color:#a82d24}
.ais-trim-wave-shell {padding:17px 15px 9px;border:1px solid #d9e8dc;border-radius:18px;background:#f2f7f2}
.ais-trim-rail {position:relative;height:148px;touch-action:none;user-select:none;margin-inline:8px}
.ais-trim-rail canvas {width:100%;height:148px;display:block;pointer-events:none}
.ais-trim-outside {position:absolute;top:0;bottom:0;background:#f2f7f2c9;pointer-events:none}
.ais-trim-outside#ais-trim-outside-before {left:0}
.ais-trim-selection {position:absolute;top:0;bottom:0;border-top:1px solid #87b399;border-bottom:1px solid #87b399;background:#699f8320;pointer-events:none}
.ais-trim-fade-area {position:absolute;top:0;bottom:0;background:linear-gradient(90deg,transparent,#c8972b45);clip-path:polygon(0 0,100% 50%,0 100%);pointer-events:none}
.ais-trim-handle {position:absolute;top:-4px;height:156px;width:16px;padding:0;transform:translateX(-50%);border:0;border-radius:6px;background:#245d47;cursor:ew-resize;touch-action:none;box-shadow:0 0 0 2px #ffffffaa;z-index:3}
.ais-trim-handle::after {content:'';position:absolute;top:65px;left:5px;width:4px;height:24px;border-left:1px solid #fff;border-right:1px solid #fff;opacity:.75}
.ais-trim-handle:focus-visible {outline:3px solid #b69234;outline-offset:3px}
.ais-trim-end {background:#997a2c}
.ais-trim-playhead {position:absolute;top:0;bottom:0;width:2px;background:#ed653f;box-shadow:0 0 0 1px #fff;pointer-events:none;z-index:2}
.ais-trim-axis {display:flex;justify-content:space-between;margin-top:10px;color:#819689;font-size:11px;font-variant-numeric:tabular-nums}
.ais-trim-fields {display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:21px}
.ais-trim-field {display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#5a7568}
.ais-trim-field input {width:100%;box-sizing:border-box;border:1px solid #d5e1d8;border-radius:11px;padding:11px 12px;background:#fff;color:#173e37;font:inherit;font-size:15px;outline:none}
.ais-trim-field input[type=number] {direction:ltr;font-variant-numeric:tabular-nums}
.ais-trim-field input:focus {border-color:#42896d;box-shadow:0 0 0 3px #49836617}
.ais-trim-summary {margin:13px 0 0;font-size:12px;color:#4d7562;font-variant-numeric:tabular-nums}
.ais-trim-help {font-size:12px;line-height:1.75;color:#899486;margin:8px 0 15px}
.ais-trim-preview-row {display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding-bottom:20px;border-bottom:1px solid #e6ece4}
.ais-trim-preview {border:0;border-radius:11px;padding:11px 19px;background:#e6f2e8;color:#285c41;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.ais-trim-check {display:flex;align-items:center;gap:8px;color:#647a6c;font-size:12px;cursor:pointer}
.ais-trim-check input {accent-color:#245d47;width:16px;height:16px}
.ais-trim-name {margin-top:18px}
.ais-trim-quality {font-size:12px;line-height:1.7;color:#748879;margin:13px 0}
.ais-trim-save-row {display:flex;gap:10px}
.ais-trim-save-row button {flex:1;border:0;background:#173e37;color:#fff;border-radius:12px;font:inherit;font-size:14px;font-weight:700;min-height:46px;cursor:pointer}
.ais-trim-save-row button:last-child {background:#9b7d35}
.ais-trim-save-row button:hover {filter:brightness(1.1)}
.ais-trim-dialog button:disabled {opacity:.45;cursor:wait}
.ais-trim-local-note {font-size:11px;line-height:1.7;color:#8a988b;margin:12px 0 0}
@media(max-width:600px){.ais-trim-header{padding:18px}.ais-trim-header h2{font-size:17px}.ais-trim-content{padding:17px}.ais-trim-fields{gap:8px}.ais-trim-field{font-size:11px}.ais-trim-field input{padding:9px 7px;font-size:14px}.ais-trim-open span{display:none}.ais-trim-wave-shell{padding-inline:10px}.ais-trim-heading{gap:9px}.ais-trim-mark{width:37px;height:37px}}
@media(prefers-reduced-motion:reduce){.ais-trim-dialog::backdrop{backdrop-filter:none}}

.ais-trim-save-action{width:100%;border:0;border-radius:12px;background:#173e37;color:#fff;min-height:46px;font:inherit;font-weight:700;cursor:pointer}.ais-trim-format-picker{margin-top:14px;padding:16px;background:#edf4ee;border:1px solid #d8e6db;border-radius:15px}.ais-trim-format-picker[hidden]{display:none}.ais-trim-format-picker h3{font-size:13px;margin:0 0 12px}.ais-trim-save-row strong,.ais-trim-save-row small{display:block}.ais-trim-save-row small{font-weight:400;font-size:11px;opacity:.82;margin:5px 0 9px}.ais-trim-save-row strong{margin-top:9px}
