/* Screen plates carry the approved illustration; content remains live HTML. */
#s-chat {
  background: #fff6e8 url('/static/assets/chat-room-plate.png') center / 100% 100% no-repeat !important;
}
#s-chat .chat-head {
  min-height: 88px; padding: 15px 20px 9px;
  background: transparent; border: 0; box-shadow: none;
}
#s-chat .chat-head .back-btn { background: #fff9e9; color: #985d2d; }
#s-chat .chat-av {
  width: 49px; height: 49px; border: 3px solid #fff9ed;
  border-radius: 50%; box-shadow: 0 3px 9px rgba(113,75,40,.17);
}
#s-chat .chat-head h4 { font: 700 19px 'ZCOOL XiaoWei','PingFang SC',serif; color: #6a3d24; }
#s-chat .chat-head .st { font: 700 13px 'PingFang SC',sans-serif; color: #7ca45d; }
#s-chat .chat-body { padding: 24px 20px; background: transparent; gap: 15px; }
#s-chat .date-div {
  margin: 7px 0 15px; padding: 0 15px; border: 0; background: transparent;
  color: #96775d; font: 700 14px 'PingFang SC',sans-serif;
}
#s-chat .date-div::before, #s-chat .date-div::after {
  content: ''; display: inline-block; width: 28px; height: 1px;
  margin: 0 10px 4px; background: #decab0;
}
#s-chat .msg {
  max-width: 82%; padding: 12px 17px; border-radius: 20px;
  font: 500 16px/1.55 'PingFang SC',sans-serif;
}
#s-chat .msg.pet {
  color: #684a34; border: 1px solid #ecd7b8;
  background: rgba(255,251,241,.95); box-shadow: 0 3px 10px rgba(111,68,35,.07);
}
#s-chat .msg.me {
  color: #5e462f; border: 1px solid #dce2af;
  background: #e5eac0; box-shadow: 0 3px 9px rgba(111,94,44,.07);
}
#s-chat .chat-inp {
  min-height: 72px; padding: 10px 16px calc(10px + var(--safe-bottom));
  background: rgba(255,236,207,.87); border-top: 1px solid #f0d6ad;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
#s-chat .chat-inp .mi, #s-chat .chat-inp .sd { border-radius: 50%; }
#s-chat .chat-inp .mi { width: 46px; height: 46px; color: #8a5a2d; }
#s-chat .chat-inp .sd { width: 46px; height: 46px; background: #ef9165; }

#s-album {
  background: #fff4e2 url('/static/assets/album-plate.png') center / 100% 100% no-repeat !important;
}
#s-album .album-head-tight { height: 184px; padding: 0; text-align: center; }
#s-album .album-head-tight h2 {
  position: absolute; top: 82px; left: 20%; width: 60%;
  color: #613b20; font: 700 23px 'Ma Shan Zheng','PingFang SC',serif;
  white-space: nowrap;
}
#s-album .album-head-tight #album-count {
  position: absolute; top: 150px; left: 5%; width: 90%;
  color: #806047; font: 600 12px 'PingFang SC',sans-serif;
  transform: none;
}
#s-album .screen-body {
  display: flex; flex-direction: column; background: transparent;
  padding-bottom: calc(100px + var(--safe-bottom));
}
#s-album .album-recent {
  order: 0; margin: 0 14px 21px; padding: 13px 13px 15px;
  border: 1px solid #efd9b9; border-radius: 22px;
  background: rgba(255,250,238,.94); box-shadow: 0 4px 12px rgba(117,71,35,.08);
}
#s-album .album-recent h3 {
  margin: 0 0 11px; color: #724428; font: 700 18px 'ZCOOL XiaoWei','PingFang SC',serif;
}
#s-album .album-recent-strip, #s-profile .profile-recent-strip {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
#s-album .album-recent-strip::-webkit-scrollbar,
#s-profile .profile-recent-strip::-webkit-scrollbar { display: none; }
#s-album .album-recent-photo,
#s-profile .profile-recent-photo {
  flex: 0 0 31%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 10px;
  background: #f6e4ca; overflow: hidden; cursor: pointer;
}
#s-album .album-recent-photo img,
#s-profile .profile-recent-photo img { width: 100%; height: 100%; object-fit: cover; }
#s-album .alb-section-title { order: 1; margin: 2px 20px 13px; color: #6f4227; font: 700 22px 'Ma Shan Zheng','PingFang SC',serif; }
#s-album .alb-section-title small { font: 500 11px 'PingFang SC',sans-serif; }
#s-album .alb-grid { order: 2; padding: 0 14px; gap: 12px; }
#s-album .alb-card { border-radius: 20px; background: #fff9ed !important; border-color: #ecd6bb; }
#s-album .alb-cover { border-radius: 13px 13px 0 0; }
#s-album .alb-meta .nm { font: 700 17px 'ZCOOL XiaoWei','PingFang SC',serif; }
#s-album .longpress-hint { order: 3; }

#s-album-detail {
  background: #fff4e2 url('/static/assets/album-plate.png') center / 100% 100% no-repeat !important;
}
#s-album-detail .screen-header {
  height: 185px; min-height: 185px; align-items: flex-start;
  background: transparent; border: 0;
}
#s-album-detail .screen-header .back-btn { margin-top: 15px; }
#s-album-detail .scr-title {
  position: absolute; top: 84px; left: 19%; width: 62%;
  text-align: center; color: #633d25;
  font: 700 23px 'Ma Shan Zheng','PingFang SC',serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#s-album-detail .scr-title small { display: none; }
#s-album-detail .screen-body { background: transparent; }
#s-album-detail .album-detail-cover {
  display: flex; align-items: center; gap: 13px; margin: 7px 16px 20px;
  padding: 10px; border: 1px solid #efd6b4; border-radius: 14px;
  background: rgba(255,250,238,.94);
  box-shadow: 0 4px 13px rgba(110,76,42,.09);
}
#s-album-detail .album-detail-cover img {
  width: 64px; height: 64px; flex: 0 0 64px; object-fit: cover;
  border-radius: 9px;
}
#s-album-detail .album-detail-cover-copy { display: grid; gap: 4px; color: #694128; }
#s-album-detail #ad-cover-name { font: 700 19px 'ZCOOL XiaoWei','PingFang SC',serif; }
#s-album-detail #ad-count { font: 600 12px 'PingFang SC',sans-serif; color: #9d7558; }
#s-album-detail .alb-photos-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 0 16px; }
#s-album-detail .alb-photo { border-radius: 9px; background: #f7e6cf; }
#s-album-detail #ad-empty {
  margin: 22px 16px 0; padding: 38px 18px;
  border: 1px dashed #dfc5a2; border-radius: 15px;
  background: rgba(255,250,239,.87);
}
#s-album-detail #ad-empty h4 { color: #6d462e; font: 700 20px 'ZCOOL XiaoWei','PingFang SC',serif; }
#s-album-detail #ad-empty .hint { margin-top: 7px; color: #987459; }
#s-album-detail .album-detail-add {
  margin-top: 21px; min-height: 44px; padding: 0 24px;
  border: 0; border-radius: 22px; background: #d27e58; color: #fff9ef;
  font: 700 14px 'PingFang SC',sans-serif;
  box-shadow: 0 4px 10px rgba(160,84,49,.17);
}
#s-album-detail .album-detail-add:active { transform: scale(.97); }
#s-album .ai-hero { order: 4; margin-top: 22px; }

#s-timeline {
  background: #fff5e5 url('/static/assets/timeline-plate-labeled-v3.png') center / 100% 100% no-repeat !important;
}
#s-timeline .pg-head { height: 190px; padding: 0; }
#s-timeline .pg-head .back-btn { position: absolute; left: 18px; top: 20px; z-index: 1; }
#s-timeline .pg-head h2 {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
#s-timeline .pg-head .sub {
  position: absolute; left: 10%; top: 155px; width: 80%; text-align: center;
  color: #815f42; font: 600 13px 'PingFang SC',sans-serif; transform: none;
}
#s-timeline .screen-body { background: transparent; }
#s-timeline .tl-row { padding: 0 20px 24px 60px; position: relative; }
#s-timeline .tl-row::before {
  content: ''; position: absolute; left: 48px; top: 52px; bottom: 30px;
  width: 2px; background: #f0d3a5;
}
#s-timeline .tl-row:has(.empty-state)::before { display: none; }
#s-timeline .tl-date { margin: 14px 0 13px -38px; }
#s-timeline .tl-date .b {
  padding: 5px 11px; color: #6b4024; background: #fbe5b9;
  box-shadow: none; font: 700 16px 'ZCOOL XiaoWei','PingFang SC',serif;
}
#s-timeline .tl-item {
  position: relative; display: block; margin: 0 0 19px; padding: 5px 0 0 0;
  border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
#s-timeline .tl-item::before {
  content: ''; position: absolute; left: -19px; top: 14px;
  width: 10px; height: 10px; border-radius: 50%; background: #efc684;
}
#s-timeline .tl-ic { display: inline-grid; width: 27px; height: 27px; margin-right: 5px; border-radius: 50%; box-shadow: none; vertical-align: middle; font-size: 15px; }
#s-timeline .tl-item > div:last-child { display: inline; }
#s-timeline .tl-item h5 { display: inline; color: #694029; font-size: 15px; }
#s-timeline .tl-item p { margin: 8px 0 0; color: #60422e; font-size: 14px; line-height: 1.65; }
#s-timeline .tl-photo { width: 100%; aspect-ratio: 1.5; margin-top: 9px; border-radius: 12px; object-fit: cover; }
#s-timeline .tl-item .ts { display: inline; margin-left: 7px; color: #a48261; font: 600 11px 'PingFang SC',sans-serif; }

#s-diary {
  background: #fff3df url('/static/assets/diary-plate.png') center / 100% 100% no-repeat !important;
}
#s-diary .screen-header { height: 142px; align-items: flex-start; background: transparent; border: 0; }
#s-diary .screen-header .back-btn { margin-top: 8px; }
#s-diary .scr-title {
  position: absolute; top: 50px; left: 22%; width: 56%; margin: 0;
  color: #684024; font: 700 25px 'Ma Shan Zheng','PingFang SC',serif;
}
#s-diary .screen-body { background: transparent; }
#s-diary .diary-compose { padding-top: 0; background: transparent; }
#s-diary .diary-compose::before { display: none; }
#s-diary .diary-compose > .label { display: none; }
#s-diary .mood-row { gap: 2px; padding: 0 30px 12px; overflow-x: auto; scrollbar-width: none; }
#s-diary .mood { min-width: 62px; padding: 8px 5px; border: 0; border-radius: 18px; background: transparent; box-shadow: none; }
#s-diary .mood.on { background: rgba(255,214,181,.78); border: 1px solid #d9805b; box-shadow: 0 3px 8px rgba(138,80,46,.07); }
#s-diary .mood .ic { font-size: 27px; }
#s-diary .mood .nm { color: #6a472d; font: 700 13px 'PingFang SC',sans-serif; }
#s-diary #diary-input {
  display: block; width: calc(100% - 78px); min-height: 258px !important;
  margin: 0 39px 14px; padding: 17px 5px; border: 0; border-radius: 0;
  color: #63482f; background: transparent !important; box-shadow: none;
  font: 18px/2.15 'Ma Shan Zheng','PingFang SC',serif;
}
#s-diary #diary-input::placeholder { color: #7f8b69; }
#s-diary .diary-compose .btn-primary {
  border-radius: 999px; background: #e87c60 !important;
  box-shadow: 0 5px 12px rgba(174,82,51,.14) !important;
}
#s-diary .diary-history { margin-top: 205px; padding-bottom: 25px; }
#s-diary .diary-history > .label { color: #75452b; font: 700 20px 'Ma Shan Zheng','PingFang SC',serif; }

#s-fortune {
  background: #a9d8f4 url('/static/assets/fortune-plate.png') center / 100% 100% no-repeat !important;
}
#s-fortune .screen-header { min-height: 85px; background: transparent; border: 0; }
#s-fortune .scr-title { color: #704122; font: 700 25px 'Ma Shan Zheng','PingFang SC',serif; }
#s-fortune .screen-body { background: transparent; }
#s-fortune .fortune-inner { padding-top: 105px; }
#s-fortune .fortune-inner .sub { color: #754927; }
#s-fortune .envelope-unopened { min-height: 280px; border-radius: 13px; }
#s-fortune .fortune-history-head { margin-top: 30px; }
#s-fortune .fortune-history-head h3,
#s-fortune .fortune-history-head span { color: #5d412b; }
#s-fortune .fortune-history-head,
#s-fortune .fortune-history { padding: 10px 13px; background: rgba(255,249,232,.9); }
#s-fortune .fortune-history-head { margin-bottom: 0; border-radius: 13px 13px 0 0; }
#s-fortune .fortune-history { border-radius: 0 0 13px 13px; }
#s-fortune .fortune-history-status { color: #6a4b34; }

#s-profile {
  background: #fff3dc url('/static/assets/pet-profile-plate.png') center / 100% 100% no-repeat !important;
}
#s-profile .prof-hero { height: 365px; background: transparent; }
#s-profile .prof-hero::before { display: none; }
#s-profile .prof-hero .pv-big {
  position: absolute; left: 29%; top: 110px; width: 54%; height: 220px;
  transform: none; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
#s-profile .prof-hero .pv-big img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 30%;
  -webkit-mask-image: radial-gradient(ellipse 50% 53% at center, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 53% at center, #000 45%, transparent 100%);
}
#s-profile .prof-hero .pv-edit-badge { bottom: 6px; left: 22%; right: 22%; border-radius: 9px; }
#s-profile .screen-body { background: transparent; }
#s-profile .prof-body { padding: 0; }
#s-profile .prof-hero h2 {
  position: absolute; top: 198px; left: 5%; width: 31%;
  z-index: 4; text-align: center; color: #664024;
  font: 700 24px 'Ma Shan Zheng','PingFang SC',serif;
}
#s-profile .prof-tags { padding: 0 18px 12px; }
#s-profile .prof-stats-row { display: none; }
#s-profile .info-block { margin: 0 15px 18px; border: 1px solid #f0d8b9; background: rgba(255,251,241,.96) !important; }
#s-profile .info-row { min-height: 49px; }
#s-profile .profile-recent { margin: 0 15px 16px; padding: 14px; border: 1px solid #efd9bc; border-radius: 20px; background: rgba(255,251,241,.94); }
#s-profile .profile-recent-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
#s-profile .profile-recent-head h3 { color: #704428; font: 700 18px 'ZCOOL XiaoWei','PingFang SC',serif; }
#s-profile .profile-recent-head button { border: 0; background: transparent; color: #8f674b; font: 600 12px 'PingFang SC',sans-serif; }

#s-card {
  background: #fff1dd url('/static/assets/card-plate-labeled-v2.png') center / 100% 100% no-repeat !important;
}
#s-card .screen-header { min-height: 185px; align-items: flex-start; background: transparent; border: 0; }
#s-card .screen-header .back-btn { margin-top: 14px; }
#s-card .screen-header .scr-title {
  position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
#s-card .screen-body { background: transparent; }
#s-card .card-prev { margin-top: 4px; }
#s-card .screen-body > .label {
  color: #75472b; font: 700 20px 'Ma Shan Zheng','PingFang SC',serif;
}

.fortune-modal-sheet {
  background: #fff2e3;
  border: 1px solid rgba(255,255,255,.8);
}
.fortune-modal-kicker { text-align: center; letter-spacing: 0; }
.fortune-modal-sheet h2 {
  margin: 4px 0 0; text-align: center;
  font: 700 25px/1.35 'ZCOOL XiaoWei','PingFang SC',serif;
  color: #734632;
}
.fortune-modal-decor { margin: 4px 0 12px; text-align: center; font-size: 16px; }
.fortune-modal-decor span { color: #cf9568; margin: 0 8px; }
.fortune-note-paper {
  display: flex; flex-direction: column; min-height: 350px;
  padding: 61px 26px 39px; border: 0; border-radius: 6px;
  background: #fff9ed url('/static/assets/fortune-stationery-v2.png') center / 100% 100% no-repeat;
  box-shadow: 0 8px 22px rgba(119,72,47,.16);
  transform: rotate(-.7deg);
}
.fortune-note-message {
  flex: 1; margin: 0 0 19px; color: #704c3b;
  font: 500 17px/1.9 'ZCOOL XiaoWei','PingFang SC',serif;
  text-align: center;
}
.fortune-note-luck {
  gap: 7px; padding-top: 11px; border-top: 1px dashed rgba(168,111,83,.42);
}
.fortune-note-luck div { align-items: center; text-align: center; }
.fortune-note-luck small { color: #9e7259; font-size: 11px; }
.fortune-note-luck strong { color: #80513d; font-size: 13px; }
.fortune-note-sign { margin-top: 14px; color: #a26b54; font: 600 13px 'ZCOOL XiaoWei','PingFang SC',serif; }
.fortune-modal-done {
  min-height: 50px; border-radius: 25px;
  background: #dd8967; box-shadow: 0 4px 10px rgba(184,102,71,.2);
}
.fortune-modal-done:active { transform: scale(.98); }

@media (max-width: 350px) {
  #s-album .album-head-tight h2, #s-timeline .pg-head h2, #s-diary .scr-title { font-size: 21px; }
  #s-diary #diary-input { width: calc(100% - 54px); margin-left: 27px; margin-right: 27px; }
  #s-profile .prof-hero h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #s-chat .msg { animation: none; }
}
