:root {
  --bg: oklch(20.5% 0.004 260);
  --surface: oklch(23% 0.004 260);
  --subtle: oklch(26% 0.005 260);
  --text: oklch(94% 0.004 260);
  --muted: oklch(70% 0.012 260);
  --line: oklch(31% 0.006 260);
  --accent: oklch(79% 0.14 75);
  --accent-hover: oklch(86% 0.12 75);
  --tint: oklch(28% 0.025 75);
  --error: oklch(77% 0.13 20);
  --success: oklch(79% 0.13 155);
  --check: oklch(29% 0.005 260);
  --action: oklch(94% 0.008 85);
  --action-hover: oklch(99% 0.003 85);
  --action-text: oklch(19% 0.004 260);
  --shadow: 0 12px 35px oklch(10% 0.005 260 / 0.18);
  --radius: 7px;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 "Instrument Sans",
    system-ui,
    sans-serif;
}
h1,
h2,
h3,
p {
  margin: 0 0 1rem;
}
h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(2.7rem, 5.5vw, 5.4rem);
  font-weight: 600;
}
h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  font-weight: 550;
}
h3 {
  font-size: 1.35rem;
}
p {
  max-width: 70ch;
  color: var(--muted);
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  min-height: 44px;
  padding: 11px 19px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.35;
}
button:hover,
.button:hover {
  background: var(--subtle);
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--surface);
}
.primary:hover {
  background: var(--action-hover);
  color: var(--surface);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
img {
  max-width: 100%;
  display: block;
}
.shell {
  max-width: 1240px;
  margin: auto;
  padding-inline: 32px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: var(--surface);
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.header-row {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-size: 23px;
  font-weight: 650;
  letter-spacing: -1px;
}
.brand img {
  width: 31px;
  height: 31px;
}
.nav {
  display: flex;
  gap: 27px;
  align-items: center;
}
.nav a:not(.button) {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
}
.nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}
.nav-toggle {
  display: none;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  padding-block: 85px 95px;
}
.hero h1 span {
  color: var(--text);
}
.hero p {
  font-size: 18px;
  margin-block: 24px 30px;
  max-width: 43ch;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.micro {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.compare-frame {
  background: var(--surface);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.comparison {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4/4.6;
  background-color: var(--surface);
  background-image: conic-gradient(
    var(--check) 25%,
    transparent 0 50%,
    var(--check) 0 75%,
    transparent 0
  );
  background-size: 22px 22px;
  --split: 50%;
}
.comparison img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.comparison .before {
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.compare-line {
  position: absolute;
  left: var(--split);
  inset-block: 0;
  border-left: 2px solid var(--surface);
  pointer-events: none;
}
.compare-line:after {
  content: "↔";
  position: absolute;
  top: 48%;
  left: -21px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
.compare-range {
  width: 100%;
  accent-color: var(--accent);
  margin: 14px 0 4px;
}
.compare-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 4px 0;
}
.strip {
  border-block: 1px solid var(--line);
  display: flex;
  gap: 25px;
  justify-content: space-between;
  padding-block: 22px;
  color: var(--muted);
  font-size: 14px;
}
.section {
  padding-block: 90px;
}
.section-head {
  max-width: 740px;
  margin-bottom: 40px;
}
.section-head p {
  font-size: 18px;
}
.feature-row {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  padding-block: 42px;
  border-top: 1px solid var(--line);
}
.number {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 16px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
}
.step {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.callout {
  background: var(--tint);
  padding: 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}
.callout p {
  margin-bottom: 0;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.plan {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border: 2px solid var(--accent);
}
.badge {
  display: inline-block;
  background: var(--tint);
  color: var(--accent);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 650;
  border-radius: 30px;
  align-self: start;
  margin-bottom: 18px;
}
.price {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -2px;
  margin: 15px 0 8px;
}
.price small {
  font-size: 14px;
  letter-spacing: 0;
  color: var(--muted);
}
.plan ul {
  padding-left: 18px;
  color: var(--muted);
  flex: 1;
  line-height: 1.9;
  font-size: 14px;
}
.plan .button {
  margin-top: 18px;
}
.faq {
  max-width: 850px;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 19px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 28px;
}
details p {
  margin-top: 15px;
}
.page-head {
  padding-block: 65px 36px;
  max-width: 880px;
}
.page-head h1 {
  font-size: clamp(2.5rem, 4.7vw, 4.2rem);
}
.page-head p {
  font-size: 18px;
  margin-top: 22px;
}
.prose {
  max-width: 780px;
  padding-bottom: 75px;
}
.prose h2 {
  font-size: 26px;
  margin-top: 36px;
}
.prose li {
  color: var(--muted);
  margin-block: 9px;
}
.notice {
  padding: 16px 20px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-block: 20px;
  font-size: 14px;
}
.error {
  color: var(--error);
}
.success {
  color: var(--success);
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px 25px;
  margin-top: 35px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-grid p {
  font-size: 14px;
  margin-top: 18px;
  max-width: 29ch;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-links h3 {
  font-size: 13px;
  letter-spacing: 0;
  margin: 0 0 10px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.footer-bottom {
  font-size: 12px;
  color: var(--muted);
  padding-top: 35px;
}
.auth-layout {
  min-height: 65vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding-block: 70px;
}
.auth-intro h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}
.form-panel {
  padding: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
}
.form-panel h2 {
  font-size: 27px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
}
.field input,
.field select {
  width: 100%;
  padding: 11px 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  color: var(--text);
}
.field input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
}
.full {
  width: 100%;
}
.status {
  font-size: 14px;
  margin: 16px 0;
  min-height: 24px;
}
.workspace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 38px 25px;
}
.workspace-head h1 {
  font-size: 32px;
}
.workspace-head p {
  font-size: 14px;
  margin: 8px 0 0;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
  padding-bottom: 40px;
}
.work-area {
  min-width: 0;
}
.inspector {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
}
.inspector h2 {
  font-size: 19px;
  margin-bottom: 24px;
}
.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 55px 25px;
  text-align: center;
}
.dropzone.drag {
  border-color: var(--accent);
  background: var(--tint);
}
.dropzone p {
  margin: 14px auto 22px;
  font-size: 14px;
}
.dropzone h2 {
  font-size: 27px;
}
.upload-symbol {
  font-size: 34px;
  color: var(--accent);
  margin-bottom: 20px;
}
.dropzone .actions {
  justify-content: center;
}
.file-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.file-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  position: relative;
  min-width: 0;
}
.file-tile img {
  width: 100%;
  height: 95px;
  object-fit: contain;
  border-radius: 5px;
  background: var(--subtle);
}
.file-tile p {
  font-size: 11px;
  overflow-wrap: anywhere;
  margin: 8px 0 0;
}
.file-tile button {
  position: absolute;
  right: 4px;
  top: 4px;
  min-height: 32px;
  width: 32px;
  padding: 0;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-block: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.toolbar p {
  margin: 0;
  font-size: 14px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  min-height: 44px;
}
.check input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.result {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
}
.result .comparison {
  aspect-ratio: 1;
}
.result .comparison img {
  object-fit: contain;
}
.result p {
  font-size: 12px;
  overflow-wrap: anywhere;
  margin: 12px 0 5px;
}
.progress {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  margin-block: 20px;
}
.progress h2 {
  font-size: 21px;
}
.progress progress {
  width: 100%;
  height: 8px;
  accent-color: var(--accent);
}
.history {
  margin-top: 36px;
}
.history h2 {
  font-size: 24px;
}
.history-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.history-row p {
  margin: 0;
  flex: 1;
  font-size: 14px;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 50px;
}
.account-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px;
}
.account-panel h2 {
  font-size: 24px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}
td {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.empty {
  padding: 30px 0;
  color: var(--muted);
}
.legal-draft {
  background: var(--tint);
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
}
.subnav {
  display: flex;
  gap: 18px;
  margin-bottom: 25px;
  font-size: 14px;
}
.compact-title {
  font-size: 32px !important;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
@media (max-width: 980px) {
  .hero {
    gap: 35px;
  }
  .nav {
    gap: 15px;
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .plans {
    gap: 12px;
  }
  .plan {
    padding: 23px;
  }
  .feature-row,
  .auth-layout {
    gap: 35px;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .shell {
    padding-inline: 20px;
  }
  .header-row {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 12px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav {
    display: none;
    flex-basis: 100%;
    padding-block: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .nav.open {
    display: flex;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 45px 55px;
    gap: 38px;
  }
  .hero h1 {
    max-width: 13ch;
  }
  .hero p {
    font-size: 17px;
  }
  .compare-frame {
    max-width: 490px;
    width: 100%;
    margin: auto;
  }
  .comparison {
    aspect-ratio: 1.15;
  }
  .section {
    padding-block: 55px;
  }
  .strip {
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 12px;
  }
  .steps,
  .plans,
  .feature-row,
  .auth-layout,
  .workspace,
  .account-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 24px;
  }
  .feature-row {
    gap: 10px;
  }
  .callout {
    padding: 30px;
    align-items: start;
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auth-layout {
    gap: 25px;
    padding-block: 40px;
  }
  .form-panel {
    max-width: none;
    padding: 28px;
  }
  .workspace-head {
    align-items: start;
    flex-direction: column;
  }
  .inspector {
    grid-row: 2;
  }
  .workspace {
    gap: 20px;
  }
  .page-head {
    padding-block: 45px 25px;
  }
  .history-row {
    flex-wrap: wrap;
  }
  .history-row p {
    flex-basis: 100%;
  }
  .result .comparison {
    aspect-ratio: 1;
  }
  .file-tile button {
    min-height: 36px;
    width: 36px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  .button {
    transition: background 0.16s ease-out;
  }
}

.hero .eyebrow {
  font-size: 12px;
  margin: 0 0 22px;
  letter-spacing: 0.13em;
}
.status:empty {
  display: none;
}
.workspace-head + .status:empty {
  display: none;
}

/* The application shell keeps controls compact while leaving the output canvas open. */
body {
  font-size: 14px;
  line-height: 1.55;
}
h1,
h2,
h3 {
  letter-spacing: -0.035em;
}
h1 {
  font-size: clamp(2.6rem, 4.7vw, 4.3rem);
}
h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
}
button,
.button {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 13px;
  border-radius: 5px;
  font-weight: 550;
}
.primary {
  background: var(--action);
  border-color: var(--action);
  color: var(--action-text);
}
.primary:hover {
  background: var(--action-hover);
  color: var(--action-text);
}
.shell {
  max-width: 1240px;
  padding-inline: 32px;
}
.site-header {
  background: var(--bg);
}
.site-header > .shell,
.site-header > .nav {
  max-width: none;
  padding-inline: 24px;
}
.header-row {
  min-height: 58px;
  gap: 20px;
}
.header-identity,
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  font-size: 21px;
  letter-spacing: -0.8px;
}
.brand img {
  width: 25px;
  height: 25px;
  filter: invert(1);
}
.header-divider {
  color: var(--line);
  font-size: 23px;
}
.header-context,
.header-help {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.header-actions .button {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
}
.credit-access {
  color: var(--accent);
}
.nav {
  height: 42px;
  border-top: 1px solid var(--line);
  gap: 24px;
  justify-content: flex-start;
}
.nav a:not(.button) {
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 550;
  border-bottom: 2px solid transparent;
}
.nav a[aria-current="page"] {
  text-decoration: none;
  border-bottom-color: var(--accent);
  color: var(--text);
}
.hero {
  padding-block: 72px;
  gap: 85px;
}
.hero p {
  font-size: 16px;
}
.hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
}
.hero .micro {
  font-size: 12px;
}
.compare-frame {
  padding: 8px;
  border-radius: 8px;
  box-shadow: none;
}
.comparison {
  border-radius: 4px;
  aspect-ratio: 1.05;
}
.compare-line {
  border-color: var(--text);
}
.compare-line:after {
  background: var(--text);
  color: var(--bg);
  width: 30px;
  height: 30px;
  left: -16px;
  font-size: 14px;
}
.compare-labels {
  font-size: 11px;
}
.strip {
  font-size: 12px;
  padding-block: 16px;
}
.section {
  padding-block: 65px;
}
.section-head p {
  font-size: 16px;
}
.feature-row {
  padding-block: 30px;
}
.feature-row h3 {
  font-size: 19px;
}
.feature-row p {
  font-size: 14px;
}
.number,
.eyebrow {
  font-size: 11px;
}
.callout {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.plan {
  border-radius: 7px;
  padding: 25px;
}
.plan.featured {
  border-width: 1px;
}
.plan h2 {
  font-size: 24px !important;
}
.price {
  font-size: 37px;
}
.badge {
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.02em;
  padding: 3px 7px;
}
.page-head {
  padding-block: 48px 25px;
}
.page-head h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}
.page-head p {
  font-size: 16px;
}
.prose h2 {
  font-size: 23px;
}
.form-panel {
  border-radius: 7px;
  padding: 30px;
}
.auth-layout {
  gap: 90px;
  max-width: 1050px;
  margin: auto;
}
.field input,
.field select {
  border-radius: 4px;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
  background: var(--surface);
}
.field label {
  font-size: 12px;
}
.account-panel {
  border-radius: 7px;
}
.site-footer {
  padding-top: 35px;
}
.footer-grid .brand {
  font-size: 20px;
}
.notice,
.legal-draft {
  border-radius: 5px;
}
.editor-page .site-footer {
  display: none;
}
.editor-page #main {
  max-width: none;
  padding: 0;
}
.editor-page .workspace-head {
  padding: 17px 24px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  min-height: 76px;
}
.workspace-head .eyebrow {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 4px;
  letter-spacing: 0.03em;
  text-transform: none;
}
.workspace-head h1 {
  font-size: 21px;
  letter-spacing: -0.025em;
  margin: 0;
}
.workspace-head p#mode-info {
  font-size: 11px;
  margin: 6px 0 0;
}
.workspace-head #balance-link {
  font-size: 11px;
  min-height: 30px;
}
.editor-page #editor-status:not(:empty) {
  padding: 12px 24px;
  margin: 0;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.workspace {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 0;
  padding: 0;
  min-height: calc(100vh - 200px);
}
.inspector {
  grid-column: 1;
  grid-row: 1;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 18px 18px 24px;
  background: var(--bg);
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow: auto;
}
.inspector-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 18px;
}
.inspector-heading h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}
.engine-tag {
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 2px 5px;
  border-radius: 3px;
}
.settings-heading {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
}
.inspector .dropzone {
  padding: 20px 10px;
  border-radius: 5px;
  background: var(--surface);
}
.inspector .upload-symbol {
  font-size: 23px;
  margin-bottom: 10px;
}
.inspector .dropzone h2 {
  font-size: 14px;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.inspector .dropzone p {
  font-size: 11px;
  line-height: 1.5;
  margin: 8px auto 14px;
}
.inspector .dropzone #upload-limits {
  font-size: 10px;
  margin: 12px 0 0;
}
.inspector .dropzone .actions {
  gap: 7px;
}
.inspector .dropzone button {
  min-height: 32px;
  font-size: 11px;
  padding: 7px 10px;
}
.inspector .toolbar {
  margin: 12px 0;
}
.inspector .toolbar p {
  font-size: 11px;
}
.inspector .toolbar button {
  font-size: 10px;
  padding: 3px 6px;
  min-height: 28px;
}
.inspector .file-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 18px;
  max-height: 190px;
  overflow: auto;
}
.file-tile {
  padding: 4px;
  border-radius: 4px;
}
.file-tile img {
  height: 55px;
}
.file-tile p {
  font-size: 9px;
  line-height: 1.3;
}
.file-tile button {
  min-height: 24px;
  width: 24px;
  font-size: 12px;
}
.inspector .field {
  margin-bottom: 14px;
  gap: 6px;
}
.inspector details {
  padding: 12px 0;
  font-size: 12px;
}
.inspector .micro {
  font-size: 11px;
  margin-top: 12px;
}
.inspector .check {
  font-size: 12px;
  min-height: 36px;
}
.inspector .check input {
  width: 15px;
  height: 15px;
}
.inspector #run-job {
  min-height: 40px;
  margin-top: 8px;
}
.work-area {
  grid-column: 2;
  grid-row: 1;
  padding: 0 26px 30px;
  min-height: 600px;
}
.canvas-toolbar {
  height: 51px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.view-switch {
  display: flex;
  gap: 18px;
  height: 100%;
}
.view-switch button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0 2px;
  color: var(--muted);
  font-size: 12px;
}
.view-switch button[aria-pressed="true"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.canvas-meta {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.canvas-empty {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 15px;
}
.canvas-empty h2 {
  font-size: 18px;
  margin: 24px 0 10px;
  letter-spacing: -0.025em;
}
.canvas-empty p {
  font-size: 12px;
  line-height: 1.7;
}
.empty-art {
  width: 64px;
  height: 66px;
  position: relative;
}
.empty-art span {
  position: absolute;
  width: 48px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.empty-art span:first-child {
  transform: rotate(-12deg);
  left: 0;
  top: 0;
}
.empty-art span:last-child {
  right: 0;
  bottom: 0;
  background: var(--subtle);
  border-color: var(--muted);
}
.empty-art span:last-child:after {
  content: "+";
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 22px;
  color: var(--accent);
}
.empty-steps {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 20px;
}
.progress {
  padding: 15px 18px;
  border-radius: 5px;
  margin: 0 0 20px;
  background: var(--surface);
}
.progress h2 {
  font-size: 15px;
  letter-spacing: 0;
}
.progress .status {
  font-size: 12px;
}
.results {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.result {
  padding: 8px;
  border-radius: 5px;
  background: var(--surface);
}
.result .comparison {
  aspect-ratio: 4/5;
}
.result p {
  font-size: 11px;
  line-height: 1.5;
}
.result button {
  font-size: 11px;
  min-height: 30px;
}
.history {
  margin: 0;
}
.history h2 {
  font-size: 18px;
}
.history-row {
  padding: 14px 0;
  gap: 10px;
}
.history-row p {
  font-size: 12px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.history-row button {
  font-size: 11px;
  min-height: 30px;
}
.history > .micro {
  font-size: 11px;
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: 350px minmax(0, 1fr);
  }
  .results {
    grid-template-columns: repeat(auto-fill, minmax(300px, 380px));
  }
  .work-area {
    padding-inline: 32px;
  }
}
@media (max-width: 980px) {
  .header-help {
    display: none;
  }
  .hero {
    gap: 35px;
  }
  .workspace {
    grid-template-columns: 290px minmax(0, 1fr);
  }
  .work-area {
    padding-inline: 18px;
  }
  .results {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .site-header > .shell,
  .site-header > .nav {
    padding-inline: 16px;
  }
  .header-row {
    min-height: 60px;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .header-context,
  .header-divider,
  .credit-access {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .button {
    font-size: 11px;
    min-height: 32px;
  }
  .brand {
    font-size: 18px;
  }
  .brand img {
    width: 23px;
    height: 23px;
  }
  .nav-toggle {
    display: flex;
    font-size: 11px;
    min-height: 32px;
    padding: 6px 9px;
  }
  .nav {
    height: auto;
    display: none;
    padding-block: 10px !important;
    gap: 0;
  }
  .nav.open {
    display: flex;
  }
  .nav a:not(.button) {
    min-height: 44px;
    padding: 10px 0;
    border-bottom: 0;
  }
  .nav a[aria-current="page"] {
    color: var(--accent);
  }
  .shell {
    padding-inline: 20px;
  }
  .hero {
    padding-block: 40px;
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero h1 {
    max-width: none;
    font-size: 42px;
  }
  .hero p {
    font-size: 15px;
  }
  .hero .actions {
    gap: 9px;
  }
  .hero .button {
    min-height: 42px;
  }
  .section {
    padding-block: 42px;
  }
  .callout {
    padding: 24px;
  }
  .page-head h1 {
    font-size: 34px;
  }
  .page-head {
    padding-top: 35px;
  }
  .auth-layout {
    gap: 25px;
  }
  .form-panel {
    padding: 24px;
  }
  .editor-page .workspace-head {
    padding: 14px 16px;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .workspace-head h1 {
    font-size: 18px;
  }
  .workspace-head #balance-link {
    display: none;
  }
  .workspace-head p#mode-info {
    font-size: 10px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
  }
  .inspector {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 16px;
  }
  .inspector .dropzone {
    padding: 16px;
  }
  .inspector .dropzone .upload-symbol {
    display: none;
  }
  .inspector .dropzone h2 {
    margin-bottom: 6px;
  }
  .inspector .field input,
  .inspector .field select {
    min-height: 44px;
  }
  .inspector .dropzone button,
  .inspector #run-job {
    min-height: 44px;
  }
  .inspector .file-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 150px;
  }
  .inspector #settings-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
  }
  .inspector #settings-fields > details {
    grid-column: 1/-1;
  }
  .inspector #settings-fields > .field:first-child {
    grid-column: 1/-1;
  }
  .work-area {
    padding: 0 16px 25px;
    min-height: 380px;
  }
  .canvas-empty {
    min-height: 320px;
  }
  .canvas-toolbar {
    margin-bottom: 15px;
  }
  .results {
    grid-template-columns: 1fr;
  }
  .history-row {
    flex-wrap: wrap;
  }
  .history-row p {
    flex-basis: 100%;
  }
  .history-row button {
    min-height: 40px;
  }
  .view-switch button {
    min-height: 44px;
  }
  .empty-steps {
    gap: 16px;
  }
  .footer-grid {
    gap: 25px;
  }
}

.editor-page .inspector {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: calc(100vh - 202px);
  max-height: none;
  overflow: hidden;
}
.inspector-scroll {
  padding: 18px;
  overflow: auto;
  min-height: 0;
  flex: 1;
}
.run-dock {
  padding: 12px 18px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.inspector .run-dock #run-job {
  margin: 0;
}
@media (max-width: 760px) {
  .editor-page .inspector {
    order: -1;
    height: auto;
    overflow: visible;
  }
  .inspector-scroll {
    overflow: visible;
    padding: 16px;
  }
  .run-dock {
    padding: 12px 16px;
  }
  .canvas-empty p br {
    display: none;
  }
}

.history-previews {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 11px;
}
.history-preview {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  background-color: var(--surface);
  background-image: conic-gradient(var(--check) 25%, transparent 0 50%, var(--check) 0 75%, transparent 0);
  background-size: 16px 16px;
  text-align: center;
  font-size: 10px;
}
.history-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.history-more { padding: 6px; }
@media (max-width: 760px) {
  .history-previews { flex-basis: 100%; }
}
