/* Pixie Studio — dark pink / plum theme, Red Hat Display + Red Hat Text */
:root {
  --plum-950: #15030E;
  --plum-900: #22061A;
  --plum-800: #330A27;
  --plum-700: #4A0F38;
  --plum-600: #6B1452;
  --pink-700: #9D174D;
  --pink-600: #BE185D;
  --pink-500: #DB2777;
  --pink-400: #EC4899;
  --pink-300: #F472B6;
  --pink-200: #FBCFE8;
  --pink-100: #FCE7F3;
  --pink-50: #FDF2F8;

  --bg: #FAF5F8;
  --card: #FFFFFF;
  --line: #EFE1EA;
  --line-soft: #F6EDF2;
  --text: #2A0B1F;
  --text-2: #5B4352;
  --muted: #8A7382;

  --green: #0E9F55; --green-dark: #0A7D42; --green-pale: #E4F6EC;
  --red: #E0364B; --red-dark: #B9233A; --red-pale: #FDECEF;
  --amber: #D58A04; --amber-dark: #A86C00; --amber-pale: #FDF3DF;
  --blue: #2563EB; --blue-pale: #E8EFFE;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(42, 11, 31, .04), 0 8px 24px rgba(42, 11, 31, .06);
  --shadow-hover: 0 2px 4px rgba(42, 11, 31, .05), 0 18px 40px rgba(42, 11, 31, .10);
  --shadow-lg: 0 30px 60px rgba(21, 3, 14, .28);
  --font-display: 'Red Hat Display', system-ui, sans-serif;
  --font-text: 'Red Hat Text', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --sidebar-w: 252px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--font-text); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.1; letter-spacing: -.02em; }
h1 { font-weight: 900; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); letter-spacing: -.035em; }
h2 { font-weight: 800; font-size: 1.35rem; }
h3 { font-weight: 800; font-size: 1.05rem; }
p { margin: 0; }
a { color: var(--pink-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--pink-200); }
:focus-visible { outline: 2.5px solid var(--pink-400); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.eyebrow {
  font: 800 .72rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--pink-600);
}
.boot { min-height: 100vh; display: grid; place-items: center; background: var(--plum-900); }

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font: 800 1.2rem/1 var(--font-display); letter-spacing: -.03em; text-decoration: none !important; }
.logo small { display: block; font: 700 .62rem/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase; color: var(--pink-300); margin-top: 4px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--pink-600) url("/favicon.svg") center/cover;
  box-shadow: 0 6px 18px rgba(190, 24, 93, .45);
}
.logo-mark.lg { width: 56px; height: 56px; border-radius: 16px; animation: pulse 1.4s var(--ease) infinite; }
@keyframes pulse { 50% { transform: scale(.92); opacity: .7; } }

/* ---------- buttons ---------- */
.btn {
  --b: var(--card); --c: var(--text); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--b); color: var(--c); font: 700 .92rem/1 var(--font-display); letter-spacing: -.01em;
  white-space: nowrap; transition: transform .15s var(--ease), background .15s, box-shadow .15s, border-color .15s;
  text-decoration: none !important;
}
.btn:hover { border-color: var(--pink-300); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { --b: var(--pink-600); --c: #fff; --bd: var(--pink-600); box-shadow: 0 6px 18px rgba(190, 24, 93, .28); }
.btn-primary:hover { --b: var(--pink-700); --bd: var(--pink-700); }
.btn-dark { --b: var(--plum-900); --c: #fff; --bd: var(--plum-900); }
.btn-dark:hover { --b: var(--plum-700); --bd: var(--plum-700); }
.btn-ghost { --b: transparent; --bd: transparent; }
.btn-ghost:hover { --b: var(--pink-50); --bd: transparent; }
.btn-light { --b: rgba(255, 255, 255, .1); --c: #fff; --bd: rgba(255, 255, 255, .22); }
.btn-light:hover { --b: rgba(255, 255, 255, .18); --bd: rgba(255, 255, 255, .4); }
.btn-danger { --c: var(--red-dark); }
.btn-danger:hover { --b: var(--red-pale); --bd: var(--red-pale); }
.btn-green { --b: var(--green); --c: #fff; --bd: var(--green); }
.btn-sm { height: 34px; padding: 0 13px; font-size: .84rem; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.btn.loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font: 700 .8rem/1.2 var(--font-display); color: var(--text-2); letter-spacing: .01em; }
.input, .select, .textarea {
  width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 11px 13px; font: 500 .95rem/1.4 var(--font-text); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.textarea { resize: vertical; min-height: 96px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--pink-400); box-shadow: 0 0 0 4px rgba(236, 72, 153, .14); }
.select { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235B4352' stroke-width='2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right 14px center no-repeat; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form-error { color: var(--red-dark); background: var(--red-pale); border-radius: var(--radius); padding: 10px 14px; font-weight: 600; font-size: .9rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font: 700 .84rem/1 var(--font-display); color: var(--text-2);
  transition: all .15s var(--ease); user-select: none;
}
.chip:hover { border-color: var(--pink-300); }
.chip.on { background: var(--pink-600); border-color: var(--pink-600); color: #fff; }
.chip svg { width: 15px; height: 15px; }

.toggle-pl { display: flex; gap: 8px; }
.toggle-pl .chip.on.ig { background: linear-gradient(135deg, #F58529, #DD2A7B 55%, #8134AF); border-color: transparent; }
.toggle-pl .chip.on.fb { background: #1877F2; border-color: #1877F2; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 22px 16px;
  background: radial-gradient(120% 60% at 0% 0%, var(--plum-700) 0%, transparent 60%), var(--plum-900); color: #fff;
  overflow-y: auto;
}
.sidebar .logo { padding: 2px 8px; }
.biz-switch { position: relative; }
.biz-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: #fff; text-align: left;
  transition: background .15s;
}
.biz-btn:hover { background: rgba(255, 255, 255, .12); }
.biz-btn .meta { flex: 1; min-width: 0; }
.biz-btn strong { display: block; font: 800 .95rem/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-btn span { font-size: .75rem; color: var(--pink-200); opacity: .8; text-transform: capitalize; }
.biz-btn svg { width: 16px; height: 16px; opacity: .7; }
.biz-emoji {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; font-size: 1.15rem;
  background: var(--c, var(--pink-600));
}
.biz-menu {
  position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; right: 0; background: #fff; color: var(--text);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; max-height: 60vh; overflow: auto;
  animation: pop .18s var(--ease);
}
.biz-menu a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; color: var(--text); font-weight: 700; text-decoration: none; }
.biz-menu a:hover, .biz-menu a.on { background: var(--pink-50); }
.biz-menu .biz-emoji { width: 30px; height: 30px; font-size: .95rem; border-radius: 9px; }
.biz-menu .count { margin-left: auto; background: var(--pink-600); color: #fff; font: 800 .72rem/1 var(--font-display); padding: 4px 7px; border-radius: 99px; }
.biz-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: rgba(255, 255, 255, .72);
  font: 700 .93rem/1 var(--font-display); text-decoration: none; transition: background .15s, color .15s;
}
.nav a svg { width: 19px; height: 19px; }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a.on { background: var(--pink-600); color: #fff; box-shadow: 0 8px 20px rgba(190, 24, 93, .35); }
.nav .count { margin-left: auto; background: rgba(255, 255, 255, .16); color: #fff; font-size: .72rem; padding: 3px 7px; border-radius: 99px; }
.nav a.on .count { background: rgba(255, 255, 255, .25); }
.nav-label { font: 800 .66rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .38); padding: 10px 12px 6px; }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.sidebar-foot .who { flex: 1; min-width: 0; font-size: .82rem; line-height: 1.3; }
.sidebar-foot .who strong { display: block; font-family: var(--font-display); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .who span { color: rgba(255, 255, 255, .55); }
.sidebar-foot button { background: none; border: 0; color: rgba(255, 255, 255, .6); padding: 6px; border-radius: 8px; display: grid; }
.sidebar-foot button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.sidebar-foot svg { width: 18px; height: 18px; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff;
  font: 800 .8rem/1 var(--font-display); background: var(--c, var(--pink-600)); text-transform: uppercase;
}
.avatar.sm { width: 26px; height: 26px; font-size: .68rem; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.page { width: 100%; max-width: 1240px; margin: 0 auto; padding: 34px clamp(16px, 3vw, 40px) 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head .eyebrow { margin-bottom: 8px; }
.page-head p { color: var(--text-2); margin-top: 6px; }

.tabbar { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; padding: 10px 16px;
    background: var(--plum-900); color: #fff;
  }
  .topbar .biz-switch { flex: 1; min-width: 0; }
  .topbar .biz-btn { padding: 6px 10px; }
  .topbar .biz-emoji { width: 30px; height: 30px; font-size: .95rem; }
  .page { padding: 22px 16px calc(var(--tab-h) + 40px + var(--safe-b)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: #fff; border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font: 700 .68rem/1 var(--font-display); text-decoration: none; position: relative; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--pink-600); }
  .tabbar a.swipe-tab span.ic { width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; background: var(--pink-600); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(190, 24, 93, .4); }
  .tabbar .dot { position: absolute; top: 6px; right: calc(50% - 20px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--pink-600); color: #fff; font-size: .62rem; display: grid; place-items: center; }
  .tabbar a.swipe-tab .dot { top: -26px; right: calc(50% - 30px); background: var(--plum-900); }
}

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h3 { display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.split { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }

.empty { text-align: center; padding: 46px 20px; color: var(--text-2); }
.empty .art { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--pink-100); color: var(--pink-600); }
.empty .art svg { width: 30px; height: 30px; }
.empty h3 { font-size: 1.2rem; margin-bottom: 6px; color: var(--text); }
.empty .btn { margin-top: 18px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: clamp(26px, 4vw, 44px); color: #fff;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(236, 72, 153, .38) 0%, transparent 55%),
    radial-gradient(60% 90% at 0% 100%, rgba(107, 20, 82, .9) 0%, transparent 70%),
    var(--plum-900);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
}
.hero .eyebrow { color: var(--pink-300); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--pink-300); }
.hero p { color: rgba(255, 255, 255, .72); margin-top: 12px; max-width: 46ch; font-size: 1.02rem; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero-deck { position: relative; width: 190px; height: 230px; margin-right: 20px; }
.hero-deck div {
  position: absolute; inset: 0; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg);
  background-size: cover; background-position: center;
}
.hero-deck div:nth-child(1) { transform: rotate(-9deg) translate(-18px, 8px); opacity: .55; }
.hero-deck div:nth-child(2) { transform: rotate(5deg) translate(14px, 2px); opacity: .8; }
.hero-deck div:nth-child(3) { transform: rotate(-1deg); }
.hero-deck .tag { position: absolute; bottom: -12px; right: -14px; background: var(--green); color: #fff; font: 800 .8rem/1 var(--font-display); padding: 9px 14px; border-radius: 99px; transform: rotate(-6deg); box-shadow: 0 8px 18px rgba(14, 159, 85, .35); }
@media (max-width: 700px) { .hero { grid-template-columns: 1fr; } .hero-deck { display: none; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat { background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.stat .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--tint, var(--pink-100)); color: var(--ink, var(--pink-600)); margin-bottom: 14px; }
.stat .ic svg { width: 18px; height: 18px; }
.stat strong { display: block; font: 900 1.9rem/1 var(--font-display); letter-spacing: -.04em; }
.stat span { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* ---------- status badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px;
  font: 800 .7rem/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  background: var(--tint); color: var(--ink);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pending { --tint: var(--pink-100); --ink: var(--pink-700); }
.st-approved { --tint: var(--green-pale); --ink: var(--green-dark); }
.st-rejected { --tint: var(--red-pale); --ink: var(--red-dark); }
.st-changes { --tint: var(--amber-pale); --ink: var(--amber-dark); }
.st-scheduled { --tint: var(--blue-pale); --ink: var(--blue); }
.st-publishing { --tint: var(--blue-pale); --ink: var(--blue); }
.st-published { --tint: var(--plum-900); --ink: var(--pink-200); }
.st-failed { --tint: var(--red-pale); --ink: var(--red-dark); }

.pl-icons { display: inline-flex; gap: 4px; }
.pl-icons svg { width: 16px; height: 16px; }
.pl-ig { color: #DD2A7B; }
.pl-fb { color: #1877F2; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line-soft); }
.list-item:first-child { border-top: 0; }
.list-item .grow strong { display: block; font: 800 .95rem/1.25 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .grow span { font-size: .82rem; color: var(--muted); }
.thumb { width: 46px; height: 46px; border-radius: 10px; flex: none; background: var(--pink-100) center/cover no-repeat; display: grid; place-items: center; color: var(--pink-600); overflow: hidden; }
.thumb svg { width: 20px; height: 20px; }
.thumb video { width: 100%; height: 100%; object-fit: cover; }
a.list-item, button.list-item { color: inherit; text-decoration: none; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; font: inherit; border-radius: 0; }
a.list-item:hover, button.list-item:hover { background: var(--pink-50); }

/* ---------- wishlist ---------- */
.wish { padding: 16px; border-radius: 16px; background: var(--pink-50); border: 1px solid var(--pink-100); }
.wish + .wish { margin-top: 12px; }
.wish .chips { margin: 10px 0 0; }
.wish .chip { height: 28px; font-size: .78rem; background: #fff; pointer-events: none; }
.wish p { margin-top: 10px; color: var(--text-2); white-space: pre-wrap; }
.vibe { font-size: 1.1rem; }

/* ---------- studio board ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }
.filters .chip { flex: none; }
.filters .chip .n { background: var(--pink-100); color: var(--pink-700); border-radius: 99px; padding: 3px 7px; font-size: .7rem; }
.filters .chip.on .n { background: rgba(255, 255, 255, .22); color: #fff; }
.posts-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pcard {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  cursor: pointer; border: 0; padding: 0; text-align: left; transition: transform .2s var(--ease), box-shadow .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.pcard .media { aspect-ratio: 4 / 5; background: var(--pink-100) center/cover no-repeat; position: relative; display: grid; place-items: center; color: var(--pink-400); }
.pcard .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard .media .badge { position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.pcard .media .count { position: absolute; top: 10px; right: 10px; background: rgba(21, 3, 14, .7); color: #fff; font: 800 .7rem/1 var(--font-display); padding: 5px 8px; border-radius: 99px; display: flex; gap: 4px; align-items: center; }
.pcard .media .count svg { width: 12px; height: 12px; }
.pcard .media .textonly { padding: 20px; color: var(--text-2); font-size: .9rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.pcard .body strong { font: 800 .95rem/1.25 var(--font-display); }
.pcard .body .cap { font-size: .82rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .76rem; color: var(--muted); font-weight: 600; margin-top: 4px; }
.pcard .note { margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: var(--amber-pale); color: var(--amber-dark); font-size: .8rem; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .note.rej { background: var(--red-pale); color: var(--red-dark); }
.pcard .note.ok { background: var(--green-pale); color: var(--green-dark); }

/* ---------- modal & drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(21, 3, 14, .55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 26px; animation: rise .3s var(--ease);
}
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-head p { color: var(--text-2); margin-top: 4px; font-size: .92rem; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.overlay.drawer-wrap { justify-content: flex-end; padding: 0; }
.drawer {
  width: min(560px, 100%); height: 100%; background: var(--bg); overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: slide .35s var(--ease); display: flex; flex-direction: column;
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: rgba(250, 245, 248, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.drawer-body { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 640px) {
  .overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 24px 24px 0 0; max-height: 94vh; padding: 22px 18px calc(22px + var(--safe-b)); animation: up .3s var(--ease); }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
}

.media-viewer { position: relative; border-radius: 18px; overflow: hidden; background: var(--plum-900); }
.media-viewer .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.media-viewer .slides > * { flex: 0 0 100%; scroll-snap-align: start; max-height: 62vh; object-fit: contain; background: var(--plum-900); aspect-ratio: 4/5; width: 100%; }
.media-viewer .dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.media-viewer .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .5); }

.timeline { display: flex; flex-direction: column; gap: 14px; }
.tl { display: flex; gap: 10px; }
.tl .bubble { flex: 1; min-width: 0; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); }
.tl .bubble .who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.tl .bubble .who strong { color: var(--text); font-family: var(--font-display); }
.tl .bubble p { margin-top: 6px; white-space: pre-wrap; font-size: .92rem; }
.tl .bubble .chips { margin-top: 8px; gap: 6px; }
.tl .bubble .chip { height: 24px; font-size: .72rem; padding: 0 9px; pointer-events: none; }

.result-box { border-radius: 14px; padding: 12px 14px; font-size: .88rem; display: flex; gap: 10px; align-items: flex-start; }
.result-box.ok { background: var(--green-pale); color: var(--green-dark); }
.result-box.err { background: var(--red-pale); color: var(--red-dark); }
.result-box.info { background: var(--blue-pale); color: var(--blue); }
.result-box.warn { background: var(--amber-pale); color: var(--amber-dark); }
.result-box svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* ---------- upload ---------- */
.dropzone {
  border: 2px dashed var(--pink-200); border-radius: 20px; background: var(--pink-50); padding: 34px 20px; text-align: center;
  color: var(--text-2); cursor: pointer; transition: all .2s var(--ease);
}
.dropzone:hover, .dropzone.over { border-color: var(--pink-500); background: var(--pink-100); }
.dropzone .art { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 12px; background: var(--pink-600); color: #fff; }
.dropzone .art svg { width: 26px; height: 26px; }
.dropzone strong { display: block; font: 800 1.05rem/1.3 var(--font-display); color: var(--text); }
.draft { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.draft + .draft { margin-top: 12px; }
.draft .thumbs { display: grid; gap: 6px; grid-template-columns: 1fr 1fr; align-content: start; }
.draft .thumbs .thumb { width: 100%; height: auto; aspect-ratio: 1; position: relative; }
.draft .thumbs .thumb:first-child { grid-column: span 2; }
.draft .thumbs .thumb .rm { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(21, 3, 14, .7); color: #fff; display: grid; place-items: center; padding: 0; }
.draft .thumbs .thumb .rm svg { width: 12px; height: 12px; }
.progress { height: 6px; border-radius: 99px; background: var(--pink-100); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--pink-500); border-radius: 99px; transition: width .2s; }
@media (max-width: 560px) { .draft { grid-template-columns: 1fr; } .draft .thumbs { grid-template-columns: repeat(4, 1fr); } .draft .thumbs .thumb:first-child { grid-column: auto; } }

/* ---------- calendar ---------- */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .cal-wrap { grid-template-columns: 1fr; } }
.cal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-head h2 { font-size: clamp(1.25rem, 1rem + 2vw, 1.7rem); font-weight: 900; letter-spacing: -.035em; margin-right: auto; min-width: 0; }
@media (max-width: 760px) { .cal-head { flex-wrap: nowrap; } }
.cal-head h2 span { color: var(--muted); font-weight: 700; }
.cal { background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--plum-900); color: rgba(255, 255, 255, .7); }
.cal-dow div { padding: 10px 12px; font: 800 .7rem/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-day {
  min-height: 124px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 8px;
  display: flex; flex-direction: column; gap: 4px; min-width: 0; transition: background .15s; cursor: pointer;
}
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: #FCFAFB; }
.cal-day.out .num { color: #CDBFC8; }
.cal-day.past { background: repeating-linear-gradient(-45deg, #FCFAFB, #FCFAFB 6px, #F8F2F5 6px, #F8F2F5 12px); }
.cal-day.over { background: var(--pink-50); box-shadow: inset 0 0 0 2px var(--pink-400); }
.cal-day.sel { box-shadow: inset 0 0 0 2px var(--pink-600); }
.cal-day .num { font: 800 .85rem/1 var(--font-display); color: var(--text-2); display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.cal-day.today .num b { background: var(--pink-600); color: #fff; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.cal-day .num b { font-weight: 800; }
.cal-chip {
  display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border-radius: 9px; background: var(--tint); color: var(--ink);
  font: 700 .74rem/1.15 var(--font-display); min-width: 0; cursor: grab; border: 0; text-align: left; width: 100%;
  transition: transform .15s var(--ease), box-shadow .15s;
}
.cal-chip:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(42, 11, 31, .1); }
.cal-chip:active { cursor: grabbing; }
.cal-chip .t { width: 22px; height: 22px; border-radius: 6px; background: #fff center/cover no-repeat; flex: none; }
.cal-chip .l { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-chip .l small { display: block; font-weight: 600; opacity: .75; font-size: .66rem; }
.cal-chip.suggest { background: transparent; border: 1.5px dashed var(--pink-200); color: var(--muted); cursor: pointer; }
.cal-more { font-size: .7rem; font-weight: 700; color: var(--muted); padding-left: 4px; }
.cal-dots { display: none; gap: 3px; flex-wrap: wrap; }
.cal-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
@media (max-width: 760px) {
  .cal-day { min-height: 58px; padding: 6px 4px; align-items: center; }
  .cal-day .cal-chip, .cal-day .cal-more { display: none; }
  .cal-dots { display: flex; justify-content: center; }
  .cal-dow div { padding: 8px 4px; text-align: center; font-size: .6rem; letter-spacing: .06em; }
}
.tray { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 14px; }
.tray .card { padding: 16px; }
.tray-item {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--bg); cursor: grab;
  border: 1.5px solid transparent; transition: border-color .15s, transform .15s; width: 100%; text-align: left; font: inherit;
}
.tray-item + .tray-item { margin-top: 8px; }
.tray-item:hover { border-color: var(--pink-200); transform: translateX(2px); }
.tray-item .grow strong { display: block; font: 800 .85rem/1.2 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-item .grow span { font-size: .74rem; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px; }
.agenda { margin-top: 18px; }

/* ---------- swipe stage ---------- */
.stage {
  position: fixed; inset: 0; z-index: 90; color: #fff; display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(190, 24, 93, .35) 0%, transparent 70%),
    radial-gradient(60% 50% at 50% 110%, rgba(107, 20, 82, .7) 0%, transparent 70%),
    var(--plum-950);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.stage-top { display: flex; align-items: center; gap: 14px; padding: 16px clamp(16px, 3vw, 28px); padding-top: max(16px, env(safe-area-inset-top)); }
.stage-top .progress { flex: 1; background: rgba(255, 255, 255, .12); height: 8px; }
.stage-top .progress i { background: linear-gradient(90deg, var(--pink-500), var(--pink-300)); }
.stage-top .count { font: 800 .9rem/1 var(--font-display); color: rgba(255, 255, 255, .8); white-space: nowrap; }
.stage-top .x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; }
.stage-top .x svg { width: 18px; height: 18px; }
.streak { font: 800 .8rem/1 var(--font-display); padding: 8px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: var(--pink-200); white-space: nowrap; transition: transform .3s var(--spring); }
.streak.bump { transform: scale(1.18); }
.deck-area { flex: 1; position: relative; display: grid; place-items: center; padding: 8px 16px 42px; min-height: 0; }
.deck { position: relative; width: min(400px, 100%); height: min(640px, 100%); }
.scard {
  position: absolute; inset: 0; background: #fff; color: var(--text); border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45); display: flex; flex-direction: column; will-change: transform;
  transform-origin: 50% 90%; transition: transform .45s var(--ease), opacity .3s, filter .3s;
}
.scard.dragging { transition: none; }
.scard[data-depth="1"] { transform: translateY(18px) scale(.94); filter: brightness(.5); pointer-events: none; }
.scard[data-depth="2"] { transform: translateY(34px) scale(.88); filter: brightness(.3); pointer-events: none; }
.scard[data-depth="3"] { transform: translateY(46px) scale(.84); opacity: 0; pointer-events: none; }
.scard[data-depth="1"] .smedia > *, .scard[data-depth="2"] .smedia > * { visibility: hidden; }
.scard[data-depth="1"] .smedia, .scard[data-depth="2"] .smedia { background: var(--pink-100); }
.scard .smedia { position: relative; flex: 1; min-height: 0; background: var(--plum-900); overflow: hidden; }
.scard .smedia img, .scard .smedia video { width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.scard .smedia .textonly { position: absolute; inset: 0; padding: 30px; display: grid; place-items: center; text-align: center; color: #fff; font: 800 1.25rem/1.35 var(--font-display); background: linear-gradient(160deg, var(--pink-600), var(--plum-700)); white-space: pre-wrap; overflow: hidden; }
.scard .bars { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.scard .bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .4); }
.scard .bars i.on { background: #fff; }
.scard .sinfo { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; }
.scard .sinfo .row { gap: 8px; font-size: .78rem; color: var(--muted); font-weight: 600; }
.scard .sinfo h3 { font-size: 1.15rem; }
.scard .sinfo .cap { font-size: .9rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.scard .sinfo .cap.open { -webkit-line-clamp: unset; max-height: 30vh; overflow-y: auto; }
.scard .sinfo .more { background: none; border: 0; padding: 0; color: var(--pink-600); font: 700 .8rem/1 var(--font-display); align-self: flex-start; }
.scard .rev { position: absolute; top: 22px; right: 14px; z-index: 3; background: var(--amber); color: #fff; font: 800 .68rem/1 var(--font-display); letter-spacing: .06em; padding: 6px 9px; border-radius: 99px; text-transform: uppercase; }
.stamp {
  position: absolute; z-index: 4; padding: 10px 18px; border-radius: 14px; border: 4px solid currentColor; background: rgba(255, 255, 255, .92);
  font: 900 1.6rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; opacity: 0; pointer-events: none;
}
.stamp.yes { top: 40px; left: 22px; color: var(--green); transform: rotate(-14deg); }
.stamp.no { top: 40px; right: 22px; color: var(--red); transform: rotate(14deg); }
.stamp.notes { bottom: 40%; left: 50%; color: var(--amber); transform: translateX(-50%) rotate(-4deg); }
.stage-actions { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 26px); padding: 14px 16px calc(18px + var(--safe-b)); }
.sbtn {
  border-radius: 50%; display: grid; place-items: center; border: 0; background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
  transition: transform .2s var(--spring), box-shadow .2s;
}
.sbtn:hover { transform: translateY(-3px) scale(1.04); }
.sbtn:active { transform: scale(.92); }
.sbtn svg { stroke-width: 2.6; }
.sbtn.no { width: 68px; height: 68px; color: var(--red); }
.sbtn.yes { width: 68px; height: 68px; color: var(--green); }
.sbtn.notes { width: 54px; height: 54px; color: var(--amber); }
.sbtn.undo { width: 42px; height: 42px; color: var(--muted); background: rgba(255, 255, 255, .1); box-shadow: none; color: rgba(255, 255, 255, .8); }
.sbtn.no svg, .sbtn.yes svg { width: 30px; height: 30px; }
.sbtn.notes svg { width: 22px; height: 22px; }
.sbtn.undo svg { width: 18px; height: 18px; }
.sbtn[disabled] { opacity: .3; pointer-events: none; }
.keys { text-align: center; font-size: .76rem; color: rgba(255, 255, 255, .45); padding-bottom: 10px; }
.keys kbd { font: 700 .72rem/1 var(--font-display); background: rgba(255, 255, 255, .1); border-radius: 6px; padding: 3px 6px; margin: 0 2px; }
@media (max-width: 640px) { .keys { display: none; } }
@media (max-height: 700px) { .scard .sinfo .cap { -webkit-line-clamp: 2; } .deck { height: 100%; } }

.quick-why {
  position: absolute; left: 50%; bottom: 112px; transform: translateX(-50%); z-index: 20; width: min(560px, calc(100% - 24px));
  background: #fff; color: var(--text); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; animation: rise .25s var(--ease);
}
.quick-why strong { font: 800 .85rem/1 var(--font-display); color: var(--red-dark); }
.quick-why .chips { gap: 6px; }
.quick-why .chip { height: 30px; font-size: .78rem; padding: 0 11px; }
.quick-why .chip.on { background: var(--red); border-color: var(--red); }

.toast-pop {
  position: absolute; top: 80px; left: 50%; transform: translateX(-50%); z-index: 30; pointer-events: none;
  font: 900 1.4rem/1 var(--font-display); color: #fff; letter-spacing: -.02em; text-shadow: 0 4px 20px rgba(236, 72, 153, .8);
  animation: floatup 1.2s var(--ease) forwards;
}
@keyframes floatup { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.9); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -30px); } }

/* sheet (notes) */
.sheet-wrap { position: absolute; inset: 0; z-index: 40; background: rgba(21, 3, 14, .55); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet {
  width: min(560px, 100%); background: #fff; color: var(--text); border-radius: 26px 26px 0 0; padding: 22px 20px calc(22px + var(--safe-b));
  animation: up .32s var(--ease); max-height: 90vh; overflow: auto; touch-action: auto; user-select: text;
}
@keyframes up { from { transform: translateY(60px); opacity: 0; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: -8px auto 14px; }
.sheet h2 { display: flex; align-items: center; gap: 10px; }
.sheet h2 .ic { width: 36px; height: 36px; border-radius: 11px; background: var(--amber-pale); color: var(--amber-dark); display: grid; place-items: center; }
.sheet h2 .ic svg { width: 18px; height: 18px; }
.sheet .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.sheet .chip.on { background: var(--amber); border-color: var(--amber); }

/* finish */
.finish { flex: 1; overflow-y: auto; padding: 10px 16px 40px; touch-action: pan-y; user-select: text; }
.finish-inner { width: min(620px, 100%); margin: 0 auto; }
.finish h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 4rem); text-align: center; }
.finish h1 em { font-style: normal; color: var(--pink-300); }
.finish .lead { text-align: center; color: rgba(255, 255, 255, .7); margin-top: 10px; }
.finish-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.finish-stats div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 18px 12px; text-align: center; animation: rise .5s var(--spring) backwards; }
.finish-stats div:nth-child(2) { animation-delay: .08s; }
.finish-stats div:nth-child(3) { animation-delay: .16s; }
.finish-stats strong { display: block; font: 900 2.4rem/1 var(--font-display); letter-spacing: -.04em; }
.finish-stats span { font: 700 .78rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.finish-stats .g strong { color: #4ADE80; }
.finish-stats .r strong { color: #FB7185; }
.finish-stats .a strong { color: #FBBF24; }
.wish-card { background: #fff; color: var(--text); border-radius: 24px; padding: 24px; }
.wish-card h2 { font-size: 1.4rem; }
.wish-card > p { color: var(--text-2); margin: 6px 0 16px; }
.vibes { display: flex; gap: 8px; margin: 8px 0 4px; }
.vibes button { flex: 1; height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; font-size: 1.5rem; transition: all .15s var(--spring); filter: grayscale(.8); }
.vibes button:hover { filter: none; transform: translateY(-2px); }
.vibes button.on { filter: none; border-color: var(--pink-500); background: var(--pink-50); transform: scale(1.06); }
.inbox-zero { flex: 1; display: grid; place-items: center; text-align: center; padding: 20px; }
.inbox-zero .art { width: 84px; height: 84px; border-radius: 26px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); margin: 0 auto 22px; color: var(--pink-300); }
.inbox-zero .art svg { width: 40px; height: 40px; }
.inbox-zero h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3rem); }
.inbox-zero p { color: rgba(255, 255, 255, .65); margin: 10px auto 24px; max-width: 40ch; }

/* ---------- auth ---------- */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--plum-900);
}
.auth-art {
  position: relative; overflow: hidden; color: #fff; padding: clamp(28px, 5vw, 60px); display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(70% 60% at 90% 10%, rgba(236, 72, 153, .45) 0%, transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(107, 20, 82, .9) 0%, transparent 70%),
    var(--plum-900);
}
.auth-art h1 { font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5.4rem); letter-spacing: -.045em; line-height: .98; }
.auth-art h1 span { display: block; }
.auth-art h1 span:nth-child(2) { color: var(--pink-300); }
.auth-art h1 span:nth-child(3) { color: var(--pink-500); }
.auth-art p { color: rgba(255, 255, 255, .7); max-width: 44ch; margin-top: 18px; font-size: 1.05rem; }
.auth-art .gest { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.auth-art .gest > span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); font: 700 .85rem/1 var(--font-display); }
.auth-art .gest svg { width: 16px; height: 16px; }
.auth-form { background: var(--bg); display: grid; place-items: center; padding: 30px 20px; border-radius: 28px 0 0 28px; }
.auth-form form { width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; }
.auth-form h2 { font-size: 1.8rem; font-weight: 900; letter-spacing: -.03em; }
.auth-form .sub { color: var(--text-2); margin: -6px 0 6px; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding-bottom: 40px; gap: 34px; }
  .auth-art h1 { font-size: 2.8rem; }
  .auth-form { border-radius: 28px 28px 0 0; align-items: start; }
}

/* ---------- settings / admin ---------- */
.member { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.member:first-child { border-top: 0; }
.member .grow strong { display: block; font: 800 .92rem/1.2 var(--font-display); }
.member .grow span { font-size: .8rem; color: var(--muted); }
.member .select { width: auto; padding: 7px 34px 7px 12px; font-size: .85rem; border-radius: 99px; }
.copy-field { display: flex; gap: 8px; }
.copy-field .input { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: 0 0 0 1.5px var(--line); }
.swatches button.on { box-shadow: 0 0 0 2.5px var(--text); }
.meta-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--bg); }
.meta-card + .meta-card { margin-top: 10px; }
.meta-card .pic { width: 44px; height: 44px; border-radius: 12px; background: var(--line) center/cover; flex: none; display: grid; place-items: center; }
.meta-card .pic svg { width: 22px; height: 22px; }
.meta-card .grow strong { display: block; font: 800 .95rem/1.2 var(--font-display); }
.meta-card .grow span { font-size: .8rem; color: var(--muted); }
.page-pick { width: 100%; border: 1.5px solid var(--line); background: #fff; text-align: left; font: inherit; }
.page-pick:hover { border-color: var(--pink-400); }
.steps { counter-reset: s; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: flex; gap: 12px; font-size: .9rem; color: var(--text-2); }
.steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--pink-100); color: var(--pink-700); font: 800 .75rem/24px var(--font-display); text-align: center; }
.steps code, .code { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; background: var(--pink-50); padding: 2px 6px; border-radius: 6px; color: var(--pink-700); word-break: break-all; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font: 800 .7rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }

/* ---------- toasts ---------- */
#toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--plum-900); color: #fff;
  font: 700 .9rem/1.3 var(--font-display); box-shadow: var(--shadow-lg); animation: rise .3s var(--ease); pointer-events: auto; max-width: min(520px, calc(100vw - 32px));
}
.toast svg { width: 18px; height: 18px; flex: none; color: var(--pink-300); }
.toast.err { background: var(--red-dark); }
.toast.err svg { color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .3s; }
@media (max-width: 860px) { #toasts { bottom: calc(var(--tab-h) + 16px + var(--safe-b)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
