/* Stickora: the look of real stickers: cutting mat, die-cut white border, peeled corner */
:root {
  --ink: #24124F;
  --ink-2: #4A3B7A;
  --ink-3: #8A80AD;
  --bg: #F3F1FA;
  --paper: #FFFFFF;
  --line: #E4E0F2;
  --sun: #FFC72C;
  --sun-d: #E9A800;
  --pink: #FF4F9A;
  --blue: #2F7BFF;
  --mat: #1F7A5A;
  --mat-d: #186347;
  --good: #1FBF75;
  --bad: #E5384F;
  --t-static: var(--sun);
  --t-animated: var(--pink);
  --t-sound: var(--blue);
  --r-lg: 26px;
  --r: 18px;
  --die: 0 0 0 4px #fff, 0 10px 22px -6px rgba(36, 18, 79, .28);
  --press: 0 4px 0 var(--ink);
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --display: "Lalezar", "Readex Pro", system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 0px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  min-height: 100vh; display: flex; flex-direction: column;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
}
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.2; margin: 0; letter-spacing: 0; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  border: 2.5px solid var(--ink); background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  box-shadow: var(--press); transition: transform .12s, box-shadow .12s, background .15s;
  user-select: none; -webkit-user-select: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-sun { background: var(--sun); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-paper { background: var(--paper); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(36,18,79,.06); box-shadow: none; transform: none; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16.5px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-width: 2px; box-shadow: 0 3px 0 var(--ink); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink); }
.icon-btn:hover { background: rgba(36,18,79,.07); }
.chipbtn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px;
  border-radius: 999px; border: 2px solid var(--line); background: var(--paper); font-weight: 500; font-size: 14px;
}
.chipbtn .ic { width: 17px; height: 17px; }
.chipbtn.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip-danger { color: var(--bad); }
.linkish { background: none; border: 0; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; font-size: 14px; padding: 8px; }
.linkish .ic { width: 17px; height: 17px; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(243, 241, 250, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(36,18,79,.07); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px 14px 14px 4px;
  background: var(--sun); color: var(--ink); font: 400 27px/1 var(--display); padding-top: 4px;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--ink); transform: rotate(-6deg);
}
.logo-txt { font: 400 26px/1 var(--display); display: flex; flex-direction: column; }
.logo-txt small { font: 500 10.5px/1.4 var(--font); color: var(--ink-3); letter-spacing: .06em; }
.nav-desk { display: flex; gap: 4px; }
.nav-desk a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.nav-desk a:hover { background: rgba(36,18,79,.06); }
.nav-desk a.on { background: var(--ink); color: #fff; }
.search { flex: 1; min-width: 0; display: flex; align-items: center; max-width: 420px; margin-inline-start: auto; background: var(--paper); border: 2px solid var(--line); border-radius: 999px; padding-inline-start: 16px; }
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: 0; height: 42px; font-size: 15px; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { border: 0; background: none; width: 44px; height: 42px; display: grid; place-items: center; color: var(--ink-2); }

/* ---------------------------------------------------------------- tabbar (mobile) */
.tabbar { display: none; }
@media (max-width: 859px) {
  :root { --tabbar-h: 66px; }
  .nav-desk, .btn-create { display: none; }
  .top-in { gap: 12px; padding: 8px 16px; }
  .logo-txt small { display: none; }
  .logo-txt { font-size: 23px; }
  .logo-mark { width: 36px; height: 36px; font-size: 23px; }
  .search { max-width: none; }
  .search input { height: 40px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
    height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(36,18,79,.06);
  }
  .tabbar a { min-width: 0; white-space: nowrap; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; font-size: 11.5px; font-weight: 500; color: var(--ink-3); }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on .ic { stroke-width: 2.6; }
  .tab-plus { width: 48px; height: 48px; margin-top: -22px; border-radius: 16px; display: grid; place-items: center; background: var(--sun); color: var(--ink); box-shadow: 0 0 0 4px var(--paper), 0 0 0 6.5px var(--ink); transform: rotate(-6deg); }
  .tab-plus .ic { width: 26px; height: 26px; stroke-width: 2.8; }
}

/* ---------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 44px 0 34px; }
.hero-h {
  font-size: clamp(2.7rem, 6.4vw, 5.1rem); line-height: 1.12; color: var(--ink);
  -webkit-text-stroke: 12px #fff; paint-order: stroke fill;
  filter: drop-shadow(0 6px 10px rgba(36,18,79,.16));
}
.hero-h2 { display: block; }
.hero-p { font-size: 18px; color: var(--ink-2); max-width: 34em; margin: 18px 0 26px; }
.hero-p b { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.mat {
  position: relative; aspect-ratio: 5 / 4; border-radius: 30px; isolation: isolate; /* stickers may hang over the edge */
  background: radial-gradient(120% 90% at 30% 20%, #23906A 0%, var(--mat) 45%, var(--mat-d) 100%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), 0 24px 50px -20px rgba(24, 99, 71, .7);
}
.mat-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .9; border-radius: inherit;
  background-image:
    linear-gradient(rgba(255,255,255,.22) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255,255,255,.22) 1.5px, transparent 1.5px),
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
.mat::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: repeating-linear-gradient(135deg, transparent 0 140px, rgba(255,255,255,.05) 140px 142px); }
.slap {
  position: absolute; left: var(--x); top: var(--y); width: 27%; aspect-ratio: 1;
  height: auto; object-fit: contain; transform: rotate(var(--r));
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.28));
  animation: slap .55s cubic-bezier(.2, 1.6, .4, 1) backwards; animation-delay: calc(var(--i) * 90ms + 150ms);
  transition: transform .25s;
}
.slap:hover { transform: rotate(0deg) scale(1.08); }
/* printed-sticker frame: thick white border, rounded corners, peeled corner, real shadow */
.slap-frame {
  display: block; padding: 7px; background: #fff; border-radius: 18px; filter: none;
  box-shadow: 0 0 0 1px rgba(36, 18, 79, .08), 0 2px 3px rgba(0, 0, 0, .18), 0 14px 22px -6px rgba(0, 0, 0, .38);
}
.slap-frame img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 11px; display: block; background: #F1EEF9; }
.slap-frame::after { /* peeled corner */
  content: ""; position: absolute; right: 0; bottom: 0; width: 18%; height: 18%;
  background: linear-gradient(135deg, #fff 45%, #E6E1F3 55%, #CFC8E6 100%);
  border-radius: 0 0 18px 0; clip-path: polygon(100% 0, 100% 100%, 0 100%);
  box-shadow: -2px -2px 4px rgba(0, 0, 0, .15);
}
.slap-emoji { display: grid; place-items: center; font-size: clamp(54px, 8vw, 92px); background: #fff; border-radius: 50%; width: 22%; }
@keyframes slap { from { opacity: 0; transform: rotate(calc(var(--r) * -2)) scale(1.7); } 60% { opacity: 1; } }

/* ---------------------------------------------------------------- kinds (3 sections) */
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 18px 0 30px; }
.kind {
  position: relative; display: block; text-decoration: none; padding: 22px 22px 20px; border-radius: var(--r-lg);
  background: var(--k); box-shadow: var(--die); transform: rotate(var(--kr, 0deg));
  transition: transform .2s; overflow: hidden;
}
.kind:hover { transform: rotate(0deg) translateY(-4px); }
.kind::after { /* peeled corner */
  content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 46px;
  background: linear-gradient(45deg, var(--bg) 50%, #fff 50%, #E9E5F5 75%, #fff 100%);
  border-top-right-radius: 14px; box-shadow: 3px -3px 6px rgba(36,18,79,.12);
  transition: width .2s, height .2s;
}
.kind:hover::after { width: 60px; height: 60px; }
.kind-static { --k: var(--sun); --kr: -1.4deg; }
.kind-animated { --k: var(--pink); --kr: .9deg; color: #fff; }
.kind-sound { --k: var(--blue); --kr: -.6deg; color: #fff; }
.kind-stack { display: flex; height: 92px; margin-bottom: 12px; }
.kind-stack img { width: 92px; height: 92px; object-fit: contain; background: #fff; border-radius: 22px; padding: 6px; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.kind-stack img + img { margin-inline-start: -26px; }
.kind-stack img:nth-child(1) { transform: rotate(-8deg); }
.kind-stack img:nth-child(2) { transform: rotate(5deg) translateY(4px); }
.kind-stack img:nth-child(3) { transform: rotate(-3deg); }
.kind-emoji { font-size: 64px; line-height: 92px; }
.kind h2 { font-size: 34px; }
.kind p { margin: 4px 0 12px; font-size: 15px; opacity: .9; }
.kind-n { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.88); color: var(--ink); }

/* ---------------------------------------------------------------- sections */
.block { padding: 26px 0; }
.block-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.block-h h2 { font-size: 30px; }
.block-h a { font-weight: 700; font-size: 15px; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid var(--sun); }
.empty, .empty-big { text-align: center; padding: 56px 16px; max-width: 520px; margin: 0 auto; }
.empty h2, .empty-big h2 { font-size: 28px; margin-bottom: 6px; }
.empty p, .empty-big p { color: var(--ink-2); margin: 0 0 20px; }
.empty-emoji { font-size: 64px; margin: 0 0 8px !important; }
.lead { color: var(--ink-2); font-size: 17px; margin: 8px 0 0; max-width: 46em; }
.hint { color: var(--ink-3); font-size: 14px; margin: 4px 0 14px; }

.maker-band { margin: 30px 0 40px; border-radius: 30px; background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.maker-band::before { content: "✂"; position: absolute; inset-inline-end: 24px; top: -18px; font-size: 120px; opacity: .08; transform: rotate(-20deg); }
.maker-band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 36px; }
.maker-band h2 { font-size: 32px; margin-bottom: 6px; }
.maker-band p { margin: 0; color: #D6D0EC; max-width: 40em; }
.maker-band .btn-ink { background: var(--sun); color: var(--ink); border-color: var(--sun); box-shadow: 0 4px 0 var(--sun-d); flex: none; }

/* ---------------------------------------------------------------- pack cards */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.pack { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border-radius: 22px; border: 2px solid var(--line); overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s; }
.pack:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.pack-art { position: relative; aspect-ratio: 1.15; background: var(--tint); display: grid; place-items: center; }
.pack-static { --tint: #FFF4D1; }
.pack-animated { --tint: #FFE2EF; }
.pack-sound { --tint: #E0EBFF; }
.pack-cover { width: 64%; height: 64%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(36,18,79,.18)); transition: transform .25s; }
.pack:hover .pack-cover { transform: rotate(-4deg) scale(1.05); }
.pack-mini { position: absolute; bottom: 10px; inset-inline-end: 10px; display: flex; }
.pack-mini img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 12px; padding: 3px; box-shadow: 0 2px 6px rgba(36,18,79,.15); }
.pack-mini img + img { margin-inline-start: -10px; }
.pack-art .chip { position: absolute; top: 10px; inset-inline-start: 10px; }
.pack-meta { padding: 12px 14px 14px; }
.pack-meta h3 { font: 700 16px/1.4 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack-meta p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 0 10px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--c); color: var(--cc, var(--ink)); }
.chip .ic { width: 15px; height: 15px; }
.chip-static { --c: var(--sun); }
.chip-animated { --c: var(--pink); --cc: #fff; }
.chip-sound { --c: var(--blue); --cc: #fff; }

/* ---------------------------------------------------------------- browse */
.browse-h { padding: 26px 0 18px; }
.browse-h h1 { font-size: clamp(2rem, 5vw, 2.9rem); margin-bottom: 14px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--paper); border: 2px solid var(--line); border-radius: 999px; }
.seg a, .seg button { text-decoration: none; padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 0; background: transparent; color: var(--ink-2); }
.seg [aria-selected="true"], .seg .on, .seg [aria-checked="true"] { background: var(--ink); color: #fff; }
.seg .seg-static[aria-selected="true"], .seg .seg-static[aria-checked="true"] { background: var(--sun); color: var(--ink); }
.seg .seg-animated[aria-selected="true"], .seg .seg-animated[aria-checked="true"] { background: var(--pink); }
.seg .seg-sound[aria-selected="true"], .seg .seg-sound[aria-checked="true"] { background: var(--blue); }
.browse-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.toggle { display: inline-flex; border-radius: 12px; background: rgba(36,18,79,.06); padding: 3px; }
.toggle a { text-decoration: none; padding: 5px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.toggle a.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(36,18,79,.15); }
.more { text-align: center; padding: 26px 0; }

/* ---------------------------------------------------------------- sticker tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 22px; background: var(--paper); border: 2px solid transparent; transition: transform .15s, border-color .15s, background .15s; }
.tile-hit { all: unset; position: absolute; inset: 0; border-radius: inherit; cursor: pointer; display: grid; place-items: center; }
.tile-hit:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.tile-hit img { width: 84%; height: 84%; object-fit: contain; transition: transform .2s; }
.tile:hover .tile-hit img { transform: scale(1.06) rotate(-3deg); }
.tile-check {
  position: absolute; top: 7px; inset-inline-start: 7px; width: 30px; height: 30px; border-radius: 50%;
  border: 2.5px solid rgba(36,18,79,.35); background: rgba(255,255,255,.9); display: grid; place-items: center; padding: 0; color: transparent;
  transition: background .15s, border-color .15s, transform .15s;
}
.tile-check::before { content: ""; position: absolute; inset: -8px; }
.tile-check .ic { width: 17px; height: 17px; stroke-width: 3.2; }
.tile.sel { border-color: var(--ink); background: #FFF6D6; transform: scale(.96); }
.tile.sel .tile-check { background: var(--sun); border-color: var(--ink); color: var(--ink); animation: pop .3s; }
.tile-play { position: absolute; bottom: 7px; inset-inline-end: 7px; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 0 0 3px #fff; padding: 0; }
.tile-play .ic { width: 18px; height: 18px; }
.tile.playing .tile-play { animation: ring 1s infinite; }
.tile.playing .tile-hit img { animation: wiggle .5s infinite; }
@keyframes pop { 40% { transform: scale(1.3); } }
@keyframes ring { 0% { box-shadow: 0 0 0 3px #fff, 0 0 0 3px rgba(47,123,255,.6); } 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 14px rgba(47,123,255,0); } }
@keyframes wiggle { 50% { transform: scale(1.05) rotate(3deg); } }
body.selecting .tile-check { border-color: var(--ink); }

/* ---------------------------------------------------------------- pack page */
.pack-h { display: flex; gap: 26px; align-items: center; padding: 26px 0 16px; }
.pack-h-cover { width: 180px; height: 180px; object-fit: contain; flex: none; background: var(--paper); border-radius: 30px; padding: 14px; box-shadow: var(--die); transform: rotate(-4deg); }
.pack-h h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 8px 0 4px; }
.pack-h-meta { margin: 0; color: var(--ink-3); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 0 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.tags a { font-size: 13px; text-decoration: none; padding: 2px 10px; border-radius: 999px; background: rgba(36,18,79,.06); color: var(--ink-2); }
.pack-h-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pack-owner { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.report-line { text-align: center; margin: 22px 0 0; }

/* ---------------------------------------------------------------- selection bar */
.selbar {
  position: fixed; z-index: 45; inset-inline: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
  max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 7px; padding-inline-end: 7px;
  box-shadow: 0 14px 34px -8px rgba(36,18,79,.55); animation: rise .28s cubic-bezier(.2,1.3,.4,1);
}
.selbar-x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; flex: none; }
.selbar-count { font-size: 15px; white-space: nowrap; }
.selbar-count b { font: 400 22px/1 var(--display); color: var(--sun); }
.selbar-all { border: 0; background: none; color: #D6D0EC; font-weight: 500; font-size: 14px; padding: 8px; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.selbar-go { margin-inline-start: auto; border-color: var(--sun); box-shadow: none; min-height: 44px; }
.selbar-go:hover { box-shadow: none; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
body.has-sel { padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 80px); }
@media (max-width: 420px) { .selbar-go span { display: none; } .selbar-go { padding: 0 14px; } .selbar-go::after { content: "أضف"; } }

/* ---------------------------------------------------------------- sheet */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(24, 12, 54, .5); animation: fade .2s; }
.sheet-card {
  position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; overscroll-behavior: contain;
  background: var(--paper); border-radius: 28px 28px 0 0; padding: 12px 20px calc(22px + var(--safe-b));
  animation: up .3s cubic-bezier(.2,1.1,.4,1);
}
@media (min-width: 700px) { .sheet { align-items: center; } .sheet-card { border-radius: 28px; padding-bottom: 24px; } }
.sheet-grip { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 8px; }
.sheet-x { position: absolute; top: 10px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); display: grid; place-items: center; }
.sheet h2 { font-size: 26px; margin: 4px 0 4px; padding-inline-end: 44px; }
.sheet .sub { color: var(--ink-3); font-size: 14px; margin: 0 0 14px; }
@keyframes up { from { transform: translateY(60px); opacity: .4; } }
@keyframes fade { from { opacity: 0; } }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.app {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 18px; border: 2px solid var(--line); background: var(--paper);
  text-align: start; font-weight: 700; font-size: 15px; min-height: 64px; transition: border-color .15s, transform .12s;
}
.app:hover { border-color: var(--ink); }
.app:active { transform: scale(.97); }
.app small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.app-ic { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; font-size: 21px; color: #fff; background: var(--c, var(--ink)); }
.app-ic .ic { width: 22px; height: 22px; }
.a-wa { --c: #25D366; } .a-tg { --c: #2AABEE; } .a-ios { --c: #111827; } .a-dl { --c: var(--ink); } .a-share { --c: var(--pink); } .a-copy { --c: #7C5CFF; } .a-video { --c: var(--blue); } .a-other { --c: #5865F2; }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--paper); text-align: start; font-weight: 700; }
.opt:hover { border-color: var(--ink); }
.opt small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.opt .ic { width: 26px; height: 26px; }
.back { background: none; border: 0; color: var(--ink-2); font-weight: 500; padding: 6px 0; margin-bottom: 4px; }
.steps { margin: 14px 0 0; padding-inline-start: 22px; color: var(--ink-2); font-size: 14.5px; }
.steps li { margin-bottom: 4px; }
.preview { text-align: center; }
.preview-img { width: min(300px, 70vw); aspect-ratio: 1; margin: 6px auto 14px; object-fit: contain; background: conic-gradient(#F1EEF9 25%, #fff 0 50%, #F1EEF9 0 75%, #fff 0) 0 0 / 22px 22px; border-radius: 26px; padding: 12px; }
.preview-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.preview-meta { font-size: 14px; color: var(--ink-3); margin: 0 0 14px; }
.preview-meta a { color: var(--ink); font-weight: 700; }
.fmt { display: flex; gap: 8px; margin: 4px 0 12px; }

/* ---------------------------------------------------------------- toast */
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 90px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 16px; font-weight: 500; font-size: 15px; max-width: calc(100vw - 32px); text-align: center; transition: opacity .2s, transform .2s; box-shadow: 0 10px 30px rgba(36,18,79,.35); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }

/* ---------------------------------------------------------------- forms & panels */
.panel { background: var(--paper); border-radius: var(--r-lg); padding: 20px; border: 2px solid var(--line); }
.panel-h { font: 700 17px/1.4 var(--font); margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.field > span { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea, .keyrow input, .admin-filter input, .admin-filter select, select {
  width: 100%; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); padding: 10px 14px; font-size: 16px; outline: 0; min-height: 46px;
}
.field input:focus, .field textarea:focus, .keyrow input:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.field-r { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 12px; margin: 12px 0; font-size: 14px; font-weight: 500; color: var(--ink-2); }
input[type=range] { width: 100%; accent-color: var(--ink); height: 28px; }
.switch { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-weight: 500; font-size: 15px; cursor: pointer; }
.switch input { width: 22px; height: 22px; accent-color: var(--ink); }

/* ---------------------------------------------------------------- studio */
.studio { padding: 22px 0 30px; }
.studio-h h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.studio-grid { display: grid; grid-template-columns: 340px 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.seg-big { display: flex; width: 100%; }
.seg-big button { flex: 1; padding: 10px 6px; font-size: 15px; }
.type-hint { font-size: 13.5px; color: var(--ink-3); margin: 10px 0 0; }
.tray-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tray-h b { font: 400 22px/1 var(--display); color: var(--ink); background: var(--sun); padding: 2px 10px 0; border-radius: 9px; margin-inline-start: 4px; }
.tray-note { font-size: 13px; color: var(--ink-3); }
.tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; min-height: 140px; }
.tray-add {
  aspect-ratio: 1; border-radius: 22px; border: 2.5px dashed #CFC8E6; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; padding: 8px; cursor: pointer; transition: border-color .15s, background .15s; font-size: 14px;
}
.tray-add:hover { border-color: var(--ink); background: #fff; }
.tray-add .ic { width: 30px; height: 30px; }
.tray-add small { font-size: 11.5px; color: var(--ink-3); }
.tray-make { border-color: var(--sun-d); background: #FFF6D6; }
.draft { position: relative; aspect-ratio: 1; border-radius: 22px; background: conic-gradient(#F1EEF9 25%, #fff 0 50%, #F1EEF9 0 75%, #fff 0) 0 0 / 18px 18px; border: 2px solid var(--line); }
.draft img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.draft-x { position: absolute; top: -8px; inset-inline-end: -8px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; display: grid; place-items: center; padding: 0; }
.draft-x .ic { width: 15px; height: 15px; stroke-width: 3; }
.draft-badge { position: absolute; bottom: 6px; inset-inline-start: 6px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.draft-emoji { position: absolute; bottom: 4px; inset-inline-end: 6px; border: 0; background: #fff; border-radius: 10px; font-size: 16px; padding: 0 4px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.draft.busy::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='18' fill='none' stroke='%2324124F' stroke-width='5' stroke-dasharray='80 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center / 36px no-repeat; }
.draft.done { border-color: var(--good); }
.draft.err { border-color: var(--bad); }
.drop-hint { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(255,199,44,.85); font: 400 40px var(--display); pointer-events: none; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.progress { margin-top: 16px; }
.progress-bar { height: 12px; border-radius: 9px; background: var(--bg); overflow: hidden; border: 2px solid var(--ink); }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--sun); transition: width .25s; }
.progress span { font-size: 14px; color: var(--ink-2); }

/* ---------------------------------------------------------------- maker */
.maker { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; }
.maker-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--paper); border-bottom: 1px solid var(--line); }
.maker-top h2 { font-size: 22px; }
.maker-body { flex: 1; min-height: 0; display: flex; gap: 0; }
.stage-wrap { flex: 1.1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; gap: 10px; min-height: 0; }
.stage {
  position: relative; width: min(100%, 520px, 52vh); aspect-ratio: 1; border-radius: 24px; overflow: hidden;
  background: conic-gradient(#E9E5F5 25%, #fff 0 50%, #E9E5F5 0 75%, #fff 0) 0 0 / 28px 28px;
  box-shadow: 0 0 0 2px var(--line); touch-action: none;
}
.stage canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.stage-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; pointer-events: none; }
.stage-empty p { font: 400 24px var(--display); margin: 0; color: var(--ink-2); }
.stage-empty div { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; pointer-events: auto; }
.stage-bar { display: flex; align-items: center; gap: 8px; width: min(100%, 520px, 52vh); }
.stage-tip { flex: 1; text-align: center; font-size: 13px; color: var(--ink-3); }
.erase-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; width: min(100%, 520px); background: var(--paper); border-radius: 18px; padding: 10px; border: 2px solid var(--ink); }
.seg-sm button { padding: 5px 12px; font-size: 13.5px; }
.mini { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.mini input { width: 110px; }
.tools { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--paper); border-inline-start: 1px solid var(--line); min-height: 0; }
.tool-tabs { display: flex; gap: 4px; padding: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; flex: none; }
.tool-tabs::-webkit-scrollbar { display: none; }
.tool-tabs button { flex: none; border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--ink-3); }
.tool-tabs button.on { background: var(--ink); color: #fff; }
.tool-panel { padding: 14px 16px 20px; overflow-y: auto; flex: 1; }
.tool-note { font-size: 13.5px; color: var(--ink-3); margin: 10px 0; }
.sub-h { font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin: 14px 0 8px; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.add-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border-radius: 18px; border: 2px solid var(--line); background: var(--bg); font-weight: 700; font-size: 14px; }
.add-grid button:hover { border-color: var(--ink); }
.add-grid span { font-size: 30px; line-height: 1.1; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button, .sw-custom { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: var(--c); padding: 0; position: relative; }
.swatches button.on { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
.sw-custom { background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); overflow: hidden; cursor: pointer; }
.sw-custom input { opacity: 0; position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.fonts .chipbtn { font-size: 16px; }
.emoji-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 4px; }
.emoji-grid button { font-size: 28px; aspect-ratio: 1; border: 0; background: none; border-radius: 12px; padding: 0; }
.emoji-grid button:hover { background: var(--bg); }
.anim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.anim-grid button { padding: 10px 4px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 500; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.anim-grid button span { font-size: 22px; display: inline-block; }
.anim-grid button.on { border-color: var(--ink); background: #FFF6D6; }
.wave { margin-top: 14px; }
.wave canvas { width: 100%; height: 80px; border-radius: 14px; background: var(--bg); display: block; }
.trim { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; }
.trim label { font-size: 13px; color: var(--ink-2); }
.rec-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bad); }
.recording .rec-dot { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.maker-busy { position: absolute; inset: 0; z-index: 5; background: rgba(243,241,250,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-weight: 700; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.only-motion, .only-sound { display: none; }
.maker.m-animated .only-motion, .maker.m-sound .only-motion, .maker.m-sound .only-sound { display: inline-block; }

@media (max-width: 859px) {
  .maker-body { flex-direction: column; }
  .stage-wrap { flex: none; padding: 10px 12px 6px; }
  .stage, .stage-bar { width: min(100%, 44vh); }
  .tools { border-inline-start: 0; border-top: 1px solid var(--line); border-radius: 24px 24px 0 0; box-shadow: 0 -6px 18px rgba(36,18,79,.06); }
  .tool-panel { padding-bottom: calc(20px + var(--safe-b)); }
}

/* ---------------------------------------------------------------- docs / help / mine / admin */
.doc { max-width: 820px; margin: 0 auto; padding: 26px 0 30px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.doc-jump a { text-decoration: none; font-weight: 700; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 2px solid var(--line); font-size: 14.5px; }
.doc-jump a:hover { border-color: var(--ink); }
.guide { background: var(--paper); border-radius: var(--r-lg); padding: 22px 24px; margin-top: 18px; border-inline-start: 8px solid var(--g); }
.g-wa { --g: #25D366; } .g-tg { --g: #2AABEE; } .g-ios { --g: #111827; } .g-sound { --g: var(--blue); } .g-other { --g: #5865F2; }
.guide h2 { font-size: 28px; margin-bottom: 6px; }
.guide h3 { font: 700 16.5px/1.5 var(--font); margin: 16px 0 4px; }
.guide ol, .guide ul { padding-inline-start: 22px; margin: 6px 0; }
.guide li { margin-bottom: 6px; }
.guide p { margin: 8px 0; }
.note { font-size: 14px; color: var(--ink-2); background: #FFF6D6; border-radius: 12px; padding: 10px 14px; margin: 12px 0 0; }
.keybox { max-width: 640px; margin: 34px 0 20px; background: var(--paper); border-radius: var(--r-lg); padding: 20px 22px; border: 2px solid var(--line); }
.keybox h2 { font-size: 24px; }
.keybox p { color: var(--ink-2); font-size: 14.5px; margin: 6px 0 12px; }
.keyrow { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.keyrow input { flex: 1; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
details summary { cursor: pointer; font-weight: 500; margin-top: 14px; color: var(--ink-2); }
.mine-acts { display: flex; gap: 6px; padding: 0 14px 14px; }
.badge-hidden { position: absolute; top: 10px; inset-inline-end: 10px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.alert { background: #FFE3E7; color: var(--bad); padding: 10px 14px; border-radius: 12px; font-weight: 500; }
.admin-h { display: flex; justify-content: space-between; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.stats div { background: var(--paper); border-radius: 18px; padding: 14px; text-align: center; border: 2px solid var(--line); }
.stats b { display: block; font: 400 30px/1.1 var(--display); }
.stats span { font-size: 13px; color: var(--ink-3); }
.admin-filter { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.admin-filter input { flex: 1; min-width: 160px; }
.admin-filter select { width: auto; }
.admin-list { display: flex; flex-direction: column; gap: 8px; }
.arow { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: 16px; padding: 10px; border: 2px solid var(--line); flex-wrap: wrap; }
.arow.is-hidden { opacity: .6; border-style: dashed; }
.arow img { width: 56px; height: 56px; object-fit: contain; background: var(--bg); border-radius: 12px; }
.arow-info { flex: 1; min-width: 180px; }
.arow-info a { text-decoration: none; }
.arow-info small { display: block; color: var(--ink-3); }
.arow-act { display: flex; gap: 6px; flex-wrap: wrap; }
.bad { color: var(--bad); font-weight: 700; }
code { background: rgba(36,18,79,.07); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* ---------------------------------------------------------------- footer */
.foot { margin-top: 30px; border-top: 1px solid var(--line); background: var(--paper); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 22px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: var(--ink-2); }
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-links a { text-decoration: none; font-weight: 500; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 26px 0 20px; }
  .mat { aspect-ratio: 16 / 10; }
  .studio-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .kinds { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .kind { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; padding: 16px 18px; }
  .kind-stack { grid-row: span 3; height: 74px; margin: 0; }
  .kind-stack img { width: 64px; height: 64px; border-radius: 16px; }
  .kind-stack img + img { margin-inline-start: -34px; }
  .kind h2 { font-size: 28px; }
  .kind p { margin: 0 0 8px; font-size: 14px; }
  .kind-n { justify-self: start; }
  .maker-band-in { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .pack-h { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pack-h-cover { width: 120px; height: 120px; border-radius: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero-h { -webkit-text-stroke-width: 9px; }
  .hero-p { font-size: 16px; }
  .hero-cta .btn { flex: 1; }
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pack-meta { padding: 10px 11px 12px; }
  .pack-meta h3 { font-size: 15px; }
  .pack-mini img { width: 32px; height: 32px; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tile { border-radius: 18px; }
  .tile-check { width: 26px; height: 26px; top: 5px; inset-inline-start: 5px; }
  .tile-play { width: 30px; height: 30px; }
  .block-h h2 { font-size: 25px; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tray { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .panel { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.tray-add, .draft, .tile, .pack { min-width: 0; }
.tray-add b { font-size: 13.5px; line-height: 1.3; }

/* =================================================================
   Polish layer (v1.1): spacing, alignment and responsive fixes.
   Same look and colours; only arrangement and consistency.
   ================================================================= */

/* ---- layout rhythm */
main { padding: 0 20px; }
.top-in, .foot-in { padding-inline: 20px; }
.browse-h, .studio, .doc { padding-top: 32px; }
.browse-h h1, .studio-h h1, .doc h1, .pack-h h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); }
.browse-h h1 { margin-bottom: 16px; }
.lead { margin-top: 8px; }
.block { padding: 30px 0 10px; }
.block-h { align-items: center; margin-bottom: 18px; }
.block-h a { padding-bottom: 2px; }
.block-h a:hover { color: var(--ink); }

/* ---- header: keep everything on one line on small laptops / tablets */
.nav-desk a { white-space: nowrap; }
.search { min-width: 160px; }
@media (min-width: 860px) and (max-width: 1120px) {
  .top-in { gap: 12px; }
  .logo-txt small { display: none; }
  .nav-desk { gap: 2px; }
  .nav-desk a { padding: 8px 10px; font-size: 14.5px; }
  .btn-create { width: 46px; padding: 0; }
  .btn-create span { display: none; }
}

/* ---- pack cards: cover never collides with the mini previews */
.pack-cover { width: 56%; height: 56%; transform: translateY(-7%); }
.pack:hover .pack-cover { transform: translateY(-7%) rotate(-4deg) scale(1.05); }
.pack-mini { bottom: 9px; inset-inline-end: 9px; }
.pack-mini img { width: 34px; height: 34px; border-radius: 10px; }
.pack-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pack-meta p { gap: 2px 0; }
.pack-meta p span + span::before { content: "•"; margin-inline: 7px; opacity: .55; }
.pack-meta p span:first-child { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pack-meta p span:nth-child(2)::before { content: none; }
.packs, .tiles { align-items: stretch; }

/* ---- browse */
.browse-tools { gap: 10px 12px; }
.toggle a { display: inline-flex; align-items: center; min-height: 34px; }
.more .btn { min-width: 200px; }

/* ---- pack page */
.pack-h { padding: 32px 0 18px; gap: 30px; }
.pack-h-info { min-width: 0; flex: 1; }
.pack-h-cta .btn { min-height: 50px; }
.hint { margin: 6px 0 14px; }
.report-line { margin: 26px 0 0; }

/* ---- studio */
.studio-grid { gap: 22px; }
.panel { box-shadow: 0 1px 0 rgba(36,18,79,.03); }
.panel-h { display: flex; align-items: center; gap: 4px; margin: 0 0 12px; }
.tray-h { margin-bottom: 12px; }
.tray-h .panel-h { margin: 0; }
.tray { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tray-add { color: var(--ink); }
.tray-add b { font-weight: 700; }
.studio-actions { padding-top: 18px; border-top: 1px dashed var(--line); }

/* ---- help */
.doc-jump { gap: 8px; margin: 20px 0 6px; }
.doc-jump a { display: inline-flex; align-items: center; min-height: 40px; }
.guide { border: 2px solid var(--line); border-inline-start: 8px solid var(--g); scroll-margin-top: 90px; }
.guide h3 { color: var(--ink); }

/* ---- mine */
.keybox { margin: 30px auto 10px; }
.keybox h2 { margin-bottom: 2px; }
.mine-acts { margin-top: auto; }
.mine-acts .chipbtn { flex: 1; justify-content: center; text-decoration: none; }
#mineList:not(:empty) { margin-bottom: 8px; }

/* ---- admin */
.doc.admin { max-width: 1080px; }
.admin-h { gap: 12px; flex-wrap: wrap; }
.admin-h .btn { border: 2px solid var(--line); background: var(--paper); }
.auth-card { max-width: 440px; margin: 28px auto 10px; background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px 26px; text-align: center; }
.auth-card .logo-mark { margin: 0 auto 18px; width: 52px; height: 52px; font-size: 32px; }
.auth-card h1 { font-size: 34px; }
.auth-card .lead { font-size: 15px; margin: 8px auto 0; }
.auth-card .alert { margin: 16px 0 0; text-align: start; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; text-align: start; }
.auth-form input { width: 100%; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); padding: 10px 14px; font-size: 16px; outline: 0; min-height: 50px; }
.auth-form input:focus { border-color: var(--ink); }
.auth-form .btn { width: 100%; }
.stats { gap: 14px; margin: 22px 0 16px; }
.stats div { text-align: start; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; position: relative; overflow: hidden; }
.stats div::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: var(--s, var(--ink)); }
.stats div:nth-child(1) { --s: var(--sun); }
.stats div:nth-child(2) { --s: var(--pink); }
.stats div:nth-child(3) { --s: var(--blue); }
.stats div:nth-child(4) { --s: var(--bad); }
.stats b { font-size: 34px; }
.stats span { font-size: 14px; color: var(--ink-2); }
.admin .note { margin: 0; }
.admin-filter { align-items: stretch; gap: 10px; margin: 18px 0 14px; }
.admin-filter select { min-width: 150px; }
.admin-filter .btn { min-height: 46px; }
.admin-list { gap: 10px; }
.arow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; padding: 12px 14px; }
.arow-info { min-width: 0; }
.arow-info b { font-weight: 700; }
.arow-info a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.arow-info small { font-size: 13px; line-height: 1.6; margin-top: 2px; }
.arow-act { justify-content: flex-end; }
.arow-act .chipbtn { min-height: 38px; }
.chip-danger:hover { border-color: var(--bad); background: #FFE3E7; }

/* ---- footer */
.foot { margin-top: 40px; }
.foot-in { align-items: center; padding-block: 24px; }
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---- tablets */
@media (max-width: 980px) {
  .hero { padding-top: 30px; }
}
@media (max-width: 859px) {
  .top-in { padding: 8px 16px; }
  .foot-in { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .foot-links { justify-content: center; }
  .browse-h, .studio, .doc { padding-top: 24px; }
}
@media (max-width: 760px) {
  .pack-h { align-items: center; text-align: center; padding-top: 24px; }
  .pack-h-cover { margin: 0 auto; width: 132px; height: 132px; }
  .pack-h-meta, .tags { justify-content: center; }
  .pack-h-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pack-h-cta .btn { width: 100%; padding: 0 12px; }
  .pack-h-cta .btn-lg { grid-column: 1 / -1; }
  .pack-owner { justify-content: center; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .arow { grid-template-columns: 52px minmax(0, 1fr); }
  .arow img { width: 52px; height: 52px; }
  .arow-act { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
  .arow-act .chipbtn { justify-content: center; padding: 0 8px; }
}

/* ---- phones */
@media (max-width: 560px) {
  main { padding: 0 16px; }
  .browse-h, .studio, .doc { padding-top: 20px; }
  .browse-h h1 { margin-bottom: 12px; }
  .seg:not(.seg-big):not(.seg-sm) { display: flex; width: 100%; }
  .seg:not(.seg-big):not(.seg-sm) a { flex: 1; text-align: center; padding: 8px 4px; }
  .browse-tools { justify-content: space-between; }
  .browse-tools .btn { width: 100%; }
  .more .btn { width: 100%; }
  .block { padding-top: 24px; }
  .maker-band .btn { width: 100%; }
  .maker-band::before { font-size: 90px; }
  .pack-art .chip { top: 8px; inset-inline-start: 8px; font-size: 12px; }
  .pack-mini img { width: 30px; height: 30px; border-radius: 9px; }
  .pack-meta p span + span::before { margin-inline: 5px; }
  .empty, .empty-big { padding: 36px 8px; }
  .hint { text-align: center; }

  /* studio: big tap targets on top, drafts below */
  .tray { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tray > * { grid-column: span 2; }
  .tray > .tray-add { grid-column: span 3; order: -1; aspect-ratio: auto; min-height: 112px; }
  .studio-actions .btn { flex: 1 1 100%; }
  .tray-note { width: 100%; }

  /* help: one scrollable row of app chips */
  .doc-jump { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .doc-jump::-webkit-scrollbar { display: none; }
  .doc-jump a { flex: none; }
  .guide { padding: 18px 18px 16px; margin-top: 14px; }
  .guide h2 { font-size: 25px; }

  /* mine */
  .keybox { padding: 18px; margin-top: 18px; }
  .keyrow { flex-wrap: wrap; }
  .keyrow input { flex: 1 1 100%; }
  .keyrow .btn { flex: 1; }

  /* admin */
  .auth-card { margin-top: 8px; padding: 24px 18px 20px; }
  .admin-filter input { flex: 1 1 100%; }
  .admin-filter select { flex: 1; min-width: 0; }
  .admin-filter .btn { flex: none; }
  .stats b { font-size: 28px; }
}

#mineEmpty { padding-top: 28px; padding-bottom: 28px; }
/* video trimmer */
.vtrim-stage { border-radius: 20px; overflow: hidden; background: #111; margin: 6px 0 10px; aspect-ratio: 1; max-height: 46vh; display: grid; place-items: center; }
.vtrim-stage video { width: 100%; height: 100%; object-fit: cover; }
/* bring stickers in */
.bring { margin-top: 26px; }
.bring > h2 { font-size: 26px; margin-bottom: 12px; }
.bring-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.bring-card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.bring-card h3 { font: 700 17px/1.4 var(--font); }
.bring-card .steps li { margin-bottom: 8px; }
.wa-bm { margin: 6px 0 2px; cursor: grab; }

/* =================================================================
   Stickerzzz: sleepy "Zzz" on the logo + new home sections
   ================================================================= */
.logo-mark { position: relative; }
.top-in { padding-top: 16px; }
.logo { margin-inline-end: 14px; }


/* ---- home: pack cards with 4 stickers */
.packsq { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.packq { display: flex; flex-direction: column; min-width: 0; text-decoration: none; background: var(--paper); border-radius: 24px; border: 2px solid var(--line); overflow: hidden; transition: transform .18s, border-color .18s, box-shadow .18s; }
.packq:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 6px 0 var(--ink); }
.packq-art { position: relative; background: var(--tint); padding: 42px 16px 16px; }
.packq-art .chip { position: absolute; top: 10px; inset-inline-start: 10px; }
.packq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.packq-grid span { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border-radius: 16px; box-shadow: 0 4px 10px -6px rgba(36,18,79,.35); }
.packq-grid img { width: 86%; height: 86%; object-fit: contain; transition: transform .2s; }
.packq:hover .packq-grid span:first-child img { transform: rotate(-5deg) scale(1.06); }
.packq-grid .packq-empty { background: rgba(255,255,255,.5); box-shadow: none; }
.packq-sound { position: absolute; bottom: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff; }
.packq-sound .ic { width: 16px; height: 16px; }
.packq-meta { display: flex; align-items: center; gap: 10px; padding: 12px 14px 14px; }
.packq-txt { flex: 1; min-width: 0; }
.packq-txt h3 { font: 700 16px/1.4 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.packq-txt p { margin: 0; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.packq-txt p span + span::before { content: "•"; margin-inline: 6px; opacity: .55; }
.packq-go { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sun); border: 2px solid var(--ink); box-shadow: 0 3px 0 var(--ink); }
.packq-go .ic { width: 18px; height: 18px; }

/* ---- home: listen strip */
.listen { margin: 34px 0 10px; border-radius: 34px; background: var(--blue); color: #fff; padding: 28px 32px; box-shadow: 0 0 0 4px #fff, 0 18px 36px -18px rgba(47,123,255,.7); }
.listen-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.listen-h h2 { font-size: 34px; }
.listen-h p { margin: 2px 0 0; color: #DCE8FF; font-size: 15px; }
.listen-all { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.listen-all .ic { width: 17px; height: 17px; }
.listen-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.listen-tiles .tile { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); }
.listen-tiles .tile .tile-play { background: var(--sun); color: var(--ink); box-shadow: 0 0 0 3px var(--blue); width: 38px; height: 38px; }
.listen-tiles .tile.sel { background: #FFF6D6; border-color: var(--ink); }

/* ---- home: how-to */
.howto { margin: 26px 0 10px; border-radius: 30px; background: var(--ink); color: #fff; padding: 26px 32px; }
.howto h2 { font-size: 30px; margin-bottom: 16px; }
.howto ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; }
.howto li { display: flex; gap: 12px; align-items: flex-start; }
.howto-n { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--sun); color: var(--ink); font: 400 21px/1 var(--display); padding-top: 3px; }
.howto b { display: block; font-size: 15.5px; }
.howto small { display: block; font-size: 13.5px; color: #D6D0EC; }

/* ---- home: maker band v2 */
.maker2 { margin: 26px 0 40px; border-radius: 34px; background: var(--ink); color: #fff; padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 28px; position: relative; overflow: hidden; }
.maker2-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.maker2 h2 { font-size: 40px; }
.maker2 p { margin: 0; color: #D6D0EC; font-size: 15.5px; }
.maker2-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.maker2-steps li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 16px; background: rgba(255,255,255,.08); font-size: 14px; font-weight: 500; }
.maker2-steps li span { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--sun); color: var(--ink); }
.maker2-steps .ic { width: 17px; height: 17px; }
.maker2 .btn-sun { border-color: var(--sun); box-shadow: 0 4px 0 var(--sun-d); margin-top: 6px; }
.maker2-demo { flex: none; display: flex; align-items: center; gap: 12px; }
.maker2-before { width: 112px; height: 112px; object-fit: contain; border-radius: 22px; padding: 8px; background: conic-gradient(#3A2A6B 25%, #2E1F5C 0 50%, #3A2A6B 0 75%, #2E1F5C 0) 0 0 / 16px 16px; }
.maker2-arrow { color: var(--sun); }
.maker2-arrow .ic { width: 28px; height: 28px; stroke-width: 2.6; }
.maker2-after { width: 140px; height: 140px; object-fit: contain; background: #fff; border-radius: 30px; padding: 10px; box-shadow: 0 0 0 3px #fff, 0 14px 26px -10px rgba(0,0,0,.5); transform: rotate(-6deg); }

@media (max-width: 1080px) {
  .packsq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listen-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .listen, .howto, .maker2 { border-radius: 28px; }
  .listen { padding: 20px 16px; }
  .listen-h h2 { font-size: 26px; }
  .listen-h p { display: none; }
  .listen-all { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
  .howto { padding: 22px 20px; }
  .howto h2 { font-size: 25px; }
  .howto ol { grid-template-columns: minmax(0, 1fr); }
  .maker2 { flex-direction: column; align-items: stretch; padding: 24px 20px; gap: 20px; }
  .maker2 h2 { font-size: 30px; }
  .maker2 .btn-sun { align-self: stretch; }
  .maker2-demo { justify-content: center; order: -1; }
  .maker2-before { width: 84px; height: 84px; }
  .maker2-after { width: 104px; height: 104px; }
}
@media (max-width: 560px) {
  .packsq { gap: 12px; }
  .packq { border-radius: 20px; }
  .packq-art { padding: 36px 10px 10px; }
  .packq-grid { gap: 7px; }
  .packq-grid span { border-radius: 12px; }
  .packq-meta { padding: 10px 11px 12px; }
  .packq-txt h3 { font-size: 14.5px; }
  .packq-txt p { font-size: 12px; }
  .packq-go { display: none; }
  .listen-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .listen-h h2 { font-size: 22px; }
  .listen-tiles .tile .tile-play { width: 30px; height: 30px; }
}


/* ---- logo: sleepy Zzz (SVG) */
.logo-z { position: absolute; top: -16px; right: -22px; width: 27px; height: 23px; overflow: visible; transform: rotate(6deg); pointer-events: none; }
.logo-z path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logo-z .z-halo path { stroke: #fff; stroke-width: 5.5; }
.logo-z .z-ink path { stroke: var(--ink); stroke-width: 2.4; }
.logo-z .z-ink path, .logo-z .z-halo path { animation: zzz 3s ease-in-out infinite; }
.logo-z path:nth-child(2) { animation-delay: .35s; }
.logo-z path:nth-child(3) { animation-delay: .7s; }
@keyframes zzz { 0%, 100% { opacity: 1; } 55% { opacity: .35; } }
.auth-card .logo-z { top: -19px; right: -26px; width: 33px; height: 28px; }
@media (max-width: 859px) { .logo-z { top: -14px; right: -13px; width: 21px; height: 18px; } }

/* ---- mobile tab bar v2: one line, same rhythm, clear active state */
@media (max-width: 859px) {
  :root { --tabbar-h: 68px; }
  .tabbar { padding-inline: 6px; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(36,18,79,.07); }
  .tabbar a { gap: 3px; padding-top: 2px; font-size: 11.5px; font-weight: 500; color: #6E6496; }
  .tab-ic { width: 54px; height: 30px; border-radius: 999px; display: grid; place-items: center; transition: background .15s; }
  .tab-ic .ic { width: 23px; height: 23px; stroke-width: 1.9; }
  .tabbar a.on { color: var(--ink); font-weight: 700; }
  .tabbar a.on .tab-ic { background: #FFEFB8; }
  .tabbar a.on .tab-ic .ic { stroke-width: 2.3; }
  .tabbar a.tab-make .tab-ic, .tabbar a.tab-make.on .tab-ic { width: 54px; height: 34px; margin-top: -2px; background: var(--sun); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 2px 0 var(--ink); border-radius: 13px; }
  .tabbar .tab-make .tab-ic .ic { width: 22px; height: 22px; stroke-width: 2.7; }
  .tabbar .tab-make { color: var(--ink); font-weight: 700; }
  .tab-plus { display: none; }
}

/* ---- studio wizard: one step at a time */
.wiz-steps { list-style: none; margin: 20px 0 16px; padding: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; background: var(--paper); border: 2px solid var(--line); border-radius: 24px; }
.wiz-steps button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; border: 2px solid transparent; background: none; text-align: start; color: var(--ink); }
.wiz-n { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 400 20px/1 var(--display); padding-top: 3px; background: var(--bg); color: var(--ink-3); border: 2px solid var(--line); }
.wiz-t { display: flex; flex-direction: column; min-width: 0; }
.wiz-t b { font-size: 15px; }
.wiz-t small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wiz-steps [data-state="now"] button { border-color: var(--ink); background: #FFF6D6; box-shadow: 0 4px 0 var(--ink); }
.wiz-steps [data-state="now"] .wiz-n { background: var(--sun); color: var(--ink); border-color: var(--ink); }
.wiz-steps [data-state="now"] small { color: var(--ink-2); }
.wiz-steps [data-state="done"] button { border-color: #BDEBD3; background: #F2FBF6; }
.wiz-steps [data-state="done"] .wiz-n { background: var(--good); border-color: var(--good); color: transparent; position: relative; }
.wiz-steps [data-state="done"] .wiz-n::after { content: ""; position: absolute; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.wiz-steps [data-state="done"] small { color: #116B42; }
.wiz-steps [data-state="open"] button:hover { border-color: var(--line); }
.wiz-steps [data-state="locked"] button { cursor: not-allowed; opacity: .75; border: 2px dashed var(--line); }
.wiz-steps button:disabled { pointer-events: none; }

.wiz { background: var(--paper); border: 2px solid var(--line); border-radius: 30px; overflow: hidden; }
.wiz-pane { padding: 26px 28px; }
.wiz-head { margin-bottom: 18px; }
.wiz-head h2 { font-size: 32px; outline: 0; }
.wiz-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.type-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tc { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border-radius: 24px; border: 2px solid var(--line); background: var(--paper); text-align: start; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .12s; }
.tc:hover { border-color: var(--ink); }
.tc-ic { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; }
.tc-ic .ic { width: 27px; height: 27px; }
.tc-static .tc-ic { background: var(--sun); color: var(--ink); }
.tc-animated .tc-ic { background: var(--pink); color: #fff; }
.tc-sound .tc-ic { background: var(--blue); color: #fff; }
.tc-t b { display: block; font: 400 25px/1.15 var(--display); }
.tc-t small { font-size: 13.5px; color: var(--ink-2); }
.tc-ok { position: absolute; top: 14px; inset-inline-end: 14px; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--line); display: grid; place-items: center; color: transparent; }
.tc-ok .ic { width: 15px; height: 15px; stroke-width: 3.2; }
.tc[aria-checked="true"] { border: 2.5px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.tc-static[aria-checked="true"] { background: #FFF4D1; }
.tc-animated[aria-checked="true"] { background: #FFE2EF; }
.tc-sound[aria-checked="true"] { background: #E0EBFF; }
.tc[aria-checked="true"] .tc-ok { background: var(--ink); border-color: var(--ink); color: #fff; }
.tc:disabled { opacity: .4; }
.wiz .type-hint { margin-top: 14px; }

.wiz-meter { height: 12px; border-radius: 9px; background: var(--bg); overflow: hidden; border: 2px solid var(--ink); margin: 4px 0 16px; }
.wiz-meter i { display: block; height: 100%; width: 0; background: var(--pink); transition: width .25s; }
.wiz-meter i.ok { background: var(--sun); }
.wiz .tray-h { margin-bottom: 8px; }

.wiz-final { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.wiz-final .fields .field:first-child { margin-top: 0; }
.req { color: #C42840; font-style: normal; }
.field input.bad { border-color: #C42840; background: #FFF6F7; }
.wiz-preview { background: var(--bg); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.wiz-preview-l { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.wiz-card { background: var(--paper); border: 2px solid var(--line); border-radius: 22px; overflow: hidden; }
.wiz-card-art { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 12px; background: #FFF4D1; }
.wiz-card-art.t-animated { background: #FFE2EF; } .wiz-card-art.t-sound { background: #E0EBFF; }
.wiz-card-art span { aspect-ratio: 1; border-radius: 12px; background: rgba(255,255,255,.75); display: grid; place-items: center; }
.wiz-card-art img { width: 86%; height: 86%; object-fit: contain; }
.wiz-card-meta { padding: 10px 14px 12px; }
.wiz-card-meta b { display: block; font-size: 16px; }
.wiz-card-meta small { font-size: 13px; color: var(--ink-3); }
.wiz .studio-actions { margin-top: 0; padding-top: 0; border-top: 0; flex-direction: column; }
.wiz .studio-actions .btn { width: 100%; }

.wiz-bar { display: flex; align-items: center; gap: 14px; padding: 14px 28px; border-top: 1.5px solid var(--line); background: #FBFAFE; }
.wiz-reason { margin-inline-start: auto; font-size: 14px; font-weight: 500; color: var(--ink-3); text-align: end; }
.wiz-reason.ok { color: #116B42; }
#wizNext.is-locked, #wizNext:disabled, #publishBtn.is-locked { background: var(--bg); color: #8A80AD; border-style: dashed; border-color: #CFC8E6; box-shadow: none; opacity: 1; pointer-events: auto; cursor: not-allowed; transform: none; }
#wizNext .ic, #wizBack .ic { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .type-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tc { flex-direction: row; align-items: center; padding: 14px; }
  .tc-ok { position: static; margin-inline-start: auto; flex: none; }
  .wiz-final { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .wiz-steps { padding: 8px; gap: 6px; border-radius: 20px; margin: 14px 0 12px; }
  .wiz-steps button { flex-direction: column; gap: 4px; padding: 8px 4px; text-align: center; }
  .wiz-n { width: 32px; height: 32px; font-size: 17px; }
  .wiz-t b { font-size: 13px; }
  .wiz-t small { display: none; }
  .wiz { border-radius: 24px; overflow: visible; }
  .wiz-pane { padding: 18px 16px; }
  .wiz-head h2 { font-size: 26px; }
  .wiz-head p { font-size: 14px; }
  .wiz-bar { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 20; flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px 12px; border-radius: 0 0 22px 22px; box-shadow: 0 -8px 20px rgba(36,18,79,.08); }
  .wiz-reason { order: -1; flex: 1 1 100%; text-align: center; font-size: 12.5px; margin: 0; }
  #wizNext { flex: 1; min-height: 50px; padding: 0 14px; font-size: 15px; }
  #wizBack { min-height: 50px; padding: 0 14px; }
}

/* ---- category pages (browse by type) */
.cat-hero { --c: var(--ink); --on: #fff; position: relative; margin-top: 26px; border-radius: 34px; background: var(--c); color: var(--on); padding: 38px 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; box-shadow: 0 0 0 4px #fff, 0 20px 44px -22px rgba(36,18,79,.45); }
.cat-static { --c: var(--sun); --on: var(--ink); }
.cat-animated { --c: var(--pink); }
.cat-sound { --c: var(--blue); }
.cat-copy { flex: 1 1 420px; min-width: 0; max-width: 600px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }
.cat-chip .ic { width: 16px; height: 16px; }
.cat-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1.08; }
.cat-hero p { margin: 0; font-size: 17.5px; line-height: 1.65; opacity: .95; }
.cat-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-stats span { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 700; font-size: 14px; }
.cat-stats .cat-apps { background: transparent; color: inherit; border: 2px solid rgba(255,255,255,.75); font-weight: 500; }
.cat-static .cat-stats .cat-apps { border-color: rgba(36,18,79,.3); }
.cat-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cat-hero .btn-ink { border-color: var(--ink); }
.cat-hero .btn-paper { border-color: #fff; box-shadow: 0 4px 0 rgba(36,18,79,.35); }
.cat-cluster { position: relative; flex: 0 0 420px; height: 300px; }
.cc { position: absolute; object-fit: contain; background: #fff; border-radius: 28px; padding: 10px; box-shadow: 0 0 0 3px #fff, 0 12px 22px -10px rgba(36,18,79,.45); }
.cc-0 { width: 150px; height: 150px; left: 30px; top: 18px; transform: rotate(-9deg); }
.cc-1 { width: 130px; height: 130px; left: 214px; top: 0; transform: rotate(7deg); }
.cc-2 { width: 168px; height: 168px; left: 122px; top: 118px; transform: rotate(-3deg); z-index: 1; }
.cc-3 { width: 118px; height: 118px; left: 300px; top: 150px; transform: rotate(10deg); }
.cc-4 { width: 108px; height: 108px; left: 6px; top: 186px; transform: rotate(6deg); }

.cat-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 14px; }
.ct { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--paper); border: 2px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s; }
.ct:hover { border-color: var(--ink); }
.ct.on { border: 2.5px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.ct-ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: #fff; }
.ct-static .ct-ic { background: var(--sun); color: var(--ink); }
.ct-animated .ct-ic { background: var(--pink); }
.ct-sound .ct-ic { background: var(--blue); }
.ct-ic .ic { width: 22px; height: 22px; }
.ct-t { display: flex; flex-direction: column; min-width: 0; }
.ct-t b { font: 400 21px/1.2 var(--display); }
.ct-t small { font-size: 12.5px; color: var(--ink-3); }

.cat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; background: var(--paper); border: 2px solid var(--line); border-radius: 22px; padding: 10px 12px; margin-bottom: 8px; }
.cat-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--bg); color: var(--ink-3); }
.cat-search:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.cat-search .ic { width: 19px; height: 19px; }
.cat-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; color: var(--ink); }
.cat-search input::-webkit-search-cancel-button { display: none; }
.cat-toggles { display: flex; flex-wrap: wrap; gap: 8px; }

.feat { margin: 22px 0 6px; background: var(--paper); border: 2px solid var(--line); border-radius: 30px; padding: 22px; display: flex; flex-wrap: wrap; gap: 26px; align-items: center; }
.feat-cover { flex: none; width: 200px; height: 200px; border-radius: 30px; background: #FFF4D1; display: grid; place-items: center; }
body.type-animated .feat-cover { background: #FFE2EF; }
.feat-cover img { width: 76%; height: 76%; object-fit: contain; background: #fff; border-radius: 26px; padding: 10px; box-shadow: 0 0 0 3px #fff, 0 12px 22px -10px rgba(36,18,79,.45); transform: rotate(-5deg); }
.feat-body { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.feat-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--sun); font-size: 12.5px; font-weight: 700; }
.feat-chip .ic { width: 14px; height: 14px; }
.feat h2 { font-size: 36px; }
.feat h2 a { text-decoration: none; }
.feat-meta { margin: 0; font-size: 14px; color: var(--ink-3); }
.feat-strip { width: 100%; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 6px 0 6px; }
.feat-strip span { aspect-ratio: 1; border-radius: 16px; border: 2px solid var(--line); display: grid; place-items: center; }
.feat-strip img { width: 84%; height: 84%; object-fit: contain; }

.list-h { margin-top: 22px; }
.packsq.packs-auto { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.upload-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; border-radius: 24px; border: 2.5px dashed #CFC8E6; color: var(--ink); text-decoration: none; min-height: 260px; }
.upload-card:hover { border-color: var(--ink); background: #fff; }
.uc-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--sun); transform: rotate(-6deg); box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--ink); margin-bottom: 6px; }
.uc-ic .ic { width: 28px; height: 28px; stroke-width: 2.6; }
.upload-card b { font: 400 22px/1.2 var(--display); }
.upload-card small { font-size: 13.5px; color: var(--ink-2); }
.uc-l { font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--sun); }
.board-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.board-tiles .tile-play { width: 40px; height: 40px; }

@media (max-width: 980px) {
  .cat-cluster { display: none; }
  .cat-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cat-hero { margin-top: 16px; padding: 22px 20px 24px; border-radius: 28px; gap: 14px; }
  .cat-hero p { font-size: 15px; }
  .cat-stats .cat-apps { display: none; }
  .cat-cta { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-cta .btn { padding: 0 10px; min-height: 48px; font-size: 14px; }
  .cat-tabs { display: flex; gap: 8px; overflow-x: auto; margin: 14px -16px 10px; padding: 2px 16px 8px; scrollbar-width: none; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .ct { flex: none; padding: 8px 12px 8px 10px; border-radius: 16px; gap: 8px; }
  .ct-ic { width: 34px; height: 34px; border-radius: 11px; }
  .ct-ic .ic { width: 18px; height: 18px; }
  .ct-t b { font-size: 17px; }
  .cat-tools { border: 0; background: none; padding: 0; }
  .cat-search { flex-basis: 100%; background: var(--paper); border: 2px solid var(--line); }
  .cat-toggles { width: 100%; justify-content: space-between; }
  .feat { padding: 16px; gap: 14px; border-radius: 24px; }
  .feat-cover { width: 96px; height: 96px; border-radius: 22px; }
  .feat-body { flex-basis: 100%; }
  .feat h2 { font-size: 26px; }
  .feat-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .feat-strip span:nth-child(n+5) { display: none; }
  .feat .btn { width: 100%; }
  .upload-card { grid-column: 1 / -1; min-height: 0; }
  .board-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .board-tiles .tile-play { width: 30px; height: 30px; }
}
@media (max-width: 560px) {
  .packsq.packs-auto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- help page v2 */
.help-page main { max-width: 1240px; }
.app-b { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--ink); }
.app-b .ic { width: 22px; height: 22px; }
.a-wa { background: #25D366; } .a-tg { background: #2AABEE; } .a-ios { background: #111827; } .a-sound { background: var(--blue); } .a-other { background: #5865F2; }
.help-hero { margin-top: 26px; border-radius: 34px; background: var(--ink); color: #fff; padding: 34px 40px 30px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 20px 44px -24px rgba(36,18,79,.6); }
.help-hero-copy { max-width: 760px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.help-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--sun); color: var(--ink); font-size: 13px; font-weight: 700; }
.help-chip .ic { width: 16px; height: 16px; }
.help-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.help-hero p { margin: 0; color: #D6D0EC; font-size: 17px; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.flow li { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 22px; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.14); }
.flow-vis { min-height: 72px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; border-radius: 16px; background: var(--bg); color: var(--ink); }
.flow-vis > span:not(.app-b):not(.flow-bar) { position: relative; width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; border: 2px solid transparent; }
.flow-vis > span.on { border-color: var(--ink); }
.flow-vis > span.on::after { content: ""; position: absolute; top: -7px; inset-inline-start: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); }
.flow-vis img { width: 80%; height: 80%; object-fit: contain; }
.flow-bar { display: flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px; font-size: 12.5px; }
.flow-bar > span { padding: 0 6px; } .flow-bar b { font: 400 17px/1 var(--display); color: var(--sun); }
.flow-bar i { font-style: normal; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 700; }
.flow-bar .ic { width: 14px; height: 14px; }
.flow-vis .app-b { width: 40px; height: 40px; border-radius: 13px; }
.flow-t { display: flex; gap: 10px; align-items: flex-start; }
.flow-n { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--sun); color: var(--ink); font: 400 18px/1 var(--display); padding-top: 3px; }
.flow-t b { display: block; font-size: 15px; } .flow-t small { display: block; font-size: 13px; color: #D6D0EC; }

.help-pick { margin: 28px 0 0; }
.help-pick h2 { font-size: 28px; margin-bottom: 14px; }
.apps-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.apps-pick a { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 22px; background: var(--paper); border: 2px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .12s; }
.apps-pick a:hover { border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); transform: translateY(-2px); }
.apps-pick b { display: block; font: 400 22px/1.2 var(--display); } .apps-pick small { font-size: 13px; color: var(--ink-3); }

.help-layout { display: flex; gap: 24px; align-items: flex-start; margin-top: 26px; }
.help-side { flex: 0 0 250px; position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; }
.help-toc { background: var(--paper); border: 2px solid var(--line); border-radius: 22px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.help-toc > span { font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding: 4px 10px 6px; }
.help-toc a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; text-decoration: none; font-weight: 500; font-size: 15px; }
.help-toc a:hover { background: var(--bg); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.help-toc .dot.a-wa { background: #25D366; } .help-toc .dot.a-tg { background: #2AABEE; } .help-toc .dot.a-ios { background: #111827; } .help-toc .dot.a-sound { background: var(--blue); } .help-toc .dot.a-other { background: #5865F2; }
.help-tip { background: var(--ink); color: #fff; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.help-tip span { color: #D6D0EC; line-height: 1.6; }
.help-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.gcard { background: var(--paper); border: 2px solid var(--line); border-radius: 30px; padding: 26px 28px; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 90px; }
.gcard hr { border: 0; border-top: 1.5px dashed var(--line); margin: 0; }
.g-head { display: flex; align-items: center; gap: 14px; }
.g-head .app-b { width: 54px; height: 54px; border-radius: 17px; }
.g-head .app-b .ic { width: 27px; height: 27px; }
.g-head h2 { font-size: 34px; } .g-head small { font-size: 13.5px; color: var(--ink-3); }
.g-sub { font: 700 17px/1.4 var(--font); }
.method { display: flex; flex-direction: column; gap: 12px; }
.method-h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.method-h h3 { font: 700 17px/1.4 var(--font); }
.mtag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #E9E5F5; }
.mtag .ic { width: 14px; height: 14px; stroke-width: 2.4; }
.mt-fast { background: #D9F7E6; } .mt-tg { background: #D6F0FC; }
.msteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; counter-reset: st; }
.msteps li { counter-increment: st; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: var(--bg); font-size: 15px; line-height: 1.75; }
.msteps li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--ink); font: 400 17px/1 var(--display); padding-top: 3px; box-sizing: border-box; }
.kb { display: inline-block; padding: 0 8px; border-radius: 8px; background: #FFF4D1; border: 1.5px solid #F2D27A; font-weight: 700; white-space: nowrap; }
.callout { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.7; color: var(--ink-2); background: #FFF6D6; border-radius: 16px; padding: 12px 14px; }
.callout .ic { width: 19px; height: 19px; color: var(--sun-d); flex: none; margin-top: 2px; }
.opt2 { display: flex; flex-wrap: wrap; gap: 12px; }
.opt2 > div { flex: 1 1 260px; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--bg); font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.opt2 b { display: block; font-size: 15.5px; color: var(--ink); }
.opt2-ic { width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; background: var(--blue); color: #fff; }
.opt2-ic .ic { width: 21px; height: 21px; }

.faq { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; margin: 34px 0 0; scroll-margin-top: 90px; }
.faq-intro { flex: 1 1 300px; max-width: 360px; border-radius: 30px; background: var(--ink); color: #fff; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.faq-stickers { display: flex; margin-bottom: 6px; }
.faq-stickers img { width: 90px; height: 90px; object-fit: contain; background: #fff; border-radius: 24px; padding: 7px; box-shadow: 0 0 0 3px #fff, 0 12px 22px -10px rgba(0,0,0,.5); transform: rotate(-8deg); }
.faq-stickers img + img { width: 70px; height: 70px; margin-inline-start: -12px; margin-top: 20px; transform: rotate(9deg); border-radius: 18px; }
.faq-intro h2 { font-size: 38px; } .faq-intro p { margin: 0; color: #D6D0EC; }
.faq-list { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--paper); border: 2px solid var(--line); border-radius: 22px; padding: 14px 18px; transition: border-color .15s, box-shadow .15s; }
.faq details[open] { border: 2.5px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.faq summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-n { font: 400 26px/1 var(--display); color: var(--ink-3); width: 30px; text-align: center; flex: none; }
.faq details[open] .faq-n { color: var(--ink); }
.faq summary .app-b { width: 38px; height: 38px; border-radius: 12px; } .faq summary .app-b .ic { width: 19px; height: 19px; }
.faq summary b { flex: 1; font-size: 16.5px; line-height: 1.5; }
.faq-x { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg); transition: transform .2s, background .15s; }
.faq-x .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.faq details[open] .faq-x { background: var(--sun); border: 2px solid var(--ink); transform: rotate(45deg); }
.faq-a { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; padding-top: 14px; border-top: 1.5px dashed var(--line); }
.faq-av { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px 11px 11px 3px; background: var(--sun); font: 400 21px/1 var(--display); padding-top: 3px; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); transform: rotate(-6deg); }
.faq-a p { margin: 0; flex: 1; font-size: 15.5px; line-height: 1.8; background: var(--bg); border-radius: 18px 18px 18px 4px; padding: 12px 16px; }
.help-cta { margin: 34px 0 40px; border-radius: 28px; background: var(--sun); padding: 28px 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; box-shadow: 0 0 0 4px #fff, 0 16px 30px -18px rgba(36,18,79,.4); }
.help-cta h2 { font-size: 32px; } .help-cta p { margin: 2px 0 0; }
.help-cta-b { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 980px) {
  .help-side { display: none; }
  .apps-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .help-hero { margin-top: 16px; padding: 22px 16px 16px; border-radius: 28px; }
  .help-hero p { font-size: 15px; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .flow li { flex-direction: row; align-items: center; padding: 12px; }
  .flow-vis { flex: 0 0 116px; min-height: 58px; padding: 6px 4px; gap: 3px; }
  .flow-vis > span:not(.app-b):not(.flow-bar) { width: 34px; height: 34px; border-radius: 10px; }
  .flow-vis > span.on::after { width: 13px; height: 13px; top: -5px; inset-inline-start: -5px; }
  .flow-vis .app-b { width: 30px; height: 30px; border-radius: 10px; } .flow-vis .app-b .ic { width: 16px; height: 16px; }
  .flow-bar { font-size: 11px; padding: 4px; } .flow-bar > span { display: none; } .flow-bar i { padding: 5px 8px; white-space: nowrap; }
  .flow-t { flex: 1; min-width: 0; } .flow-t b { font-size: 14px; } .flow-t small { font-size: 12px; }
  .help-pick h2 { font-size: 24px; }
  .apps-pick { display: flex; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
  .apps-pick::-webkit-scrollbar { display: none; }
  .apps-pick a { flex: none; flex-direction: row; align-items: center; padding: 8px 14px 8px 8px; border-radius: 16px; gap: 8px; }
  .apps-pick .app-b { width: 34px; height: 34px; border-radius: 11px; }
  .apps-pick small { display: none; } .apps-pick b { font: 700 14px/1.3 var(--font); }
  .gcard { padding: 18px 16px; border-radius: 24px; }
  .g-head .app-b { width: 44px; height: 44px; } .g-head h2 { font-size: 28px; }
  .msteps { grid-template-columns: minmax(0, 1fr); }
  .kb { white-space: normal; }
  .msteps li { flex-direction: row; align-items: flex-start; padding: 12px; font-size: 14.5px; background: transparent; padding-inline: 0; }
  .msteps li::before { flex: none; }
  .faq-intro { max-width: none; padding: 22px 20px; border-radius: 26px; }
  .faq-intro h2 { font-size: 30px; }
  .faq-stickers img { width: 74px; height: 74px; } .faq-stickers img + img { width: 58px; height: 58px; }
  .faq details { padding: 14px; }
  .faq-n { font-size: 22px; width: 24px; }
  .faq summary .app-b { width: 32px; height: 32px; }
  .faq summary b { font-size: 15px; }
  .faq-a p { font-size: 14.5px; }
  .help-cta { padding: 22px 18px; }
  .help-cta-b { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .help-cta-b .btn { padding: 0 10px; font-size: 14px; }
}

/* ---- report: button next to share + sheet */
.btn-report { background: #FFE9EC; border-color: #C42840; box-shadow: 0 4px 0 #C42840; color: #A31D33; }
.btn-report:hover { background: #FFD9DF; box-shadow: 0 5px 0 #C42840; }
.btn-report:active { box-shadow: 0 1px 0 #C42840; }
.btn-report .ic { width: 19px; height: 19px; }
.rep { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.rep-h { display: flex; align-items: flex-start; gap: 12px; padding-inline-end: 40px; }
.rep-ic { width: 46px; height: 46px; flex: none; border-radius: 15px; display: grid; place-items: center; background: #FFE3E7; color: #C42840; }
.rep-ic .ic { width: 22px; height: 22px; }
.rep-h h2 { margin: 0; padding: 0; }
.rep-h .sub { margin: 2px 0 0; }
.rep-list { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rep-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; }
.rep-opt:hover { border-color: #CFC8E6; }
.rep-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rep-dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2.5px solid #CFC8E6; display: grid; place-items: center; }
.rep-opt b { display: block; font-size: 15px; }
.rep-opt small { display: block; font-size: 12.5px; color: var(--ink-3); }
.rep-opt:has(input:checked) { border-color: #C42840; background: #FFF4F6; }
.rep-opt input:checked + .rep-dot { border-color: #C42840; }
.rep-opt input:checked + .rep-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #C42840; }
.rep-opt input:focus-visible + .rep-dot { outline: 3px solid var(--blue); outline-offset: 2px; }
.rep-more { margin-top: 0; }
.rep-acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.rep-send { background: #C42840; border-color: #C42840; color: #fff; box-shadow: 0 4px 0 #8E1C2E; }
.rep-send:hover { box-shadow: 0 5px 0 #8E1C2E; }
.rep-send[disabled] { opacity: .4; }
.rep-done { align-items: center; text-align: center; padding: 18px 6px 6px; }
.rep-ok { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #fff; box-shadow: 0 0 0 6px #E3F7EC; }
.rep-ok .ic { width: 34px; height: 34px; stroke-width: 3; }
.rep-done h2 { padding: 0; }
.rep-done .sub { max-width: 30em; margin: 0 0 6px; }
.rep-done .btn { width: 100%; }
@media (max-width: 760px) {
  .pack-h-cta { grid-template-columns: 1fr 1fr; }
  /* the report button sits beside "share" on the second row */
}

/* ---- mobile tab bar: big centre button, no label */
@media (max-width: 859px) {
  .tabbar a.tab-make { justify-content: center; }
  .tabbar a.tab-make .tab-ic, .tabbar a.tab-make.on .tab-ic { width: 58px; height: 58px; margin-top: -26px; border-radius: 20px; background: var(--sun); color: var(--ink); border: 2.5px solid var(--ink); box-shadow: 0 0 0 5px #fff, 0 5px 0 5px #fff, 0 4px 0 2.5px var(--ink), 0 12px 22px -6px rgba(36,18,79,.45); transition: transform .15s; }
  .tabbar a.tab-make .tab-ic .ic { width: 30px; height: 30px; stroke-width: 2.8; }
  .tabbar a.tab-make:active .tab-ic { transform: translateY(2px); }
}

/* ---- admin dashboard v2 */
.doc.admin { max-width: 1320px; }
.adm { display: flex; gap: 24px; align-items: flex-start; }
.adm-side { flex: 0 0 240px; position: sticky; top: 90px; border-radius: 28px; background: var(--ink); color: #fff; padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; min-height: 420px; }
.adm-side-h { display: flex; align-items: center; gap: 8px; padding: 4px 12px 14px; font-size: 13px; color: #B9B1D9; }
.adm-side-h .ic { width: 17px; height: 17px; }
.adm-side nav { display: flex; flex-direction: column; gap: 4px; }
.adm-side nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; text-decoration: none; font-size: 15px; font-weight: 500; color: #D6D0EC; }
.adm-side nav a:hover { background: rgba(255,255,255,.08); }
.adm-side nav a.on { background: var(--sun); color: var(--ink); font-weight: 700; }
.adm-side nav .ic { width: 19px; height: 19px; }
.adm-badge { margin-inline-start: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font: 700 12px/1 var(--font); font-style: normal; background: rgba(255,255,255,.15); color: #fff; }
.adm-badge.bad { background: var(--bad); }
.adm-out { margin-top: auto; padding-top: 12px; }
.adm-out button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,.16); background: none; color: #D6D0EC; font-size: 14.5px; }
.adm-out button:hover { background: rgba(255,255,255,.08); }
.adm-out .ic { width: 19px; height: 19px; }
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.adm-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.adm-h h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.adm-h p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.adm-site { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); text-decoration: none; font-weight: 700; font-size: 14px; }
.adm-site .ic { width: 18px; height: 18px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 16px; border-radius: 22px; background: var(--paper); border: 2px solid var(--line); text-decoration: none; color: var(--ink); }
.kpi::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: var(--k); }
.k-sun { --k: var(--sun); } .k-pink { --k: var(--pink); } .k-blue { --k: var(--blue); } .k-red { --k: var(--bad); }
.kpi span { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.kpi span .ic { width: 18px; height: 18px; }
.kpi b { font: 400 40px/1.05 var(--display); }
.kpi small { font-size: 12.5px; color: var(--ink-3); }
a.kpi:hover { border-color: var(--ink); }
.review { border-radius: 26px; background: #FFF1F3; border: 2px solid #F5C2CA; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.review-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review-h h2 { display: flex; align-items: center; gap: 10px; font-size: 28px; }
.review-h h2 span { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--bad); color: #fff; }
.review-h h2 .ic { width: 19px; height: 19px; }
.review-h i { font-style: normal; padding: 3px 12px; border-radius: 999px; background: #fff; color: #C42840; font-weight: 700; font-size: 13px; }
.review-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--paper); }
.review-row > img, .ac-pack img { width: 64px; height: 64px; flex: none; object-fit: contain; border-radius: 16px; padding: 5px; background: #FFF4D1; }
img.t-animated { background: #FFE2EF; } img.t-sound { background: #E0EBFF; }
.review-info { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.review-info a { text-decoration: none; } .review-info b { font-size: 16px; }
.review-info small { font-size: 13px; color: var(--ink-3); }
.review-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: #ECE9F5; color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.pill-ok { background: #E3F7EC; color: #116B42; } .pill-bad { background: #FFE3E7; color: #C42840; } .pill-star { background: #FFF4D1; color: var(--ink); }
.adm-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ac-acts .adm-acts { flex-wrap: nowrap; }
.abtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.abtn:hover { border-color: var(--ink); }
.abtn .ic { width: 16px; height: 16px; }
.abtn-ok { background: var(--ink); border-color: var(--ink); color: #fff; }
.abtn-bad { color: #C42840; border-color: #F5C2CA; }
.abtn-bad:hover { background: #FFE3E7; border-color: #C42840; }
.adm-packs h2 { font-size: 28px; margin-bottom: 12px; }
.adm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.adm-tabs { display: flex; padding: 4px; border-radius: 14px; background: rgba(36,18,79,.07); overflow-x: auto; scrollbar-width: none; }
.adm-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.adm-tabs a i { font-style: normal; font-weight: 500; font-size: 12px; opacity: .7; }
.adm-tabs a.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(36,18,79,.18); }
.adm-search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--paper); border: 2px solid var(--line); color: var(--ink-3); }
.adm-search:focus-within { border-color: var(--ink); }
.adm-search .ic { width: 18px; height: 18px; }
.adm-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 15px; min-height: 0; padding: 0; color: var(--ink); }
.atable { border-radius: 22px; background: var(--paper); border: 2px solid var(--line); overflow: hidden; }
.arow2 { display: grid; grid-template-columns: minmax(180px, 2fr) 84px 56px 56px minmax(100px, 1fr) auto; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1.5px solid var(--line); }
.arow2.ahead { border-top: 0; background: #FBFAFE; font-size: 12.5px; font-weight: 700; color: var(--ink-3); padding-block: 12px; }
.arow2.is-off { background: #FBFAFE; }
.arow2.is-off .ac-pack img { opacity: .5; }
.ac-pack { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ac-pack img { width: 48px; height: 48px; border-radius: 13px; padding: 4px; }
.ac-pack > span { display: flex; flex-direction: column; min-width: 0; }
.ac-pack a { font-weight: 700; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-pack small, .ac-date { font-size: 12.5px; color: var(--ink-3); }
.ac-n small { display: none; }
.ac-st { display: flex; flex-wrap: wrap; gap: 4px; }
.adm-empty { margin: 0; padding: 24px; text-align: center; color: var(--ink-3); }
.adm-set { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 22px; background: var(--paper); border: 2px solid var(--line); scroll-margin-top: 90px; }
.adm-set-ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: #2AABEE; color: #fff; }
.adm-set-ic .ic { width: 22px; height: 22px; }
.adm-set > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-set small { font-size: 13px; color: var(--ink-3); }
@media (max-width: 1180px) {
  .ac-acts .abtn { padding: 0 9px; }
}
@media (max-width: 980px) {
  .adm { flex-direction: column; align-items: stretch; }
  .adm-side { position: static; min-height: 0; flex: none; padding: 8px; border-radius: 20px; flex-direction: row; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .adm-side-h { display: none; }
  .adm-side nav { flex-direction: row; gap: 4px; }
  .adm-side nav a { flex: none; padding: 8px 12px; font-size: 14px; }
  .adm-out { margin: 0; padding: 0; flex: none; }
  .adm-out button { padding: 8px 12px; border: 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ahead { display: none !important; }
  .atable { background: none; border: 0; border-radius: 0; display: flex; flex-direction: column; gap: 10px; overflow: visible; }
  .arow2 { grid-template-columns: auto auto auto 1fr; grid-template-areas: "pack pack pack pack" "type n1 n2 st" "acts acts acts acts"; gap: 8px 10px; padding: 12px; border: 2px solid var(--line); border-radius: 20px; background: var(--paper); }
  .ac-pack { grid-area: pack; } .ac-st { justify-content: flex-end; } .ac-type { grid-area: type; } .ac-n:nth-child(3) { grid-area: n1; } .ac-n:nth-child(4) { grid-area: n2; } .ac-st { grid-area: st; } .ac-acts { grid-area: acts; padding-top: 10px; border-top: 1.5px dashed var(--line); }
  .ac-n { font-size: 13px; color: var(--ink-2); } .ac-n small { display: inline; }
  .ac-acts .adm-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ac-acts .abtn { padding: 0 6px; }
  .ac-pack img { width: 54px; height: 54px; }
}
@media (max-width: 560px) {
  .kpis { gap: 10px; }
  .kpi { padding: 14px; }
  .kpi b { font-size: 32px; }
  .review { padding: 16px; }
  .review-h h2 { font-size: 23px; }
  .review-row .adm-acts { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-row .abtn-ok { grid-column: 1 / -1; }
  .abtn { padding: 0 6px; font-size: 13px; }
  .adm-set { flex-wrap: wrap; }
}

/* ---- my packs v2 */
.mine-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 32px 0 22px; }
.mine-h h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.mine-stats { display: flex; gap: 10px; }
.mine-stats span { display: flex; flex-direction: column; padding: 10px 18px; border-radius: 18px; background: var(--paper); border: 2px solid var(--line); min-width: 84px; }
.mine-stats b { font: 400 30px/1 var(--display); }
.mine-stats small { font-size: 13px; color: var(--ink-3); }
.mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.mine-grid:empty { display: none; }
.minec { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border-radius: 24px; border: 2px solid var(--line); overflow: hidden; }
.minec .packq-art { display: block; text-decoration: none; }
.minec-st { position: absolute; top: 10px; inset-inline-end: 10px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #ECE9F5; color: var(--ink-2); }
.minec-st.on { background: #E3F7EC; color: #116B42; }
.minec-meta { padding: 12px 14px 0; }
.minec-meta h3 { font: 700 16px/1.4 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.minec-meta h3 a { text-decoration: none; }
.minec-meta p { margin: 0; font-size: 13px; color: var(--ink-3); }
.minec-acts { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; padding: 12px 14px 14px; }
.minec-acts .abtn { text-decoration: none; padding: 0 10px; }
.mine-page .upload-card { min-height: 300px; }
.mine-empty { max-width: 520px; margin: 10px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px; border-radius: 30px; border: 2.5px dashed #CFC8E6; }
.mine-empty .uc-ic { margin-bottom: 10px; }
.mine-empty h2 { font-size: 28px; }
.mine-empty p { margin: 0 0 10px; color: var(--ink-2); }
.keycard { margin: 30px 0 10px; border-radius: 30px; background: var(--ink); color: #fff; padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.keycard-txt { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.keycard-ic { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; background: var(--sun); color: var(--ink); transform: rotate(-6deg); }
.keycard-ic .ic { width: 27px; height: 27px; }
.keycard h2 { font-size: 32px; }
.keycard-txt p { margin: 0; font-size: 14.5px; line-height: 1.7; color: #D6D0EC; }
.keycard-warn { display: flex; gap: 8px; align-items: flex-start; color: var(--sun) !important; font-size: 13.5px !important; }
.keycard-warn .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.keycard-box { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.14); border-radius: 22px; padding: 16px; }
.keytabs { display: flex; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.08); }
.keytabs button { flex: 1; padding: 8px 6px; border-radius: 9px; border: 0; background: none; color: #D6D0EC; font-weight: 700; font-size: 14px; }
.keytabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.keypane { display: flex; flex-direction: column; gap: 10px; }
.keylabel { font-size: 13px; color: #D6D0EC; }
.keyfield { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 6px 0 14px; border-radius: 14px; background: #fff; direction: ltr; }
.keyfield input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: none; font: 500 14px ui-monospace, Consolas, monospace; color: var(--ink); min-height: 0 !important; padding: 0 !important; }
.keyeye { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 0; background: var(--bg); color: var(--ink); display: grid; place-items: center; padding: 0; }
.keyeye .ic { width: 19px; height: 19px; }
.keybtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.keybtns .btn:only-child { grid-column: 1 / -1; }
.keybtns .btn-sun { border-color: var(--sun); box-shadow: 0 4px 0 var(--sun-d); }
.keyghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); box-shadow: none; }
.keyghost:hover { background: rgba(255,255,255,.08); box-shadow: none; }
.keynote { margin: 0; font-size: 12.5px; color: #B9B1D9; }
@media (max-width: 760px) {
  .mine-h { padding: 22px 0 16px; }
  .mine-stats { width: 100%; } .mine-stats span { flex: 1; align-items: center; min-width: 0; padding: 10px; }
  .mine-stats b { font-size: 24px; }
  .keycard { padding: 20px 16px; border-radius: 26px; gap: 16px; }
  .keycard h2 { font-size: 26px; }
  .mine-page .upload-card { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 560px) {
  .mine-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .minec { border-radius: 20px; }
  .minec .packq-art { padding: 34px 10px 10px; }
  .minec-meta { padding: 10px 10px 0; } .minec-meta h3 { font-size: 14.5px; } .minec-meta p { font-size: 12px; }
  .minec-acts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 5px; padding: 10px; }
  .minec-acts .abtn { min-width: 0; min-height: 38px; padding: 0 2px; }
  .minec-acts .abtn:not(.abtn-bad) .ic { display: none; }
  .minec-acts .abtn { padding: 0 4px; font-size: 12.5px; }
  .keybtns { grid-template-columns: minmax(0, 1fr); }
}

.keyfield input.masked { -webkit-text-security: disc; text-security: disc; letter-spacing: .08em; }

/* ---------------------------------------------------------------- iPhone Safari fix
   Safari collapses grid/flex items whose height comes only from aspect-ratio (no in-flow content),
   so sticker tiles became 0px tall. A spacer as tall as the width works on every browser. */
.tiles, .tray, .packs { align-items: start; }
.tile, .draft { aspect-ratio: auto; }
.tile::before, .draft::before { content: ""; display: block; padding-top: 100%; }
.draft img { position: absolute; inset: 0; }
.pack-art { aspect-ratio: auto; }
.pack-art::before { content: ""; display: block; padding-top: 87%; grid-area: 1 / 1; }
.pack-art > .pack-cover { grid-area: 1 / 1; position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: auto; }
.packq-grid, .wiz-card-art, .feat-strip { align-items: start; }
.packq-grid span, .wiz-card-art span, .feat-strip span { aspect-ratio: auto; }
.packq-grid span::before, .wiz-card-art span::before, .feat-strip span::before { content: ""; padding-top: 100%; grid-area: 1 / 1; }
.packq-grid span > *, .wiz-card-art span > *, .feat-strip span > * { grid-area: 1 / 1; }
/* long-press → Copy on the big sticker copies the ORIGINAL file (keeps animation), unlike the copy button (PNG only) */
.preview-img { -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; -webkit-user-drag: auto; pointer-events: auto; }
.copy-hint { display: flex; gap: 8px; align-items: flex-start; justify-content: center; margin: -4px auto 12px; max-width: 320px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); background: #FFF6D6; border-radius: 12px; padding: 8px 12px; text-align: start; }
.copy-hint .ic { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.copy-hint-mute { background: rgba(36,18,79,.06); }

/* ---------------------------------------------------------------- copy / send to WhatsApp */
.copy-hint.ok { background: #E4F8EC; color: #14532D; }
.copy-hint small { display: block; margin-top: 4px; font-size: 12.5px; opacity: .85; }
.copy-hint { display: block; text-align: center; }
.mini-spin { display: inline-block; width: 14px; height: 14px; margin-inline-end: 6px; vertical-align: -2px; border-radius: 50%; border: 2.5px solid rgba(36,18,79,.2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.btn-wa { background: #25D366; color: #06331A; }
.btn-wa svg { flex: none; }
.opt.busy, .btn.busy { opacity: .7; pointer-events: none; }
.opt.busy small::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-inline-end: 5px; vertical-align: -1px; border-radius: 50%; border: 2px solid rgba(36,18,79,.2); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.opt.ready { border-color: #25D366; background: #E4F8EC; }

/* ---------------------------------------------------------------- lab (test bench) */
.lab h2 { font-size: 24px; margin: 26px 0 10px; }
.lab-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.lab-cell { margin: 0; background: var(--paper); border: 2px solid var(--line); border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.lab-cell figcaption { font-size: 14px; }
.lab-cell figcaption b, .lab-btns > b { background: var(--sun); border-radius: 8px; padding: 0 7px; }
.lab-cell img { width: 100%; max-width: 190px; height: auto; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; background: conic-gradient(#F1EEF9 25%, #fff 0 50%, #F1EEF9 0 75%, #fff 0) 0 0 / 18px 18px; border-radius: 14px; }
.lab-cell small { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.lab-btns { justify-content: center; }
.lab-btns .btn { width: 100%; opacity: .55; }
.lab-btns .btn.lab-ready { opacity: 1; }

/* ---------- sound-sticker kit: step 1 is a button, the list carries on from 2 ---------- */
.kit-step { border-color: var(--ink); background: #FFF6D6; box-shadow: 0 4px 0 var(--ink); }
.kit-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; padding-top: 2px; background: var(--sun); border: 2px solid var(--ink); font: 400 17px/1 var(--display); }
.kit-steps { margin-top: 14px; }
.kit-steps li { margin-bottom: 8px; }
.kit-more p { font-size: 14px; color: var(--ink-2); margin: 8px 0; }

/* ---------- bulk import from WhatsApp Web: review everything, publish in one go ---------- */
#studio.bulk-on .wiz-steps, #studio.bulk-on #packForm, #studio.bulk-on .bring { display: none; }
.bulk { margin-top: 20px; background: var(--paper); border: 2px solid var(--line); border-radius: 30px; padding: 26px 28px; }
.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; min-height: 40px; }
.bulk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-grid { min-height: 150px; max-height: min(62vh, 660px); overflow: auto; padding: 10px 6px 6px; margin: 0 -6px; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
.bulk-t { cursor: pointer; opacity: .36; transition: opacity .12s, border-color .12s; overflow: hidden; }
.bulk-t[hidden] { display: none; }
.bulk-t.on, .bulk-t.busy, .bulk-t.done, .bulk-t.err { opacity: 1; }
.bulk-t.on { border-color: var(--ink); }
.bulk-t:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.bulk-t::before { content: ""; display: block; padding-top: 100%; }   /* a square on Safari too */
.bulk-t img { position: absolute; inset: 0; }
.bulk-ck { position: absolute; top: 6px; inset-inline-end: 6px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.bulk-t.on .bulk-ck { background: var(--sun); }
.bulk-t.on .bulk-ck::after { content: ""; position: absolute; left: 5px; top: 5px; width: 9px; height: 5px; border: solid var(--ink); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.bulk-t.done .bulk-ck { background: var(--good); border-color: var(--good); }
.bulk-play { position: absolute; top: 6px; inset-inline-start: 6px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); background: var(--blue); color: #fff; font-size: 11px; line-height: 1; display: grid; place-items: center; padding: 0 0 0 2px; }
.bulk-who { position: absolute; bottom: 6px; inset-inline-end: 6px; max-width: 56%; font-size: 10.5px; font-weight: 700; line-height: 1.5; padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.bulk-t.done { border-color: var(--good); }
.bulk-t.err { border-color: var(--bad); }
.bulk-final { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.bulk-check { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; cursor: pointer; font-weight: 700; font-size: 15px; }
.bulk-check input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--ink); }
.bulk-check small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.bulk-plan { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 230px; overflow: auto; }
.bulk-plan li { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.bulk-plan b { flex: 1; min-width: 0; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-plan small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.bulk-plan .bulk-none { justify-content: center; color: var(--ink-3); font-size: 14px; border-style: dashed; }
.bulk-legal { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.bulk .studio-actions { margin-top: 0; padding-top: 0; border-top: 0; flex-direction: column; }
.bulk .studio-actions .btn { width: 100%; }
.bulk.is-busy .bulk-grid, .bulk.is-busy .bulk-bar, .bulk.is-busy .fields { pointer-events: none; }
@media (max-width: 760px) {
  .bulk { padding: 18px 16px; border-radius: 24px; }
  .bulk-grid { max-height: none; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}

/* the sticker's twin opened as a document of its own, only so that "copy" can copy it (iPhone) */
.preview { position: relative; }
.copy-frame { position: absolute; inset-inline-start: 0; bottom: 0; width: 4px; height: 4px; border: 0; opacity: .01; pointer-events: none; }

/* stepping through a pack inside the preview (one sticker at a time) */
.pv-arrow { position: absolute; top: calc(6px + min(300px, 70vw) / 2 - 22px); z-index: 2; width: 44px; height: 44px; padding: 0 0 4px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: 700 26px/1 var(--font); display: grid; place-items: center; box-shadow: 0 3px 0 var(--ink); }
.pv-prev { inset-inline-start: 0; }
.pv-next { inset-inline-end: 0; }
.pv-arrow:disabled { opacity: .22; box-shadow: none; }
.pv-arrow:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.pv-count { margin: -8px 0 10px; font-size: 13px; color: var(--ink-3); }

/* "send to my own WhatsApp chat" picker */
.ws-pack { margin: 0; flex: 1; min-width: 220px; max-width: 460px; }
.ws-pack select { width: 100%; }
.ws-state { margin: 0 0 14px; }

/* ---------- v1.7: editing after publishing, crop in the maker, "already on the site" in the import ---------- */
#studio.edit-on .wiz-steps, #studio.edit-on #packForm, #studio.edit-on .bring, #studio.edit-on .bulk { display: none; }
.crop-tip { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
#cutTools .trim { margin-top: 0; }
.bulk-known { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; line-height: 1.5; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; white-space: nowrap; }
.pack-owner { align-items: center; margin: 0 0 16px; padding: 14px 16px; border: 2px dashed var(--line); border-radius: 20px; background: var(--paper); }
.pack-owner-tip { flex-basis: 100%; margin: 0; font-size: 14px; color: var(--ink-2); }
.pv-own { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pv-own > span { flex-basis: 100%; text-align: center; font-size: 13px; color: var(--ink-3); }
.pv-own .chipbtn { text-decoration: none; }
.minec-acts { grid-template-columns: 1fr 1fr 1fr auto; }
@media (max-width: 640px) {
  .minec-acts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 36px; }
}

/* "the same sticker is stored more than once" card on my-packs */
.dupcard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px; margin: 0 0 18px; padding: 18px 20px; border: 2px solid var(--ink); border-radius: 24px; background: #FFF6D6; }
.dupcard h2 { font-size: 19px; margin: 0 0 4px; }
.dupcard p { margin: 0; font-size: 14.5px; }
.dupcard .dupcard-note { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.dupcard-txt { flex: 1 1 320px; min-width: 0; }
.dupcard-acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- v1.8: the WhatsApp bot (send to me, login by number, the keeper's page) ---------- */
.wa-go { width: 100%; justify-content: center; margin: 4px 0 14px; text-decoration: none; }
.wa-steps { margin: 0 0 10px; }
.wa-foot { margin: 6px 0 0 !important; font-size: 13px !important; }
.wa-wait { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; font-size: 14.5px; }
.pack-h-cta .btn-wa .ic { width: 20px; height: 20px; }
.wacard { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin: 26px 0 0; padding: 20px 22px; border: 2px solid var(--ink); border-radius: 26px; background: #E9FBEF; }
.wacard.in { background: var(--paper); }
.wacard-ic { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: #25D366; color: #fff; }
.wacard-ic .ic { width: 26px; height: 26px; }
.wacard-txt { flex: 1 1 300px; min-width: 0; }
.wacard-txt h2 { font-size: 20px; margin: 0 0 4px; }
.wacard-txt p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.wacard-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.keeper-link { margin: 12px 0 0; font-size: 14px; }
.keeper-link a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.keeper-link .ic { width: 18px; height: 18px; }
.botbox { max-width: 720px; }
.bot-state { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.bot-state small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-3); margin-top: 4px; }
.bot-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); margin-inline-end: 8px; }
.bot-dot.on { background: #25D366; } .bot-dot.wait { background: var(--sun); } .bot-dot.off { background: var(--bad); }
.bot-qr { margin: 16px 0; padding: 14px; background: #fff; border: 2px solid var(--ink); border-radius: 22px; width: min(100%, 320px); }
.bot-qr img { display: block; width: 100%; height: auto; }
.bot-cmd { direction: ltr; text-align: left; font: 600 13.5px/1.6 ui-monospace, Consolas, monospace; background: var(--bg); border-radius: 12px; padding: 8px 12px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .wacard { padding: 16px; border-radius: 22px; }
  .wacard-acts, .wacard-acts .btn { width: 100%; }
}
