/* Capture (#6185765727). Mobile first, works from 320 px; light and dark. */

:root {
  --bg: #f4f5fa;
  --bg-elev: #ffffff;
  --surface-2: #f7f8fc;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --primary-soft: rgba(79, 70, 229, 0.1);
  --primary-ring: rgba(79, 70, 229, 0.28);
  --danger: #e11d48;
  --danger-soft: rgba(225, 29, 72, 0.1);
  --warning: #d97706;
  --warning-soft: rgba(217, 119, 6, 0.12);
  --success: #16a34a;
  --mark: #ff3b30;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px -12px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 24px 60px -20px rgba(15, 23, 42, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f17;
    --bg-elev: #161927;
    --surface-2: #1c2032;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f1f5f9;
    --text-2: #cbd5e1;
    --muted: #94a3b8;
    --primary: #818cf8;
    --primary-2: #a78bfa;
    --primary-soft: rgba(129, 140, 248, 0.16);
    --primary-ring: rgba(129, 140, 248, 0.35);
    --danger: #fb7185;
    --danger-soft: rgba(251, 113, 133, 0.14);
    --warning: #fbbf24;
    --warning-soft: rgba(251, 191, 36, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.editing { overflow: hidden; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.icon { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 14px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; user-select: none;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background-color 0.2s ease, opacity 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; pointer-events: none; }
.btn:focus-visible, .select:focus-visible, .input:focus-visible, .tool:focus-visible, .icon-btn:focus-visible {
  outline: none; box-shadow: 0 0 0 4px var(--primary-ring);
}
.btn-lg { min-height: 54px; font-size: 16px; border-radius: 16px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 10px 24px -10px rgba(79, 70, 229, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-secondary { background: var(--bg-elev); border-color: var(--border-strong); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-light { background: #fff; color: #111827; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger-soft { background: var(--danger-soft); color: var(--danger); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; border: 0;
  display: inline-grid; place-items: center; background: transparent; cursor: pointer;
}
.icon-btn.on-dark { color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ── Test server banner ──────────────────────────────────────────────────── */
.test-banner {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  padding: calc(4px + var(--safe-top)) 12px 4px;
  background: #f59e0b; color: #111827; font-size: 12px; font-weight: 700; text-align: center;
}
body.has-banner .appbar { padding-top: calc(30px + var(--safe-top)); }

/* ── Screens ─────────────────────────────────────────────────────────────── */
.screen {
  width: 100%; max-width: 560px; margin: 0 auto;
  padding-left: calc(var(--gutter) + var(--safe-left));
  padding-right: calc(var(--gutter) + var(--safe-right));
}

/* Welcome */
.welcome {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: calc(28px + var(--safe-top));
  padding-bottom: calc(24px + var(--safe-bottom));
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(80% 40% at 100% 10%, rgba(79, 70, 229, 0.12), transparent 60%);
}
.welcome-art { position: relative; width: 220px; height: 170px; margin: 12px 0 8px; }
.welcome-card {
  position: absolute; border-radius: 18px; background: var(--bg-elev);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.welcome-card-back { inset: 18px 0 0 34px; transform: rotate(7deg); opacity: 0.7; }
.welcome-card-front { inset: 0 34px 14px 0; transform: rotate(-4deg); padding: 16px; overflow: hidden; }
.welcome-card-bar { height: 12px; width: 60%; border-radius: 6px; background: var(--primary-soft); margin-bottom: 14px; }
.welcome-card-line { height: 9px; border-radius: 5px; background: var(--surface-2); margin-bottom: 9px; border: 1px solid var(--border); }
.welcome-card-line.short { width: 70%; }
.welcome-scribble { position: absolute; left: 14px; bottom: 30px; width: 130px; height: 64px; }
.welcome-scribble path {
  fill: none; stroke: var(--mark); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 220; stroke-dashoffset: 220; animation: scribble 1.4s 0.3s ease forwards;
}
.welcome-note {
  position: absolute; right: 12px; bottom: 14px; padding: 4px 9px; border-radius: 8px;
  background: var(--mark); color: #fff; font-size: 12px; font-weight: 700;
  opacity: 0; animation: pop 0.35s 1.4s ease forwards;
}
@keyframes scribble { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
.welcome-logo { width: 64px; height: 64px; border-radius: 16px; box-shadow: var(--shadow); margin-top: 8px; }
.welcome-title { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-top: 14px; }
.welcome-lead { color: var(--text-2); font-size: 17px; max-width: 340px; margin-top: 8px; }
.welcome-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; text-align: left; }
.welcome-points li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 15px; }
.welcome-points .dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #4f46e5, #7c3aed); flex: none; }
.welcome-actions { width: 100%; max-width: 400px; margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.welcome-foot { color: var(--muted); font-size: 13px; }

/* App bar */
.appbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + var(--safe-top)) 0 12px;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
}
.appbar-kicker {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: linear-gradient(135deg, #4f46e5, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.appbar h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.8);
}
.avatar-lg { width: 52px; height: 52px; font-size: 18px; cursor: default; }

/* Compose */
.compose-body { display: grid; gap: 14px; padding: 4px 0 calc(150px + var(--safe-bottom)); }
.card {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 16px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.card-head h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.pill {
  font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft);
  padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums;
}

.dropzone {
  width: 100%; border: 1.5px dashed var(--border-strong); border-radius: 18px; cursor: pointer;
  background: linear-gradient(180deg, var(--primary-soft), transparent);
  padding: 26px 16px; display: grid; justify-items: center; gap: 6px; text-align: center;
  transition: border-color 0.2s, transform 0.12s;
}
.dropzone:active { transform: scale(0.99); border-color: var(--primary); }
.dropzone-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 4px;
  color: #fff; background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 10px 22px -10px rgba(79, 70, 229, 0.9);
}
.dropzone-icon .icon { width: 26px; height: 26px; }
.dropzone-title { font-weight: 700; font-size: 16px; }
.dropzone-sub { color: var(--muted); font-size: 14px; max-width: 280px; }

.strip {
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; margin: 0 -16px; padding: 4px 16px 6px;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.shot { position: relative; flex: none; width: 104px; height: 140px; scroll-snap-align: start; }
.shot-open {
  width: 100%; height: 100%; padding: 0; border: 1px solid var(--border-strong); border-radius: 16px;
  overflow: hidden; background: var(--surface-2); cursor: pointer; position: relative;
}
.shot-open img { width: 100%; height: 100%; object-fit: cover; }
.shot-num {
  position: absolute; left: 7px; bottom: 7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.72); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.shot-marked {
  position: absolute; right: 7px; bottom: 7px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--mark); color: #fff; display: grid; place-items: center;
}
.shot-marked .icon { width: 13px; height: 13px; }
.shot-remove {
  position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--bg-elev); background: #0f172a; color: #fff; cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.shot-remove .icon { width: 14px; height: 14px; }
.shot-add {
  border: 1.5px dashed var(--border-strong); border-radius: 16px; background: transparent; cursor: pointer;
  display: grid; place-content: center; justify-items: center; gap: 4px; color: var(--primary); font-weight: 600; font-size: 14px;
}
.shots-card.adding .strip, .shots-card.adding .dropzone { opacity: 0.6; pointer-events: none; }
.shots-card.adding .card-head::after {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--primary-soft); border-top-color: var(--primary); animation: spin 0.8s linear infinite;
}

.form-card { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.optional { font-weight: 500; color: var(--muted); }
.input {
  width: 100%; min-height: 50px; padding: 13px 14px; border-radius: 14px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 16px; /* 16 px stops iOS zooming into the field */
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; appearance: none;
}
.input::placeholder { color: var(--muted); }
.input:focus { border-color: var(--primary); background: var(--bg-elev); box-shadow: 0 0 0 4px var(--primary-ring); outline: none; }
.input[readonly] { opacity: 0.7; }
.textarea { min-height: 104px; resize: vertical; line-height: 1.45; }
.select {
  width: 100%; min-height: 50px; padding: 0 12px 0 14px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface-2); text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.select:disabled { opacity: 0.7; cursor: default; }
.select-value { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.select-value.placeholder { color: var(--muted); }
.select-chevron { color: var(--muted); display: grid; }
.select-chevron .icon { width: 18px; height: 18px; }
.stage-dot { width: 10px; height: 10px; border-radius: 50%; background: #3b82f6; flex: none; }
.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 4px var(--danger-soft) !important; }
.field-error { color: var(--danger); font-size: 13px; font-weight: 600; }
.shots-card .field-error { margin-top: 10px; }
.form-error {
  color: var(--danger); background: var(--danger-soft); border-radius: 12px;
  padding: 10px 12px; font-size: 14px; font-weight: 600; text-align: left;
}

.notice-card { display: flex; align-items: flex-start; gap: 12px; background: var(--warning-soft); border-color: transparent; box-shadow: none; }
.notice-icon { color: var(--warning); display: grid; padding-top: 1px; }
.notice-text { display: grid; gap: 2px; flex: 1; font-size: 14px; color: var(--text-2); }
.notice-text strong { color: var(--text); font-size: 15px; }

.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 12px calc(var(--gutter) + var(--safe-right)) calc(12px + var(--safe-bottom)) calc(var(--gutter) + var(--safe-left));
  background: linear-gradient(180deg, transparent, var(--bg) 26%);
  display: grid; gap: 10px; max-width: 560px; margin: 0 auto;
}

/* Done */
.done {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  padding-top: calc(24px + var(--safe-top)); padding-bottom: calc(24px + var(--safe-bottom));
}
.done-badge {
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 20px 40px -16px rgba(22, 163, 74, 0.8);
  animation: pop 0.4s ease;
}
.done-badge .icon { width: 44px; height: 44px; stroke-width: 2.5; }
.done h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.done-number { font-size: 22px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.done-sub { color: var(--muted); }
.done-actions { width: 100%; max-width: 400px; display: grid; gap: 10px; margin-top: 26px; }

/* Callback */
.callback {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 18px; padding-top: var(--safe-top); padding-bottom: var(--safe-bottom);
}
.callback > div { display: grid; gap: 12px; justify-items: center; width: 100%; max-width: 400px; }
.callback h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }

/* ── Editor ─────────────────────────────────────────────────────────────── */
.editor {
  position: fixed; inset: 0; z-index: 40; max-width: none; padding: 0;
  display: flex; flex-direction: column; background: #0b0d12; color: #fff;
}
.editor-top {
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + var(--safe-top)) calc(12px + var(--safe-right)) 8px calc(12px + var(--safe-left));
}
.ed-thumbs { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; justify-content: center; scrollbar-width: none; }
.ed-thumbs::-webkit-scrollbar { display: none; }
.ed-title { font-weight: 700; font-size: 16px; align-self: center; }
.ed-thumb {
  flex: none; width: 38px; height: 50px; padding: 0; border-radius: 9px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: #1f2330; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s;
}
.ed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ed-thumb.active { border-color: #fff; opacity: 1; }
.editor-stage { position: relative; flex: 1; min-height: 0; }
.editor-canvas {
  position: absolute; inset: 0; display: block;
  touch-action: none; -ms-touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.editor-hint {
  position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: rgba(15, 17, 26, 0.72); color: #fff; pointer-events: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: opacity 0.3s;
}
.editor-hint.gone { opacity: 0; }
.editor-bottom { padding: 8px calc(10px + var(--safe-right)) calc(10px + var(--safe-bottom)) calc(10px + var(--safe-left)); }
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 2px;
  max-width: 520px; margin: 0 auto; padding: 6px; border-radius: 22px;
  background: rgba(31, 35, 48, 0.92); border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
}
.tool {
  flex: 1; min-width: 0; min-height: 54px; border: 0; border-radius: 16px; background: transparent; color: #cbd5e1;
  display: grid; justify-items: center; align-content: center; gap: 3px; cursor: pointer; padding: 4px 2px;
  transition: background-color 0.15s, color 0.15s;
}
.tool .icon { width: 22px; height: 22px; }
.tool-label { font-size: 11px; font-weight: 600; letter-spacing: 0.01em; }
.tool.active { background: #fff; color: #0b0d12; }
.tool.active[data-tool] .icon { color: var(--mark); }
.tool:disabled { opacity: 0.35; }
.toolbar-sep { width: 1px; align-self: stretch; margin: 8px 2px; background: rgba(255, 255, 255, 0.12); flex: none; }

/* ── Sending overlay ─────────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px;
  background: rgba(10, 12, 20, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sending-card {
  width: 100%; max-width: 340px; background: var(--bg-elev); border-radius: 24px; padding: 26px 22px;
  box-shadow: var(--shadow-lg); display: grid; justify-items: center; gap: 14px; text-align: center;
}
.sending-card h2 { font-size: 18px; font-weight: 700; }
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--primary-soft); border-top-color: var(--primary); animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; text-align: left; }
.steps li {
  display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted);
  padding: 8px 10px; border-radius: 12px;
}
.steps li::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; box-sizing: border-box;
}
.steps li.current { color: var(--text); font-weight: 600; background: var(--primary-soft); }
.steps li.current::before { border-color: var(--primary); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.steps li.done { color: var(--text-2); }
.steps li.done::before { border: 0; background: var(--success); box-shadow: inset 0 0 0 5px var(--success); }
.steps li.skipped { display: none; }

/* ── Sheets ──────────────────────────────────────────────────────────────── */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(10, 12, 20, 0.45);
  opacity: 0; transition: opacity 0.2s ease;
}
.sheet-backdrop.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  max-width: 560px; margin: 0 auto; max-height: calc(100dvh - 40px - var(--safe-top));
  background: var(--bg-elev); border-radius: 26px 26px 0 0; box-shadow: var(--shadow-lg);
  padding: 8px calc(var(--gutter) + var(--safe-right)) calc(18px + var(--safe-bottom)) calc(var(--gutter) + var(--safe-left));
  display: flex; flex-direction: column; gap: 12px;
  transform: translateY(100%); transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet.show { transform: translateY(0); }
.sheet-tall { height: calc(100dvh - 56px - var(--safe-top)); }
.sheet-grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--border-strong); margin: 2px auto 2px; flex: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; flex: none; }
.sheet-head h2 { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.search-wrap { position: relative; flex: none; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; }
.search-icon .icon { width: 18px; height: 18px; }
.input.search { padding-left: 40px; min-height: 46px; }
.picker-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -8px; padding: 0 8px; }
.picker-row {
  width: 100%; min-height: 54px; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 8px 10px; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
}
.picker-row:active { background: var(--surface-2); }
.picker-row.selected { background: var(--primary-soft); }
.picker-text { flex: 1; min-width: 0; display: grid; }
.picker-main { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-check { color: var(--primary); display: grid; opacity: 0; }
.picker-row.selected .picker-check { opacity: 1; }
.picker-empty { color: var(--muted); text-align: center; padding: 28px 0; display: grid; gap: 12px; justify-items: center; }
.account-row { display: flex; align-items: center; gap: 14px; padding: 6px 0 8px; }
.account-row > div:last-child { display: grid; min-width: 0; }
.account-row strong { font-size: 17px; }
.confirm-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; padding-top: 6px; }
.confirm-text { color: var(--text-2); }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }

/* ── Toast ───────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + var(--safe-bottom)); z-index: 100;
  transform: translate(-50%, 12px); opacity: 0; transition: opacity 0.2s, transform 0.2s;
  max-width: calc(100% - 32px); width: max-content;
  padding: 11px 16px; border-radius: 14px; background: #111827; color: #fff;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.editing .toast { bottom: calc(100px + var(--safe-bottom)); }

.noscript { padding: 24px; text-align: center; }

@media (min-width: 600px) {
  .compose-body { padding-top: 8px; }
  .shot { width: 120px; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .welcome-scribble path { stroke-dashoffset: 0; }
  .welcome-note { opacity: 1; }
}
