:root {
  color-scheme: dark;
  --background: #1c1e20;
  --surface: #25282b;
  --raised: #303438;
  --line: #43484c;
  --text: #f2f3ef;
  --muted: #b7bdc2;
  --subtle: #a0a7ad;
  --accent: #ffd567;
  --pink: #ff8b9a;
  --mint: #79e2d1;
  --shadow: #111315;
  --mono: 'JetBrains Mono', 'Cascadia Code', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --sans: 'Adwaita Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--sans);
  font-size: 14px;
  font-synthesis: none;
  color: var(--text);
  background: var(--background);
}
* { box-sizing: border-box; border-radius: 0; }
body { margin: 0; min-width: 0; background-image: radial-gradient(#a0a7ad18 .8px, transparent .8px); background-size: 16px 16px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; outline-offset: 4px; }
button { cursor: pointer; color: inherit; touch-action: manipulation; }
button:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 2px solid var(--mint); }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
h2, h3 { font-size: 13px; font-weight: 600; }
svg { display: block; width: 18px; height: 18px; }
[data-icon] { display: inline-flex; flex-shrink: 0; }
[hidden] { display: none !important; }
::selection { background: var(--pink); color: var(--background); }
.site-header { height: 90px; padding: 0 44px; display: flex; align-items: center; gap: 28px; border-bottom: 2px solid var(--line); background: #202325; }
.brand { display: flex; align-items: center; gap: 12px; font: 700 26px/1 var(--sans); letter-spacing: -.8px; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; image-rendering: pixelated; }
.brand-domain { align-self: flex-end; font: 11px/1 var(--mono); color: var(--background); background: var(--pink); padding: 4px 5px; margin-left: -5px; margin-bottom: 2px; box-shadow: 2px 2px 0 var(--shadow); }
.header-description { color: var(--muted); font: 12px var(--sans); padding-left: 28px; border-left: 2px solid var(--line); }
.header-note { margin-left: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.tiny-star { color: var(--accent); }
.tiny-star svg { width: 16px; height: 16px; }
.remove-color svg, .preset-check svg { width: 12px; height: 12px; }
main { max-width: 1480px; padding: 38px 44px 0; margin: 0 auto; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
h1 { font: 650 clamp(30px, 3vw, 40px)/1.2 var(--sans); letter-spacing: -1.3px; }
.intro p { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 2px solid var(--line); border-radius: 0; background: var(--raised); font: 600 13px var(--sans); padding: 11px 16px; box-shadow: 3px 3px 0 var(--shadow); transition: transform .08s, box-shadow .08s, background-color .08s; }
.button:hover { background: #3b4044; }
.button:active { transform: translate(3px, 3px); box-shadow: none; }
.shuffle-button { flex-shrink: 0; color: #142e32; background: var(--mint); border-color: #b0f7db; box-shadow: 4px 4px 0 var(--shadow); }
.shuffle-button:hover { background: #a0f2df; }
.shuffle-button svg { width: 19px; height: 19px; }
kbd { font: 11px/1 var(--mono); padding: 4px 5px; border: 1px solid currentColor; opacity: .65; margin-left: 7px; }
.workspace { display: grid; grid-template-columns: 306px minmax(0, 1fr); align-items: start; gap: 26px; }
.controls { border-radius: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 0; background: var(--surface); border: 2px solid var(--line); box-shadow: 5px 5px 0 var(--shadow); }
.controls-heading { display: flex; align-items: center; justify-content: space-between; padding: 9px 15px 9px 18px; border-bottom: 2px solid var(--line); background: #303438; }
.controls-heading h2 { display: flex; align-items: center; gap: 10px; font: 600 14px var(--sans); }
.panel-icon { color: var(--muted); }
.icon-button { border-radius: 0; padding: 6px; width: 30px; height: 30px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--muted); }
.icon-button svg { width: 16px; height: 16px; }
.icon-button:hover { border-color: var(--line); background: var(--raised); color: var(--text); }
.control-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid var(--line); background: #202325; }
.control-tabs button { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 45px; font: 500 12px var(--sans); color: var(--muted); background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 3px solid transparent; padding: 10px 5px 8px; }
.control-tabs button:last-child { border-right: 0; }
.control-tabs button svg { width: 14px; height: 14px; }
.control-tabs button:hover { color: var(--text); background: #2d3135; }
.control-tabs button[aria-selected='true'] { color: var(--mint); background: #303438; border-bottom-color: var(--mint); }
.control-tabs button:focus-visible { outline-offset: -4px; }
.control-panel { flex: 1; max-height: 720px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) var(--surface); }
.control-panel:focus-visible { outline-offset: -4px; }
.control-section { padding: 20px 18px; border-bottom: 1px solid var(--line); }
.control-panel .control-section:last-child { border-bottom: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#palette-name { color: var(--pink); font: 10px var(--mono); }
.color-stops { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
.color-editor { display: flex; align-items: stretch; gap: 12px; min-width: 0; }
.color-swatch, .checker-chip { background-color: #f1f2f2; background-image: conic-gradient(#b9bec1 25%, transparent 0 50%, #b9bec1 0 75%, transparent 0); background-size: 12px 12px; }
.color-swatch { border-radius: 0; display: block; position: relative; width: 44px; flex-shrink: 0; border: 2px solid #d5dadd55; box-shadow: 2px 2px 0 var(--shadow); overflow: hidden; cursor: pointer; }
.swatch-paint { position: absolute; inset: 0; }
.color-swatch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; padding: 0; border: 0; cursor: pointer; }
.color-swatch:focus-within { outline: 2px solid var(--mint); outline-offset: 3px; }
.color-details { flex: 1; min-width: 0; }
.color-heading { display: flex; align-items: center; min-height: 22px; gap: 4px; }
.color-hex { font: 10px var(--mono); color: var(--text); margin-right: auto; }
.clear-color, .remove-color { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 4px; border: 1px solid transparent; color: var(--muted); background: transparent; }
.clear-color:hover, .remove-color:hover { background: var(--raised); color: var(--pink); }
.clear-color[aria-pressed='true'] { border-color: var(--mint); }
.remove-color { font-size: 17px; }
.remove-color:disabled, .color-actions button:disabled { cursor: default; opacity: .3; }
.checker-chip { display: inline-block; width: 12px; height: 12px; background-size: 8px 8px; flex-shrink: 0; }
.opacity-caption { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 2px 0; font-size: 10px; color: var(--muted); }
.opacity-caption output { font: 9px var(--mono); }
.color-help { font-size: 10px; color: var(--subtle); line-height: 1.5; margin-top: 8px; }
.color-actions { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 14px; }
.color-actions .icon-button { margin-right: -6px; }
.palette-section { padding-bottom: 15px; }
.background-editor { margin-top: 14px; }
.shape-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.shape-button { border-radius: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; border: 2px solid var(--line); padding: 14px 3px 11px; background: #202325; font: 500 12px var(--sans); color: var(--muted); }
.shape-button:hover { border-color: var(--pink); }
.shape-button[aria-pressed='true'] { border-color: var(--pink); background: #34383b; color: #f2f3ef; box-shadow: 2px 2px 0 var(--shadow); }
.shape-sample { width: 28px; height: 24px; }
.sample-linear { background: linear-gradient(135deg, #ffd567 0 24%, #ffb282 25% 49%, #f88aab 50% 74%, #789e9b 75%); }
.sample-radial { background: radial-gradient(circle at 40% 45%, #ffd567, #ffa97f 35%, #ef8aac 60%, #668d89); }
.sample-wave { background: radial-gradient(ellipse at 0 0, transparent 40%, #ffd567 42% 52%, #ffb282 54% 66%, #f88aab 68% 82%, #789e9b 84%); }
.sample-rings { background: repeating-radial-gradient(circle, #ffd567 0 2px, #668d89 3px 5px); }
.sample-diamond { background: #668d89; position: relative; overflow: hidden; }
.sample-diamond::after { content: ''; position: absolute; width: 19px; height: 19px; left: 4px; top: 2px; transform: rotate(45deg); background: #ffd567; border: 5px solid #ffb282; }
.sample-tiles { background: conic-gradient(#ffd567 25%, #ffb282 0 50%, #668d89 0 75%, #f88aab 0); background-size: 14px 12px; }
.range-heading { margin: 24px 0 9px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text); }
.range-heading output { font: 10px var(--mono); color: var(--accent); }
input[type='range'] { --range-progress: 50%; display: block; appearance: none; width: 100%; height: 16px; margin: 0; background: transparent; cursor: pointer; }
input[type='range']::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, var(--accent) var(--range-progress), #4b5156 var(--range-progress)); }
input[type='range']::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; background: var(--accent); border: 2px solid #fff1b5; box-shadow: 2px 2px 0 var(--shadow); margin-top: -4px; }
input[type='range']::-moz-range-track { height: 4px; background: #4b5156; }
input[type='range']::-moz-range-progress { height: 4px; background: var(--accent); }
input[type='range']::-moz-range-thumb { width: 8px; height: 8px; background: var(--accent); border: 2px solid #fff1b5; border-radius: 0; box-shadow: 2px 2px 0 var(--shadow); }
.color-editor input[type='range'] { --accent: var(--mint); }
.color-editor input[type='range']::-webkit-slider-thumb, .color-editor input[type='range']::-moz-range-thumb { border-color: #c0f8ee; }
input[type='range']:disabled { opacity: .3; cursor: default; }
.disabled { opacity: .35; }
.texture-icon { color: var(--muted); }
.control-description { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; background: #1c1e20; border: 1px solid var(--line); margin-top: 17px; gap: 3px; }
.segmented button { border: 1px solid transparent; background: none; padding: 10px 3px; color: var(--muted); font: 500 12px var(--sans); }
.segmented button:hover { color: var(--text); }
.segmented button[aria-pressed='true'] { background: #34383b; color: #f2f3ef; border-color: #828b91; }
.layout-options { grid-template-columns: repeat(2, 1fr); }
.spectrum-button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 7px; font-size: 11px; border: 1px solid var(--line); background: var(--raised); padding: 12px 9px; margin-top: 22px; }
.spectrum-button:hover { border-color: var(--pink); }
.spectrum-swatch { width: 36px; height: 16px; background: linear-gradient(90deg, #6d8cd4 0 25%, #79e2d1 25% 50%, #ffd567 50% 75%, #ff8b9a 75%); }
.select-wrap { display: flex; position: relative; align-items: center; }
.select-wrap > [data-icon]:not(.select-chevron) { position: absolute; pointer-events: none; left: 11px; color: var(--muted); }
.select-wrap svg { width: 15px; height: 15px; }
select { appearance: none; width: 100%; height: 40px; padding: 0 28px 0 35px; border: 1px solid #52595f; border-radius: 0; background: #303438; color: var(--text); font: 12px var(--sans); cursor: pointer; }
.select-chevron { pointer-events: none; position: absolute; right: 10px; top: 12px; color: var(--muted); }
.primary-button { width: 100%; background: var(--accent); color: #302b1c; border-color: #ffe6a4; margin-top: 13px; font: 600 13px var(--sans); }
.primary-button:hover { background: #ffe293; }
.primary-button svg { width: 18px; height: 18px; }
.export-note { text-align: center; color: var(--subtle); font: 10px/1.5 var(--sans); }
.preview-column { min-width: 0; position: sticky; top: 22px; }
.preview-window { border-radius: 0; border: 2px solid #5c6369; box-shadow: 6px 6px 0 var(--shadow); overflow: hidden; background: var(--surface); }
.window-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 62px; padding: 10px 12px; background: #303438; border-bottom: 2px solid #43484c; }
.toolbar-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.canvas-export { display: grid; grid-template-columns: 226px auto; align-items: center; gap: 10px; }
.canvas-export .select-wrap, .canvas-export select { min-width: 0; }
.canvas-export .download-button { width: auto; min-width: 144px; min-height: 40px; margin: 0; padding: 9px 12px; font-size: 12px; white-space: nowrap; }
#filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-label { display: flex; align-items: center; gap: 15px; font: 10px var(--mono); color: #c5cbd0; min-width: 0; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { display: block; width: 7px; height: 7px; background: var(--mint); box-shadow: 1px 1px 0 var(--shadow); }
.window-dots i:first-child { background: var(--pink); }
.window-dots i:nth-child(2) { background: var(--accent); }
.preview-tools { flex-shrink: 0; display: flex; align-items: center; gap: 12px; }
.tool-button { display: inline-flex; gap: 7px; align-items: center; border: 0; background: transparent; color: #c5cbd0; padding: 6px 0; font-size: 10px; }
.tool-button svg { width: 14px; height: 14px; }
.tool-button[aria-pressed='true'], .tool-button:hover { color: var(--mint); }
.preview-tools > .icon-button { border-left: 1px solid #52595f; padding-left: 12px; width: 30px; }
.canvas-stage { position: relative; background: #16181a; width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 200px; }
#wallpaper { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; image-rendering: pixelated; }
.canvas-stage.transparent #wallpaper { background-color: #f0f1f1; background-image: conic-gradient(#d4d7d9 25%, transparent 0 50%, #d4d7d9 0 75%, transparent 0); background-size: 28px 28px; }
.canvas-stage.portrait { height: 520px; }
.canvas-stage.portrait #wallpaper { width: auto; height: 100%; max-width: 100%; }
.preview-status { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 12px 16px; font: 9px var(--mono); color: var(--muted); border-top: 1px solid var(--line); background: #25282b; }
.preview-status > span:first-child { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); }
.status-dot { display: inline-block; width: 5px; height: 5px; flex-shrink: 0; background: var(--mint); }
.presets-section { margin-top: 28px; }
.presets-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.presets-heading h2 { font: 600 14px/1.5 var(--sans); }
.presets-heading > span { font-size: 11px; color: var(--subtle); }
.presets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.preset { position: relative; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; }
.preset img { display: block; width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; image-rendering: pixelated; border: 3px solid #303438; outline: 1px solid #52595f; box-shadow: 3px 3px 0 var(--shadow); }
.preset:hover img { outline-color: var(--pink); }
.preset[aria-pressed='true'] img { border-color: #3b4044; outline: 2px solid var(--accent); }
.preset-name { display: block; padding-top: 11px; font: 11px var(--sans); color: var(--muted); white-space: nowrap; }
.preset-pattern { display: block; padding-top: 4px; font: 10px var(--sans); color: var(--subtle); }
.preset[aria-pressed='true'] > span { color: var(--accent); }
.preset-check { display: none; position: absolute; right: 6px; top: 6px; background: var(--accent); width: 16px; height: 16px; color: var(--background); font-size: 11px; align-items: center; justify-content: center; }
.preset[aria-pressed='true'] .preset-check { display: flex; }
.workspace-footnote { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 17px; border-top: 1px dashed var(--line); }
.workspace-footnote p { display: flex; align-items: center; gap: 8px; color: var(--subtle); font-size: 11px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 0; background: transparent; border: 0; color: var(--muted); font-size: 10px; }
.text-button:hover { color: var(--mint); }
.text-button svg { width: 14px; height: 14px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; max-width: 1392px; padding: 24px 0 30px; margin: 34px auto 0; border-top: 1px solid var(--line); color: var(--subtle); font: 11px var(--sans); }
.site-footer > span { display: flex; align-items: center; gap: 8px; }
.footer-dot { padding: 0 6px; color: #626a70; }
.inspiration-link:hover { color: var(--pink); }
.desktop-overlay { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; font-family: var(--mono); }
.desktop-bar { position: absolute; top: 9px; left: 10px; right: 10px; padding: 7px 11px; background: #202325e8; border: 1px solid #828b91; display: flex; justify-content: space-between; font-size: 8px; color: #e1e5e7; }
.dim { color: #a0a7ad; }
.desktop-terminal { width: 64%; max-width: 520px; border: 2px solid #929ba2; background: #202325ef; box-shadow: 6px 6px 0 #11131566; color: #e1e5e7; }
.terminal-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #626a70; background: #303438; padding: 10px 13px; font-size: 8px; color: #c5cbd0; }
.terminal-body { padding: 16px 20px; font-size: clamp(8px, .85vw, 12px); line-height: 1.8; }
.terminal-wordmark { display: flex; align-items: center; gap: 12px; font: 650 clamp(15px, 2vw, 26px)/1.5 var(--sans); color: var(--accent); margin: 18px 0; }
.terminal-body p:last-child { margin-top: 12px; }
.terminal-accent { color: var(--mint); }
.terminal-cursor { opacity: .7; }
.fullscreen-close { display: none; }
.canvas-stage:fullscreen { width: 100vw; height: 100vh; background: #111315; }
.canvas-stage:fullscreen #wallpaper { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.canvas-stage:fullscreen .fullscreen-close { display: flex; position: absolute; bottom: 24px; right: 24px; }
.toast { position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 8px); padding: 15px 20px; border: 2px solid var(--mint); background: #2b2f32; color: #d5fff0; box-shadow: 4px 4px 0 var(--shadow); font: 11px/1.6 var(--mono); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 10; max-width: calc(100vw - 32px); width: max-content; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
dialog { width: 460px; max-width: calc(100% - 32px); padding: 24px; border: 2px solid #929ba2; color: var(--text); background: var(--surface); box-shadow: 8px 8px 0 var(--shadow); }
dialog::backdrop { background: #111315c7; }
dialog h2 { font: 600 18px var(--sans); }
dialog p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 12px 0 20px; }
#share-url { width: 100%; padding: 12px; border: 1px solid var(--line); background: var(--background); color: var(--text); font: 11px var(--mono); }
@media (max-width: 1480px) { .site-footer { margin-left: 44px; margin-right: 44px; } }
@media (max-width: 1180px) {
  .site-header { padding: 0 28px; height: 80px; gap: 20px; }
  .header-description { display: none; }
  main { padding: 30px 28px 0; }
  .workspace { grid-template-columns: 284px minmax(0, 1fr); gap: 22px; }
  h1 { font-size: 34px; }
  .window-toolbar { grid-template-columns: 1fr; gap: 10px; }
  .canvas-export { grid-template-columns: minmax(0, 1fr) auto; }
  .preview-status { grid-template-columns: 1fr auto; }
  .export-note { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .presets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px 12px; }
  .preset img { aspect-ratio: 2.25; }
  .presets-heading { align-items: flex-start; }
  .presets-heading > span { display: none; }
  .workspace-footnote { flex-wrap: wrap; }
  .site-footer { margin-left: 28px; margin-right: 28px; }
}
@media (max-width: 850px) {
  .brand { font-size: 21px; }
  h1 { font-size: 30px; letter-spacing: -1px; }
  .intro p { max-width: 360px; font-size: 12px; }
  .shuffle-button { padding: 10px 12px; font-size: 11px; }
  .shuffle-button kbd { display: none; }
  .workspace { display: flex; flex-direction: column; gap: 25px; }
  .preview-column { display: contents; position: static; }
  .preview-window { width: 100%; order: 0; }
  .presets-section { order: 1; width: 100%; margin: 0; }
  .presets { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .preset img { aspect-ratio: 1.55; }
  .controls { width: 100%; order: 2; min-height: 0; }
  .control-panel { max-height: none; }
  #panel-palette { display: grid; grid-template-columns: 1fr 1fr; }
  #panel-palette .palette-section { border-bottom: 0; border-right: 1px solid var(--line); }
  #panel-shape { display: grid; grid-template-columns: 1fr 1fr; }
  #panel-shape .control-section:first-child { border-bottom: 0; border-right: 1px solid var(--line); }
  .workspace-footnote { width: 100%; order: 3; margin-top: 0; }
  .terminal-body { font-size: 10px; }
}
@media (max-width: 540px) {
  .site-header { height: 74px; padding: 0 18px; gap: 10px; }
  .brand { font-size: 21px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-domain { font-size: 9px; padding: 3px 4px; }
  .header-note { display: none; }
  main { padding: 26px 16px 0; }
  .intro { flex-wrap: wrap; gap: 18px; margin-bottom: 25px; }
  h1 { font-size: clamp(27px, 7.6vw, 34px); line-height: 1.2; max-width: 360px; letter-spacing: -.8px; }
  .intro p { margin-top: 11px; font-size: 12px; line-height: 1.8; max-width: 310px; }
  .shuffle-button { min-height: 40px; padding: 9px 13px; }
  .shuffle-button kbd { display: inline-block; padding: 2px 4px; }
  .window-toolbar { padding: 10px; gap: 10px; }
  .canvas-export { gap: 8px; }
  .canvas-export .download-button { min-width: 120px; padding: 9px; gap: 6px; font-size: 11px; }
  .canvas-export select { padding-left: 9px; font-size: 11px; }
  .canvas-export .select-wrap > [data-icon]:not(.select-chevron) { display: none; }
  .window-dots { gap: 3px; }
  .window-dots i { width: 4px; height: 4px; }
  .file-label { font-size: 8px; gap: 8px; }
  .preview-tools { gap: 7px; }
  .tool-button { font-size: 9px; gap: 4px; }
  .tool-button svg { width: 12px; }
  .preview-tools > .icon-button { width: 23px; padding-left: 8px; }
  .canvas-stage { min-height: 0; }
  .canvas-stage.portrait { height: 430px; }
  .preview-status { padding: 11px 9px; font-size: 8px; gap: 5px; }
  .preview-status > span:first-child { gap: 5px; }
  .presets-heading h2 { font-size: 13px; }
  .presets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
  .preset img { aspect-ratio: 1.8; }
  .preset-name { font-size: 11px; padding-top: 10px; }
  .controls-heading { padding: 10px 14px; }
  .control-tabs button { min-height: 46px; font-size: 12px; gap: 7px; }
  #panel-palette, #panel-shape { display: block; }
  #panel-palette .palette-section, #panel-shape .control-section:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .control-section { padding: 21px 19px; }
  .color-stops { gap: 16px; }
  .color-swatch { width: 48px; }
  .color-hex { font-size: 11px; }
  .opacity-caption { font-size: 10px; }
  .shape-button { flex-direction: row; justify-content: center; gap: 9px; padding: 13px 4px; }
  .shape-sample { width: 20px; height: 20px; }
  .workspace-footnote p, .text-button { font-size: 10px; }
  .site-footer { margin: 28px 16px 0; padding: 22px 0 28px; flex-direction: column; gap: 17px; font-size: 9px; }
  .desktop-terminal { width: 76%; }
  .desktop-bar { top: 6px; left: 6px; right: 6px; padding: 5px 7px; font-size: 6px; }
  .terminal-heading { padding: 5px 8px; font-size: 6px; }
  .terminal-body { padding: 8px 12px; font-size: 7px; }
  .terminal-wordmark { gap: 8px; font-size: 15px; margin: 8px 0; }
  .terminal-wordmark img { width: 20px; height: 20px; }
  .terminal-body p:last-child { margin-top: 5px; }
}
@media (max-width: 360px) {
  .canvas-export { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
