:root {
  --ink: #17231e;
  --muted: #718079;
  --line: #cbd5cf;
  --paper: #f4f6f1;
  --panel: #fbfcf8;
  --acid: #d8ff50;
  --signal: #ff6546;
  --shadow: 0 16px 40px rgba(23, 35, 30, .07);
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font-family: "Space Grotesk", sans-serif; background: radial-gradient(circle at 85% 15%, rgba(216,255,80,.2), transparent 30%), var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(1440px, calc(100% - 56px)); margin: 0 auto; }
.topbar { height: 78px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-decoration: none; }
.brand-mark { width: 20px; height: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--ink); padding: 3px; transform: rotate(45deg); }
.brand-mark::before, .brand-mark::after { content: ""; background: var(--acid); }
.brand-mark::after { grid-column: 3; grid-row: 1 / span 2; }
.topbar-note, .eyebrow, .mono-label, .status-dot, .footer { font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .08em; }
.topbar-note { color: var(--muted); margin: 0; }.topbar-note span { color: var(--signal); padding: 0 8px; }
.intro { padding: 74px 0 62px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; }
.eyebrow { margin: 0 0 18px; color: var(--signal); }.intro h1 { font-size: clamp(46px, 6vw, 86px); line-height: .95; letter-spacing: -.065em; font-weight: 600; margin: 0; }.intro h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--signal); letter-spacing: -.07em; }.intro-copy { max-width: 390px; color: var(--muted); line-height: 1.55; font-size: 15px; margin: 0 0 5px; }
.workspace { display: grid; grid-template-columns: .85fr 1fr 1.35fr; gap: 16px; align-items: stretch; }.panel { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px; min-width: 0; }.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }.panel-heading > div { display: flex; align-items: center; gap: 10px; }.step { color: var(--signal); font: 11px "DM Mono", monospace; }.panel h2 { font-size: 15px; margin: 0; font-weight: 600; }.status-dot { color: var(--muted); font-size: 9px; }.status-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); margin-right: 6px; }.status-idle::before { background: var(--line); }.primary-editor { margin-top: 0; padding: 24px; }.primary-editor .editor-layout { min-height: 470px; grid-template-columns: minmax(0, 1fr) 280px; }.primary-editor .editor-stage { min-height: 470px; }.image-workbench { margin-top: 64px; }.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 18px; }.section-heading > div { display: flex; align-items: center; gap: 10px; }.section-heading h2 { margin: 0; font-size: 20px; }.section-heading p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.drop-zone { min-height: 315px; border: 1px dashed #aebcb4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; transition: .2s ease; }.drop-zone:focus-visible, .drop-zone.dragover { outline: 2px solid var(--signal); outline-offset: 3px; background: #f3f7ed; }.drop-art { width: 74px; height: 74px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 24px; transform: rotate(12deg); }.drop-art span { background: var(--ink); }.drop-art span:nth-child(2n) { background: var(--acid); }.drop-art span:nth-child(3n) { background: transparent; border: 1px solid var(--ink); }.drop-title { margin: 0 0 8px; font-size: 15px; font-weight: 600; }.drop-subtitle, .file-name { color: var(--muted); font-size: 12px; margin: 0; }.file-name { font: 9px "DM Mono", monospace; margin-top: 27px; text-transform: uppercase; }.text-button { border: 0; background: none; color: var(--signal); text-decoration: underline; padding: 0; }.source-preview-wrap { position: relative; background: #e8ede7; min-height: 315px; display: grid; place-items: center; overflow: hidden; }.source-preview-wrap canvas { max-width: 100%; max-height: 375px; display: block; }.remove-button { position: absolute; right: 10px; top: 10px; }
.control-group { margin-bottom: 22px; }.control-group label, .label-line { display: block; font-size: 11px; font-weight: 600; margin-bottom: 9px; }.label-line { display: flex; justify-content: space-between; }.label-line output { color: var(--signal); font: 11px "DM Mono", monospace; }select, .number-input { border: 1px solid var(--line); background: white; width: 100%; height: 42px; color: var(--ink); padding: 0 11px; }.number-input { display: flex; align-items: center; padding: 0 10px; }.number-input input { width: 100%; border: 0; outline: 0; font: 15px "DM Mono", monospace; color: var(--ink); background: transparent; }.number-input span { color: var(--muted); font: 9px "DM Mono", monospace; }.dimension-row { display: grid; grid-template-columns: 1fr 16px 1fr; align-items: end; gap: 8px; }.dimension-link { text-align: center; color: var(--muted); padding-bottom: 12px; }.slider-group input { width: 100%; accent-color: var(--signal); }.toggle-row { border-top: 1px solid var(--line); padding: 14px 0; display: flex; align-items: center; justify-content: space-between; }.toggle-row strong, .toggle-row span { display: block; font-size: 12px; }.toggle-row span { color: var(--muted); font-size: 10px; margin-top: 3px; }.switch input { opacity: 0; width: 0; height: 0; position: absolute; }.switch > span { width: 38px; height: 22px; display: block; background: var(--line); border-radius: 20px; padding: 3px; transition: .2s; }.switch > span::before { content: ""; display: block; width: 16px; height: 16px; background: white; border-radius: 50%; transition: .2s; }.switch input:checked + span { background: var(--signal); }.switch input:checked + span::before { transform: translateX(16px); }.primary-button, .secondary-button { border: 0; display: flex; align-items: center; justify-content: space-between; gap: 15px; height: 46px; padding: 0 15px; font-weight: 600; }.primary-button { width: 100%; background: var(--ink); color: white; margin-top: 7px; }.primary-button:disabled, .secondary-button:disabled { opacity: .4; cursor: not-allowed; }.primary-button:not(:disabled):hover { background: var(--signal); }
.output-stage { background: #e7ece6; height: 355px; display: grid; place-items: center; overflow: hidden; padding: 20px; }.empty-output { text-align: center; color: var(--muted); }.empty-icon { width: 45px; height: 45px; border: 1px solid #b8c4bc; display: grid; place-items: center; margin: 0 auto 18px; font: 25px "DM Mono", monospace; color: #b8c4bc; }.empty-output p { margin: 0 0 6px; color: var(--ink); font-size: 13px; }.empty-output span { font-size: 11px; }.output-stage canvas { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; box-shadow: 0 4px 12px rgba(23,35,30,.18); }.output-meta { display: flex; justify-content: space-between; padding: 12px 0 0; font: 10px "DM Mono", monospace; color: var(--muted); }.output-meta span:last-child { color: var(--signal); }.export-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }.secondary-button { border: 1px solid var(--line); background: white; justify-content: center; font-size: 11px; }.secondary-button:not(:disabled):hover { border-color: var(--ink); }.is-hidden { display: none !important; }.footer { display: flex; justify-content: space-between; color: var(--muted); padding: 24px 0 38px; margin-top: 12px; }.footer b { color: var(--ink); font-weight: 500; }.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 12px 18px; font: 11px "DM Mono", monospace; opacity: 0; pointer-events: none; transition: .25s; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1000px) { .workspace { grid-template-columns: 1fr 1fr; }.output-panel { grid-column: 1 / -1; }.intro { padding-top: 52px; }.primary-editor .editor-layout { grid-template-columns: minmax(0, 1fr) 240px; } }
@media (max-width: 640px) { .app-shell { width: min(100% - 28px, 500px); }.topbar-note { display: none; }.intro { display: block; padding: 45px 0 38px; }.intro h1 { font-size: 52px; }.intro-copy { margin-top: 26px; }.primary-editor { padding: 14px; }.primary-editor .editor-layout { min-height: 0; }.primary-editor .editor-stage { min-height: 270px; }.workspace { display: block; }.image-workbench { margin-top: 42px; }.section-heading { display: block; }.section-heading p { margin: 10px 0 0 21px; }.panel { margin-bottom: 14px; }.output-panel { margin-bottom: 0; }.drop-zone, .source-preview-wrap { min-height: 270px; }.output-stage { height: 310px; }.footer { gap: 10px; flex-wrap: wrap; line-height: 1.5; }.footer span:nth-child(2) { order: 3; width: 100%; }.export-row { grid-template-columns: 1fr; } }

.editor-panel { margin-top: 16px; }.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 20px; align-items: start; }.editor-stage { min-height: 280px; display: grid; place-items: center; overflow: auto; padding: 18px; background: #e7ece6; border: 1px solid var(--line); }.editor-stage canvas { display: block; width: min(100%, 720px); height: auto; background: white; image-rendering: pixelated; cursor: crosshair; touch-action: none; }.editor-stage canvas:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }.editor-tools { border-left: 1px solid var(--line); padding-left: 20px; }.tool-heading { display: flex; justify-content: space-between; color: var(--muted); font: 10px "DM Mono", monospace; margin-bottom: 12px; }.tool-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }.tool-button { border: 1px solid var(--line); background: white; height: 42px; color: var(--ink); font-size: 11px; }.tool-button.active { border-color: var(--signal); background: #fff0ec; color: var(--signal); }.wide-button { width: 100%; }.editor-help { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 18px 0 0; }.fullscreen-target { position: relative; }.fullscreen-button { position: absolute; right: 12px; top: 12px; z-index: 2; border: 1px solid var(--line); background: rgba(255,255,255,.94); color: var(--ink); padding: 8px 10px; font: 10px "DM Mono", monospace; }.fullscreen-button:hover { border-color: var(--signal); color: var(--signal); }.fullscreen-target:fullscreen, .fullscreen-fallback { position: fixed; inset: 0; z-index: 50; width: 100vw; height: 100vh; min-height: 0; padding: 48px; background: #e7ece6; }.editor-layout:fullscreen, .editor-layout.fullscreen-fallback { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: stretch; }.editor-layout:fullscreen .editor-stage, .editor-layout.fullscreen-fallback .editor-stage { min-height: 0; height: 100%; }.editor-layout:fullscreen .editor-stage canvas, .editor-layout.fullscreen-fallback .editor-stage canvas { width: min(100%, 1200px); max-height: calc(100vh - 96px); }.output-stage:fullscreen canvas, .output-stage.fullscreen-fallback canvas { max-width: 100%; max-height: 100%; }
.disclaimer { border-top: 1px solid var(--line); margin-top: 34px; padding: 24px 0 8px; color: var(--muted); font-size: 11px; line-height: 1.6; }.disclaimer h2 { margin: 0 0 10px; color: var(--ink); font: 500 12px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }.disclaimer p { max-width: 900px; margin: 0 0 9px; }.disclaimer strong { color: var(--ink); font-weight: 600; }.top-disclaimer { display: grid; grid-template-columns: 120px 1fr 1fr; column-gap: 24px; row-gap: 0; margin-top: -34px; margin-bottom: 26px; padding: 15px 0 2px; border-top-color: var(--signal); font-size: 10px; line-height: 1.45; }.top-disclaimer h2 { grid-row: span 3; margin: 0; color: var(--signal); }.top-disclaimer p { margin: 0 0 6px; }.top-disclaimer p:last-child { grid-column: 2 / -1; }
@media (max-width: 640px) { .editor-layout { display: block; }.editor-tools { border-left: 0; border-top: 1px solid var(--line); padding: 18px 0 0; margin-top: 16px; }.editor-stage { min-height: 220px; padding: 10px; } }
.top-disclaimer { display: grid; }
@media (max-width: 640px) { .top-disclaimer { display: block; margin-top: -18px; padding: 14px 0 4px; }.top-disclaimer h2 { margin-bottom: 8px; }.top-disclaimer p { margin-bottom: 7px; } }
.thickness-control { margin: 18px 0; }.trace-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }.trace-tools .secondary-button { width: 100%; padding: 0 8px; }.editor-actions, .project-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.editor-actions .secondary-button, .project-actions .secondary-button { width: 100%; padding: 0 8px; }.editor-actions .secondary-button:disabled, .trace-tools .secondary-button:disabled { opacity: .4; }.project-actions { margin-top: 8px; }.editor-tools .fullscreen-button { position: static; width: 100%; margin-bottom: 18px; }
