:root {
  --color-text: #1c2434;
  --color-muted: #5c6778;
  --color-soft: #5f6b7c;
  --color-nav: #3d4a5c;
  --color-secondary: #4b5568;
  --color-brand: #2f6ef6;
  --color-brand-soft: #3b82f6;
  --color-surface: #fff;
  --color-line: #e7eef8;
  --color-line-alt: #e6eef8;
  --color-wash: #f7faff;
  --color-chip: #f4f8ff;
  --color-chip-line: #d9e6ff;
  --color-ok: #166534;
  --color-ok-badge: #1f9d55;
  --color-ok-bg: #e8f8ef;
  --color-bad: #991b1b;
  --color-bad-bg: #fdecec;
  --color-soon: #667085;
  --color-soon-bg: #f2f4f7;
  --radius-card: 16px;
  --radius-sheet: 18px;
  --radius-control: 12px;
  --radius-pill: 999px;
  --focus-ring: 0 0 0 3px rgba(47, 110, 246, 0.35);
  --shadow-card: 0 8px 24px rgba(28, 55, 110, 0.04);
  --shadow-sheet: 0 10px 30px rgba(47, 110, 246, 0.05);
  color: var(--color-text);
  background: #f4f7fd;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }

body { margin: 0; }

a { color: var(--color-brand); text-decoration: none; }

button, input, select, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid rgba(47, 110, 246, 0.55);
  outline-offset: 2px;
}

.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(420px 260px at 8% 18%, rgba(186, 214, 255, 0.45), transparent 70%),
    radial-gradient(380px 240px at 92% 12%, rgba(214, 228, 255, 0.7), transparent 72%),
    linear-gradient(#f8fbff, #f3f6fb 42%, #f7f8fb);
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 30;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: var(--color-brand);
  color: var(--color-surface);
  font-weight: 700;
}

.skip:focus, .skip:focus-visible, .skip.is-on {
  width: auto;
  height: auto;
  padding: 8px 14px;
  margin: 0;
  overflow: visible;
  clip: auto;
  border-radius: 8px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.offline-bar {
  margin: 0;
  padding: 8px 16px;
  text-align: center;
  background: #fff6e8;
  color: #92400e;
  border-bottom: 1px solid #f3d9b0;
}

.offline-bar[hidden] { display: none; }

.topbar, .site-foot {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar { min-height: 72px; }

.top-left { display: flex; align-items: center; gap: 28px; min-width: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--color-brand);
  color: var(--color-surface);
}

.logo svg { width: 18px; height: 18px; }

.topbar nav, .site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.topbar nav a {
  color: var(--color-nav);
  padding: 8px 2px 10px;
  border-bottom: 2px solid transparent;
}

.topbar nav a.active { color: var(--color-brand); border-bottom-color: var(--color-brand); font-weight: 650; }

.browse { flex: 1; display: flex; flex-direction: column; min-width: 0; width: 100%; }

.home, .sheet { width: min(1120px, calc(100% - 40px)); margin: 0 auto 28px; }

.sheet {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sheet);
  padding: 28px 28px 32px;
  box-shadow: var(--shadow-sheet);
}

.hero { position: relative; text-align: center; padding: 54px 0 18px; }

.hero h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero h1 span { color: var(--color-brand); }

.lede { margin: 12px 0 0; color: var(--color-muted); font-size: 16px; }

.hero-search {
  width: min(680px, 100%);
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-line-alt);
  border-radius: var(--radius-card);
  box-shadow: 0 12px 32px rgba(47, 110, 246, 0.08);
}

.hero-search:focus-within, .search input:focus-visible {
  box-shadow: var(--focus-ring);
}

.hero-search svg { width: 20px; height: 20px; color: #9aa6b8; flex: none; }

.hero-search input, .search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  padding: 8px 4px;
}

.hero-search input:focus, .hero-search button:focus {
  outline: none;
}

.hero-search button, .search button {
  border: 0;
  border-radius: var(--radius-control);
  background: var(--color-brand);
  color: var(--color-surface);
  padding: 10px 28px;
  font-weight: 700;
  cursor: pointer;
}

.hot { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; color: var(--color-soft); font-size: 14px; }

.hot a {
  color: var(--color-brand-soft);
  background: var(--color-chip);
  border: 1px solid var(--color-chip-line);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
}

.doodle {
  position: absolute;
  top: 78px;
  margin: 0;
  color: #c5d0e0;
  font-family: "KaiTi", "STKaiti", "楷体", cursive;
  font-size: 15px;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.doodle svg { width: 54px; height: 22px; margin-top: 2px; }

.doodle-left { left: 8px; transform: rotate(-8deg); }

.doodle-right { right: 8px; transform: rotate(7deg); align-items: flex-end; }

.doodle-left::before, .doodle-right::after {
  content: "";
  position: absolute;
  width: 54px;
  height: 42px;
  background-image: radial-gradient(#d5deea 1.2px, transparent 1.3px);
  background-size: 8px 8px;
  opacity: 0.7;
}

.doodle-left::before { left: 78px; top: -18px; }

.doodle-right::after { right: 86px; top: -8px; }

.recommend { padding: 34px 0 10px; }

.recommend-head, .recommend-head div { display: flex; align-items: baseline; }

.recommend-head { justify-content: space-between; gap: 12px; }

.recommend-head div { flex-direction: column; align-items: flex-start; }

.recommend h2 { margin: 0; font-size: 22px; }

.recommend-head p { margin: 4px 0 0; color: var(--color-soft); font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }

.card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  color: inherit;
  box-shadow: var(--shadow-card);
}

.card:hover { border-color: #c9dafc; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.card-icon svg { width: 24px; height: 24px; }

.tone-blue { background: #e8f1ff; color: #3b82f6; }
.tone-purple { background: #f1e9ff; color: #8b5cf6; }
.tone-violet { background: #eee9ff; color: #7c6cf0; }
.tone-red { background: #ffe9e8; color: #f05252; }
.tone-green { background: #e7f8ee; color: #22a35a; }
.tone-cyan { background: #e7f7fb; color: #22a7c7; }

.card-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }

.card-tag { color: var(--color-soft); font-size: 12px; }

.card strong { font-size: 16px; }

.card-desc { color: var(--color-muted); font-size: 13px; }

.card em {
  margin-top: 6px;
  font-style: normal;
  font-size: 12px;
  border-radius: var(--radius-pill);
  padding: 1px 8px;
}

.card em.ready { color: var(--color-ok-badge); background: var(--color-ok-bg); }

.card em.soon { color: var(--color-soon); background: var(--color-soon-bg); }

.card-go { color: #c5ceda; font-size: 22px; line-height: 1; }

.site-foot {
  margin-top: auto;
  padding: 22px 0 28px;
  border-top: 1px solid #e6eef6;
  color: var(--color-soft);
}

.foot-brand { display: flex; align-items: center; gap: 14px; }

.foot-copy { display: flex; flex-direction: column; gap: 4px; }
.foot-brand p { margin: 0; font-size: 13px; }
.site-meta a { color: var(--color-soft); }

.top-search, .top-search-form, .cat-strip { display: none; }

.tool-notes { margin-top: 28px; }
.tool-notes summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 650;
}

.site-foot nav a { color: var(--color-secondary); font-size: 14px; }

h1 { font-size: 1.7rem; margin: 0 0 8px; }

.crumb { margin: 0 0 8px; color: var(--color-muted); }

.crumb a { color: var(--color-muted); }

.tool-page { width: min(1120px, calc(100% - 40px)); margin: 8px auto 28px; }

.tool-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }

.tool-head h1 { margin: 0; font-size: 32px; letter-spacing: -0.03em; }

.tool-head .lede { margin: 6px 0 0; }
.task-local { margin: 8px 0 0; color: var(--color-secondary); font-size: 14px; }

.tool-head em { margin-top: 28px; font-style: normal; font-size: 12px; border-radius: var(--radius-pill); padding: 2px 10px; }

.tool-head em.ready { color: var(--color-ok-badge); background: var(--color-ok-bg); }

.tool-head em.soon { color: var(--color-soon); background: var(--color-soon-bg); }

.search { display: flex; gap: 8px; margin: 16px 0; }

.search input {
  border: 1px solid #e1e8f2;
  border-radius: var(--radius-control);
  padding: 10px 12px;
  background: var(--color-surface);
}

.empty {
  margin: 24px 0 0;
  padding: 32px 20px;
  text-align: center;
  color: var(--color-muted);
  background: var(--color-wash);
  border: 1px dashed var(--color-chip-line);
  border-radius: var(--radius-sheet);
}

.tool { display: flex; flex-direction: column; gap: 12px; }

.work {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.75fr);
  gap: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sheet);
  padding: 18px;
  box-shadow: var(--shadow-sheet);
}

.work.bar { display: flex; flex-wrap: wrap; align-items: flex-end; }

.work.bar .field { flex: 1 1 140px; }

.work.bar .message, .work.bar .result-bar { flex: 1 0 100%; }

.work.bar button { flex: 0 0 auto; align-self: flex-end; }

.source, .controls, .field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.field { color: var(--color-secondary); font-size: 13px; }

.drop {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  border: 1.5px dashed #c5d7fb;
  border-radius: var(--radius-card);
  background: var(--color-wash);
  cursor: pointer;
}

.drop:focus-within { box-shadow: var(--focus-ring); }

.drop.has-file { border-style: solid; background: var(--color-surface); }

.drop.has-file .drop-title, .drop.has-file .drop-hint { display: none; }

.drop-title { color: var(--color-text); font-size: 16px; }

.drop-hint, .drop-name { color: var(--color-muted); font-size: 13px; }

.drop-preview { max-width: 100%; max-height: 180px; border-radius: 10px; object-fit: contain; }

.drop-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-input:focus { outline: none; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }

.tool button.primary {
  border: 0;
  border-radius: var(--radius-control);
  background: var(--color-brand);
  color: var(--color-surface);
  padding: 10px 22px;
  font-weight: 700;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pills label, .tool button[data-preset], .tool button[data-ratio] {
  border: 1px solid var(--color-chip-line);
  border-radius: var(--radius-pill);
  background: var(--color-chip);
  color: var(--color-brand-soft);
  padding: 4px 12px;
}

.pills label { position: relative; cursor: pointer; }

.pills input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0.02;
  cursor: pointer;
}

.pills label:has(input:focus-visible) { box-shadow: var(--focus-ring); }

.pills input:focus { outline: none; }

.pills label:has(input:checked), .tool button[data-preset]:hover, .tool button[data-ratio]:hover {
  background: var(--color-brand);
  color: var(--color-surface);
}

.tool input[type=range] { accent-color: var(--color-brand); width: 100%; }

.result-bar {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--color-wash);
  font-weight: 700;
}

.source textarea, .controls textarea { min-height: 220px; }

.field input, .field select, textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #d7e0ec;
  border-radius: 8px;
  background: var(--color-surface);
}

textarea { min-height: 140px; }

button {
  padding: 8px 12px;
  border: 1px solid #d5deea;
  border-radius: 8px;
  background: var(--color-surface);
  cursor: pointer;
}

.note { color: var(--color-secondary); }

.split-help {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-control);
  background: var(--color-chip);
  color: #3d4a5c;
  font-size: 13px;
  line-height: 1.65;
}

.message { margin: 0; padding: 10px 12px; border-radius: var(--radius-control); background: var(--color-wash); }

.message:empty { display: none; }

.message.ok, .message.done { color: var(--color-ok); background: var(--color-ok-bg); }
.local-handoff { margin: 8px 0 0; font-size: 14px; }
.local-handoff[hidden] { display: none; }
.work.bar .local-handoff { flex: 1 0 100%; }
.handoff-lead, .handoff-body { margin: 0; }
.handoff-body { margin-top: 6px; }
.handoff-body a { overflow-wrap: anywhere; }
.local-handoff button { margin-top: 8px; min-height: 32px; padding: 0 12px; }

.message.bad { color: var(--color-bad); background: var(--color-bad-bg); }

.message.busy { color: var(--color-secondary); background: var(--color-chip); }

.preview, .preview-text, img[data-act=preview] { max-width: 100%; background: var(--color-surface); border: 1px solid var(--color-line); }

.crop-stage {
  position: relative;
  width: 100%;
  touch-action: none;
  user-select: none;
  border-radius: var(--radius-control);
  overflow: hidden;
}

.crop-stage canvas.preview { display: block; border: 0; cursor: crosshair; }

.crop-box {
  position: absolute;
  box-sizing: border-box;
  border: 2px solid var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-brand), 0 0 0 9999px rgba(28, 36, 52, 0.45);
  cursor: move;
}

.crop-box i {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-surface);
  border: 2px solid var(--color-brand);
  border-radius: 2px;
  box-sizing: border-box;
}

.crop-box i[data-handle=nw] { top: 0; left: 0; cursor: nwse-resize; }
.crop-box i[data-handle=ne] { top: 0; right: 0; cursor: nesw-resize; }
.crop-box i[data-handle=se] { right: 0; bottom: 0; cursor: nwse-resize; }
.crop-box i[data-handle=sw] { left: 0; bottom: 0; cursor: nesw-resize; }
.crop-box i[data-handle=n] { top: 0; left: calc(50% - 6px); cursor: ns-resize; }
.crop-box i[data-handle=s] { bottom: 0; left: calc(50% - 6px); cursor: ns-resize; }
.crop-box i[data-handle=e] { right: 0; top: calc(50% - 6px); cursor: ew-resize; }
.crop-box i[data-handle=w] { left: 0; top: calc(50% - 6px); cursor: ew-resize; }

.tool button[data-ratio].is-on { background: var(--color-brand); color: var(--color-surface); }

.preview-text { padding: 8px; }

.tool-doc { margin-top: 28px; }
.tool-doc h2 { margin: 0 0 8px; font-size: 18px; }
.tool-doc p, .tool-doc li { margin: 0 0 8px; }
.tool-doc ul, .tool-doc ol { margin: 0; padding-left: 1.2em; }

.table-wrap { overflow-x: auto; }

table { border-collapse: collapse; background: var(--color-surface); }

td, th { border: 1px solid var(--color-line); padding: 4px 8px; text-align: left; }

.selected { font-weight: 650; }

dl { display: grid; grid-template-columns: 12em 1fr; gap: 4px 8px; }

.row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }

@media (max-width: 980px) {
  .doodle { display: none; }
  .cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .topbar, .site-foot, .foot-brand { align-items: flex-start; flex-wrap: wrap; }
  .top-left, .foot-brand { flex-wrap: wrap; }
  .work { grid-template-columns: 1fr; }
  .tool-head { flex-direction: column; }
  .tool-head em { margin-top: 0; }
}

@media (max-width: 420px) {
  .topbar, .site-foot, .home, .sheet, .tool-page { width: min(1120px, calc(100% - 24px)); }
  .top-left { gap: 12px; }
  .topbar nav, .site-foot nav { gap: 6px 12px; }
  .hero { padding: 28px 0 12px; }
  .hero h1 { font-size: 28px; }
  .sheet { padding: 18px 16px 24px; }
  .card { padding: 14px; }
}

@media (min-width: 761px) {
  .tool-notes summary { display: none; }
}

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    top: max(10px, env(safe-area-inset-top));
    z-index: 30;
    width: min(1120px, calc(100% - 32px));
    height: auto;
    min-height: 0;
    margin: 12px auto 0;
    padding: 8px 8px 8px 14px;
    background: #fff;
    border: 1px solid rgba(231, 238, 248, 0.95);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(28, 55, 110, 0.06);
    flex-wrap: nowrap;
    align-items: center;
  }

  .topbar::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: -14px;
    right: -14px;
    top: -24px;
    height: calc(100% + 24px);
    background: linear-gradient(180deg, #f8fbff 0 78%, rgba(248, 251, 255, 0));
    pointer-events: none;
  }

  .top-left { flex: 1; min-width: 0; gap: 0; }
  .topbar .main-nav { display: none; }

  .top-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-nav);
  }

  .top-search svg { width: 22px; height: 22px; }

  .topbar.is-searching { padding-left: 12px; }
  .topbar.is-searching .top-left,
  .topbar.is-searching .top-search { display: none; }

  .top-search-form { align-items: center; gap: 8px; width: 100%; }
  .topbar.is-searching .top-search-form { display: flex; }

  .top-search-form input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-control);
    padding: 0 12px;
    background: var(--color-surface);
  }

  .top-search-form button {
    min-height: 44px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: var(--color-brand);
    font-weight: 700;
  }

  .home, .sheet, .tool-page { width: min(1120px, calc(100% - 32px)); }
  .sheet { margin-top: 4px; padding: 18px 16px 22px; }
  .sheet:has(.cards) {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 2px 0 8px;
  }
  .sheet > h1 { font-size: 1.35rem; letter-spacing: -0.03em; margin: 6px 2px 12px; }
  .sheet:has(.cards) .cards { margin-top: 0; }
  .hot { display: none; }
  .recommend { padding-top: 18px; }

  .browse > .cat-strip {
    width: min(1120px, calc(100% - 32px));
    margin: 14px auto 0;
  }

  .home .cat-strip {
    width: 100%;
    margin: 16px 0 0;
  }

  .cat-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    position: sticky;
    top: calc(max(10px, env(safe-area-inset-top)) + 62px);
    z-index: 24;
    margin: 0;
    padding: 12px 0 16px;
    background: transparent;
  }

  .cat-strip::-webkit-scrollbar { display: none; }

  .cat-strip a {
    flex: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid #e3ebf6;
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--color-nav);
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(28, 55, 110, 0.04);
  }

  .cat-strip a.active {
    color: #fff;
    background: var(--color-brand);
    border-color: var(--color-brand);
    box-shadow: none;
  }

  .site-foot {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto calc(16px + env(safe-area-inset-bottom));
    padding: 18px 16px 10px;
    background: #fff;
    border: 1px solid rgba(231, 238, 248, 0.95);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(28, 55, 110, 0.05);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  .foot-brand {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    width: 100%;
  }

  .foot-copy { width: 100%; gap: 6px; }
  .site-slogan {
    width: 100%;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.55;
  }
  .site-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    margin-top: 2px;
    color: #8b97a8;
    font-size: 12px;
    line-height: 1.45;
  }
  .site-meta a { color: #8b97a8; }
  .site-foot nav {
    width: 100%;
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid var(--color-line);
    justify-content: flex-start;
    gap: 2px 18px;
  }
  .site-foot nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: var(--color-secondary);
  }

  .card, .card-copy, .card strong, .card-desc { min-width: 0; overflow-wrap: break-word; }
  .card-desc { line-height: 1.5; }
  .field input, .field select, .search input, .search button, .hero-search input, .hero-search button, .tool button, input[type=range] { min-height: 44px; }
  textarea { min-height: 12rem; }
  .drop { min-height: 160px; }
  .tool button.primary { width: 100%; }
  dl { grid-template-columns: 1fr; }

  .page:has(.tool.has-task) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  .tool.has-task button.primary {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    z-index: 25;
    box-shadow: 0 8px 24px rgba(47, 110, 246, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .doodle { display: none; }
}
