/* The studio: Home, the sheets (new project, brand kit, export), the
   editor. A light workspace: glass panels over a pale ground with two soft
   glows, violet for what is chosen. */

/* hidden wins over any display a class sets */
[hidden] { display: none !important; }

@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/plus-jakarta-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/plus-jakarta-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/fonts/instrument-serif-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ink: #15171e;
  --muted: #5f6474;
  --muted-2: #6b7080;
  --faint: #9aa0ae;
  --bg: #f4f5f8;
  --accent: #5b4dff;
  --accent-hover: #4f41f0;
  --accent-soft: rgba(91, 77, 255, .1);
  --accent-softer: rgba(91, 77, 255, .05);
  --ring: 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(91, 77, 255, .14);
  --line: rgba(21, 23, 30, .08);
  --line-2: rgba(21, 23, 30, .1);
  --line-3: rgba(21, 23, 30, .16);
  --fill: rgba(21, 23, 30, .05);
  --fill-hover: rgba(21, 23, 30, .09);
  --ok: #1f9d6a;
  --danger: #e5484d;
  --marker: #e7b34a;
  --glass: rgba(255, 255, 255, .62);
  --glass-border: rgba(255, 255, 255, .8);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 1px 2px rgba(21, 23, 30, .04), 0 24px 60px -28px rgba(21, 23, 30, .22);
  --card-shadow: 0 1px 2px rgba(21, 23, 30, .04), 0 14px 30px -20px rgba(21, 23, 30, .25);
  --sheet-shadow: 0 1px 2px rgba(21, 23, 30, .05), 0 40px 90px -30px rgba(21, 23, 30, .35);
  --glows: radial-gradient(60% 50% at 18% -5%, rgba(91, 77, 255, .13), transparent 60%),
    radial-gradient(45% 40% at 92% 105%, rgba(63, 224, 208, .14), transparent 60%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: 13px/1.4 var(--font); color: var(--ink);
  background-color: var(--bg); background-image: var(--glows); background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }

/* The views: Home or the editor, one at a time. */
.view { display: none; }
body[data-view='home'] #home { display: block; }
body[data-view='editor'] #editor { display: grid; }
body[data-view='editor'] { overflow: hidden; }

/* ------------------------------------------------------------ buttons */
.btn {
  height: 36px; padding: 0 14px; border-radius: 10px; border: 0; background: var(--fill); color: var(--ink);
  font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap; transition: background .12s;
}
.btn:hover { background: var(--fill-hover); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); color: #fff; padding: 0 16px; box-shadow: 0 1px 2px rgba(91, 77, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.primary:disabled { background: var(--accent); }
.btn.dark { background: var(--ink); color: #fff; padding: 0 18px; }
.btn.dark:hover { background: #2a2d38; }
.btn.white { background: #fff; border: 1px solid var(--line-2); }
.btn.white:hover { border-color: rgba(21, 23, 30, .25); background: #fff; }
.btn.sm { height: 28px; padding: 0 12px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.btn .plus { font-size: 16px; line-height: 1; margin-top: -1px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 9px; border: 0; background: var(--fill); color: var(--ink);
  display: grid; place-items: center; flex: none; transition: background .12s;
}
.icon-btn:hover { background: var(--fill-hover); }
.icon-btn:disabled { color: var(--muted-2); opacity: .55; cursor: default; }
.icon-btn.sm { width: 28px; height: 28px; border-radius: 8px; }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-size: 12px; font-weight: 600; }
.link:hover { color: var(--accent-hover); }

/* -------------------------------------------------------- choice bits */
.chip {
  height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7);
  color: var(--muted); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip:hover { background: #fff; }
.chip.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 700; }
.chip.dark.on { background: var(--ink); color: #fff; }
.chip .n { opacity: .6; }
.chip.sm { height: 26px; padding: 0 10px; font-size: 11.5px; font-weight: 700; }
.pill { height: 24px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border: 0; }
.pill.grey { background: var(--fill); color: var(--muted); }
.soon { height: 18px; padding: 0 7px; border-radius: 999px; background: rgba(231, 179, 74, .18); color: #9a6a08; font-size: 10px; font-weight: 800; letter-spacing: .3px; display: inline-flex; align-items: center; text-transform: uppercase; }

.seg { display: flex; background: var(--fill); border-radius: 10px; padding: 3px; gap: 2px; }
.seg-item { flex: 1; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; padding: 0 8px; }
.seg-item[aria-checked='true'] { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(21, 23, 30, .08); }
.seg.sm { border-radius: 9px; padding: 2px; }
.seg.sm .seg-item { height: 24px; border-radius: 7px; font-size: 11.5px; }

.toggle { width: 34px; height: 20px; border-radius: 10px; border: 0; padding: 0; background: rgba(21, 23, 30, .14); position: relative; flex: none; transition: background .15s; }
.toggle .knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .15s; }
.toggle[aria-checked='true'] { background: var(--accent); }
.toggle[aria-checked='true'] .knob { left: 16px; }
.toggle:disabled { opacity: .45; cursor: default; }

.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; background: none; margin: 0; --fill: 50%; }
.slider::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--fill), rgba(21, 23, 30, .1) var(--fill)); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.slider::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(21, 23, 30, .1); }
.slider::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.slider::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); }

.field {
  height: 36px; width: 100%; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); padding: 0 12px;
  font-size: 13px; color: var(--ink); box-shadow: 0 1px 2px rgba(21, 23, 30, .04);
}
textarea.field { height: auto; padding: 8px 12px; line-height: 1.4; resize: none; display: block; }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 77, 255, .14); }
.field::placeholder { color: var(--faint); }
select.field { appearance: none; padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%235f6474' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5l3-3'/%3E%3C/svg%3E") no-repeat right 12px center; }
.label { font-size: 12px; font-weight: 700; color: var(--muted); }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.note { font-size: 11.5px; color: var(--muted-2); line-height: 1.45; }

/* A card one picks: ringed when it is the one. */
.pick { background: #fff; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; text-align: left; padding: 0; transition: border-color .12s; }
.pick:hover { border-color: rgba(21, 23, 30, .25); }
.pick[aria-checked='true'] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px rgba(91, 77, 255, .14); }

/* A white box of rows, each a label and a switch. */
.rows { padding: 2px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.rows > .row-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.rows > .row-item + .row-item { border-top: 1px solid rgba(21, 23, 30, .06); }
.row-item .t { font-size: 12px; font-weight: 600; }
.row-item .s { font-size: 11px; color: var(--muted-2); }

/* Glass: the panels of the editor and the bars. */
.glass {
  background: var(--glass); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); border-radius: 16px;
}

/* The product's mark: a violet square with a phone in it. */
.logo { width: 28px; height: 28px; border-radius: 9px; background: var(--accent); position: relative; box-shadow: 0 2px 8px rgba(91, 77, 255, .35); flex: none; }
.logo::after { content: ''; position: absolute; left: 9px; top: 6px; width: 10px; height: 16px; border-radius: 3px; border: 2px solid #fff; box-sizing: border-box; }
.brandmark { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.brandmark:hover { color: var(--ink); }

/* ----------------------------------------------------------- account */
.account-slot { position: relative; }
.avatar-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; background: linear-gradient(135deg, #ffd166, #e8407a);
  display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; position: relative;
}
.avatar-btn .badge-pro { position: absolute; right: -6px; bottom: -4px; height: 14px; padding: 0 4px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 8.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.account-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 240px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 50px -12px rgba(21, 23, 30, .3); }
.account-menu .who { padding: 8px 10px 10px; color: var(--muted-2); font-size: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; }
.account-menu .who b { display: block; color: var(--ink); font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.account-menu a, .account-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 13px; }
.account-menu a:hover, .account-menu button:hover { background: var(--fill); }
.account-menu .upgrade { color: var(--accent); font-weight: 700; }

/* --------------------------------------------------------------- menu */
.menu { position: fixed; z-index: 60; min-width: 190px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 44px -10px rgba(21, 23, 30, .3); }
.menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 12.5px; font-weight: 600; text-align: left; }
.menu-item svg { color: var(--muted); flex: none; }
.menu-item:hover { background: var(--fill); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger svg { color: var(--danger); }
.menu-item:disabled { opacity: .45; cursor: default; }
.menu-hint { margin-left: auto; color: var(--faint); font-size: 11px; font-weight: 600; }
.menu-line { height: 1px; background: var(--line); margin: 4px 2px; }

/* -------------------------------------------------------------- toast */
#toast {
  position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 80; max-width: min(560px, calc(100vw - 32px));
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: 0 12px 40px -10px rgba(21, 23, 30, .5);
}

/* ------------------------------------------------------------- sheets */
dialog.sheet {
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 20px; padding: 24px 28px 22px; color: var(--ink);
  background: rgba(255, 255, 255, .93); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: var(--sheet-shadow); max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto;
}
dialog.sheet::backdrop, dialog#gate::backdrop { background: rgba(236, 237, 242, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sheet-title { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.sheet-sub { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sheet-foot .actions { display: flex; gap: 10px; margin-left: auto; }
.sheet-foot .summary { font-size: 12px; color: var(--muted-2); }
.step { display: flex; align-items: center; gap: 8px; }
.step-n { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; flex: none; }
.step-t { font-size: 13px; font-weight: 700; }
.step-s { font-size: 12px; color: var(--muted-2); margin-left: 4px; }

/* --------------------------------------------------------------- gate */
dialog#gate { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(255, 255, 255, .9); border-radius: 20px; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: var(--sheet-shadow); }
.gate-body { padding: 26px 28px 24px; }
.gate-body h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.gate-body p { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 8px 0 0; }
.gate-body ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 13.5px; }
.gate-body li::before { content: '✓'; color: var(--ok); font-weight: 800; margin-right: 8px; }
.gate-price { font-size: 28px; font-weight: 800; margin-top: 14px; letter-spacing: -.02em; }
.gate-price small { font-size: 13px; color: var(--muted-2); font-weight: 600; letter-spacing: 0; }
.gate-actions { display: grid; gap: 8px; margin-top: 20px; }
.gate-actions .btn { width: 100%; height: 38px; }
.gate-body .gate-error { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 1em; }

/* Phones: the studio needs a computer's screen, and its export a desktop
   browser. Narrow desktop windows (split screens) still get the studio. */
#small-screen { display: none; }
@media (max-width: 600px) {
  #small-screen { display: block; position: fixed; inset: 0; z-index: 90; padding: 40px 28px; background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.5; }
  #small-screen a { display: inline-block; margin-top: 14px; }
}

/* ======================================================== thumbnails */
/* The little pictures of projects, templates and looks: a gradient with a
   glow, text bars and a tilted phone, drawn in CSS until a real frame is
   there. Colours come in as --a --b --glow --ink. */
.mock { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--a), var(--b)); }
.mock::before { content: ''; position: absolute; inset: 0; background: radial-gradient(40% 60% at 60% 50%, var(--glow), transparent 70%); }
.mock .bar { position: absolute; left: 10%; height: 6px; border-radius: 3px; background: var(--ink); opacity: .9; }
.mock .bar.thin { height: 3px; opacity: .5; }
.mock .phone { position: absolute; right: 14%; top: 50%; width: 19%; aspect-ratio: 9 / 19; transform: translateY(-50%) rotate(-8deg); border-radius: 14% / 7%; background: #0b0d14; border: 2px solid #d8d2c6; box-shadow: 6px 10px 20px rgba(0, 0, 0, .35); }
.mock .frame { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); overflow: hidden; }
.mock .dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.mock .pattern { position: absolute; left: 0; right: 0; top: 55%; bottom: 0; opacity: .5; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 40%); mask-image: linear-gradient(to bottom, transparent, #000 40%); }
.mock .pages { position: absolute; inset: 12px 16px 0; display: flex; gap: 6px; justify-content: center; }
.mock .page { width: 30%; max-width: 46px; border-radius: 5px 5px 0 0; background: linear-gradient(160deg, var(--a), var(--b)); position: relative; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.mock .page.on { box-shadow: 0 0 0 1.5px var(--accent); }
.mock .page .bar { left: 14%; right: 14%; top: 10%; height: 3px; }
.mock .page .ph { position: absolute; left: 18%; right: 18%; top: 34%; bottom: -10px; border-radius: 7px 7px 0 0; background: #0b0d14; border: 2px solid #d8d2c6; border-bottom: 0; }
.mock img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mock img.shot.cover { object-fit: cover; }

/* ============================================================== Home */
#home { min-height: 100vh; }
.home-top { height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 48px; }
.search { margin-left: 32px; width: 320px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted-2); }
.search:focus-within { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91, 77, 255, .14); }
.search input { border: 0; background: none; outline: none; flex: 1; min-width: 0; font-size: 13px; color: var(--ink); }
.search input::placeholder { color: var(--muted-2); }
.search input::-webkit-search-cancel-button { display: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-actions .account-slot { margin-left: 4px; }
.kit-icon { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; display: block; }
.kit-icon.none { background: linear-gradient(135deg, #c9c3ff, #8f84ff); }

.home-body { padding: 24px 48px 56px; max-width: 1680px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; }
.section-title { font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.tpl-row { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.tpl { width: 240px; border: 0; background: none; padding: 0; text-align: left; transition: transform .15s; }
.tpl:hover { transform: translateY(-2px); }
.tpl .mock { height: 128px; border-radius: 12px; box-shadow: 0 1px 2px rgba(21, 23, 30, .06), 0 10px 24px -14px rgba(21, 23, 30, .3); }
.tpl .mock .bar { height: 7px; }
.tpl .mock .bar.thin { height: 4px; }
.tpl .name { margin-top: 8px; font-size: 12px; font-weight: 700; }
.tpl .sub { font-size: 11px; color: var(--muted-2); }
.tpl .blank { height: 128px; border-radius: 12px; border: 1.5px dashed var(--line-3); display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, .4); text-align: center; }
.tpl .blank b { display: block; font-size: 22px; line-height: 1; font-weight: 300; }
.tpl .blank span { display: block; font-size: 12px; font-weight: 600; margin-top: 6px; }

.projects-head { display: flex; align-items: center; gap: 8px; margin-top: 34px; }
.projects-head .section-title { margin-right: 12px; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 600; border: 0; background: none; padding: 4px 0; }
.pgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
@media (max-width: 1360px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .home-top, .home-body { padding-left: 24px; padding-right: 24px; } .search { margin-left: 8px; width: 240px; } }
.pcard { background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9); border-radius: 14px; padding: 8px; box-shadow: var(--card-shadow); cursor: pointer; transition: transform .15s; position: relative; text-align: left; }
.pcard:hover { transform: translateY(-2px); }
.pcard .mock { aspect-ratio: 16 / 9; border-radius: 9px; }
.pcard .badge { position: absolute; left: 8px; bottom: 8px; height: 20px; padding: 0 8px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); z-index: 1; }
.pcard .meta { padding: 10px 6px 4px; }
.pcard .title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard .name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pcard .name-field { height: 24px; padding: 0 6px; font-size: 13px; font-weight: 700; border-radius: 6px; }
.pcard .more { width: 24px; height: 22px; border: 0; background: none; border-radius: 6px; color: var(--muted-2); display: grid; place-items: center; flex: none; }
.pcard .more:hover { background: var(--fill); color: var(--ink); }
.pcard .when { display: flex; justify-content: space-between; margin-top: 3px; font-size: 11px; color: var(--muted-2); gap: 8px; }
.pcard .when span:first-child { white-space: nowrap; }
.empty { margin-top: 24px; padding: 40px; border-radius: 16px; border: 1.5px dashed var(--line-3); text-align: center; color: var(--muted); background: rgba(255, 255, 255, .4); }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
body.drag-home #home::after { content: 'Drop to start a new project'; position: fixed; inset: 16px; border: 2px dashed var(--accent); border-radius: 20px; background: rgba(91, 77, 255, .06); display: grid; place-items: center; font-size: 16px; font-weight: 700; color: var(--accent); pointer-events: none; z-index: 40; }

/* ======================================================= New project */
.sheet-new { width: 900px; }
.np-grid { display: grid; grid-template-columns: 1fr 292px; gap: 28px; margin-top: 22px; }
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.format { height: 108px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; }
.format .shape { border-radius: 4px; background: rgba(21, 23, 30, .06); border: 1.5px solid var(--muted); }
.format[aria-checked='true'] .shape { background: rgba(91, 77, 255, .15); border-color: var(--accent); }
.format .shapes { display: flex; gap: 3px; }
.format .t { font-size: 12px; font-weight: 700; }
.format .s { font-size: 11px; color: var(--muted-2); }
.looks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.look { border: 0; border-radius: 12px; padding: 4px; background: transparent; text-align: left; }
.look[aria-checked='true'] { background: var(--accent-soft); box-shadow: 0 0 0 1.5px var(--accent); }
.look .mock { height: 84px; border-radius: 9px; }
.look .mock .phone { width: 17%; }
.look .cap { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px 2px; }
.look .cap b { font-size: 12px; font-weight: 700; }
.look .cap span { font-size: 10.5px; color: var(--muted-2); }
.drop { margin-top: 12px; height: 196px; border-radius: 14px; border: 1.5px dashed rgba(91, 77, 255, .45); background: var(--accent-softer); display: grid; place-items: center; text-align: center; padding: 16px; transition: background .12s; }
.drop.over { background: rgba(91, 77, 255, .12); }
.drop .up { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto; box-shadow: 0 1px 2px rgba(21, 23, 30, .06); color: var(--accent); }
.drop .t { font-size: 13px; font-weight: 700; margin-top: 12px; }
.drop .s { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.drop .btn { margin-top: 12px; height: 32px; font-size: 12px; border-radius: 9px; }
.drop.small { height: 64px; margin-top: 8px; }
.drop.small .inline { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.files { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; max-height: 148px; overflow: auto; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.file-row .thumb { width: 28px; height: 28px; border-radius: 8px; background: repeating-linear-gradient(135deg, #1a1d26 0 4px, #232734 4px 8px); flex: none; object-fit: cover; }
.file-row .info { flex: 1; min-width: 0; }
.file-row .n { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row .m { font-size: 11px; color: var(--muted-2); }
.file-row .ok { width: 18px; height: 18px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.file-row .bad { color: var(--danger); font-size: 11px; font-weight: 700; }
.file-row .x { border: 0; background: none; color: var(--muted-2); padding: 2px; border-radius: 6px; display: none; }
.file-row:hover .x { display: grid; }
.file-row:hover .ok { display: none; }
.kit-row { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.kit-row .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kit-row img, .kit-row .kit-blank { width: 28px; height: 28px; border-radius: 8px; flex: none; object-fit: cover; }
.kit-row .kit-blank { background: linear-gradient(135deg, #c9c3ff, #8f84ff); }
.kit-row .t { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kit-row .s { font-size: 11px; color: var(--muted-2); }

/* ========================================================= Brand kit */
.sheet-brand { width: 560px; }
.bk-grid { display: grid; grid-template-columns: 120px 1fr; gap: 24px; margin-top: 22px; }
.bk-icon { width: 120px; height: 120px; border-radius: 26px; display: grid; place-items: center; background: #fff; border: 1.5px dashed var(--line-3); overflow: hidden; color: var(--muted-2); font-size: 11px; font-weight: 600; text-align: center; }
.bk-icon img { width: 100%; height: 100%; object-fit: cover; }
.bk-icon-actions { display: grid; gap: 6px; margin-top: 10px; }
.bk-icon-actions .btn { width: 100%; }
.bk-fields { display: grid; gap: 14px; align-content: start; }
.bk-fields .label { margin-bottom: 6px; }
.bk-steps { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; min-height: 16px; flex-wrap: wrap; }
.bk-steps i { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); display: block; }
.bk-steps span:first-child { color: var(--accent); }
.bk-steps span { color: var(--muted-2); }
.bk-target { margin-top: 18px; }
