:root {
  --paper:#f5f5f2; --white:#fff; --text:#20211f; --muted:#646662; --line:#d9dad4;
  --accent:#b7ef63; --dark:#191a1e; --mono:"SFMono-Regular",Menlo,Consolas,"Liberation Mono",monospace;
  font-family:Inter,Arial,Helvetica,sans-serif; color:var(--text); background:var(--paper);
}
* {box-sizing:border-box}
body {margin:0;font-size:1rem}
button,input,textarea,select {font:inherit;color:inherit}
button,a,input,select,textarea,summary {touch-action:manipulation}
button {cursor:pointer}
button {border:0;background:transparent}
button:disabled {cursor:default;opacity:.42}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible,.art-scroll:focus-visible {outline:3px solid #719c2e;outline-offset:3px}
a {color:inherit;text-decoration:none}
[hidden] {display:none!important}
.shell {width:min(1392px,100%);padding-inline:clamp(24px,4.4vw,68px);margin-inline:auto}
.masthead {background:#fdfdfb;border-bottom:1px solid var(--line)}
.mast-inner {height:66px;display:flex;align-items:center;gap:58px}
.brand {display:flex;align-items:center;gap:10px;font-size:1.65rem;font-weight:800;letter-spacing:-.095em}
.brand img {display:block}
nav {align-self:stretch;display:flex;align-items:stretch;gap:27px}
nav a {display:grid;place-items:center;position:relative;color:var(--muted);font-size:.9rem;font-weight:550}
nav a[aria-current] {color:var(--text)}
nav a[aria-current]:after {position:absolute;content:"";height:3px;bottom:0;background:var(--text);width:100%}
.help-link {margin-left:auto;display:flex;align-items:center;gap:8px;font-size:.875rem;font-weight:550;padding:8px 0 8px 8px}
.help-link:hover,.text-action:hover,nav a:hover {color:#4c731b}
.svgicon {height:1.15em;width:1.15em;flex:none;display:inline-block;vertical-align:middle;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;fill:none}
.intro {display:flex;align-items:center;justify-content:space-between;padding:33px 0 26px}
h1,h2,p,pre {margin:0}
h1 {font-size:clamp(2.5rem,4.4vw,4rem);line-height:1.06;letter-spacing:-.069em;font-weight:730}
.terminal-cursor {display:inline-block;vertical-align:baseline;background:var(--accent);height:.14em;width:.36em;margin-left:.1em}
.intro p {font-size:1rem;color:var(--muted);line-height:1.5;margin-top:9px}
.workspace {display:grid;grid-template-columns:minmax(278px,.36fr) minmax(0,1fr);align-items:stretch;gap:20px}
.panel {border:1px solid var(--line);border-radius:14px;background:var(--white);min-width:0}
.settings {align-self:stretch}
.panel-heading,.preview-head {display:flex;align-items:center;justify-content:space-between}
.panel-heading {padding:13px 19px;border-bottom:1px solid #e4e5df;min-height:51px}
.panel-heading h2,.preview-head h2 {display:flex;align-items:center;gap:9px;letter-spacing:-.025em;font-size:1.04rem;font-weight:650}
.icon-btn,.dark-icon {display:inline-grid;place-items:center;width:28px;height:28px;padding:0;border-radius:5px}
.icon-btn {color:#676963}
.icon-btn:hover {background:#eeefea;color:#23251f}
.settings-body {padding:17px 19px 15px}
.mode-switch {display:flex;padding:3px;background:#eff0eb;border:1px solid #e7e8e3;border-radius:8px;gap:2px;margin-bottom:15px}
.mode-switch button {flex:1;display:flex;align-items:center;justify-content:center;gap:6px;font-size:.865rem;font-weight:550;color:#646660;padding:7px 2px;border-radius:5px;min-height:31px}
.mode-switch button[aria-pressed="true"] {box-shadow:0 1px 4px #1b241b21;background:white;color:#242621}
label,.field-head label {display:block;font-size:.875rem;font-weight:580}
.field-head {display:flex;align-items:center;justify-content:space-between;min-height:19px;gap:10px}
.text-action {display:flex;align-items:center;gap:4px;font-size:.76rem;padding:2px 0;color:#666961}
select,textarea,input[type="text"] {width:100%;border:1px solid #d6d8d1;border-radius:6px;background:#fcfcfa}
textarea {font-family:var(--mono);margin:6px 0 11px;display:block;padding:10px 11px;height:52px;min-height:44px;max-height:180px;resize:vertical;font-size:.98rem;line-height:1.3}
select {appearance:none;cursor:pointer;font-size:.875rem;padding:8px 33px 8px 11px;min-height:35px}
.select-wrap {position:relative;margin-top:5px}
.select-wrap:after {content:"";position:absolute;right:14px;top:45%;width:6px;height:6px;border-right:1.5px solid #5a5c55;border-bottom:1.5px solid #5a5c55;transform:translateY(-50%) rotate(45deg);pointer-events:none}
#text-fields,#image-fields {margin-bottom:13px}
#custom-field {margin-top:12px}
#ink {padding:8px 11px;margin-top:5px;font-family:var(--mono)}
.mono,.chars-hint,output {font-family:var(--mono)}
.chars-hint {color:#71746b;font-size:.8rem;max-width:90px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.035em}
.range-fields {border-top:1px solid #e5e6e0;padding-top:13px;margin-top:15px;display:grid;gap:10px}
.range-fields output {display:inline-grid;place-items:center;min-width:26px;padding:2px 5px;background:#eff1eb;border:1px solid #e1e3db;border-radius:4px;color:#4a4e42;font-size:.78rem}
input[type="range"] {--fill:25%;appearance:none;width:100%;height:19px;display:block;margin:2px 0 0;cursor:pointer;background:transparent}
input[type="range"]::-webkit-slider-runnable-track {height:4px;border-radius:10px;background:linear-gradient(to right,#879a64 var(--fill),#e0e3da var(--fill))}
input[type="range"]::-moz-range-track {height:4px;border-radius:10px;background:linear-gradient(to right,#879a64 var(--fill),#e0e3da var(--fill))}
input[type="range"]::-webkit-slider-thumb {appearance:none;width:13px;height:13px;border:2px solid #272a23;border-radius:50%;margin-top:-4.5px;background:#c7f28a}
input[type="range"]::-moz-range-thumb {width:10px;height:10px;border:2px solid #272a23;border-radius:50%;background:#c7f28a}
summary {display:flex;align-items:center;justify-content:space-between;cursor:pointer;color:#64675e;font-size:.81rem;list-style:none;padding:2px 0}
summary::-webkit-details-marker {display:none}
details[open] summary svg {transform:rotate(180deg)}
.spacing-row {display:flex;align-items:center;gap:12px;padding-top:8px}
.preview {display:flex;flex-direction:column;position:relative}
.preview-grid {color:#e5e5e3;flex:1;background:radial-gradient(ellipse at 48% 54%,#272b2580,transparent 72%),var(--dark);border-radius:13px 13px 0 0;display:flex;flex-direction:column;min-height:340px}
.preview-head {padding:15px 19px 13px;gap:14px}
.preview-head h2 {font-size:.97rem;flex:1;letter-spacing:-.015em}
.preview-head h2 svg {color:#afb3aa}
.live {display:flex;align-items:center;gap:6px;color:#c7d7b5;font:500 .72rem var(--mono);letter-spacing:.095em}
.live span {width:6px;height:6px;background:var(--accent);border-radius:50%}
.dark-icon {color:#afafa9}
.dark-icon:hover,.zoom button:hover:not(:disabled) {color:white;background:#ffffff16}
.art-frame {position:relative;flex:1;margin:0 18px;min-height:190px;background-image:radial-gradient(circle,#777c6c59 .7px,transparent .85px);background-position:center;background-size:13px 13px}
.register {position:absolute;z-index:1;width:9px;height:9px;pointer-events:none;color:#696c62}
.register:before,.register:after {background:currentColor;content:"";position:absolute}
.register:before {top:4px;left:0;width:9px;height:1px}.register:after {top:0;left:4px;height:9px;width:1px}
.tl {top:2px;left:2px}.tr {top:2px;right:2px}.bl {bottom:2px;left:2px}.br {bottom:2px;right:2px}
.art-scroll {position:absolute;inset:11px;overflow:auto;scrollbar-width:thin;scrollbar-color:#52564b #202124}
.art-center {min-width:100%;min-height:100%;width:max-content;display:flex;align-items:center;justify-content:center;padding:6px}
#art {font:16px/1 var(--mono);font-variant-ligatures:none;white-space:pre;color:#b7ef63;direction:ltr;unicode-bidi:isolate;letter-spacing:0}
#empty-msg {max-width:300px;text-align:center;line-height:1.5;color:#c0c2ba;font-size:.96rem;padding:16px}
.preview-status {display:flex;justify-content:space-between;align-items:center;padding:8px 18px 10px;color:#a3a69c;font-size:.74rem;gap:10px}
#dimensions {display:flex;align-items:center;gap:7px}
.zoom {display:flex;align-items:center;gap:2px}
.zoom button {color:#c3c6bd;font-size:.74rem;border-radius:4px;height:24px}
.zoom .dark-icon {width:25px}
#zoom-fit {min-width:43px;padding:0 2px}
.actions {padding:13px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.swatches,.file-actions {display:flex;align-items:center;gap:6px}
.swatches>.svgicon {color:#6b6e65;margin-right:4px}
.swatch {position:relative;width:22px;height:22px;border:2px solid white;border-radius:50%;background:var(--swatch);padding:0;box-shadow:inset 0 0 0 1px #0002}
.swatch[aria-pressed="true"] {outline:1.5px solid var(--text)}
.file-actions {gap:8px}
.btn {display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d4d6ce;background:#fff;font-size:.875rem;font-weight:600;padding:9px 13px;border-radius:7px;min-height:37px}
.btn:hover {background:#f1f3ed}
.btn.copy {background:var(--accent);border-color:#addd67;color:#1f2717}
.btn.copy:hover {background:#a9e74d}
.small-icon.svgicon {width:.85em;height:.85em}
.download-wrap {position:relative}
.pop-menu {position:absolute;bottom:calc(100% + 6px);right:0;background:white;border:1px solid var(--line);border-radius:8px;min-width:177px;padding:4px;box-shadow:0 5px 20px #0002;z-index:5}
.pop-menu button {display:flex;justify-content:space-between;gap:14px;width:100%;padding:10px 9px;text-align:left;font-size:.875rem;border-radius:4px}
.pop-menu button:hover {background:#f0f2ea}
.pop-menu button span {font: .8rem var(--mono);color:var(--muted)}
.styles {padding:27px 0 34px;scroll-margin-top:20px}
.collection-head,.collection-head>div {display:flex;align-items:center}
.collection-head {justify-content:space-between;margin-bottom:14px;gap:10px}
.collection-head>div {gap:10px}
.collection-head>div>svg {font-size:1.22rem}
.collection-head h2 {font-size:1.45rem;letter-spacing:-.045em;line-height:1.1}
.collection-count {font-size:.74rem;letter-spacing:.07em;color:#62665d}
.collection-count span {color:#a4a89a}
.preset-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.preset {padding:0;min-width:0;overflow:hidden;border:1px solid #d3d6cd;border-radius:9px;background:white;text-align:left;transition:transform .16s,border-color .16s}
.preset:hover {transform:translateY(-2px);border-color:#777c70}
.preset[aria-pressed="true"] {border-color:#48543a;box-shadow:0 0 0 1px #48543a}
.tile {height:93px;display:grid;place-items:center;overflow:hidden;background-color:var(--tile-bg);background-image:radial-gradient(circle,#ffffff14 .65px,transparent .85px);background-size:8px 8px;color:var(--tile-ink);position:relative}
.tile pre {font:9px/9px var(--mono);letter-spacing:0;font-variant-ligatures:none;text-align:left}
.preset:nth-child(2) .tile pre {font-size:11px;line-height:8px}
.preset:nth-child(3) .tile pre {font-size:9px;line-height:8px}
.preset:nth-child(4) .tile pre {font-size:9px;line-height:10px}
.tile-label {min-height:37px;display:flex;align-items:center;justify-content:space-between;padding:8px 12px;font-size:.89rem;font-weight:600;letter-spacing:-.01em}
.tile-check {width:15px;height:15px;border:1px solid #c9cdc2;border-radius:50%;display:grid;place-items:center;color:#1e2a10}
.preset[aria-pressed="true"] .tile-check {background:var(--accent);border-color:#a3d755}
.tile-check svg {width:11px;height:11px;stroke-width:2.5}
.preset[aria-pressed="false"] .tile-check svg {visibility:hidden}
.dropzone {margin-top:8px;min-height:98px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px dashed #b7bfac;border-radius:7px;background:#f6f8f1;text-align:center;cursor:pointer;padding:12px;color:#525b47}
.dropzone strong {max-width:100%;word-break:break-word;font-size:.85rem}
.dropzone small {font-size:.75rem;color:#666c60;font-weight:400}
.dropzone.drag,.dropzone:has(+input:focus-visible) {outline:2px solid #719c2e}
.field-error {color:#993e2c;margin-top:7px;font-size:.85rem}
.visually-hidden {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.toast {position:fixed;left:50%;bottom:25px;transform:translate(-50%,10px);opacity:0;pointer-events:none;padding:11px 17px;background:#282a25;color:white;border-radius:8px;max-width:calc(100vw - 32px);z-index:15;font-size:.9rem;transition:.15s}
.toast.show {opacity:1;transform:translate(-50%,0)}
dialog {border:1px solid var(--line);border-radius:13px;max-width:min(460px,calc(100% - 32px));padding:22px;color:var(--text)}
dialog::backdrop {background:#12150f77}
.help-heading {display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}
.help-heading h2 {font-size:1.35rem;letter-spacing:-.04em}
dialog p {line-height:1.5;font-size:.95rem;margin-top:12px}
body.expanded {overflow:hidden}
.preview.expanded {position:fixed;inset:12px;z-index:10;box-shadow:0 0 0 30px #151619eb}
@media(min-width:1500px) {.intro {padding:42px 0 30px}.art-frame {min-height:320px}.tile {height:110px}}
@media(max-width:1000px) {.shell {padding-inline:24px}.workspace {gap:14px;grid-template-columns:274px minmax(0,1fr)}.actions {padding:12px}.swatches {gap:4px}.swatches>.svgicon {display:none}.btn {padding:8px 9px}.preset-grid {gap:8px}.tile pre {font-size:8px}.tile-label {padding-inline:9px}}
@media(max-width:760px) {.mast-inner {height:56px;gap:27px}.shell {padding-inline:17px}.intro {padding:26px 0 19px}.intro p {font-size:.94rem}nav {gap:16px}.workspace {grid-template-columns:minmax(0,1fr)}.settings-body {display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}.mode-switch {grid-column:1 / -1;margin:0 0 3px}.settings-body>.field-head,.settings-body>.select-wrap,#custom-field {grid-column:2}.settings-body>.select-wrap {align-self:start;margin-top:-3px}.settings-body>.field-head {align-self:end}.settings-body>#text-fields,.settings-body>#image-fields {grid-column:1;grid-row:2 / span 4;margin:0}.range-fields {grid-column:1 / -1;grid-template-columns:1fr 1fr;gap:10px 18px}.range-fields details {grid-column:1/-1}.preview-grid {min-height:300px}.preset-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tile {height:88px}.tile pre {font-size:9px}.styles {padding-top:23px}.collection-head h2 {font-size:1.3rem}.collection-count {font-size:.7rem}.swatches>.svgicon {display:block}.terminal-cursor {margin-left:4px}}
@media(max-width:470px) {.brand {font-size:1.4rem;gap:6px}.brand img {width:29px;height:29px}.help-link {font-size:.8rem;gap:4px}.mast-inner {gap:23px}.help-link span {display:none}.help-link svg {width:20px;height:20px}nav a {font-size:.85rem}.settings-body {padding:13px}.panel-heading {padding:9px 13px}.actions {gap:6px;flex-wrap:wrap}.swatches {gap:3px}.swatches>.svgicon {display:none}.swatch {height:19px;width:19px}.file-actions {gap:5px}.btn {font-size:.8rem;padding:7px}.art-frame {margin:0 10px}.preview-head {padding:12px 14px}.preset-grid {grid-template-columns:repeat(2,minmax(0,1fr))}.preview-grid {min-height:245px}.collection-head>div {gap:6px}}
@media(prefers-reduced-motion:reduce) {*,*:after,*:before {transition:none!important;scroll-behavior:auto!important}}
.invert-label {display:flex;align-items:center;gap:6px;margin-top:10px;font-size:.82rem;font-weight:400}
.invert-label input {width:15px;height:15px;accent-color:#729346}
@media(max-width:760px) {.preview {grid-row:1}.settings {grid-row:2}}
