:root{color-scheme:light;--bg: #f3efe5;--bg-deep: #d9c7aa;--surface: rgba(255, 250, 242, .9);--surface-strong: #fffdf8;--ink: #1d1b18;--muted: #6f6555;--line: rgba(72, 51, 28, .12);--brand: #dd5b2c;--brand-dark: #893612;--accent: #136f63;--shadow: 0 20px 60px rgba(89, 56, 20, .12)}*{box-sizing:border-box}html,body,#app{min-height:100%}body{margin:0;font-family:Georgia,Times New Roman,serif;color:var(--ink);background:radial-gradient(circle at top left,rgba(255,255,255,.78),transparent 28%),linear-gradient(135deg,#f7f3eb,#ead9bf 52%,#dec6ab)}button,input,select{font:inherit}button{cursor:pointer}.app-shell{width:min(1380px,calc(100% - 1.5rem));margin:0 auto;padding:1.25rem 0 2rem}.hero-panel{display:grid;gap:1rem;grid-template-columns:minmax(0,1.5fr) minmax(320px,.95fr);align-items:stretch;margin-bottom:1rem}.hero-copy,.hero-card,.controls-panel,.preview-card{border:1px solid var(--line);border-radius:28px;background:var(--surface);box-shadow:var(--shadow);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.hero-copy{padding:1.8rem;background:linear-gradient(135deg,#ffffffb8,#fff4e3c7),linear-gradient(125deg,#fffaf1,#f3e1c2)}.eyebrow,.panel-kicker{margin:0 0 .65rem;letter-spacing:.18em;text-transform:uppercase;font-size:.78rem;color:var(--brand-dark)}.hero-copy h1{margin:0;font-size:clamp(3rem,8vw,6.2rem);line-height:.92}.lede{max-width:52ch;margin-bottom:0;font-size:1.08rem;line-height:1.65;color:var(--muted)}.hero-card{padding:1.25rem;display:flex;flex-direction:column;gap:1rem}.upload-field{display:flex;flex-direction:column;justify-content:center;min-height:170px;padding:1.2rem;border:1.5px dashed rgba(137,54,18,.3);border-radius:24px;background:linear-gradient(180deg,#ffffffb8,#faecd6eb)}.upload-field span{color:var(--muted)}.upload-field strong{margin-top:.45rem;font-size:1.2rem}input[type=file]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hero-stats{display:grid;gap:.75rem;grid-template-columns:repeat(3,minmax(0,1fr))}.hero-stats div,.status-card,.palette-panel,.source-switcher,.custom-builder{padding:.9rem 1rem;border-radius:20px;background:#fffcf7db}.hero-stats span,.preview-header span,.control span{display:block;color:var(--muted);font-size:.88rem}.hero-stats strong,.preview-header h2,.panel-header h2,.panel-header h3{margin:.22rem 0 0}.workspace{display:grid;gap:1rem;grid-template-columns:390px minmax(0,1fr)}.controls-panel{padding:1.25rem}.panel-header.compact h3{font-size:1rem}.source-switcher{display:grid;gap:.55rem;margin-top:1rem;border:1px solid var(--line)}.source-switcher legend{padding:0 .35rem;color:var(--muted)}.source-switcher label{display:flex;gap:.55rem;align-items:center}.control{display:block;margin-top:1rem}.control select,.slider-line,.actions button{width:100%}.control select,.slider-line,.status-card,.swatch,.custom-swatch-row,.custom-entry,.preset-grid{border:1px solid var(--line)}.control select,.slider-line,.custom-entry{margin-top:.4rem;padding:.8rem .9rem;border-radius:16px;background:var(--surface-strong)}.slider-line,.custom-entry,.custom-swatch-row{display:flex;gap:.8rem;align-items:center}.slider-line input{flex:1}.preset-grid,.custom-builder,.custom-swatches{display:grid;gap:.75rem}.preset-grid{grid-template-columns:repeat(auto-fit,minmax(28px,1fr));margin-top:.75rem;padding:.85rem;border-radius:18px;background:#ffffffa8}.preset-chip,.chip{width:20px;height:20px;flex:0 0 auto;border-radius:999px;border:1px solid rgba(0,0,0,.08)}.preset-chip{width:100%;height:28px}.custom-builder{margin-top:1rem;border:1px solid var(--line)}.custom-entry input[type=text]{min-width:0;flex:1;border:0;background:transparent}.custom-entry input[type=color],.custom-swatch-row input[type=color]{width:42px;height:42px;padding:0;border:0;background:transparent}.custom-swatch-row{padding:.65rem .75rem;border-radius:16px;background:#ffffffa8}.custom-swatch-row code{flex:1}.actions{display:grid;gap:.75rem;margin-top:1rem}.actions button,.mini,.ghost{padding:.95rem 1rem;border:0;border-radius:999px;transition:transform .16s ease,filter .16s ease,opacity .16s ease}.actions button:hover:not(:disabled),.mini:hover:not(:disabled),.ghost:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.03)}.actions button:disabled,.mini:disabled,.ghost:disabled{opacity:.55;cursor:not-allowed}.primary{color:#fff;background:linear-gradient(135deg,var(--brand) 0%,var(--brand-dark) 100%)}.secondary,.mini{color:var(--ink);background:linear-gradient(135deg,#136f6324,#136f634d)}.mini,.ghost{padding:.65rem .9rem}.ghost{color:var(--brand-dark);background:#dd5b2c1f}.status-card{margin-top:1rem}.status-card p{margin:0}.error{margin-top:.75rem!important;color:#9a210a}.palette-panel{margin-top:1rem}.swatches{display:grid;gap:.55rem;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));margin-top:.8rem}.swatch{display:flex;gap:.7rem;align-items:center;padding:.55rem .7rem;border-radius:16px;background:#ffffffa8}.canvas-panel{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr))}.preview-card{padding:1rem}.preview-card.accent{background:linear-gradient(180deg,#fffcf5f5,#f4fffaf5),var(--surface)}.preview-header{display:flex;justify-content:space-between;gap:1rem;align-items:start;margin-bottom:.9rem}.canvas-frame{display:grid;place-items:center;min-height:360px;padding:.7rem;border-radius:22px;border:1px solid var(--line);background:linear-gradient(45deg,rgba(0,0,0,.03) 25%,transparent 25%),linear-gradient(-45deg,rgba(0,0,0,.03) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.03) 75%),linear-gradient(-45deg,transparent 75%,rgba(0,0,0,.03) 75%),#fffdf8;background-size:28px 28px;background-position:0 0,0 14px,14px -14px,-14px 0}.canvas-frame canvas{max-width:100%;height:auto;border-radius:14px;image-rendering:auto}code{font-size:.82rem;color:var(--muted)}@media(max-width:1120px){.hero-panel,.workspace,.canvas-panel{grid-template-columns:1fr}}@media(max-width:680px){.app-shell{width:min(100% - 1rem,100%);padding-top:.75rem}.hero-copy h1{line-height:1}.hero-stats{grid-template-columns:1fr}.custom-entry,.custom-swatch-row{flex-wrap:wrap}.canvas-frame{min-height:240px}}
