/* Shared visual language for the Tonalux workspaces. */
.studio-page {
  --studio-accent: #a1e4c8;
  --studio-soft: rgba(161, 228, 200, 0.085);
  --studio-line: rgba(202, 216, 223, 0.12);
  --studio-muted: #929ca8;
  width: min(1200px, calc(100% - 80px));
  margin: 0 auto;
  padding: 126px 0 72px;
}
.studio-page [hidden] {
  display: none !important;
}
.studio-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
  animation: studio-appear 0.7s both;
}
.studio-eyebrow,
.studio-label,
.studio-section-label,
.studio-tool-nav,
.mc-engine,
.mc-privacy,
.mc-progress-label {
  font-family: "JetBrains Mono", monospace;
}
.studio-eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--studio-accent);
  margin-bottom: 24px;
}
.studio-heading h1 {
  font-size: clamp(42px, 5.1vw, 68px);
  line-height: 1.03;
  font-weight: 400;
  letter-spacing: -0.055em;
}
.studio-accent {
  color: var(--studio-accent);
}
.studio-intro {
  max-width: 530px;
  margin-top: 24px;
  color: #a5adb7;
  font-size: 15px;
  line-height: 1.7;
}
.studio-heading-aside {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 5px;
}
.studio-label {
  color: #8394a4;
  letter-spacing: 0.16em;
  font-size: 9px;
}
.studio-local {
  color: #b4c9be;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: flex-end;
}
.studio-local i {
  width: 6px;
  height: 6px;
  background: var(--studio-accent);
  border-radius: 50%;
  box-shadow: 0 0 12px #a1e4c822;
}
.studio-tool-nav {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--studio-line);
  margin-bottom: 34px;
  overflow: auto;
}
.studio-tool-nav a {
  display: block;
  color: #8e99a4;
  font-size: 10px;
  text-decoration: none;
  padding: 14px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.studio-tool-nav a:hover,
.studio-tool-nav a[aria-current="page"] {
  color: var(--studio-accent);
  border-color: var(--studio-accent);
}
.studio-section-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--studio-muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 23px;
}
.studio-section-label span:first-child {
  color: #c4cdd4;
}
.mc-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 345px;
  gap: 24px;
  align-items: start;
}
.mc-source,
.mc-output {
  min-width: 0;
  background: #0e1217;
  border: 1px solid var(--studio-line);
  border-radius: 16px;
  padding: 26px;
}
.mc-output {
  background: linear-gradient(150deg, #151d20, #0e1217 75%);
  position: sticky;
  top: 98px;
}
.mc-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 245px;
  border: 1px dashed #a1e4c83e;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 0%, #a1e4c809, transparent 75%);
  padding: 28px;
  cursor: pointer;
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.25s;
  position: relative;
}
.mc-drop-zone:hover,
.mc-drop-zone.drag-over {
  background: #a1e4c80d;
  border-color: var(--studio-accent);
}
.mc-drop-zone.drag-over {
  transform: scale(0.99);
}
.mc-drop-zone[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.6;
}
.mc-drop-zone svg {
  width: 44px;
  height: 44px;
  color: var(--studio-accent);
  margin-bottom: 20px;
}
.mc-drop-zone h2 {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.mc-drop-zone p {
  font-size: 13px;
  color: var(--studio-muted);
  margin-top: 7px;
}
.mc-drop-zone p span {
  color: var(--studio-accent);
}
.mc-drop-zone small {
  color: #7d8c97;
  font-size: 10px;
  margin-top: 22px;
  font-family: "JetBrains Mono", monospace;
}
#mcFileInput {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}
.mc-queue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 25px 0 16px;
}
.mc-queue-toolbar > span {
  color: #b9c4cc;
  font-size: 12px;
}
.mc-queue-toolbar > div {
  display: flex;
  gap: 16px;
}
.mc-queue-toolbar button,
.mc-engine button {
  padding: 4px 0;
  background: none;
  border: 0;
  color: #99a5af;
  font: 11px inherit;
  cursor: pointer;
}
.mc-queue-toolbar button:hover,
.mc-engine button:hover {
  color: var(--studio-accent);
}
.mc-queue-toolbar button:disabled {
  opacity: 0.4;
  cursor: default;
}
.mc-empty {
  min-height: 132px;
  border-top: 1px solid var(--studio-line);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 25px;
}
.mc-empty > span {
  color: #b4bfc8;
  font-size: 14px;
}
.mc-empty p {
  max-width: 280px;
  color: #7e8b98;
  font-size: 12px;
  margin-top: 6px;
}
.mc-file {
  display: flex;
  gap: 13px;
  padding: 18px 0;
  border-top: 1px solid var(--studio-line);
  align-items: center;
  animation: studio-appear 0.3s both;
}
.mc-file-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 48px;
  border: 1px solid #a1e4c81f;
  border-radius: 7px;
  background: #a1e4c806;
  color: var(--studio-accent);
  font:
    9px "JetBrains Mono",
    monospace;
  flex-shrink: 0;
}
.mc-file-detail {
  flex: 1;
  min-width: 0;
}
.mc-file h3 {
  color: #e7edf0;
  font-size: 13px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.mc-file-meta {
  font:
    9px/1.8 "JetBrains Mono",
    monospace;
  color: #8b98a4;
  margin-top: 3px;
}
.mc-file-status {
  color: #71828e;
  font-size: 11px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.mc-file[data-status="done"] .mc-file-status {
  color: var(--studio-accent);
}
.mc-file[data-status="error"] .mc-file-status {
  color: #ffaba4;
}
.mc-file[data-status="converting"] .mc-file-icon {
  animation: studio-pulse 1.7s infinite;
}
.mc-file-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.mc-remove {
  color: #78858f;
  font-size: 23px;
  font-weight: 200;
  background: none;
  border: 0;
  cursor: pointer;
  width: 30px;
  height: 36px;
}
.mc-download {
  color: var(--studio-accent);
  text-decoration: none;
  font-size: 11px;
  padding: 7px 9px;
  background: #a1e4c80c;
  border: 1px solid #a1e4c828;
  border-radius: 6px;
  transition: background 0.2s;
}
.mc-download:hover {
  background: #a1e4c822;
}
.mc-engine {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: space-between;
  border-top: 1px solid var(--studio-line);
  padding-top: 18px;
  color: #82909c;
  font-size: 8px;
}
#mcEngineState[data-state="ready"] {
  color: var(--studio-accent);
}
#mcEngineState[data-state="error"] {
  color: #ffaba4;
}
.mc-output h2 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.mc-output section {
  padding: 0;
}
.mc-output h3 {
  font-size: 11px;
  color: #b0bac3;
  font-weight: 400;
  margin: 21px 0 10px;
}
#mcSettings section + section {
  border-top: 1px solid var(--studio-line);
  padding-top: 24px;
  margin-top: 24px;
}
.mc-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mc-mode-grid button,
.mc-format,
.mc-presets button {
  background: #0b1015;
  border: 1px solid var(--studio-line);
  border-radius: 7px;
  color: #9ba7b1;
  padding: 10px 8px;
  font:
    11px "Outfit",
    sans-serif;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.mc-mode-grid button:hover,
.mc-format:hover,
.mc-presets button:hover {
  border-color: #a1e4c86b;
  color: #d9eee6;
}
.mc-mode-grid button[aria-pressed="true"],
.mc-format[aria-pressed="true"] {
  border-color: #a1e4c8a1;
  background: #a1e4c813;
  color: var(--studio-accent);
}
.mc-hint {
  color: #91a0ab;
  font-size: 11px;
  line-height: 1.7;
  margin: 12px 0 19px;
}
.mc-formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.mc-format {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  padding: 11px 0;
}
.mc-select-label {
  font-size: 11px;
  color: #adb9c3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
}
.mc-select-label select {
  border: 1px solid var(--studio-line);
  background: #0b1015;
  color: #d9e4eb;
  border-radius: 6px;
  padding: 9px 12px;
  font:
    11px "JetBrains Mono",
    monospace;
}
.mc-dimensions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-top: 20px;
}
.mc-dimensions label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #95a6b2;
  font-size: 10px;
}
.mc-dimensions input {
  width: 100%;
  background: #0b1015;
  border: 1px solid var(--studio-line);
  border-radius: 7px;
  color: #d9e4eb;
  padding: 10px;
  font:
    12px "JetBrains Mono",
    monospace;
}
.mc-dimensions > span {
  padding-bottom: 8px;
  color: #91a0ab;
}
.mc-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a6b2ba;
  font-size: 11px;
  margin: 12px 0;
}
.mc-check input {
  accent-color: var(--studio-accent);
}
.mc-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mc-presets button {
  padding: 6px 10px;
  font-size: 10px;
}
.mc-convert-btn {
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%;
  background: var(--studio-accent);
  color: #0e2920;
  border: 1px solid var(--studio-accent);
  padding: 14px;
  margin-top: 25px;
  font:
    500 14px "Outfit",
    sans-serif;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.mc-convert-btn:hover:not(:disabled) {
  background: #c3f3de;
  box-shadow: 0 4px 24px #a1e4c819;
  transform: translateY(-1px);
}
.mc-convert-btn:disabled {
  color: #6d7f7b;
  border-color: #31433f;
  background: #20302b;
  cursor: default;
}
.mc-cancel {
  width: 100%;
  border: 1px solid var(--studio-line);
  background: none;
  color: #c3cdd4;
  padding: 10px;
  margin-top: 10px;
  border-radius: 8px;
  cursor: pointer;
}
.mc-progress {
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: #283c34;
  margin-top: 22px;
}
#mcProgressFill {
  height: 100%;
  width: 0;
  background: var(--studio-accent);
  transition: width 0.18s linear;
}
#mcProgressFill.indeterminate {
  width: 40% !important;
  animation: studio-progress 1.5s linear infinite;
}
.mc-progress-label {
  color: #9eb7ad;
  font-size: 9px;
  margin-top: 9px;
}
.mc-status {
  color: #a3b1ba;
  font-size: 12px;
  line-height: 1.65;
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.mc-status[data-state="error"] {
  color: #ffaba4;
}
.mc-status[data-state="success"] {
  color: var(--studio-accent);
}
.mc-privacy {
  font-size: 8px;
  line-height: 1.8;
  text-align: center;
  color: #7e918b;
  margin-top: 21px;
}
.studio-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  margin: 58px 0 20px;
  padding-top: 26px;
  border-top: 1px solid var(--studio-line);
}
.studio-notes > div > span {
  font:
    10px "JetBrains Mono",
    monospace;
  color: var(--studio-accent);
}
.studio-notes h2 {
  color: #c0cbd3;
  font-size: 14px;
  font-weight: 400;
  margin: 12px 0 8px;
}
.studio-notes p {
  font-size: 12px;
  color: #8c99a4;
  line-height: 1.75;
}
@keyframes studio-appear {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes studio-pulse {
  50% {
    border-color: #a1e4c880;
  }
}
@keyframes studio-progress {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(350%);
  }
}
@media (max-width: 960px) {
  .studio-page {
    width: calc(100% - 40px);
  }
  .mc-workspace {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 15px;
}
  .mc-source,
  .mc-output {
    padding: 20px;
  }
  .mc-file {
    flex-wrap: wrap;
  }
  .mc-file-actions {
    margin-left: 55px;
  }
}
@media (max-width: 720px) {
  .studio-page {
    padding-top: 104px;
    width: calc(100% - 32px);
  }
  .studio-heading {
    gap: 20px;
    margin-bottom: 25px;
  }
  .studio-heading-aside {
    display: none;
  }
  .studio-heading h1 {
    font-size: 45px;
  }
  .studio-intro {
    font-size: 14px;
  }
  .studio-tool-nav {
    gap: 24px;
    margin-bottom: 23px;
  }
  .mc-workspace {
    grid-template-columns: 1fr;
}
  .mc-output {
    position: static;
  }
  .mc-source,
  .mc-output {
    border-radius: 12px;
    padding: 20px;
  }
  .mc-drop-zone {
    min-height: 220px;
    padding: 20px 10px;
  }
  .mc-drop-zone h2 {
    font-size: 19px;
  }
  .studio-section-label {
    font-size: 8px;
  }
  .studio-notes {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 35px;
  }
  .mc-file-actions {
    margin-left: 0;
  }
  .mc-queue-toolbar > div {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .studio-page * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.mc-engine a {
  color: var(--studio-accent);
  text-underline-offset: 3px;
}
/* The existing Tonalux tool layout: shared hero, tool cards, compact workspace. */
.studio-page {
  --studio-accent: #22c55e;
  --studio-line: var(--border);
  --studio-muted: var(--text-muted);
  width: min(1100px, 100%);
  padding: 0 24px 40px;
  margin: 0 auto;
}
.studio-label,
.studio-section-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.converter-page {
  max-width: 1100px;
  padding: 0 24px 30px;
}
/* Files on the left, settings, convert button and downloads on the right, always in view. */
.mc-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}
.mc-source,
.mc-output {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.mc-output {
  position: sticky;
  top: 96px;
  margin-top: 0;
}
.mc-drop-zone {
  min-height: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 20px;
}
.mc-drop-zone h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
}
.mc-drop-zone p {
  font-size: 12px;
  color: var(--text-muted);
}
.mc-drop-zone small {
  margin-top: 10px;
  font-size: 10px;
  color: var(--text-muted);
}
.mc-queue-toolbar {
  margin-top: 14px;
  padding: 0;
  font-size: 13px;
}
.mc-queue {
  max-height: 460px;
  overflow: auto;
}
.mc-empty {
  padding: 20px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}
.mc-empty span {
  font-size: 13px;
  color: var(--text-muted);
}
.mc-empty p {
  font-size: 11px;
  margin-top: 6px;
}
.mc-engine {
  margin: 10px 0;
  font-size: 10px;
  gap: 8px;
}
.mc-output section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin: 0 0 10px;
}
.mc-output h2 {
  font:
    600 12px "JetBrains Mono",
    monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
#mcVideoSettings h2 {
  color: var(--accent);
}
#mcAudioSettings h2 {
  color: #f59e0b;
}
.mc-mode-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mc-mode-grid button {
  padding: 8px 10px;
  font-size: 12px;
  flex: 1;
}
.mc-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mc-formats button {
  min-width: 64px;
  padding: 8px 12px;
}
#mcVideoSettings button[aria-pressed="true"] {
  background: #4a9eff20;
  border-color: #4a9eff;
  color: #8cc4ff;
}
#mcAudioSettings button[aria-pressed="true"] {
  background: #f59e0b15;
  border-color: #f59e0b;
  color: #fbbf24;
}
.mc-hint {
  font-size: 12px;
  color: var(--text-muted);
}
.mc-convert-btn {
  background: #22c55e;
  color: #07150d;
  font-size: 14px;
  padding: 12px;
  font-weight: 700;
  border-radius: 8px;
}
.mc-privacy {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 16px;
}
.converter-notes {
  padding: 20px 0 0;
  display: grid;
  gap: 14px;
}
.converter-notes > div > span {
  display: none;
}
.converter-notes h2 {
  font-size: 14px;
  font-weight: 600;
}
.converter-notes p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 4px;
}
@media (max-width: 768px) {
  .studio-page {
    width: 100%;
    padding: 0 12px 30px;
  }
  .converter-page {
    padding: 0 20px 30px;
  }
  .mc-source,
  .mc-output {
    padding: 0;
  }
  .mc-drop-zone {
    min-height: 0;
    padding: 32px 16px;
  }
  .mc-drop-zone h2 {
    font-size: 15px;
  }
}

/* Downloads: clear buttons instead of small text links. */
.mc-download {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #07150d;
  background: #22c55e;
  border-color: #22c55e;
}
.mc-download:hover { background: #4ade80; }
.mc-results {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
}
.mc-results h3 {
  margin: 0 0 10px;
  color: #86efac;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mc-result-main,
.mc-result-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: #22c55e;
  color: #07150d;
  font: 700 14px "Outfit", sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.mc-result-main:hover,
.mc-result-all:hover { background: #4ade80; }
.mc-result-main .mc-result-name::before { content: "\2193  Download  "; }
.mc-result-all { justify-content: center; margin-bottom: 8px; }
.mc-result-link {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #bbf7d0;
  font-size: 12px;
  text-decoration: none;
}
.mc-result-link:hover { color: #fff; }
.mc-result-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-result-size { flex-shrink: 0; opacity: 0.75; font-weight: 500; }
@media (max-width: 900px) {
  .mc-workspace { grid-template-columns: 1fr; }
  .mc-output { position: static; margin-top: 16px; }
}
