/* Season Shop Flyer Maker: the shop's look (aluminium page, white plinths, ink buttons, cobalt focus, Bricolage display),
   pushed toward a desktop creative tool in the studio (dark chrome around a bright page). */
@font-face { font-family: "Bricolage Grotesque"; src: url(/assets/brand/bricolage.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: block; }
@font-face { font-family: "Fraunces"; src: url(/assets/brand/fraunces.woff2) format("woff2"); font-weight: 100 900; font-display: block; }
@font-face { font-family: "Fraunces"; src: url(/assets/brand/fraunces-italic.woff2) format("woff2"); font-style: italic; font-weight: 100 900; font-display: block; }

:root {
  --bg: #eceef0; --surface: #fff; --surface-2: #f6f7f8; --ink: #15181e; --ink-hover: #2c313b; --muted: #575c66; --faint: #8a8f98;
  --line: #d5d9de; --line-soft: #e4e7ea; --brand: #2338c4; --brand-soft: #e6e9fb; --ok: #16794a; --ok-soft: #e3f3ea; --error: #b42318; --error-soft: #fdecea; --warn: #8a5300; --warn-soft: #fdf3e1;
  --s1: #5DAF6A; --s2: #F2B33D; --s3: #E2683C; --s4: #3D7FD1;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 14px; --r-sm: 10px; --pill: 999px;
  --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 1px 3px rgb(16 24 40 / .06);
  --float: 0 24px 60px -12px rgb(0 0 0 / .25), 0 2px 6px rgb(0 0 0 / .08);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --side: 248px;
  --st-chrome: #16181d; --st-chrome-2: #1e2128; --st-line: #2b2f38; --st-text: #e7e9ee; --st-muted: #9aa0ab;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 650; letter-spacing: -.02em; margin: 0; font-stretch: 92%; }
h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
h4 { font-size: 13px; margin: 18px 0 8px; letter-spacing: 0; }
p { margin: 0 0 10px; }
code { font-size: 13px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.ico { width: 18px; height: 18px; flex: none; }
.big-ico { width: 34px; height: 34px; color: var(--faint); }
.row { display: flex; align-items: center; } .gap { gap: 10px; } .wrap { flex-wrap: wrap; } .end { justify-content: flex-end; } .center { justify-content: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.boot, .loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; margin: 20px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 0; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--ink-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: var(--error); }
.btn.ghost.danger { background: var(--surface); color: var(--error); }
.btn.ai { background: linear-gradient(120deg, #2338c4, #7c3aed); }
.btn.big { min-height: 50px; padding: 0 24px; font-size: 16px; }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.xs { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.block { width: 100%; margin: 8px 0; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: var(--r-sm); background: transparent; color: inherit; font-size: 16px; line-height: 1; }
.icon-btn:hover { background: rgb(127 127 127 / .14); }
.icon-btn.danger { color: var(--error); }
.icon-btn.xs { width: 26px; height: 26px; font-size: 13px; }
.input { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { resize: vertical; line-height: 1.45; }
.input.small { min-height: 34px; padding: 6px 10px; font-size: 13.5px; }
.input.xs { min-height: 28px; padding: 3px 7px; font-size: 12.5px; }
.field { display: grid; gap: 6px; margin: 0 0 12px; font-size: 13.5px; font-weight: 550; flex: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); font-size: 13.5px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.big { min-height: 46px; padding: 0 18px; }
.chips.small .chip, .chip.small { min-height: 28px; padding: 0 10px; font-size: 12.5px; }
.chip .count { font-size: 11.5px; opacity: .7; }
.tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: var(--pill); background: var(--surface-2); color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--line-soft); margin: 4px 0 10px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font-weight: 600; font-size: 13.5px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg.xs button { min-height: 28px; padding: 0 9px; font-size: 12px; }
.note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--brand-soft); color: #1b2b8f; font-size: 13.5px; margin: 10px 0; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.error { background: var(--error-soft); color: var(--error); }
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 22px; }
.empty { display: grid; place-items: center; gap: 10px; padding: 46px 20px; text-align: center; grid-column: 1 / -1; }

/* ---------------------------------------------------------------- shell */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 22px 14px; background: var(--surface); border-right: 1px solid var(--line-soft); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; text-decoration: none; }
.brand img { width: 34px; height: 34px; flex: none; }
.brand b { display: block; font-family: var(--display); font-size: 17px; letter-spacing: -.02em; line-height: 1.1; }
.brand span { display: block; font-size: 12px; color: var(--muted); }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--muted); font-weight: 550; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: var(--brand-soft); color: var(--brand); }
.nav a.cta { margin: 6px 0 10px; background: var(--ink); color: #fff; justify-content: center; }
.nav a.cta:hover, .nav a.cta.on { background: var(--ink-hover); color: #fff; }
.side .foot { margin-top: auto; display: grid; gap: 6px; }
.side .foot button { all: unset; cursor: pointer; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); color: var(--muted); font-weight: 550; }
.side .foot button:hover { background: var(--surface-2); color: var(--ink); }
.ai-pill { margin: 0 12px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); flex: none; }
.dot.off { background: var(--faint); box-shadow: 0 0 0 3px var(--surface-2); }
main { min-width: 0; padding: 34px clamp(16px, 4vw, 48px) 120px; max-width: 1320px; width: 100%; }
.view { animation: rise .35s var(--ease); }
.view.narrow { max-width: 780px; }
@keyframes rise { from { transform: translateY(8px); } }
.head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.head p { margin: 6px 0 0; color: var(--muted); }
section { margin-bottom: 34px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.link { color: var(--brand); font-weight: 600; text-decoration: none; font-size: 14px; }

/* dashboard */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 22px; background: radial-gradient(circle at 85% 20%, #2f47d8 0, #18225f 55%, #0d1233 100%); color: #fff; margin-bottom: 26px; }
.hero h1 { font-size: clamp(28px, 3.6vw, 44px); margin: 6px 0 12px; }
.hero .muted { color: #c3cbff; max-width: 52ch; margin-bottom: 22px; }
.hero .btn { background: #fff; color: var(--ink); }
.hero .btn.ghost { background: rgb(255 255 255 / .12); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9fb0ff; margin: 0; }
.hero-art { position: relative; height: 220px; }
.hero-art i { position: absolute; border-radius: 16px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6); }
.hero-art i:nth-child(1) { width: 130px; height: 170px; left: 8%; top: 20px; background: linear-gradient(160deg, var(--s2), var(--s3)); transform: rotate(-9deg); }
.hero-art i:nth-child(2) { width: 140px; height: 180px; left: 34%; top: 0; background: linear-gradient(160deg, #fff, #dfe3ff); transform: rotate(3deg); }
.hero-art i:nth-child(3) { width: 120px; height: 150px; left: 62%; top: 40px; background: linear-gradient(160deg, var(--s1), var(--s4)); transform: rotate(10deg); }
.hero-art i:nth-child(4) { width: 70px; height: 70px; left: 50%; top: 150px; border-radius: 50%; background: var(--s2); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--display); font-size: 32px; line-height: 1.05; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 13.5px; }

/* project gallery */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; align-items: start; }
.pcard { position: relative; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--float); }
.pcard .thumb { display: grid; place-items: center; background: repeating-conic-gradient(#f1f2f4 0 25%, #fff 0 50%) 0 0 / 16px 16px; max-height: 300px; overflow: hidden; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: contain; }
.nothumb { color: var(--faint); }
.pcard .meta { display: grid; gap: 4px; padding: 12px 14px 14px; }
.pcard .meta b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 26px; }
.pcard .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.pcard .more { position: absolute; right: 6px; bottom: 50px; }
.menu { position: absolute; z-index: 60; width: 190px; padding: 6px; background: var(--surface); border-radius: 12px; box-shadow: var(--float); border: 1px solid var(--line-soft); }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; font-size: 14px; text-align: left; }
.menu button:hover { background: var(--surface-2); }
.menu .danger { color: var(--error); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; margin-bottom: 20px; }
.filters .search { flex: 2 1 240px; }
.filters select { flex: 1 1 150px; width: auto; }
.search { display: flex; align-items: center; gap: 10px; position: relative; }
.search > .ico { position: absolute; left: 12px; color: var(--faint); }
.search .input { padding-left: 38px; }

/* create flow */
.create .step { margin-bottom: 18px; padding: 22px; }
.step > header { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.step .num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; flex: none; }
.step header p { margin: 2px 0 0; }
.sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sources.two { grid-template-columns: 1fr 1fr; margin-top: 10px; }
.source { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.source:hover { border-color: var(--ink); transform: translateY(-1px); }
.source.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.source .ico { width: 24px; height: 24px; color: var(--brand); margin-bottom: 6px; }
.source span { font-size: 13px; color: var(--muted); }
.picker { margin-top: 16px; }
.picker .search { margin-bottom: 12px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 2px; }
.prod { display: grid; gap: 4px; text-align: left; padding: 8px; border: 1.5px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.prod:hover { border-color: var(--line); }
.prod.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pimg { aspect-ratio: 1; display: block; background: #fff; border-radius: 8px; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: contain; }
.prod b { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod span { font-size: 12.5px; color: var(--muted); }
.weekly { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px; margin-bottom: 12px; border: 1.5px solid var(--s2); border-radius: var(--r); background: #fffaf0; text-align: left; }
.weekly img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; }
.weekly > span { display: grid; gap: 2px; }
.picked { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 18px; margin-top: 14px; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid var(--line-soft); border-radius: 10px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.ph img { width: 100%; height: 100%; object-fit: contain; }
.ph.on { border-color: var(--brand); }
.ph i { position: absolute; top: 4px; left: 4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.ph:not(.on) i { display: none; }
.drop { display: grid; justify-items: center; gap: 8px; padding: 30px; border: 2px dashed var(--line); border-radius: var(--r); background: var(--surface-2); text-align: center; transition: border-color .15s, background .15s; margin-bottom: 14px; }
.drop.slim { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; padding: 14px; gap: 10px; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.formats { display: grid; gap: 16px; }
.fgroup h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; font-family: var(--text); letter-spacing: 0; }
.fitems { display: flex; flex-wrap: wrap; gap: 8px; }
.fitem { display: grid; justify-items: center; gap: 4px; min-width: 112px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.fitem i { display: block; border: 2px solid currentColor; border-radius: 3px; color: var(--faint); max-width: 56px; max-height: 46px; }
.fitem b { font-size: 13px; } .fitem span { font-size: 11.5px; color: var(--muted); }
.fitem:hover { border-color: var(--ink); }
.fitem.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.fitem.on i { color: var(--brand); }
.formats.compact .fitem { min-width: 0; }
.custom-fmt { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.custom-fmt .input { width: 120px; }
.ai-box { display: grid; gap: 4px; }
.create-bar { position: sticky; bottom: 14px; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-radius: var(--pill); background: rgb(255 255 255 / .92); backdrop-filter: blur(10px); box-shadow: var(--float); z-index: 5; }

/* templates */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; align-items: start; }
.tgrid.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-height: 560px; overflow: auto; padding: 4px; }
.tcard { display: grid; gap: 4px; text-align: left; padding: 0; border: 1.5px solid var(--line-soft); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, border-color .15s; }
.tcard:hover { transform: translateY(-3px); box-shadow: var(--float); }
.tcard.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.tcard > b, .tcard > span.muted { padding: 0 10px; }
.tcard > span.muted { padding-bottom: 10px; }
.tprev { display: grid; place-items: center; background: var(--surface-2); padding: 12px; min-height: 120px; }
.tprev canvas, .tprev img { max-width: 100%; height: auto !important; box-shadow: 0 8px 24px -10px rgb(0 0 0 / .35); border-radius: 3px; }
.tcard.big .tprev { padding: 18px; }
.tmeta { display: grid; gap: 6px; padding: 14px 16px 16px; justify-items: start; }
.tmeta p { margin: 0; }
.big-prev { display: grid; place-items: center; background: var(--surface-2); border-radius: var(--r); padding: 20px; margin-bottom: 14px; }
.big-prev canvas { box-shadow: var(--float); }

/* resources */
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.acard { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; display: grid; }
.apv { aspect-ratio: 4 / 3; display: grid; place-items: center; background: repeating-conic-gradient(#f1f2f4 0 25%, #fff 0 50%) 0 0 / 14px 14px; overflow: hidden; }
.apv img { width: 100%; height: 100%; object-fit: contain; }
.apv audio { width: 92%; } .apv video { width: 100%; height: 100%; background: #000; }
.fontpv { font-size: 34px; }
.ameta { display: grid; padding: 10px 12px 4px; } .ameta b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aact { display: flex; gap: 4px; align-items: center; padding: 4px 8px 10px 12px; }
.aact select { flex: 1; }

/* brand kit */
.bk { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bk section { margin: 0; }
.logos { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.logo-tile { display: grid; gap: 6px; place-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: #fff; font-size: 12px; color: var(--muted); }
.logo-tile img { height: 56px; width: auto; }
.logo-tile.dark { background: var(--ink); color: #aab; }
.swatches { display: grid; gap: 8px; margin: 12px 0; }
.sw { display: grid; grid-template-columns: 36px 1fr 74px 34px; gap: 8px; align-items: center; }
.sw label { width: 36px; height: 36px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); cursor: pointer; overflow: hidden; }
.sw label input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.font-demo p { margin: 6px 0; }
.set p { max-width: 70ch; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; align-items: center; }
kbd { font: 600 12px var(--text); padding: 3px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; justify-self: start; }

/* modal, toasts */
.modal-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgb(14 16 22 / .55); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); color: var(--ink); border-radius: 18px; box-shadow: var(--float); animation: rise .25s var(--ease); }
.modal.wide { width: min(980px, 100%); }
.modal > header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px 22px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.modal-body { padding: 18px 22px 22px; }
#toasts { position: fixed; z-index: 200; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { padding: 11px 18px; border-radius: var(--pill); background: var(--ink); color: #fff; font-size: 14px; font-weight: 550; box-shadow: var(--float); animation: rise .25s var(--ease); max-width: min(560px, 92vw); text-align: center; }
.toast.error { background: var(--error); }
.toast.out { opacity: 0; transition: opacity .3s; }

/* login */
.login-page { min-height: 100vh; background: radial-gradient(circle at 20% 10%, #2f47d8 0, #18225f 45%, #0b0f2a 100%); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; position: relative; overflow: hidden; }
.login-art i { position: absolute; border-radius: 22px; opacity: .9; filter: blur(.3px); }
.login-art i:nth-child(1) { width: 240px; height: 320px; left: 6%; top: 12%; background: linear-gradient(160deg, var(--s2), var(--s3)); transform: rotate(-12deg); }
.login-art i:nth-child(2) { width: 200px; height: 260px; right: 8%; top: 8%; background: linear-gradient(160deg, var(--s1), var(--s4)); transform: rotate(9deg); }
.login-art i:nth-child(3) { width: 160px; height: 160px; right: 16%; bottom: 10%; border-radius: 50%; background: var(--s2); }
.login-art i:nth-child(4) { width: 220px; height: 140px; left: 12%; bottom: 8%; background: #fff; opacity: .14; transform: rotate(6deg); }
.login-art span { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); font: 800 180px/1 var(--display); color: rgb(255 255 255 / .06); }
.login-card { position: relative; width: min(420px, 100%); padding: 34px; display: grid; gap: 8px; text-align: center; }
.login-card .logo { width: 54px; height: 54px; margin: 0 auto 6px; }
.login-card h1 { font-size: 28px; } .login-card em { font-style: normal; color: var(--brand); }
.login-card form { text-align: left; margin-top: 10px; }
.seasons { display: flex; gap: 4px; justify-content: center; margin-top: 14px; }
.seasons i { width: 26px; height: 4px; border-radius: 2px; background: var(--s1); }
.seasons i:nth-child(2) { background: var(--s2); } .seasons i:nth-child(3) { background: var(--s3); } .seasons i:nth-child(4) { background: var(--s4); }

/* ---------------------------------------------------------------- studio */
#studio { position: fixed; inset: 0; z-index: 30; background: var(--st-chrome); color: var(--st-text); }
.st-loading { display: grid; place-items: center; align-content: center; gap: 8px; height: 100%; }
.studio { display: grid; grid-template-columns: 76px 300px 1fr 300px; grid-template-rows: 56px 1fr; height: 100vh; }
.st-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--st-chrome); border-bottom: 1px solid var(--st-line); min-width: 0; }
.st-name { flex: 0 1 280px; min-width: 80px; height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #fff; font-weight: 650; font-size: 15px; outline: none; }
.st-name:hover, .st-name:focus { border-color: var(--st-line); background: var(--st-chrome-2); }
.studio .chip { background: var(--st-chrome-2); border-color: var(--st-line); color: var(--st-text); }
.studio .chip:hover { border-color: #555b68; }
.studio .chip.on { background: #fff; color: var(--ink); }
.st-status { font-size: 12.5px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.st-status.ok { color: #7fd1a1; } .st-status.error { color: #ff8a80; }
.st-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.st-tools .sep { width: 1px; height: 22px; background: var(--st-line); margin: 0 6px; }
.st-tools .btn.ghost { background: var(--st-chrome-2); color: var(--st-text); box-shadow: inset 0 0 0 1px var(--st-line); }
.st-tools .btn:not(.ghost):not(.ai) { background: #fff; color: var(--ink); }
.st-tools #st-zoom { min-width: 64px; justify-content: center; }
.st-rail { display: flex; flex-direction: column; gap: 2px; padding: 8px 6px; background: var(--st-chrome); border-right: 1px solid var(--st-line); overflow-y: auto; }
.st-rail button { display: grid; justify-items: center; gap: 4px; padding: 9px 2px; border: 0; border-radius: 10px; background: transparent; color: var(--st-muted); font-size: 10.5px; font-weight: 600; line-height: 1.15; }
.st-rail button:hover { color: #fff; background: var(--st-chrome-2); }
.st-rail button.on { color: #fff; background: #2a2f3a; }
.st-rail .ico { width: 21px; height: 21px; }
.st-left, .st-right { background: var(--st-chrome-2); overflow-y: auto; min-height: 0; }
.st-left { border-right: 1px solid var(--st-line); overflow-x: hidden; }
.st-right { border-left: 1px solid var(--st-line); }
.lp-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; background: var(--st-chrome-2); }
.lp-head h3 { font-size: 16px; color: #fff; }
.lp-close { display: none; }
.lp-body { padding: 0 16px 24px; }
.studio h4 { color: var(--st-muted); font-family: var(--text); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.studio .muted { color: var(--st-muted); }
.studio .input { background: #121419; border-color: var(--st-line); color: var(--st-text); }
.studio .input:focus { border-color: #6f82ff; box-shadow: 0 0 0 3px rgb(111 130 255 / .2); }
.studio .btn.ghost { background: #262a33; color: var(--st-text); box-shadow: inset 0 0 0 1px var(--st-line); }
.studio .btn.ghost:hover { background: #2e333e; }
.studio .lp-body .btn:not(.ghost) { background: #fff; color: var(--ink); }
.studio .seg { background: #121419; border-color: var(--st-line); }
.studio .seg button { color: var(--st-muted); }
.studio .seg button.on { background: #2e333e; color: #fff; }
.studio .tag { background: #2b2f38; color: var(--st-muted); }
.studio .note { background: #232a4a; color: #c3cbff; }
.studio .note.warn { background: #3a2f1a; color: #f2c879; }
.studio .drop { background: #1a1d23; border-color: var(--st-line); }
.studio hr { border: 0; border-top: 1px solid var(--st-line); margin: 18px 0; }
.st-stage { position: relative; overflow: hidden; background: #2a2d34 radial-gradient(circle, #353943 1px, transparent 1px) 0 0 / 22px 22px; min-width: 0; }
.st-page { position: absolute; pointer-events: none; box-shadow: 0 20px 60px -10px rgb(0 0 0 / .55), 0 0 0 1px rgb(0 0 0 / .2); background: #fff; }
.st-stage .canvas-container { position: absolute !important; inset: 0; }
.st-drop { position: absolute; inset: 12px; display: grid; place-items: center; align-content: center; gap: 8px; border: 2px dashed #6f82ff; border-radius: 16px; background: rgb(35 56 196 / .25); color: #fff; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5; }
.st-drop.on { opacity: 1; }
/* left panels */
.tp-list { display: grid; gap: 6px; margin: 10px 0; }
.tp { padding: 10px 12px; border: 1px solid var(--st-line); border-radius: 10px; background: #1a1d23; color: #fff; text-align: left; line-height: 1.1; }
.tp:hover, .combo:hover, .shape:hover, .ic:hover, .bdg:hover, .deco:hover, .tex:hover, .lib-it:hover, .lp-prod:hover, .bl:hover { border-color: #6f82ff; }
.combo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.combo { display: grid; gap: 4px; padding: 14px 8px 8px; border: 1px solid var(--st-line); border-radius: 10px; background: #1a1d23; color: #fff; font-size: 17px; line-height: 1.05; overflow: hidden; }
.combo small { font: 600 10.5px var(--text); color: var(--st-muted); }
.mini-search { display: flex; gap: 6px; margin: 10px 0; }
.lib { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lib.big { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.lib-it { aspect-ratio: 1; padding: 0; border: 1px solid var(--st-line); border-radius: 8px; background: repeating-conic-gradient(#2a2d34 0 25%, #22252b 0 50%) 0 0 / 12px 12px; overflow: hidden; }
.modal .lib-it { background: repeating-conic-gradient(#f1f2f4 0 25%, #fff 0 50%) 0 0 / 12px 12px; border-color: var(--line-soft); }
.lib-it img { width: 100%; height: 100%; object-fit: contain; }
.lp-prods { display: grid; gap: 6px; }
.lp-prod { display: flex; gap: 10px; align-items: center; padding: 6px; border: 1px solid var(--st-line); border-radius: 10px; background: #1a1d23; text-align: left; color: var(--st-text); }
.lp-prod img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 6px; flex: none; }
.lp-prod span { display: grid; min-width: 0; } .lp-prod b { font-size: 12.5px; line-height: 1.25; } .lp-prod small { color: var(--st-muted); }
.lp-prod.busy { opacity: .5; }
.shape-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.shape { display: grid; gap: 4px; justify-items: center; padding: 10px 4px 6px; border: 1px solid var(--st-line); border-radius: 10px; background: #1a1d23; color: var(--st-muted); font-size: 10.5px; }
.shape svg { width: 48px; height: 36px; }
.icon-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 12px; }
.ic { aspect-ratio: 1; padding: 9px; border: 1px solid var(--st-line); border-radius: 10px; background: #1a1d23; color: #fff; }
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.bdg { display: grid; place-items: center; min-height: 78px; padding: 6px; border: 1px solid var(--st-line); border-radius: 10px; background: #1a1d23; }
.bdg span { display: grid; place-items: center; text-align: center; font: 800 12px/1 var(--display); color: #fff; background: var(--c); }
.bdg-burst { width: 62px; height: 62px; clip-path: polygon(50% 0, 61% 14%, 79% 9%, 80% 27%, 97% 33%, 88% 50%, 97% 67%, 80% 73%, 79% 91%, 61% 86%, 50% 100%, 39% 86%, 21% 91%, 20% 73%, 3% 67%, 12% 50%, 3% 33%, 20% 27%, 21% 9%, 39% 14%); }
.bdg-circle, .bdg-stamp { width: 58px; height: 58px; border-radius: 50%; } .bdg-stamp { outline: 2px dashed #fff; outline-offset: -7px; }
.bdg-pill { padding: 9px 12px; border-radius: 99px; font-size: 11px !important; }
.bdg-tag { padding: 9px 12px 9px 18px; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); }
.bdg-ribbon { padding: 9px 16px; clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 50%, 100% 100%, 0 100%, 8px 50%); font-size: 10px !important; }
.deco-grid, .tex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.deco, .tex { display: grid; gap: 5px; justify-items: center; padding: 8px 4px 6px; border: 1px solid var(--st-line); border-radius: 10px; background: #1a1d23; color: var(--st-muted); font-size: 10.5px; }
.deco-pv, .tex-pv { width: 54px; height: 40px; border-radius: 6px; background: #2b2f38; }
.d-sparkle, .d-sparkles { background: radial-gradient(circle, #F2B33D 0 3px, transparent 4px) 50% 50% / 14px 14px, #2b2f38; }
.d-burst { background: repeating-conic-gradient(#F2B33D 0 7.5deg, transparent 7.5deg 15deg); border-radius: 50%; width: 40px; }
.d-rings { background: repeating-radial-gradient(circle, transparent 0 5px, #F2B33D 5px 6.5px); }
.d-dots { background: radial-gradient(circle, #F2B33D 0 1.6px, transparent 2px) 0 0 / 8px 8px, #2b2f38; }
.d-wave { background: radial-gradient(ellipse at 25% 100%, #F2B33D 0 55%, transparent 56%) 0 50% / 100% 100% no-repeat, #2b2f38; }
.d-blob { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; background: #F2B33D; width: 44px; }
.d-arc { border-radius: 40px 40px 0 0; background: #F2B33D; }
.d-stripes { background: repeating-linear-gradient(90deg, #F2B33D 0 4px, transparent 4px 8px); }
.d-confetti { background: radial-gradient(#5DAF6A 0 2px, transparent 2.5px) 3px 4px / 13px 11px, radial-gradient(#E2683C 0 2px, transparent 2.5px) 8px 1px / 11px 13px, radial-gradient(#3D7FD1 0 2px, transparent 2.5px) 0 7px / 15px 12px, #2b2f38; }
.d-frame { box-shadow: inset 0 0 0 3px #F2B33D; background: transparent; }
.d-corners { background: linear-gradient(#F2B33D, #F2B33D) 0 0 / 12px 3px no-repeat, linear-gradient(#F2B33D, #F2B33D) 0 0 / 3px 12px no-repeat, linear-gradient(#F2B33D, #F2B33D) 100% 100% / 12px 3px no-repeat, linear-gradient(#F2B33D, #F2B33D) 100% 100% / 3px 12px no-repeat; }
.d-swash { background: radial-gradient(ellipse at 50% 120%, transparent 0 55%, #F2B33D 56% 66%, transparent 67%); }
.d-seasons { background: linear-gradient(90deg, var(--s1) 0 25%, var(--s2) 0 50%, var(--s3) 0 75%, var(--s4) 0); height: 8px; margin: 16px 0; }
.t-dots { background: radial-gradient(circle, #d5d9de 0 2px, transparent 2.5px) 0 0 / 10px 10px, #fff; }
.t-grid { background: linear-gradient(#d5d9de 1px, transparent 1px) 0 0 / 10px 10px, linear-gradient(90deg, #d5d9de 1px, transparent 1px) 0 0 / 10px 10px, #fff; }
.t-stripes { background: repeating-linear-gradient(45deg, #d5d9de 0 3px, #fff 3px 9px); }
.t-grain { background: #e8e3da; }
.t-checker { background: repeating-conic-gradient(#d5d9de 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.t-waves { background: radial-gradient(ellipse at 50% 0, transparent 0 6px, #d5d9de 6px 8px, transparent 8.5px) 0 0 / 16px 10px, #fff; }
.sw-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sw-grid.big { grid-template-columns: repeat(4, 1fr); }
.swb { aspect-ratio: 1; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); position: relative; overflow: hidden; }
.swb:hover { outline: 2px solid #6f82ff; }
.swb.pick { background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); cursor: pointer; }
.swb.pick input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.brand-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bl { display: grid; gap: 6px; place-items: center; padding: 12px 4px 8px; border: 1px solid var(--st-line); border-radius: 10px; background: #fff; color: var(--ink); }
.bl img { height: 34px; width: auto; }
.bl b { font: 800 13px/1 var(--display); display: grid; } .bl b i { display: block; height: 2px; margin: 3px 0; background: linear-gradient(90deg, var(--s1) 0 25%, var(--s2) 0 50%, var(--s3) 0 75%, var(--s4) 0); }
.bl.dark { background: var(--ink); color: #fff; }
.bl small { font-size: 10px; color: var(--faint); }
.cta-list { display: flex; flex-wrap: wrap; gap: 6px; }
.layers { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 3px; }
.layer { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border: 1px solid transparent; border-radius: 8px; background: #1a1d23; font-size: 13px; cursor: pointer; user-select: none; }
.layer:hover { border-color: var(--st-line); }
.layer.on { border-color: #6f82ff; background: #232a4a; }
.layer.hidden .ln { opacity: .45; text-decoration: line-through; }
.layer.drop { box-shadow: 0 -2px 0 #6f82ff; }
.layer .ln { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.layer .ico { width: 15px; height: 15px; color: var(--st-muted); }
/* properties */
.pp { padding: 14px 16px 30px; }
.pp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.st-layer-name { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #fff; font-weight: 650; outline: none; }
.st-layer-name:hover, .st-layer-name:focus { border-color: var(--st-line); background: #121419; }
.pp-actions { display: flex; flex-wrap: wrap; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--st-line); }
.pp section { margin: 0; padding: 4px 0 12px; border-bottom: 1px solid var(--st-line); }
.pf { display: grid; gap: 4px; margin: 8px 0; font-size: 12.5px; color: var(--st-muted); }
.rng { display: grid; grid-template-columns: 1fr 64px; gap: 8px; align-items: center; }
.rng input[type=range] { width: 100%; accent-color: #6f82ff; }
.cpick { display: grid; grid-template-columns: 40px 1fr; gap: 8px; }
.cpick input[type=color] { width: 40px; height: 30px; padding: 0; border: 1px solid var(--st-line); border-radius: 8px; background: none; cursor: pointer; }
.swatches-mini { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.swm { width: 18px; height: 18px; border: 0; border-radius: 5px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
.swm:hover { outline: 2px solid #6f82ff; }
.align-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.align-row .icon-btn { width: 100%; background: #1a1d23; }
/* export */
.exp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; }
.exp-prev { display: grid; place-items: center; padding: 16px; border-radius: var(--r); background: repeating-conic-gradient(#f1f2f4 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.exp-prev img { max-height: 62vh; box-shadow: var(--float); }
.exp-opts .pf { color: var(--muted); }
.exp-more { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.share-row { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; margin: 6px 0; }
.imp { display: grid; gap: 14px; }
.imp-texts { display: grid; gap: 2px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1280px) { .studio { grid-template-columns: 70px 260px 1fr 270px; } }
@media (max-width: 1100px) {
  .studio { grid-template-columns: 64px 0 1fr 260px; }
  .st-left { position: absolute; z-index: 10; left: 64px; top: 56px; bottom: 0; width: 290px; transform: translateX(-120%); transition: transform .25s var(--ease); box-shadow: var(--float); }
  .st-left.open { transform: none; }
  .lp-close { display: inline-grid; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; z-index: 20; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
  .brand { padding: 0 8px 0 2px; } .brand div { display: none; }
  .nav { display: flex; gap: 2px; } .nav a { padding: 9px 10px; white-space: nowrap; } .nav a span { display: none; }
  .nav a.cta { margin: 0 4px; } .nav a.cta span { display: inline; }
  .side .foot { margin: 0 0 0 auto; display: flex; } .side .foot button span, .ai-pill { display: none; }
  main { padding-top: 22px; }
  .hero { grid-template-columns: 1fr; } .hero-art { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sources { grid-template-columns: 1fr 1fr; }
  .picked, .bk, .exp { grid-template-columns: 1fr; }
  .create-bar { border-radius: var(--r); flex-direction: column; align-items: stretch; }
  .studio { grid-template-columns: 0 0 1fr 0; grid-template-rows: 52px 1fr 60px; }
  .st-top { gap: 4px; padding: 0 6px; } .st-status, .st-tools .sep, #st-zout, #st-zin, #st-save { display: none; }
  .st-name { flex: 1; }
  .st-rail { position: fixed; z-index: 12; left: 0; right: 0; bottom: 0; height: 60px; flex-direction: row; overflow-x: auto; border-right: 0; border-top: 1px solid var(--st-line); }
  .st-rail button { min-width: 62px; }
  .st-left { left: 0; top: auto; bottom: 60px; width: 100%; height: 55vh; transform: translateY(120%); border-radius: 16px 16px 0 0; }
  .st-left.open { transform: none; }
  .st-right { position: fixed; z-index: 11; right: 0; left: 0; bottom: 60px; max-height: 42vh; border-radius: 16px 16px 0 0; border-left: 0; box-shadow: var(--float); }
  .st-right:has(.pp-head b) { display: none; }
}
