:root {
  --red: #ff2442;
  --red-soft: rgba(255, 36, 66, .09);
  --bg: #f5f5f7;
  --card: #ffffff;
  --card-2: #f9f9fb;
  --line: rgba(0, 0, 0, .07);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #a1a1a6;
  --ok: #1f9d55;
  --ok-soft: rgba(31, 157, 85, .1);
  --warn: #c77700;
  --warn-soft: rgba(230, 150, 0, .12);
  --blue: #0a6cff;
  --blue-soft: rgba(10, 108, 255, .1);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .05);
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --red: #ff3b57;
  --red-soft: rgba(255, 59, 87, .15);
  --bg: #000000;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --line: rgba(255, 255, 255, .09);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #6e6e73;
  --ok: #34c759;
  --ok-soft: rgba(52, 199, 89, .15);
  --warn: #ffb340;
  --warn-soft: rgba(255, 179, 64, .14);
  --blue: #4c9dff;
  --blue-soft: rgba(76, 157, 255, .15);
  --shadow: 0 0 0 1px rgba(255, 255, 255, .05);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h2 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 650; }
.muted { color: var(--text-2); font-size: 13px; }
[hidden] { display: none !important; }
i[data-icon] { display: inline-flex; width: 18px; height: 18px; flex: none; }
i[data-icon] svg { width: 100%; height: 100%; }

/* 顶栏 */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner { max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 20px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: 16px;
}
.brand-logo.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 26px; margin: 0 auto 14px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text b { font-size: 15px; white-space: nowrap; }
.brand-text small { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small.ok::before, .brand-text small.bad::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; background: var(--ok); }
.brand-text small.bad::before { background: var(--warn); }

.nav { display: flex; gap: 4px; margin-left: auto; background: var(--card-2); padding: 4px; border-radius: 12px; }
[data-theme="dark"] .nav { background: var(--card); }
.nav-btn {
  position: relative; display: flex; align-items: center; gap: 6px;
  border: 0; background: none; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 550;
  padding: 7px 14px; border-radius: 9px; cursor: pointer; transition: .2s var(--ease);
}
.nav-btn i { width: 16px; height: 16px; }
.nav-btn:hover { color: var(--text); }
.nav-btn.active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
[data-theme="dark"] .nav-btn.active { background: var(--card-2); }
.nav-badge { font-style: normal; font-size: 11px; background: var(--red); color: #fff; border-radius: 99px; padding: 0 6px; line-height: 17px; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 0; flex: none;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; color: var(--text-2); transition: .2s;
}
.icon-btn:hover { background: var(--card-2); color: var(--text); }

/* 主体 */
.main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 60px; }
.view { display: none; flex-direction: column; gap: 18px; animation: fade .35s var(--ease); }
.view.active { display: flex; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.panel-head p { margin-top: 2px; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* 表单 */
input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--card-2); border: 1px solid transparent; border-radius: 11px;
  padding: 10px 12px; outline: none; transition: .2s;
}
textarea { resize: vertical; line-height: 1.6; }
select { appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
input:focus, select:focus, textarea:focus { border-color: var(--red); background: var(--card); box-shadow: 0 0 0 4px var(--red-soft); }
::placeholder { color: var(--text-3); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.field.narrow { max-width: 220px; }
.row-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.row-fields > .field { flex: 1 1 180px; }
.row-fields > .field.grow { flex: 2 1 240px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form > input, .inline-form > select { flex: 1 1 160px; }
.sub-box { padding: 14px; background: var(--card-2); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; }
.sub-box input, .sub-box select { background: var(--card); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap;
  border: 0; border-radius: 11px; padding: 9px 16px; cursor: pointer;
  background: var(--card-2); color: var(--text); transition: .18s var(--ease);
}
.btn i { width: 16px; height: 16px; }
.btn:hover { filter: brightness(.96); }
[data-theme="dark"] .btn:hover { filter: brightness(1.15); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--red); color: #fff; box-shadow: 0 4px 14px var(--red-soft); }
.btn.dark { background: var(--text); color: var(--bg); }
.btn.ghost { background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--card-2); color: var(--text); }
.btn.soft { background: var(--red-soft); color: var(--red); }
.btn.big { padding: 13px 22px; font-size: 15px; border-radius: 13px; }
.btn.sm { padding: 6px 11px; font-size: 13px; border-radius: 9px; }
.btn.full { width: 100%; }
.danger-text { color: var(--red) !important; }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading i { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.create .btn.big { align-self: flex-start; }

/* 筛选 */
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  border: 0; font: inherit; font-size: 13px; font-weight: 550; white-space: nowrap;
  padding: 6px 13px; border-radius: 99px; cursor: pointer;
  background: var(--card); color: var(--text-2); box-shadow: var(--shadow); transition: .2s;
}
.chip b { font-weight: 600; margin-left: 3px; opacity: .6; }
.chip.active { background: var(--text); color: var(--bg); }

.seg { display: flex; gap: 4px; background: var(--card-2); padding: 4px; border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: 1; border: 0; font: inherit; font-size: 13px; font-weight: 550; padding: 7px 10px; border-radius: 9px; background: none; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.seg button.active { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }

/* 徽章与提示条 */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--card-2); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.processing, .badge.queued, .badge.publishing { background: var(--blue-soft); color: var(--blue); }
.badge.processing::before, .badge.publishing::before { animation: pulse 1.2s infinite; }
.badge.ready { background: var(--warn-soft); color: var(--warn); }
.badge.scheduled { background: var(--blue-soft); color: var(--blue); }
.badge.published { background: var(--ok-soft); color: var(--ok); }
.badge.failed { background: var(--red-soft); color: var(--red); }
@keyframes pulse { 50% { opacity: .3; } }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--card-2); color: var(--text-2); white-space: nowrap; }
.tag.red { background: var(--red-soft); color: var(--red); }

.notice { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; padding: 10px 12px; border-radius: 12px; line-height: 1.5; }
.notice i { width: 16px; height: 16px; margin-top: 1px; }
.notice > div { flex: 1; min-width: 0; }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--red-soft); color: var(--red); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.info { background: var(--blue-soft); color: var(--blue); }
.notice .btn { margin-left: auto; align-self: center; }
.hit-words { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.hit-words span { background: var(--card); color: var(--text); border-radius: 6px; padding: 1px 7px; font-size: 12px; }

/* 任务卡片 */
.task-list { display: flex; flex-direction: column; gap: 16px; }
.task { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.task-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-top .src { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 80px; text-decoration: none; }
.task-top .src:hover { color: var(--blue); }
.task-note { font-size: 13px; color: var(--text-2); }
.task-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.imgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.img { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--card-2); cursor: zoom-in; }
.img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: .25s; }
.img.off img { opacity: .3; filter: grayscale(1); }
.img .no { position: absolute; left: 6px; top: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .45); border-radius: 6px; padding: 0 6px; line-height: 18px; }
.img .no.cover { background: var(--red); }
.img .ops { position: absolute; right: 5px; top: 5px; display: flex; gap: 4px; }
.img .ops button { width: 26px; height: 26px; border-radius: 8px; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(0, 0, 0, .45); color: #fff; backdrop-filter: blur(6px); }
.img .ops button i { width: 14px; height: 14px; }
.img .ops button.on { background: var(--red); }
.img-add { aspect-ratio: 3 / 4; border-radius: 10px; border: 1.5px dashed var(--line); background: none; color: var(--text-2); font: inherit; font-size: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; }
[data-theme="dark"] .img-add { border-color: rgba(255, 255, 255, .18); }
.img-add:hover { color: var(--red); border-color: var(--red); }
.empty-imgs { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--text-3); font-size: 13px; background: var(--card-2); border-radius: 12px; }

.cover-tool { background: var(--card-2); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cover-tool .t { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.cover-tool .t i { width: 15px; height: 15px; color: var(--red); }
.cover-tool input { background: var(--card); padding: 8px 10px; font-size: 14px; }
.cover-tool .btns { display: flex; gap: 6px; }
.cover-tool .btns .btn { flex: 1; }

.title-input { font-size: 17px; font-weight: 650; }
.content-input { min-height: 220px; font-size: 14px; }
.meta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.actions .spacer { flex: 1; }

.leads { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, var(--red-soft), transparent); }
.leads .stat { display: flex; flex-direction: column; }
.leads .stat b { font-size: 22px; line-height: 1.1; color: var(--red); font-variant-numeric: tabular-nums; }
.leads .stat small { font-size: 12px; color: var(--text-2); }
.leads .sep { width: 1px; height: 28px; background: var(--line); }
.leads .last { font-size: 12px; color: var(--text-2); flex: 1; min-width: 120px; }
.leads .btns { display: flex; gap: 6px; margin-left: auto; }

.empty { text-align: center; padding: 56px 20px; color: var(--text-3); background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.empty b { display: block; color: var(--text-2); font-size: 15px; margin-bottom: 4px; }

/* 知识库 */
.audit-list, .kb-list, .log-list { display: flex; flex-direction: column; }
.audit-item, .kb-item, .log-item { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.audit-item:first-child, .kb-item:first-child, .log-item:first-child { border-top: 0; }
.audit-item .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--blue-soft); color: var(--blue); }
.audit-item .ico.comp { background: var(--red-soft); color: var(--red); }
.audit-item .ico i { width: 17px; height: 17px; }
.grow { flex: 1; min-width: 0; }
.audit-item b { font-size: 14px; }
.audit-item p { font-size: 13px; color: var(--text-2); margin-top: 3px; white-space: pre-wrap; }
.meta { font-size: 12px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
.score { flex: none; min-width: 38px; height: 38px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 15px; background: var(--card-2); color: var(--text-2); }
.score.hot { background: var(--red); color: #fff; }
.score.good { background: var(--red-soft); color: var(--red); }
.kb-item .txt { font-size: 14px; word-break: break-word; }
.kb-item .arrow { color: var(--text-3); margin: 0 6px; }
.kb-item .del { opacity: .5; }
.kb-item:hover .del { opacity: 1; }

/* 账号 */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.acc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.acc-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px; color: #fff; background: linear-gradient(135deg, #ff5a6e, #ff2442); flex: none; }
.acc-head b { display: block; font-size: 15px; }
.acc .btns { display: flex; gap: 8px; }
.acc .btns .btn:not(.icon) { flex: 1; }

/* 设置 */
.switch-row { display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.switch { position: relative; width: 51px; height: 31px; flex: none; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--card-2); transition: .25s; box-shadow: inset 0 0 0 1px var(--line); }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: .25s var(--ease); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(20px); }
.save-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; justify-content: flex-end; }
.log-item { font-size: 13px; gap: 10px; }
.log-item time { color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.log-item .lv { flex: none; }
.log-item .msg { flex: 1; min-width: 0; word-break: break-word; }

/* 弹层 */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .38); display: grid; place-items: center; padding: 20px; animation: fadeIn .2s; }
.modal-card { width: 100%; max-width: 440px; background: var(--card); border-radius: 22px; padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: pop .3s var(--ease); max-height: 90vh; overflow: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
#modalBody { display: flex; flex-direction: column; gap: 14px; }
.quick { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.quick-label { font-size: 12px; color: var(--text-2); font-weight: 600; }
.quick button { border: 1.5px solid transparent; background: var(--card-2); color: var(--text); font: inherit; font-size: 13px; padding: 9px 4px; border-radius: 11px; cursor: pointer; line-height: 1.35; }
.quick button small { display: block; font-size: 11px; color: var(--text-2); }
.quick button.on { border-color: var(--red); background: var(--red-soft); color: var(--red); }
.quick button:disabled { opacity: .35; pointer-events: none; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 38px; height: 38px; border-radius: 11px; border: 0; background: var(--card-2); color: var(--text); font-size: 18px; cursor: pointer; }
.stepper input { text-align: center; font-weight: 700; font-size: 17px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .9); display: grid; place-items: center; padding: 20px; animation: fadeIn .2s; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; object-fit: contain; }
.lb-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; background: rgba(255, 255, 255, .15); color: #fff; }

.auth-mask { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 360px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.auth-card input { text-align: center; font-size: 17px; padding: 13px; margin-top: 8px; }

.toast { position: fixed; left: 50%; top: calc(74px + env(safe-area-inset-top)); z-index: 120; transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px);
  background: var(--text); color: var(--bg); font-size: 14px; font-weight: 550; padding: 11px 18px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); transition: .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); color: #fff; }
.toast.ok::before { content: "✓"; font-weight: 800; color: var(--ok); }

/* 手机 */
@media (max-width: 860px) {
  .task-body, .duo { grid-template-columns: 1fr; }
  .imgs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .topbar-inner { height: 54px; padding: 0 14px; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0; border-radius: 0; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--card) 86%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--line); justify-content: space-around;
  }
  .nav-btn { flex: 1; flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 2px; background: none !important; box-shadow: none !important; }
  .nav-btn i { width: 22px; height: 22px; }
  .nav-btn.active { color: var(--red); }
  .nav-badge { position: absolute; top: 2px; left: calc(50% + 6px); }
  #themeBtn { margin-left: auto; }
  .main { padding: 16px 12px calc(96px + env(safe-area-inset-bottom)); }
  .panel, .task { padding: 16px; border-radius: 16px; }
  .create .btn.big { align-self: stretch; }
  .row-fields { flex-direction: column; gap: 10px; }
  .row-fields > .field { flex: none; }
  .field.narrow { max-width: none; }
  .content-input { min-height: 180px; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .actions .btn { padding: 11px 8px; }
  .actions .spacer { display: none; }
  .actions .wide { grid-column: 1 / -1; }
  .save-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .save-bar .btn { width: 100%; }
  .modal { place-items: end center; padding: 0; }
  .modal-card { max-width: none; border-radius: 22px 22px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); animation: up .32s var(--ease); }
  .leads .btns { margin-left: 0; width: 100%; }
  .leads .btns .btn { flex: 1; }
  .switch-row p { font-size: 12px; }
  input, select, textarea { font-size: 16px; }
}
@keyframes up { from { transform: translateY(100%); } }
