:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --ink: #111827;
  --muted: #5b6474;
  --line: #e3e7ee;
  --brand: #1f6bff;
  --brand-ink: #ffffff;
  --brand-soft: #e8f0ff;
  --ok: #0f8a4b;
  --ok-soft: #e6f6ee;
  --warn: #9a5b00;
  --warn-soft: #fff4e0;
  --err: #b42318;
  --err-soft: #fdecea;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }
header.site { background: var(--card); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.top { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; }
nav.top a { color: var(--muted); text-decoration: none; }
nav.top a:hover, nav.top a[aria-current] { color: var(--ink); }
main { padding: 40px 0 56px; }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 22px; margin: 36px 0 10px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
.lede { font-size: 18px; color: var(--muted); max-width: 680px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 10px;
  padding: 12px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn:hover { filter: brightness(0.95); }
.btn[disabled] { background: #b9c3d6; cursor: not-allowed; filter: none; }
.btn.secondary { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn.dark { background: #111; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
footer.site { border-top: 1px solid var(--line); background: var(--card); padding: 24px 0; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer.site a { color: var(--ink); margin-right: 16px; }
.doc { max-width: 760px; }
.doc p, .doc li { color: #273142; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 8px 0 16px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: #f1f4f9; }

/* App */
.app-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
@media (max-width: 760px) { .app-grid { grid-template-columns: 1fr; } }
.account { display: flex; align-items: center; gap: 12px; }
.account img { width: 48px; height: 48px; border-radius: 50%; background: var(--line); object-fit: cover; }
.account .name { font-weight: 700; }
label.field { display: block; font-weight: 600; margin: 18px 0 6px; }
input[type=text], textarea, select {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { min-height: 84px; resize: vertical; }
select:invalid { color: var(--muted); }
.checks { display: flex; gap: 20px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check.disabled { color: #9aa3b2; }
.check input { width: 18px; height: 18px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { font: inherit; border: 0; background: transparent; padding: 9px 14px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed=true] { background: var(--brand); color: #fff; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #cdd4e0; border-radius: 26px; transition: .15s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(20px); }
.sub { margin: 10px 0 0 4px; padding: 12px 14px; border-left: 3px solid var(--brand-soft); }
.note { border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-top: 10px; }
.note.info { background: var(--brand-soft); color: #173e8c; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.err { background: var(--err-soft); color: var(--err); }
.note.ok { background: var(--ok-soft); color: var(--ok); }
.preview { width: 100%; aspect-ratio: 9/16; background: #0b0f17; border-radius: 12px; display: grid; place-items: center; overflow: hidden; color: #8b93a3; font-size: 14px; }
.preview video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.consent { font-size: 14px; color: var(--muted); margin: 18px 0 12px; }
.status-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.status-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hidden { display: none !important; }
.tooltip-wrap { position: relative; display: inline-block; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
progress { width: 100%; height: 10px; }
