:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --soft: #f8fafb;
  --line: #d8e0e6;
  --line-strong: #c5d0d8;
  --teal: #087f7c;
  --teal-deep: #066b68;
  --teal-soft: #e9f7f5;
  --coral: #ff5f57;
  --coral-soft: #fff0ef;
  --green: #2fa866;
  --shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
  background: var(--bg);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(100%, 1920px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #cfd7de;
  border-radius: 8px;
  background: var(--surface);
}

.topbar {
  display: flex;
  height: 70px;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  color: var(--teal);
}

.brand-mark svg {
  width: 45px;
  height: 45px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 3;
}

.brand strong {
  color: #151928;
  font-size: clamp(1.72rem, 1.9vw, 2.12rem);
  font-weight: 780;
  line-height: 1;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 31px;
  color: #2f3542;
}

.top-actions a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  font-weight: 500;
}

.top-actions svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 407px;
  min-height: calc(100vh - 71px);
}

.workspace-main {
  min-width: 0;
  padding: 17px 21px 0;
  border-right: 1px solid var(--line);
  background: #ffffff;
}

.export-panel {
  min-width: 0;
  padding: 19px 22px 0;
  background: #fbfcfd;
}

.drop-zone {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  min-height: 162px;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1.5px dashed var(--teal);
  border-radius: var(--radius);
  background: #ffffff;
}

.drop-zone.is-over,
.drop-zone:focus-within {
  background: #f7fffd;
  box-shadow: 0 0 0 3px rgba(8, 127, 124, 0.1);
}

.drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  width: 76px;
  height: 62px;
  color: var(--teal);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.drop-copy strong,
.drop-copy span,
.drop-copy small {
  display: block;
}

.drop-copy strong {
  color: var(--teal);
  font-size: clamp(1.45rem, 1.8vw, 1.92rem);
  font-weight: 780;
  line-height: 1.08;
}

.drop-copy span {
  margin-top: 5px;
  color: #4c5563;
  font-size: 1.08rem;
}

.drop-copy small {
  margin-top: 20px;
  color: #5b6472;
  font-size: 0.98rem;
}

.drop-copy b {
  margin: 0 10px;
  color: #8a95a3;
}

.url-form {
  display: grid;
  grid-template-columns: 250px minmax(220px, 1fr) 130px;
  gap: 10px;
  align-items: center;
  min-height: 51px;
  margin-bottom: 16px;
  padding: 6px 9px 6px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.url-label {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: #111827;
  font-size: 1.04rem;
  font-weight: 700;
}

.url-label svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: #354050;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.url-form input {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 0 20px;
  color: #1f2937;
  border: 0;
  border-left: 1px solid #edf1f4;
  outline: none;
  background: #ffffff;
  font-size: 0.98rem;
}

.url-form input::placeholder {
  color: #9aa3ad;
}

.button,
.select-like {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 650;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #ffffff;
}

.button.outline {
  color: var(--teal-deep);
  border-color: var(--teal);
}

.button.light {
  color: #354050;
  background: #ffffff;
}

.button.small {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.waveform-card,
.ab-panel,
.transpose-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.waveform-card {
  overflow: hidden;
}

.file-header {
  display: flex;
  min-height: 53px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 22px;
  border-bottom: 1px solid #edf1f4;
}

.file-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.file-title > svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  fill: none;
  stroke: #354050;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.file-title strong {
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-dot {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: var(--green);
}

.check-dot svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.file-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #475467;
  font-size: 0.92rem;
  white-space: nowrap;
}

.file-meta #meta-size {
  margin-left: 35px;
}

.icon-menu {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #101828;
  border: 0;
  background: transparent;
}

.icon-menu svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 3;
}

.wave-time-axis {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  padding: 8px 8px 3px;
  color: #475467;
  font-size: 0.88rem;
}

.wave-time-axis span:last-child {
  text-align: right;
}

.waveform-wrap {
  position: relative;
  height: 141px;
  overflow: hidden;
  background: #ffffff;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.trim-edge {
  position: absolute;
  top: 19px;
  bottom: 0;
  width: 20px;
  border: 1px solid rgba(255, 95, 87, 0.8);
  background: rgba(255, 95, 87, 0.08);
}

.trim-left {
  left: 0;
  border-left: 0;
}

.trim-right {
  right: 0;
  border-right: 0;
}

.empty-waveform {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
  background:
    linear-gradient(90deg, rgba(8, 127, 124, 0.05) 1px, transparent 1px) 0 0 / 44px 100%,
    #ffffff;
}

.empty-waveform svg {
  width: 62px;
  height: 50px;
  color: var(--teal);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.empty-waveform strong {
  color: var(--teal);
  font-size: 1.1rem;
}

.empty-waveform span {
  font-size: 0.88rem;
}

.wave-transport {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  min-height: 67px;
  padding: 0 18px;
  border-top: 1px solid #edf1f4;
}

.transport-left,
.transport-right {
  display: flex;
  align-items: center;
  gap: 13px;
}

.transport-right {
  justify-content: flex-end;
}

.play-main {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  background: var(--teal);
}

.play-main svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.icon-soft {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  color: #657180;
  border: 0;
  background: transparent;
}

.icon-soft svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.volume-track,
.ab-volume {
  display: block;
  width: 150px;
  height: 5px;
  border-radius: 999px;
  background: #e4e9ee;
}

.volume-track span,
.ab-volume span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.transport-time {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: #3b4654;
  font-size: 1rem;
}

.transport-time strong {
  color: #101828;
  font-size: 1.1rem;
}

.tabbar {
  display: flex;
  min-height: 48px;
  align-items: end;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.tabbar a {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  gap: 9px;
  color: #374151;
  font-size: 0.98rem;
  border-bottom: 3px solid transparent;
}

.tabbar a.is-active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.tabbar svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ab-panel {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  min-height: 110px;
  overflow: visible;
}

.ab-side {
  min-width: 0;
  padding: 20px 14px 14px;
}

.ab-side + .swap-button + .ab-side {
  border-left: 1px solid var(--line);
}

.ab-side header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.ab-side h2 {
  margin: 0;
  color: var(--teal);
  font-size: 1.1rem;
}

.ab-side.transposed h2 {
  color: var(--coral);
}

.ab-side header span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid var(--teal);
  border-radius: 5px;
}

.ab-side.transposed header span {
  color: var(--coral);
  border-color: var(--coral);
}

.ab-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ab-play {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  color: #101828;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.ab-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.rewind {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #111827;
  font-size: 0.72rem;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
}

.ab-controls progress,
.ab-volume {
  width: min(200px, 100%);
  height: 6px;
}

progress {
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e5e9ef;
}

progress::-webkit-progress-bar {
  background: #e5e9ef;
}

progress::-webkit-progress-value {
  background: var(--teal);
}

progress::-moz-progress-bar {
  background: var(--teal);
}

.swap-button {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  color: #111827;
  border: 1px solid #e5eaf0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.swap-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hidden-stop,
.hidden-download {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.transpose-panel {
  display: grid;
  grid-template-columns: 390px 1fr;
  min-height: 157px;
  margin-top: 15px;
}

.semitone-card,
.preset-card {
  padding: 13px 21px 12px;
}

.semitone-card {
  border-right: 1px solid var(--line);
}

.semitone-card header {
  display: grid;
  gap: 8px;
}

.semitone-card header > span,
.preset-card > span {
  color: var(--teal-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.semitone-readout {
  color: var(--teal);
  font-size: 1.58rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

#semitones {
  width: 100%;
  margin: 14px 0 0;
  accent-color: var(--teal);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: #111827;
  font-size: 0.98rem;
}

.step-actions {
  display: grid;
  grid-template-columns: 62px 62px 1fr 1px;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.step-actions .button {
  min-height: 30px;
}

.step-actions input {
  width: 1px;
  height: 1px;
  opacity: 0;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(38px, 1fr));
  gap: 10px;
  margin-top: 17px;
}

.preset-grid button {
  min-height: 31px;
  color: #111827;
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.preset-grid button.is-active {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.08);
}

.toggle-row {
  display: grid;
  grid-template-columns: 120px 120px 1fr 170px;
  gap: 18px;
  align-items: center;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #111827;
  font-size: 1rem;
}

.toggle input {
  width: 45px;
  height: 24px;
  accent-color: var(--teal);
}

.toggle input:disabled:checked {
  opacity: 1;
}

.trim-times {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #4b5563;
  font-size: 0.96rem;
  text-align: center;
}

.hidden-ranges {
  display: none;
}

.hidden-ranges label {
  display: grid;
  gap: 4px;
  color: #667085;
  font-size: 0.76rem;
}

.hidden-ranges input {
  width: 100%;
  accent-color: var(--teal);
}

.privacy-footer {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 20px;
  color: #586271;
  font-size: 0.95rem;
}

.privacy-footer svg {
  width: 24px;
  height: 24px;
  color: #149457;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.privacy-footer strong {
  color: #11824b;
  font-weight: 700;
}

.privacy-footer span::before {
  content: "•";
  margin-right: 18px;
  color: #8a95a3;
}

.message {
  min-height: 24px;
  color: var(--teal-deep);
  font-size: 0.9rem;
}

.message.error {
  color: #b42318;
}

.rail-section {
  padding: 0 0 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.rail-section h2,
.rail-heading h2 {
  margin: 0;
  color: var(--teal-deep);
  font-size: 1.18rem;
  font-weight: 780;
}

.rail-section p {
  margin: 5px 0 18px;
  color: #4b5563;
  font-size: 0.92rem;
}

.batch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 18px;
}

.batch-grid label {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #111827;
  font-size: 0.94rem;
}

.batch-grid input {
  width: 21px;
  height: 21px;
  accent-color: var(--teal);
}

.estimate-section dl {
  display: grid;
  gap: 14px;
  margin: 0 0 20px;
}

.estimate-section dl div {
  display: grid;
  grid-template-columns: 1fr 172px;
  align-items: center;
  gap: 16px;
}

.estimate-section dt {
  color: #4b5563;
  font-size: 0.94rem;
}

.estimate-section dd {
  margin: 0;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 500;
}

.select-like {
  width: 100%;
  justify-content: space-between;
  color: #111827;
  font-weight: 500;
}

.select-like::after {
  content: "⌄";
  color: #111827;
  font-size: 1.1rem;
}

.export-button {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 780;
  border: 0;
  border-radius: 6px;
  background: var(--coral);
}

.export-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cancel-button {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
  color: #b42318;
  border: 1px solid #f7b4ae;
  border-radius: 6px;
  background: var(--coral-soft);
}

.mp3-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 12px 0 0 !important;
  color: #7a8190 !important;
  font-size: 0.84rem !important;
}

.mp3-note span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid #c8d1d9;
  border-radius: 999px;
}

.rail-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rail-heading button {
  color: var(--teal-deep);
  font-size: 0.86rem;
  text-decoration: underline;
  border: 0;
  background: transparent;
}

.version-list {
  display: grid;
  gap: 10px;
}

.empty-list,
.version-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.empty-list {
  padding: 16px;
  color: #667085;
  text-align: center;
}

.empty-list span {
  display: block;
  color: #111827;
  font-weight: 700;
}

.empty-list small {
  display: block;
  margin-top: 4px;
}

.version-item {
  display: grid;
  gap: 7px;
  padding: 9px 10px;
}

.version-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.version-item strong {
  overflow: hidden;
  color: #111827;
  font-size: 0.88rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-item small {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 0.8rem;
}

.version-item progress {
  width: 100%;
  height: 6px;
}

.version-item a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
}

.version-badge {
  display: grid;
  min-width: 42px;
  height: 28px;
  place-items: center;
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 750;
  border: 1px solid #b9e1dc;
  border-radius: 999px;
  background: var(--teal-soft);
}

.version-badge.complete {
  color: #107b49;
  border-color: #b8e1c9;
  background: #eaf8ef;
}

.trust-panel {
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.trust-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
}

.trust-item svg {
  width: 29px;
  height: 29px;
  color: var(--teal);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  color: var(--teal-deep);
  font-size: 0.94rem;
}

.trust-item span {
  margin-top: 3px;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.3;
}

.rail-footer {
  display: flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #5f91a0;
  font-size: 0.82rem;
}

.rail-footer svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.toast-region {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 20;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  padding: 12px 13px;
  color: #111827;
  font-size: 0.88rem;
  line-height: 1.35;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--teal);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.toast.error {
  border-left-color: #b42318;
}

.toast.success {
  border-left-color: var(--green);
}

@media (max-width: 1320px) {
  .studio-grid {
    grid-template-columns: minmax(0, 1fr) 430px;
  }

  .drop-zone {
    min-height: 170px;
  }

  .transpose-panel {
    grid-template-columns: 320px 1fr;
  }

  .preset-grid {
    grid-template-columns: repeat(6, minmax(42px, 1fr));
  }

  .toggle-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1060px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .workspace-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .export-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .rail-section {
    margin-bottom: 0;
  }

  .queue-section,
  .trust-panel,
  .rail-footer {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .app-shell {
    border-radius: 0;
  }

  .topbar {
    height: auto;
    min-height: 74px;
    align-items: flex-start;
    padding: 15px 16px;
  }

  .brand {
    gap: 12px;
  }

  .brand-mark svg {
    width: 32px;
    height: 32px;
  }

  .brand strong {
    font-size: 1.38rem;
  }

  .top-actions {
    gap: 12px;
  }

  .top-actions span {
    display: none;
  }

  .workspace-main,
  .export-panel {
    padding: 14px;
  }

  .drop-zone {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 176px;
    text-align: center;
  }

  .upload-icon {
    width: 56px;
    height: 46px;
    margin: 0 auto;
  }

  .drop-copy strong {
    font-size: 1.42rem;
  }

  .drop-copy small {
    margin-top: 16px;
    line-height: 1.45;
  }

  .url-form {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .url-label {
    font-size: 0.96rem;
  }

  .url-form input {
    border: 1px solid var(--line);
    border-radius: 7px;
  }

  .file-header,
  .file-meta,
  .wave-transport,
  .tabbar,
  .ab-panel,
  .transpose-panel,
  .toggle-row,
  .export-panel,
  .estimate-section dl div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .file-header {
    gap: 10px;
    padding: 13px;
  }

  .file-meta {
    gap: 6px;
    white-space: normal;
  }

  .file-meta #meta-size {
    margin-left: 0;
  }

  .wave-time-axis {
    grid-template-columns: repeat(5, 1fr);
    font-size: 0.76rem;
  }

  .wave-time-axis span:nth-child(n + 6) {
    display: none;
  }

  .waveform-wrap {
    height: 180px;
  }

  .wave-transport {
    gap: 12px;
    padding: 14px;
  }

  .transport-left,
  .transport-right {
    justify-content: center;
  }

  .volume-track {
    width: 110px;
  }

  .tabbar {
    gap: 0;
  }

  .tabbar a {
    justify-content: center;
    min-height: 44px;
    font-size: 0.88rem;
  }

  .tabbar a span {
    display: none;
  }

  .ab-panel {
    gap: 0;
  }

  .ab-side {
    padding: 18px 14px;
  }

  .ab-side + .swap-button + .ab-side {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .swap-button {
    display: none;
  }

  .ab-controls {
    flex-wrap: wrap;
  }

  .transpose-panel {
    margin-top: 14px;
  }

  .semitone-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .preset-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .privacy-footer {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 15px 0;
    font-size: 0.84rem;
  }

  .privacy-footer span::before {
    margin-right: 9px;
  }

  .batch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .toast-region {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
  }
}
