/* R85 家庭纪念册 H5 */
:root {
  --primary: #8B6914;
  --primary-light: #A0782C;
  --primary-dark: #6B4F10;
  --secondary: #D2B48C;
  --secondary-light: #E8D5B7;
  --bg: #FFF8DC;
  --bg-card: #FFFFFF;
  --text: #5C3D2E;
  --text-light: #8B7355;
  --text-muted: #B8A88A;
  --accent: #E8C98B;
  --border: #E0D5C0;
  --shadow: rgba(139,105,20,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 44px;
  --contact-footer-h: 58px;
  --font: -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-serif: 'Noto Serif SC', 'STSong', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  padding-bottom: calc(var(--contact-footer-h) + env(safe-area-inset-bottom, 0));
}
button, input, textarea { font: inherit; }
.hidden { display: none !important; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; }

/* Hero */
.hero-section {
  min-height: calc(100vh - var(--contact-footer-h) - 80px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #FFF8DC 0%, #E8D5B7 50%, #D2B48C 100%);
  opacity: 0.6;
}
.hero-card {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px var(--shadow);
  padding: 28px 24px 32px;
  text-align: center; width: 100%; max-width: 340px;
  backdrop-filter: blur(8px);
}
.hero-cover-zone {
  width: 120px; height: 150px; margin: 0 auto 16px;
  border-radius: var(--radius-md); overflow: hidden;
  background: linear-gradient(145deg, var(--secondary), var(--bg));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 16px var(--shadow);
}
.hero-cover-zone img { width: 100%; height: 100%; object-fit: cover; }
.hero-cover-placeholder { font-size: 48px; }
.hero-title {
  margin: 0 0 8px; font-size: 22px; font-family: var(--font-serif);
  color: var(--primary-dark); outline: none;
  border-bottom: 1px dashed transparent;
}
.hero-title:focus { border-bottom-color: var(--secondary); }
.hero-subtitle { margin: 0 0 20px; font-size: 14px; color: var(--text-light); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border: 0; border-radius: var(--radius-full);
  padding: 14px 32px; font-size: 16px; font-weight: 600; cursor: pointer;
  box-shadow: 0 4px 16px rgba(139,105,20,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(139,105,20,0.2); }
.btn-primary.btn-full, .btn-full { width: 100%; display: block; }
.btn-outline {
  background: transparent; border: 1px solid var(--primary);
  color: var(--primary); border-radius: var(--radius-full);
  padding: 10px 20px; cursor: pointer;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: #c0392b; color: #fff; border: 0; border-radius: var(--radius-full); padding: 10px 16px; cursor: pointer; }

/* 信任墙 */
.trust-wall { padding: 32px 16px 100px; }
.trust-headline { text-align: center; font-size: 18px; margin: 0 0 20px; color: var(--text); }
.trust-headline strong { color: var(--primary); font-size: 22px; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.trust-card {
  background: rgba(139,105,20,0.08); border-radius: var(--radius-md);
  padding: 14px 12px; text-align: center;
}
.trust-emoji { font-size: 28px; display: block; margin-bottom: 6px; }
.trust-card p { margin: 0; font-size: 12px; line-height: 1.4; color: var(--text-light); }
.trust-stats { display: flex; justify-content: center; gap: 32px; margin-bottom: 24px; }
.trust-stats .stat { text-align: center; }
.trust-stats strong { display: block; font-size: 20px; color: var(--primary); }
.trust-stats span { font-size: 12px; color: var(--text-muted); }

/* 固定 CTA */
.fab-cta {
  position: fixed; bottom: calc(var(--contact-footer-h) + 12px + env(safe-area-inset-bottom, 0));
  left: 50%; transform: translateX(-50%); z-index: 80;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border: 0; border-radius: var(--radius-full);
  padding: 14px 28px; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 20px rgba(139,105,20,0.35); white-space: nowrap;
}

/* 纪念册视图 */
.view-album { padding-bottom: 24px; }
.album-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 8px; background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding-top: calc(12px + env(safe-area-inset-top, 0));
  position: sticky; top: 0; z-index: 50;
}
.album-back { border: 0; background: none; color: var(--primary); font-size: 14px; cursor: pointer; flex-shrink: 0; }
.album-tabs { display: flex; gap: 4px; flex: 1; justify-content: center; overflow-x: auto; }
.album-share {
  flex-shrink: 0; border: 0; background: var(--bg); width: 32px; height: 32px;
  border-radius: 50%; font-size: 16px; cursor: pointer; color: var(--primary);
}
.album-tab {
  border: 0; background: var(--bg); padding: 6px 12px;
  border-radius: var(--radius-full); font-size: 12px; cursor: pointer; color: var(--text-light);
}
.album-tab.active { background: var(--primary); color: #fff; }

.subview { padding: 12px 16px 24px; }
.subview-flip { position: relative; min-height: 420px; text-align: center; }

.flipbook-wrap { display: flex; justify-content: center; margin: 8px 0 16px; }
.flipbook { width: 100%; max-width: 360px; min-height: 380px; }
.flipbook--swipe { position: relative; overflow: hidden; height: 420px; }
.flipbook--swipe .album-page {
  position: absolute; inset: 0; transition: transform 0.35s var(--ease-out, ease-out);
}

.album-page__inner { width: 100%; height: 100%; overflow: hidden; border-radius: 4px; background: var(--bg-card); }
.album-page__cover, .album-page__full, .album-page__split, .album-page__glass {
  height: 100%; display: flex; flex-direction: column;
}
.album-page__cover { align-items: center; justify-content: center; text-align: center; padding: 20px; }
.album-page__cover h3 { margin: 12px 0 4px; font-family: var(--font-serif); color: var(--primary-dark); }
.album-page__cover p { margin: 0; font-size: 13px; color: var(--text-light); }
.album-page__emoji { font-size: 56px; }
.album-page__img { max-width: 80%; max-height: 120px; object-fit: cover; border-radius: var(--radius-sm); }

.card-typeA .album-page__photo { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 200px; }
.card-typeA .album-page__photo img { width: 100%; height: 100%; object-fit: cover; }
.card-typeA .album-page__caption { padding: 12px; background: var(--bg-card); text-align: left; }
.card-typeA .album-page__caption p { margin: 4px 0; font-size: 12px; color: var(--text-light); }
.card-typeA time { font-size: 11px; color: var(--text-muted); }

.card-typeB { flex-direction: row !important; }
.card-typeB .album-page__photo { width: 50%; display: flex; align-items: center; justify-content: center; }
.card-typeB .album-page__photo img { width: 100%; height: 100%; object-fit: cover; }
.card-typeB .album-page__text { width: 50%; padding: 12px; display: flex; flex-direction: column; justify-content: center; }
.card-typeB h4 { margin: 0 0 6px; font-size: 14px; }
.card-typeB p { margin: 0; font-size: 11px; color: var(--text-light); line-height: 1.4; }
.card-typeB time { font-size: 10px; color: var(--text-muted); margin-top: 6px; }

.card-typeC { position: relative; align-items: center; justify-content: center; }
.card-typeC .album-page__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.card-typeC .album-page__glass-inner {
  position: relative; z-index: 1; text-align: center; padding: 24px;
  background: rgba(255,255,255,0.75); backdrop-filter: blur(6px);
  margin: 20px; border-radius: var(--radius-md);
}
.card-typeC h4 { margin: 8px 0; }
.card-typeC p { margin: 0; font-size: 12px; color: var(--text-light); }

.flip-arrow {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 40;
  width: 36px; height: 56px; border: 0; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.85); color: var(--primary);
  font-size: 24px; cursor: pointer; box-shadow: 0 2px 8px var(--shadow);
}
.flip-arrow--left { left: 4px; }
.flip-arrow--right { right: 4px; }

.flip-progress { margin: 12px 0; }
.page-indicator { font-size: 13px; color: var(--text-light); }
.page-bar { height: 4px; background: var(--border); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.page-bar__fill { height: 100%; background: var(--primary); width: 0; transition: width 0.3s; }

/* 时间轴 */
.timeline { position: relative; padding: 20px 0 60px; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--primary), transparent); transform: translateX(-50%);
}
.timeline-item {
  display: flex; margin-bottom: 32px; opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease; position: relative;
}
.timeline-item.visible { opacity: 1; transform: translateY(0); }
.timeline-item:nth-child(odd) { flex-direction: row; padding-right: calc(50% + 16px); }
.timeline-item:nth-child(even) { flex-direction: row-reverse; padding-left: calc(50% + 16px); }
.timeline-node {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary); margin-top: 16px;
}
.timeline-year { position: absolute; left: 20px; top: -2px; font-size: 11px; color: var(--primary); white-space: nowrap; }
.timeline-item:nth-child(even) .timeline-year { left: auto; right: 20px; }
.timeline-card {
  flex: 1; background: var(--bg-card); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: 0 2px 12px var(--shadow);
}
.timeline-thumb { width: 100%; height: 100px; object-fit: cover; display: block; }
.timeline-placeholder { height: 80px; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.timeline-body { padding: 10px 12px; }
.timeline-body h4 { margin: 0 0 4px; font-size: 14px; }
.timeline-body p { margin: 0; font-size: 12px; color: var(--text-light); }
.timeline-body time { font-size: 11px; color: var(--text-muted); }
.fab-scroll-top {
  position: fixed; bottom: calc(var(--contact-footer-h) + 16px); right: 16px;
  border: 0; background: var(--primary); color: #fff; border-radius: var(--radius-full);
  padding: 8px 14px; font-size: 12px; cursor: pointer; z-index: 60;
}

/* 照片管理 */
.photos-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.photo-count { font-size: 13px; color: var(--text-light); }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.photo-cell { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-card); }
.photo-open {
  position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: pointer; width: 100%; height: calc(100% - 22px);
}
.photo-open img, .photo-open .photo-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cell img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.photo-del {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,0.5); color: #fff;
  font-size: 14px; cursor: pointer; line-height: 1;
}
.photo-cap { margin: 0; padding: 4px; font-size: 10px; color: var(--text-muted); text-align: center; }
.photo-empty { grid-column: 1 / -1; text-align: center; padding: 40px 16px; color: var(--text-muted); }
.photo-empty span { font-size: 40px; display: block; margin-bottom: 8px; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.45); display: flex; align-items: flex-end; justify-content: center;
}
.modal-sheet {
  background: var(--bg-card); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%; max-width: 480px; max-height: 90vh; overflow: auto;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.modal-sheet--sm { max-height: 70vh; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head button { border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--text-light); }
.modal-body { padding: 16px; }
.modal-foot { display: flex; gap: 10px; padding: 12px 16px 20px; }
.modal-foot .btn-primary { flex: 1; }

.wizard-steps { display: flex; justify-content: center; gap: 8px; padding: 12px; }
.wizard-step-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.wizard-step-dot.active { background: var(--primary); }
.wizard-hint { margin: 0 0 12px; font-size: 13px; color: var(--text-light); text-align: center; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-card {
  border: 2px solid var(--border); background: var(--bg); border-radius: var(--radius-md);
  padding: 14px 10px; text-align: center; cursor: pointer;
}
.theme-card.selected { border-color: var(--primary); background: rgba(139,105,20,0.08); }
.theme-emoji { font-size: 28px; display: block; margin-bottom: 4px; }
.theme-card strong { display: block; font-size: 14px; margin-bottom: 2px; }
.theme-card span { font-size: 11px; color: var(--text-muted); }

.field-label { display: block; font-size: 13px; margin: 12px 0 6px; color: var(--text-light); }
.field-input {
  width: 100%; padding: 12px; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--bg);
}
.field-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 12px; }
.cover-upload {
  height: 160px; border: 2px dashed var(--border); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 13px; color: var(--text-muted); cursor: pointer; overflow: hidden;
}
.cover-upload img { width: 100%; height: 100%; object-fit: cover; }
.link-btn { border: 0; background: none; color: var(--primary); font-size: 13px; cursor: pointer; margin-top: 8px; }
.wizard-preview { text-align: center; }
.wizard-preview-cover { font-size: 64px; margin-bottom: 12px; }
.wizard-preview-cover img { width: 120px; height: 150px; object-fit: cover; border-radius: var(--radius-md); }
.wizard-tips { text-align: left; padding-left: 20px; font-size: 13px; color: var(--text-light); }

.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.78); color: #fff; padding: 12px 20px;
  border-radius: var(--radius-md); font-size: 14px; z-index: 300; pointer-events: none;
}

.contact-footer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0));
  max-width: 480px; margin: 0 auto;
}
.contact-footer__btns { display: flex; gap: 8px; }
.contact-footer__cta {
  flex: 1; text-align: center; background: var(--primary); color: #fff !important;
  padding: 10px; border-radius: var(--radius-full); font-size: 13px; font-weight: 600; text-decoration: none;
}
.contact-footer__btn {
  flex: 1; text-align: center; background: var(--bg); padding: 10px;
  border-radius: var(--radius-full); font-size: 13px; border: 0; cursor: pointer; text-decoration: none; color: inherit;
}
.contact-footer__brand { margin: 6px 0 0; text-align: center; font-size: 10px; color: var(--text-light); }

@media (max-width: 374px) {
  .trust-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .timeline-item:nth-child(odd) { padding-right: calc(50% + 24px); }
  .timeline-item:nth-child(even) { padding-left: calc(50% + 24px); }
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  body { font-size: 16px; }
}

/* P1 · 协作 / 多媒体 / AI / 导出 */
.collab-panel { padding-bottom: 16px; }
.collab-invite-card {
  background: rgba(139,105,20,0.08); border-radius: var(--radius-md);
  padding: 14px; margin-bottom: 16px;
}
.collab-code { margin: 0 0 10px; font-size: 14px; }
.collab-code strong { font-size: 22px; color: var(--primary); letter-spacing: 2px; }
.collab-btns { display: flex; gap: 8px; margin-bottom: 8px; }
.collab-url { margin: 0; font-size: 11px; color: var(--text-muted); word-break: break-all; }
.collab-members h4, .collab-feed h4 { margin: 0 0 10px; font-size: 14px; }
.member-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.member-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--secondary-light);
  display: flex; align-items: center; justify-content: center; font-size: 20px; position: relative;
}
.member-crown { position: absolute; top: -6px; right: -4px; font-size: 12px; }
.member-more { font-size: 12px; font-weight: 600; color: var(--primary); }
.collab-feed ul { list-style: none; padding: 0; margin: 0 0 16px; }
.collab-feed li { font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.collab-feed span { color: var(--text-muted); font-size: 12px; }

.bgm-section { margin: 20px 0; }
.bgm-section h4 { margin: 0 0 10px; font-size: 14px; }
.bgm-picker { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.bgm-item {
  flex-shrink: 0; border: 1px solid var(--border); background: var(--bg-card);
  border-radius: var(--radius-md); padding: 10px 12px; min-width: 110px; cursor: pointer; text-align: left;
}
.bgm-item.is-on { border-color: var(--primary); background: rgba(139,105,20,0.08); }
.bgm-play { font-size: 12px; margin-right: 4px; }
.bgm-name { display: block; font-size: 13px; font-weight: 600; }
.bgm-dur { font-size: 11px; color: var(--text-muted); }

.music-bar {
  position: fixed; bottom: calc(var(--contact-footer-h) + 8px + env(safe-area-inset-bottom, 0));
  left: 50%; transform: translateX(-50%); z-index: 75;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border-radius: var(--radius-full);
  padding: 6px 12px; box-shadow: 0 4px 16px var(--shadow); max-width: 320px; width: calc(100% - 32px);
}
.music-bar__btn { border: 0; background: var(--primary); color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.music-bar__label { flex: 1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-bar__vol { width: 72px; }

.photo-detail-img { width: 100%; border-radius: var(--radius-md); margin-bottom: 12px; }
.photo-detail-placeholder { height: 160px; display: flex; align-items: center; justify-content: center; font-size: 48px; background: var(--secondary-light); border-radius: var(--radius-md); margin-bottom: 12px; }
.photo-caption-area { resize: vertical; min-height: 72px; }
.photo-detail-tools { display: flex; gap: 8px; margin: 10px 0; }
.photo-detail-tools select { flex: 1; }
.ai-suggestions { margin: 10px 0; }
.ai-loading { font-size: 13px; color: var(--text-light); animation: pulse 1s infinite; }
.ai-card {
  display: block; width: 100%; text-align: left; border: 1px solid var(--border);
  background: var(--bg); border-radius: var(--radius-md); padding: 10px; margin-bottom: 8px;
  font-size: 13px; cursor: pointer; line-height: 1.4;
}
.ai-card:active { border-color: var(--primary); }
.voice-bubble { border: 0; background: var(--secondary-light); padding: 10px 14px; border-radius: var(--radius-full); cursor: pointer; margin: 8px 0; }
.record-wave { display: flex; gap: 4px; justify-content: center; padding: 8px; }
.record-wave span { width: 4px; height: 20px; background: var(--primary); border-radius: 2px; animation: wave 0.6s ease-in-out infinite alternate; }
.record-wave span:nth-child(2) { animation-delay: 0.15s; }
.record-wave span:nth-child(3) { animation-delay: 0.3s; }
@keyframes wave { from { transform: scaleY(0.4); } to { transform: scaleY(1.2); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.video-embed { position: relative; margin: 10px 0; border-radius: var(--radius-md); overflow: hidden; }
.video-embed img { width: 100%; display: block; }
.video-play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(0,0,0,0.5); color: #fff; font-size: 20px; cursor: pointer; }

.share-canvas-wrap { margin: 12px 0; }
.share-canvas-wrap canvas { width: 100%; height: auto; border-radius: var(--radius-md); }
.modal-hint { font-size: 12px; color: var(--text-muted); text-align: center; margin: 8px 0 16px; }

.print-area { padding: 24px; }
.print-area h1 { font-family: var(--font-serif); }
.print-page { page-break-inside: avoid; margin-bottom: 24px; border-bottom: 1px solid #ccc; padding-bottom: 16px; }

@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; }
  .contact-footer, .fab-cta, .music-bar { display: none !important; }
}

/* P2 · 修复 / 留言 / 提醒 / 印刷 */
.reminder-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: linear-gradient(90deg, #8B6914, #A0782C); color: #fff;
  padding: 10px 12px; font-size: 12px; line-height: 1.4;
}
.reminder-banner button { border: 0; background: rgba(255,255,255,0.2); color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }

.more-panel { padding-bottom: 24px; }
.p2-block { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.p2-block h3 { margin: 0 0 8px; font-size: 16px; }
.p2-desc { margin: 0 0 12px; font-size: 12px; color: var(--text-light); }
.p2-empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 16px; }

.restore-stack { position: relative; width: 280px; max-width: 100%; margin: 0 auto 10px; border-radius: var(--radius-md); overflow: hidden; }
.restore-stack canvas { width: 100%; height: auto; display: block; }
.restore-clip { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; }
.restore-handle {
  position: absolute; top: 0; bottom: 0; width: 3px; background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.4); transform: translateX(-50%); pointer-events: none;
}
.restore-slider { width: 100%; margin: 8px 0 12px; }

.message-wall { display: grid; gap: 10px; margin-bottom: 12px; max-height: 240px; overflow-y: auto; }
.msg-card { display: flex; gap: 10px; background: var(--bg-card); border-radius: var(--radius-md); padding: 10px; box-shadow: 0 1px 6px var(--shadow); }
.msg-avatar { font-size: 28px; flex-shrink: 0; }
.msg-body strong { font-size: 13px; display: block; }
.msg-body p { margin: 4px 0; font-size: 13px; line-height: 1.4; color: var(--text-light); }
.msg-body time { font-size: 11px; color: var(--text-muted); }
.message-form { display: flex; flex-direction: column; gap: 8px; }
.message-form input, .message-form textarea { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px; background: var(--bg); }

.reminder-list { margin-bottom: 12px; }
.reminder-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.reminder-item strong { display: block; }
.reminder-item span { font-size: 11px; color: var(--text-muted); }
.reminder-badge { background: var(--primary); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: var(--radius-full); font-style: normal; margin-left: auto; }
.reminder-del { border: 0; background: none; color: var(--text-muted); font-size: 18px; cursor: pointer; }

.option-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.opt-chip {
  border: 1px solid var(--border); background: var(--bg); padding: 8px 12px;
  border-radius: var(--radius-full); font-size: 12px; cursor: pointer;
}
.opt-chip.active { border-color: var(--primary); background: rgba(139,105,20,0.1); color: var(--primary-dark); }
.range-val { text-align: center; font-size: 13px; margin: 4px 0 12px; }
.price-box {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(139,105,20,0.1); border-radius: var(--radius-md); padding: 14px; margin-bottom: 16px;
}
.price-box strong { font-size: 24px; color: var(--primary); }
.order-success-body { text-align: center; }
.order-success-body p:first-child { font-size: 16px; font-weight: 600; }
