/* ==========================================================================
   ADowngrader — Dark Edit-Suite Design System & Non-Distracting Tile Motion
   ========================================================================== */

:root {
  --bg: #08090c;
  --bg-elevated: #0f1116;
  --surface: rgba(17, 19, 25, 0.88);
  --surface-solid: #12151c;
  --surface-2: #171b24;
  --surface-3: #1e232f;
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f5f8;
  --text-soft: #cbd2df;
  --muted: #8892a6;
  --muted-dim: #5e6778;

  /* Iconic Adobe Signal Red */
  --adobe-red: #eb1000;
  --adobe-red-hover: #ff2919;
  --adobe-red-soft: rgba(235, 16, 0, 0.13);
  --adobe-red-border: rgba(255, 59, 43, 0.34);

  /* Semantic Studio Indicators */
  --ok: #10b981;
  --ok-bg: rgba(16, 185, 129, 0.11);
  --ok-border: rgba(16, 185, 129, 0.34);
  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, 0.11);
  --warn-border: rgba(245, 158, 11, 0.34);
  --err: #ef4444;
  --err-bg: rgba(239, 68, 68, 0.12);
  --err-border: rgba(239, 68, 68, 0.36);

  --radius-xl: 20px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --font-display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 72px;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Ambient Background Tile Wall (App Icons + Downgrade Symbols)
   Whisper-quiet GPU compositor drift, radially masked behind main workspace
   ========================================================================== */

.tile-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Radial center calm zone: keeps main workspace crystal-clear while wings breathe */
  -webkit-mask-image: radial-gradient(
    ellipse 54% 58% at 50% 38%,
    rgba(0, 0, 0, 0.16) 0%,
    rgba(0, 0, 0, 0.38) 52%,
    rgba(0, 0, 0, 0.92) 100%
  );
  mask-image: radial-gradient(
    ellipse 54% 58% at 50% 38%,
    rgba(0, 0, 0, 0.16) 0%,
    rgba(0, 0, 0, 0.38) 52%,
    rgba(0, 0, 0, 0.92) 100%
  );
  opacity: 0.42;
  transition: opacity 0.45s ease;
}

body.is-dragging .tile-stage {
  opacity: 0.66;
}

body.motion-paused .tile-track {
  animation-play-state: paused !important;
}

.tile-plane {
  position: absolute;
  top: -28%;
  left: -22%;
  width: 144%;
  height: 156%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  transform: rotate(-12deg);
  transform-origin: center center;
}

.tile-row {
  display: flex;
  width: max-content;
  overflow: visible;
}

.tile-track {
  display: flex;
  gap: 16px;
  will-change: transform;
}

.tile-row:nth-child(odd) .tile-track {
  animation: tileDriftLeft 96s linear infinite;
}

.tile-row:nth-child(even) .tile-track {
  animation: tileDriftRight 112s linear infinite;
}

.tile-row:nth-child(3n) .tile-track {
  animation-duration: 128s;
}

@keyframes tileDriftLeft {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes tileDriftRight {
  0% { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.bg-tile {
  width: 58px;
  height: 58px;
  border-radius: 13px;
  background: rgba(20, 23, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
  position: relative;
}

/* App icon tile variants in background (subtle signature tint) */
.bg-tile.t-app {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}
.bg-tile.t-pr { color: rgba(226, 178, 255, 0.52); border-color: rgba(200, 150, 240, 0.14); background: rgba(42, 24, 56, 0.34); }
.bg-tile.t-ae { color: rgba(182, 198, 255, 0.52); border-color: rgba(145, 168, 248, 0.14); background: rgba(24, 30, 58, 0.34); }
.bg-tile.t-ai { color: rgba(255, 168, 76, 0.56);  border-color: rgba(255, 154, 0, 0.16);   background: rgba(54, 31, 12, 0.36); }
.bg-tile.t-ps { color: rgba(88, 196, 255, 0.55);  border-color: rgba(49, 168, 255, 0.16);  background: rgba(12, 37, 58, 0.36); }
.bg-tile.t-id { color: rgba(255, 108, 145, 0.54); border-color: rgba(255, 51, 102, 0.16);  background: rgba(56, 16, 30, 0.36); }
.bg-tile.t-au { color: rgba(72, 228, 192, 0.52);  border-color: rgba(0, 228, 187, 0.15);   background: rgba(11, 46, 40, 0.35); }
.bg-tile.t-an { color: rgba(255, 122, 98, 0.54);  border-color: rgba(255, 75, 43, 0.16);   background: rgba(56, 20, 15, 0.36); }
.bg-tile.t-me { color: rgba(184, 196, 214, 0.48); border-color: rgba(148, 163, 184, 0.13); background: rgba(26, 31, 40, 0.36); }
.bg-tile.t-mg { color: rgba(255, 92, 77, 0.58);   border-color: rgba(235, 16, 0, 0.19);    background: rgba(54, 14, 12, 0.38); }

/* Downgrade / Version step tiles in background */
.bg-tile.t-down {
  color: rgba(255, 86, 72, 0.50);
  border-color: rgba(235, 16, 0, 0.13);
  background: rgba(28, 16, 18, 0.34);
}
.bg-tile.t-down svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bg-tile.t-ver {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(168, 179, 198, 0.46);
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.02em;
}
.bg-tile.t-ver em {
  font-style: normal;
  display: block;
  font-size: 0.58rem;
  color: rgba(255, 96, 82, 0.56);
}

@media (prefers-reduced-motion: reduce) {
  .tile-track {
    animation: none !important;
  }
}

/* Soft ambient top glow (warm crimson studio darkroom safe-light, super subtle) */
.ambient-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 300px at 50% -40px, rgba(235, 16, 0, 0.085), transparent 72%),
    linear-gradient(180deg, rgba(8, 9, 12, 0.2) 0%, rgba(8, 9, 12, 0.55) 100%);
}

/* ==========================================================================
   Main Content Shell
   ========================================================================== */

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 840px;
}

/* Top Navigation & Brand Header */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: inherit;
}

.adobe-pun-mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(180deg, #ff1f0f 0%, #d90d00 100%);
  box-shadow:
    0 10px 26px -6px rgba(235, 16, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.adobe-pun-mark svg {
  width: 28px;
  height: 28px;
  display: block;
}

.adobe-pun-mark .a-arrow {
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .adobe-pun-mark {
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px -6px rgba(235, 16, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.brand:hover .adobe-pun-mark .a-arrow,
body.step-pulse .adobe-pun-mark .a-arrow {
  transform: translateY(2.2px);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-wordmark-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
}

.brand-wordmark .pun-a {
  color: #ff2c1d;
  font-weight: 900;
}

.ver-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #86efac;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.24);
  padding: 6px 11px;
  border-radius: 8px;
  white-space: nowrap;
}

.privacy-badge svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.icon-btn,
.lang-btn {
  background: var(--surface-solid);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  height: 34px;
  padding: 0 11px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.icon-btn {
  padding: 0 9px;
}

.icon-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.icon-btn:hover,
.lang-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}

/* ==========================================================================
   Hero Headline Block
   ========================================================================== */

.hero-intro {
  margin-bottom: 22px;
}

.hero-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 8px;
}

.hero-intro h1 .quote-err {
  color: #ff6b60;
  font-weight: 800;
}

.hero-lead {
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 68ch;
}

/* ==========================================================================
   Primary Converter Card
   ========================================================================== */

.card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow:
    0 26px 64px -16px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Target Version Selector Bar */
.target-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.target-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.target-label-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.target-label-group svg {
  width: 17px;
  height: 17px;
  stroke: #ff4436;
  stroke-width: 2.2;
  fill: none;
  flex-shrink: 0;
}

.target-bar label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.select-wrap {
  position: relative;
  flex: 1;
  max-width: 340px;
}

.target-bar select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 36px 9px 12px;
  font-family: var(--font-sans);
  font-size: 0.89rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.target-bar select:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.target-bar select:focus-visible {
  border-color: var(--adobe-red-hover);
  box-shadow: 0 0 0 3px rgba(235, 16, 0, 0.2);
}

.select-chevron {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 15px;
  height: 15px;
  stroke: var(--muted);
  stroke-width: 2.2;
  fill: none;
}

.schema-readout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  font-family: var(--font-mono);
  font-size: 0.71rem;
  color: var(--muted);
}

.schema-readout span {
  background: rgba(8, 9, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--text-soft);
}

.schema-readout .schema-title {
  background: none;
  border: none;
  padding: 0 2px 0 0;
  color: var(--muted-dim);
  font-weight: 600;
}

/* Dropzone */
.dropzone {
  border: 1.5px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 36px 20px 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
  background: rgba(8, 9, 12, 0.52);
  position: relative;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.dragover {
  border-color: var(--adobe-red-hover);
  background: rgba(235, 16, 0, 0.055);
  outline: none;
}

.dropzone.dragover {
  transform: scale(1.006);
}

.dropzone input[type="file"] {
  display: none;
}

.drop-icon-shell {
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: #ff4233;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.dropzone:hover .drop-icon-shell,
.dropzone.dragover .drop-icon-shell {
  transform: translateY(2px);
  background: rgba(235, 16, 0, 0.14);
  border-color: var(--adobe-red-border);
}

.drop-icon-shell svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2.1;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drop-title {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
  color: var(--text);
}

.drop-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.fmt {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.demo-strip {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.77rem;
  color: var(--muted);
}

.demo-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.demo-btn:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

/* ==========================================================================
   File Queue & App Badges
   ========================================================================== */

.queue-wrap {
  display: none;
  margin-top: 20px;
}

.queue-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.queue-count-badge {
  font-weight: 600;
  color: var(--text-soft);
}

.text-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-btn:hover {
  color: var(--text);
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 14px;
  flex-wrap: wrap;
  transition: border-color 0.15s ease;
}

.file-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.file-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

/* Authentic 2-letter Creative Cloud Tile Badges */
.app-tag {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.tag-mg { background: rgba(235, 16, 0, 0.16);   color: #ff8075; border: 1px solid rgba(255, 75, 60, 0.36); }
.tag-pr { background: rgba(153, 153, 255, 0.14); color: #d5c8ff; border: 1px solid rgba(175, 160, 255, 0.34); }
.tag-ae { background: rgba(140, 165, 255, 0.14); color: #c7d6ff; border: 1px solid rgba(145, 170, 255, 0.34); }
.tag-ai { background: rgba(255, 154, 0, 0.15);   color: #ffbe66; border: 1px solid rgba(255, 154, 0, 0.38); }
.tag-ps { background: rgba(49, 168, 255, 0.15);  color: #7dd3fc; border: 1px solid rgba(49, 168, 255, 0.38); }
.tag-an { background: rgba(255, 75, 43, 0.15);   color: #ffa28f; border: 1px solid rgba(255, 75, 43, 0.38); }
.tag-au { background: rgba(0, 228, 187, 0.13);   color: #6ee7b7; border: 1px solid rgba(0, 228, 187, 0.34); }
.tag-id { background: rgba(255, 51, 102, 0.15);  color: #fda4af; border: 1px solid rgba(255, 51, 102, 0.36); }
.tag-me { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.34); }
.tag-uk { background: rgba(239, 68, 68, 0.14);   color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.35); }

.file-meta {
  min-width: 0;
  flex: 1;
}

.file-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-name {
  font-size: 0.89rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted-dim);
  flex-shrink: 0;
}

.file-ver {
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 1px;
}

.file-ver b {
  color: #ff7a6e;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.file-ver b.ok-badge {
  color: #6ee7b7;
}

.file-ver b.warn-badge {
  color: #fcd34d;
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Tactile Studio Buttons */
.btn-sm {
  background: linear-gradient(180deg, #ef1a0b 0%, #d41104 100%);
  color: #fff;
  border: 1px solid rgba(255, 110, 96, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  padding: 7px 12px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-sm:hover {
  background: linear-gradient(180deg, #ff2a1b 0%, #e31607 100%);
}

.btn-sm:active {
  transform: translateY(1px);
}

.btn-sm.ghost {
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  box-shadow: none;
  color: var(--text-soft);
}

.btn-sm.ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn-remove {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted-dim);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.14s ease;
}

.btn-remove:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.batch-bar {
  display: none;
  margin-top: 14px;
}

.btn-batch {
  width: 100%;
  background: linear-gradient(180deg, #f01b0c 0%, #d41002 100%);
  color: #fff;
  border: 1px solid rgba(255, 115, 102, 0.36);
  box-shadow:
    0 12px 28px -10px rgba(235, 16, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  padding: 13px 18px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-batch:hover {
  background: linear-gradient(180deg, #ff2c1d 0%, #e21607 100%);
  box-shadow:
    0 16px 32px -10px rgba(235, 16, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-batch:active {
  transform: translateY(1px);
}

/* Status Toast */
.toast {
  display: none;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.83rem;
  line-height: 1.45;
}
.toast.ok { display: block; background: var(--ok-bg); border: 1px solid var(--ok-border); color: #6ee7b7; }
.toast.warn { display: block; background: var(--warn-bg); border: 1px solid var(--warn-border); color: #fcd34d; }
.toast.err { display: block; background: var(--err-bg); border: 1px solid var(--err-border); color: #fca5a5; }

/* ==========================================================================
   Format Capabilities Strip (3 Discipline Columns)
   ========================================================================== */

.section-block {
  margin-top: 32px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-head span {
  font-size: 0.78rem;
  color: var(--muted);
}

.info-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.info-card-apps {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.mini-app {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text);
}

.info-card p {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ==========================================================================
   Interactive Adobe Version & Schema Matrix Table
   ========================================================================== */

.matrix-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.matrix-scroll {
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.matrix-table th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.035em;
  padding: 11px 11px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.matrix-table td {
  padding: 10px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.matrix-table tbody tr {
  cursor: pointer;
  transition: background 0.14s ease;
}

.matrix-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.matrix-table tbody tr.is-active {
  background: rgba(235, 16, 0, 0.1);
}

.matrix-table tbody tr.is-active td:first-child {
  color: #ff5b4f;
}

.matrix-table tbody tr:last-child td {
  border-bottom: none;
}

.matrix-table td:first-child {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
}

/* ==========================================================================
   Compatibility Rescue Guide (FAQ Details Accordion)
   ========================================================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  list-style: none;
  padding: 13px 16px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}

.faq-item[open] summary::after {
  content: "−";
  color: #ff4c3e;
}

.faq-body {
  padding: 0 16px 14px;
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.6;
}

.faq-body code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text-soft);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ff4c3e;
  text-decoration: underline;
}

.disclaimer {
  font-size: 0.71rem;
  color: var(--muted-dim);
  max-width: 68ch;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 760px) {
  .info-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    padding: 18px 14px 56px;
  }
  .card {
    padding: 16px;
  }
  .privacy-badge {
    display: none;
  }
  .adobe-pun-mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }
  .adobe-pun-mark svg {
    width: 24px;
    height: 24px;
  }
  .brand-wordmark {
    font-size: 1.2rem;
  }
  .brand-tag {
    display: none;
  }
  .target-row-main {
    flex-direction: column;
    align-items: stretch;
  }
  .select-wrap {
    max-width: 100%;
  }
  .file-item {
    flex-direction: column;
    align-items: stretch;
  }
  .file-actions {
    justify-content: flex-end;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }
}

@media (max-width: 380px) {
  .ver-chip {
    display: none;
  }
}
