:root {
  --page: #121212;
  --card: #1a1a1a;
  --ink: #f4f7f5;
  --ink-2: #c2c7c4;
  --muted: #9a9a9a;
  --line: rgba(244,247,245,.12);
  --line-soft: rgba(244,247,245,.06);
  --green: #06b57c;
  --green-deep: #0a3743;
  --amber: #06b57c;
  --btn: #06b57c;
  --btn-ink: #ffffff;
  --bad: #e28b8b;
  --ok: #06b57c;
  color-scheme: dark;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/InterVariable.woff2") format("woff2");
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 15px/1.45 Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  letter-spacing: -0.011em;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--ink); }
.wrap { max-width: 600px; margin: 0 auto; padding: 44px 24px 64px; }
body.partner .wrap { max-width: 520px; padding: 24px 16px 48px; }
.wrap.wide { max-width: 1180px; }
.wrap.edit { max-width: 800px; }
.top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 22px;
}
.top a { color: var(--muted); text-decoration: none; font-size: 13px; }
.top a:hover { color: var(--ink); }
.top a.btn { color: var(--btn-ink); font-size: 14px; }
.top a.btn.ghost, .top button.ghost { color: var(--ink); font-size: 14px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 11px; margin-bottom: 22px; }
.brand img { height: 28px; width: auto; }
.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 28px 30px 30px;
}
h1 { font-size: 20px; margin: 0 0 4px; letter-spacing: -0.01em; }
.sub { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }
.sub .todo { color: var(--amber); }
label, .lab { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px; }
.lab .opt-tag { color: var(--muted); font-weight: 400; font-size: 12.5px; }
input[type=text], input[type=email], input[type=password], input[type=url], textarea, select {
  width: 100%; background: transparent; color: var(--ink); font: inherit;
  border: 0; border-bottom: 1px solid var(--line); padding: 8px 0 7px; margin-bottom: 16px; border-radius: 0;
}
textarea { min-height: 72px; resize: vertical; }
textarea[hidden], textarea.sr-only { min-height: 0; width: 0; height: 0; margin: 0; padding: 0; border: 0; }
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--green); }
select { appearance: none; }
body.partner input[type=text],
body.partner input[type=email],
body.auth input[type=text],
body.auth input[type=email],
body.auth input[type=password] {
  background: #121212;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}
body.partner input:focus,
body.auth input:focus {
  outline: none;
  border-color: var(--green);
  border-bottom-color: var(--green);
}
body.partner input::placeholder,
body.auth input::placeholder { color: var(--muted); }
body.partner .fact dd[data-k] {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 44px;
}
body.partner .fact dd[data-k]:focus {
  border-color: var(--green);
  border-bottom-color: var(--green);
}
.facts-hint { margin: 0 0 12px; }
.sub[hidden] { display: none; margin: 0; }
button, .btn {
  font: inherit; font-weight: 600; border: 0; border-radius: 8px; cursor: pointer;
  padding: 10px 16px; background: var(--btn); color: var(--btn-ink); text-decoration: none; display: inline-block;
  transition: filter .12s ease, border-color .12s ease, color .12s ease;
}
button:hover, .btn:hover { filter: brightness(1.06); }
button.ghost, .btn.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--line); font-weight: 500;
}
button.ghost:hover, .btn.ghost:hover { border-color: var(--green); color: var(--green); }
button.danger { background: transparent; color: var(--bad); border: 1px solid rgba(226,139,139,.35); }
button:disabled { opacity: .55; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.table tbody tr:last-child td { border-bottom: 0; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 4.6em; font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
  padding: 4px 8px; border-radius: 6px; background: rgba(244,247,245,.07);
}
.pill.live { color: var(--ok); background: rgba(6,181,124,.14); }
.pill.draft, .pill.off { color: var(--muted); }
.err { color: var(--bad); font-size: 13px; margin: 0 0 14px; }
.flash {
  color: var(--ok); font-size: 13.5px; margin: 0 0 16px;
  padding: 10px 12px; border-radius: 8px;
  background: rgba(6,181,124,.12);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.table-wrap { overflow-x: auto; margin: 0 0 18px; }
.cell { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--ink-2); }
.preview-banner {
  background: var(--green-deep); color: var(--ink);
  text-align: center; font-size: 13px; font-weight: 600;
  padding: 12px 16px; width: 100%;
}
.step-pos { color: var(--muted); font-size: 12.5px; font-weight: 600; margin: 0 0 10px; }
.draft-note { color: var(--muted); font-size: 12px; margin: 8px 0 0; text-align: center; }
details.block summary { cursor: pointer; color: var(--ink); font-weight: 600; }

.steps-nav { display: flex; gap: 5px; margin-bottom: 22px; }
.steps-nav[hidden], .step-pos[hidden] { display: none; }
.steps-nav button {
  flex: 1; height: 3px; border: 0; border-radius: 2px; padding: 0;
  background: var(--line-soft); cursor: pointer;
}
.steps-nav button.done { background: rgba(255,255,255,.28); }
.steps-nav button.active { background: var(--green); }

.facts { margin: 0 0 26px; }
.fact { display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--muted); flex: 0 0 168px; margin: 0; }
.fact dd { margin: 0; flex: 1; }
.fact dd[data-k] { cursor: text; border-bottom: 1px dashed transparent; }
.fact dd[data-k]:hover { border-bottom-color: var(--line); }
.fact dd[data-k]:focus { outline: none; border-bottom: 1px solid var(--ink); }
.fact dd[data-k].edited { color: var(--amber); }
.field { margin-bottom: 26px; }
.field.req > .lab::after {
  content: '*'; color: var(--muted); font-weight: 500;
  margin-left: 5px; font-size: 13px;
}
.field.req.filled > .lab::after { content: '*'; }
.opts { display: flex; flex-direction: column; }
.opts label {
  display: flex; align-items: baseline; gap: 11px;
  padding: 12px 0; cursor: pointer; font-size: 14.5px; font-weight: 400;
  border-bottom: 1px solid var(--line-soft);
  min-height: 44px;
}
.opts label:last-child { border-bottom: 0; }
.opts input { accent-color: var(--green); margin: 0; width: auto; transform: translateY(1px); }
.grid { display: grid; gap: 0 18px; }
.grid.c2 { grid-template-columns: 1fr 1fr; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 540px) {
  .grid.c3, .grid.c4 { grid-template-columns: 1fr 1fr; }
  .fact { flex-direction: column; gap: 4px; padding: 10px 0; }
  .fact dt { flex: none; }
}
.mini { min-width: 0; }
.sublab { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.nav {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px;
  margin-top: 24px; padding: 16px 0 4px;
  position: sticky; bottom: 0; z-index: 8;
  background: var(--card);
}
body.partner .nav {
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 12px;
  margin: 20px -24px 0;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line-soft);
  border-radius: 0 0 16px 16px;
}
body.partner .back { margin-right: 0; text-align: center; }
body.partner #next { display: block; width: 100%; text-align: center; box-sizing: border-box; min-height: 44px; }
.back { font: inherit; font-size: 14px; background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; margin-right: auto; }
.back:hover { color: var(--ink-2); }
.back:disabled { display: none; }
.meta { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.panel { display: none; }
.panel.active { display: block; }
.block {
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px 14px 4px; margin: 0 0 14px;
}
.block h3 { margin: 0 0 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 0 0 22px; }
.tabs a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 0 0 10px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.title-input {
  font-size: 28px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 6px;
  border-bottom-color: transparent !important;
}
.title-input:focus { border-bottom-color: var(--ink) !important; }
.desc-input { color: var(--ink-2); margin-bottom: 18px; }
.qcard {
  background: var(--page); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px 10px; margin: 0 0 14px;
}
.qcard.section { border-style: dashed; }
.qhead {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin: 0 0 10px;
  color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.qtop { display: flex; gap: 12px; align-items: flex-start; }
.qtop .grow { flex: 1; min-width: 0; }
.qtop select {
  width: 180px; margin-top: 22px; margin-bottom: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px;
}
.req-row {
  display: flex; align-items: center; gap: 8px; font-weight: 400;
  margin: 4px 0 12px;
}
.req-row input { width: auto; margin: 0; accent-color: var(--green); }
.addbar {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin: 8px 0 6px;
}
.add-hint {
  margin: 0 0 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.settings { margin: 18px 0 8px; }
.settings summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; }
.settings .inner { padding-top: 14px; }
.resp-empty { text-align: center; padding: 36px 12px; color: var(--muted); }
code { font-size: 12.5px; }
.ans { white-space: pre-wrap; }
.tiny { color: var(--muted); font-size: 12.5px; }

body.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(900px 480px at 50% -10%, rgba(10,55,67,.55), transparent 58%),
    var(--page);
}
.auth-shell {
  width: min(520px, 100%);
  min-width: 0;
}
.auth-card { width: 100%; min-width: 0; padding: 32px 28px 28px; }
.auth-logo {
  display: block; height: 28px; width: auto; max-width: 100%;
  margin: 0 0 22px;
}
.auth-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 8px;
}
.auth-card h1 { font-size: 24px; margin: 0 0 8px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.auth-card .sub { color: var(--ink-2); overflow-wrap: anywhere; }
.auth-card form { margin: 0; }
.auth-card button[type=submit], .auth-card .btn { width: 100%; text-align: center; min-height: 44px; }
.gbtn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%;
  background: #fff; color: #121212;
}
.gbtn:hover { filter: brightness(.97); }
.gbtn svg { flex: 0 0 18px; }

.bar {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  gap: 16px; padding: 11px 22px;
  min-height: 56px;
  width: 100%;
  border-bottom: 0;
  background: var(--green-deep);
  position: sticky; top: 0; z-index: 20;
}
.bar-brand { display: flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.bar-brand img { height: 26px; width: auto; display: block; }
.bar-product {
  margin-left: 12px; padding-left: 12px;
  border-left: 1px solid rgba(244,247,245,.22);
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em;
  color: rgba(244,247,245,.88);
}
.bar-actions {
  display: flex; flex-direction: row; align-items: center; gap: 8px;
  flex: 0 0 auto;
}
.bar-actions .btn {
  padding: 7px 12px; font-size: 13px; border-radius: 8px; font-weight: 600;
}
.bar-actions .quiet {
  background: none; border: 0; padding: 8px 6px;
  color: rgba(244,247,245,.62); font-weight: 500; font-size: 13px;
}
.bar-actions .quiet:hover { color: var(--ink); filter: none; }
.bar-actions .btn.ghost, .bar-actions button.ghost {
  color: var(--ink); font-size: 13px; border-color: rgba(244,247,245,.28);
  padding: 7px 12px;
}
.admin .wrap { padding-top: 28px; padding-bottom: 72px; }
.page-head { margin: 0 0 20px; }
.page-head h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -0.03em; }
.page-head .sub { margin: 0; }
.empty { text-align: center; padding: 48px 16px 36px; }
.empty h2 { margin: 0 0 8px; font-size: 20px; }
.empty .sub { max-width: 420px; margin: 0 auto 18px; }
.share {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  padding: 0 0 16px; margin: 0 0 22px;
  border-bottom: 1px solid var(--line-soft);
}
.share .share-line {
  flex: 1; min-width: 200px; margin: 0;
  font-size: 13px; color: var(--ink-2);
}
.share .sep { color: var(--muted); margin: 0 8px; }
.share-hint { margin: 0 0 6px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.share-draft { border-color: var(--line-soft); }
.table tbody tr:hover td { background: var(--line-soft); }
.table tr.clickrow { cursor: pointer; }
.table a { text-decoration: none; font-weight: 600; }
.table a:hover { color: var(--green); }
.muted-url { color: var(--muted); margin-top: 3px; }
.inline { display: contents; }
.card.list-card { padding: 4px 0 8px; overflow: hidden; }
.list-head, .list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 7.5rem 10rem 5.5rem 18.5rem;
  gap: 12px 16px;
  align-items: center;
  padding: 0 24px;
}
.list-head > *, .list-row > * { min-width: 0; }
.list-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding-top: 14px;
  padding-bottom: 10px;
}
.list-row {
  padding-top: 16px;
  padding-bottom: 16px;
  border-top: 1px solid var(--line-soft);
  cursor: pointer;
}
.list-row:hover { background: rgba(244,247,245,.035); }
.list-title { min-width: 0; }
.list-title a {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.3;
  text-decoration: none;
}
.list-title a:hover { color: var(--green); }
.list-path {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-invite {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.replies {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85em;
  height: 1.7em;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  background: rgba(244,247,245,.08);
}
.replies:hover { color: var(--green); background: rgba(6,181,124,.16); }
.replies.is-zero {
  color: var(--muted);
  font-weight: 500;
  background: transparent;
}
.replies.is-zero:hover { color: var(--green); background: rgba(6,181,124,.12); }
.list-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
}
.act-ph { visibility: hidden; pointer-events: none; display: inline-flex; }
.act {
  background: none; border: 0; padding: 5px 8px; margin: 0;
  color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; display: inline-flex; align-items: center;
  border-radius: 6px;
}
.act:hover { color: var(--green); filter: none; background: rgba(244,247,245,.06); }
.act-main { color: var(--ink); }
.linkish {
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--muted); font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer; display: inline;
}
.linkish:hover { color: var(--green); filter: none; }
.danger-text { color: var(--bad); }
.danger-text:hover { color: var(--bad); filter: brightness(1.1); }
.copy-field {
  display: flex; gap: 8px; align-items: center; margin-bottom: 16px;
}
.copy-field input { margin-bottom: 0; }
.copy-field .ghost { flex: 0 0 auto; padding: 6px 10px; font-size: 12px; }
.resp-row { cursor: pointer; }
.resp-row.open td { background: var(--line-soft); }
.resp-detail td {
  background: var(--page);
  padding: 6px 16px 16px;
  border-bottom: 1px solid var(--line);
}
.resp-detail .fact:last-child { border-bottom: 0; padding-bottom: 4px; }
.savebar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-top: 20px; padding: 16px 0 8px;
  border-top: 1px solid var(--line-soft);
  position: sticky; bottom: 0; z-index: 8;
  background: var(--card);
}
.done-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(6,181,124,.16); color: var(--green);
  display: grid; place-items: center;
  font-size: 18px; font-weight: 700; margin-bottom: 14px;
}
.done-card h1 { color: var(--ink); font-size: 22px; }
body.partner .done-card { padding-bottom: 28px; }
body.partner .done-card .nav { display: none; }
body.partner h1 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 8px; }
body.partner .card { padding: 26px 24px 0; }
.resp-title {
  font-size: 18px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.resp-email { font-weight: 600; }
.resp-help { margin: 0 0 14px; color: var(--ink-2); }
@media (max-width: 900px) {
  .list-head { display: none; }
  .list-row {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    padding: 16px 18px;
  }
  .list-title { grid-column: 1 / -1; }
  .list-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 4px;
  }
}
@media (max-width: 640px) {
  .bar { padding: 10px 16px; min-height: 52px; }
  .card { padding: 22px 18px 24px; }
  .card.list-card { padding: 4px 0 8px; }
  body.partner .card { padding: 22px 18px 0; }
  body.partner .nav {
    margin-left: -18px; margin-right: -18px;
    padding: 14px 18px 16px;
  }
  body.partner .done-card { padding-bottom: 24px; }
  .auth-card { padding: 28px 20px 24px; }
  .title-input { font-size: 24px; }
  .qtop { flex-direction: column; }
  .qtop select { width: 100%; margin-top: 0; }
}
