:root {
  --glass-white: rgba(255, 255, 255, .68);
  --glass-border: rgba(255, 255, 255, .82);
  --glass-shadow: 0 15px 38px rgba(183, 116, 143, .14);
  --mobile-ink: #51424a;
}

.petal-bottom-nav { display: none; }

@media (max-width: 768px) {
  html, body { background: #fff8f3; }
  body {
    overflow: hidden;
    color: var(--mobile-ink);
    background-image:
      radial-gradient(circle at 8% 2%, rgba(255, 207, 226, .72), transparent 27%),
      radial-gradient(circle at 94% 22%, rgba(200, 228, 255, .62), transparent 26%),
      linear-gradient(155deg, #fff8f2 0%, #fff6fb 50%, #f4f8ff 100%);
  }
  .app { height: 100dvh; }
  .app .app__header {
    height: 64px;
    padding: max(8px, env(safe-area-inset-top)) 18px 4px;
    color: var(--mobile-ink);
    background: rgba(255, 250, 247, .62);
    border-bottom: 1px solid rgba(255,255,255,.64);
    backdrop-filter: blur(24px) saturate(1.28);
    -webkit-backdrop-filter: blur(24px) saturate(1.28);
    box-shadow: 0 8px 30px rgba(192, 140, 160, .08);
  }
  .brand { gap: 8px; font-size: 15px; letter-spacing: .02em; }
  .brand__icon { display: none; }
  .app .hamburger {
    width: 38px; height: 38px; border-radius: 14px;
    color: #d26991; background: rgba(255,255,255,.7);
    border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 7px 18px rgba(203, 130, 160, .12);
    font-size: 21px;
  }
  .app .header-date { display: none; }
  .app .profile-trigger {
    width: 38px; height: 38px; border: 2px solid rgba(255,255,255,.82);
    color: #fff; background: linear-gradient(145deg, #f695ba, #e76f9d);
    box-shadow: 0 7px 18px rgba(224,90,142,.2);
  }
  .install-hint { display: none !important; }
  .app__body { overflow: hidden; }
  .main {
    overflow-y: auto;
    height: calc(100dvh - 64px);
    padding: 0 16px calc(104px + env(safe-area-inset-bottom));
    scroll-padding-bottom: 110px;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar {
    top: 0; bottom: 0; z-index: 901; width: min(82%, 304px); max-width: none;
    padding-top: max(12px, env(safe-area-inset-top));
    background: rgba(255, 250, 252, .88);
    border-right: none;
    border-radius: 0 28px 28px 0;
    box-shadow: 16px 0 52px rgba(90, 74, 82, .16);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
  }
  .sidebar-overlay { z-index: 900; background: rgba(76, 57, 66, .28); backdrop-filter: blur(3px); }
  .sidebar__close-mobile {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.8); border-radius: 14px;
    background: rgba(255,255,255,.7); color: #d26991; font-size: 18px; cursor: pointer;
  }
  .sidebar__header, .sidebar__footer { background: transparent; border-color: rgba(234,192,209,.48); }
  .sidebar__header { padding: 16px 14px 12px; }
  .sidebar__title { font-size: 16px; }
  .sidebar__list { padding: 8px 10px; gap: 8px; display: flex; flex-direction: column; }
  .menu-item {
    border: 1px solid rgba(255,255,255,.78); background: rgba(255,255,255,.58);
    box-shadow: 0 5px 16px rgba(204, 141, 166, .06); border-radius: 18px; margin-bottom: 0;
  }
  .menu-item.active { background: rgba(255,229,240,.8); border-color: rgba(247,143,179,.58); }
  .menu-item__header { padding: 12px; }
  .menu-item__icon { font-size: 20px; }
  .menu-item__name { font-size: 14px; }
  .menu-item__arrow { font-size: 10px; }
  .menu-item__actions { gap: 4px; }
  .menu-item__action {
    width: 30px; height: 30px; font-size: 12px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.55);
  }

  .petal-home { padding: 10px 0 4px; animation: petalRise .36s ease both; }
  @keyframes petalRise { from { opacity: 0; transform: translateY(8px); } }
  .petal-greeting {
    min-height: 58px; display: flex; align-items: center; justify-content: space-between;
    padding: 2px 4px 4px 6px;
  }
  .petal-greeting h1 { margin: 1px 0 0; font-size: 19px; line-height: 1.25; letter-spacing: -.03em; color: #513f48; }
  .petal-greeting p { color: #9a7f8a; font-size: 11px; }
  .petal-greeting img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(231,151,91,.17)); }
  .petal-eyebrow, .petal-kicker {
    color: #d9749b; font-size: 9px; line-height: 1; font-weight: 800; letter-spacing: .13em;
  }
  .petal-section { margin-bottom: 15px; }
  .petal-section__head {
    min-height: 36px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 3px; margin-bottom: 9px;
  }
  .petal-section__head h2 { font-size: 17px; line-height: 1.25; color: #594650; letter-spacing: -.02em; }
  .petal-section__head button {
    min-height: 36px; display: inline-flex; align-items: center; gap: 4px;
    border: 0; background: transparent; color: #a57f8f; font: inherit; font-size: 12px; font-weight: 650;
  }
  .petal-modules {
    display: grid; grid-auto-flow: column; grid-auto-columns: 126px; gap: 11px;
    overflow-x: auto; padding: 2px 2px 11px; margin: 0 -2px;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .petal-modules::-webkit-scrollbar { display: none; }
  .petal-module {
    position: relative; height: 150px; padding: 12px 11px 10px;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
    border: 1px solid var(--glass-border); border-radius: 29px;
    color: var(--mobile-ink); text-align: left; scroll-snap-align: start; overflow: hidden;
    box-shadow: 0 13px 27px rgba(184, 116, 144, .13), inset 0 1px 0 rgba(255,255,255,.9);
    backdrop-filter: blur(18px) saturate(1.22);
    -webkit-backdrop-filter: blur(18px) saturate(1.22);
  }
  .petal-module--rose { background: linear-gradient(150deg, rgba(255,244,248,.93), rgba(255,207,225,.72)); }
  .petal-module--blue { background: linear-gradient(150deg, rgba(247,252,255,.94), rgba(198,226,251,.74)); }
  .petal-module--honey { background: linear-gradient(150deg, rgba(255,252,242,.94), rgba(255,222,158,.75)); }
  .petal-module--lilac { background: linear-gradient(150deg, rgba(254,249,255,.94), rgba(229,207,247,.76)); }
  .petal-module__art {
    position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
    width: 80px; height: 80px; display: grid; place-items: center;
  }
  .petal-module__art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 7px 9px rgba(91,62,75,.14)); }
  .petal-module__name {
    width: 100%; display: block; font-size: 14px; line-height: 1.35; font-weight: 800;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .petal-module__meta { margin-top: 2px; font-size: 10px; color: #987c87; }
  .petal-module__track {
    width: 100%; height: 4px; margin-top: 7px; overflow: hidden;
    border-radius: 99px; background: rgba(255,255,255,.64);
  }
  .petal-module__track span { display: block; height: 100%; border-radius: inherit; background: rgba(217,100,145,.72); }
  .petal-glass {
    border: 1px solid var(--glass-border); border-radius: 27px;
    background: var(--glass-white); box-shadow: var(--glass-shadow);
    backdrop-filter: blur(24px) saturate(1.24);
    -webkit-backdrop-filter: blur(24px) saturate(1.24);
  }
  .petal-today { padding: 15px 14px 11px; margin-bottom: 14px; }
  .petal-today .petal-section__head { margin-bottom: 5px; }
  .petal-count {
    min-width: 45px; padding: 5px 10px; border-radius: 99px;
    color: #cf6b94; background: rgba(255,231,240,.82); font-size: 11px; font-weight: 800; text-align: center;
  }
  .petal-today__list { display: grid; gap: 6px; }
  .petal-today__item {
    min-height: 51px; width: 100%; display: flex; align-items: center; gap: 11px;
    padding: 6px 10px; border: 1px solid rgba(255,255,255,.88); border-radius: 18px;
    background: rgba(255,255,255,.57); box-shadow: 0 6px 15px rgba(188,130,153,.07);
    color: var(--mobile-ink); text-align: left;
  }
  .petal-check {
    width: 29px; height: 29px; flex: 0 0 29px; display: grid; place-items: center;
    border: 2px solid #efafc8; border-radius: 11px; color: transparent; background: rgba(255,255,255,.68);
  }
  .petal-today__item.is-done .petal-check { color: white; border-color: #80cfaa; background: #80cfaa; }
  .petal-today__copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
  .petal-today__copy strong { font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .petal-today__copy small { color: #a08a93; font-size: 10px; }
  .petal-today__item.is-done .petal-today__copy strong { color: #9c8d93; text-decoration: line-through; }
  .petal-today__action { color: #d56f98; font-size: 11px; font-weight: 750; }
  .petal-empty { min-height: 84px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #a58a95; font-size: 12px; }
  .petal-empty i { color: #df7ea4; font-size: 20px; }
  .petal-progress { padding: 12px 15px 11px; margin-bottom: 9px; }
  .petal-progress .petal-section__head { margin-bottom: 3px; }
  .petal-progress__body { display: flex; align-items: center; gap: 16px; }
  .petal-progress__summary { min-width: 68px; display: flex; flex-direction: column; }
  .petal-progress__summary strong { color: #d56f98; font-size: 27px; line-height: 1; }
  .petal-progress__summary span { color: #9d8790; font-size: 10px; margin-top: 4px; }
  .petal-week { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 4px; }
  .petal-week__day { height: 42px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
  .petal-week__bar { width: 7px; height: 24px; display: flex; align-items: flex-end; border-radius: 9px; background: rgba(225,212,219,.5); overflow: hidden; }
  .petal-week__bar span { width: 100%; min-height: 7px; border-radius: inherit; background: #eab0c8; }
  .petal-week__day.is-today .petal-week__bar span { background: #d96f99; }
  .petal-week__day small { color: #a28d96; font-size: 9px; line-height: 1; }
  .petal-week__day.is-today small { color: #cf618d; font-weight: 800; }
  .petal-bottom-nav {
    position: fixed; z-index: 850; left: 12px; right: 12px; bottom: calc(9px + env(safe-area-inset-bottom));
    height: 72px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    padding: 6px 7px; border: 1px solid rgba(255,255,255,.86); border-radius: 27px;
    background: rgba(255,255,255,.77); box-shadow: 0 14px 42px rgba(151,96,118,.2);
    backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3);
  }
  .petal-tab {
    min-width: 44px; height: 54px; border: 0; background: transparent; color: #aa929c;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font: inherit; font-size: 9px; font-weight: 650;
  }
  .petal-tab i { font-size: 21px; }
  .petal-tab.is-active { color: #d56591; }
  .petal-tab--add span {
    width: 53px; height: 53px; display: grid; place-items: center; border-radius: 50% 50% 46% 54%;
    color: #fff; background: linear-gradient(145deg, #ffd36a, #efa53f);
    box-shadow: 0 9px 20px rgba(226,155,48,.3), inset 0 1px 0 rgba(255,255,255,.52);
    transform: translateY(-12px) rotate(7deg);
  }
  .petal-tab--add i { font-size: 24px; transform: rotate(-7deg); }

  .detail { padding-top: 14px; padding-bottom: 6px; }
  .detail__header, .card {
    border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.68);
    box-shadow: var(--glass-shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  }
  .detail__header { border-radius: 27px; padding: 16px; }
  .detail__icon { border: 1px solid rgba(255,255,255,.85); background: rgba(255,232,241,.74); border-radius: 19px; }
  .detail__name { font-size: 20px; }
  .card { padding: 15px; border-radius: 25px; }
  .checkin-item, .video-card { border-width: 1px; background: rgba(255,251,253,.73); border-radius: 18px; }
  .checkin-item { padding: 12px; }
  .checkin-note-input { max-width: 108px; }
  .calendar { gap: 4px; }
  .calendar__day { min-height: 40px; }
  .commercial-modal { padding: 0; align-items: flex-end; backdrop-filter: blur(5px); }
  .commercial-panel {
    width: 100%; max-height: 91dvh; border-radius: 30px 30px 22px 22px;
    padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
    background: rgba(255,251,253,.94); border: 1px solid rgba(255,255,255,.86);
    box-shadow: 0 -18px 60px rgba(80,52,66,.18);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  }
  .commercial-title { margin-bottom: 22px; }
  .commercial-title h2 { font-size: 22px; }
  .commercial-close { width: 38px; height: 38px; border-radius: 14px; font-size: 22px; }
  .commercial-section { margin-top: 24px; padding-top: 20px; }
  .commercial-section h3 { font-size: 16px; margin-bottom: 14px; }
  .commercial-form { gap: 14px; }
  .commercial-form input { padding: 13px 14px; font-size: 15px; }
  .commercial-form label { gap: 6px; font-size: 13px; }
  .commercial-button { padding: 12px 18px; border-radius: 13px; font-size: 14px; }
  .profile-hero { padding: 18px; gap: 16px; border-radius: 18px; margin-bottom: 22px; }
  .profile-avatar-large { width: 58px; height: 58px; font-size: 24px; }
  .starter-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .starter-card { min-height: 118px; background: rgba(255,255,255,.62); border-width: 1px; border-radius: 20px; padding: 18px; }
}

  /* Progress page */
  .pg-page { padding: 16px 2px 4px; animation: petalRise .36s ease both; }
  .pg-hero { padding: 6px 4px 12px; }
  .pg-hero__title { font-size: 20px; color: #513f48; margin: 2px 0 1px; letter-spacing: -.03em; }
  .pg-hero__sub { color: #9a7f8a; font-size: 12px; }
  .pg-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
  .pg-stat-card {
    text-align: center; padding: 14px 6px; border-radius: 22px;
    border: 1px solid var(--glass-border); background: var(--glass-white);
    box-shadow: var(--glass-shadow);
  }
  .pg-stat-card__value { display: block; font-size: 26px; font-weight: 800; color: #d56591; line-height: 1; }
  .pg-stat-card__label { display: block; font-size: 10px; color: #9d8790; margin-top: 5px; font-weight: 600; }
  .pg-glass {
    border: 1px solid var(--glass-border); border-radius: 24px;
    background: var(--glass-white); box-shadow: var(--glass-shadow);
    backdrop-filter: blur(24px) saturate(1.24); -webkit-backdrop-filter: blur(24px) saturate(1.24);
    padding: 14px 15px 12px; margin-bottom: 12px;
  }
  .pg-glass--week { padding-bottom: 6px; }
  .pg-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
  .pg-section__head h2 { font-size: 15px; color: #594650; font-weight: 800; }
  .pg-badge {
    font-size: 10px; font-weight: 700; color: #cf6b94;
    background: rgba(255,231,240,.72); padding: 4px 10px; border-radius: 99px;
  }
  .pg-week-bars { display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 72px; }
  .pg-task-list { display: grid; gap: 9px; }
  .pg-task-card {
    padding: 13px 14px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,.82); background: rgba(255,255,255,.58);
    box-shadow: 0 6px 15px rgba(188,130,153,.07);
  }
  .pg-task-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
  .pg-task-card__icon { font-size: 18px; }
  .pg-task-card__name { flex: 1; font-size: 13px; font-weight: 700; color: #51424a; }
  .pg-task-card__rate { font-size: 13px; font-weight: 800; color: #d56591; }
  .pg-task-card__bar { height: 5px; border-radius: 99px; background: rgba(225,212,219,.5); overflow: hidden; }
  .pg-task-card__bar span { display: block; height: 100%; border-radius: inherit; background: #d96f99; transition: width .5s ease; }
  .pg-task-card__meta { margin-top: 5px; font-size: 10px; color: #9d8790; }
  .pg-task-card--rose { background: linear-gradient(135deg, rgba(255,244,248,.78), rgba(255,207,225,.48)); }
  .pg-task-card--blue { background: linear-gradient(135deg, rgba(247,252,255,.78), rgba(198,226,251,.48)); }
  .pg-task-card--honey { background: linear-gradient(135deg, rgba(255,252,242,.78), rgba(255,222,158,.48)); }
  .pg-task-card--lilac { background: linear-gradient(135deg, rgba(254,249,255,.78), rgba(229,207,247,.48)); }
  .pg-month-summary { display: flex; justify-content: center; padding: 8px 0; }
  .pg-month-ring { position: relative; width: 120px; height: 120px; }
  .pg-month-ring__text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .pg-month-ring__text strong { font-size: 26px; color: #d56591; line-height: 1; }
  .pg-month-ring__text span { font-size: 10px; color: #9d8790; margin-top: 4px; }

  /* Community */
  .cm-page { padding: 10px 0 4px; animation: petalRise .36s ease both; }
  .cm-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 14px; }
  .cm-header h1 { font-size: 21px; color: #513f48; }
  .cm-create-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 9px 16px; border: 0; border-radius: 20px;
    background: linear-gradient(135deg, #f78fb3, #e76f9d); color: #fff;
    font-size: 13px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 14px rgba(224,90,142,.22);
  }
  .cm-feed { display: grid; gap: 10px; }
  .cm-card {
    border: 1px solid var(--glass-border); border-radius: 22px;
    background: var(--glass-white); box-shadow: var(--glass-shadow);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    padding: 14px 15px; position: relative;
  }
  .cm-card__header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .cm-avatar { width: 38px; height: 38px; flex-shrink: 0; }
  .cm-avatar-letter {
    display: grid; place-items: center; width: 38px; height: 38px;
    border-radius: 50%; color: #fff; font-size: 16px; font-weight: 800;
  }
  .cm-avatar-img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
  .cm-card__user { flex: 1; min-width: 0; }
  .cm-card__name { font-size: 14px; font-weight: 700; color: #51424a; }
  .cm-card__time { font-size: 10px; color: #a08a93; margin-top: 1px; }
  .cm-card__del {
    border: 0; background: none; color: #c0a8b0; font-size: 20px;
    cursor: pointer; padding: 4px 8px; border-radius: 8px;
  }
  .cm-card__content { font-size: 14px; line-height: 1.6; color: #51424a; margin-bottom: 10px; white-space: pre-wrap; word-break: break-word; }
  .cm-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 10px; }
  .cm-images--single { grid-template-columns: 1fr; }
  .cm-image { aspect-ratio: 1; border-radius: 14px; overflow: hidden; cursor: pointer; }
  .cm-image img { width: 100%; height: 100%; object-fit: cover; }
  .cm-image--zoom { position: fixed; inset: 0; z-index: 10050; background: rgba(0,0,0,.92); display: grid; place-items: center; }
  .cm-image--zoom img { width: 100%; height: auto; max-height: 100vh; object-fit: contain; }
  .cm-video { margin-bottom: 10px; border-radius: 16px; overflow: hidden; }
  .cm-video iframe { width: 100%; height: 200px; border: 0; }
  .cm-card__actions { display: flex; gap: 18px; padding-top: 6px; border-top: 1px solid rgba(234,192,209,.4); }
  .cm-card__actions button {
    display: inline-flex; align-items: center; gap: 5px;
    border: 0; background: none; color: #a08a93; font-size: 13px;
    cursor: pointer; padding: 4px 6px; border-radius: 8px;
  }
  .cm-like-btn.is-liked { color: #e74c3c; }
  .cm-comments { margin-top: 10px; border-top: 1px solid rgba(234,192,209,.3); padding-top: 10px; }
  .cm-comment { display: flex; gap: 8px; margin-bottom: 10px; }
  .cm-comment__avatar .cm-avatar-letter, .cm-comment__avatar .cm-avatar-img { width: 28px; height: 28px; font-size: 12px; }
  .cm-comment__body { flex: 1; min-width: 0; }
  .cm-comment__name { font-size: 12px; font-weight: 700; color: #51424a; }
  .cm-comment__text { font-size: 13px; color: #5a4a52; margin-top: 2px; }
  .cm-comment-form { display: flex; gap: 8px; margin-top: 8px; }
  .cm-comment-input { flex: 1; padding: 9px 12px; border: 1px solid #ffc2dd; border-radius: 12px; font-size: 13px; outline: none; }
  .cm-comment-send {
    padding: 9px 14px; border: 0; border-radius: 12px;
    background: #f78fb3; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
  }
  .cm-empty, .cm-loading { text-align: center; color: #a58a95; font-size: 12px; padding: 12px; }
  .cm-empty-state { text-align: center; padding: 48px 20px; color: #a58a95; }
  /* Create post modal */
  .cm-modal-overlay { position: fixed; inset: 0; z-index: 10020; background: rgba(56,42,49,.45); display: flex; align-items: flex-end; justify-content: center; }
  .cm-modal {
    width: 100%; max-height: 90dvh; overflow-y: auto; background: rgba(255,251,253,.96);
    border-radius: 26px 26px 18px 18px; padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    box-shadow: 0 -16px 56px rgba(80,52,66,.18);
  }
  .cm-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .cm-modal__head h2 { font-size: 19px; color: #513f48; }
  .cm-modal__head button { border: 0; background: rgba(255,255,255,.7); width: 36px; height: 36px; border-radius: 12px; font-size: 20px; color: #8a7a82; cursor: pointer; }
  #cmPostContent { width: 100%; padding: 12px; border: 1px solid #ffc2dd; border-radius: 14px; font-size: 15px; font-family: inherit; resize: vertical; outline: none; }
  .cm-post-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
  .cm-post-img { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
  .cm-post-img img { width: 100%; height: 100%; object-fit: cover; }
  .cm-post-img-del { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 14px; cursor: pointer; }
  .cm-post-tools { display: flex; gap: 8px; margin-top: 10px; }
  .cm-post-tools button {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 14px; border: 1px solid #ffc2dd; border-radius: 12px;
    background: rgba(255,255,255,.6); color: #d26991; font-size: 13px; font-weight: 600; cursor: pointer;
  }
  .cm-post-submit {
    width: 100%; margin-top: 14px; padding: 12px; border: 0; border-radius: 14px;
    background: #f78fb3; color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
  }
  .cm-post-msg { margin-top: 8px; font-size: 12px; text-align: center; color: #c0392b; min-height: 18px; }
  /* Post detail overlay */
  .cm-detail-overlay { position: fixed; inset: 0; z-index: 10020; background: rgba(56,42,49,.5); display: flex; flex-direction: column; }
  .cm-detail {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    background: #fffafc; overflow: hidden;
  }
  .cm-detail__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: max(12px, env(safe-area-inset-top)) 16px 10px;
    background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(234,192,209,.4);
    backdrop-filter: blur(16px); flex-shrink: 0;
  }
  .cm-detail__head h2 { font-size: 16px; color: #513f48; }
  .cm-detail__head button {
    display: inline-flex; align-items: center; gap: 4px; border: 0; background: none;
    color: #d26991; font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 8px;
  }
  .cm-detail__post { flex-shrink: 0; padding: 14px 16px 0; overflow: visible; }
  .cm-detail__post .cm-card { box-shadow: none; backdrop-filter: none; margin: 0; }
  .cm-detail__post .cm-card__actions { border-top: 0; }
  .cm-detail__divider { height: 1px; background: rgba(234,192,209,.3); margin: 10px 16px 0; flex-shrink: 0; }
  .cm-detail__comments-title { padding: 12px 16px 8px; font-size: 14px; font-weight: 700; color: #594650; flex-shrink: 0; }
  .cm-detail__comments { flex: 1; overflow-y: auto; padding: 0 16px; }
  .cm-detail-comment { display: flex; gap: 9px; padding: 10px 0; border-bottom: 1px solid rgba(234,192,209,.2); }
  .cm-detail__input-row {
    display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.92); border-top: 1px solid rgba(234,192,209,.4);
    backdrop-filter: blur(16px); flex-shrink: 0;
  }
  .cm-detail__input-row input {
    flex: 1; padding: 11px 14px; border: 1px solid #ffc2dd; border-radius: 20px;
    font-size: 14px; outline: none; background: #fff;
  }
  .cm-detail__input-row button {
    padding: 11px 18px; border: 0; border-radius: 20px;
    background: #f78fb3; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer;
  }

@media (max-width: 360px) {
  .main { padding-left: 12px; padding-right: 12px; }
  .petal-module { height: 157px; }
  .petal-modules { grid-auto-columns: 120px; }
  .petal-greeting img { width: 68px; height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}
