:root {
  --night: #fff0f6;
  --ink: #6b2444;
  --panel: #fff7fb;
  --panel-2: #ffe4f1;
  --gold: #e84393;
  --gold-soft: #7a3054;
  --wine: #ff4f9a;
  --paper: #fff5fa;
  --line: rgba(232, 67, 147, 0.35);
  --muted: #b15b82;
  --ok: #2f9e74;
  --danger: #d1255b;
  font-family: Quicksand, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--night); color: var(--gold-soft); }
body { min-height: 100vh; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--gold); }
img, video { max-width: 100%; }
.hidden { display: none !important; }

#app { min-height: 100vh; }
.gate, .auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(ellipse at top, #ffd0e6 0%, transparent 52%),
    var(--night);
}
.card {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px 24px 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.kicker, .brand-kicker, .small {
  font-family: "Playfair Display", serif;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold);
  margin: 0;
}
h1, h2, h3 { font-family: "Playfair Display", serif; font-weight: 500; letter-spacing: .03em; }
h1 { font-size: 32px; margin: 8px 0; color: #d63384; }
.lede { color: var(--muted); line-height: 1.55; }
.stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input, textarea, select {
  background: #fff;
  border: 1px solid var(--line);
  padding: 12px 12px;
  border-radius: 0;
}
textarea { min-height: 110px; resize: vertical; }
a.btn { display: inline-block; text-decoration: none; text-align: center; }
.btn, .btn-ghost, .btn-wine {
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #fff;
  padding: 12px 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
}
.btn-ghost { background: transparent; color: var(--gold-soft); }
.btn-wine { background: var(--wine); border-color: var(--wine); color: #fff; }
.btn.tiny, .btn-ghost.tiny, .btn-wine.tiny { padding: 7px 10px; font-size: 11px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.checks { display: flex; gap: 8px; align-items: center; color: var(--gold-soft); font-size: 14px; }
.error { color: var(--danger); min-height: 1.2em; }
.ok-note { color: var(--ok); }

.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.nav {
  border-right: 1px solid var(--line);
  padding: 22px 14px;
  background: #ffe4f0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 11px 10px;
}
.nav button.active { color: #fff; background: var(--gold); }
.brand { font-family: "Playfair Display", serif; letter-spacing: .18em; margin: 0 0 18px; padding: 0 10px; color: #d63384; }
.main { padding: 28px 22px 90px; max-width: 1100px; }
.top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.person, .panel, .post, .thread {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px;
}
.avatar, .avatar-lg {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ffd6e8;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: "Playfair Display", serif;
}
.avatar-lg { width: 160px; height: 160px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line);
  padding: 4px 8px;
  font-size: 12px;
  color: var(--gold-soft);
  background: transparent;
}
.chip.on { background: var(--gold); color: #fff; }
.badge { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.meta { color: var(--muted); font-size: 13px; }
.photos { display: flex; gap: 8px; overflow: auto; }
.photos img { width: 92px; height: 92px; object-fit: cover; }
.split { display: grid; grid-template-columns: 280px 1fr; gap: 14px; min-height: 60vh; }
.bubbles { display: flex; flex-direction: column; gap: 8px; max-height: 48vh; overflow: auto; padding-right: 4px; }
.bubble { max-width: 78%; padding: 10px 12px; background: #ffe0ef; color: var(--ink); }
.bubble.mine { margin-left: auto; background: #ffc2dc; }
.call {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 16px;
}
.call-panel { width: min(860px, 100%); background: #fff5fa; border: 1px solid var(--line); padding: 12px; }
.videos { display: grid; grid-template-columns: 1.4fr .6fr; gap: 8px; }
.videos video { width: 100%; background: #000; aspect-ratio: 16/10; object-fit: cover; }
.composer textarea { min-height: 70px; }
.sheet {
  width: min(860px, 100%);
  margin: 24px auto;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--gold);
}
.sheet .doc, .agreement-html { padding: 8px 4px 0; }
.agreement-html h1, .sheet h1 { color: var(--ink); text-align: center; font-size: 22px; }
.agreement-html h2, .sheet h2 { text-align: center; color: #a33b6b; font-size: 16px; }
.agreement-html h3, .sheet h3 { color: #d63384; }
.agreement-html p, .sheet p, .agreement-html li, .sheet li { line-height: 1.5; }
.leopard { height: 12px; background: linear-gradient(90deg, #ff8fbf, #fff0f6 42%, #ff4f9a); }
.mast { text-align: center; background: linear-gradient(180deg, #ffd6ea, #fff5fa); color: #d63384; padding: 22px 16px; }
.brand-name { font-family: "Playfair Display", serif; letter-spacing: .16em; margin: 8px 0 0; }
.proof-body { padding: 18px 12px 40px; }
.sig-row, .sign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sig-row img, canvas.sign { width: 100%; background: #fff; border: 1px solid #ccc; }
.hash { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; }
.center { text-align: center; }
.rule { border: 0; height: 1px; background: linear-gradient(90deg, transparent, #e84393, transparent); }
.auth .card { width: min(680px, 100%); }
.auth-layout { width: min(1120px, 100%); display: grid; grid-template-columns: minmax(240px, 380px) minmax(320px, 680px); gap: 16px; align-items: start; }
.auth-visual { position: relative; border: 1px solid var(--line); overflow: hidden; background: #fff; }
.auth-visual img { display: block; width: 100%; height: 100%; max-height: 720px; object-fit: cover; }
.auth-visual p, .shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  padding: 36px 14px 14px;
  background: linear-gradient(transparent, rgba(110, 24, 62, .88));
  color: #fff; font-family: "Playfair Display", serif; font-size: 20px; line-height: 1.3;
}
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-rows: 220px; gap: 12px; margin: 8px 0 16px; }
.shot { position: relative; overflow: hidden; border: 1px solid var(--line); background: #fff; min-height: 0; }
.shot.wide { grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.humiliations { display: flex; gap: 8px; overflow: auto; margin: 0 0 18px; }
.humiliations p { flex: 0 0 auto; margin: 0; padding: 8px 12px; border: 1px solid var(--line); background: #fff; color: #a12662; font-size: 14px; }
.reel video { width: 100%; max-height: 70vh; background: #000; }
.empty { color: var(--muted); }

@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .nav {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    display: flex;
    align-items: center;
    gap: 0;
    overflow: auto;
    border-right: 0;
    border-top: 1px solid var(--line);
    z-index: 5;
    padding: 6px;
  }
  .brand { display: none; }
  .nav button { width: auto; font-size: 12px; padding: 10px; }
  .split, .sig-row, .sign-grid, .videos, .auth-layout, .gallery { grid-template-columns: 1fr; }
  .shot.wide { grid-row: auto; }
  .gallery { grid-auto-rows: 280px; }
  .main { padding: 18px 12px 110px; }
}
