:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: #18191b;
  --surface-raised: #222428;
  --surface-card: #2b2e33;
  --surface-deep: #1e2024;
  --surface-warm: #3a2a1f;
  --border: #474c53;
  --border-strong: #5b616a;
  --text: #f0f1f2;
  --text-muted: #b8bdc4;
  --text-soft: #9299a2;
  --fl-orange: #ff8a20;
  --fl-orange-hover: #ffa13d;
  --orange-ink: #23160a;
  --meter-lime: #9ad34f;
  --audio-teal: #3fc7b8;
  --favorite-yellow: #f6c453;
  --danger-red: #e85d68;
  --danger-surface: #4a242a;
  --shadow: #00000066;
  --shadow-strong: #00000099;
  background: var(--background);
  color: var(--text);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at top left, #3a2a1f 0, var(--background) 42rem); min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { outline-offset: 3px; }
:focus-visible { outline: 3px solid var(--meter-lime); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: .5rem; left: .5rem; transform: translateY(-180%); background: var(--text); color: var(--background); padding: .7rem 1rem; z-index: 100; border-radius: .4rem; }
.skip-link:focus { transform: none; }
.site-header, .view-nav, main { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { padding: 3rem 0 1.35rem; display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.header-actions, .toolbar, .card-actions, .tray-actions, .slot-actions, .about-actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: .55rem; font-size: clamp(2.1rem, 6vw, 4rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.45rem, 4vw, 2.25rem); letter-spacing: -.035em; }
h3 { line-height: 1.2; }
.subtitle { max-width: 52rem; color: var(--text-muted); font-size: 1.06rem; }
.eyebrow { color: var(--fl-orange); font-size: .76rem; font-weight: 800; letter-spacing: .11em; }
.muted { color: var(--text-muted); }
.view-nav { position: sticky; top: .5rem; z-index: 15; display: flex; gap: .45rem; padding: .45rem; margin-bottom: 1.4rem; background: #1e2024e8; border: 1px solid var(--border); border-radius: 999px; backdrop-filter: blur(14px); width: fit-content; max-width: calc(100% - 2rem); }
.view-tab { border: 0; border-radius: 999px; background: transparent; color: var(--text-muted); padding: .65rem 1rem; cursor: pointer; }
.view-tab.selected { background: var(--fl-orange); color: var(--orange-ink); font-weight: 800; }
.finder, .panel, .workflow-card { border: 1px solid var(--border); background: #222428e6; border-radius: 1rem; padding: clamp(1.1rem, 4vw, 2rem); box-shadow: 0 1.5rem 4rem var(--shadow); }
.finder { margin-bottom: 1.5rem; }
.finder > div:first-child { max-width: 50rem; }
.goal-buttons { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.35rem 0; }
.goal, .button { border: 1px solid var(--border-strong); color: var(--text); border-radius: 999px; padding: .62rem .88rem; cursor: pointer; text-decoration: none; }
.goal { background: var(--surface-card); }
.button { background: var(--fl-orange); border-color: var(--fl-orange); color: var(--orange-ink); }
.goal:hover, .goal.selected, .button.accent, .button:hover:not(.secondary):not(.danger) { background: var(--fl-orange-hover); border-color: var(--fl-orange-hover); color: var(--orange-ink); }
.button.secondary { background: transparent; border-color: var(--border-strong); color: var(--text); }
.button.secondary:hover { background: var(--surface-card); border-color: var(--fl-orange); color: var(--text); }
.button.danger { background: var(--danger-surface); border-color: var(--danger-red); color: var(--text); }
.button:disabled, .icon-button:disabled { opacity: .45; cursor: not-allowed; }
.link-button { text-align: center; }
.recommendation { padding: .85rem 1rem; border-left: 3px solid var(--audio-teal); background: var(--surface-deep); color: var(--text); margin-bottom: 0; }
.controls { display: grid; grid-template-columns: 2fr repeat(5, minmax(7.5rem, 1fr)); gap: .8rem; align-items: end; }
.controls label, .studio-status, .note-label { display: grid; gap: .35rem; color: var(--text-muted); font-size: .88rem; }
.controls input, .controls select, .studio-status select, textarea, .workflow-heading input, .slot-row select { min-width: 0; width: 100%; border: 1px solid var(--border-strong); border-radius: .55rem; background: var(--surface-deep); color: var(--text); padding: .68rem; }
textarea { resize: vertical; line-height: 1.4; }
.controls .check { display: flex; align-items: center; min-height: 2.6rem; gap: .5rem; }
.controls .check input { width: 1rem; }
.toolbar { margin: 1rem 0; }
.toolbar.compact { margin: 0; }
.summary { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; align-items: center; padding: 1.1rem 0; color: var(--text-muted); }
.summary strong { color: var(--meter-lime); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.card { background: var(--surface-card); border: 1px solid var(--border); border-radius: .9rem; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.card-head { display: flex; justify-content: space-between; gap: .6rem; }
.card h3 { margin: .12rem 0 .25rem; line-height: 1.15; }
.card .category { color: var(--audio-teal); margin: 0; font-size: .78rem; font-weight: 750; }
.developer { margin: 0; color: var(--text-muted); font-size: .9rem; }
.description { color: var(--text); margin: 0; line-height: 1.45; font-size: .93rem; }
.icon-button { flex: none; border: 0; background: transparent; color: var(--text-muted); font-size: 1.45rem; cursor: pointer; border-radius: .35rem; }
.favorite { color: var(--favorite-yellow); }
.slot-actions .icon-button { color: var(--audio-teal); }
.badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.badges span { font-size: .7rem; border: 1px solid var(--border-strong); color: var(--text-muted); background: var(--surface-deep); padding: .18rem .42rem; border-radius: 999px; }
.meta { display: flex; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--border); padding-top: .75rem; color: var(--text-soft); font-size: .83rem; }
.price { color: var(--meter-lime); font-weight: 750; }
.version { text-align: right; }
.card-actions .button { flex: 1 1 8rem; font-size: .82rem; }
details { color: var(--text-muted); font-size: .86rem; }
summary { cursor: pointer; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem .75rem; margin: .75rem 0; }
dt { color: var(--text-soft); }
dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.load-more-wrap { display: flex; justify-content: center; padding: 1.5rem 0 6rem; }
.section-heading { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0 1.5rem; max-width: 54rem; }
.panel { margin-bottom: 1.25rem; }
.stat-grid, .template-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .8rem; margin-bottom: 1.5rem; }
.stat-card, .template-card { text-align: left; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface-card); color: var(--text); padding: 1rem; cursor: pointer; }
.stat-card strong { display: block; color: var(--meter-lime); font-size: 1.8rem; }
.stat-card span, .template-card span { display: block; color: var(--text-muted); margin-top: .25rem; }
.studio-list { display: grid; gap: .65rem; }
.studio-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-bottom: 1px solid var(--border); padding: .75rem 0; }
.studio-row h4, .studio-row p { margin-bottom: .25rem; }
.studio-row p { color: var(--text-soft); }
.file-button { display: inline-flex; }
.file-button input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.import-actions { border-left: 3px solid var(--favorite-yellow); padding: .85rem 1rem; background: var(--surface-deep); }
.workflow-list { display: grid; gap: 1rem; padding-bottom: 5rem; }
.workflow-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.workflow-heading input { font-size: 1.15rem; font-weight: 800; }
.slot-list { display: grid; gap: .65rem; margin: 0; padding-left: 1.5rem; }
.slot-row { display: grid; grid-template-columns: minmax(10rem, .8fr) minmax(14rem, 1.2fr) auto; gap: .8rem; align-items: center; background: var(--surface-deep); border-radius: .7rem; padding: .8rem; }
.slot-row p { color: var(--text-soft); font-size: .84rem; margin: .2rem 0 0; }
.about-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, 14rem); gap: clamp(1.25rem, 5vw, 3.5rem); align-items: center; border: 1px solid var(--border); border-radius: 1rem; padding: clamp(1.25rem, 5vw, 3rem); background: linear-gradient(135deg, var(--surface-warm), var(--surface-raised) 58%, var(--surface-deep)); box-shadow: 0 1.5rem 4rem var(--shadow); }
.about-copy { max-width: 51rem; }
.about-copy h2 { max-width: 18ch; font-size: clamp(1.8rem, 5vw, 3.2rem); }
.about-lede { color: var(--text); font-size: clamp(1rem, 2.4vw, 1.18rem); line-height: 1.65; }
.about-actions { margin-top: 1.25rem; }
.about-mark { display: grid; gap: .65rem; justify-items: center; border: 1px solid var(--border); border-radius: 1rem; background: var(--surface-deep); padding: .7rem; color: var(--text-muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.about-mark img { display: block; width: 100%; aspect-ratio: 1; border-radius: .75rem; }
.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; }
.about-stats div { min-width: 0; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface-card); padding: 1rem; }
.about-stats strong, .about-stats span { display: block; }
.about-stats strong { color: var(--meter-lime); font-size: clamp(1.05rem, 2.4vw, 1.35rem); overflow-wrap: anywhere; }
.about-stats span { margin-top: .35rem; color: var(--text-muted); font-size: .82rem; line-height: 1.45; }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.about-panel { margin-bottom: 0; }
.about-panel-wide { grid-column: 1 / -1; }
.about-panel > p:not(.eyebrow, .about-freshness) { color: var(--text-muted); line-height: 1.65; }
.about-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.about-steps li { display: grid; grid-template-columns: 2.35rem 1fr; gap: .75rem; border: 1px solid var(--border); border-radius: .8rem; background: var(--surface-deep); padding: 1rem; }
.about-steps li > span { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: var(--fl-orange); color: var(--orange-ink); font-weight: 900; }
.about-steps strong { color: var(--text); }
.about-steps p { margin: .3rem 0 0; color: var(--text-muted); font-size: .9rem; line-height: 1.5; }
.about-freshness { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-left: 3px solid var(--audio-teal); background: var(--surface-deep); padding: .75rem .9rem; }
.about-freshness span { color: var(--text-muted); font-size: .82rem; }
.about-freshness strong { color: var(--audio-teal); text-align: right; }
.boundary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.boundary-grid > div { border: 1px solid var(--border); border-radius: .8rem; background: var(--surface-deep); padding: 1rem; }
.boundary-grid h4 { color: var(--audio-teal); }
.boundary-grid ul { margin-bottom: 0; padding-left: 1.2rem; color: var(--text-muted); line-height: 1.65; }
.about-callout { display: grid; grid-template-columns: minmax(14rem, .75fr) minmax(0, 1.25fr); gap: clamp(1rem, 4vw, 2.5rem); align-items: center; margin-top: 1rem; border: 1px solid var(--fl-orange); border-radius: 1rem; background: var(--surface-warm); padding: clamp(1.1rem, 4vw, 2rem); }
.about-callout h3, .about-callout p { margin-bottom: 0; }
.about-callout > p { color: var(--text-muted); line-height: 1.65; }
.about-note { max-width: 58rem; margin: 1.4rem auto 5rem; color: var(--text-soft); font-size: .82rem; line-height: 1.55; text-align: center; }
.comparison-tray { position: fixed; inset: auto 1rem 1rem; z-index: 30; max-width: 900px; margin-inline: auto; background: #1e2024f2; border: 1px solid var(--fl-orange); border-radius: 1rem; padding: .85rem 1rem; box-shadow: 0 1rem 3rem var(--shadow-strong); display: flex; justify-content: space-between; gap: 1rem; align-items: center; backdrop-filter: blur(16px); }
.comparison-names { color: var(--text-muted); font-size: .82rem; margin-top: .2rem; }
.comparison-dialog { width: min(1100px, calc(100% - 1.2rem)); max-height: calc(100vh - 1.2rem); border: 1px solid var(--fl-orange); border-radius: 1rem; background: var(--surface-raised); color: var(--text); padding: clamp(1rem, 4vw, 2rem); }
.comparison-dialog::backdrop { background: #0b0c0edd; }
.dialog-heading { display: flex; justify-content: space-between; gap: 1rem; }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .85rem; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; border: 1px solid var(--border); padding: .65rem; overflow-wrap: anywhere; }
.compare-table thead th { color: var(--fl-orange); }
.compare-table tbody th { width: 9rem; color: var(--text-soft); }
.compare-table td.different { background: var(--surface-warm); }
.compare-mobile { display: none; }
.compare-mobile-card { border: 1px solid var(--border); border-radius: .7rem; padding: 1rem; margin-bottom: .8rem; }
.compare-mobile-card p { overflow-wrap: anywhere; }
.empty-state { border: 1px dashed var(--border-strong); border-radius: .8rem; color: var(--text-muted); padding: 1rem; }
.toast { position: fixed; z-index: 50; right: 1rem; bottom: 6.5rem; max-width: min(24rem, calc(100% - 2rem)); background: var(--meter-lime); color: var(--orange-ink); border-radius: .7rem; padding: .85rem 1rem; box-shadow: 0 .8rem 2rem var(--shadow-strong); font-weight: 750; }

@media (max-width: 1000px) {
  .controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .controls label:first-child { grid-column: 1 / -1; }
  .slot-row { grid-template-columns: 1fr; }
  .slot-actions { justify-content: flex-end; }
}
@media (max-width: 700px) {
  .compare-table { display: none; }
  .compare-mobile { display: block; }
  .comparison-tray { align-items: flex-start; }
  .comparison-names { max-width: 55vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .about-hero, .about-grid, .about-callout { grid-template-columns: 1fr; }
  .about-mark { grid-template-columns: 7rem 1fr; align-items: center; justify-items: start; text-align: left; }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header, main { width: min(100% - 1.25rem, 1180px); }
  .site-header { display: block; padding-top: 2rem; }
  .header-actions { margin-top: 1rem; }
  .view-nav { max-width: calc(100% - 1.25rem); overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .view-nav::-webkit-scrollbar { display: none; }
  .controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary { align-items: flex-start; }
  .meta, .workflow-heading, .studio-row, .comparison-tray { display: block; }
  .version { display: block; text-align: left; margin-top: .35rem; }
  .workflow-heading .toolbar, .tray-actions { margin-top: .75rem; }
  .comparison-names { max-width: 100%; }
  .comparison-tray { inset-inline: .6rem; bottom: .6rem; }
  .toast { bottom: 9rem; }
  .about-stats, .boundary-grid { grid-template-columns: 1fr; }
  .about-mark { grid-template-columns: 5rem 1fr; }
  .about-freshness { display: block; }
  .about-freshness strong { display: block; margin-top: .35rem; text-align: left; }
}
