/* v97 native cards; typography inherits the active chat theme. */
#assets96-entry,#keepsakes97-entry,#notes97-entry{padding:0;min-height:0;font:inherit;color:inherit;background:none;border:0;align-self:start}#assets96-entry svg,#keepsakes97-entry svg,#notes97-entry svg{fill:none}.function-slide{align-content:start}
#upload-book-btn{min-width:42px;min-height:42px}#upload-book-btn svg{width:25px;height:25px}
#face-previews97{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.v97-face-thumb{padding:0;border:0;background:none;width:54px;display:flex;flex-direction:column;gap:3px}.v97-face-thumb img{width:48px;height:48px;border-radius:6px;object-fit:cover}.v97-face-thumb small{font:10px system-ui;color:#777}.v97-face-preview{width:100px;height:100px;object-fit:cover;border-radius:8px}.v97-zoom{display:block;width:100%;max-height:65vh;object-fit:contain}#expand-enabled97,#expand-gpt-enabled97{accent-color:#555}.v97-expand-setting{display:flex;align-items:center;padding:16px;gap:8px;font-size:14px}
#keepsakes97-screen{background:#fff;color:#292929}.k97-app{height:100%;display:flex;flex-direction:column;padding-top:var(--uwu-top-inset,env(safe-area-inset-top,0px));box-sizing:border-box;font-family:system-ui,sans-serif}.k97-top{display:flex;justify-content:space-between;align-items:center;padding:10px 20px;flex:none}.k97-top small{font-size:12px;letter-spacing:.6px}.k97-top button{font-size:26px}.k97-body{overflow:auto;padding:12px 24px calc(30px + env(safe-area-inset-bottom,0px));flex:1}.k97-body h1{font:36px/1.4 'Songti SC','Noto Serif CJK SC',serif;font-weight:500;margin:12px 0 3px}.k97-eyebrow{font-size:9px;letter-spacing:2px;color:#888;display:block}.k97-nav{display:flex;gap:14px;overflow:auto;margin:24px 0 12px;border-bottom:1px solid #eee}.k97-nav button{padding:8px 0;font-size:13px;white-space:nowrap}.k97-nav .selected{border-bottom:1px solid #817769;box-shadow:none}.k97-tools{display:flex;align-items:center;margin-bottom:20px;gap:8px}.k97-tools input{width:0;flex:1;border:0;background:#f5f5f5;padding:8px;border-radius:4px;color:inherit}.k97-tools button{font-size:11px;padding:3px;min-height:30px;white-space:nowrap}.k97-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px 18px}.k97-tile{display:block;padding:0!important;min-width:0;text-align:left!important;background:none;border:0;font:inherit;color:inherit}.k97-tile.featured{grid-column:span 2}.k97-tile>img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:1px;display:block}.k97-tile.featured>img{aspect-ratio:1.55}.k97-tile>strong{display:block;font:17px/1.4 'Songti SC',serif;margin:5px 0}.k97-tile>small{display:block;color:#8c8072;font-size:10px;line-height:1.7}.k97-index{margin-top:10px}.k97-placeholder{aspect-ratio:1;background:#f3f4f4;display:grid;place-items:center;color:#a6adb0}.k97-placeholder svg{width:52px;height:52px}.k97-empty{font-size:13px;color:#929292;grid-column:span 2;padding:50px 0;text-align:center}.k97-hero{width:100%;max-height:42vh;object-fit:cover;margin:10px 0 22px}.k97-detail h2{font:28px/1.5 'Songti SC',serif;margin:8px 0}.k97-note{line-height:1.9;margin:30px 0;white-space:pre-wrap}.k97-detail .a96-row{border:0;font-size:12px;padding:9px 0}.k97-ticket{position:relative;background:#f7f7f4;color:#292929;margin:12px 2px;padding:22px 18px;box-shadow:0 3px 12px #2830380c;text-align:left;min-width:0;box-sizing:border-box}.k97-ticket:before,.k97-ticket:after{content:'';position:absolute;width:12px;height:12px;bottom:52px;background:#fff;border-radius:50%}.k97-ticket:before{left:-6px}.k97-ticket:after{right:-6px}.k97-ticket>small{display:block;font-size:10px;letter-spacing:1px;color:#777;overflow-wrap:anywhere}.k97-ticket>strong{display:block;font:clamp(18px,5vw,30px)/1.4 'Songti SC',serif;margin:24px 0 18px;overflow-wrap:anywhere}.k97-ticket>span{display:block;font-size:13px;letter-spacing:1px;margin:12px 0}.k97-ticket-stub{display:flex;justify-content:space-between;gap:10px;font-size:11px;border-top:1px dashed #cececa;padding-top:16px;margin-top:20px}.k97-share{width:252px;max-width:100%;border:1px solid #e8e8e8;border-radius:10px;background:var(--bubble-bg,#fff);color:inherit;box-shadow:0 2px 4px #00000003;padding:13px;text-align:left;font:inherit;overflow:hidden}.k97-share>strong,.k97-share>small{display:block;line-height:1.65}.k97-share>strong{font-size:15px;margin:6px 0}.k97-share>small{font-size:10px;color:#999}.k97-share>p{font-size:12px;line-height:1.7;white-space:pre-wrap}.k97-share-thumb{width:78px;height:78px;object-fit:cover;float:left;margin:10px 12px 10px 0;border-radius:3px}.k97-share-photo{width:100%;max-height:230px;object-fit:cover;display:block;margin:10px 0}.k97-share .k97-ticket>strong{font-size:23px}
.n97-wrap{width:238px;max-width:75vw;font:inherit;color:inherit;touch-action:pan-y}.n97-scene{font:inherit;position:relative;display:block;width:100%;height:205px;overflow:visible;border:0;background:none;padding:0;color:inherit;cursor:pointer;perspective:700px}.n97-bottle{position:absolute;width:145px;height:190px;left:calc(50% - 72px);top:0;overflow:visible;filter:drop-shadow(0 3px 3px #52616c0b)}.n97-cork{transform-origin:90px 24px;transition:transform .5s,opacity .5s}.n97-flying{position:absolute;width:42px;height:42px;left:calc(50% - 21px);top:92px;opacity:0;transform:scale(.6)}.n97-flying svg{width:100%;height:100%;filter:drop-shadow(0 2px 3px #26343d18)}.n97-strip{position:absolute;left:22%;right:22%;top:75px;height:23px;opacity:0;background:linear-gradient(90deg,#f8f7f3,#e9e8e2 24%,#fcfbf7 25%,#fcfbf7 48%,#e5e5df 49%,#f9f8f4 51%,#eee 75%,#fafaf6);clip-path:polygon(0 20%,25% 0,50% 20%,75% 0,100% 20%,100% 100%,75% 80%,50% 100%,25% 80%,0 100%);transform-origin:left center}.n97-paper{position:absolute;box-sizing:border-box;left:4px;right:4px;top:38px;max-height:220px;overflow:auto;min-height:115px;padding:24px 20px;background:linear-gradient(90deg,transparent 49.6%,#d4d2cb18 50%,transparent 50.4%),linear-gradient(#fffefa,#f8f8f5);box-shadow:0 5px 18px #3d4b550d;border-radius:2px;font:inherit;font-size:inherit;text-align:left;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;opacity:0;transform:rotateX(85deg) scaleX(.15);pointer-events:none;transition:opacity .35s,transform .6s}.n97-opened .n97-paper{opacity:1;transform:none;pointer-events:auto}.n97-opened .n97-bottle{opacity:.45;transform:scale(.6) translateY(32px);transform-origin:bottom}.n97-opened .n97-cork{transform:translate(40px,145px) rotate(60deg)}.n97-hint{display:block;font:11px/1.5 system-ui;color:#8c9298;margin:1px 10px 0}.n97-actions{display:flex;gap:8px;flex-wrap:wrap;padding:2px 6px}.n97-actions button{font:10px system-ui;color:#8b9297;padding:5px 3px;min-height:25px}.n97-playing .n97-cork{animation:n97-cork 2.6s both}.n97-playing .n97-flying{animation:n97-star 2.6s both}.n97-playing .n97-strip{animation:n97-strip 2.6s both}.n97-playing .n97-paper{animation:n97-unfold 2.6s both}.n97-playing .n97-bottle{transition:transform 1s;transform:translateY(25px) scale(.83);transform-origin:bottom}
@keyframes n97-cork{0%{transform:none}25%,45%{transform:translateY(-40px) rotate(-12deg)}85%,100%{transform:translate(53px,145px) rotate(65deg)}}@keyframes n97-star{0%,18%{opacity:0;transform:translateY(15px) scale(.5)}30%{opacity:1}48%{opacity:1;transform:translateY(-70px) rotate(12deg) scale(1)}65%{opacity:.7;transform:translate(-50px,-65px) rotate(-30deg) scale(.8)}76%,100%{opacity:0;transform:translate(-85px,-60px) scale(.2)}}@keyframes n97-strip{0%,43%{opacity:0;transform:scaleX(.1) rotate(-10deg)}56%,67%{opacity:1;transform:scaleX(1.3) rotate(-4deg)}80%,100%{opacity:0;transform:scaleY(3)}}@keyframes n97-unfold{0%,65%{opacity:0;transform:rotateX(85deg) scaleX(.15)}74%{opacity:1;transform:rotateX(65deg) scaleX(.85)}86%{opacity:1;transform:rotateX(-9deg) scaleX(1)}100%{opacity:1;transform:none}}
.m97-card{width:245px;max-width:73vw;position:relative;display:flex;flex-direction:column;gap:8px}.m97-item{position:relative;padding:0;border:0;border-radius:17px;overflow:hidden;background:#f2f2f2;color:#fff;display:block;width:100%;cursor:pointer}.m97-item img{width:100%;max-height:320px;object-fit:cover;display:block}.m97-live{position:absolute;top:10px;left:10px;width:28px;height:28px;color:#fff;pointer-events:none;filter:drop-shadow(0 1px 2px #0008)}.m97-live svg{display:block;width:100%;height:100%}.m97-viewer{position:relative}.m97-play{position:absolute;inset:0;display:grid;place-items:center;font-size:28px;text-shadow:0 2px 8px #0006}.m97-count{color:#999;font:10px system-ui;text-align:right}.m97-stack{--photo-height:185px;--photo-step:137px;height:calc(var(--photo-height) + (var(--count) - 1)*var(--photo-step) + 28px);margin:4px 0 8px;isolation:isolate;overflow:visible}.m97-stack .m97-item{position:absolute;top:calc(var(--index)*var(--photo-step));left:var(--offset);width:calc(100% - 27px);height:var(--photo-height);box-shadow:0 3px 7px #0003,0 12px 24px #00000026!important;border-radius:17px;transform:none}.m97-stack .m97-item img{height:100%;object-fit:cover}.m97-stack .m97-count{position:absolute;bottom:0;right:0;width:auto;min-height:22px;padding:2px 4px;border:0;background:none;cursor:pointer;color:#888;font:11px system-ui;z-index:1000}.m97-cleared{font-size:12px;color:#999;padding:12px;border:1px dashed #ccc;border-radius:8px}
@media(prefers-reduced-motion:reduce){.n97-playing *{animation-duration:.01ms!important;transition:none!important}}
@media(prefers-color-scheme:dark){#keepsakes97-screen{background:#191a1c;color:#ddd}.k97-ticket{background:#292a2b;color:#ddd}.k97-placeholder{background:#242629}.k97-tools input{background:#27292b}.k97-nav{border-color:#333}.k97-share{background:#292b2d;border-color:#3b3c3e}.k97-ticket:before,.k97-ticket:after{background:#191a1c}.n97-paper{background:linear-gradient(#353638,#303235);color:#eee;box-shadow:0 5px 20px #0002}.m97-item{background:#303234}}

/* Compact media sender: compression is part of the send action. */
.m111-send{gap:12px}.m111-label{font-size:14px;font-weight:600}.m111-segments{display:flex;gap:4px;padding:4px;background:var(--secondary-bg,#f1f1f3);border-radius:11px}.m111-segments button{flex:1;border:0;background:transparent;color:inherit;padding:10px 8px;border-radius:8px;font:inherit;cursor:pointer}.m111-segments button[aria-pressed="true"]{background:var(--primary-bg,#fff);box-shadow:0 1px 4px #0002;font-weight:600}.m111-help{display:block;font-size:12px;line-height:1.5;color:var(--secondary-text,#888)}.m111-advanced{border-top:1px solid #8883;padding-top:12px}.m111-advanced summary{cursor:pointer;font-size:14px}.m111-advanced>div{padding-top:12px;display:grid;gap:10px}.m111-advanced .a96-field{display:flex;align-items:center;justify-content:space-between;gap:12px}.m111-advanced .a96-field input[type=checkbox]{flex:none;width:36px;height:21px;appearance:none;border:0;border-radius:20px;background:#ccc;position:relative;cursor:pointer;padding:0}.m111-advanced .a96-field input[type=checkbox]:before{content:"";position:absolute;width:17px;height:17px;top:2px;left:2px;border-radius:50%;background:white;transition:transform .15s}.m111-advanced .a96-field input[type=checkbox]:checked{background:#333}.m111-advanced .a96-field input[type=checkbox]:checked:before{transform:translateX(15px)}.m111-advanced input:disabled{opacity:.4;cursor:default}@media(prefers-color-scheme:dark){.m111-segments{background:#292a2d}.m111-segments button[aria-pressed="true"]{background:#45464a}.m111-advanced .a96-field input[type=checkbox]:checked{background:#777}}

.v111-model-picker{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.v111-model-picker select{flex:1;min-width:0;max-width:100%;padding:8px;border:1px solid #8884;border-radius:8px;background:transparent;color:inherit}.v111-model-picker small{width:100%;font-size:12px;line-height:1.5;color:#888}.v111-model-picker [hidden]{display:none!important}

/* Media recognition choices keep their original light appearance on every OS theme. */
.m111-send .m111-segments {background:#f1f1f3!important;color:#222!important;color-scheme:light;}
.m111-send .m111-segments button {color:#222!important;background:transparent!important;}
.m111-send .m111-segments button[aria-pressed="true"] {background:#fff!important;color:#222!important;box-shadow:0 1px 4px #0002;}
