/* Dashboard styles, on top of landing.css tokens. */
:root { --bg: var(--paper); --surface: var(--sheet); --muted: var(--slate); --accent: var(--ink); --accent-ink: var(--paper); --radius: 20px;
  --ok: #1f8a55; --ok-bg: #e2f4ea; --wip: #7a5600; --wip-bg: #fff1c7; }
.view h2, .view h3 { font-family: var(--display); letter-spacing: -.01em; }
.top .app-nav { margin-left: auto; }
.logo span { font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font: inherit; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.small { padding: 6px 14px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }
.muted { color: var(--muted); }
.hero { padding: 72px 20px 40px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.1; margin: 0 0 16px; max-width: 18ch; }
.lead { font-size: 18px; max-width: 60ch; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.block { padding: 40px 20px; border-top: 1px solid var(--line); }
.block h2 { margin-top: 0; }
.split { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.phone { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 8px; max-width: 380px; }
.chat-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.chat-row.is-ad { background: var(--soft); }
.avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--line); display: grid; place-items: center; font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-body span { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-meta { font-size: 12px; color: var(--muted); }
.stats, .cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats div, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.stats strong, .card strong { font-size: 28px; }
.card em { font-size: 16px; font-style: normal; color: var(--muted); font-weight: 400; }
.steps { padding-left: 20px; display: grid; gap: 8px; }
.steps p { margin: 4px 0 0; color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
.site-foot { padding: 32px 20px; border-top: 1px solid var(--line); }

/* Dashboard */
.app-nav[hidden] { display: none; }
.app-nav { display: flex; gap: 4px; overflow-x: auto; }
.app-nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.app-nav a.on { background: var(--soft); font-weight: 600; }
.view { padding: 28px 20px 60px; max-width: 760px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field input[type=text], .field input[type=search] { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.field small { color: var(--muted); }
.field.bad input { border-color: #c0392b; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 180px; overflow: auto; }
.chips button { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.chips button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.status { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--soft); }
.status.approved, .status.running { background: var(--ok-bg); color: var(--ok); }
.status.review { background: var(--wip-bg); color: var(--wip); }
.camp { display: flex; gap: 12px; align-items: center; }
.camp + .camp { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.empty { text-align: center; padding: 40px 20px; }
.login-box { max-width: 420px; margin: 60px auto; text-align: center; }
