:root{--ink:#322c2e;--muted:#817579;--cream:#fbf8f4;--paper:#fff;--rose:#d87987;--rose2:#f6dce1;--sage:#dfe8df;--line:#eadfe0;--shadow:0 18px 50px rgba(83,54,60,.11)}*{box-sizing:border-box}body{margin:0;font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--cream)}button,input,textarea,select{font:inherit}.hidden{display:none!important}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 20%,#f7dce2 0,transparent 35%),radial-gradient(circle at 85% 75%,#dce8df 0,transparent 32%),var(--cream)}.auth-card{width:min(440px,100%);background:rgba(255,255,255,.88);backdrop-filter:blur(14px);padding:44px;border:1px solid #fff;border-radius:28px;box-shadow:var(--shadow);text-align:center}.brand-mark{width:62px;height:62px;border-radius:22px;background:var(--rose2);display:grid;place-items:center;margin:auto;font-size:30px;color:var(--rose)}h1{font-size:38px;margin:12px 0 8px}h2,h3{margin:0}.eyebrow{font-size:11px;letter-spacing:.18em;font-weight:700;color:var(--rose)}.muted,small{color:var(--muted)}label{display:grid;gap:7px;text-align:left;font-size:13px;font-weight:600;margin:16px 0}input,textarea,select{width:100%;border:1px solid var(--line);border-radius:13px;padding:13px 15px;background:#fff;color:var(--ink);outline:none}input:focus,textarea:focus,select:focus{border-color:var(--rose)}button{cursor:pointer;border:0}.primary{background:var(--rose);color:white;border-radius:13px;padding:12px 18px;font-weight:700}.auth-card .primary{width:100%;margin-top:8px}.form-message{color:#b44b5b;font-size:13px}.app{min-height:100vh;display:grid;grid-template-columns:235px 1fr}.sidebar{position:sticky;top:0;height:100vh;padding:28px 20px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;justify-content:space-between}.side-brand{display:flex;align-items:center;gap:10px;font-size:15px;margin:0 8px 35px}.side-brand span{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:var(--rose2);color:var(--rose)}nav{display:grid;gap:8px}.nav,.ghost{padding:12px 14px;border-radius:12px;background:transparent;text-align:left;color:var(--muted);font-weight:600}.nav.active,.nav:hover{background:var(--rose2);color:var(--rose)}main{padding:0 38px 38px;min-width:0}.topbar{height:105px;display:flex;align-items:center;justify-content:space-between}.topbar h2{font-size:26px}.user-chip{display:flex;align-items:center;gap:10px;background:white;padding:8px 13px;border-radius:16px;border:1px solid var(--line)}.user-chip div:last-child{display:grid}.avatar{width:37px;height:37px;border-radius:50%;background:var(--sage);display:grid;place-items:center;background-size:cover;background-position:center}.view{display:none}.active-view{display:block}.hero{min-height:190px;border-radius:26px;padding:35px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(115deg,#f6dfe3,#f8eee6 52%,#e0e9df)}.hero h3{font-size:30px;max-width:570px;line-height:1.2}.diary-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;margin-top:24px}.diary-card{background:white;border-radius:20px;overflow:hidden;border:1px solid var(--line);box-shadow:0 9px 24px rgba(72,49,54,.06);cursor:pointer;transition:.2s}.diary-card:hover{transform:translateY(-3px)}.diary-image{height:170px;background:var(--sage);background-size:cover;background-position:center;display:grid;place-items:center;font-size:38px}.diary-body{padding:18px}.diary-body p{color:var(--muted);font-size:13px;line-height:1.5}.date{font-size:11px;color:var(--rose);font-weight:700}.chat-card{height:calc(100vh - 143px);background:white;border:1px solid var(--line);border-radius:23px;display:grid;grid-template-rows:1fr auto auto;overflow:hidden}.messages{overflow:auto;padding:25px;display:flex;flex-direction:column;gap:12px;background:linear-gradient(#fff9fa,#fbf8f4)}.message{max-width:72%;padding:11px 14px;border-radius:16px;background:white;border:1px solid var(--line);align-self:flex-start}.message.mine{align-self:flex-end;background:var(--rose);color:white;border-color:var(--rose)}.message .meta{font-size:10px;opacity:.72;margin-bottom:4px}.message img{max-width:150px;max-height:150px;object-fit:contain}.composer{display:grid;grid-template-columns:auto auto 1fr auto;gap:8px;padding:14px;border-top:1px solid var(--line)}.icon-btn,.send-btn{width:42px;height:42px;border-radius:13px;background:var(--rose2);color:var(--rose);font-size:20px}.send-btn{background:var(--rose);color:white}.tray{padding:12px 16px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:8px;max-height:155px;overflow:auto}.tray button{font-size:24px;background:transparent}.tray img{width:55px;height:55px;object-fit:contain}.panel{background:white;border:1px solid var(--line);border-radius:23px;padding:28px}.sticker-builder{display:flex;align-items:center;gap:22px;margin:22px 0 38px;padding:20px;border:1px dashed #d8c6c9;border-radius:18px}.upload-box{width:150px;height:130px;margin:0;border-radius:16px;background:var(--cream);display:grid;place-items:center;text-align:center;cursor:pointer}.sticker-preview{width:130px;height:130px;background:var(--rose2);border-radius:18px;display:grid;place-items:center;font-size:40px;background-size:contain;background-repeat:no-repeat;background-position:center}.grow{flex:1}.sticker-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:15px;margin-top:18px}.sticker-item{background:var(--cream);border-radius:16px;padding:12px;text-align:center;position:relative}.sticker-item img{width:78px;height:78px;object-fit:contain}.sticker-item button{position:absolute;right:5px;top:5px;border-radius:50%;background:white;color:#b44b5b}.profile-panel{max-width:600px}dialog{border:0;border-radius:23px;padding:0;box-shadow:var(--shadow);width:min(650px,92vw)}dialog::backdrop{background:rgba(40,29,32,.45)}.dialog-card{padding:26px}.dialog-head,.dialog-actions{display:flex;justify-content:space-between;align-items:center}.dialog-actions{margin-top:20px}.danger{color:#a63647;background:#fee9ed;padding:12px 18px;border-radius:13px}.page-photo-preview{height:130px;background-size:cover;background-position:center;border-radius:14px}.toast{position:fixed;right:24px;bottom:24px;background:#322c2e;color:white;padding:12px 18px;border-radius:12px;z-index:50;opacity:0;transform:translateY(10px);transition:.2s}.toast.show{opacity:1;transform:none}@media(max-width:750px){.app{grid-template-columns:1fr}.sidebar{height:auto;position:fixed;z-index:20;bottom:0;top:auto;width:100%;padding:9px;border-top:1px solid var(--line)}.sidebar>div{width:100%}.side-brand,.ghost{display:none}nav{grid-template-columns:repeat(4,1fr);gap:3px}.nav{text-align:center;padding:9px 3px;font-size:12px}.nav span{display:block}main{padding:0 14px 90px}.topbar{height:90px}.user-chip{padding:5px 8px}.hero{padding:24px;display:grid;gap:25px}.hero h3{font-size:24px}.sticker-builder{display:grid}.chat-card{height:calc(100vh - 190px)}.message{max-width:86%}}
