:root {
  --night: #27334b;
  --night-deep: #172238;
  --ink: #3e4255;
  --muted: #8d8c9d;
  --cream: #fbf6ee;
  --paper: rgba(255, 252, 247, .86);
  --paper-solid: #fffaf3;
  --rose: #d69096;
  --rose-deep: #b87580;
  --lavender: #aaa3cc;
  --sage: #8ea99a;
  --gold: #e5bd77;
  --line: rgba(82, 74, 91, .12);
  --shadow: 0 22px 58px rgba(42, 36, 57, .12);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { outline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(214, 144, 150, .48); outline-offset: 3px; }
button { cursor: pointer; }

.login-body { min-height: 100svh; overflow-x: hidden; background: var(--night-deep); color: #fff; }
.login-backdrop { position: fixed; inset: 0; overflow: hidden; background: linear-gradient(180deg, #1b2a48 0%, #3f4967 48%, #a48b99 100%); }
.login-backdrop::before { content: ""; position: absolute; inset: 0; background: linear-gradient(130deg, rgba(29, 42, 69, .34), rgba(105, 84, 108, .18)), url('/mo.webp') center / cover no-repeat; mix-blend-mode: soft-light; opacity: .8; }
.login-backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 52% 34%, rgba(255, 242, 201, .28), transparent 28%), linear-gradient(0deg, rgba(19, 27, 48, .62), transparent 55%); }
.login-glow { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .62; animation: float 9s ease-in-out infinite; }
.glow-a { width: 23rem; height: 23rem; left: -8rem; top: 12%; background: radial-gradient(circle, rgba(207, 184, 220, .35), transparent 68%); }
.glow-b { width: 28rem; height: 28rem; right: -10rem; bottom: 8%; background: radial-gradient(circle, rgba(231, 193, 144, .32), transparent 68%); animation-delay: -4s; }
.login-stars i, .star-field i { position: absolute; display: block; width: 4px; height: 4px; border-radius: 50%; background: #fff5cd; box-shadow: 0 0 13px 4px rgba(255, 229, 161, .35); animation: twinkle 4s ease-in-out infinite; }
.login-stars i:nth-child(1) { top: 15%; left: 17%; } .login-stars i:nth-child(2) { top: 27%; left: 73%; animation-delay: -1s; } .login-stars i:nth-child(3) { top: 45%; left: 88%; animation-delay: -2.2s; } .login-stars i:nth-child(4) { top: 54%; left: 23%; animation-delay: -.6s; } .login-stars i:nth-child(5) { top: 12%; left: 52%; animation-delay: -3s; } .login-stars i:nth-child(6) { top: 69%; left: 68%; animation-delay: -1.5s; } .login-stars i:nth-child(7) { top: 77%; left: 11%; animation-delay: -2.7s; }
.login-hill { position: absolute; bottom: -15%; width: 75%; height: 42%; border-radius: 50% 50% 0 0; background: #273650; opacity: .85; z-index: 1; }
.hill-left { left: -27%; transform: rotate(3deg); } .hill-right { right: -25%; background: #1d2b48; transform: rotate(-4deg); }
.login-main { position: relative; z-index: 2; min-height: 100svh; display: grid; place-items: center; padding: 32px 16px 50px; }
.login-card { width: min(420px, 100%); padding: 42px 42px 34px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(30, 40, 66, .53); border-radius: 32px; box-shadow: 0 30px 80px rgba(10, 16, 31, .32); backdrop-filter: blur(18px); text-align: center; animation: enter-up .8s both; }
.login-emblem { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border: 1px solid rgba(255, 238, 192, .35); border-radius: 24px 24px 30px 30px; color: #f9dc9e; background: rgba(255, 237, 198, .1); transform: rotate(-5deg); box-shadow: inset 0 0 25px rgba(255, 236, 172, .08); }
.login-emblem span { font-size: 2rem; transform: rotate(5deg); }
.eyebrow, .panel-kicker { margin: 0; color: var(--rose-deep); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.login-card .eyebrow { color: #f2cbb9; }
.login-card h1 { margin: 8px 0 6px; font-family: Georgia, "Songti SC", serif; font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 500; letter-spacing: .06em; }
.login-tagline { margin: 0 0 30px; color: rgba(255, 255, 255, .72); font-size: .9rem; }
.login-form { text-align: left; }
.login-form > label { display: block; margin-bottom: 8px; color: rgba(255, 255, 255, .78); font-size: .84rem; }
.password-wrap { position: relative; display: flex; align-items: center; margin-bottom: 14px; }
.password-wrap > span { position: absolute; left: 16px; color: #f2cb9e; font-size: 1.1rem; }
.password-wrap input { width: 100%; height: 52px; padding: 0 46px 0 44px; color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 15px; background: rgba(255, 255, 255, .1); outline: none; }
.password-wrap input::placeholder { color: rgba(255, 255, 255, .4); }
.password-wrap input:focus { border-color: rgba(248, 214, 159, .7); box-shadow: 0 0 0 4px rgba(247, 212, 160, .1); }
.password-toggle { position: absolute; right: 4px; width: 44px; height: 44px; color: rgba(255, 255, 255, .5); border: 0; background: transparent; }
.primary-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px; color: #fff; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--rose), #c493a6 52%, #8f8ab7); box-shadow: 0 12px 25px rgba(180, 112, 128, .23); font-weight: 700; transition: transform .25s, box-shadow .25s, opacity .25s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(180, 112, 128, .3); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.login-button { width: 100%; }
.login-button span { font-size: 1.2rem; }
.login-error { margin: 13px 0 0; color: #ffd4c9; font-size: .83rem; animation: shake .4s; }
.login-hint { margin: 28px 0 0; color: rgba(255, 255, 255, .42); font-size: .73rem; }
.login-hint span { color: #eac98e; }
.login-privacy { position: fixed; bottom: 20px; color: rgba(255, 255, 255, .48); font-size: .78rem; }

.app-body { min-height: 100svh; overflow-x: hidden; background: radial-gradient(circle at 10% 0%, rgba(219, 194, 205, .28), transparent 33%), linear-gradient(135deg, #f6efe7, #fdf8f1 46%, #f1edf4); }
.ambient { position: fixed; z-index: -1; width: 38rem; height: 38rem; border-radius: 50%; pointer-events: none; filter: blur(20px); opacity: .42; }
.ambient-one { top: -18rem; right: -12rem; background: radial-gradient(circle, rgba(173, 159, 203, .32), transparent 70%); }
.ambient-two { bottom: -20rem; left: -12rem; background: radial-gradient(circle, rgba(222, 167, 158, .3), transparent 70%); }
.star-field { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .45; }
.star-field i { background: #d7bb74; box-shadow: 0 0 10px 3px rgba(230, 183, 106, .24); }
.star-field i:nth-child(1) { top: 18%; left: 7%; } .star-field i:nth-child(2) { top: 36%; left: 96%; animation-delay: -2s; } .star-field i:nth-child(3) { top: 77%; left: 85%; animation-delay: -1s; } .star-field i:nth-child(4) { top: 68%; left: 5%; animation-delay: -3s; } .star-field i:nth-child(5) { top: 9%; left: 43%; animation-delay: -1.5s; } .star-field i:nth-child(6) { top: 52%; left: 59%; animation-delay: -2.6s; } .star-field i:nth-child(7) { top: 88%; left: 46%; animation-delay: -.5s; } .star-field i:nth-child(8) { top: 25%; left: 81%; animation-delay: -3.2s; }
.app-shell { width: min(1260px, 100%); margin: 0 auto; padding: 20px 26px 28px; }
.topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #f5d99f; border: 1px solid rgba(217, 168, 110, .35); border-radius: 13px; background: var(--night); box-shadow: 0 8px 22px rgba(39, 51, 75, .16); }
.brand strong { display: block; color: var(--night); font-family: Georgia, "Songti SC", serif; font-size: 1.04rem; font-weight: 500; letter-spacing: .07em; }
.brand small { display: block; color: #9c94a0; font-size: .66rem; }
.topbar-date { text-align: center; color: #777388; font-size: .82rem; }
.topbar-date span, .topbar-date em { display: block; font-style: normal; }
.topbar-date em { color: #b2a4ad; font-size: .68rem; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 220px; }
.icon-button, .ghost-button, .soft-button { border: 1px solid var(--line); background: rgba(255, 253, 249, .65); color: #727286; transition: .22s ease; }
.icon-button { width: 42px; height: 42px; border-radius: 13px; color: var(--night); font-size: 1.2rem; }
.icon-button.playing { color: #fff; border-color: var(--rose); background: var(--rose); }
.ghost-button { min-height: 40px; padding: 8px 14px; border-radius: 12px; font-size: .78rem; }
.icon-button:hover, .ghost-button:hover, .soft-button:hover { color: var(--rose-deep); border-color: rgba(182, 117, 128, .35); transform: translateY(-1px); }
.volume-control { display: inline-flex; align-items: center; gap: 5px; color: #a19aa4; }
.volume-control input { width: 68px; accent-color: var(--rose); }
.main-nav { display: flex; align-items: center; gap: 6px; padding: 16px 0 20px; border-bottom: 1px solid rgba(84, 79, 97, .1); }
.nav-link { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 12px; color: #878394; font-size: .83rem; transition: .22s ease; }
.nav-link span { color: #b39b9d; font-size: 1rem; }
.nav-link:hover, .nav-link.active { color: var(--night); background: rgba(255, 255, 255, .65); box-shadow: 0 8px 22px rgba(89, 72, 96, .06); }
.nav-link.active span { color: var(--rose-deep); }
.page-wrap { padding: 32px 0 24px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-heading h1 { margin: 4px 0 2px; color: var(--night); font-family: Georgia, "Songti SC", serif; font-size: clamp(1.8rem, 4vw, 2.35rem); font-weight: 500; letter-spacing: .04em; }
.page-heading p:not(.eyebrow) { margin: 0; color: #9892a0; font-size: .84rem; }
.heading-orb { display: grid; place-items: center; width: 52px; height: 52px; color: #deba76; border: 1px solid rgba(211, 174, 113, .35); border-radius: 50%; background: rgba(255, 252, 244, .6); font-size: 1.3rem; box-shadow: 0 10px 28px rgba(213, 171, 106, .12); }
.site-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 20px 0 4px; color: #aaa0a4; font-size: .7rem; }
.site-footer a { color: var(--rose-deep); }

.home-layout { display: grid; grid-template-columns: minmax(0, 1.58fr) minmax(280px, .72fr); gap: 22px; }
.scene-card, .panel, .quote-card, .stats-card, .mini-note { border: 1px solid rgba(137, 121, 142, .14); background: var(--paper); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.scene-card { position: relative; min-height: 620px; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(67, 83, 117, .92) 0%, rgba(115, 104, 129, .9) 52%, rgba(245, 218, 185, .92) 100%); }
.scene-sky { position: absolute; inset: 0 0 32%; overflow: hidden; background: radial-gradient(circle at 70% 27%, rgba(255, 224, 173, .45), transparent 16%), linear-gradient(180deg, #344566, #77809c 70%, #d6a995); }
.scene-sky::before { content: ""; position: absolute; inset: 0; background: url('/mo_mobile.webp') center / cover; opacity: .12; mix-blend-mode: screen; }
.moon { position: absolute; top: 12%; right: 15%; color: #ffe7b6; font-size: 4.8rem; line-height: 1; filter: drop-shadow(0 0 20px rgba(255, 220, 153, .35)); }
.cloud { position: absolute; width: 150px; height: 38px; border-radius: 60px; background: rgba(255, 240, 220, .14); filter: blur(2px); }
.cloud::before, .cloud::after { content: ""; position: absolute; bottom: 0; border-radius: 50%; background: inherit; }
.cloud::before { left: 30px; width: 54px; height: 54px; } .cloud::after { left: 72px; width: 80px; height: 70px; }
.cloud-a { top: 30%; left: 7%; opacity: .65; animation: drift 20s linear infinite; } .cloud-b { top: 16%; left: 57%; transform: scale(.7); opacity: .42; animation: drift 25s linear -8s infinite; }
.hill { position: absolute; bottom: -15%; width: 72%; height: 58%; border-radius: 50% 50% 0 0; background: #657b70; opacity: .85; }
.hill-a { left: -19%; transform: rotate(3deg); } .hill-b { right: -24%; background: #4d6b60; transform: rotate(-4deg); }
.scene-ground { position: absolute; inset: 47% 0 0; overflow: hidden; background: linear-gradient(180deg, rgba(56, 88, 76, .82), #35584e); }
.scene-ground::before { content: ""; position: absolute; inset: 0; opacity: .22; background: repeating-linear-gradient(100deg, transparent 0 24px, rgba(250, 228, 170, .18) 25px 26px); transform: skewY(-5deg); }
.house { position: absolute; z-index: 3; left: 47%; bottom: 20%; width: 172px; height: 128px; border: 6px solid #67515a; border-radius: 12px 12px 6px 6px; background: #d8a989; box-shadow: 0 17px 0 rgba(32, 55, 49, .18), 0 24px 30px rgba(30, 45, 45, .22); transform: translateX(-50%); }
.roof { position: absolute; z-index: -1; top: -64px; left: -20px; width: 196px; height: 112px; border: 6px solid #67515a; border-bottom: 0; border-radius: 110px 110px 0 0; background: #b77778; transform: skewX(-6deg); box-shadow: inset 12px 10px 0 rgba(255, 218, 195, .14); }
.window { position: absolute; top: 27px; width: 31px; height: 33px; border: 4px solid #755d63; border-radius: 7px; background: #ffe8a9; box-shadow: 0 0 22px rgba(255, 220, 121, .72); } .window::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; border-top: 2px solid #755d63; } .window-a { left: 20px; } .window-b { right: 20px; }
.door { position: absolute; bottom: 0; left: 50%; width: 44px; height: 70px; transform: translateX(-50%); border: 4px solid #755d63; border-bottom: 0; border-radius: 22px 22px 0 0; background: #81656a; }
.lamp { position: absolute; bottom: 64px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: #fff2ad; box-shadow: 0 0 18px 8px rgba(255, 232, 149, .6); }
.tree { position: absolute; z-index: 3; bottom: 16%; width: 100px; height: 150px; } .tree i, .tree b { position: absolute; display: block; border-radius: 50%; background: #2e594f; } .tree i { bottom: 0; left: 45px; width: 12px; height: 82px; border-radius: 10px; background: #684e48; } .tree b { bottom: 52px; left: 8px; width: 82px; height: 82px; box-shadow: 25px 18px 0 -9px #3a6857, -19px 22px 0 -12px #3d725e; } .tree-a { left: 7%; transform: scale(1.05); } .tree-b { right: 4%; transform: scale(.75); opacity: .85; }
.path { position: absolute; z-index: 2; bottom: -15%; left: 46%; width: 130px; height: 58%; border-radius: 50%; background: #bd9b84; transform: rotate(17deg); opacity: .8; }
.firefly { position: absolute; z-index: 4; color: #ffe7a5; text-shadow: 0 0 12px #ffe59b; animation: float 4s ease-in-out infinite; } .f1 { left: 18%; top: 26%; } .f2 { right: 19%; top: 14%; animation-delay: -1.6s; } .f3 { right: 9%; bottom: 26%; animation-delay: -2.4s; }
.scene-copy { position: absolute; z-index: 5; top: 30px; left: 32px; color: #fffaf1; text-shadow: 0 2px 20px rgba(42, 37, 56, .25); }
.scene-label { display: inline-block; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 20px; color: #f4dfbf; background: rgba(50, 59, 87, .28); font-size: .65rem; letter-spacing: .12em; }
.scene-copy h2 { margin: 11px 0 3px; font-family: Georgia, "Songti SC", serif; font-size: 2rem; font-weight: 500; } .scene-copy h2 span { color: #ffe0ac; } .scene-copy p { margin: 0; color: rgba(255, 249, 236, .76); font-size: .8rem; }
.scene-doors { position: absolute; z-index: 7; right: 24px; bottom: 22px; left: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.scene-door { min-height: 82px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 15px; color: rgba(255, 250, 235, .87); background: rgba(45, 57, 76, .3); backdrop-filter: blur(9px); transition: .25s ease; }
.scene-door:hover { color: #fff; border-color: rgba(255, 228, 173, .68); background: rgba(50, 61, 84, .58); transform: translateY(-5px); }
.scene-door span { color: #ffe1ac; font-size: 1.1rem; } .scene-door b { font-size: .79rem; font-weight: 600; } .scene-door small { margin-top: 1px; color: rgba(255, 255, 255, .56); font-size: .61rem; }
.home-side { display: flex; flex-direction: column; gap: 16px; }
.quote-card { position: relative; min-height: 175px; padding: 26px 24px 20px; overflow: hidden; border-radius: 22px; background: linear-gradient(135deg, rgba(250, 227, 213, .9), rgba(237, 228, 241, .86)); }
.quote-mark { position: absolute; top: 8px; right: 22px; color: rgba(190, 134, 144, .25); font-family: Georgia, serif; font-size: 5.8rem; line-height: 1; }
.quote-card p { position: relative; margin: 0 0 15px; color: #706477; font-family: Georgia, "Songti SC", serif; font-size: 1rem; line-height: 1.85; } .quote-sign { color: #b38b99; font-size: .72rem; }
.stats-card { padding: 19px 20px; border-radius: 22px; } .card-title { display: flex; align-items: center; justify-content: space-between; color: var(--night); font-family: Georgia, "Songti SC", serif; } .card-title a { color: var(--rose-deep); font-family: inherit; font-size: .75rem; } .card-title a i { font-style: normal; font-size: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 10px; padding: 18px 0 15px; } .stats-grid div { display: flex; flex-direction: column; } .stats-grid strong { color: var(--night); font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; } .stats-grid small { color: #9c96a4; font-size: .68rem; }
.progress-line { height: 6px; overflow: hidden; border-radius: 10px; background: #eee4e1; } .progress-line span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d8959a, #e7c67d); transition: width .7s ease; }
.small-note { margin: 10px 0 0; color: #aaa0a8; font-size: .69rem; }
.mini-note { display: flex; gap: 12px; align-items: flex-start; padding: 17px; border-radius: 20px; background: rgba(238, 244, 230, .72); } .mini-note > span { color: #bf9d67; font-size: 1.3rem; } .mini-note b { color: #667662; font-size: .74rem; } .mini-note p { margin: 2px 0 0; color: #8c9b89; font-size: .7rem; }

.two-column { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr); gap: 22px; }
.panel { border-radius: var(--radius-lg); } .form-panel, .checkin-side, .message-compose, .message-list-panel, .prose-panel, .history-panel, .gallery-panel, .admin-card { padding: 27px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 25px; } .panel-head.compact { margin-bottom: 18px; } .panel-head h2, .filter-bar h2 { margin: 4px 0 3px; color: var(--night); font-family: Georgia, "Songti SC", serif; font-size: 1.45rem; font-weight: 500; } .panel-head p { margin: 0; color: #aaa0a9; font-size: .76rem; } .panel-stamp { display: grid; place-items: center; min-width: 44px; height: 44px; color: #bd898d; border: 1px solid rgba(189, 137, 141, .3); border-radius: 50%; font-size: .72rem; transform: rotate(8deg); } .count-badge { display: grid; place-items: center; min-width: 30px; height: 30px; color: #a26f78; border-radius: 50%; background: #f6e5de; font-size: .7rem; }
.mood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 25px; } .mood-chip { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 5px; color: #89818f; border: 1px solid rgba(143, 128, 145, .16); border-radius: 14px; background: rgba(255, 255, 255, .5); font-size: .79rem; transition: .2s ease; } .mood-chip:hover { border-color: rgba(205, 141, 147, .45); transform: translateY(-2px); } .mood-chip[aria-pressed="true"] { color: #9a626b; border-color: rgba(205, 141, 147, .48); background: #f9e7df; box-shadow: 0 7px 16px rgba(203, 141, 146, .12); }
.field-label { display: flex; align-items: center; justify-content: space-between; margin: 0 0 7px; color: #6f6878; font-size: .8rem; font-weight: 600; } .field-label span { color: #b0a5ad; font-size: .65rem; font-weight: 400; }
.text-area, .text-input, .select-field, .filters select, .filters input, .month-filter select { width: 100%; color: var(--ink); border: 1px solid rgba(138, 123, 141, .17); border-radius: 13px; outline: 0; background: rgba(255, 255, 255, .65); transition: border .2s, box-shadow .2s; } .text-area, .text-input { padding: 13px 14px; } .text-area { min-height: 122px; resize: vertical; } .text-input, .select-field { height: 46px; } .select-field { padding: 0 12px; } .text-area::placeholder, .text-input::placeholder { color: #bbb0b3; } .text-area:focus, .text-input:focus, .select-field:focus, .filters select:focus, .filters input:focus { border-color: rgba(197, 128, 137, .5); box-shadow: 0 0 0 4px rgba(208, 143, 148, .1); }
.field-foot { display: flex; justify-content: space-between; margin: 5px 0 21px; color: #b0a6ae; font-size: .65rem; } .full-button { width: 100%; margin-top: 24px; }
.form-message { min-height: 20px; margin: 10px 0 0; color: var(--rose-deep); text-align: center; font-size: .75rem; }
.checkin-side { display: flex; flex-direction: column; justify-content: space-between; min-height: 490px; background: linear-gradient(160deg, rgba(230, 236, 221, .8), rgba(247, 228, 220, .7)); }
.calendar-art { position: relative; display: grid; place-items: center; min-height: 286px; margin: -4px -4px 14px; overflow: hidden; border-radius: 22px; background: linear-gradient(150deg, #819c8b, #c6ad9f); transform: rotate(-1deg); box-shadow: 0 18px 35px rgba(88, 105, 91, .16); } .calendar-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 20%, rgba(255,255,255,.25), transparent 17%), repeating-linear-gradient(110deg, transparent 0 31px, rgba(255,255,255,.06) 32px 33px); } .calendar-page { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 174px; height: 204px; border-radius: 7px; background: #fff9ed; box-shadow: 12px 14px 0 rgba(48, 65, 59, .13); transform: rotate(4deg); } .calendar-page::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 31px; background: #e6b28f; } .calendar-rings { position: absolute; z-index: 4; top: 4px; display: flex; justify-content: space-around; width: 136px; } .calendar-rings i { width: 10px; height: 25px; border-radius: 8px; background: #6b7771; box-shadow: 0 0 0 3px rgba(255,255,255,.4); } .calendar-page span { margin-top: 17px; color: #bb7478; font-family: Georgia, serif; font-size: 1rem; letter-spacing: .18em; } .calendar-page strong { color: #4d5862; font-family: Georgia, serif; font-size: 5rem; font-weight: 500; line-height: 1; } .calendar-page small { margin-top: 12px; color: #9a9d96; font-size: .46rem; letter-spacing: .14em; } .calendar-leaf { position: absolute; right: 15%; bottom: 15%; color: rgba(47, 88, 74, .54); font-size: 4rem; transform: rotate(-23deg); }
.encourage { display: flex; gap: 12px; padding: 14px 15px; border-radius: 15px; background: rgba(255,255,255,.54); } .encourage > span { color: #d09b75; font-size: 1.2rem; } .encourage b { color: #6b766c; font-size: .75rem; } .encourage p { margin: 2px 0 0; color: #8c998e; font-size: .7rem; }
.today-summary { display: flex; gap: 10px; align-items: center; margin-top: 15px; padding: 13px; color: #758279; border: 1px dashed rgba(109, 135, 113, .27); border-radius: 15px; font-size: .75rem; } .summary-dot { width: 10px; height: 10px; border-radius: 50%; background: #dfb782; box-shadow: 0 0 0 5px rgba(223, 183, 130, .12); } .today-summary p { margin: 0; } .today-summary small { color: #a1aca0; font-size: .65rem; }

.messages-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 22px; align-items: start; } .form-row { display: flex; gap: 12px; } .field-grow { flex: 1; } .message-textarea { min-height: 142px; } .mood-select-wrap { max-width: 145px; }
.upload-zone { padding: 13px; border: 1px dashed rgba(166, 127, 136, .3); border-radius: 16px; background: rgba(255, 244, 236, .46); } .upload-trigger { width: 100%; min-height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #927c86; border: 0; background: transparent; } .upload-trigger span { color: #c28b8f; font-size: 1.3rem; } .upload-trigger b { font-size: .78rem; } .upload-trigger small { margin-top: 1px; color: #b6a9ac; font-size: .61rem; }
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 9px; } .preview-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #eaded9; } .preview-item img { width: 100%; height: 100%; object-fit: cover; } .preview-item button { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 23px; height: 23px; color: #fff; border: 0; border-radius: 50%; background: rgba(39, 51, 75, .7); }
.message-list-panel { min-height: 400px; } .message-list { display: flex; flex-direction: column; gap: 12px; } .message-item { position: relative; padding: 16px 17px; border: 1px solid rgba(142, 121, 139, .12); border-radius: 16px 16px 16px 4px; background: rgba(255,255,255,.55); animation: enter-up .35s both; } .message-item::before { content: ""; position: absolute; top: -5px; left: 17px; width: 10px; height: 10px; border-radius: 50%; background: #e3bd85; box-shadow: 0 0 0 4px rgba(227, 189, 133, .12); } .message-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; } .message-author { color: #766478; font-size: .8rem; font-weight: 700; } .message-time { color: #b0a3aa; font-size: .65rem; } .message-content { margin: 0; color: #686879; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; line-height: 1.7; } .message-mood { margin-left: 4px; font-size: .9rem; } .message-images { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 11px; } .message-images button { aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 8px; background: #eee1db; } .message-images img { width: 100%; height: 100%; display: block; object-fit: cover; } .message-actions { display: flex; justify-content: flex-end; margin-top: 8px; } .delete-link { padding: 4px 6px; color: #c48a8f; border: 0; background: transparent; font-size: .66rem; } .delete-link:hover { color: #a45763; } .load-more { width: 100%; min-height: 42px; margin-top: 17px; color: #9f7580; border: 1px dashed rgba(167, 119, 130, .33); border-radius: 12px; background: transparent; font-size: .75rem; }

.gallery-panel { min-height: 500px; } .gallery-head { align-items: flex-end; } .month-filter { display: flex; align-items: center; gap: 8px; color: #a49ba4; font-size: .72rem; } .month-filter select { width: auto; min-width: 122px; height: 38px; padding: 0 10px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; } .gallery-item { position: relative; overflow: hidden; min-height: 145px; padding: 5px; border: 1px solid rgba(146, 123, 135, .15); border-radius: 15px 15px 15px 4px; background: #fffaf3; box-shadow: 0 9px 20px rgba(87, 69, 83, .08); transform: rotate(var(--tilt)); transition: .25s ease; } .gallery-item:nth-child(3n) { --tilt: 1.2deg; } .gallery-item:nth-child(3n+1) { --tilt: -1.1deg; } .gallery-item:nth-child(3n+2) { --tilt: .3deg; } .gallery-item:hover { z-index: 2; transform: translateY(-5px) rotate(0); box-shadow: 0 16px 28px rgba(87, 69, 83, .14); } .gallery-item button { width: 100%; padding: 0; border: 0; background: transparent; } .gallery-item img { width: 100%; height: 170px; display: block; object-fit: cover; border-radius: 10px 10px 10px 3px; background: #eee3dc; } .gallery-caption { display: block; padding: 8px 5px 4px; color: #91828e; overflow: hidden; font-size: .65rem; text-align: left; text-overflow: ellipsis; white-space: nowrap; } .gallery-caption time { display: block; color: #b4a9ad; font-size: .58rem; }

.history-panel { min-height: 500px; } .filter-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 26px; } .filters { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; } .filters select, .filters input { width: auto; height: 38px; padding: 0 9px; color: #827887; font-size: .72rem; } .filters span { color: #b0a5ab; font-size: .7rem; } .soft-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; border-radius: 11px; color: #8b7784; font-size: .72rem; }
.timeline { position: relative; max-width: 830px; margin: 0 auto; padding: 6px 15px 12px 31px; } .timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 10px; width: 1px; background: linear-gradient(#d5bac0, rgba(213, 186, 192, .1)); } .timeline-item { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 17px; margin-bottom: 21px; } .timeline-dot { position: absolute; top: 7px; left: -26px; width: 10px; height: 10px; border: 3px solid #fff8ef; border-radius: 50%; background: #d8959a; box-shadow: 0 0 0 3px rgba(216, 149, 154, .2); } .timeline-date { color: #a5939e; font-size: .72rem; } .timeline-date strong { display: block; color: #756778; font-family: Georgia, serif; font-size: 1.4rem; font-weight: 500; } .timeline-card { padding: 14px 16px; border: 1px solid rgba(145, 125, 140, .12); border-radius: 15px; background: rgba(255,255,255,.58); } .timeline-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .timeline-mood { color: #9f7280; font-size: .76rem; } .timeline-tag { padding: 3px 8px; color: #8b9a87; border-radius: 20px; background: #eaf0e5; font-size: .62rem; } .timeline-note { margin: 8px 0 4px; color: #706b7a; font-size: .78rem; white-space: pre-wrap; overflow-wrap: anywhere; } .timeline-actions { display: flex; justify-content: flex-end; gap: 5px; }

.admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; } .admin-card { min-height: 215px; } .admin-icon { display: inline-grid; place-items: center; width: 45px; height: 45px; color: #bd8b8e; border-radius: 15px; background: #f7e6df; font-size: 1.3rem; } .admin-card h2 { margin: 16px 0 4px; color: var(--night); font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; } .admin-card p { margin: 0; color: #9f96a2; font-size: .76rem; } .admin-actions { display: flex; gap: 8px; margin-top: 18px; } .wide-admin { grid-column: span 2; min-height: auto; background: linear-gradient(135deg, rgba(232, 240, 228, .75), rgba(249, 231, 225, .66)); } .admin-status-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; } .admin-status-list div { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.56); } .admin-status-list span, .admin-status-list b { display: block; } .admin-status-list span { color: #9b9a9b; font-size: .67rem; } .admin-status-list b { margin-top: 2px; color: #68716d; font-size: .74rem; font-weight: 600; } .status-ok { color: #67916f !important; }
.prose-panel { max-width: 760px; margin: 0 auto; } .prose-panel h2 { margin: 6px 0 20px; color: var(--night); font-family: Georgia, serif; font-weight: 500; } .prose-panel h3 { margin: 25px 0 5px; color: #74687b; font-size: .95rem; } .prose-panel p { color: #777181; font-size: .82rem; line-height: 1.9; } .not-found-panel { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; } .big-symbol { color: #d0ae86; font-size: 4rem; } .not-found-panel h2 { margin: 8px 0; color: var(--night); font-family: Georgia, serif; font-weight: 500; } .not-found-panel p { color: #9f96a0; font-size: .8rem; }

.empty-state, .loading-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 190px; color: #aca0a7; font-size: .76rem; } .empty-state span, .loading-state span { margin-bottom: 7px; color: #d7ad72; font-size: 1.4rem; animation: twinkle 2.6s infinite; } .empty-state.wide { grid-column: 1 / -1; }
.modal-root { position: relative; z-index: 80; } .modal-overlay { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(35, 40, 57, .55); backdrop-filter: blur(6px); animation: fade-in .2s; } .modal-card { position: relative; width: min(560px, 100%); max-height: min(760px, calc(100svh - 40px)); overflow: auto; padding: 24px; border: 1px solid rgba(255,255,255,.55); border-radius: 22px; background: #fffaf4; box-shadow: 0 30px 80px rgba(28, 28, 46, .24); animation: enter-up .28s both; } .small-modal { width: min(380px, 100%); text-align: center; } .modal-close { position: absolute; top: 10px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; color: #a59ba4; border: 0; background: transparent; font-size: 1.5rem; } .modal-icon { color: #d29d79; font-size: 2rem; } .modal-card h2 { margin: 5px 0; color: var(--night); font-family: Georgia, serif; font-weight: 500; } .modal-card p { color: #8d8490; font-size: .8rem; } .modal-card .primary-button { margin-top: 8px; }
.image-modal { padding: 10px; background: rgba(20, 25, 39, .9); } .image-modal img { display: block; max-width: 100%; max-height: 70svh; margin: 0 auto; object-fit: contain; border-radius: 12px; } .image-modal .image-meta { padding: 12px 6px 4px; color: rgba(255,255,255,.8); font-size: .76rem; text-align: center; } .image-modal .image-meta small { display: block; color: rgba(255,255,255,.5); }
.toast { position: fixed; z-index: 120; right: 22px; bottom: 24px; max-width: min(360px, calc(100vw - 44px)); padding: 12px 17px; color: #fff; border-radius: 14px; background: rgba(39, 51, 75, .92); box-shadow: 0 12px 30px rgba(38, 39, 56, .2); font-size: .78rem; opacity: 0; pointer-events: none; transform: translateY(14px); transition: .25s ease; } .toast.show { opacity: 1; transform: translateY(0); }
.idle-modal[hidden] { display: none; } .idle-modal:not([hidden]) { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(39, 51, 75, .34); backdrop-filter: blur(4px); }

@keyframes enter-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { from { transform: translateX(-12vw); } to { transform: translateX(20vw); } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.12); } }

@media (max-width: 980px) {
  .app-shell { padding-right: 18px; padding-left: 18px; }
  .topbar-date { display: none; }
  .home-layout, .two-column, .messages-layout { grid-template-columns: 1fr; }
  .scene-card { min-height: 570px; }
  .home-side { display: grid; grid-template-columns: repeat(2, 1fr); align-items: stretch; }
  .mini-note { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .app-shell { padding: 12px 12px 20px; }
  .topbar { min-height: 54px; }
  .brand { min-width: 0; }
  .brand small, .volume-control, .ghost-button { display: none; }
  .brand strong { font-size: .92rem; }
  .brand-mark { width: 34px; height: 34px; }
  .topbar-actions { min-width: auto; }
  .main-nav { gap: 2px; padding: 10px 0 13px; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: 0 0 auto; min-height: 39px; padding: 8px 10px; font-size: .72rem; }
  .nav-link span { font-size: .9rem; }
  .nav-link-small { display: none; }
  .page-wrap { padding-top: 24px; }
  .page-heading { margin-bottom: 20px; }
  .page-heading h1 { font-size: 1.85rem; }
  .heading-orb { width: 42px; height: 42px; font-size: 1rem; }
  .scene-card { min-height: 590px; border-radius: 22px; }
  .scene-copy { top: 23px; left: 22px; }
  .scene-copy h2 { font-size: 1.62rem; }
  .scene-doors { right: 14px; bottom: 14px; left: 14px; grid-template-columns: repeat(2, 1fr); }
  .scene-door { min-height: 76px; }
  .home-side { display: flex; }
  .quote-card { min-height: 150px; }
  .form-panel, .checkin-side, .message-compose, .message-list-panel, .prose-panel, .history-panel, .gallery-panel, .admin-card { padding: 20px 16px; border-radius: 21px; }
  .mood-grid { gap: 7px; }
  .mood-chip { min-height: 48px; font-size: .72rem; }
  .checkin-side { min-height: auto; }
  .calendar-art { min-height: 245px; }
  .form-row { flex-direction: column; gap: 0; }
  .mood-select-wrap { max-width: none; }
  .message-images { grid-template-columns: repeat(3, 1fr); }
  .gallery-head, .filter-bar { align-items: flex-start; flex-direction: column; }
  .month-filter { width: 100%; justify-content: space-between; }
  .month-filter select { flex: 1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item img { height: 145px; }
  .filters { justify-content: flex-start; width: 100%; }
  .filters select, .filters input { flex: 1 1 100px; min-width: 0; }
  .filters .soft-button { flex: 1; }
  .timeline { padding-left: 26px; }
  .timeline-item { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .timeline-date strong { font-size: 1.15rem; }
  .admin-grid { grid-template-columns: 1fr; gap: 14px; }
  .wide-admin { grid-column: auto; }
  .admin-status-list { grid-template-columns: repeat(2, 1fr); }
  .login-card { padding: 32px 22px 28px; border-radius: 25px; }
}
@media (max-width: 390px) {
  .scene-card { min-height: 600px; }
  .scene-door small { font-size: .56rem; }
  .mood-chip { gap: 2px; padding: 4px; font-size: .67rem; }
  .admin-status-list { gap: 7px; }
  .admin-status-list div { padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
