:root {
  --bg: #14110e;
  --bg-2: #1c1814;
  --paper: #efe6d6;
  --ink: #14110e;
  --muted: #8a8174;
  --gold: #d4a017;
  --gold-2: #f0c14b;
  --line: rgba(239, 230, 214, 0.12);
  --card: #241f19;
  --think: #c4a574;
  --new: #7d9a8a;
  --partner: #d4a017;
  --help: #c97a6a;
  --side: 220px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: Manrope, sans-serif;
  background: var(--bg);
  color: var(--paper);
  display: grid;
  grid-template-columns: var(--side) 1fr;
}

a {
  color: inherit;
}

.side {
  position: sticky;
  top: 0;
  height: 100svh;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: #171410;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  margin-bottom: 28px;
}

.mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 8px 0 0 -4px var(--gold-2), 16px 0 0 -6px rgba(212, 160, 23, 0.4);
}

.side-nav {
  display: grid;
  gap: 6px;
}

.side-nav a,
.bottom a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.side-nav a.on,
.bottom a.on {
  background: #2a231b;
  color: var(--paper);
}

.side-user {
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 12px 6px;
  display: grid;
  gap: 6px;
}

.side-user strong {
  color: var(--paper);
  font-size: 14px;
}

.side-user span {
  font-size: 12px;
  word-break: break-all;
}

.err {
  color: #e8b4aa;
  font-size: 13px;
  font-weight: 600;
}

.trial {
  color: var(--gold-2);
  font-size: 12px;
}

.trial.over {
  color: #e8b4aa;
}

.contact-mini {
  display: grid;
  gap: 10px;
}

.side-legal {
  display: grid;
  gap: 4px;
  padding: 0 12px 8px;
}

.side-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}

.side-legal a:hover {
  color: var(--paper);
}

.shell {
  min-width: 0;
  padding: 28px 32px 48px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top h1 {
  font-family: Unbounded, sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  background: #2a231b;
  color: var(--paper);
}

.btn.gold {
  background: var(--gold-2);
  color: var(--ink);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
}

.btn.full {
  width: 100%;
}

.btn.danger {
  color: #e8b4aa;
  background: transparent;
  border-color: rgba(201, 122, 106, 0.35);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.stats button,
.stat {
  text-align: left;
  background: #1a1612;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--paper);
  cursor: pointer;
  font-family: inherit;
}

.stats button.on,
.stat.hot {
  border-color: rgba(240, 193, 75, 0.35);
}

.stats b,
.stat b {
  display: block;
  font-family: Unbounded, sans-serif;
  font-size: 20px;
}

.stats span,
.stat span {
  color: var(--muted);
  font-size: 11px;
}

.card,
.task {
  background: #2c241c;
  border: 1px solid rgba(239, 230, 214, 0.18);
  border-radius: 16px;
  padding: 20px;
}

.onboard-card {
  max-width: 520px;
  padding: 28px 24px;
}

.list {
  display: grid;
  gap: 10px;
}

.task {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.task p,
.muted,
.empty {
  color: var(--muted);
  font-size: 13px;
}

.empty {
  padding: 28px 8px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.tag.meet {
  color: var(--new);
  background: rgba(125, 154, 138, 0.12);
}

.tag.present {
  color: #8aa4c4;
  background: rgba(138, 164, 196, 0.12);
}

.tag.think {
  color: var(--think);
  background: rgba(196, 165, 116, 0.12);
}

.tag.client,
.tag.partner,
.tag.active {
  color: var(--partner);
  background: rgba(212, 160, 23, 0.12);
}

.tag.quiet {
  color: var(--think);
  background: rgba(196, 165, 116, 0.12);
}

.tag.help {
  color: var(--help);
  background: rgba(201, 122, 106, 0.14);
}

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}

.check:first-child {
  border-top: 0;
}

.check input {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

.check.done span {
  color: var(--muted);
  text-decoration: line-through;
}

.form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(239, 230, 214, 0.22);
  background: #3a3128;
  color: var(--paper);
  padding: 10px 12px;
  font: 500 15px Manrope, sans-serif;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 1px solid var(--gold);
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.72);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 20;
}

.overlay.open {
  display: grid;
}

.modal {
  width: min(480px, 100%);
  max-height: 90svh;
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.modal h2 {
  font-family: Unbounded, sans-serif;
  font-size: 18px;
  margin-bottom: 16px;
}

.bottom {
  display: none;
}

.link {
  color: var(--gold-2);
  font-weight: 700;
  font-size: 13px;
}

.site-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.preview {
  background: #efe6d6;
  color: #14110e;
  border-radius: 20px;
  padding: 28px 22px;
  min-height: 360px;
}

.preview .who {
  font-family: Unbounded, sans-serif;
  font-size: 26px;
  letter-spacing: -0.04em;
  margin: 8px 0 10px;
}

.preview .gold {
  color: #8a5a12;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ok {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 860px) {
  body {
    grid-template-columns: 1fr;
  }

  .side {
    display: none;
  }

  .shell {
    padding: 18px 16px 96px;
  }

  .stats,
  .two,
  .site-grid {
    grid-template-columns: 1fr;
  }

  .bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #171410;
    border-top: 1px solid var(--line);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    z-index: 10;
  }

  .bottom a {
    text-align: center;
    font-size: 12px;
  }
}
