:root {
  --bg: #f8f8f3;
  --paper: #fffef9;
  --ink: #263b33;
  --muted: #899187;
  --line: #e2e5dc;
  --accent: #c46a4b;
  --soft: #eef1e8;
  --green: #799374;
  --shadow: 0 16px 56px #20392a12;
  font-family: Inter,"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 0;
  transition: background .16s,transform .16s;
}
button:disabled {
  cursor: not-allowed;
  opacity: .38;
}
button:not(:disabled):active {
  transform: translateY(1px);
}
button:focus-visible,
select:focus-visible,
a:focus-visible,
label:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none!important;
}
.app-header {
  height: 78px;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  letter-spacing: -.7px;
  font-weight: 650;
}
.brand-tag {
  display: block;
  font-size: 8px;
  letter-spacing: 2.1px;
  font-weight: 500;
  margin-top: 5px;
  color: var(--muted);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.privacy {
  font-size: 11px;
  color: #63715f;
  display: flex;
  align-items: center;
  gap: 7px;
}
.privacy i,
.tiny-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
}
.i18n-pending body {
  visibility: hidden;
}
.language-select {
  background: transparent;
  border: 0;
  padding: 8px 6px;
  font-size: 12px;
  border-radius: 7px;
}
.language-select:hover {
  background: var(--soft);
}
.quiet {
  background: transparent;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 7px;
}
.quiet:hover {
  background: var(--soft);
}
.header-right .quiet {
  white-space: nowrap;
}
#help-btn {
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 27px;
  height: 27px;
  padding: 0;
}
.workspace {
  display: grid;
  grid-template-columns: 274px minmax(320px,1fr) 294px;
  height: calc(100dvh - 78px);
  min-height: 640px;
}
.left-panel {
  padding: 29px 24px 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  overflow: auto;
}
.section-eyebrow {
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.7px;
  color: #8b9488;
}
h1 {
  font-size: 33px;
  line-height: 1.32;
  letter-spacing: -1.4px;
  margin: 17px 0 13px;
  font-weight: 600;
}
.orange {
  color: var(--accent);
}
.intro {
  font-size: 12px;
  line-height: 1.9;
  color: #838c80;
  margin: 0 0 25px;
}
.drop-zone {
  border: 1px dashed #bfcabc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  padding: 22px 10px;
  background: #f1f4eb;
  cursor: pointer;
  transition: .15s;
  text-align: center;
}
.drop-zone:hover,
.drop-zone.dragging {
  background: #e8eee1;
  border-color: #718b69;
}
.drop-zone svg {
  color: #7c8f73;
}
.drop-zone strong {
  font-size: 12px;
  font-weight: 500;
  max-width: 195px;
  word-break: break-word;
}
.drop-zone span {
  font-size: 9px;
  color: #899582;
  line-height: 1.6;
}
.demo-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 13px;
  font-size: 10px;
  white-space: nowrap;
  color: #899182;
}
.demo-row select {
  font-size: 10px;
  border: 0;
  background: transparent;
  padding: 5px 0;
  flex: 1;
  min-width: 0;
  color: #67785d;
}
.icon-button {
  background: transparent;
  font-size: 18px;
  padding: 0 4px;
  color: #6d855f;
}
.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0 22px;
  flex-shrink: 0;
}
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  gap: 8px;
  font-size: 11px;
}
.setting-row label {
  white-space: nowrap;
}
.setting-row select {
  border: 0;
  background: transparent;
  font-size: 10px;
  max-width: 135px;
  padding: 4px 0;
  color: #778471;
}
.setting-button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 0;
  margin: 6px 0 17px;
  background: transparent;
  font-size: 11px;
}
.setting-button span:last-child {
  font-size: 10px;
  color: #778471;
}
.advanced {
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.advanced summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  color: #7d8976;
  display: flex;
  justify-content: space-between;
}
.advanced summary::-webkit-details-marker {
  display: none;
}
.hint {
  color: #84907f;
  font-size: 11px;
  line-height: 1.8;
}
.primary {
  background: var(--accent);
  color: white;
  border-radius: 7px;
  font-size: 12px;
  padding: 14px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
}
.primary:hover:not(:disabled) {
  background: #b85e40;
}
.primary span {
  font-size: 17px;
}
.dark {
  background: var(--ink);
}
.dark:hover:not(:disabled) {
  background: #365344;
}
#start-btn {
  margin-top: 14px;
  width: 100%;
}
.secondary {
  padding: 10px 12px;
  background: transparent;
  border: 1px solid #d7dfd1;
  border-radius: 7px;
  font-size: 11px;
}
.secondary:hover:not(:disabled) {
  background: var(--soft);
}
.full {
  width: 100%;
}
.run-controls {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.run-controls button {
  flex: 1;
  font-size: 10px;
  padding: 9px 3px;
}
.storage-note {
  font-size: 9px;
  color: #939b8d;
  line-height: 1.7;
  margin-top: 13px;
}
.text-button {
  color: #687f60;
  padding: 0 4px;
  background: transparent;
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.left-bottom {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8c9886;
  font-size: 9px;
}
.center-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #f4f5ef;
  overflow: hidden;
}
.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 23px;
  height: 84px;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #f8f8f3;
}
.canvas-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.canvas-heading select {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  max-width: 280px;
  min-width: 110px;
}
.canvas-tools {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.quality-toggle {
  font-size: 10px;
  color: #899182;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-right: 5px;
}
.quality-toggle input {
  accent-color: var(--accent);
  width: 12px;
  height: 12px;
}
.stage {
  flex: 1;
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background-color: #eff1e9;
  background-image: linear-gradient(45deg,#e9ece3 25%,transparent 25%),linear-gradient(-45deg,#e9ece3 25%,transparent
    25%),linear-gradient(45deg,transparent 75%,#e9ece3 75%),linear-gradient(-45deg,transparent 75%,#e9ece3 75%);
  background-size: 32px 32px;
  background-position: 0 0,0 16px,16px -16px,-16px 0;
}
.stage:has(.empty-state:not([hidden])) {
  background-image: radial-gradient(#cbd2c4 0.65px,transparent .65px);
  background-size: 18px 18px;
  background-color: #f1f3eb;
}
#viewer {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  touch-action: none;
  cursor: grab;
}
#viewer:active {
  cursor: grabbing;
}
.empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
  padding-bottom: 10px;
}
.empty-state > h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.5px;
  margin: 12px 0;
}
.empty-state > p {
  font-size: 12px;
  color: #8a9482;
  text-align: center;
  line-height: 1.9;
  margin: 0;
}
.empty-hint {
  margin-top: 22px;
  color: #9ca593;
  font-size: 10px;
}
.canvas-art {
  position: relative;
  width: 280px;
  height: 260px;
  margin-bottom: 15px;
}
.art-grid {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 230px;
  height: 202px;
  border: 1px solid #bdc8b580;
  transform: rotate(-6deg);
}
.art-paper {
  position: absolute;
  width: 178px;
  height: 205px;
  background: #fffef9;
  border: 1px solid #e0e6d7;
  border-radius: 4px;
  box-shadow: 8px 14px 24px #47653509;
}
.art-paper.rear {
  top: 1px;
  left: 34px;
  transform: rotate(-9deg);
  padding: 27px 20px;
  background: #e3eadb;
}
.art-paper.rear i {
  display: block;
  background: #a5b799;
  width: 35px;
  height: 8px;
  margin-bottom: 14px;
}
.art-paper.rear b {
  display: block;
  width: 110px;
  height: 4px;
  background: #c0cbb6;
  margin: 8px 0;
}
.art-paper.rear em {
  display: block;
  width: 105px;
  height: 56px;
  border: 1px solid #bfccb4;
  margin-top: 20px;
}
.art-paper.front {
  left: 66px;
  top: 33px;
  transform: rotate(5deg);
  padding: 26px 19px;
}
.art-paper small {
  font: 6px ui-monospace,monospace;
  color: #97a58b;
  letter-spacing: 1px;
}
.art-paper h2 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.4px;
  margin: 16px 0 9px;
}
.art-paper p {
  font-size: 9px;
  line-height: 1.7;
  color: #98a18e;
}
.art-bars {
  height: 42px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-top: 15px;
}
.art-bars i {
  width: 11px;
  background: #d2dac8;
  height: 24px;
}
.art-bars i:nth-child(2n) {
  height: 35px;
  background: #bfcfb2;
}
.art-bars i:nth-child(3n) {
  height: 18px;
  background: #cd8b6c;
}
.art-bars i:last-child {
  height: 40px;
}
.art-caption {
  position: absolute;
  bottom: 0;
  left: 70px;
  color: #8b9a7d;
  letter-spacing: 1.5px;
  font: 7px ui-monospace,monospace;
}
.art-caption span {
  font-size: 15px;
  margin-right: 5px;
}
.art-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #a5b697;
  border-style: solid;
}
.c1 {
  left: 9px;
  top: 53px;
  border-width: 1px 0 0 1px;
}
.c2 {
  right: 4px;
  bottom: 45px;
  border-width: 0 1px 1px 0;
}
.zoom-controls {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fffef9e8;
  border: 1px solid #dfe4d6;
  box-shadow: 0 3px 12px #25332007;
  border-radius: 7px;
  padding: 3px 6px;
  font-size: 10px;
  color: #697b5e;
}
.zoom-controls button {
  background: transparent;
  width: 25px;
  height: 25px;
  font-size: 15px;
}
.zoom-controls span {
  min-width: 38px;
  text-align: center;
}
.canvas-badge {
  position: absolute;
  top: 16px;
  left: 18px;
  font: 9px ui-monospace,monospace;
  background: #fffef9e8;
  border: 1px solid #dce2d5;
  border-radius: 5px;
  padding: 7px 10px;
  max-width: 80%;
  color: #728367;
}
.progress-panel {
  padding: 18px 23px 16px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.progress-top,
.progress-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.progress-top > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-top strong {
  font-size: 11px;
  font-weight: 500;
}
.progress-top > span {
  font: 9px ui-monospace,monospace;
  color: #95a18c;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: #9aaa8e;
  border-radius: 50%;
}
.status-dot.running {
  background: var(--accent);
  animation: pulse 1.3s ease-in-out infinite;
}
.progress-track {
  height: 3px;
  background: #e2e8d9;
  margin: 13px 0 11px;
  overflow: hidden;
  border-radius: 3px;
}
#progress-bar {
  width: 0;
  height: 100%;
  background: #7e9770;
  transition: width .18s;
}
.progress-bottom {
  font-size: 9px;
  color: #8f9a85;
}
.progress-bottom > span:first-child {
  flex: 1;
  line-height: 1.5;
}
.progress-bottom > span:last-child {
  text-align: right;
  max-width: 40%;
}
.right-panel {
  border-left: 1px solid var(--line);
  padding: 28px 22px 20px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}
.panel-title h2 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.4px;
  margin: 0;
}
.count-badge {
  border: 1px solid #dfe5d5;
  border-radius: 5px;
  color: #8a987d;
  padding: 3px 7px;
  min-width: 23px;
  text-align: center;
  font: 10px ui-monospace,monospace;
}
.count-badge.has-issues {
  background: #f6e8dd;
  color: #b17751;
  border-color: #eed6c1;
}
.panel-desc {
  color: #939c8a;
  font-size: 11px;
  line-height: 1.8;
  margin: 12px 0 21px;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}
.metrics > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metrics > div + div {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.metrics span {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -1px;
}
.metrics small {
  font-size: 9px;
  color: #929d85;
}
.coverage-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0 21px;
}
.coverage-card p {
  font-size: 10px;
  color: #849375;
  margin: 0;
  line-height: 1.8;
}
.coverage-card small {
  font-size: 9px;
  color: #9aa58e;
}
.legend-square {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1px solid #dde4d3;
  border-radius: 3px;
  background: conic-gradient(#d8dfcd 25%,#f0f2e9 0 50%,#d8dfcd 0 75%,#f0f2e9 0) 0 0/10px 10px;
}
.diagnostics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 12px;
}
.diagnostics-header strong {
  font-size: 10px;
  font-weight: 500;
}
.diagnostics-header select {
  font-size: 9px;
  background: transparent;
  border: 0;
  color: #939e88;
}
.diagnostics {
  overflow: auto;
  flex: 1;
  min-height: 110px;
  padding-right: 3px;
}
.diagnostic-empty {
  font-size: 10px;
  line-height: 1.9;
  color: #a3ab98;
  margin-top: 18px;
}
.diagnostic {
  border: 1px solid #e3e7dc;
  border-radius: 7px;
  padding: 11px 10px;
  margin-bottom: 8px;
  background: #fcfcf7;
}
.diagnostic.warning {
  border-color: #e7d9bf;
  background: #faf5e9;
}
.diagnostic.error {
  border-color: #dfbcad;
  background: #fbefea;
}
.diagnostic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
  color: #93a181;
  font: 8px ui-monospace,monospace;
  word-break: break-all;
}
.warning .diagnostic-head {
  color: #ab8654;
}
.error .diagnostic-head {
  color: #b67056;
}
.diagnostic p {
  font-size: 10px;
  line-height: 1.8;
  margin: 0;
  color: #78846c;
}
.diagnostic .action {
  color: #9caa8c;
  font-size: 9px;
  margin-top: 7px;
}
.diagnostic button {
  font-size: 9px;
  padding: 5px 0 0;
  background: transparent;
  color: #ab7655;
}
.export-panel {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 14px;
}
.export-panel .primary {
  width: 100%;
}
.export-panel .secondary {
  margin-top: 8px;
}
.export-panel > p {
  font-size: 9px;
  color: #9aa58e;
  line-height: 1.7;
  text-align: center;
  margin: 11px 0 0;
}
.export-link {
  display: block;
  margin-top: 10px;
  padding: 10px;
  text-align: center;
  background: #e8eddd;
  border-radius: 6px;
  color: #607a50;
  font-size: 11px;
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: #263b33;
  color: #fcfff6;
  padding: 15px 22px;
  border-radius: 9px;
  box-shadow: var(--shadow);
  max-width: min(650px,90vw);
  z-index: 20;
  font-size: 12px;
  line-height: 1.8;
}
#toast.error {
  background: #834d3c;
}
dialog {
  border: 1px solid #dce3d3;
  border-radius: 13px;
  padding: 25px;
  background: var(--bg);
  color: var(--ink);
  max-width: 560px;
  width: calc(100% - 32px);
  box-shadow: 0 25px 100px #17271735;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #1d32265c;
  backdrop-filter: blur(4px);
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dialog-header h2 {
  font-weight: 500;
  font-size: 20px;
  margin: 0;
}
.dialog-header button {
  font-size: 23px;
}
.help-copy h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 24px 0 7px;
}
.help-copy p {
  font-size: 12px;
  color: #7d8c71;
  line-height: 1.9;
}
.wide-dialog {
  max-width: 940px;
}
.history-item {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.history-item strong {
  font-size: 12px;
  font-weight: 500;
  word-break: break-word;
}
.history-item p {
  font-size: 10px;
  color: #96a18a;
  margin: 6px 0;
}
.history-actions {
  display: flex;
  gap: 5px;
}
.region-tools {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 12px 0;
}
.region-tools select {
  font-size: 12px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
}
#region-canvas {
  display: block;
  max-width: 100%;
  max-height: 55vh;
  margin: auto;
  touch-action: none;
  cursor: crosshair;
  border: 1px solid var(--line);
}
#region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  font-size: 10px;
}
#region-list button {
  font-size: 10px;
  background: #e8eedf;
  border-radius: 5px;
  padding: 7px;
}
#source-video {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  margin: auto;
}
@keyframes pulse {
  50% {
    opacity: .3;
  }
}
@media (min-width:1550px) {
  .workspace {
    grid-template-columns: 302px minmax(450px,1fr) 315px;
  }
  .left-panel {
    padding: 34px 29px;
  }
  .right-panel {
    padding: 34px 27px;
  }
  .canvas-art {
    transform: scale(1.12);
    margin-bottom: 30px;
  }
  .empty-state > h2 {
    margin-top: 26px;
  }
  .left-panel h1 {
    font-size: 37px;
  }
  .intro {
    margin-bottom: 31px;
  }
}
@media (max-width:1120px) {
  .workspace {
    grid-template-columns: 238px minmax(310px,1fr) 252px;
  }
  .left-panel {
    padding: 25px 18px;
  }
  .right-panel {
    padding: 25px 16px;
  }
  .canvas-toolbar {
    padding: 17px 16px;
  }
  .quality-toggle {
    font-size: 9px;
  }
  .canvas-heading .section-eyebrow {
    font-size: 8px;
  }
  .canvas-tools {
    gap: 0;
  }
  .canvas-tools .quiet {
    padding: 7px;
  }
  .canvas-heading select {
    max-width: 150px;
  }
  .progress-panel {
    padding: 16px;
  }
  .canvas-art {
    transform: scale(.9);
    margin-bottom: -5px;
  }
  .panel-title h2 {
    font-size: 15px;
  }
}
@media (max-width:900px) {
  .workspace {
    grid-template-columns: 230px minmax(0,1fr);
    height: auto;
    min-height: calc(100dvh - 70px);
  }
  .app-header {
    height: 70px;
    padding: 0 19px;
  }
  .left-panel {
    min-height: 700px;
  }
  .center-panel {
    height: 740px;
  }
  .right-panel {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    padding: 24px;
  }
  .right-panel .section-eyebrow,
  .panel-title,
  .panel-desc,
  .metrics,
  .coverage-card {
    grid-column: 1;
  }
  .right-panel .panel-desc {
    margin: 0;
  }
  .right-panel .coverage-card {
    padding: 0;
  }
  .diagnostics-header {
    grid-column: 2;
    grid-row: 1/3;
  }
  .diagnostics {
    grid-column: 2;
    grid-row: 3/7;
    max-height: 280px;
  }
  .export-panel {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .export-panel .secondary {
    margin: 0;
  }
  .export-panel > p {
    grid-column: 1/-1;
  }
  .left-bottom {
    padding-bottom: 10px;
  }
  .privacy {
    font-size: 10px;
  }
}
@media (max-width:600px) {
  .app-header {
    height: 66px;
    padding: 0 15px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand svg {
    width: 28px;
  }
  .brand-tag {
    font-size: 6px;
    letter-spacing: 1.6px;
  }
  .header-right {
    gap: 4px;
  }
  .privacy {
    font-size: 0;
    margin-right: 7px;
  }
  .privacy i {
    width: 6px;
    height: 6px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .left-panel {
    min-height: 0;
    padding: 23px 20px 19px;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .left-panel > h1 {
    font-size: 28px;
    margin: 10px 0;
  }
  .left-panel > h1 br {
    display: none;
  }
  .intro {
    font-size: 11px;
    margin-bottom: 18px;
  }
  .intro br {
    display: none;
  }
  .drop-zone {
    padding: 18px 12px;
    gap: 8px;
  }
  .drop-zone svg {
    display: none;
  }
  .drop-zone strong {
    max-width: 90%;
  }
  .demo-row {
    justify-content: center;
    gap: 8px;
  }
  .demo-row select {
    flex: 0 1 auto;
    min-width: 150px;
  }
  .divider {
    margin: 16px 0;
  }
  .setting-row {
    margin: 10px 0;
  }
  .setting-button {
    margin: 10px 0 12px;
  }
  .advanced {
    margin-top: 2px;
  }
  .advanced summary {
    padding: 11px 0;
  }
  .left-bottom {
    display: none;
  }
  .storage-note {
    margin-top: 8px;
  }
  .center-panel {
    height: 640px;
    min-height: 540px;
  }
  .canvas-toolbar {
    height: 78px;
    padding: 15px;
  }
  .canvas-heading select {
    max-width: 150px;
    font-size: 11px;
  }
  .canvas-tools .quiet {
    font-size: 11px;
    padding: 8px;
  }
  .canvas-tools {
    gap: 2px;
  }
  .quality-toggle {
    font-size: 10px;
    margin-right: 2px;
  }
  .stage {
    min-height: 370px;
  }
  .progress-bottom {
    font-size: 8px;
  }
  .progress-panel {
    padding: 14px 15px;
  }
  .right-panel {
    display: flex;
    gap: 0;
    padding: 25px 20px;
  }
  .right-panel .section-eyebrow {
    margin-bottom: 5px;
  }
  .panel-title h2 {
    font-size: 18px;
  }
  .panel-desc br {
    display: none;
  }
  .panel-desc {
    margin: 10px 0!important;
  }
  .metrics {
    padding: 15px 0;
  }
  .coverage-card {
    padding: 16px 0!important;
  }
  .diagnostics {
    min-height: 150px;
    max-height: 340px;
    flex: auto;
  }
  .diagnostic {
    padding: 12px;
  }
  .diagnostic p {
    font-size: 11px;
  }
  .diagnostic-head {
    font-size: 9px;
  }
  .export-panel {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 20px;
  }
  .export-panel > p {
    margin-top: 3px;
  }
  .canvas-art {
    transform: scale(.85);
    height: 240px;
    margin-bottom: 0;
  }
  .empty-state > h2 {
    font-size: 21px;
  }
  .empty-hint {
    font-size: 9px;
    margin-top: 16px;
  }
  .empty-state > p {
    font-size: 11px;
  }
  dialog {
    padding: 20px;
  }
  .history-item {
    align-items: flex-start;
  }
  .history-actions {
    flex-direction: column;
  }
  #toast {
    bottom: 14px;
    font-size: 11px;
    padding: 12px 16px;
  }
}
.export-download-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.export-advanced {
  font-size: 11px;
  color: #7d8976;
}
.export-advanced summary {
  cursor: pointer;
  padding: 6px 0;
}
.export-advanced > button {
  margin-top: 6px;
}
.export-advanced > p {
  font-size: 10px;
  line-height: 1.7;
  margin: 6px 0 0;
}
