:root{--bg:#f5f6f2;--paper:#fff;--text:#292d28;--muted:#60675e;--line:#e2e6de;--active:#e9ede6;--accent:#385847;--soft:#eef3ec;--radius:20px;--font:"Yu Gothic UI","Hiragino Kaku Gothic ProN","Meiryo",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.7 var(--font);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button{border:0;background:none}button:disabled{cursor:default;color:#60675e}a{color:inherit;text-decoration:none}button,input,textarea,select,a{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid var(--accent)}button:hover{filter:brightness(.96)}svg{width:22px;height:22px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}img{display:block;max-width:100%}h1,h2,h3,p{margin:0}h1{font-size:30px;line-height:1.4;font-weight:650;letter-spacing:.01em}h2{font-size:20px;line-height:1.5}h3{font-size:17px}small,.meta{font-size:13px;color:var(--muted)}.muted{color:var(--muted)}.skip{position:fixed;left:16px;top:-70px;z-index:90;background:white;padding:12px}.skip:focus{top:8px}.layout{max-width:1480px;margin:auto;display:grid;grid-template-columns:242px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;padding:36px 24px 24px;display:flex;flex-direction:column;border-right:1px solid var(--line)}.brand{display:flex;align-items:center;gap:8px;font-size:23px;font-weight:750;letter-spacing:.04em;white-space:nowrap}.brand-mark{width:42px;height:42px;object-fit:contain}.brand-note{font-size:12px;margin:7px 0 38px;color:var(--muted)}.nav{display:flex;flex-direction:column;gap:9px}.nav a{display:flex;gap:13px;align-items:center;padding:13px 12px;border-radius:12px;font-size:15px}.nav a.active{background:var(--active);font-weight:700}.nav a:hover{background:#eef0ea}.nav a.active:after{content:"";margin-left:auto;width:5px;height:5px;background:var(--accent);border-radius:50%}.sidebar-foot{margin-top:auto;padding-top:35px}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:20px}.profile-copy{font-size:14px}.profile-copy small{display:block;font-size:12px}.demo-note{font-size:11px;line-height:1.8;color:var(--muted);margin-top:20px}.avatar{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;border-radius:50%;background:#eef0ea;width:48px;height:48px;padding:0}.avatar img{width:120%;max-width:none;height:120%;object-fit:contain;transform:translateY(5%)}.avatar.senior{background:#f0eee6}.avatar.large{width:76px;height:76px}.avatar.small{width:38px;height:38px}.workspace{min-width:0;padding:27px 38px 40px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:26px}.topbar-left{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.topbar-left span:first-child{width:6px;height:6px;background:var(--accent);border-radius:50%}.persona-switch{display:flex;background:#e9ece5;padding:4px;border-radius:30px;gap:3px}.persona-switch button{border-radius:24px;padding:8px 15px;min-height:40px;font-size:13px;color:#50594e}.persona-switch button[aria-pressed=true]{background:#fff;color:var(--text);font-weight:700}.mobile-brand{display:none}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:7px 0 28px}.page-heading p{font-size:14px;color:var(--muted);margin-top:8px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:30px;min-height:46px;padding:10px 22px;font-weight:600;font-size:14px;white-space:nowrap}.primary{background:var(--text);color:white}.secondary{border:1px solid #bfc8bb;background:white}.primary svg,.secondary svg{width:18px}.text-button{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:13px;padding:6px 0;color:var(--accent)}.text-button svg{width:17px}.wide{width:100%}.grid{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:24px;align-items:start}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-title h2{font-size:17px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:22px}.filters{display:flex;gap:9px;overflow:auto;margin-bottom:21px;padding:2px}.filter{flex-shrink:0;min-height:40px;padding:6px 16px;border-radius:24px;border:1px solid #cfd5c9;background:transparent;font-size:13px}.filter[aria-pressed=true]{background:var(--text);border-color:var(--text);color:white}.post{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-bottom:20px;overflow:hidden}.post-header{display:flex;align-items:center;gap:11px}.post-name{font-weight:650;font-size:14px}.post-info{flex:1}.post-time{font-size:12px;color:var(--muted);align-self:flex-start;padding-top:6px}.post h2{font-size:20px;margin:17px 0 8px;line-height:1.5}.post p{font-size:15px;line-height:1.9}.tag{display:inline-block;font-size:12px;color:var(--accent);margin-right:12px}.tags{margin-top:12px}.post-image{width:100%;height:238px;object-fit:cover;border-radius:12px;margin-top:17px;background:#edf0e7}.image-caption{font-size:11px;color:var(--muted);margin-top:5px;text-align:right}.post-actions{display:flex;justify-content:space-between;gap:10px;margin-top:17px;padding-top:10px;border-top:1px solid #edf0e9}.post-actions button{display:flex;align-items:center;gap:7px;font-size:12px;min-height:38px;color:var(--muted)}.post-actions button.liked{color:#9e4326}.post-actions svg{width:18px}.post-actions button.liked svg{fill:#fff0e9}.right-rail{display:grid;gap:22px}.mood-peek{background:#eaf0e6;border:0}.mood-peek h2{font-size:21px;margin:6px 0 10px}.mood-peek p{font-size:13px;color:#525d4d}.peek-characters{height:112px;display:flex;justify-content:center;align-items:center;margin:13px 0}.peek-characters img{width:110px;height:110px;object-fit:contain}.peek-characters svg{width:26px;margin:0 0 28px}.rail-list{margin-top:8px}.rail-list button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.rail-list button:last-child{border-bottom:0}.rail-list button span{flex:1}.rail-list svg{width:17px}.bottle-peek{display:flex;align-items:center;gap:16px}.bottle-peek>svg{width:42px;height:62px;color:#4b716c}.bottle-peek p{font-size:13px;margin-top:5px;color:var(--muted)}.footnote{font-size:12px;color:var(--muted);line-height:1.9;padding:0 6px}.voice{display:flex;align-items:center;gap:12px;background:#f2f4ee;border-radius:12px;padding:11px 15px;margin-top:16px;width:100%;text-align:left;font-size:13px}.wave{display:flex;align-items:center;gap:3px;height:22px;flex:1}.wave i{display:block;width:2px;height:var(--h);background:#77896e;border-radius:3px}.voice span:last-child{font-size:12px}.voice.playing .wave i{animation:wave .6s alternate infinite}.voice.playing .wave i:nth-child(2n){animation-delay:.2s}@keyframes wave{to{transform:scaleY(.3)}}.mood-layout{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:24px}.mood-intro{display:flex;justify-content:space-between;align-items:center;background:#edf1e8;border-radius:20px;padding:20px 24px;margin-bottom:22px;min-height:150px}.mood-intro h2{font-size:23px;margin-bottom:9px}.mood-intro p{font-size:14px;color:#55604d}.mood-intro img{width:126px;height:126px;object-fit:contain}.mood-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}.mood-option{background:white;border:1px solid var(--line);border-radius:16px;padding:22px;text-align:left;position:relative;min-height:154px}.mood-option[aria-pressed=true]{border:2px solid var(--accent);padding:21px;background:#f8faf5}.mood-option .option-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.mood-option .option-top svg{width:25px;height:25px}.radio{border:1px solid #a2ab9b;border-radius:50%;width:18px;height:18px}.mood-option[aria-pressed=true] .radio{background:var(--accent);box-shadow:inset 0 0 0 4px white}.mood-option strong{text-wrap:balance;display:block;font-size:16px;line-height:1.6;margin-bottom:5px}.mood-option small{display:block;font-size:12px}.match-settings{margin-top:23px}.choice-label{display:block;font-size:14px;font-weight:600;margin-bottom:10px}.choices{display:flex;gap:10px;margin-bottom:22px}.choice{flex:1;border:1px solid #c7cfc0;border-radius:12px;min-height:48px;padding:9px;font-size:14px}.choice[aria-pressed=true]{background:#e8eee2;border-color:#718269;font-weight:650}.match-note{font-size:12px;color:var(--muted);text-align:center;margin-top:13px}.friend-mini{display:flex;align-items:center;gap:12px;margin:20px 0}.friend-mini p{font-size:14px;font-weight:600}.friend-mini small{font-size:12px}.quiet-box{padding:20px 0;border-top:1px solid var(--line);margin-top:24px}.quiet-box h3{font-size:14px;margin-bottom:8px}.quiet-box p{font-size:13px;color:var(--muted)}.bottle-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:24px}.sea{background:#eaf1ef;border-radius:20px;padding:32px;min-height:460px;text-align:center;display:flex;flex-direction:column;align-items:center;position:relative;overflow:hidden}.sea h2{font-size:24px}.sea p{font-size:14px;color:#52675e;margin-top:12px;max-width:350px}.bottle-scene{display:flex;align-items:center;justify-content:center;gap:44px;flex:1;min-height:200px;width:100%}.bottle-object{width:58px;height:112px;color:#648c83;transform:rotate(-16deg)}.bottle-object.main-bottle{width:84px;height:158px;transform:rotate(12deg);color:#385f55}.bottle-object.last{transform:rotate(26deg);width:39px;height:84px}.sea .primary{min-width:210px}.sea .sea-bottom{font-size:12px;margin-top:15px}.letter-preview{border-top:1px solid var(--line);padding-top:19px;margin-top:20px}.letter-preview p{font-size:15px;line-height:1.9;margin:8px 0 12px}.bottle-actions{display:grid;gap:20px}.bottle-actions h2{font-size:19px}.bottle-actions p{font-size:14px;margin:10px 0 18px;color:var(--muted)}.saved-list{margin-top:24px}.saved-row{background:white;border:1px solid var(--line);padding:18px 20px;border-radius:12px;margin-top:10px}.saved-row p{font-size:14px}.saved-row small{font-size:12px}.inbox{display:grid;grid-template-columns:295px minmax(0,1fr);border:1px solid var(--line);background:white;border-radius:20px;overflow:hidden;min-height:570px;height:calc(100dvh - 225px);max-height:770px}.contacts{border-right:1px solid var(--line);overflow:auto}.contacts-head{padding:20px;border-bottom:1px solid var(--line)}.contacts-head h2{font-size:16px}.contact-row{padding:18px 15px;display:flex;gap:11px;position:relative;border-bottom:1px solid #edf0e9}.contact-row.selected{background:#f0f3ec}.contact-open{padding:0;min-width:0;text-align:left;flex:1}.contact-title{display:flex;justify-content:space-between;gap:8px;font-size:14px;font-weight:600}.contact-title small{font-size:11px;font-weight:400}.contact-open p{font-size:12px;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:170px;color:var(--muted)}.conversation{min-width:0;display:flex;flex-direction:column;background:#fafbf8}.conversation-head{display:flex;align-items:center;gap:12px;padding:16px 22px;background:white;border-bottom:1px solid var(--line)}.conversation-head h2{font-size:16px}.conversation-head p{font-size:12px;color:var(--muted)}.conversation-head .icon-button{margin-left:auto}.icon-button{min-width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}.conversation-body{padding:22px;flex:1;overflow:auto;min-height:120px}.chat-date{text-align:center;color:var(--muted);font-size:11px;margin:0 0 24px}.message{display:flex;align-items:flex-end;gap:9px;margin-bottom:20px;max-width:87%}.message.mine{margin-left:auto;flex-direction:row-reverse}.bubble{background:white;border:1px solid var(--line);border-radius:18px 18px 18px 4px;padding:13px 17px;font-size:14px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere}.mine .bubble{background:#e8efdf;border:0;border-radius:18px 18px 4px 18px}.message-time{display:block;font-size:10px;color:var(--muted);margin:4px 2px}.mine .message-time{text-align:right}.message .voice{margin:0;background:none;padding:0;min-width:170px}.composer{display:flex;align-items:flex-end;gap:10px;padding:16px;background:white;border-top:1px solid var(--line)}.composer textarea{border:1px solid #d3dace;resize:none;min-height:48px;height:48px;max-height:100px;border-radius:14px;padding:11px 14px;flex:1;min-width:0;font-size:14px}.send{width:46px;height:46px;background:var(--text);color:white;display:flex;align-items:center;justify-content:center;border-radius:50%;flex-shrink:0}.conversation-back{display:none}.conversation .demo-chat{font-size:11px;text-align:center;background:white;color:var(--muted);padding-bottom:9px}.empty-chat{padding:40px;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;text-align:center}.empty-chat img{width:140px;margin-bottom:20px}.empty-chat p{font-size:14px;color:var(--muted);margin-top:10px}.mobile-nav{display:none}dialog{border:1px solid var(--line);border-radius:24px;width:min(520px,calc(100% - 32px));padding:30px;color:var(--text);background:#fff;max-height:85dvh;overflow:auto}dialog::backdrop{background:#202b224d}dialog h2{font-size:23px;margin-bottom:12px;padding-right:28px}dialog p{font-size:14px;color:var(--muted);line-height:1.9}dialog .close{position:absolute;right:15px;top:13px}dialog .modal-icon{width:68px;height:68px;margin:12px auto 20px;display:flex;align-items:center;justify-content:center;background:var(--bg);border-radius:50%}dialog .modal-icon svg{width:28px;height:28px}dialog .modal-center{text-align:center}dialog .modal-center h2{padding:0}dialog .primary{margin-top:22px}dialog label{font-size:14px;font-weight:600;display:block;margin:18px 0 8px}dialog input,dialog textarea,dialog select{display:block;width:100%;border:1px solid #bfc9b7;border-radius:12px;padding:12px;background:white;color:var(--text)}dialog textarea{min-height:145px;resize:vertical;line-height:1.8}::placeholder{color:#66705f}dialog .form-row{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:14px}dialog .form-row .primary{margin:0}dialog .letter{padding:25px;background:#f6f7f0;border-radius:14px;margin:20px 0;white-space:pre-wrap;font-size:16px;line-height:2;color:var(--text)}.match-result{margin:25px 0;display:flex;align-items:center;gap:15px}.match-result strong{display:block}.match-result p{font-size:13px}.form-error{color:#9f3024!important;margin-top:10px}.comment{background:#f4f6f0;padding:14px;border-radius:12px;margin:12px 0}.comment strong{font-size:13px}.comment p{font-size:14px;color:var(--text)}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(25px);background:#292d28;color:#fff;padding:12px 22px;border-radius:14px;z-index:100;opacity:0;pointer-events:none;transition:.2s;font-size:14px;max-width:calc(100% - 32px);text-align:center}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}body[data-persona=senior]{--bg:#f6f6f0;--active:#eaece0;--soft:#f0f2e8}body[data-persona=senior] .post p,body[data-persona=senior] .bubble{font-size:17px}body[data-persona=senior] .mood-option strong{font-size:18px}body[data-persona=senior] .nav a{font-size:16px}body[data-persona=senior] .mood-option{min-height:170px}body[data-persona=senior] .page-heading p{font-size:16px}body[data-persona=senior] .workspace .primary{min-height:50px;font-size:16px}
@media(min-width:1500px){.workspace{padding-left:48px;padding-right:48px}.grid{grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:1160px){.layout{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding:28px 16px}.brand{font-size:21px}.workspace{padding:24px}.grid{grid-template-columns:minmax(0,1fr) 245px;gap:18px}.panel,.post{padding:18px}.mood-layout{grid-template-columns:minmax(0,1fr) 245px;gap:18px}.mood-option{padding:17px}.mood-option[aria-pressed=true]{padding:16px}.mood-intro{padding:20px}.mood-intro img{width:105px}.mood-intro h2{font-size:21px}.inbox{grid-template-columns:240px minmax(0,1fr)}.contact-row{gap:8px;padding:15px 11px}.contact-open p{max-width:145px}}
@media(max-width:940px){.layout{grid-template-columns:180px minmax(0,1fr)}.sidebar{padding:28px 16px}.brand{font-size:19px;gap:3px}.brand-mark{width:35px}.brand-note{font-size:11px}.nav a{padding:12px 9px;gap:9px;font-size:13px}.workspace{padding:23px}.grid,.mood-layout,.bottle-layout{grid-template-columns:1fr}.right-rail{grid-template-columns:1fr 1fr}.right-rail .footnote{grid-column:1/-1}.mood-layout>aside{display:none}.topbar-left{display:none}.topbar{justify-content:flex-end}.page-heading h1{font-size:26px}.page-heading .primary{padding:10px 15px}.inbox{grid-template-columns:1fr;height:calc(100dvh - 225px)}.contacts{border:0}.conversation{display:none}.inbox.chat-open .contacts{display:none}.inbox.chat-open .conversation{display:flex}.conversation-back{display:inline-flex}.conversation-head{padding:12px}.contact-open p{max-width:100%}.message{max-width:90%}.bottle-actions{grid-template-columns:1fr 1fr}.sea{min-height:440px}.mood-intro img{width:135px}}
@media(max-width:640px){body{background:#f8f9f5}.layout{display:block;min-height:100dvh}.sidebar{display:none}.workspace{padding:0 18px 102px}.topbar{margin:0 -18px;padding:15px 18px;border-bottom:1px solid var(--line);background:var(--bg);gap:10px;justify-content:space-between}.mobile-brand{display:flex;font-size:18px;gap:3px;align-items:center;font-weight:750;white-space:nowrap}.mobile-brand img{width:32px;height:32px}.persona-switch{padding:3px;gap:0}.persona-switch button{font-size:11px;padding:6px 10px;min-height:34px}.page-heading{margin:25px 0 22px;gap:10px;align-items:flex-start}.page-heading h1{font-size:25px}.page-heading p{font-size:12px;line-height:1.8;max-width:280px}.page-heading .primary{font-size:12px;padding:9px 13px;min-height:42px}.page-heading .primary svg{width:16px}.grid{gap:18px}.filters{margin-bottom:17px;gap:7px}.filter{font-size:12px;padding:6px 13px}.post{padding:18px;margin-bottom:17px;border-radius:18px}.post h2{font-size:18px}.post p{font-size:14px}.post-image{height:205px;margin-top:15px}.post-time{font-size:11px}.post-name{font-size:13px}.post-info small{font-size:11px}.post-actions button{font-size:11px;gap:5px}.post-actions svg{width:17px}.right-rail{grid-template-columns:1fr}.mood-peek{display:none}.right-rail .panel:not(.bottle-peek){display:none}.right-rail .footnote{font-size:11px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;background:white;border-top:1px solid var(--line);padding:9px 9px max(9px,env(safe-area-inset-bottom));height:calc(73px + env(safe-area-inset-bottom));justify-content:space-around}.mobile-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;font-size:10px;color:#636b5f;min-width:62px;border-radius:8px}.mobile-nav a.active{color:var(--accent);font-weight:700;background:#f2f5ed}.mobile-nav svg{width:21px;height:21px}.mood-intro{padding:18px;min-height:145px;gap:6px}.mood-intro h2{font-size:20px}.mood-intro p{font-size:12px}.mood-intro img{width:105px;height:115px}.mood-options{gap:11px}.mood-option{padding:16px;min-height:166px}.mood-option[aria-pressed=true]{padding:15px}.mood-option strong{font-size:14px}.mood-option small{font-size:11px}.mood-option .option-top{margin-bottom:13px}.match-settings{margin-top:21px}.choice{font-size:13px}.sea{padding:28px 20px;min-height:430px}.sea h2{font-size:23px}.sea p{font-size:13px}.bottle-scene{gap:30px;min-height:185px}.bottle-actions{grid-template-columns:1fr}.bottle-actions .panel{padding:22px}.inbox{margin:0 -18px;border:0;border-top:1px solid var(--line);border-radius:0;min-height:0;height:calc(100dvh - 255px);max-height:none}.contacts-head{padding:15px 20px}.contact-row{padding:18px 20px}.contact-title{font-size:15px}.contact-open p{font-size:13px}.conversation-head{gap:7px}.conversation-head .avatar{width:38px;height:38px}.conversation-head h2{font-size:14px}.conversation-body{padding:20px 15px}.bubble{font-size:14px;padding:12px 14px}.message{max-width:95%;gap:7px}.message .avatar{width:30px;height:30px}.composer{padding:12px;gap:7px}.composer .icon-button{min-width:34px;width:34px}.composer textarea{font-size:14px}.send{height:42px;width:42px}.inbox.chat-open{height:calc(100dvh - 155px)}body:has(.inbox.chat-open) .page-heading{display:none}body:has(.inbox.chat-open) .workspace{padding-bottom:73px}dialog{padding:26px 22px;border-radius:20px}dialog h2{font-size:21px}#toast{bottom:88px;font-size:13px}body[data-persona=senior] .mood-option strong{font-size:16px}body[data-persona=senior] .mood-option{min-height:185px}body[data-persona=senior] .page-heading p{font-size:14px}body[data-persona=senior] .page-heading .primary{font-size:13px;min-height:44px}body[data-persona=senior] .post p,body[data-persona=senior] .bubble{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
