@font-face {
  font-family: "GDT Pixel";
  src: url("./font/ZLabsRoundPix_12px_M_CN.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #101214;
  --panel: #171a1d;
  --panel-strong: #1f2428;
  --text: #f3f0df;
  --muted: #a9b4b0;
  --line: rgba(243, 240, 223, 0.14);
  --mint: #60d394;
  --cyan: #5bc0eb;
  --amber: #f4b860;
  --rose: #e26d6d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "GDT Pixel", "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(91, 192, 235, 0.12), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(244, 184, 96, 0.12), transparent 24%),
    var(--bg);
  background-size: 24px 24px, 24px 24px, auto, auto, auto;
  color: var(--text);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.tool-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}

.back-home:hover,
.back-home:focus-visible {
  color: var(--text);
  border-color: var(--mint);
  outline: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--text);
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  color: #111416;
  box-shadow: 5px 5px 0 #000;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 18px;
}

.brand-text small,
.eyebrow,
.stat-label,
.tool-status,
.friend-links span {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.hero {
  min-height: min(620px, calc(100svh - 76px));
  display: grid;
  grid-template-columns: minmax(460px, 0.86fr) minmax(500px, 1.14fr);
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
  padding: 40px 0 48px;
}

.hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: var(--mint);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 0.96;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.16;
}

h3 {
  font-size: 19px;
  line-height: 1.35;
}

p {
  color: var(--muted);
  line-height: 1.9;
  font-size: 15px;
}

.hero-subtitle {
  max-width: 620px;
  color: #d7ddd6;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 2px solid var(--text);
  box-shadow: 4px 4px 0 #000;
}

.button.primary {
  background: var(--amber);
  color: #15120d;
}

.button.ghost {
  background: var(--panel);
}

.button:hover,
.button:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #000;
  outline: none;
}

.hero-art {
  margin: 0;
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.hero-art img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.resource-hero {
  padding: 62px 0 46px;
}

.resource-hero h1 {
  margin: 14px 0 20px;
  font-size: clamp(38px, 5vw, 72px);
}

.resource-hero p {
  max-width: 820px;
  color: #d7ddd6;
}

.model-section {
  padding-top: 56px;
}

.model-share-section {
  background: linear-gradient(90deg, rgba(244, 184, 96, 0.06), rgba(96, 211, 148, 0.04));
}

.model-share-inner {
  padding-left: clamp(22px, 4vw, 58px);
}

.model-share-layout {
  max-width: 720px;
}

.model-share-copy {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 16px;
  border: 1px solid var(--line);
  background: rgba(23, 26, 29, 0.78);
  padding: 22px;
}

.model-share-copy p {
  max-width: 540px;
}

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

.model-card {
  display: grid;
  align-content: start;
  border: 1px solid var(--line);
  background: rgba(23, 26, 29, 0.86);
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.model-card:hover,
.model-card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(96, 211, 148, 0.6);
  background: #20262a;
}

.model-viewer {
  display: block;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: #0b0d0f;
  aspect-ratio: 16 / 10;
}

.model-viewer iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.model-info {
  padding: 14px;
}

.model-meta-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.model-meta-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.model-meta-list dt,
.model-meta-list dd {
  margin: 0;
}

.model-meta-list dt {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.model-meta-list dd {
  color: var(--text);
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.tool-categories {
  display: grid;
  gap: 34px;
}

.tool-category {
  display: grid;
  gap: 14px;
}

.category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.category-heading h3 {
  color: var(--text);
}

.category-heading span {
  color: var(--mint);
  font-size: 12px;
}

.tool-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-card,
.stat-panel,
.comment-host {
  border: 1px solid var(--line);
  background: rgba(23, 26, 29, 0.86);
  padding: 22px;
}

.tool-card,
.stat-panel {
  min-height: 182px;
  display: grid;
  align-content: start;
  gap: 13px;
}

.pixel-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 30px;
  background: var(--panel-strong);
  color: var(--cyan);
  border: 1px solid var(--line);
}

.tool-card {
  position: relative;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(96, 211, 148, 0.6);
  background: #20262a;
  outline: none;
}

.tool-status {
  width: max-content;
  padding: 4px 7px;
  border: 1px solid rgba(244, 184, 96, 0.45);
  color: var(--amber);
}

.tool-status.live {
  border-color: rgba(96, 211, 148, 0.55);
  color: var(--mint);
}

.tool-card.is-live {
  border-color: rgba(96, 211, 148, 0.34);
  background: linear-gradient(135deg, rgba(96, 211, 148, 0.1), rgba(23, 26, 29, 0.9));
}

.stats-section {
  background: linear-gradient(90deg, rgba(96, 211, 148, 0.06), rgba(91, 192, 235, 0.04));
  padding-inline: clamp(22px, 4vw, 58px);
}

.stat-panel strong {
  font-size: clamp(26px, 4vw, 48px);
  line-height: 1.1;
}

.visitor-badge-wrap {
  min-height: 36px;
  display: flex;
  align-items: center;
}

.visitor-badge-wrap img {
  image-rendering: auto;
}

.comment-host {
  min-height: 220px;
}

.comment-placeholder {
  display: grid;
  gap: 12px;
  min-height: 180px;
  place-content: center;
  text-align: center;
  border: 1px dashed rgba(243, 240, 223, 0.24);
  padding: 24px;
}

.comment-placeholder code {
  color: var(--amber);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 46px;
  border-top: 1px solid var(--line);
}

.friend-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.friend-links a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.friend-links a:hover,
.friend-links a:focus-visible {
  color: var(--text);
  border-color: var(--cyan);
  outline: none;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .model-share-inner {
    padding-left: 0;
  }

  .stats-section {
    padding-inline: 0;
  }

  .tool-header-left {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .hero-art {
    order: -1;
  }

  .tool-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .site-footer {
    flex-direction: column;
  }

  .tool-data-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .friend-links {
    justify-content: flex-start;
  }
}

.tool-shell {
  width: min(1420px, calc(100% - 32px));
}

.splitter-page {
  padding: 38px 0 56px;
}

.tool-data-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}

.tool-data-footer strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
}

.tool-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 12px;
  min-width: min(560px, 100%);
}

.tool-data-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(23, 26, 29, 0.86);
}

.tool-data-card span {
  color: var(--muted);
  font-size: 12px;
}

.tool-data-card strong {
  margin: 0;
  font-size: 28px;
  color: var(--text);
}

.tool-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.tool-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(36px, 5vw, 72px);
}

.tool-hero p {
  max-width: 820px;
  color: #d7ddd6;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 260px;
}

.tool-meta span,
.view-chip,
.tool-help-button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  padding: 8px 10px;
  font-size: 12px;
}

.tool-help-button {
  cursor: pointer;
  font-family: inherit;
}

.tool-help-button:hover,
.tool-help-button:focus-visible {
  color: var(--text);
  border-color: var(--mint);
  outline: none;
}

.tutorial-dialog {
  width: min(520px, calc(100% - 32px));
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 0;
  box-shadow: var(--shadow);
}

.tutorial-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.tutorial-card {
  padding: 22px;
}

.tutorial-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.tutorial-head h2 {
  font-size: 22px;
}

.tutorial-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--rose);
  cursor: pointer;
  font: inherit;
}

.tutorial-card ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}

.splitter-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  min-height: 720px;
  padding-top: 22px;
}

.audio-layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  min-height: 640px;
  padding-top: 22px;
}

.splitter-sidebar,
.preview-workspace,
.tool-panel {
  border: 1px solid var(--line);
  background: rgba(23, 26, 29, 0.86);
}

.splitter-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
}

.tool-panel {
  padding: 16px;
}

.panel-title,
.workspace-head,
.range-row,
.preview-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel-title {
  margin-bottom: 12px;
  color: var(--text);
}

.tiny-button,
.range-remove,
.preview-card button {
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.tiny-button {
  padding: 6px 9px;
  font-size: 12px;
}

.tiny-button.accent {
  color: var(--mint);
  border-color: rgba(96, 211, 148, 0.42);
}

.tiny-button:disabled,
.range-remove:disabled,
.full-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.drop-zone {
  min-height: 156px;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(243, 240, 223, 0.2);
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%);
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
  cursor: pointer;
  color: var(--muted);
  text-align: center;
  padding: 14px;
}

.drop-zone.is-dragging {
  border-color: var(--mint);
  color: var(--mint);
  background-color: rgba(96, 211, 148, 0.08);
}

.batch-drop-zone {
  min-height: 128px;
}

.audio-drop-zone {
  min-height: 150px;
}

.drop-zone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

#source-thumb {
  max-height: 150px;
  object-fit: contain;
  image-rendering: pixelated;
}

.file-list {
  display: grid;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  margin-top: 12px;
  padding-right: 4px;
  scrollbar-color: var(--mint) #0b0d0f;
  scrollbar-width: thin;
}

.file-list p {
  font-size: 12px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 9px;
}

.file-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.file-item button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--rose);
  cursor: pointer;
  font: inherit;
}

.setting-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.setting-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.setting-field-head strong {
  color: var(--mint);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #101214;
  color: var(--text);
  padding: 10px;
  font-size: 12px;
}

.toggle-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--mint);
}

.setting-field input,
.setting-field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #101214;
  color: var(--text);
  padding: 10px;
  font: inherit;
}

.setting-field input:focus,
.setting-field select:focus {
  border-color: var(--mint);
  outline: none;
}

.setting-field input[type="range"] {
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--mint);
}

.setting-field input[type="color"] {
  height: 38px;
  padding: 4px;
  cursor: pointer;
}

.setting-note {
  margin-top: 10px;
  font-size: 12px;
}

.audio-file-meta {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--muted);
  padding: 10px;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.time-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.range-list {
  display: grid;
  gap: 12px;
  max-height: 492px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-color: var(--mint) #0b0d0f;
  scrollbar-width: thin;
}

.range-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-left: 4px solid var(--range-color);
  background: var(--panel-strong);
}

.range-row label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.range-name,
.range-row input[type="number"] {
  min-width: 0;
  border: 1px solid transparent;
  background: #101214;
  color: var(--text);
  padding: 8px;
  font: inherit;
}

.range-name {
  width: 100%;
}

.range-row input[type="number"] {
  width: 80px;
}

.range-name:focus,
.range-row input[type="number"]:focus {
  outline: none;
  border-color: var(--range-color);
}

.range-remove {
  width: 28px;
  height: 28px;
  color: var(--rose);
}

.range-track {
  position: relative;
  height: 8px;
  overflow: hidden;
  background: #0b0d0f;
}

.range-track span {
  position: absolute;
  inset-block: 0;
  background: var(--range-color);
}

.action-panel {
  display: grid;
  gap: 12px;
}

.full-button {
  width: 100%;
}

.action-panel p {
  font-size: 12px;
}

.preview-workspace {
  min-width: 0;
  padding: 18px;
}

.audio-workspace {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
}

.converter-workspace {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
}

.workspace-head {
  margin-bottom: 18px;
}

.workspace-head h2 {
  margin-top: 8px;
}

.waveform-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.zoom-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(16, 18, 20, 0.72);
}

.zoom-control strong {
  color: var(--mint);
  font-size: 12px;
  font-weight: 400;
  text-align: right;
}

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

.converter-progress-wrap {
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0d0f;
}

.converter-progress-wrap span,
.conversion-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mint);
  transition: width 160ms linear;
}

.conversion-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 320px;
}

.conversion-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.9fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 14px;
}

.conversion-row.is-done {
  border-color: rgba(96, 211, 148, 0.42);
}

.conversion-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.conversion-main strong,
.conversion-main span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversion-main strong {
  color: var(--text);
  font-size: 14px;
}

.conversion-main span,
.conversion-actions em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.conversion-progress {
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0d0f;
}

.conversion-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 74px;
}

.conversion-actions button {
  border: 1px solid var(--mint);
  background: rgba(96, 211, 148, 0.1);
  color: var(--text);
  padding: 7px 10px;
  cursor: pointer;
  font: inherit;
}

.converter-empty {
  min-height: 320px;
}

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

.preview-card,
.empty-preview {
  min-height: 260px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.preview-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.preview-card-head {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.preview-card-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.preview-card-head em {
  color: var(--mint);
  font-style: normal;
  font-size: 12px;
}

.preview-card button {
  padding: 5px 8px;
  color: var(--text);
  border-color: color-mix(in srgb, var(--range-color, var(--mint)) 60%, transparent);
}

.preview-image-wrap,
.empty-preview {
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%);
  background-color: #0f1114;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-size: 20px 20px;
}

.preview-image-wrap img {
  max-height: 220px;
  object-fit: contain;
  image-rendering: pixelated;
}

.trim-card {
  min-height: 360px;
}

.pending-output {
  color: var(--muted);
  font-size: 12px;
}

.trim-output-layout {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) minmax(0, 1.28fr);
  gap: 12px;
  padding: 12px;
}

.trim-output-layout .preview-image-wrap {
  min-height: 260px;
  border: 1px solid var(--line);
}

.trim-params {
  align-content: start;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(16, 18, 20, 0.72);
  padding: 12px;
}

.trim-params span {
  color: var(--muted);
  font-size: 11px;
}

.trim-params strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.empty-preview {
  grid-column: 1 / -1;
  align-content: center;
  gap: 10px;
  text-align: center;
}

.waveform-shell {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #151820;
  background-size: 24px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: var(--mint) rgba(255, 255, 255, 0.08);
}

#waveform-canvas {
  width: auto;
  height: 320px;
  min-width: 100%;
  min-height: 320px;
  display: block;
  cursor: default;
  user-select: none;
}

#waveform-canvas.is-adjusting {
  cursor: ew-resize;
}

.waveform-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
}

#audio-player {
  width: 100%;
  filter: saturate(0.8);
}

@media (max-width: 1050px) {
  .splitter-layout {
    grid-template-columns: 1fr;
  }

  .audio-layout {
    grid-template-columns: 1fr;
  }

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

  .batch-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tool-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-meta {
    justify-content: flex-start;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .trim-output-layout {
    grid-template-columns: 1fr;
  }

  .conversion-row {
    grid-template-columns: 1fr;
  }

  .conversion-actions {
    justify-content: flex-start;
  }

  .tool-data-grid {
    grid-template-columns: 1fr;
  }

  .model-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .site-nav a {
    padding: 9px 8px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .tool-card,
  .stat-panel,
  .comment-host {
    padding: 18px;
  }
}
