:root {
  --linen: #f6efe6;
  --paper: #fffaf3;
  --ink: #4a372c;
  --muted: #9a7f6c;
  --line: #eadfd3;
  --cocoa: #8a5a32;
  --honey: #c9924a;
  --cream: #f3e2c8;
  --moss: #6f8f6a;
  --clay: #c56b55;
  --shadow: 0 10px 28px rgba(90, 58, 36, 0.07);
  --wash: #f3ebe1;
  --tabbar: rgba(255, 250, 243, 0.88);
  --glow: rgba(232, 196, 140, 0.28);
  --page-bg: #e8d8c6;
  --desk: #d9c4aa;
  --orb-1: rgba(255, 228, 186, 0.7);
  --orb-2: rgba(232, 176, 120, 0.28);
  --orb-3: rgba(255, 248, 236, 0.55);
  --petal: #e8b87a;
  --mark: rgba(138, 90, 50, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--desk);
  color: var(--ink);
}

.phone {
  width: min(430px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 86% -6%, var(--glow), transparent 52%),
    radial-gradient(ellipse 60% 40% at 0% 18%, var(--orb-1), transparent 58%),
    radial-gradient(ellipse 70% 36% at 100% 78%, var(--orb-2), transparent 60%),
    var(--linen);
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  background-image:
    radial-gradient(var(--mark) 1.1px, transparent 1.2px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 18px 18px, 140px 140px;
  mix-blend-mode: multiply;
}

.phone::after {
  content: "";
  position: absolute;
  inset: -10% -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 12%, var(--orb-3), transparent 26%),
    radial-gradient(circle at 88% 22%, var(--orb-2), transparent 24%);
  animation: haze 14s ease-in-out infinite;
}
.phone-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
}

body.theme-yier,
.phone.theme-yier {
  --linen: #faf0f2;
  --paper: #fff8f9;
  --ink: #5a3840;
  --muted: #b08790;
  --line: #f0d8dc;
  --cocoa: #c45d72;
  --honey: #e8a4ae;
  --cream: #f8e4e6;
  --shadow: 0 10px 28px rgba(180, 80, 100, 0.09);
  --wash: #f6e6e8;
  --tabbar: rgba(255, 248, 249, 0.88);
  --glow: rgba(244, 170, 180, 0.4);
  --page-bg: #e8cdd2;
  --desk: #e3c0c6;
  --orb-1: rgba(255, 214, 220, 0.72);
  --orb-2: rgba(236, 140, 158, 0.22);
  --orb-3: rgba(255, 236, 240, 0.65);
  --petal: #f0a8b4;
  --mark: rgba(196, 93, 114, 0.09);
}

body.theme-bubu,
.phone.theme-bubu {
  --linen: #f3e6d2;
  --paper: #fff8ee;
  --ink: #4a3018;
  --muted: #9a7858;
  --line: #e6d2b8;
  --cocoa: #8a5524;
  --honey: #c9924a;
  --cream: #f0d8b4;
  --shadow: 0 10px 28px rgba(90, 50, 20, 0.09);
  --wash: #efe0cc;
  --tabbar: rgba(255, 248, 238, 0.88);
  --glow: rgba(220, 160, 80, 0.36);
  --page-bg: #d8c0a0;
  --desk: #c9ae88;
  --orb-1: rgba(255, 226, 176, 0.7);
  --orb-2: rgba(201, 146, 74, 0.22);
  --orb-3: rgba(255, 244, 220, 0.6);
  --petal: #d4a25a;
  --mark: rgba(138, 85, 36, 0.1);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 11px 12px;
  outline: none;
  color: var(--ink);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 18px 18px calc(96px + env(safe-area-inset-bottom));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.eyebrow { color: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.h1 { margin: 2px 0 0; font-size: 24px; font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; }

.card, .panel, .soft-box, .scene {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 42%),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  padding: 18px;
}

.scene {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 18px 10px 10px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 20%, var(--orb-1), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 46%),
    var(--paper);
}
.scene-copy { flex: 1; min-width: 0; padding-bottom: 8px; }
.scene-art { width: 148px; flex: none; margin-bottom: -6px; }
.scene-art .bear { width: 148px; height: auto; display: block; object-fit: contain; }

.money { font-size: 34px; font-weight: 750; letter-spacing: 0.01em; margin: 6px 0 14px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split .label { font-size: 12px; color: var(--muted); }
.split .num { font-size: 17px; margin-top: 3px; font-weight: 700; }
.income { color: var(--moss); }
.expense { color: var(--clay); }

.notice {
  margin-top: 12px;
  width: 100%;
  text-align: left;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--cocoa);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 2px 10px;
  color: var(--muted);
  font-size: 13px;
}

.list { display: grid; gap: 8px; min-width: 0; overflow: hidden; }
.item, .row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
  padding: 12px 4px;
  background: transparent;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  border-radius: 0;
}
.item:last-child, .list .item:last-child { border-bottom: 0; }
.dot-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--wash);
  flex: none;
  font-size: 18px;
}
.grow { flex: 1 1 0; min-width: 0; overflow: hidden; }
.title {
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sub {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.sub-text {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item .bear-wrap.xs { flex: none; }
.amt {
  flex: none;
  white-space: nowrap;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.amt.minus { color: var(--clay); }
.amt.plus { color: var(--moss); }
.tag {
  display: inline-flex;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 11px;
  margin-left: 6px;
  background: var(--wash);
  color: var(--cocoa);
}
.tag.pending {
  background: #ffe4df;
  color: #9a4a42;
}
.tag.rejected {
  background: #f3e6e4;
  color: #9a4a42;
}
.tag.deleted {
  background: #ece6df;
  color: #8a7a6e;
}
.item.gone {
  opacity: 0.58;
}
.item.gone .amt {
  text-decoration: line-through;
}

.bear { width: 100%; height: auto; display: block; overflow: visible; object-fit: contain; background: transparent; }
.bear-wrap { display: inline-flex; align-items: flex-end; justify-content: center; line-height: 0; vertical-align: middle; background: transparent; }
.bear-wrap img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.bear-wrap.xs { width: 22px; height: 24px; }
.bear-wrap.sm { width: 36px; }
.bear-wrap.md { width: 56px; }
.bear-wrap.lg { width: 92px; }
.login-art {
  width: min(260px, 78%);
  margin: 0 auto 6px;
  filter: drop-shadow(0 14px 22px color-mix(in srgb, var(--cocoa) 18%, transparent));
}
.login-art .bear { width: 100%; }

.empty-scene {
  text-align: center;
  color: var(--muted);
  padding: 8px 8px 18px;
  line-height: 1.7;
}
.empty-scene .bear, .empty-scene img.bear { width: 120px; margin: 0 auto 4px; display: block; }
.empty-scene p { margin: 0; }

.who-pay { text-align: center; }
.who-pay .bear-wrap { margin: 0 auto 6px; }

.tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  width: min(430px, 100%);
  transform: translateX(-50%);
  z-index: 15;
  height: calc(76px + env(safe-area-inset-bottom));
  padding: 6px 8px env(safe-area-inset-bottom);
  background: var(--tabbar);
  backdrop-filter: blur(16px) saturate(1.15);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(90, 58, 36, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr 72px 1fr 1fr;
  align-items: end;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.tabbar.tabs-plus { grid-template-columns: 1fr 1fr 72px 1fr 1fr; }
.tabbar.away,
.phone.has-sheet #tabbar {
  transform: translate(-50%, 110%);
  opacity: 0;
  pointer-events: none;
}
.tab {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  color: var(--muted);
  font-size: 10px;
  position: relative;
}
.tab.on { color: var(--cocoa); font-weight: 700; }
.tab-bear {
  width: 28px;
  height: 28px;
  display: block;
  background: url("/mascots/bubu.png") center / contain no-repeat;
}
body.theme-yier .tab-bear,
.phone.theme-yier .tab-bear {
  background-image: url("/mascots/yier.png");
}
.tab .dot[hidden] { display: none; }
#view {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
}
#sheet-root {
  position: relative;
  z-index: 24;
}
.add-fab {
  display: grid;
  place-items: center;
  align-self: end;
  margin: 0 0 10px;
  padding: 0;
}
.add-fab-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.46), transparent 46%),
    linear-gradient(180deg, color-mix(in srgb, var(--cocoa) 72%, #fff) 0%, var(--cocoa) 100%);
  box-shadow:
    0 10px 20px color-mix(in srgb, var(--cocoa) 36%, transparent),
    0 0 0 5px color-mix(in srgb, var(--paper) 78%, transparent),
    inset 0 -4px 0 rgba(0, 0, 0, 0.1),
    inset 0 4px 8px rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  transform: translateY(-10px);
}
.add-fab-plus {
  width: 22px;
  height: 22px;
  position: relative;
}
.add-fab-plus::before,
.add-fab-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #fffaf3;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(90, 50, 20, 0.15);
}
.add-fab-plus::before {
  width: 22px;
  height: 7px;
  transform: translate(-50%, -50%);
}
.add-fab-plus::after {
  width: 7px;
  height: 22px;
  transform: translate(-50%, -50%);
}
.add-fab:active .add-fab-circle { transform: translateY(-8px) scale(0.96); }
.dot {
  position: absolute;
  top: 2px;
  right: 14px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
}

.login {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 36px 22px 28px;
  display: flex;
  flex-direction: column;
}
.login h1 { font-size: 30px; margin: 6px 0 8px; }
.login p { color: var(--muted); margin: 0 0 22px; line-height: 1.65; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.who button {
  background: color-mix(in srgb, var(--paper) 50%, transparent);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 8px 6px 14px;
  text-align: center;
}
.who button.on {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.who .name { margin-top: 4px; font-weight: 700; }
.pin-box { margin-top: 20px; }
.pin-box input { text-align: center; letter-spacing: 10px; font-size: 22px; }
.primary, .ghost, .danger {
  width: 100%;
  border-radius: 16px;
  padding: 13px 16px;
  font-weight: 700;
}
.primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--cocoa) 82%, #fff) 0%, var(--cocoa) 100%);
  color: #fffaf3;
  margin-top: 16px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--cocoa) 28%, transparent);
}
.primary.add-top { margin: 12px 0 4px; }
.ghost { background: transparent; border: 1px solid var(--line); color: var(--cocoa); }
.danger {
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--clay) 45%, var(--line));
  color: var(--clay);
}
.actions .primary { margin-top: 0; }
.tiny { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }
.tiny.left { text-align: left; margin-top: 8px; }
.share-url {
  margin-top: 8px;
  word-break: break-all;
  font-size: 13px;
  line-height: 1.5;
  color: var(--cocoa);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 13px;
}
.chip.on { background: var(--cocoa); color: #fffaf3; border-color: var(--cocoa); }
.chips.tight { justify-content: flex-end; }

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(58, 40, 28, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 26;
}
.sheet-body {
  width: min(430px, 100%);
  background:
    radial-gradient(circle at 90% 0%, var(--orb-1), transparent 34%),
    var(--linen);
  border-radius: 28px 28px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 -12px 40px rgba(50, 28, 20, 0.16);
}
.sheet-body.add-sheet {
  overflow: hidden;
  max-height: min(92vh, 100dvh);
  padding-top: 14px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
.add-sheet-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.add-sheet-foot {
  flex: none;
  padding-top: 8px;
}
.add-sheet-foot .primary { margin-top: 8px; }
.add-sheet .top { margin-bottom: 8px; }
.add-sheet .h1 { font-size: 20px; margin: 0; }
.amt-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.amt-box span {
  color: var(--muted);
  font-size: 20px;
  font-weight: 700;
}
.amt-box input {
  border: 0;
  background: transparent;
  padding: 4px 0;
  font-size: 28px;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.cat-grid .chip {
  padding: 6px 2px;
  font-size: 12px;
  text-align: center;
  border-radius: 12px;
  line-height: 1.25;
}
.add-sheet #tx-note { margin-top: 10px; }
.add-sheet .primary { margin-top: 10px; }
.add-sheet .notice { margin-top: 8px; }
.add-more {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}
.add-more button { color: var(--muted); font-size: 13px; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bar {
  height: 8px;
  background: var(--wash);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.bar > span { display: block; height: 100%; background: var(--honey); border-radius: inherit; }
.bar.fat { height: 10px; margin-top: 10px; }
.panel.is-over .bar > span { background: var(--clay); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { margin-top: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.tx-note { word-break: break-word; white-space: pre-wrap; line-height: 1.5; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fffaf3;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 30;
  max-width: 80%;
}
.month-btn {
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--cocoa);
  backdrop-filter: blur(8px);
}
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.search-row input { border-radius: 16px; }
.tap { cursor: pointer; }
.as-btn { width: 100%; background: none; }

.cal-head, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-head { color: var(--muted); font-size: 12px; text-align: center; margin-bottom: 6px; }
.cal-cell {
  min-height: 50px;
  border-radius: 10px;
  background: transparent;
  padding: 6px 2px;
  text-align: center;
}
.cal-cell.has .d { box-shadow: inset 0 -2px 0 var(--honey); }
.cal-cell .m { font-size: 9px; color: var(--muted); line-height: 1; margin-bottom: 1px; }
.cal-cell .d { font-size: 13px; font-weight: 650; display: inline-block; padding-bottom: 2px; }
.cal-cell .e { color: var(--clay); font-size: 10px; margin-top: 2px; }
.empty-cell { background: transparent; }
.year-cal {
  grid-template-columns: repeat(4, 1fr);
  gap: 4px 2px;
  margin: 4px 0 8px;
}
.year-cal .cal-cell { min-height: 54px; }

.trend {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  min-height: 96px;
  overflow-x: auto;
  padding-top: 8px;
}
.tcol { flex: 1; min-width: 10px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.tcol span { width: 100%; max-width: 12px; background: var(--honey); border-radius: 8px 8px 3px 3px; display: block; }
.tcol i { font-style: normal; font-size: 9px; color: var(--muted); }
.shop-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.shop-item:last-child { border-bottom: 0; }
.shop-item.done button:first-child { text-decoration: line-through; color: var(--muted); }

.room {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.room-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, var(--orb-1), transparent 58%),
    radial-gradient(ellipse 50% 40% at 100% 80%, var(--orb-2), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--desk) 70%, #fff) 0%, var(--desk) 48%, color-mix(in srgb, var(--desk) 82%, #4a3018) 100%);
}
.room-glow {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at 20% 24%, var(--orb-3), transparent 28%),
    radial-gradient(circle at 78% 70%, var(--orb-2), transparent 26%);
  animation: haze 16s ease-in-out infinite;
}
.room-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    radial-gradient(var(--mark) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
}
body.theme-yier .room-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath fill='%23c45d72' fill-opacity='0.11' d='M12 16c0-3 2.4-5 4.8-5 1.7 0 3.2 1 4.2 2.6C22.1 12 23.6 11 25.3 11 27.7 11 30 13 30 16c0 6.2-9 12-9 12s-9-5.8-9-12z'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  opacity: 0.7;
}
body.theme-bubu .room-pattern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Ccircle cx='14' cy='16' r='2.2' fill='%238a5524' fill-opacity='0.12'/%3E%3Ccircle cx='34' cy='30' r='1.6' fill='%23c9924a' fill-opacity='0.16'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  opacity: 0.85;
}

.petal {
  position: absolute;
  width: 18px;
  height: 26px;
  border-radius: 70% 70% 60% 60%;
  background: radial-gradient(circle at 40% 30%, #fff8, var(--petal));
  opacity: 0.38;
  filter: blur(0.2px);
  animation: petal 18s linear infinite;
}
.petal.p1 { left: 8%; top: -8%; animation-duration: 20s; }
.petal.p2 { left: 28%; top: -12%; width: 12px; height: 18px; animation-duration: 24s; animation-delay: -6s; }
.petal.p3 { left: 62%; top: -10%; width: 16px; height: 22px; animation-duration: 17s; animation-delay: -3s; }
.petal.p4 { left: 78%; top: -14%; animation-duration: 22s; animation-delay: -10s; }
.petal.p5 { left: 46%; top: -16%; width: 10px; height: 16px; animation-duration: 26s; animation-delay: -14s; }
body.theme-yier .petal { border-radius: 70% 70% 40% 40%; transform: rotate(-18deg); }
body.theme-bubu .petal {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  opacity: 0.3;
}

.warn-card {
  background:
    linear-gradient(180deg, rgba(255, 236, 232, 0.8), transparent 50%),
    var(--paper);
  border-color: color-mix(in srgb, var(--clay) 35%, var(--line));
}

.list {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 20px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.card .list,
.panel .list,
.soft-box .list {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}
.list > .card { margin: 8px 0; }
.empty-scene { padding: 16px 8px 20px; }

@keyframes haze {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -1.5%, 0) scale(1.04); }
}
@keyframes petal {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.4; }
  100% { transform: translate3d(-30px, 110vh, 0) rotate(28deg); opacity: 0; }
}

@media (min-width: 560px) {
  body { background: var(--desk); }
  .phone {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.28) inset,
      0 18px 60px rgba(60, 32, 20, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone::after, .room-glow, .petal { animation: none; }
}
