@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Noto+Serif+SC:wght@500;600;700&display=swap');

:root {
  --paper: #f6f1eb;
  --paper-deep: #eee6dd;
  --ink: #2f2d2b;
  --muted: #8c837c;
  --line: rgba(92, 78, 68, 0.13);
  --coral: #ef806e;
  --coral-deep: #d96259;
  --peach: #f7b7a3;
  --blue: #9ab8cb;
  --lilac: #b8a4c7;
  --cream: #fffaf5;
  --shadow: 0 24px 70px rgba(94, 69, 52, 0.08);
  --sans: 'Manrope', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --serif: 'Noto Serif SC', 'Songti SC', serif;
  --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { cursor: pointer; }

.site-shell { position: relative; min-height: 100vh; overflow: hidden; }
.ambient { position: fixed; z-index: -2; border-radius: 999px; filter: blur(0); pointer-events: none; }
.ambient-one { width: 38vw; height: 38vw; top: -16vw; right: -10vw; background: rgba(248, 199, 184, 0.28); }
.ambient-two { width: 28vw; height: 28vw; bottom: 5vh; left: -12vw; background: rgba(189, 210, 220, 0.2); }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }

.login-screen { display: grid; place-items: center; min-height: 100vh; padding: 28px; }
.login-card { position: relative; width: min(100%, 470px); padding: 58px 56px 48px; border: 1px solid rgba(255,255,255,.58); border-radius: 30px; background: rgba(255, 251, 246, .78); box-shadow: var(--shadow); backdrop-filter: blur(18px); text-align: center; animation: rise-in .7s ease both; }
.login-card::before, .login-card::after { position: absolute; content: ''; width: 70px; height: 70px; border: 1px solid rgba(239,128,110,.28); border-radius: 50%; pointer-events: none; }
.login-card::before { top: 27px; left: 24px; }
.login-card::after { right: 22px; bottom: 24px; width: 45px; height: 45px; border-color: rgba(154,184,203,.4); }
.login-mark { display: grid; place-items: center; width: 65px; height: 65px; margin: 0 auto 26px; border-radius: 21px; background: var(--coral); color: white; font-family: var(--serif); font-size: 36px; line-height: 1; box-shadow: 0 14px 26px rgba(217,98,89,.22); transform: rotate(-7deg); }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .16em; line-height: 1.5; text-transform: uppercase; }
.login-card h1, .content-wrap h2, .section-heading h3, .panel-heading h3 { font-family: var(--serif); font-weight: 600; }
.login-card h1 { margin: 0; font-size: clamp(29px, 5vw, 38px); letter-spacing: -.06em; }
.login-copy { max-width: 290px; margin: 15px auto 38px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.password-form { text-align: left; }
.password-form > label { display: block; margin-bottom: 9px; color: #6e655e; font-size: 12px; font-weight: 700; }
.password-wrap { display: flex; align-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.7); transition: border-color .2s, box-shadow .2s; }
.password-wrap:focus-within { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(239,128,110,.12); }
.password-wrap input { width: 100%; min-width: 0; padding: 16px 16px; border: 0; outline: 0; background: transparent; color: var(--ink); font-family: var(--mono); font-size: 16px; letter-spacing: .18em; }
.password-toggle { padding: 8px 15px; border: 0; background: transparent; color: var(--coral-deep); font-size: 11px; font-weight: 700; }
.field-hint { margin: 9px 2px 0; color: #a29991; font-size: 11px; }
.form-error { min-height: 18px; margin: 9px 2px 0; color: var(--coral-deep); font-size: 11px; }
.primary-button, .secondary-button, .light-button, .add-topic-button, .send-button { border: 0; transition: transform .2s, background .2s, box-shadow .2s; }
.primary-button:hover, .secondary-button:hover, .light-button:hover, .add-topic-button:hover, .send-button:hover { transform: translateY(-2px); }
.primary-button:active, .secondary-button:active, .light-button:active, .add-topic-button:active, .send-button:active { transform: translateY(0); }
.login-button { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 5px; padding: 15px 17px 15px 19px; border-radius: 14px; background: var(--coral); color: white; box-shadow: 0 10px 22px rgba(217,98,89,.2); font-size: 13px; font-weight: 700; }
.login-button span:last-child { font-size: 20px; font-weight: 400; line-height: 0; }
.login-footnote { margin: 29px 0 0; color: #aea49b; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.tiny-heart { color: var(--coral); font-size: 12px; }

.app-screen { width: 100%; animation: fade-in .55s ease both; }
.topbar { display: flex; justify-content: space-between; align-items: center; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-symbol { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; background: var(--coral); color: white; font-family: var(--serif); font-size: 23px; transform: rotate(-7deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: -.05em; }
.brand small { margin-top: 1px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.today-label { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.text-button { padding: 8px 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.text-button:hover { color: var(--coral-deep); }
.content-wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 38px 0 50px; }
.welcome-row { display: flex; justify-content: space-between; align-items: end; gap: 25px; margin-bottom: 28px; }
.content-wrap h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.2; letter-spacing: -.08em; }
.welcome-copy { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.date-badge { display: grid; flex: 0 0 78px; place-items: center; width: 78px; height: 78px; border: 1px solid rgba(239,128,110,.25); border-radius: 23px; background: rgba(255,250,245,.7); transform: rotate(4deg); }
.date-day { color: var(--coral-deep); font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: .9; }
.date-month { align-self: start; margin-top: -12px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .15em; }
.hero-card { position: relative; display: flex; justify-content: space-between; align-items: center; min-height: 300px; overflow: hidden; padding: 48px 58px; border-radius: 29px; background: #d9675e; box-shadow: 0 20px 45px rgba(194, 87, 78, .2); color: white; }
.hero-card::before { position: absolute; inset: 0; content: ''; opacity: .28; background: radial-gradient(circle at 85% 38%, rgba(255,255,255,.65) 0 1px, transparent 1.5px) 0 0 / 29px 29px, linear-gradient(115deg, transparent 0 30%, rgba(255,255,255,.08) 30% 31%, transparent 31% 60%, rgba(255,255,255,.08) 60% 61%, transparent 61%); }
.hero-copy { position: relative; z-index: 1; max-width: 470px; }
.light-eyebrow { color: rgba(255,255,255,.65); }
.hero-copy h3 { margin: 0; font-family: var(--serif); font-size: clamp(28px, 4vw, 43px); line-height: 1.35; letter-spacing: -.09em; }
.hero-copy p:not(.eyebrow) { max-width: 315px; margin: 20px 0 25px; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.8; }
.light-button { padding: 11px 15px; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: rgba(255,255,255,.12); color: white; font-size: 11px; }
.light-button span { margin-left: 8px; font-size: 16px; vertical-align: -1px; }
.hero-orbit { position: relative; z-index: 1; flex: 0 0 270px; width: 270px; height: 205px; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; transform: rotate(-22deg); }
.orbit-large { top: 20px; left: 20px; width: 235px; height: 145px; }
.orbit-small { top: 47px; left: 41px; width: 190px; height: 92px; border-color: rgba(255,255,255,.2); transform: rotate(27deg); }
.orbit-heart { position: absolute; top: 70px; left: 114px; display: grid; place-items: center; width: 65px; height: 65px; border-radius: 23px; background: rgba(255,255,255,.13); color: white; font-size: 32px; box-shadow: 0 10px 24px rgba(104,44,38,.12); animation: float-heart 4s ease-in-out infinite; }
.orbit-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #fbc9b8; box-shadow: 0 0 0 5px rgba(255,255,255,.08); }
.dot-one { top: 34px; right: 22px; }.dot-two { bottom: 22px; left: 43px; width: 5px; height: 5px; background: #f3e8dc; }.dot-three { top: 103px; left: 12px; width: 4px; height: 4px; background: #f3e8dc; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 16px; }
.stat-card { display: flex; align-items: center; gap: 13px; padding: 20px 21px; border: 1px solid rgba(92,78,68,.09); border-radius: 17px; background: rgba(255,250,245,.6); }
.stat-icon { display: grid; flex: 0 0 31px; place-items: center; width: 31px; height: 31px; border-radius: 10px; font-size: 15px; }
.coral-icon { background: #fae1dc; color: var(--coral-deep); }.blue-icon { background: #e0ecf0; color: #7397ac; }.lilac-icon { background: #e9e1ed; color: #8d719e; }
.stat-card strong, .stat-card span { display: block; }.stat-card strong { margin-bottom: 5px; font-size: 11px; }.stat-card div span { color: var(--muted); font-size: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 67px 0 18px; }.section-heading-spaced { margin-top: 82px; }
.section-heading h3, .panel-heading h3 { margin: 0; color: var(--ink); font-size: 27px; letter-spacing: -.07em; }.section-number { color: #c4b9b0; font-family: var(--mono); font-size: 11px; letter-spacing: .15em; }
.panel-card { border: 1px solid rgba(92,78,68,.1); border-radius: 22px; background: rgba(255,251,247,.76); box-shadow: 0 12px 38px rgba(94,69,52,.035); }
.missing-card { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 34px 40px; }.missing-quote { position: relative; padding-left: 39px; }.quote-mark { position: absolute; top: -15px; left: 0; color: var(--peach); font-family: Georgia, serif; font-size: 68px; line-height: 1; }.missing-quote p { margin: 0 0 13px; font-family: var(--serif); font-size: 20px; line-height: 1.9; letter-spacing: -.04em; }.quote-author { color: var(--muted); font-size: 10px; }
.missing-actions { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 125px; }.secondary-button { padding: 13px 18px; border-radius: 12px; background: #f8e2dc; color: var(--coral-deep); font-size: 12px; font-weight: 700; }.secondary-button.is-liked { background: var(--coral); color: white; }.secondary-button span { margin-right: 6px; font-family: var(--serif); font-size: 18px; vertical-align: -2px; }.action-hint { color: #b3a79d; font-size: 10px; }
.two-column-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 16px; margin-top: 16px; }.chat-card, .meet-card { min-height: 360px; padding: 29px; }.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }.panel-heading h3 { font-size: 23px; }.online-dot { color: #70a086; font-family: var(--mono); font-size: 9px; }.online-dot::before { display: inline-block; width: 6px; height: 6px; margin: 0 5px 1px 0; border-radius: 50%; background: #7cbd91; content: ''; }
.chat-list { display: flex; flex-direction: column; gap: 13px; height: 207px; margin: 22px 0 16px; overflow-y: auto; padding: 0 2px 2px; }.chat-list::-webkit-scrollbar { width: 4px; }.chat-list::-webkit-scrollbar-thumb { border-radius: 4px; background: #e2d7cd; }.chat-bubble { max-width: 77%; padding: 11px 14px; border-radius: 14px 14px 14px 3px; background: #f2ebe3; color: #665e58; font-size: 11px; line-height: 1.65; }.chat-message.mine { align-self: end; }.chat-message.mine .chat-bubble { border-radius: 14px 14px 3px 14px; background: #f7d5ce; color: #7e514d; }.chat-meta { display: block; margin-top: 4px; color: #b7aaa0; font-family: var(--mono); font-size: 8px; }.chat-message.mine .chat-meta { text-align: right; }.chat-form { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #dcd0c5; }.chat-form input, .topic-form input { min-width: 0; flex: 1; padding: 12px 1px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }.chat-form input::placeholder, .topic-form input::placeholder { color: #b8aea6; }.send-button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--coral); color: white; font-size: 16px; }
.calendar-icon { color: var(--coral); font-size: 24px; line-height: 1; }.meet-date { margin-top: 30px; }.meet-date span, .meet-date small { display: block; }.meet-date span { font-family: var(--mono); font-size: 23px; letter-spacing: -.08em; }.meet-date small { margin-top: 7px; color: var(--muted); font-size: 10px; }.countdown { display: flex; align-items: center; justify-content: space-between; margin-top: 29px; padding: 19px 15px; border-radius: 15px; background: #edf3f2; }.countdown div { text-align: center; }.countdown strong, .countdown span { display: block; }.countdown strong { color: #607c7e; font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -.08em; }.countdown span { margin-top: 5px; color: #9ba8a5; font-size: 9px; }.countdown i { color: #b0c1bd; font-family: var(--mono); font-size: 15px; font-style: normal; padding-bottom: 15px; }.meet-note { margin: 22px 0 0; color: var(--muted); font-family: var(--serif); font-size: 12px; line-height: 1.8; }
.topics-card { padding: 30px 33px 27px; }.topics-intro { display: flex; align-items: center; gap: 13px; }.topic-sparkle { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; background: #f5e6c9; color: #c79750; font-size: 17px; }.topics-intro h4, .emotion-intro h4, .future-card h4 { margin: 0; font-family: var(--serif); font-size: 17px; letter-spacing: -.05em; }.topics-intro p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.topic-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 24px; }.topic-chip { display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border: 1px solid #e2d6cb; border-radius: 11px; background: #fffaf6; color: #766d66; font-size: 11px; transition: border-color .2s, color .2s, background .2s; }.topic-chip:hover { border-color: var(--peach); }.topic-chip.is-done { border-color: #e9beb4; background: #fbe8e3; color: #b2665e; }.topic-chip input { position: absolute; opacity: 0; }.topic-check { display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid #cfc1b6; border-radius: 50%; font-size: 10px; }.topic-chip.is-done .topic-check { border-color: var(--coral); background: var(--coral); color: white; }.topic-remove { margin-left: 2px; border: 0; background: transparent; color: #bea99e; font-size: 15px; line-height: 1; }.topic-form { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #dcd0c5; }.add-topic-button { padding: 8px 0; border: 0; background: transparent; color: var(--coral-deep); font-size: 11px; font-weight: 700; white-space: nowrap; }
.emotion-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 38px; align-items: start; }.emotion-intro { padding: 5px 0; }.emotion-intro h4 { font-size: 21px; line-height: 1.5; }.emotion-intro > p { margin: 15px 0 23px; color: var(--muted); font-size: 11px; line-height: 2; }.opened-total { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 8px; background: #f1e9e2; color: var(--muted); font-family: var(--mono); font-size: 9px; }.opened-total span { color: var(--coral-deep); font-size: 14px; }
.emotion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.emotion-box { position: relative; min-height: 142px; padding: 19px 17px; overflow: hidden; border: 1px solid transparent; border-radius: 17px; text-align: left; transition: transform .2s, box-shadow .2s, border-color .2s; }.emotion-box:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(94,69,52,.09); }.emotion-box::after { position: absolute; right: -19px; bottom: -25px; width: 74px; height: 74px; border: 1px solid currentColor; border-radius: 50%; opacity: .17; content: ''; }.emotion-box.is-opened { border-color: rgba(112, 93, 81, .13); }.emotion-emoji { display: block; margin-bottom: 15px; font-size: 23px; }.emotion-box h5 { margin: 0; color: #5f5752; font-family: var(--serif); font-size: 14px; font-weight: 600; }.emotion-box p { margin: 6px 0 0; color: rgba(93,83,75,.65); font-size: 9px; line-height: 1.5; }.emotion-opened { position: absolute; right: 13px; bottom: 12px; color: rgba(93,83,75,.55); font-family: var(--mono); font-size: 8px; }.emotion-sad { background: #e5eef1; color: #759aa9; }.emotion-hug { background: #f8e2dc; color: #c6766c; }.emotion-tired { background: #eee8f0; color: #9882a3; }.emotion-angry { background: #f7e7cd; color: #c6985c; }.emotion-happy { background: #e8f0dc; color: #87a76f; }.emotion-miss { background: #f1e3e8; color: #b97d91; }
.future-card { display: flex; align-items: center; gap: 18px; margin-top: 82px; padding: 26px 29px; border: 1px dashed #d9c7ba; border-radius: 19px; background: rgba(255,250,245,.45); }.future-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border: 1px dashed #c9afa0; border-radius: 12px; color: var(--coral); font-size: 21px; }.future-card .eyebrow { margin-bottom: 6px; }.future-card h4 { font-size: 16px; }.future-card p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }.site-footer { display: flex; justify-content: center; gap: 9px; margin-top: 42px; color: #b8ada3; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }

.modal-backdrop { position: fixed; z-index: 5; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(56,45,39,.34); backdrop-filter: blur(7px); animation: fade-in .2s ease both; }.modal-backdrop[hidden] { display: none; }.emotion-modal { position: relative; width: min(100%, 450px); padding: 44px 42px 38px; border: 1px solid rgba(255,255,255,.7); border-radius: 27px; background: #fffaf5; box-shadow: 0 25px 70px rgba(54,42,35,.2); text-align: center; animation: rise-in .3s ease both; }.modal-close { position: absolute; top: 17px; right: 20px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f2e8df; color: #9e8c80; font-size: 20px; line-height: 1; }.modal-icon { display: grid; place-items: center; width: 57px; height: 57px; margin: 0 auto 20px; border-radius: 18px; background: #f8e2dc; color: var(--coral-deep); font-family: var(--serif); font-size: 27px; }.emotion-modal h3 { margin: 0; font-family: var(--serif); font-size: 27px; letter-spacing: -.07em; }.modal-message { min-height: 93px; margin: 24px 0 14px; padding: 20px 18px; border-radius: 15px; background: #f7eee7; color: #645b54; font-family: var(--serif); font-size: 16px; line-height: 2; letter-spacing: -.04em; }.modal-time { min-height: 14px; margin: 0; color: #b4a79d; font-family: var(--mono); font-size: 8px; }.modal-button { display: inline-flex; gap: 12px; align-items: center; margin-top: 22px; padding: 13px 18px; border-radius: 11px; background: var(--coral); color: white; font-size: 11px; font-weight: 700; box-shadow: 0 9px 20px rgba(217,98,89,.18); }
.toast { position: fixed; z-index: 10; right: 24px; bottom: 24px; padding: 12px 16px; border-radius: 11px; background: #3f3935; color: white; box-shadow: 0 10px 24px rgba(42,32,27,.18); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; }.toast.show { opacity: 1; transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes float-heart { 0%, 100% { transform: translateY(0) rotate(-7deg); } 50% { transform: translateY(-8px) rotate(4deg); } }

@media (max-width: 800px) {
  .hero-card { padding: 38px 32px; }.hero-orbit { flex-basis: 220px; transform: scale(.85); transform-origin: right center; margin-left: -25px; }.stats-grid { grid-template-columns: 1fr; }.stat-card { padding: 16px 19px; }.emotion-section { grid-template-columns: 1fr; gap: 24px; }.emotion-intro { max-width: 500px; }.emotion-grid { max-width: 650px; }
}

@media (max-width: 620px) {
  .login-card { padding: 47px 27px 38px; }.topbar, .content-wrap { width: min(100% - 34px, 1120px); }.topbar { padding-top: 20px; }.today-label { display: none; }.content-wrap { padding-top: 31px; }.welcome-row { align-items: start; }.date-badge { flex-basis: 66px; width: 66px; height: 66px; border-radius: 19px; }.date-day { font-size: 25px; }.date-month { margin-top: -9px; font-size: 8px; }.hero-card { min-height: 390px; padding: 32px 27px; }.hero-copy h3 { font-size: 31px; }.hero-orbit { position: absolute; right: -25px; bottom: -6px; opacity: .72; transform: scale(.76); transform-origin: right bottom; }.section-heading { margin-top: 53px; }.section-heading-spaced { margin-top: 65px; }.missing-card { align-items: start; flex-direction: column; padding: 29px 25px; }.missing-actions { align-items: flex-start; }.two-column-grid { grid-template-columns: 1fr; }.chat-card, .meet-card { padding: 25px 22px; }.topics-card { padding: 26px 22px 23px; }.emotion-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }.emotion-box { min-height: 130px; padding: 16px 14px; }.future-card { align-items: start; margin-top: 63px; padding: 23px 20px; }.site-footer { margin-top: 35px; }.modal-backdrop { padding: 17px; }.emotion-modal { padding: 39px 23px 28px; }.toast { right: 17px; bottom: 17px; left: 17px; text-align: center; }
}

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

/* Emotion boxes: unread boxes stay left, opened boxes move into their own column. */
.emotion-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.emotion-column { min-width: 0; padding: 15px; border: 1px solid rgba(92,78,68,.08); border-radius: 18px; background: rgba(255,251,247,.42); }
.opened-column { background: rgba(247,239,235,.5); }
.emotion-column-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #756b64; font-family: var(--serif); font-size: 13px; }
.emotion-column-heading small { color: #b4a69c; font-family: var(--mono); font-size: 9px; }
.emotion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.emotion-box { width: 100%; }
.emotion-custom { background: #f1ece7; color: #9d8878; }
.empty-emotion-state { display: grid; min-height: 142px; place-items: center; padding: 20px 8px; border: 1px dashed #daccc2; border-radius: 15px; color: #aa9e95; font-family: var(--serif); font-size: 12px; line-height: 1.8; text-align: center; }
.empty-emotion-state span { color: #c1b5ac; font-family: var(--sans); font-size: 9px; }
.from-her-card { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 4px; padding: 20px 22px; border: 1px dashed #d9c7ba; border-radius: 17px; background: rgba(255,250,245,.45); }
.from-her-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #f2e5ec; color: #ba8196; font-family: var(--serif); font-size: 22px; }
.from-her-card .eyebrow { margin-bottom: 5px; color: #b28a99; }
.from-her-card h4 { margin: 0; font-family: var(--serif); font-size: 16px; letter-spacing: -.05em; }
.from-her-card p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.from-her-status { margin-left: auto; padding: 7px 10px; border-radius: 8px; background: #f2e5ec; color: #ad8092; font-family: var(--mono); font-size: 9px; white-space: nowrap; }

@media (max-width: 620px) {
  .emotion-columns { grid-template-columns: 1fr; }
  .emotion-column { padding: 12px; }
  .from-her-card { align-items: start; padding: 17px; }
  .from-her-status { margin-left: auto; }
}

.miss-actions-group { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.my-miss-button { background: #e7edf3; color: #6d899b; }
.my-miss-button:hover { background: #d8e5ed; }
.chat-card .chat-form + .chat-form { margin-top: 11px; }
.chat-direction { flex: 0 0 auto; padding-right: 8px; color: var(--coral-deep); font-family: var(--serif); font-size: 11px; white-space: nowrap; }
.chat-direction-him { color: #718ba0; }
.her-write-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 0 16px; }
.her-card-copy h4 { margin: 0; font-family: var(--serif); font-size: 16px; letter-spacing: -.05em; }
.her-card-copy p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.her-emotion-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-column: 1 / -1; gap: 10px; width: 100%; margin-top: 18px; }
.her-emotion-card { display: flex; min-height: 95px; flex-direction: column; align-items: start; padding: 14px; border: 1px solid rgba(92,78,68,.1); border-radius: 14px; background: #f8eee9; color: #7e625e; text-align: left; transition: transform .2s, box-shadow .2s; }
.her-emotion-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(94,69,52,.08); }
.her-emotion-card-icon { margin-bottom: 8px; color: #c87970; font-family: var(--serif); font-size: 20px; }
.her-emotion-card-title { font-family: var(--serif); font-size: 12px; }
.her-emotion-card-caption { margin-top: 4px; color: #ae9288; font-size: 9px; line-height: 1.5; }
.her-empty-state { grid-column: 1 / -1; padding: 15px; border: 1px dashed #ddc9bf; border-radius: 12px; color: #ac9b91; font-family: var(--serif); font-size: 12px; line-height: 1.8; text-align: center; }
.her-empty-state span { color: #c1aea3; font-family: var(--sans); font-size: 9px; }
.her-emotion-composer { grid-column: 1 / -1; margin-top: 18px; padding: 18px; border-radius: 14px; background: #f7eee9; }
.her-form-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: #806760; font-family: var(--serif); font-size: 13px; }
.her-form-title button { border: 0; background: transparent; color: #af9389; font-size: 10px; }
.her-form-fields { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.her-form-fields label { display: block; }.her-form-fields label.wide { grid-column: 1 / -1; }.her-form-fields label span { display: block; margin-bottom: 6px; color: #9c847a; font-family: var(--mono); font-size: 8px; }.her-form-fields input, .her-form-fields textarea { width: 100%; border: 1px solid #ead8d0; border-radius: 9px; outline: 0; background: #fffaf6; color: var(--ink); font-size: 10px; }.her-form-fields input { padding: 9px 10px; }.her-form-fields textarea { min-height: 63px; padding: 9px 10px; resize: vertical; line-height: 1.6; }.her-form-fields input:focus, .her-form-fields textarea:focus { border-color: var(--peach); }.her-save-button { display: inline-flex; gap: 8px; align-items: center; margin-top: 13px; padding: 10px 13px; border-radius: 9px; background: var(--coral); color: white; font-size: 10px; font-weight: 700; }
@media (max-width: 620px) { .miss-actions-group { justify-content: start; }.her-write-card { grid-template-columns: 38px minmax(0, 1fr); }.her-write-button { grid-column: 1 / -1; justify-self: start; margin-top: 12px; }.her-emotion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.her-form-fields { grid-template-columns: 58px 1fr; } }

/* Keep the mutual emotion cards calm; management controls appear only on demand. */
.her-emotion-card { position: relative; display: block; min-height: 0; padding: 0; overflow: hidden; border: 1px solid rgba(92,78,68,.1); border-radius: 14px; background: #f8eee9; }
.her-emotion-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(94,69,52,.08); }
.her-emotion-open { display: flex; width: 100%; min-height: 95px; flex-direction: column; align-items: start; padding: 14px 35px 14px 14px; border: 0; background: transparent; color: #7e625e; text-align: left; }
.her-emotion-open:hover { background: rgba(255,255,255,.18); }
.her-box-menu { position: absolute; top: 7px; right: 7px; z-index: 1; width: 25px; height: 25px; padding: 0 0 6px; border: 0; border-radius: 8px; background: rgba(255,255,255,.38); color: #b4978e; font-size: 13px; letter-spacing: 1px; line-height: 1; opacity: .62; }.her-box-menu:hover, .her-box-menu[aria-expanded="true"] { background: rgba(255,255,255,.82); color: #9c6e65; opacity: 1; }
.her-emotion-actions { display: none; align-items: center; gap: 9px; min-height: 32px; padding: 7px 10px; border-top: 1px solid rgba(126,98,94,.12); background: rgba(255,255,255,.22); }.her-emotion-card.is-managing .her-emotion-actions { display: flex; }.her-emotion-actions button { border: 0; background: transparent; color: #a2766e; font-size: 9px; }.her-emotion-actions button:hover { color: var(--coral-deep); }.her-opened-label { margin-right: auto; color: #ad8c83; font-family: var(--mono); font-size: 8px; }

.her-emotion-columns { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin-top: 18px; }
.from-her-card.her-write-card > .her-emotion-columns { grid-column: 1 / -1 !important; width: 100% !important; min-width: 0; }
.her-emotion-column { min-width: 0; padding: 12px; border: 1px solid rgba(92,78,68,.08); border-radius: 15px; background: rgba(255,255,255,.2); }
.her-opened-column { background: rgba(247,239,235,.36); }
.her-column-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: #806d66; font-family: var(--serif); font-size: 11px; }
.her-column-heading small { color: #b09a91; font-family: var(--mono); font-size: 8px; }
.her-emotion-column .her-emotion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; width: 100%; margin-top: 0; }
.her-emotion-column .her-empty-state { min-height: 95px; }

@media (max-width: 800px) { .her-emotion-columns { grid-template-columns: 1fr; } }

/* Opened boxes collapse into a compact deck; expand only when someone wants the full history. */
.opened-stack { width: 100%; }
.emotion-grid > .opened-stack, .her-emotion-grid > .opened-stack { grid-column: 1 / -1; }
.opened-stack-cards { position: relative; min-height: 142px; width: 100%; padding: 0 3px 9px; }
.opened-stack-item { position: absolute; top: 0; left: 0; width: 100%; transform-origin: center top; transition: transform .25s, opacity .25s, box-shadow .25s; }
.opened-stack-item:nth-child(1) { z-index: 4; transform: translateY(0) rotate(0); opacity: 1; pointer-events: auto; }
.opened-stack-item:nth-child(2) { z-index: 3; transform: translateY(8px) scale(.975) rotate(1deg); opacity: .75; pointer-events: none; }
.opened-stack-item:nth-child(3) { z-index: 2; transform: translateY(15px) scale(.95) rotate(-1.4deg); opacity: .55; pointer-events: none; }
.opened-stack-item:nth-child(n + 4) { z-index: 1; transform: translateY(21px) scale(.925) rotate(1.8deg); opacity: .4; pointer-events: none; }
.opened-stack-item > .emotion-box, .opened-stack-item > .her-emotion-card { width: 100%; }
.her-opened-stack .opened-stack-cards { min-height: 95px; }
.stack-toggle { display: block; width: 100%; padding: 8px 10px; border: 1px solid rgba(183,150,139,.25); border-radius: 9px; background: rgba(255,255,255,.38); color: #a77d73; font-size: 9px; font-weight: 700; }
.stack-toggle:hover { background: rgba(255,255,255,.72); color: var(--coral-deep); }
.opened-stack.is-expanded .opened-stack-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; gap: 9px; padding: 0 0 2px; }
.opened-stack.is-expanded .opened-stack-item { position: relative; top: auto; left: auto; transform: none; opacity: 1; pointer-events: auto; }
.opened-stack.is-expanded .stack-toggle { margin-top: 4px; }

/* Shared mood calendar: each date keeps 澜 on top and 桢 underneath. */
.mood-calendar-card { padding: 30px 33px 33px; }
.mood-calendar-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.mood-calendar-heading { display: flex; align-items: center; gap: 13px; min-width: 0; }
.mood-calendar-symbol { display: grid; flex: 0 0 37px; place-items: center; width: 37px; height: 37px; border-radius: 12px; background: #e6eef0; color: #7899a4; font-size: 19px; }
.mood-calendar-heading h4 { margin: 3px 0 0; color: var(--ink); font-family: var(--serif); font-size: 22px; letter-spacing: -.05em; }
.mood-calendar-heading p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.mood-calendar-nav { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.mood-calendar-nav button { display: grid; place-items: center; min-width: 29px; height: 29px; padding: 0 8px; border: 1px solid #e5d9cf; border-radius: 9px; background: #fffaf6; color: #9b8277; font-size: 17px; line-height: 1; }
.mood-calendar-nav button:hover { border-color: var(--peach); background: #fdf0eb; color: var(--coral-deep); }
.mood-calendar-nav .mood-calendar-today { padding: 0 10px; font-size: 10px; }
.mood-calendar-nav .mood-calendar-expand { padding: 0 11px; color: var(--coral-deep); font-size: 10px; }
.mood-calendar-weekdays, .mood-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.mood-calendar-weekdays { margin-top: 28px; color: #b2a49a; font-family: var(--mono); font-size: 10px; text-align: center; }
.mood-calendar-grid { margin-top: 8px; }
.mood-day { min-width: 0; min-height: 126px; padding: 11px 10px 9px; border: 1px solid rgba(92,78,68,.09); border-radius: 14px; background: rgba(255,250,246,.72); }
.mood-day.is-today { border-color: #e5aaa0; box-shadow: inset 0 0 0 1px rgba(229,170,160,.18); }
.mood-day.is-outside { opacity: .43; background: rgba(245,238,232,.45); }
.mood-day-number { display: block; color: #756b64; font-family: var(--mono); font-size: 13px; }
.mood-day.is-today .mood-day-number { color: var(--coral-deep); font-weight: 700; }
.mood-day-row { display: grid; grid-template-columns: 22px 27px minmax(0, 1fr); align-items: center; gap: 6px; width: 100%; margin-top: 9px; padding: 3px 1px; border: 0; border-radius: 7px; background: transparent; text-align: left; }
.mood-day-row:hover { background: rgba(248,226,220,.55); }
.mood-person { overflow: hidden; color: #a39890; font-family: var(--mono); font-size: 10px; }
.mood-row-her .mood-person { color: #8b9eaa; }
.mood-row-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; font-family: var(--serif); font-size: 16px; }
.mood-row-label { overflow: hidden; color: #9d9188; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.mood-empty { border: 1px dashed #d8cac0; color: #bdafa6; font-family: var(--sans); font-size: 10px; }
.mood-happy { background: #e8f0dc; color: #7f9e69; }.mood-angry { background: #f7e7cd; color: #bd8d52; }.mood-tired { background: #eee8f0; color: #927c9e; }.mood-sad { background: #e5eef1; color: #7095a4; }.mood-calm { background: #f3e6ed; color: #b37990; }.mood-excited { background: #f8e2dc; color: #c6766c; }

.mood-editor-modal { position: relative; width: min(100%, 430px); padding: 37px 34px 30px; border: 1px solid rgba(255,255,255,.7); border-radius: 25px; background: #fffaf5; box-shadow: 0 25px 70px rgba(54,42,35,.2); text-align: center; animation: rise-in .3s ease both; }
.mood-modal-mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 17px; background: #e6eef0; color: #7899a4; font-size: 23px; }
.mood-editor-modal h3 { margin: 0; color: var(--ink); font-family: var(--serif); font-size: 25px; letter-spacing: -.07em; }
.mood-modal-date { margin: 7px 0 20px; color: #b1a39a; font-family: var(--mono); font-size: 9px; }
.mood-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mood-choice { display: flex; align-items: center; gap: 7px; padding: 9px 8px; border: 1px solid #e7dcd3; border-radius: 10px; background: #fffaf6; color: #877a71; font-size: 10px; text-align: left; }
.mood-choice:hover, .mood-choice.is-selected { border-color: #e3aaa0; background: #fdf0eb; color: var(--coral-deep); }
.mood-choice-icon { display: grid; flex: 0 0 22px; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-family: var(--serif); font-size: 14px; }
.mood-choice.is-selected .mood-choice-icon { box-shadow: 0 0 0 2px rgba(217,98,89,.14); }
.mood-custom-option { display: flex; grid-column: 1 / -1; align-items: center; gap: 8px; padding: 8px; border: 1px dashed #dfcec3; border-radius: 10px; background: #fffaf6; color: #9d8878; }
.mood-custom-option:hover, .mood-custom-option.is-selected { border-color: #e3aaa0; background: #fdf0eb; }
.mood-custom-option input { min-width: 0; flex: 1; padding: 4px 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.mood-custom-option input::placeholder { color: #b8aaa0; }
.mood-custom { background: #f1ece7; color: #9d8878; }
.mood-note-label { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 7px; color: #806f66; font-family: var(--serif); font-size: 12px; text-align: left; }
.mood-note-label small { color: #b6a9a0; font-family: var(--mono); font-size: 8px; }
.mood-note-input { display: block; width: 100%; min-height: 72px; padding: 10px 11px; border: 1px solid #eadbd2; border-radius: 11px; outline: 0; background: #fffdf9; color: var(--ink); font-size: 11px; line-height: 1.7; resize: vertical; }
.mood-note-input:focus { border-color: var(--peach); }
.mood-modal-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.mood-delete-button { border: 0; background: transparent; color: #b49c92; font-size: 10px; }.mood-delete-button:hover { color: var(--coral-deep); }
.mood-save-button { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 11px 15px; border-radius: 10px; font-size: 10px; }

@media (max-width: 620px) {
  .mood-calendar-card { padding: 25px 17px 22px; }
  .mood-calendar-header { align-items: start; flex-direction: column; gap: 15px; }
  .mood-calendar-nav { align-self: stretch; justify-content: space-between; }
  .mood-calendar-heading h4 { font-size: 21px; }
  .mood-calendar-nav button { flex: 0 0 31px; }.mood-calendar-nav .mood-calendar-today, .mood-calendar-nav .mood-calendar-expand { flex: 1; }
  .mood-calendar-weekdays, .mood-calendar-grid { gap: 4px; }
  .mood-calendar-weekdays { margin-top: 22px; }
  .mood-day { min-height: 98px; padding: 7px 3px 5px; border-radius: 10px; }
  .mood-day-number { font-size: 11px; }
  .mood-day-row { grid-template-columns: 14px 24px; gap: 2px; margin-top: 7px; padding: 1px 0; }
  .mood-row-label { display: none; }
  .mood-person { font-size: 8px; }
  .mood-row-icon { width: 24px; height: 24px; font-size: 14px; }
  .mood-editor-modal { padding: 34px 19px 25px; }
}
