:root { color-scheme: light; font-family: "Avenir Next", system-ui, sans-serif; color: #222442; background: #f5f1e9; --muted: #596079; --accent: #3336a0; --line: #cbc8dd; --paper: #fffdf7; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
p { margin: 0; }
input, textarea, select, button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #4247b4; outline-offset: 4px; }
.shell { width: min(1150px, calc(100% - 42px)); margin: auto; }
header { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar a { text-decoration: none; font-size: .9rem; font-weight: 720; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.intro { padding: 38px 0 24px; }
h1 { margin: 0; font-size: clamp(2.45rem, 6.1vw, 4.6rem); letter-spacing: -.073em; line-height: 1.04; }
.intro p { margin-top: 9px; color: var(--muted); font-size: 1.05rem; }
.studio { display: grid; grid-template-columns: minmax(275px, 352px) minmax(0, 1fr); align-items: start; gap: 15px; }
.panel { min-width: 0; border-radius: 13px; border: 1px solid var(--line); padding: 17px; background: var(--paper); }
h2 { margin: 0 0 9px; font-size: 1.13rem; letter-spacing: -.024em; }
.option, .options label { font-size: .8rem; font-weight: 720; display: block; min-width: 0; }
.option { margin-top: 8px; }
select, textarea { width: 100%; padding: 6px 8px; min-height: 37px; border-radius: 7px; border: 1px solid var(--line); background: #f7f5ff; color: inherit; display: block; margin-top: 3px; }
textarea { min-height: 51px; resize: vertical; font-size: .86rem; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.picker { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.picker input { position: absolute; clip-path: inset(50%); height: 1px; width: 1px; }
.picker:has(input:focus-visible) label { outline: 2px solid var(--accent); outline-offset: 3px; }
.file-name { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
button, .button { padding: 7px 9px; border-radius: 7px; border: 1px solid var(--line); min-height: 35px; background: #eeecfa; color: inherit; font-weight: 700; font-size: .79rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
button:hover, .button:hover { background: #e2def8; }
button:disabled, .picker:has(input:disabled) label { opacity: .5; cursor: default; }
.sample { margin-top: 8px; background: transparent; }
.preview { background: #f7f5fe; }
.preview-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.preview-top span { color: var(--muted); font: .77rem ui-monospace, monospace; }
.artboard { min-height: 150px; display: grid; place-items: center; overflow: hidden; padding: 10px; border-radius: 9px; background: #e8e5f2; }
#meme { display: block; max-width: 100%; height: auto; max-height: 480px; width: auto; border-radius: 3px; background-color: #fff; background-image: conic-gradient(#e3e0ec 25%, #fff 0 50%, #e3e0ec 0 75%, #fff 0); background-size: 18px 18px; object-fit: contain; }
#empty, #status { color: var(--muted); font-size: .85rem; line-height: 1.35; overflow-wrap: anywhere; }
#status[data-error="true"] { color: #94321c; }
.export { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; gap: 8px; }
.primary { color: white; background: var(--accent); border-color: var(--accent); min-height: 42px; padding-inline: 13px; }
.primary:hover { background: #242581; }
footer { display: flex; gap: 14px; padding: 20px 0; font-size: .86rem; color: var(--muted); }
.policy { max-width: 720px; line-height: 1.65; padding-top: 30px; }
.policy h1 { font-size: 2.4rem; }
.policy h2 { margin: 16px 0 6px; }
.policy p { margin-bottom: 9px; }
@media (max-width: 735px) { .studio { grid-template-columns: minmax(0, 1fr); } .intro { padding: 27px 0 20px; } #meme { max-height: 450px; } }
@media (max-width: 420px) { .shell { width: calc(100% - 24px); } .panel { padding: 13px; } }
