@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/jetbrains-mono-regular.ttf") format("truetype"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/jetbrains-mono-bold.ttf") format("truetype"); }

/* Figma fidelity pass — layout follows the approved Night Archive frames. */

/* Home: quiet editorial heading, inline statistics and archival cards. */
.page-home { background: var(--bg); }
.home-header { display: none; }
.home-greeting {
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.home-greeting::after, .home-greeting .greeting-moon { display: none; }
.home-greeting .eyebrow {
  margin: 0 0 24px;
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .18em;
}
.home-greeting .eyebrow::after { display: none; }
.greeting-title {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .01em;
}
.greeting-title::after { content: "，梦境旅人"; }
.greeting-sub {
  margin: 20px 0 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.7;
}
.home-stats {
  display: flex;
  align-items: center;
  min-height: 64px;
  margin-top: 26px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.home-stat { display: flex; align-items: baseline; gap: 8px; margin-right: 38px; }
.home-stat strong { color: var(--gold); font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.home-stat span { color: var(--secondary); font-size: 12px; }
.home-stats .service-status { margin: 0 0 0 auto; font-size: 12px; }
.home-stat-unlocked { display: none; }
.archive-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 28px 0 18px; }
.archive-heading h2 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.archive-filters { display: flex; gap: 8px; }
.archive-filter {
  min-width: 58px;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--secondary);
  background: var(--panel);
  font-size: 12px;
}
.archive-filter.active { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.timeline { gap: 24px; }
.dream-card { padding: 12px; border-radius: 16px; box-shadow: none; }
.dream-image-card { min-height: 0; aspect-ratio: 1.82; border-radius: 12px; }
.dream-image-shade { background: none; }
.dream-image-label { left: 12px; bottom: 12px; padding: 4px 8px; font-size: 10px; }
.dream-main { padding: 14px 2px 2px; }
.dream-row { gap: 10px; }
.dream-row h3 { font-size: 18px; font-weight: 600; }
.dream-row time { font-size: 10px; }
.dream-main p { margin: 8px 0 12px; font-size: 13px; line-height: 1.65; }
.dream-tags span {
  min-height: 24px;
  padding: 3px 8px;
  border: 0;
  border-radius: 6px;
  color: var(--secondary);
  background: var(--raised);
  font-size: 10px;
}
.home-privacy { margin: 28px auto 0; color: var(--faint); font-size: 11px; line-height: 1.8; text-align: center; }

/* Approved Web navigation: 80px bar, three central destinations, restrained CTA. */
@media (min-width: 900px) {
  .top-nav { gap: 48px; background: var(--canvas); backdrop-filter: none; }
  .top-brand .logo-icon { width: 26px; height: 26px; border: 0; background: transparent; }
  .top-brand { font-size: 16px; }
  .top-links { gap: 10px; }
  .top-tab { min-height: 38px; padding: 9px 16px; border-radius: 10px; }
  .top-record { min-width: 148px; min-height: 46px; border-radius: 12px; }
  .page { padding-top: 38px; }
  .page-home { padding-bottom: 48px; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dream-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.22); }
}

/* Approved H5 home and fixed bottom navigation. */
@media (max-width: 899px) {
  .page-home { padding: 30px 16px calc(96px + env(safe-area-inset-bottom)); }
  .home-greeting .eyebrow { margin-bottom: 24px; font-size: 0; }
  .home-greeting .eyebrow::before { content: "PRIVATE NIGHT ARCHIVE"; font-size: 10px; }
  .greeting-title { font-size: 28px; line-height: 1.4; }
  .greeting-sub { margin-top: 16px; font-size: 12px; }
  .home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 84px;
    margin: 20px 0 14px;
    padding: 16px 14px;
  }
  .home-stat { display: grid; justify-items: start; gap: 6px; margin: 0; }
  .home-stat:nth-child(2) { justify-items: center; }
  .home-stat:nth-child(3) { justify-items: end; }
  .home-stat strong { font-size: 20px; }
  .home-stat span { font-size: 11px; }
  .home-stat-unlocked { display: grid; }
  .home-stats .service-status { display: none; }
  .archive-heading, .home-privacy { display: none; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .dream-image-card { aspect-ratio: 2.2; }
  .dream-row time { display: none; }
  .dream-main { padding-top: 13px; }
  .tab-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    gap: 0;
    min-height: 74px;
    padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: var(--panel);
    box-shadow: none;
    backdrop-filter: none;
  }
  .tab-item { min-height: 54px; border-radius: 0; }
  .tab-item.active { background: transparent; }
  .tab-icon-record { width: auto; height: auto; border: 0; border-radius: 0; }
  .tab-item.active .tab-icon-record { color: var(--gold); background: transparent; }
}

.record-rec, .record-privacy, .edit-privacy, .detail-eyebrow, .detail-actions, .profile-sync { display: none; }

@media (min-width: 900px) {
  /* Recording frame: centered 360px instrument column. */
  .page-record.active { display: block; }
  .page-record .record-header { display: none; }
  .record-content { width: 360px; margin: 0 auto; padding: 0; }
  .record-content .eyebrow { margin-bottom: 16px; font-size: 10px; }
  .record-title { font-size: 32px; }
  .keyword-chips { margin: 24px 0 36px; }
  .keyword-chip { min-width: 48px; padding: 7px 10px; border: 0; }
  .record-stage { display: block; width: 270px; }
  .wave-rings { inset: 0; width: 270px; height: 270px; }
  .wave-ring { inset: 0; animation: none; }
  .wave-ring-2 { inset: 30px; }
  .wave-ring-3 { inset: 63px; }
  .record-btn { position: absolute; left: 50%; top: 135px; width: 104px; height: 104px; padding: 0; box-shadow: none; transform: translate(-50%, -50%); }
  .record-btn-inner { color: var(--ink); background: var(--gold); }
  .record-btn-inner .ic { display: none; }
  .record-rec { display: block; font-size: 16px; font-weight: 700; letter-spacing: .12em; }
  .record-hint { margin: 330px 0 0; font-size: 14px; }
  .record-timer { font-size: 20px; }
  .record-text-btn { width: 360px; margin-top: 34px; border-radius: 12px; }
  .record-privacy { display: block; margin: 16px 0 0; color: var(--faint); font-size: 12px; }

  /* Editor frame: 800px centered reading/writing surface. */
  .edit-header, .edit-style, .edit-editor { width: 800px; max-width: 800px; }
  .edit-header { margin-bottom: 24px; }
  .edit-header .icon-btn { display: none; }
  .edit-title { font-size: 30px; }
  .edit-header .text-btn { width: 140px; min-height: 48px; }
  .edit-style { margin-bottom: 20px; }
  .edit-style-label { margin-bottom: 16px; text-align: center; }
  .style-pills { display: flex; justify-content: center; gap: 10px; }
  .style-pill { min-width: 74px; min-height: 36px; padding: 6px 10px; border-radius: 999px; font-size: 12px; }
  .edit-textarea { height: 460px; min-height: 460px; border-color: var(--gold-border); resize: none; }
  .edit-helper { margin-top: 8px; font-size: 12px; text-align: center; }
  .edit-privacy { display: block; margin: 8px 0 0; color: var(--faint); font-size: 12px; text-align: center; }

  /* Detail frame: 480px image + flexible reading column. */
  .page-detail.active {
    display: grid;
    grid-template-columns: 480px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding: 40px max(40px, calc((100vw - var(--content-max)) / 2)) 64px;
  }
  .page-detail .detail-image { position: relative; top: auto; height: 660px; border-radius: 16px; }
  .detail-back, .detail-share-top { display: none; }
  .detail-body { max-width: none; margin: 0; padding: 0; border-radius: 0; background: transparent; }
  .detail-eyebrow { display: block; margin: 0 0 16px; color: var(--gold); font-family: ui-monospace, monospace; font-size: 10px; letter-spacing: .12em; }
  .detail-title { font-size: 36px; }
  .detail-date { display: none; }
  .detail-tags { margin: 18px 0 24px; }
  .d-tag { border: 0; border-radius: 6px; color: var(--secondary); background: var(--raised); }
  .content-title { margin: 24px 0 12px; color: var(--text); font-size: 14px; letter-spacing: 0; }
  .content-title::before { display: none; }
  .content-text { color: var(--secondary); font-size: 14px; line-height: 2; }
  .detail-ai .content-title { color: var(--gold); }
  .ai-card { padding: 20px; border: 1px solid var(--gold-border); border-radius: 12px; color: var(--secondary); background: var(--gold-soft); font-size: 14px; line-height: 1.8; }
  .detail-audit-line { margin: 20px 0; color: var(--success); font-size: 12px; text-align: left; }
  .detail-actions { display: flex; gap: 12px; }
  .detail-actions .paywall-cta { min-width: 180px; margin: 0; border-radius: 10px; }

  /* Profile frame: one 800px column, no avatar/two-column invention. */
  .page-profile.active { display: block; max-width: none; margin: 0; }
  .profile-header, .profile-user, .profile-menu, .profile-version { width: 800px; max-width: 800px; margin-left: auto; margin-right: auto; }
  .profile-header { margin-bottom: 24px; text-align: left; }
  .profile-header .eyebrow { justify-content: center; margin: 0 0 32px; font-size: 10px; text-align: center; }
  .profile-title { font-family: var(--font-display); font-size: 30px; }
  .profile-heading-sub { margin: 12px 0 0; color: var(--secondary); font-size: 14px; }
  .profile-user { display: block; padding: 24px; border-radius: 16px; background: var(--panel); text-align: left; }
  .profile-avatar { display: none; }
  .profile-name { margin: 0 0 8px; font-size: 24px; }
  .profile-sync { display: block; margin: 0; color: var(--success); font-size: 13px; }
  .profile-stats { display: flex; justify-content: space-between; margin-top: 28px; }
  .stat-card { padding: 0; border: 0; background: transparent; text-align: left; }
  .stat-num { font-size: 24px; }
  .profile-menu { gap: 10px; margin-top: 22px; }
  .menu-item { display: block; min-height: 68px; padding: 12px 16px; border-radius: 12px; }
  .menu-icon, .menu-arrow { display: none; }
  .menu-label { color: var(--secondary); font-size: 11px; }
  .menu-label small { display: block; margin-top: 5px; color: var(--text); font-size: 14px; }
  .profile-version { margin-top: 26px; padding: 0; border: 0; font-size: 11px; }
}

.record-nav-title, .edit-next-bottom, .detail-nav { display: none; }

@media (max-width: 899px) {
  /* H5 recording frame, coordinates exclude the OS status bar. */
  .page-record.active { display: block; padding: 16px 24px 30px; }
  .record-header { justify-content: flex-start; height: 44px; }
  .record-close { width: 44px; margin-left: -10px; border: 0; background: transparent; }
  .record-nav-title { display: inline; font-size: 16px; }
  .record-content { width: 100%; margin: 14px auto 0; padding: 0; }
  .record-content .eyebrow { margin-bottom: 19px; font-size: 10px; }
  .record-title { margin-bottom: 16px; font-size: 28px; }
  .record-subtitle { font-size: 14px; }
  .keyword-chips { margin: 19px 0 32px; }
  .keyword-chip { min-width: 48px; padding: 7px 10px; border: 0; }
  .record-stage { display: block; width: 252px; }
  .wave-rings { inset: 0; width: 252px; height: 252px; }
  .wave-ring { inset: 0; animation: none; }
  .wave-ring-2 { inset: 28px; }
  .wave-ring-3 { inset: 58px; }
  .record-btn { position: absolute; left: 50%; top: 126px; width: 104px; height: 104px; padding: 0; box-shadow: none; transform: translate(-50%, -50%); }
  .record-btn-inner { color: var(--ink); background: var(--gold); }
  .record-btn-inner .ic { display: block; width: 28px; height: 28px; }
  .record-rec { display: none; }
  .record-hint { margin: 296px 0 0; font-size: 15px; }
  .record-timer { margin-top: 8px; font-size: 24px; }
  .record-text-btn { width: 100%; margin-top: 18px; border-radius: 12px; }
  .record-privacy { display: block; margin: 18px 0 0; color: var(--faint); font-size: 11px; }

  /* H5 editor: back/title row, compact pills and bottom next action. */
  .page-edit { padding: 16px 16px 32px; }
  .edit-header { justify-content: flex-start; height: 44px; margin-bottom: 24px; }
  .edit-header .icon-btn { width: 44px; margin-left: -10px; border: 0; background: transparent; }
  .edit-title { font-family: inherit; font-size: 17px; }
  .edit-next-header { display: none; }
  .edit-next-bottom { display: block; width: 100%; min-height: 48px; margin-top: 24px; border-radius: 12px; }
  .edit-style-label { margin-bottom: 12px; }
  .style-pills { display: grid; grid-template-columns: repeat(2, max-content); justify-content: start; gap: 8px; }
  .style-pill { min-height: 32px; padding: 6px 12px; border-radius: 999px; font-size: 12px; }
  .edit-textarea { height: 430px; min-height: 430px; padding: 16px; border-color: var(--gold-border); font-size: 15px; line-height: 1.75; resize: none; }
  .edit-helper { margin-top: 10px; font-size: 11px; }

  /* H5 detail: 44px navigation, 358×300 cover and document flow. */
  .page-detail { padding: 12px 0 48px; }
  .detail-nav { display: flex; align-items: center; height: 44px; padding: 0 16px; font-size: 16px; }
  .detail-nav .detail-back { position: static; width: 44px; margin-left: -10px; border: 0; background: transparent; backdrop-filter: none; }
  .page-detail .detail-image { height: 300px; margin: 16px 16px 0; border-radius: 14px; }
  .detail-body { display: flex; flex-direction: column; margin: 0; padding: 20px 16px 0; border-radius: 0; }
  .detail-meta-row { order: 1; }
  .detail-eyebrow { display: block; order: 2; margin: 10px 0 0; color: var(--gold); font-family: ui-monospace, monospace; font-size: 10px; }
  .detail-eyebrow-label { display: none; }
  .detail-eyebrow::after { content: " · DREAM NO.001"; }
  .detail-date, .detail-share-top { display: none; }
  .detail-title { overflow: hidden; font-size: 24px; text-overflow: ellipsis; white-space: nowrap; }
  .detail-tags { order: 3; margin: 16px 0 18px; }
  .detail-content { order: 4; }
  .detail-ai { order: 5; }
  .detail-audit-line { order: 6; margin: 16px 0; text-align: left; }
  .detail-actions { display: flex; order: 7; }
  .detail-actions .paywall-cta { width: 100%; margin: 0; border-radius: 12px; }
  .content-title { margin: 0 0 10px; color: var(--text); font-size: 18px; letter-spacing: 0; }
  .content-title::before { display: none; }
  .content-text { color: var(--secondary); font-size: 13px; line-height: 1.8; }
  .detail-ai .content-title { margin: 18px 0 10px; color: var(--gold); font-size: 14px; }
  .ai-card { padding: 14px; border: 1px solid var(--gold-border); border-radius: 12px; background: var(--gold-soft); font-size: 12px; line-height: 1.8; }
  .d-tag { border: 0; border-radius: 999px; color: var(--secondary); background: var(--raised); }

  /* H5 profile: single column, no avatar/arrows or separate stat cards. */
  .page-profile { padding: 30px 16px calc(96px + env(safe-area-inset-bottom)); }
  .profile-header { display: block; margin-bottom: 20px; text-align: left; }
  .profile-header .eyebrow { justify-content: flex-start; margin: 0 0 12px; font-size: 10px; }
  .profile-header .eyebrow::after { display: none; }
  .profile-title { font-family: var(--font-display); font-size: 30px; }
  .profile-heading-sub, .profile-avatar { display: none; }
  .profile-user { display: block; padding: 20px; border-radius: 16px; background: var(--panel); text-align: left; }
  .profile-name { margin: 0 0 8px; font-size: 22px; }
  .profile-sync { display: block; margin: 0; color: var(--success); font-size: 12px; }
  .profile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
  .stat-card { padding: 0; border: 0; background: transparent; text-align: left; }
  .stat-num { font-size: 24px; }
  .stat-label { font-size: 11px; }
  .profile-menu { gap: 16px; margin-top: 16px; }
  .menu-item { display: block; min-height: 60px; padding: 12px 16px; border-radius: 14px; }
  .menu-icon, .menu-arrow { display: none; }
  .menu-label { color: var(--text); font-size: 15px; }
  .menu-label small { display: block; margin-top: 5px; color: var(--secondary); font-size: 12px; }
  .profile-version { margin-top: 20px; font-size: 0; text-align: left; }
  .profile-version::before { content: "梦境记录仪 · dreamcatch.fun"; font-size: 11px; }

  .home-stat span { font-size: 0; }
  .home-stat:nth-child(1) span::after { content: "梦境"; font-size: 11px; }
  .home-stat:nth-child(2) span::after { content: "本月"; font-size: 11px; }
  .home-stat:nth-child(3) span::after { content: "已解锁"; font-size: 11px; }
}

.generating-nav { display: none; }
.gen-sparkles { display: none; }
.nebula { width: 220px; height: 220px; margin-bottom: 40px; }
.nebula-core { inset: 66px; box-shadow: none; }
.nebula-core::after { display: none; }
.nebula-ring-2 { inset: 27px; }
.nebula-ring-3 { inset: 54px; }
.nebula .progress-percent { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; margin: 0; color: var(--ink); font-size: 16px; font-weight: 700; }
.generating-title { font-size: 24px; }
.generating-stage { font-size: 12px; }
.progress-track { width: 300px; max-width: 100%; height: 8px; margin-top: 16px; }
.generating-tags { margin-top: 16px; }
.generating-tip { margin-top: 18px; }

@media (min-width: 900px) {
  .page-generating.active { display: block; }
  .generating-content { margin: 0 auto; padding: 0; }
}

@media (max-width: 899px) {
  .page-generating.active { display: block; padding: 16px; }
  .generating-nav { display: flex; align-items: center; height: 44px; font-size: 16px; }
  .generating-nav .icon-btn { width: 44px; margin-left: -10px; border: 0; background: transparent; }
  .generating-content { margin: 32px auto 0; padding: 0; }
  .pay-sheet .share-handle { display: none; }
  .pay-sheet .share-title { font-size: 24px; }
  .pay-channel { min-height: 58px; }
}

/* Design-context audit: exact typography, flat surfaces and dialog/public-share geometry. */
.dream-sky, .cursor-glow { display: none !important; }
.greeting-title, .record-title, .detail-title, .profile-title, .profile-name,
.archive-heading h2, .dream-row h3, .share-title, .generating-title, .content-title, .empty-v2 strong {
  font-family: var(--font-display);
  font-weight: 700;
}
.dream-row time, .record-timer, .detail-eyebrow, .progress-percent { font-family: "JetBrains Mono", ui-monospace, monospace; }
.pay-overlay, .share-overlay { background: rgba(11,16,24,.78); backdrop-filter: none; }
.pay-channel-price::after { content: " ›"; }
.share-privacy { display: block; margin: 0 0 14px; color: var(--faint); font-size: 11px; line-height: 1.7; }
.share-cancel { border: 1px solid var(--line); background: var(--raised); }
.detail-edit-btn { min-height: 48px; padding: 0 22px; border: 1px solid var(--line); border-radius: 12px; color: var(--text); background: var(--raised); }
.ai-disclaimer { display: block; flex-basis: 100%; color: var(--faint); font-size: 11px; line-height: 1.7; }
.profile-legal { margin: 10px 0 0; color: var(--faint); font-size: 10px; line-height: 1.8; }
.profile-legal a { color: var(--secondary); text-decoration: none; }
.detail-actions { flex-wrap: wrap; }

/* Public share has no brand header or outer card. */
.public-share { display: block; min-height: 100dvh; padding: 40px 24px; background: var(--bg); }
.public-share-brand { display: none; }
.public-share .card { width: min(100%, 390px); margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
.public-share .card img { width: 100%; height: 470px; border-radius: 18px; object-fit: cover; }
.public-share h1 { margin: 18px 0 8px; font-size: 23px; text-align: left; }
.public-share .sub { margin: 0 0 8px; font-size: 12px; text-align: left; }
.public-share .share-expiry { margin: 0; color: var(--faint); font-size: 10px; line-height: 1.6; }
.public-share .err, .public-share .error-help { padding-left: 0; padding-right: 0; text-align: left; }

@media (min-width: 900px) {
  .top-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; padding: 0 40px; }
  .top-brand { justify-self: start; }
  .top-links { justify-self: center; gap: 8px; }
  .top-tab { display: inline-flex; align-items: center; gap: 10px; height: 46px; min-height: 46px; padding: 0 14px; border-radius: 12px; }
  .top-tab .ic { width: 20px; height: 20px; }
  .top-actions { justify-self: end; }
  .top-record { width: 150px; min-width: 150px; height: 46px; }
  .page-home { background: var(--canvas); }
  .home-greeting .eyebrow { margin-bottom: 3px; }
  .greeting-sub { font-size: 14px; text-align: center; }
  .greeting-sub-extra { margin-left: .35em; }
  .home-stat { gap: 8px; margin-right: 12px; }
  .home-stat strong { font-family: inherit; font-size: 18px; }
  .home-stats .service-status { display: grid; grid-template-columns: auto auto; gap: 0 8px; color: var(--success); font-size: 14px; }
  .home-stats .service-status::before { grid-row: 1 / 3; align-self: center; }
  .home-stats .service-status::after { content: "服务状态"; grid-column: 2; color: var(--faint); font-size: 12px; }
  .archive-filter { border-radius: 999px; }
  .timeline { column-gap: 0; justify-content: space-between; }
  .dream-tags { gap: 6px; }
  .dream-tags span { min-height: 0; padding: 7px 12px; border-radius: 999px; font-size: 12px; }
  .home-privacy { font-size: 12px; }
  .pay-sheet { width: 520px; padding: 28px; }
  .pay-sheet .share-title, .pay-sheet .pay-sub { text-align: left; }
  .pay-sheet .share-title { font-size: 26px; }
  .pay-channel { min-height: 64px; }
  .pay-channel-price { font-family: inherit; font-size: 15px; }
  .share-sheet { width: 540px; padding: 24px; }
  .share-sheet .share-title { font-size: 26px; text-align: left; }
  .share-preview { display: block; padding: 0; border: 0; background: transparent; }
  .share-preview img { width: 100%; height: 300px; border-radius: 14px; }
  .share-preview-text { display: flex; margin-top: 12px; }
  .share-real-btn { min-height: 48px; justify-content: center; }
  .share-cancel { min-height: 48px; }
  .detail-edit-btn { min-width: 200px; }
  .public-share .card { width: 560px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
  .public-share .card img { width: 100%; height: 560px; }
}

@media (min-width: 1200px) {
  .timeline { grid-template-columns: repeat(3, 350px); }
  .dream-image-card { height: 180px; aspect-ratio: auto; }
}

@media (max-width: 899px) {
  .greeting-title { font-size: 26px; }
  .greeting-sub-extra { display: none; }
  .dream-image-card { height: 150px; aspect-ratio: auto; }
  .dream-main p { font-size: 12px; line-height: 1.7; }
  .dream-tags span { min-height: 0; padding: 6px 10px; border-radius: 999px; font-size: 11px; }
  .page-home .timeline::after { content: ""; display: block; height: 56px; }
  .page-profile .profile-legal { margin-bottom: 56px; }
  .tab-bar { min-height: 76px; padding-top: 12px; }
  .tab-label { font-size: 11px; }
  .pay-sheet, .share-sheet { padding: 20px; }
  .pay-sheet .share-title, .pay-sheet .pay-sub, .share-sheet .share-title { text-align: left; }
  .pay-sheet .share-title, .share-sheet .share-title { font-size: 23px; }
  .pay-channel { min-height: 58px; }
  .pay-channel-name { font-size: 13px; }
  .pay-channel-price { font-family: inherit; font-size: 15px; }
  .pay-sheet .share-cancel, .share-sheet .share-cancel { min-height: 48px; }
  .share-sheet .share-handle { display: none; }
  .share-preview { display: block; margin-bottom: 12px; padding: 0; border: 0; background: transparent; }
  .share-preview img { width: 100%; height: 180px; border-radius: 14px; }
  .share-preview-text { display: none; }
  .share-real-btn { min-height: 48px; justify-content: center; text-align: center; }
  .share-real-btn .ic { display: none; }
  .share-real-btn:first-child { color: var(--ink); background: var(--gold); font-weight: 700; }
  .detail-actions { flex-direction: column; }
  .detail-edit-btn { width: 100%; }
  .public-share { padding-top: 40px; }
}
