:root {
  --ink: #111111;
  --muted: #6b7280;
  --line: #e7e5e4;
  --paper: #f6f5f8;
  --accent: #7c3aed;
  --accent-deep: #5b21b6;
  color: var(--ink);
  background: var(--paper);
  font-family: Nunito, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #eceaf1; }
body { margin: 0 auto; max-width: 480px; min-height: 100vh; background: var(--paper); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.hero {
  background: linear-gradient(145deg, #1a1a1a 0%, #111 55%, #000 100%);
  color: #fff;
  padding: 18px 16px 42px;
}
.hero-bar, .page-bar { display: flex; align-items: center; gap: 10px; }
.page-bar { padding: 16px 16px 0; }
.icon-btn, .close {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.1);
  color: #fff;
}
.page-bar .icon-btn { border-color: var(--line); background: #fff; color: var(--ink); }
.icon-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.4; }
.wordmark { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 800; font-size: 22px; }
.mark, .avatar, .choice {
  display: grid; place-items: center; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 900;
}
.mark { width: 36px; height: 36px; }
.hello { margin: 22px 0 0; color: rgba(255,255,255,.78); font-weight: 700; }
h1 { margin: 8px 0 0; font-size: 32px; line-height: 1.15; }

main { padding: 0 16px 120px; }
.hero + main { margin-top: -18px; }
.card, .live, .screen {
  background: #fff; border-radius: 28px; padding: 20px 16px; margin-bottom: 16px;
}
h2, .page-title { margin: 0; font-size: 24px; }
.muted, small, .soft p { color: var(--muted); }
.money, .insights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.insights { grid-template-columns: repeat(3, 1fr); }
.earned, .paid, .insights article { border-radius: 16px; padding: 14px; }
.earned { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #4c1d95; }
.paid { background: #111; color: #fff; }
.earned p, .paid p { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.earned strong, .paid strong { display: block; margin-top: 8px; font-size: 24px; }
.insights article { border: 1px solid var(--line); }
.insights b { display: block; font-size: 20px; }
.insights span { color: var(--muted); font-size: 12px; }
.soft, .row { background: #f8f7fb; border-radius: 20px; padding: 16px; margin-top: 14px; }
.row { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); }
.mini { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: #f3e8ff; color: var(--accent-deep); font-weight: 800; }
.row strong, .row small { display: block; }
label { display: block; margin-top: 16px; font-weight: 700; }
.share { display: flex; gap: 10px; margin-top: 10px; }
.share span { flex: 1; background: #f8f7fb; border-radius: 999px; padding: 12px 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share button, .live button, .empty button, .primary {
  border: 0; border-radius: 14px; background: #111; color: #fff; font-weight: 700; padding: 0 14px; height: 44px;
}
.primary { width: 100%; margin-top: 16px; }
.list { width: 100%; display: flex; justify-content: space-between; border: 0; background: transparent; padding: 16px 0; font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); color: var(--ink); }
.live { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.live p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
button:disabled { opacity: .45; cursor: default; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-weight: 700; color: var(--muted); margin-top: 16px; }
.tabs button { border: 0; background: transparent; color: inherit; padding-bottom: 8px; }
.tabs .on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.empty, .center { text-align: center; padding: 36px 12px; }
.empty p, .center p { font-size: 20px; font-weight: 800; margin: 0; }
.empty small, .center small { display: block; margin-top: 6px; }
.empty button { margin-top: 16px; }
.field, textarea {
  width: 100%; margin-top: 8px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.post { border-top: 1px solid var(--line); padding: 16px 0; }
.post b { color: var(--accent-deep); font-size: 12px; letter-spacing: .04em; }
.avatar { width: 72px; height: 72px; border-radius: 999px; margin: 12px auto; font-size: 28px; }
.handle { text-align: center; font-weight: 800; }
.tabbar {
  position: fixed; left: 50%; bottom: 0; width: min(480px, 100%); transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line); padding: 8px 0 12px; z-index: 5;
}
.tabbar button { border: 0; background: transparent; color: var(--muted); font-size: 10px; display: grid; justify-items: center; gap: 4px; }
.tabbar i, .tabbar b { width: 36px; height: 36px; border-radius: 999px; background: #f3f4f6; }
.tabbar b { display: grid; place-items: center; width: 44px; height: 44px; background: #111; color: #fff; font-size: 24px; }
.tabbar .on { color: var(--ink); }
.tabbar .on i { background: #111; }
.sheet, .drawer { position: fixed; inset: 0; z-index: 20; }
.backdrop { position: absolute; inset: 0; border: 0; background: rgba(17,17,17,.45); }
.sheet-card { position: absolute; left: 0; right: 0; bottom: 78px; background: #fff; border-radius: 18px 18px 0 0; padding: 12px 16px 22px; }
.grab { display: block; width: 40px; height: 4px; border-radius: 99px; background: var(--line); margin: 0 auto 18px; }
.choices { display: flex; justify-content: center; gap: 28px; }
.choices button { border: 0; background: transparent; font-weight: 700; color: var(--ink); }
.choice { width: 60px; height: 60px; border-radius: 999px; margin: 0 auto 8px; font-size: 22px; }
.choice.dark { background: #111; }
aside { position: absolute; left: 0; top: 0; bottom: 0; width: min(82vw, 320px); background: #fff; display: flex; flex-direction: column; overflow: auto; }
.close { margin: 12px 12px 0 auto; background: transparent; color: var(--muted); border-color: transparent; }
.who { text-align: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
aside > button { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 16px 20px; font-weight: 600; color: var(--ink); }
aside footer { margin-top: auto; background: #111; color: #fff; padding: 16px 20px 24px; }
aside footer p { color: #fff; font-weight: 800; letter-spacing: .08em; margin: 0 0 8px; }
.copied { color: var(--accent-deep); font-weight: 700; }
.stat-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.stat-line strong, .stat-line small { display: block; }
.stat-line small { color: var(--muted); font-weight: 500; }
.switch { border-radius: 999px; background: #d1d5db; color: #111; min-width: 52px; }
.switch.on { background: var(--accent); color: #fff; }
.hub, .dashed, .upload {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; text-align: left;
}
.hub strong, .hub small, .dashed strong, .dashed small { display: block; }
.hub small, .dashed small { color: var(--muted); font-weight: 600; }
.dashed { flex-direction: column; align-items: flex-start; border-style: dashed; border-color: #c4b5fd; }
.upload { border-style: dashed; cursor: pointer; font-weight: 700; }
.note-card { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.note-card a { color: var(--accent-deep); font-weight: 700; }
.pair { display: grid; gap: 12px; }
.detail { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.detail-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.detail-head h3 { margin: 0; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.center { text-align: center; }
.cover { height: 140px; margin: 0 -16px; background: linear-gradient(135deg, #ede9fe, #f6f5f8); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 16px; }
.profile-head { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -36px; }
.avatar.big { width: 88px; height: 88px; font-size: 32px; border: 4px solid #fff; }
.ghost { background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.ghost.back { width: 40px; height: 40px; }
.link-pill { margin: 12px 0; padding: 12px 16px; border-radius: 999px; background: #f8f8f8; color: var(--muted); font-weight: 600; }
.actions { display: flex; gap: 8px; }
.primary.slim { width: auto; padding: 0 18px; }
.block { margin-top: 22px; }
.tiers { display: grid; gap: 8px; }
.tiers article { display: flex; justify-content: space-between; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.edit-form { margin-top: 16px; }
select.field { width: 100%; }
.auth { padding: 48px 0 32px; }
.auth h1 { margin: 18px 0 0; font-size: 32px; }
.auth .google, .auth .text-button {
  display: grid; place-items: center; width: 100%; margin-top: 12px; height: 44px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink);
  font-weight: 700; text-decoration: none;
}
.auth .note { color: var(--accent-deep); font-weight: 700; }
