/* Bubble edition: quiet glass controls, readable solid content and soft lavender depth. */
:root{--bg:#f4f2fc;--paper:#fffefc;--ink:#454455;--muted:#9a96aa;--line:#e8e4f2;--accent:#9485bd;--soft:#efebfa;--gold:#e6dcfb;--pink:#d8a8be;--blue:#a9bfd9;--shadow:0 10px 40px #9180b00b;--glass:rgba(255,255,255,.76);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
:root[data-theme="blue"]{--bg:#eff5fc;--paper:#fdfeff;--accent:#7f9ebf;--soft:#e8f0fa;--line:#e1eaf5;--gold:#dae9f8;--glass:rgba(255,255,255,.76)}
:root[data-theme="rose"]{--bg:#fcf0f4;--paper:#fffcfd;--accent:#bd8fa8;--soft:#f8e7ef;--line:#f0dde7;--gold:#f3dce8;--glass:rgba(255,255,255,.8)}
html{background:var(--bg)}body{background:radial-gradient(ellipse at 3% 2%,#f9f3e9 0,transparent 50%),radial-gradient(ellipse at 95% 25%,#e9e7fb 0,transparent 42%),var(--bg);background-attachment:fixed}
.app-shell{background:transparent;max-width:460px}.app-header{padding:28px 23px 17px;gap:10px}.brand b{font-size:20px;letter-spacing:.5px;font-weight:650}.brand small{font-size:9px;letter-spacing:1px}.brand{gap:9px}.brand-pet{width:39px;height:41px}.tiny-flower{margin-left:5px;color:#c3a4d1}.icon-button{background:var(--glass);border:1px solid #ffffffd9;box-shadow:0 4px 16px #9a8abb08}.search-form{height:47px;border-radius:24px;background:var(--glass);border-color:#fff;box-shadow:0 4px 17px #9289aa06;padding:0 15px;gap:10px}.search-form input{font-size:12px;line-height:1.7;padding:9px 0}.search-form:focus-within{outline:2px solid color-mix(in srgb,var(--accent) 35%,transparent);outline-offset:3px}.search-form input:focus-visible{outline:0}.search-form button{background:var(--soft);border-radius:50%;width:28px;height:28px}.search-form button svg{width:16px;height:16px}.search-form>svg{width:16px;height:16px}.page-content{padding:0 20px 112px}.bottom-nav{border-radius:30px;gap:3px;padding:7px;width:min(356px,calc(100% - 32px));background:rgba(255,255,255,.8);border:1px solid #ffffffeb;box-shadow:0 10px 40px #8877a51a;backdrop-filter:blur(24px) saturate(145%)}.bottom-nav button{flex-direction:column;gap:5px;padding:9px 2px 10px;font-size:9px;border-radius:23px}.bottom-nav button[aria-current]{background:color-mix(in srgb,var(--soft) 85%,transparent);color:var(--accent)}.bottom-nav button svg{height:20px;width:20px}.bottom-nav i{display:none}.icon-button,.secondary,.primary,button{touch-action:manipulation}.primary,.secondary{border-radius:23px;font-size:12px;min-height:46px}.primary{color:#665482;background:linear-gradient(115deg,#e2d8f6,#e6def9);box-shadow:0 5px 17px #c5b5df20}.secondary{background:var(--soft);border-color:transparent}.info-card{border-radius:28px;background:var(--glass);border:1px solid #fff;padding:23px 19px;box-shadow:var(--shadow)}.info-card h2{font-size:15px}.info-card p{color:#9390a2}.micro-label{font-size:9px;letter-spacing:1px;color:var(--muted);font-weight:500}.home-title{display:flex;align-items:center;justify-content:space-between;padding:25px 3px 15px}.home-title h1{margin:7px 0 0;font-size:25px;line-height:1.5;font-weight:650;letter-spacing:.2px}.home-title h1 span{color:var(--accent)}.orbit-mark{display:flex;align-items:center;justify-content:center;border-radius:50%;height:34px;width:34px;background:#f3e5f0;color:#c5a4c7;font-size:23px;transform:rotate(12deg)}.family-bubble{position:relative;background:linear-gradient(140deg,#ffffffdc,#f0e9fc9c 60%,#e5edfdad);border:1px solid #ffffffed;border-radius:32px;box-shadow:0 8px 32px #9f8bbc10;overflow:hidden;padding:8px 10px 0}.floating-tag{position:absolute;top:16px;left:17px;font-size:8px;letter-spacing:.4px;color:#9f91b9;background:#ffffffa6;border:1px solid #fff;border-radius:20px;padding:6px 10px;z-index:1;pointer-events:none}.family-bubble>button{display:block;padding:15px 0 0;width:100%;border-radius:28px}.family-art{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 10px 14px #ab91cb13)}.family-bubble .family-art{margin:8px 0 -2px}.family-caption{display:flex;align-items:center;justify-content:center;gap:7px;margin:0 -10px;background:#ffffff68;border-top:1px solid #ffffffad;padding:13px 10px;color:#9287a6;font-size:9px}.family-caption>span:last-child{margin-left:7px;font-size:14px;color:#c4a2bc}.mini-glow{width:4px;height:4px;border-radius:50%;background:#c5b7df;box-shadow:0 0 0 3px #e1d9f64d}.hero-spark{position:absolute;right:16px;top:17px;color:#c6b2dc;font-size:25px;pointer-events:none}.bubble-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:12px;margin-top:14px}.bubble{border:1px solid #ffffffea;border-radius:27px;background:var(--glass);box-shadow:0 8px 28px #9584b008;padding:18px 16px;min-width:0}.bubble h2{font-size:14px;line-height:1.5;letter-spacing:.2px;font-weight:600;margin:8px 0 10px}.bubble p{font-size:10px;line-height:1.9;color:var(--muted);margin:0}.bubble button{font-size:10px;color:var(--accent)}.mood-bubble{background:linear-gradient(145deg,#fffefdcd,#f5edfaaf)}.mood-bubble h2{font-size:12px;white-space:nowrap}.mood-options{display:flex;align-items:center;justify-content:space-between;gap:2px;margin:15px -3px 12px}.mood-options button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:0 1px}.mood-dot{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;font:16px Georgia,serif;font-style:normal;box-shadow:inset 0 1px 1px #fff,0 3px 7px #b7a3ce12;border:1px solid #ffffffa8}.mood-options small{font-size:7px;color:var(--muted);white-space:nowrap}.mood-0{background:#f4e8b9;color:#c9ac68}.mood-1{background:#e5ddf3;color:#a69ac4}.mood-2{background:#dce9f5;color:#91aac2}.mood-3{background:#f1dae5;color:#c292ac}.mood-options button[aria-pressed="true"] .mood-dot{outline:2px solid #b7a1cf;outline-offset:3px}.mood-bubble>p{font-size:8px;line-height:1.8}.season-bubble{position:relative;display:block;text-align:left;background:linear-gradient(145deg,#fffefdde,#f5f0e1b8);overflow:hidden}.season-bubble h2{font-size:25px;margin:24px 0 7px;letter-spacing:3px;color:#9b9287;font-weight:500}.season-bubble p{font-size:10px}.season-bubble p b{font-size:14px;font-weight:500;color:#8b8291}.season-bubble>small{display:block;margin-top:5px;font-size:8px;color:#b0a79b}.season-art{position:absolute;right:9px;top:38px;font-size:59px;line-height:1;color:#dfd2bc;transform:rotate(13deg);opacity:.8}.season-art i{display:block;position:absolute;width:5px;height:5px;border-radius:50%;background:#dfcfae;right:4px;top:-4px}.season-art i:last-child{width:3px;height:3px;right:40px;top:59px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-heading h2{font-size:15px;margin:6px 0 0}.section-heading>button{font-size:9px;white-space:nowrap;padding:8px 0}.section-heading>button span{margin-left:3px;font-size:15px}.week-bubble,.companion-bubble{margin-top:14px}.bubble-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin:17px -5px -3px}.bubble-week>button{min-width:0;display:flex;flex-direction:column;align-items:center;border:1px solid transparent;border-radius:19px;padding:8px 0 5px;color:var(--ink)}.bubble-week small{font-size:8px;color:var(--muted)}.bubble-week b{font-size:12px;font-weight:600;margin:6px 0 5px}.bubble-week>button>span{width:32px;height:32px}.bubble-week .picked{background:#eee8f9;border-color:#ffffffa0}.companion-stage{display:flex;position:relative;align-items:center;gap:17px;margin:20px 0 17px;padding:0 3px}.companion-stage>.pet{width:100px;height:108px;position:relative;flex:none}.companion-stage>div:last-child{position:relative;flex:1;min-width:0}.companion-stage p{font-size:11px;line-height:1.9;margin:10px 0 7px;color:#898098}.companion-stage button{font-size:9px;padding:7px 12px;border-radius:15px;background:#f3edf8;color:#a18db4}.companion-stage button span{margin-left:5px}.soft-tag{font-size:7px;letter-spacing:.6px;color:#b3a6c2}.pet-aura{position:absolute;left:0;top:8px;width:105px;height:95px;border-radius:50%;background:radial-gradient(#eee6fa,transparent 70%)}.companion-orbit{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:1px;border-top:1px solid #eee8f4;padding-top:13px}.companion-orbit button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:5px 0;border-radius:14px;min-width:0}.companion-orbit .pet{width:30px;height:31px}.companion-orbit button>span{font-size:6px;color:#aaa0b8;white-space:nowrap}.companion-orbit button[aria-pressed="true"]{background:var(--soft)}.inspiration-bubble{background:linear-gradient(145deg,#fffcfdcf,#f5eaf1b8);display:flex;flex-direction:column}.inspiration-bubble h2{font-size:14px;line-height:1.7;margin:10px 0}.inspiration-bubble p{font-size:9px;line-height:2.1;flex:1}.inspiration-bubble>button{font-size:9px;margin-top:14px;padding:8px 0;text-align:left;color:#b192ac}.inspiration-bubble>button span{float:right;font-size:16px}.breath-bubble{display:block;background:linear-gradient(145deg,#fcfeffdb,#eaf1faac);text-align:center;min-height:230px}.breath-bubble>.micro-label{display:block;text-align:left}.breath-orb{width:94px;height:94px;margin:14px auto 12px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:radial-gradient(at 34% 23%,#ffffff 0,#edf2fd 23%,#d8e3f5 61%,#c2cce9 100%);box-shadow:inset 0 0 0 1px #ffffffc9,inset -7px -8px 16px #a6b5d133,0 9px 27px #a5b0d129;color:#9aa9c7;font-size:10px;letter-spacing:2px;animation:orb-float 6s ease-in-out infinite}.breath-bubble h2{font-size:11px;margin:14px 0 7px}.breath-bubble p{font-size:8px}.bubble-footer{text-align:center;margin:27px 0 6px;font-size:8px;letter-spacing:1px;color:#b3a9c2}.bubble-footer span{font-size:13px;color:#c5b0cc;margin-left:7px}.breath-sheet{text-align:center}.breath-sheet h2{margin:10px 0;font-size:21px;font-weight:500}.breath-sheet>p{font-size:11px}.breath-sheet .breath-orb{width:165px;height:165px;margin:35px auto}.breath-sheet .breath-orb.active{animation:breathing 6s ease-in-out infinite}.breath-sheet .primary{margin-top:18px}.month-intro{min-height:115px;padding:24px 3px 16px}.month-intro h1{font-size:24px}.month-intro .intro-pets{display:none}.month-intro>div:first-child{width:100%}.month-intro .eyebrow{font-size:8px;color:#b5a3ce}.calendar-paper{padding:21px 13px 12px;border:1px solid #fff;border-radius:29px;background:#ffffffc9;box-shadow:0 15px 50px #9484ac0c}.paper-tape{display:none}.calendar-top{margin-bottom:17px}.year-row button{background:transparent;padding:6px 13px;color:#afa6bb}.year-row .active{background:#b2a0cf;color:#fff}.month-heading b{font-family:inherit;font-size:28px;font-weight:500;letter-spacing:0}.month-heading small{letter-spacing:2px;color:#b2a0c5}.week-row{border-bottom:0;font-size:9px}.day-grid{gap:6px 2px}.day{min-height:73px;border-radius:19px;padding:6px 0 4px}.day .pet{width:38px;height:38px;margin-top:4px}.day small{font-size:6px;color:#b1a9bc}.day-number{font-size:10px}.day.selected{background:#eae2f7;border-color:#e6ddf3;box-shadow:inset 0 1px 1px #ffffffd9}.calendar-foot{border-top:1px solid #eee8f4;color:#b3a8be;font-size:6px}.companion-picker>span{font-size:10px;color:#ada1bb}.companion-options button{border-color:#fff;border-radius:22px;min-height:80px;background:#ffffff96;color:#a99ab9}.companion-options button.active{background:#eae3f5;border-color:#daceed}.day-preview{border-radius:25px;background:#eae4f6b8;padding:15px 12px}.day-preview b{font-size:11px;color:#8c7e9c}.day-preview small,.day-preview span{color:#a79ab7}.daily-paper{border-radius:30px;background:#ffffffc4;border-color:#fff;box-shadow:var(--shadow);padding:24px}.daily-label{color:#b09bca;font-size:8px}.date-block strong{font-family:-apple-system,system-ui,sans-serif;font-weight:200;font-size:94px;letter-spacing:-6px;color:#797187}.date-block small{color:#ad9cbc}.date-block p{font-size:10px;color:#9c8daa}.daily-fox{width:114px;height:120px}.ganzhi{font-size:9px;border-color:#ebe4f3;color:#b2a8bb}.yi-ji p{font-size:11px;color:#8a8096}.label-yi{border-radius:50%;color:#9b8bb3;background:#eee7f6}.label-ji{border-radius:50%;background:#f6e8ec;color:#bd9baa}.warm-note{border-radius:28px;background:#ece5f7b3;padding:23px 20px}.warm-note .family-art{position:absolute;right:0;bottom:0;width:150px}.warm-note p{font-size:11px;color:#9b8baa}.warm-note>span{color:#af9dc2}.about-hero{padding:24px 5px 0}.about-hero .family-art{width:100%;max-width:320px;margin:auto}.about-hero h1{font-size:25px;font-weight:600}.about-hero p:last-child{font-size:10px;line-height:2.1}.eyebrow{color:#b5a4c8;font-size:7px}.character-list>div,.character-list>button{background:linear-gradient(160deg,#ffffff85,#f0ebf74d);border:1px solid #ffffffab;border-radius:25px;padding:13px 6px;text-align:center}.character-list{gap:12px}.character-list .pet{width:112px;height:112px}.character-list>div:last-child:nth-child(odd){grid-column:auto;width:auto}.character-list small{font-size:7px;max-width:132px;color:#afa3bc}.character-list b{font-size:12px;color:#8e7f9e}.about-copy p{font-size:10px}.sheet{border-radius:33px;background:#fffcfdef;border-color:#fff;box-shadow:0 20px 80px #6e5e8d21}.overlay{background:#6c5d843b;backdrop-filter:blur(12px)}.welcome-pets{width:100%;margin:0 auto 20px}.welcome h1{font-size:23px;color:#70627e}.welcome input{background:#fff;border-radius:22px;border-color:#eee6f5;font-size:11px}.welcome>small{font-size:8px;color:#aea1b9}.form-error{color:#bb8eaa}.notice{background:#f0ebf8;color:#a08fb0!important}.private-header{background:#f7f3fcda;backdrop-filter:blur(20px);border-bottom:1px solid #fff;padding-top:24px}.private-header>span{font-size:11px;color:#8e7e9e}.return-button{color:#9d8bb2}.private-actions{display:flex;gap:6px}.private-header .icon-button{height:31px;width:31px;background:#ffffff9e}.chat-intro{gap:10px}.chat-intro b{color:#8f7c9f;font-size:12px}.chat-intro small{font-size:8px;color:#b2a4bf}.chat-safety{color:#b2a1c3;font-size:8px}.chat-intro>.pet,.chat-intro>div{width:72px;height:72px}.chat-empty p{font-size:12px;color:#b1a2bf}.chat-empty small{font-size:8px}.composer{max-width:460px;background:#faf6fce0;backdrop-filter:blur(24px);border-top:1px solid #fff}.composer textarea{background:#fff;border:1px solid #eee6f5;border-radius:24px;padding:12px 15px;font-size:12px}.composer button{border-radius:50%;background:#e5d8f3}.message p{background:#eae2f5;border-color:#fff;border-radius:22px 22px 6px 22px;font-size:12px;color:#8e7c9f}.message small{color:#b6a9c2;font-size:7px}.message-date{color:#b6a8c3}.badge{border:1px solid #ffffffc9;border-radius:18px;color:#aa95bd;background:#efe8f9}.pairing>.family-art{width:100%;max-width:300px;margin:20px auto}.pairing h1{color:#80708e}.invite-code{color:#b19ac8!important}.text-button{color:#b3a4c1}#feedback{background:#7d6b94e8;border:1px solid #ffffff33;backdrop-filter:blur(16px);font-size:10px;border-radius:22px;padding:11px 16px}
@keyframes orb-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes breathing{0%,100%{transform:scale(.82)}50%{transform:scale(1.05)}}
@media(min-width:850px){body{padding:35px;gap:75px;background:radial-gradient(ellipse at 12% 0,#f7eee5,transparent 55%),radial-gradient(ellipse at 90% 60%,#deddf5,transparent 50%),#efedf8}.app-shell{width:460px;border:1px solid #fff;border-radius:39px;background:linear-gradient(#f8f6fbd9,#eeebf6b0);box-shadow:0 20px 110px #8b78981a;min-height:calc(100svh - 70px)}.desk-note{width:290px;top:10vh}.desk-note>span{color:#b3a2c3;letter-spacing:3px;font-size:9px}.desk-note h1{color:#81718e;font-size:34px;letter-spacing:2px;line-height:1.7}.desk-note p{color:#a899b6;font-size:11px}.desk-note small{color:#b6a7c4;font-size:8px;letter-spacing:2px}.desk-pets{width:340px;transform:none;margin:28px -25px}.bottom-nav{width:356px;margin-left:51px;bottom:23px}.overlay{width:458px;border-radius:38px}.composer{max-width:458px}.private-header{border-radius:37px 37px 0 0}#feedback{margin-left:48px;max-width:360px}.home-title{padding-top:28px}}
@media(max-width:359px){.page-content{padding-left:14px;padding-right:14px}.home-title h1{font-size:23px}.bubble{padding:16px 12px}.mood-options{gap:1px}.mood-dot{width:25px;height:25px}.bubble-week>button>span{width:29px;height:30px}.companion-stage{gap:10px}.companion-stage>.pet{width:86px;height:96px}.companion-orbit .pet{width:27px;height:28px}.companion-orbit button>span{font-size:5px}.calendar-paper{padding-left:8px;padding-right:8px}.day .pet{width:33px;height:33px}.day{min-height:69px}}
@media(prefers-reduced-transparency:reduce){.bubble,.search-form,.bottom-nav,.private-header,.composer{background:#fdfbff;backdrop-filter:none}}
@media(prefers-reduced-motion:reduce){.breath-orb,.breath-sheet .breath-orb.active{animation:none}.target-highlight{animation:none}}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.history-host{display:flex;flex-direction:column;padding:15px 18px 25px;min-height:0;flex:1}.history-notice{font-size:8px;text-align:center;color:#ad9bbc;background:#eee8f7;border:1px solid #fff;border-radius:16px;padding:8px 7px;line-height:1.8}.history-form{display:flex;gap:8px;margin-top:15px}.history-form input{border:1px solid #fff;border-radius:25px;background:#ffffffcb;flex:1;min-width:0;font-size:12px;padding:11px 15px}.history-form button{min-height:42px;padding:8px 15px}.history-categories{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0}.history-categories button{font-size:9px;padding:8px 11px;border:1px solid #fff;background:#ffffff80;border-radius:18px;color:#a492b6}.history-categories button[aria-pressed="true"]{background:#dfd1ef;color:#8d75a5}.history-filters{display:flex;align-items:flex-end;gap:7px;margin-bottom:14px}.history-filters label{font-size:8px;min-width:0;flex:1;color:#ad9cbd}.history-filters input{font-size:10px;width:100%;min-width:0;border:1px solid #fff;border-radius:16px;padding:9px 6px;margin-top:5px;background:#ffffffb5}.history-filters button{font-size:9px;padding:9px 10px;min-height:35px;white-space:nowrap;border:1px solid #fff}.history-results{overflow:auto;max-height:calc(100svh - 335px);min-height:300px;padding:0 1px 15px;overscroll-behavior:contain}.history-empty{text-align:center;padding:45px 10px;color:#ae9cbe}.history-empty>span{font-size:55px;color:#cfbfdf;display:block;margin-bottom:25px}.history-empty h2{font-size:17px;font-weight:500;color:#9783aa}.history-empty p{font-size:11px;line-height:2.1}.history-result-label{font-size:8px;color:#b4a5c0;margin:5px 0 14px}.history-result{display:block;text-align:left;width:100%;background:#ffffffb8;border:1px solid #fff;border-radius:23px;padding:17px 15px;margin-bottom:10px}.history-result>span{display:flex;justify-content:space-between;align-items:center;gap:8px}.history-result b{font-size:10px;color:#967da9;font-weight:500}.history-result small{font-size:7px;color:#b9a9c5}.history-result p{font-size:12px;line-height:1.9;color:#8c7c9c;margin:10px 0 12px}.history-result i{font-style:normal;font-size:8px;color:#b49bc7}.history-host mark{background:#ead8f1;color:#9771ab;border-radius:4px;padding:0 2px}.history-status{text-align:center;font-size:11px;color:#b09bc1;margin:50px 15px}.context-actions{display:flex;justify-content:space-between;padding:16px 0}.context-actions button{font-size:9px;color:#a38ab9;padding:6px 0}.context-window{height:calc(100svh - 190px);overflow:auto;overscroll-behavior:contain;overflow-anchor:none;scroll-behavior:auto;padding:0 3px 10px}.context-message{background:#ffffffb0;border:1px solid #fff;border-radius:22px;padding:15px;margin:10px 0;outline:none}.context-message small{font-size:8px;color:#b6a1c4}.context-message p{font-size:12px;line-height:2;color:#8d7a9e;margin:8px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}.context-load{width:100%;padding:13px;font-size:9px;color:#aa91bf}.target-label{display:block;font-size:8px;margin-top:12px;color:#a17db8}.target-highlight{border-color:#c4a3dc;animation:found-message 2s ease-out both}.context-message:focus-visible{outline:2px solid #cbb3df;outline-offset:2px}
@keyframes found-message{0%,35%{background:#decaee;box-shadow:0 0 0 4px #d9bde83d}100%{background:#ffffffb0;box-shadow:none}}
@media(prefers-reduced-motion:reduce){.target-highlight{animation:none;background:#eee1f7}}

.history-back-chat{align-self:flex-start;font-size:10px;color:#a58eba;padding:4px 0 13px}
