:root {
  color-scheme: dark;
  --bg: #101010;
  --surface: #171717;
  --surface-2: #1e1e1e;
  --surface-3: #262626;
  --text: #f3f3ef;
  --muted: #9f9f98;
  --faint: #6e6e68;
  --line: #30302d;
  --line-strong: #44443f;
  --accent: #ff00e5;
  --accent-text: #10130b;
  --info: #77c9ff;
  --warning: #ffcf66;
  --danger: #ff7777;
  --success: #8de59c;
  --format-vst3: #6cb6ff;
  --format-vst2: #79d69f;
  --format-au: #ffd166;
  --format-max: #ff8a3d;
  --format-rack: #b79aff;
  --format-ableton: #b9c0c7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f2ee;
  --surface: #fff;
  --surface-2: #f8f8f5;
  --surface-3: #ecece7;
  --text: #161615;
  --muted: #62625d;
  --faint: #8b8b84;
  --line: #dcdcd4;
  --line-strong: #c5c5bc;
  --accent: #ff00e5;
  --accent-text: #0d1905;
  --info: #1667a8;
  --warning: #a35e00;
  --danger: #b62828;
  --success: #167b2a;
  --format-vst3: #1769aa;
  --format-vst2: #167b45;
  --format-au: #9a5b00;
  --format-max: #b34700;
  --format-rack: #6541ad;
  --format-ableton: #555b61;
  --shadow: 0 24px 70px rgba(35, 35, 25, 0.1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
a {
  color: inherit;
}

.app-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand h1 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.brand-mark {
  width: 45px;
  height: 36px;
  object-fit: contain;
}
:root[data-theme="light"] .brand-mark {
  filter: brightness(0);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.text-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.text-link:hover {
  color: var(--text);
}
.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.hero {
  padding: 74px 0 92px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 76px;
  align-items: center;
}
.hero-copy h2 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 16px 0 26px;
  max-width: 650px;
}
.hero-copy h2 span {
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 500;
}
.hero-copy > p {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
}
.eyebrow {
  color: var(--accent);
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 0.14em;
}

.drop-zone {
  min-height: 430px;
  padding: 52px 36px;
  border: 1px dashed var(--line-strong);
  border-radius: 22px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(145deg, transparent, rgba(185, 255, 79, 0.08)) border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
  transition: 0.18s ease;
  outline: none;
}
.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.dragging {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--surface-2);
}
.drop-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  font: 700 18px var(--mono);
  letter-spacing: -0.06em;
  background: var(--surface-3);
  margin-bottom: 24px;
}
.drop-zone h3 {
  margin: 0 0 4px;
  font-size: 22px;
}
.drop-zone > p {
  margin: 0 0 24px;
  color: var(--muted);
}
.drop-zone small {
  color: var(--faint);
  margin-top: 20px;
}
.primary-button,
.secondary-button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  transition: 0.15s ease;
  font-weight: 650;
}
.primary-button {
  background: var(--accent);
  color: var(--accent-text);
}
.primary-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.secondary-button {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}
.secondary-button:hover {
  background: var(--surface-3);
  border-color: var(--line-strong);
}
.drop-zone .secondary-button {
  margin-top: 10px;
  background: transparent;
}
.support-note {
  grid-column: 2;
  color: var(--warning);
  font-size: 13px;
  margin-top: -55px;
}

.processing,
.error-panel {
  min-height: 420px;
  margin: 66px 0 100px;
  padding: 50px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: center;
  gap: 26px;
}
.processing:not([hidden]),
.error-panel:not([hidden]) {
  display: flex;
}
.processing h2,
.error-panel h2 {
  margin: 0 0 6px;
}
.processing p,
.error-panel p {
  color: var(--muted);
  margin: 0;
}
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.progress-track {
  position: absolute;
  left: 50px;
  right: 50px;
  bottom: 50px;
  height: 3px;
  background: var(--line);
  overflow: hidden;
}
.processing {
  position: relative;
}
.progress-track div {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.24s ease;
}
.status-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 20px var(--mono);
  flex: 0 0 auto;
}
.status-icon.error {
  color: var(--danger);
  border: 1px solid var(--danger);
}
.error-panel .primary-button {
  margin-top: 24px;
}
.error-panel details {
  margin-top: 18px;
  color: var(--muted);
}
.error-panel pre {
  max-height: 220px;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  white-space: pre-wrap;
}

.report {
  padding: 54px 0 100px;
}
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 34px;
}
.report-header h2 {
  margin: 10px 0 5px;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.report-header p {
  margin: 0;
  color: var(--muted);
}
.report-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 560px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.summary-card {
  padding: 22px;
  min-height: 112px;
  border-right: 1px solid var(--line);
}
.summary-card:last-child {
  border-right: 0;
}
.summary-card .value {
  font: 500 26px/1 var(--mono);
  letter-spacing: -0.04em;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.summary-card .label {
  color: var(--muted);
  font-size: 12px;
}

.report-toolbar {
  margin: 24px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.search-box {
  flex: 1;
  max-width: 620px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}
.search-box:focus-within {
  border-color: var(--line-strong);
}
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}
.search-box input::placeholder {
  color: var(--faint);
}
.toggle-control {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.help-tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 1px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font: 700 10px var(--mono);
  cursor: help;
}
.help-tip::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 30;
  top: calc(100% + 9px);
  right: -8px;
  width: max-content;
  max-width: min(280px, 75vw);
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-3);
  box-shadow: var(--shadow);
  color: var(--text);
  font: 500 12px/1.45 var(--sans);
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s ease;
  pointer-events: none;
}
.help-tip:hover::after,
.help-tip:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.summary-card.has-tooltip,
.badge.has-tooltip {
  cursor: help;
}
.summary-card:focus-visible,
.help-tip:focus-visible,
.badge.has-tooltip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.toggle-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle-ui {
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  position: relative;
}
.toggle-ui::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
  left: 2px;
  top: 2px;
  transition: 0.18s ease;
}
.toggle-control input:checked + .toggle-ui {
  background: var(--accent);
  border-color: var(--accent);
}
.toggle-control input:checked + .toggle-ui::after {
  transform: translateX(16px);
  background: var(--accent-text);
}

.section-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0 18px;
  scrollbar-width: thin;
}
.section-nav a {
  flex: 0 0 auto;
  text-decoration: none;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  background: var(--surface);
}
.section-nav a:hover {
  color: var(--text);
  border-color: var(--line-strong);
}
.search-empty-state {
  margin-top: 18px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.report-section {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  scroll-margin-top: 16px;
}
.section-heading {
  width: 100%;
  padding: 21px 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  text-align: left;
}
.section-heading:hover {
  background: var(--surface-2);
}
.section-heading h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.section-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.section-title h3 {
  white-space: nowrap;
}
.section-help {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  font: 700 9px var(--mono);
}
.section-warning {
  color: var(--warning);
  font-size: 14px;
  font-weight: 600;
}
.section-heading .count {
  font: 500 12px var(--mono);
  color: var(--text);
  min-width: 28px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  background: var(--surface-2);
}
.section-heading-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-chevron {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.16s ease;
}
.report-section.collapsed .section-heading {
  border-bottom-color: transparent;
}
.report-section.collapsed .section-chevron {
  transform: rotate(0);
}
.report-section.collapsed .section-body {
  display: none;
}
.section-body {
  padding: 0;
}
.section-controls {
  display: flex;
  justify-content: flex-start;
  padding: 13px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
}
.empty-state {
  padding: 30px 22px;
  color: var(--muted);
}
.section-controls .toggle-control {
  margin-left: auto;
}

.data-table-wrap {
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th {
  color: var(--muted);
  font: 600 10px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface-2);
  position: sticky;
  top: 0;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: var(--surface-2);
}
.data-table .mono {
  font-family: var(--mono);
  font-size: 12px;
}
.data-table .muted {
  color: var(--muted);
}
.table-primary {
  font-size: 14px;
  font-weight: 700;
}
.external-file-name {
  color: var(--warning);
}
.table-secondary {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.path-cell {
  max-width: 480px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-table th:nth-child(3),
.media-table td:nth-child(3) {
  width: 100px;
  min-width: 100px;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  color: var(--muted);
  font: 600 10px var(--mono);
  white-space: nowrap;
}
.badge.accent {
  color: var(--accent);
}
.badge.warning {
  color: var(--warning);
}
.badge.success {
  color: var(--success);
}
.badge.off {
  color: var(--faint);
  text-decoration: line-through;
}
.badge[class*="format-"] {
  --format-color: var(--muted);
  color: var(--format-color);
  background: color-mix(in srgb, var(--format-color) 12%, var(--surface-3));
  border-color: color-mix(in srgb, var(--format-color) 38%, var(--line));
}
.badge.format-vst3 {
  --format-color: var(--format-vst3);
}
.badge.format-vst2 {
  --format-color: var(--format-vst2);
}
.badge.format-au {
  --format-color: var(--format-au);
}
.badge.format-max {
  --format-color: var(--format-max);
}
.badge.format-rack {
  --format-color: var(--format-rack);
}
.badge.format-ableton {
  --format-color: var(--format-ableton);
}

.track-list {
  display: grid;
}
.track-row {
  border-bottom: 1px solid var(--line);
}
.track-row:last-child {
  border-bottom: 0;
}
.track-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 50px minmax(180px, 1fr) 90px 150px 96px;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  color: var(--text);
  border: 0;
  cursor: pointer;
  text-align: left;
}
.track-summary:hover {
  background: var(--surface-2);
}
.track-number {
  color: var(--faint);
  font: 500 11px var(--mono);
}
.track-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
}
.track-name span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.track-type,
.track-counts,
.track-state {
  color: var(--muted);
  font-size: 12px;
}
.track-state {
  text-align: right;
}
.track-chevron {
  display: inline-block;
  transition: transform 0.16s ease;
  margin-left: 5px;
}
.track-row.open .track-chevron {
  transform: rotate(90deg);
}
.track-details {
  display: none;
  padding: 0 20px 20px 80px;
  background: var(--surface-2);
}
.track-row.open .track-details {
  display: block;
}
.track-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
}
.track-meta {
  padding: 13px;
  background: var(--surface);
}
.track-meta span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.track-meta strong {
  font: 500 12px var(--mono);
  overflow-wrap: anywhere;
}
.inline-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.inline-list li {
  padding: 10px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.inline-list li:last-child {
  border-bottom: 0;
}
.inline-list small {
  color: var(--muted);
}
.device-format-meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.compact-list {
  display: grid;
}
.compact-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 130px 52px 16px;
  gap: 16px;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.compact-row:last-child {
  border-bottom: 0;
}
.compact-row:hover {
  background: var(--surface-2);
}
.expandable-device-row {
  cursor: pointer;
}
.expandable-device-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.row-chevron {
  display: inline-block;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.18s ease;
}
.open > .row-chevron {
  transform: rotate(90deg);
}
.compact-main {
  min-width: 0;
}
.device-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.compact-main strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.device-title strong {
  min-width: 0;
}
.device-status-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  cursor: help;
}
.device-status-dot[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.device-status-dot[tabindex]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  left: 50%;
  width: max-content;
  max-width: min(260px, 75vw);
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-3);
  box-shadow: var(--shadow);
  color: var(--text);
  font: 500 12px/1.4 var(--sans);
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -3px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s ease;
  pointer-events: none;
}
.device-status-dot[tabindex]:hover::after,
.device-status-dot[tabindex]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.device-status-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 11px;
}
.device-status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.device-status-dot.all-frozen {
  background: var(--success);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--success) 12%, transparent);
}
.device-status-dot.has-unfrozen {
  background: var(--warning);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--warning) 12%, transparent);
}
.compact-main small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.compact-count {
  text-align: right;
  color: var(--text);
  font: 600 13px var(--mono);
}
.detail-occurrences {
  display: none;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}
.expandable-device-row.open .detail-occurrences {
  display: block;
}
.detail-occurrences li {
  padding-top: 2px;
}
.frozen-prefix {
  color: var(--success);
  font-weight: 700;
}
.unfrozen-prefix {
  color: var(--warning);
  font-weight: 700;
}
.key-value-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.key-value {
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}
.key-value:nth-child(odd) {
  border-right: 1px solid var(--line);
}
.key-value span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  margin-bottom: 3px;
}
.key-value strong {
  font: 500 13px var(--mono);
  overflow-wrap: anywhere;
}
#section-technical .section-heading h3,
#section-technical .section-heading .count {
  color: var(--muted);
}

.about {
  padding: 76px 0 90px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
}
.about h2 {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 440px;
}
.about-grid {
  display: grid;
  gap: 0;
}
.about-grid article {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.about-grid article:first-child {
  padding-top: 0;
}
.about-grid h3 {
  margin: 0 0 5px;
  font-size: 14px;
}
.about-grid p {
  margin: 0;
  color: var(--muted);
}
.disclaimer {
  grid-column: 2;
  color: var(--faint);
  font-size: 11px;
}
footer {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11px;
}

[hidden] {
  display: none !important;
}
.filtered-out {
  display: none !important;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
  }
  .support-note {
    grid-column: 1;
    margin-top: -28px;
  }
  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .summary-card:nth-child(3) {
    border-right: 0;
  }
  .summary-card:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
  .report-header {
    flex-direction: column;
  }
  .report-actions {
    justify-content: flex-start;
  }
  .track-summary {
    grid-template-columns: 42px minmax(170px, 1fr) 80px 125px auto;
  }
  .track-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .disclaimer {
    grid-column: 1;
  }
}

@media (max-width: 650px) {
  .app-header,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }
  .app-header {
    min-height: 72px;
  }
  .brand p,
  .header-actions .text-link {
    display: none;
  }
  .hero {
    padding: 48px 0 64px;
  }
  .hero-copy h2 {
    font-size: 46px;
  }
  .drop-zone {
    min-height: 360px;
    padding: 36px 20px;
  }
  .processing,
  .error-panel {
    padding: 30px 24px;
    min-height: 360px;
    align-items: flex-start;
    flex-direction: column;
  }
  .progress-track {
    left: 24px;
    right: 24px;
    bottom: 30px;
  }
  .report {
    padding-top: 38px;
  }
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .summary-card {
    border-bottom: 1px solid var(--line);
  }
  .summary-card:nth-child(2n) {
    border-right: 0;
  }
  .summary-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .report-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .section-nav {
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 32px), transparent 100%);
  }
  .section-nav::-webkit-scrollbar {
    display: none;
  }
  #section-media .section-warning {
    flex-basis: 100%;
    font-size: 12px;
  }
  .section-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .section-controls .toggle-control {
    align-self: flex-end;
    margin-left: 0;
  }
  .search-box {
    max-width: none;
  }
  .track-summary {
    grid-template-areas:
      "number name state"
      "number type state"
      "number counts state";
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 3px 10px;
    padding: 14px 12px;
  }
  .track-number {
    grid-area: number;
    align-self: start;
    padding-top: 3px;
  }
  .track-name {
    grid-area: name;
  }
  .track-type {
    grid-area: type;
  }
  .track-counts {
    grid-area: counts;
  }
  .track-state {
    grid-area: state;
    align-self: center;
  }
  .track-details {
    padding: 0 12px 14px;
  }
  .track-meta-grid {
    grid-template-columns: 1fr;
  }
  .key-value-list {
    grid-template-columns: 1fr;
  }
  .key-value:nth-child(odd) {
    border-right: 0;
  }
  .compact-row {
    grid-template-columns: minmax(120px, 1fr) auto 42px 14px;
    gap: 8px;
    padding: 14px 16px;
  }
  .compact-row .badge {
    white-space: normal;
    text-align: center;
  }
  .media-table {
    min-width: 0;
  }
  .media-table thead {
    display: none;
  }
  .media-table tbody,
  .media-table tr,
  .media-table td {
    display: block;
    width: 100%;
  }
  .media-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  .media-table tr:last-child {
    border-bottom: 0;
  }
  .media-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 5px 0;
    border: 0;
  }
  .media-table td:nth-child(3) {
    width: 100%;
    min-width: 0;
  }
  .media-table td::before {
    content: attr(data-label);
    color: var(--faint);
    font: 600 10px var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .media-table .path-cell {
    max-width: none;
  }
  footer {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 3px;
  }
}

@media print {
  @page {
    margin: 12mm;
  }
  :root {
    color-scheme: light;
    --bg: #fff;
    --surface: #fff;
    --surface-2: #f7f7f7;
    --surface-3: #eee;
    --text: #111;
    --muted: #555;
    --faint: #777;
    --line: #ccc;
    --line-strong: #999;
    --accent: #000;
    --accent-text: #fff;
  }
  .app-header,
  .hero,
  .processing,
  .error-panel,
  .report-actions,
  .report-toolbar,
  .section-nav,
  .about,
  footer {
    display: none !important;
  }
  #section-tracks,
  #section-technical,
  .print-hidden,
  .section-controls,
  .native-device,
  .detail-occurrences,
  .row-chevron,
  .section-heading .count {
    display: none !important;
  }
  main {
    width: 100%;
  }
  .report {
    padding: 0;
  }
  .report-header {
    margin-bottom: 16px;
  }
  .report-header h2 {
    font-size: 28px;
  }
  .summary-card {
    min-height: 0;
    padding: 10px;
  }
  .summary-card .value {
    margin-bottom: 5px;
    font-size: 18px;
  }
  .report-section {
    margin-top: 12px;
    box-shadow: none;
  }
  .section-heading {
    padding: 12px 14px;
  }
  .compact-row {
    padding: 10px 14px;
  }
  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }
  .media-table tr:not(.external-audio-row) {
    display: none;
  }
  .report-section.collapsed .section-body {
    display: block;
  }
  .section-chevron {
    display: none;
  }
  .track-details {
    display: block !important;
  }
  .summary-grid {
    break-inside: avoid;
  }
}
