.trim-empty {
  max-width: 900px;
  margin: 36px auto 60px;
  text-align: center;
}
.trim-art {
  display: block;
  width: 70px;
  margin: 0 auto 20px;
}
.trim-empty h1 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -1.4px;
  margin: 0 0 20px;
}
.trim-empty > p {
  color: #758197;
  font-size: 16px;
  line-height: 1.8;
}
.trim-drop {
  background: white;
  border: 1.5px dashed #ccd3e9;
  border-radius: 18px;
  padding: 46px 20px;
  margin: 28px 0 18px;
}
.trim-drop.dragging {
  background: #eceafb;
  border-color: #8a75bf;
}
.trim-drop p,
.trim-note {
  color: #7c879c;
  font-size: 13px;
  line-height: 1.8;
}
.trim-primary {
  display: inline-block;
  border: 0;
  border-radius: 9px;
  padding: 15px 20px;
  background: #5862cb;
  color: white;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.trim-primary:disabled {
  opacity: 0.45;
  cursor: default;
}
.trim-text-button {
  background: none;
  border: 0;
  color: #666bb6;
  padding: 8px 0;
  cursor: pointer;
}
.trim-filebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid #e0e4ed;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 20px;
}
.trim-filebar > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.trim-filebar p {
  color: #7a8599;
  font-size: 13px;
  margin: 6px 0 0;
}
.trim-filebar > div:last-child {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.trim-filebar button,
#trim-cancel {
  border: 1px solid #dce1ed;
  background: white;
  border-radius: 7px;
  padding: 9px 12px;
  color: #63718a;
  cursor: pointer;
}
.trim-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
.trim-editor,
.trim-options {
  min-width: 0;
  background: white;
  border: 1px solid #e0e4ed;
  border-radius: 16px;
  overflow: hidden;
}
.trim-pane-head {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #e8eaf1;
}
.trim-pane-head h2,
.trim-options h2,
.trim-result h2 {
  font-size: 17px;
  margin: 0;
}
.trim-pane-head span {
  color: #8390a5;
  font-size: 12px;
}
.trim-wave-wrap {
  padding: 24px 24px 0;
}
#trim-wave {
  display: block;
  width: 100%;
  height: 190px;
  border-radius: 9px;
  touch-action: none;
  cursor: crosshair;
}
#trim-wave:focus-visible {
  outline: 3px solid #5862cb;
  outline-offset: 4px;
}
#trim-wave[aria-disabled='true'] {
  cursor: default;
}
#trim-selection {
  color: #67758c;
  font-size: 13px;
}
.trim-hint {
  color: #7c879a;
  font-size: 12px;
  line-height: 1.8;
}
.trim-editor > .trim-hint {
  margin: 16px 24px 24px;
}
.trim-options {
  padding: 24px;
}
.trim-options h2 {
  margin-bottom: 22px;
}
.trim-options fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  min-width: 0;
}
.trim-options label {
  display: grid;
  gap: 9px;
  font-size: 13px;
  color: #53617c;
}
.trim-options input {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.trim-time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.trim-options .trim-primary,
#trim-cancel {
  width: 100%;
  margin-top: 18px;
}
.trim-result {
  border-top: 1px solid #e8eaf1;
  padding: 24px;
}
.trim-result p {
  font-size: 13px;
  color: #748198;
  line-height: 1.8;
}
.trim-result audio {
  display: block;
  width: 100%;
  margin: 20px 0;
}
.trim-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.trim-result-actions > a:last-child {
  color: #5862ad;
  font-size: 13px;
}
.trim-status {
  color: #76839a;
  margin: 20px 0;
  line-height: 1.7;
  font-size: 13px;
}
@media (max-width: 850px) {
  .trim-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .trim-options {
    order: -1;
  }
  .trim-empty {
    margin-top: 24px;
  }
}
@media (max-width: 480px) {
  .trim-filebar {
    flex-wrap: wrap;
    padding: 16px;
  }
  .trim-pane-head,
  .trim-wave-wrap,
  .trim-options,
  .trim-result {
    padding: 18px;
  }
  .trim-pane-head {
    flex-wrap: wrap;
  }
  .trim-editor > .trim-hint {
    margin: 0 18px 18px;
  }
}
