:root {
  color-scheme: light;
  --bg: #eef7fd;
  --surface: #ffffff;
  --surface-soft: #f4fbff;
  --text: #26313d;
  --muted: #7b8a98;
  --line: #d9eaf4;
  --green: #5dc8a1;
  --blue: #58a9d4;
  --rose: #ef92a7;
  --gold: #d7a94f;
  --lavender: #9b8fe9;
  --shadow: 0 16px 38px rgba(77, 143, 177, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

button {
  font: inherit;
}

input {
  font: inherit;
  font-size: 16px;
}

select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  padding: 24px 16px;
  place-items: center;
}

.login-card {
  width: min(100%, 360px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.login-card .avatar {
  margin-bottom: 14px;
}

.login-card p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.login-card label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.login-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
}

.login-card button {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-weight: 800;
}

.login-card small {
  display: block;
  min-height: 18px;
  margin-top: 10px;
  color: var(--rose);
  font-weight: 700;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 16px 104px;
  background: linear-gradient(180deg, #f5fbff 0, var(--bg) 260px);
}

.topbar,
.baby-profile,
.top-actions,
.section-heading,
.profile-card,
.module-row,
.bottom-nav {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
  line-height: 1.15;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
}

h3 {
  font-size: 17px;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.baby-profile {
  gap: 10px;
}

.baby-profile p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.profile-button,
.avatar {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  font-weight: 800;
}

.top-actions {
  gap: 10px;
}

.top-actions button {
  min-width: 64px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 20px rgba(86, 151, 187, 0.13);
  color: var(--blue);
  font-weight: 800;
}

.sync-button {
  padding: 0 14px;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.today-title {
  color: var(--blue);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sync-button.warn {
  color: var(--rose);
}

.primary-action,
.secondary-action,
.feature-panel button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-weight: 750;
}

.primary-action {
  width: 128px;
}

.secondary-action {
  padding: 0 18px;
}

.button-pair {
  display: flex;
  gap: 8px;
}

.feature-panel,
.placeholder-panel,
.profile-card,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.module-row small,
.timeline small,
.placeholder-panel p,
.feature-panel p,
.profile-card p {
  color: var(--muted);
}

.module-row small,
.timeline small {
  display: block;
  font-size: 12px;
}

.latest-feeding { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; font-size: 13px; }
.latest-feeding > span:first-child { color: var(--muted); }
#latest-feed-title { min-width: 0; overflow-wrap: anywhere; }
.upcoming-list { overflow: hidden; border-radius: 12px; background: var(--surface); }
.upcoming-row { display: grid; grid-template-columns: 28px 86px minmax(0, 1fr) 12px; align-items: center; gap: 9px; width: 100%; min-height: 66px; padding: 12px; border: 0; background: transparent; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.upcoming-row + .upcoming-row { border-top: 1px solid var(--line); }
.upcoming-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 13px; }
.upcoming-date { font-size: 12px; font-weight: 700; }
.upcoming-info { min-width: 0; overflow-wrap: anywhere; }
.upcoming-info strong, .upcoming-info small { display: block; }
.upcoming-info strong { font-size: 14px; }
.upcoming-info small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.upcoming-row.overdue .upcoming-info small { color: var(--rose); }
.upcoming-arrow { color: var(--muted); }
.upcoming-row:focus-visible, .undated-plans button:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.upcoming-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 13px; }
.undated-plans button { display: block; width: 100%; min-height: 44px; padding: 10px 0; border: 0; background: transparent; color: var(--blue); text-align: left; font: inherit; font-size: 13px; cursor: pointer; }

.section-block,
.page-heading {
  margin-top: 18px;
}

.section-heading {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

.compact-heading {
  margin-top: 18px;
  margin-bottom: 8px;
}

.feeding-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.feed-type-grid {
  display: flex;
  gap: 10px;
  margin: 12px -16px 0;
  overflow-x: auto;
  padding: 0 16px 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.feed-type-grid::-webkit-scrollbar {
  display: none;
}

.feed-type-grid button {
  display: grid;
  justify-items: center;
  gap: 7px;
  flex: 0 0 84px;
  min-height: 92px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(86, 151, 187, 0.12);
}

.feed-type-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-top: 8px;
  border-radius: 50%;
  font-size: 24px;
}

.breast-icon {
  background: #ffe1ed;
}

.formula-icon {
  background: #e3efff;
}

.food-icon {
  background: #fff0cc;
}

.diaper-icon {
  background: #d7f6f4;
}

.supplement-icon {
  background: #e4f7ef;
}

.feeding-overview article {
  min-height: 76px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(86, 151, 187, 0.1);
}

.feeding-overview span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.feeding-overview strong {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 18px;
  line-height: 1.1;
}

.module-list,
.timeline,
.health-grid {
  display: grid;
  gap: 10px;
}

.home-timeline {
  position: relative;
  gap: 8px;
}

.module-row {
  width: 100%;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: left;
}

.module-row strong {
  display: block;
  margin-bottom: 4px;
}

.module-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.feeding-mark {
  background: var(--green);
}

.vaccine-mark {
  background: var(--rose);
}

.checkup-mark {
  background: var(--blue);
}

.diary-mark {
  background: var(--gold);
}

.placeholder-panel,
.feature-panel,
.profile-card {
  padding: 18px;
}

.placeholder-panel p,
.feature-panel p,
.profile-card p {
  margin-top: 8px;
  line-height: 1.6;
}

.timeline {
  margin-top: 12px;
}

.timeline article {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 24px;
  padding: 0;
  border: 0;
  background: transparent;
}

.timeline span {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.timeline strong {
  display: block;
  margin: 0;
}

.timeline-time {
  position: relative;
  padding-top: 10px;
  text-align: left;
}

.timeline-time small {
  margin-top: 1px;
  font-size: 11px;
}

.timeline-card {
  min-height: 70px;
  padding: 14px 14px 14px 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(85, 148, 182, 0.12);
  position: relative;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(88, 169, 212, 0.14);
}

.timeline-card::after {
  content: "";
  position: absolute;
  left: -12px;
  top: 34px;
  bottom: -18px;
  width: 1px;
  background: rgba(88, 169, 212, 0.25);
}

.timeline article:last-child .timeline-card::after {
  display: none;
}

.record-icon {
  position: absolute;
  left: 12px;
  top: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.record-meta {
  margin-top: 6px;
}


.compact-modules .module-list {
  grid-template-columns: 1fr;
}

.timeline:empty {
  display: none;
}

.split-list {
  margin-top: 12px;
}

.health-grid {
  grid-template-columns: 1fr 1fr;
}

.feature-panel .module-mark {
  margin-bottom: 14px;
}

.feature-panel button {
  width: 100%;
  margin-top: 16px;
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.profile-card {
  gap: 14px;
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 480px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 -10px 30px rgba(88, 147, 178, 0.14);
}

.bottom-nav button {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.bottom-nav button.active {
  background: #eaf7ff;
  color: var(--blue);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  font-size: 24px;
  line-height: 1;
}

.feed-sheet {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  width: min(100%, 480px);
  margin: 0 auto;
  background: rgba(218, 236, 245, 0.78);
  backdrop-filter: blur(10px);
}

.feed-form {
  min-height: 92vh;
  padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
  color: var(--text);
}

.sheet-head {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin-bottom: 34px;
}

.sheet-head h2 {
  color: var(--text);
  font-size: 19px;
  text-align: center;
}

.sheet-card {
  display: grid;
  min-height: 58vh;
  padding: 28px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(88, 147, 178, 0.16);
}

.feed-hero {
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  margin: 0 auto 22px;
  border-radius: 32px;
  background: var(--surface-soft);
  font-size: 68px;
}

.feed-form label {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
}

.feed-form input,
.feed-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #f6f9fb;
  color: var(--text);
  padding: 0 12px;
  text-align: right;
}

.feed-form .select-row input,
.feed-form .select-row select {
  padding-right: 34px;
}

.select-row::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 13px;
  height: 18px;
  transform: translateY(-50%);
  background:
    linear-gradient(135deg, transparent 50%, #9aa8b5 50%) 1px 2px / 6px 6px no-repeat,
    linear-gradient(225deg, transparent 50%, #9aa8b5 50%) 6px 2px / 6px 6px no-repeat,
    linear-gradient(45deg, transparent 50%, #9aa8b5 50%) 1px 11px / 6px 6px no-repeat,
    linear-gradient(315deg, transparent 50%, #9aa8b5 50%) 6px 11px / 6px 6px no-repeat;
  pointer-events: none;
}

.supplement-tags {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
}

.supplement-tags div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.supplement-tags button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #f1f7fb;
  color: var(--text);
  font-weight: 750;
}

.feed-form input[type="time"] {
  appearance: none;
}

.feed-form select {
  appearance: none;
}

.feed-form small {
  position: absolute;
  right: 12px;
  color: var(--muted);
  font-size: 18px;
  pointer-events: none;
}

#feed-amount {
  padding-right: 44px;
}

.sheet-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
  margin-top: 90px;
}

.cancel-feed,
.save-feed {
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  font-size: 19px;
  font-weight: 850;
}

.cancel-feed {
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  border: 1px solid var(--line);
}

.save-feed {
  background: linear-gradient(90deg, #35c7d0, #57b3dc);
  color: #fff;
}

.feed-sheet[data-kind="formula"] .save-feed {
  background: linear-gradient(90deg, #58a9d4, #76c7e8);
}

.feed-sheet[data-kind="diaper"] .save-feed {
  background: linear-gradient(90deg, #49c7be, #80d8d3);
}

.feed-sheet[data-kind="breast"] .save-feed {
  background: linear-gradient(90deg, #ef92a7, #f7b7c5);
}

.feed-sheet[data-kind="supplement"] .save-feed {
  background: linear-gradient(90deg, #1fc7c6, #3bd6d1);
}

@media (max-width: 380px) {
  .health-grid {
    grid-template-columns: 1fr;
  }

  .primary-action {
    width: 100%;
  }

  .feed-type-grid {
    margin-right: -16px;
  }
}

/* 疫苗沿用喂养的底部表单、卡片与主题色。 */
.vaccine-sheet {
  overflow-y: auto;
  overscroll-behavior: contain;
  align-items: start;
}

.vaccine-form {
  min-height: 100%;
}

.vaccine-form .sheet-head {
  margin-bottom: 18px;
}

.vaccine-form .sheet-card {
  min-height: 0;
  padding: 20px 16px;
}

.vaccine-form .feed-hero {
  width: 68px;
  height: 68px;
  margin-bottom: 12px;
  border-radius: 22px;
  background: var(--rose);
  color: #fff;
  font-size: 32px;
}

.vaccine-form label {
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
  font-size: 15px;
}

.vaccine-form input,
.vaccine-form select,
.vaccine-form textarea {
  font: inherit;
  font-size: 16px;
}

.vaccine-form textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f6f9fb;
  color: var(--text);
}

.vaccine-note-row {
  padding: 8px 0;
}

.vaccine-form-hint,
.vaccine-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.vaccine-form-hint {
  margin: 8px 0;
}

.vaccine-form-hint:empty,
.vaccine-error:empty {
  display: none;
}

.vaccine-empty {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.65);
}

.vaccine-form .sheet-actions {
  margin-top: 20px;
}

.vaccine-form .save-feed {
  background: linear-gradient(90deg, #ef92a7, #f7b7c5);
}

.vaccine-status {
  margin-top: 8px;
}

.vaccine-card .overdue,
.vaccine-error {
  color: #ac5269;
}

.vaccine-error {
  margin-top: 8px;
  font-size: 14px;
}

.timeline-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.vaccine-card .record-meta {
  white-space: pre-wrap;
}

.home-timeline .timeline-time span {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.account-details { margin: 24px 0 32px; }
.account-details dt { color: var(--muted); margin-top: 16px; }
.account-details dd { margin: 8px 0 0; display: flex; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.account-details input { min-width: 0; flex: 1; font-size: 16px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--text); }
.account-details button { flex-shrink: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; background: var(--surface); color: var(--text); }
.logout-button { margin-top: 32px; width: 100%; }
.growth-mark { background: #e2f4ea; color: #287351; }
#growth-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#growth-overview strong { font-size: 18px; overflow-wrap: anywhere; }
#growth-overview small { display: block; font-size: 11px; margin-top: 5px; }

/* 体检复用疫苗表单，以现有蓝色区分。 */
.checkup-form .feed-hero { background: var(--blue); }
.checkup-form .save-feed { background: linear-gradient(90deg, #58a9d4, #76c7e8); }
.nav-vaccine, .nav-checkup { border-radius: 50%; font-size: 16px; }
.nav-vaccine { background: #ffe1ed; color: #ac5269; }
.nav-checkup { background: #e3efff; color: #3979a5; }
/* 疫苗、体检的线条图标（针筒、听诊器，线条取自 Lucide，ISC 许可）。用遮罩绘制，颜色跟随 currentColor。 */
.icon-syringe::before,
.icon-stethoscope::before {
  content: "";
  display: block;
  width: 62%;
  height: 62%;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.icon-syringe { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 2 4 4'/%3E%3Cpath d='m17 7 3-3'/%3E%3Cpath d='M19 9 8.7 19.3c-.9.9-2.5.9-3.4 0l-.6-.6c-.9-.9-.9-2.5 0-3.4L15 5'/%3E%3Cpath d='m9 11 4 4'/%3E%3Cpath d='m5 19-3 3'/%3E%3Cpath d='m14 4 6 6'/%3E%3C/svg%3E"); }
.icon-stethoscope { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 2v2'/%3E%3Cpath d='M5 2v2'/%3E%3Cpath d='M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1'/%3E%3Cpath d='M8 15a6 6 0 0 0 12 0v-3'/%3E%3Ccircle cx='20' cy='10' r='2'/%3E%3C/svg%3E"); }
.feed-hero.icon-syringe::before, .feed-hero.icon-stethoscope::before { width: 50%; height: 50%; }
#vaccine-form .feed-hero, #checkup-form .feed-hero { color: #fff; }
.record-icon.vaccine-mark, .upcoming-icon.vaccine-mark { background: #ffe1ed; color: #ac5269; }
.record-icon.checkup-mark, .upcoming-icon.checkup-mark { background: #e3efff; color: #3979a5; }
.module-mark { display: grid; place-items: center; color: #fff; }
.report-section { margin-top: 18px; }
.report-section h3 { font-size: 15px; }
.report-list { display: grid; gap: 8px; margin-top: 10px; }
.report-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.report-row span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 500; }
.report-row button, .report-list > button {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  background: var(--surface-soft); color: #3979a5; font: inherit; font-size: 12px;
  min-height: 36px; text-align: left; overflow-wrap: anywhere;
}
.checkup-form .report-picker { display: block; border: 0; margin-top: 12px; }
.report-picker span { display: block; margin-bottom: 8px; font-size: 13px; }
.report-picker input { padding: 10px 0; text-align: left; font-size: 13px; }
.checkup-card .record-meta { white-space: pre-wrap; }
.checkup-card .overdue { color: #ac5269; }
button:disabled { opacity: 0.6; cursor: wait; }
.backup-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
.backup-actions button { flex: 1; min-height: 44px; }
#backup-status { font-size: 14px; overflow-wrap: anywhere; }
#backup-download { display: inline-block; padding: 12px 0; }
#backup-download[hidden] { display: none; }

/* 记录左滑操作：外层保留时间线圆点和竖线，仅 .swipe-content 滑动。 */
.timeline-card.action-card { min-height: 0; padding: 0; background: none; box-shadow: none; }
.swipe-clip { position: relative; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(85, 148, 182, 0.12); }
.swipe-content { position: relative; min-height: 70px; padding: 14px 14px 14px 42px; background: #fff; touch-action: pan-y; cursor: pointer; transition: transform 0.2s ease; }
.swipe-content:focus-visible { outline: 2px solid #3979a5; outline-offset: -2px; border-radius: 12px; }
.swipe-clip.dragging .swipe-content { transition: none; cursor: grabbing; user-select: none; -webkit-user-select: none; }
.swipe-actions { position: absolute; top: 0; right: 0; bottom: 0; display: flex; width: 72px; visibility: hidden; transition: visibility 0s linear 0.2s; }
.swipe-clip.revealed .swipe-actions { visibility: visible; transition-delay: 0s; }
.swipe-actions button { flex: 1; min-width: 0; border: 0; border-radius: 0; color: #fff; font: inherit; font-size: 14px; font-weight: 800; }
.swipe-delete { background: #d64545; }
.swipe-actions button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) { .swipe-content, .swipe-actions { transition: none; } }
.feed-sheet { touch-action: pan-y; }
.feed-sheet > form { transition: transform 0.18s ease; }
.feed-sheet.sheet-dragging > form { transition: none; user-select: none; -webkit-user-select: none; }
@media (prefers-reduced-motion: reduce) { .feed-sheet > form { transition: none; } }
