﻿:root{--note-blue:#567ace;--note-ink:#26324a}
.guestbook-app{overflow:hidden}
.guestbook-app .stage{display:block}
.guestbook-main{position:relative;min-width:0;height:100%;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto;padding:34px 48px 28px;background-color:#faf9f4;background-image:linear-gradient(rgba(86,122,206,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(86,122,206,.045) 1px,transparent 1px);background-size:32px 32px}
.guestbook-main:before{content:"YUJIN";position:absolute;right:-10px;top:4px;color:rgba(86,122,206,.035);font:700 clamp(90px,12vw,185px)/1 Georgia,"Noto Serif SC","Noto Serif CJK SC","Source Han Serif SC","Songti SC",serif;pointer-events:none}
.guestbook-head{position:relative;z-index:2;display:flex;align-items:flex-end;justify-content:space-between;padding:0 10px 18px;border-bottom:1px solid rgba(86,122,206,.12)}
.guestbook-head small{color:var(--note-blue);font-size:10px;font-weight:700;letter-spacing:.25em}.guestbook-head h1{margin:6px 0 3px;color:#172238;font:500 clamp(31px,3.5vw,50px)/1.12 Georgia,"Noto Serif SC","Noto Serif CJK SC","Source Han Serif SC","Songti SC",serif;letter-spacing:-.035em}.guestbook-head h1 span{color:var(--note-blue)}.guestbook-head p{margin:0;color:#8993a6;font-size:11px;letter-spacing:.04em}.note-total{text-align:right}.note-total strong{display:block;color:var(--note-blue);font:500 30px/1 Georgia,"Noto Serif SC","Noto Serif CJK SC","Source Han Serif SC","Songti SC",serif}.note-total span{color:#a3aabb;font-size:8px;letter-spacing:.2em}
.note-viewport{position:relative;min-height:0;overflow:hidden;margin:8px 0 10px;mask-image:linear-gradient(to bottom,transparent 0,#000 12%,#000 88%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 12%,#000 88%,transparent 100%)}
.note-track{position:relative;display:flex;flex-direction:column;gap:18px;padding:36px 1.5%}.note-track.is-rolling{animation:noteRoll var(--roll-duration,70s) linear infinite}.note-viewport:focus-within .note-track{animation-play-state:paused}@media(hover:hover) and (pointer:fine){.note-viewport:hover .note-track{animation-play-state:paused}}
.public-note{position:relative;flex:none;display:grid;grid-template-columns:minmax(112px,26%) minmax(0,1fr);align-items:center;column-gap:7%;width:min(760px,77%);min-height:clamp(190px,23vw,290px);height:auto;padding:28px 6% 28px 4.8%;border:1px solid rgba(123,154,211,.32);border-radius:24px;background:linear-gradient(128deg,rgba(249,252,255,.98),rgba(230,241,255,.95));box-shadow:inset 0 0 0 7px rgba(255,255,255,.32),0 14px 28px rgba(39,61,102,.10);transform:rotate(var(--tilt,0deg));isolation:isolate;overflow:hidden}.public-note:before{content:"";position:absolute;z-index:1;inset:16px;border:1px solid rgba(129,157,206,.25);border-radius:17px;pointer-events:none}.public-note:nth-child(3n+1){align-self:flex-start;margin-left:2%;--tilt:-.45deg}.public-note:nth-child(3n+2){align-self:flex-end;margin-right:3%;--tilt:.55deg}.public-note:nth-child(3n){align-self:center;--tilt:-.15deg}.note-theme-2{background:linear-gradient(128deg,rgba(247,252,255,.98),rgba(220,237,255,.96))}.note-theme-3{background:linear-gradient(128deg,rgba(249,252,255,.98),rgba(226,240,255,.96))}.note-stars{position:absolute;z-index:1;inset:0;background:url('/cdn/guestbook/note-stars-paws.webp') center/100% 100% no-repeat;opacity:.72;pointer-events:none}.note-photo{position:relative;z-index:3;width:100%;aspect-ratio:4/5;margin:0;padding:8px 8px 25px;border-radius:5px;background:#fff;box-shadow:0 6px 12px rgba(55,72,105,.18);transform:rotate(-.35deg);overflow:hidden}.note-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 35%;border-radius:2px}.note-photo figcaption{position:absolute;left:0;right:0;bottom:3px;text-align:center;color:#304a82;font:italic 700 clamp(12px,1.3vw,18px)/1.2 cursive}.note-tape{position:absolute;z-index:4;left:9%;top:9px;width:115px;height:18px;background:repeating-linear-gradient(90deg,rgba(132,144,163,.25) 0 5px,rgba(205,213,224,.4) 5px 8px);transform:rotate(5deg)}.note-corner{position:absolute;z-index:2;display:block;background-position:center;background-repeat:no-repeat;background-size:contain;pointer-events:none}.note-corner-tl{left:1.5%;top:2%;width:27%;height:42%;background-image:url('/cdn/guestbook/note-corner-tl.webp');background-position:left top;opacity:.62}.note-corner-br{right:1.5%;bottom:2%;width:23%;height:34%;background-image:url('/cdn/guestbook/note-corner-br.webp');background-position:right bottom;opacity:.55}.note-copy{position:relative;z-index:3;align-self:center;min-width:0;padding:26px 0;color:#5c6d8a;text-shadow:0 1px rgba(255,255,255,.7)}.note-copy blockquote{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:italic 500 clamp(13px,1.25vw,19px)/1.55 Georgia,"Noto Serif SC","Noto Serif CJK SC","Source Han Serif SC","Songti SC",serif}.note-paw{display:block;margin-bottom:7px;color:#86a2d0;font-size:12px}.note-meta{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:15px;color:#7890bd;font-size:9px;letter-spacing:.05em}.note-meta i{width:3px;height:3px;border-radius:50%;background:#7f9bd1}.note-meta strong{font-weight:600}.note-flower{position:absolute;z-index:2;right:-1%;top:3%;width:43%;height:88%;opacity:.34;background:no-repeat right center/contain url('/cdn/guestbook/note-flower.webp');filter:contrast(1.18) saturate(1.08);pointer-events:none}.note-sign{position:absolute;z-index:3;right:5%;bottom:18px;color:#7890bd;font:italic 8px Georgia,"Noto Serif SC","Noto Serif CJK SC","Source Han Serif SC","Songti SC",serif}.loading-note{position:absolute;inset:0;display:grid;place-items:center;color:#96a2b8;font:italic 15px Georgia,"Noto Serif SC","Noto Serif CJK SC","Source Han Serif SC","Songti SC",serif}.loading-note[hidden]{display:none}
.note-composer{position:relative;z-index:4;display:grid;grid-template-columns:auto minmax(260px,1fr) auto;align-items:center;gap:14px;padding:7px 11px 7px 16px;border:1px solid rgba(86,122,206,.18);border-radius:18px;background:rgba(255,255,255,.92);box-shadow:0 10px 30px rgba(41,57,89,.08);backdrop-filter:blur(12px)}.composer-copy{min-width:132px}.composer-copy span{display:block;color:#68738a;font-size:10px}.composer-copy b{color:#314f94}.composer-copy small{display:block;margin-top:2px;color:#a1a8b5;font-size:8.5px}.note-composer label{min-width:0}.note-composer textarea{display:block;width:100%;min-height:28px;max-height:72px;resize:none;padding:3px 4px;border:0;outline:0;background:transparent;color:var(--note-ink);font:13px/1.55 "Segoe UI","Microsoft YaHei","Noto Sans CJK SC","Source Han Sans SC",Roboto,sans-serif}.note-composer textarea::placeholder{color:#acb3c0}.composer-action{display:grid;justify-items:end;gap:3px}.composer-action>span{color:#a0a8b7;font-size:8.5px}.composer-action button{height:34px;padding:0 14px;border:0;border-radius:12px;background:var(--note-blue);color:#fff;font-size:11px;cursor:pointer;box-shadow:0 6px 14px rgba(86,122,206,.22)}.composer-action button:disabled{opacity:.55;cursor:wait}.composer-action i{font-style:normal;margin-left:7px}.form-status{position:absolute;left:16px;bottom:-17px;margin:0;color:#5975b6;font-size:9px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.guestbook-menu[hidden]{display:none}.guestbook-menu{position:fixed;inset:0;z-index:80}.guestbook-menu-mask{position:absolute;inset:56px 0 0;border:0;background:rgba(22,31,48,.18);backdrop-filter:blur(3px)}.guestbook-menu nav{position:absolute;right:12px;top:64px;width:210px;display:grid;padding:8px;border:1px solid rgba(86,122,206,.16);border-radius:18px;background:#fff;box-shadow:0 20px 48px rgba(31,43,70,.18)}.guestbook-menu a{padding:12px 14px;border-radius:11px;color:#59647a;text-decoration:none;font-size:13px}.guestbook-menu a:hover,.guestbook-menu a.active{color:#34539c;background:rgba(86,122,206,.09)}
@keyframes noteRoll{from{transform:translateY(0)}to{transform:translateY(calc(-50% - 9px))}}
@media(max-width:1080px){.guestbook-main{padding:28px 30px 24px}.public-note{width:min(700px,88%)}}
@media(max-width:820px){.guestbook-app{grid-template-rows:56px minmax(0,1fr)}.guestbook-main{height:100%;min-height:0;padding:16px 13px calc(14px + env(safe-area-inset-bottom));grid-template-rows:auto minmax(0,1fr) auto}.guestbook-head{align-items:center;padding:0 5px 10px}.guestbook-head small{font-size:8px}.guestbook-head h1{font-size:26px;margin-top:4px}.guestbook-head p{font-size:9px}.note-total strong{font-size:23px}.note-viewport{margin:4px 0}.note-track{gap:12px;padding:24px 0}.public-note{width:98%;}.public-note:nth-child(3n+1){margin-left:0}.public-note:nth-child(3n+2){margin-right:0}.note-copy{left:32%;right:5%;top:20%;bottom:13%}.note-copy blockquote{font-size:clamp(10px,3.1vw,13px);line-height:1.35;-webkit-line-clamp:3}.note-meta{margin-top:5px;font-size:7px;gap:5px}.note-composer{grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:8px 8px 8px 13px;border-radius:18px}.composer-copy{grid-column:1/-1;display:flex;justify-content:space-between;min-width:0}.composer-copy small{margin:0}.note-composer textarea{min-height:44px;max-height:74px;padding:3px 0;font-size:16px}.composer-action>span{display:none}.composer-action button{width:46px;height:46px;padding:0;font-size:0;border-radius:15px}.composer-action button i{margin:0;font-size:18px}.form-status{bottom:-15px;left:12px}.guestbook-main:before{font-size:70px}}
@media(prefers-reduced-motion:reduce){.note-viewport{overflow-y:auto;mask-image:none;-webkit-mask-image:none}.note-track.is-rolling{animation:none}.note-track .public-note:nth-child(n+2){display:block}}
@media(max-width:820px){.public-note{width:92%}}
@media(max-width:820px){.public-note{grid-template-columns:minmax(72px,28%) minmax(0,1fr);column-gap:6%;min-height:132px;padding:18px 5% 18px 4%;border-radius:16px}.public-note:before{inset:9px;border-radius:12px}.note-photo{padding:5px 5px 16px}.note-photo figcaption{bottom:1px;font-size:9px}.note-tape{left:8%;top:5px;width:66px;height:10px}.note-copy{position:relative;left:auto;right:auto;top:auto;bottom:auto;padding:14px 0}.note-copy blockquote{font-size:clamp(10px,3.1vw,13px);line-height:1.4;display:block;overflow:visible;-webkit-line-clamp:unset}.note-meta{margin-top:7px;font-size:6.5px;gap:4px}.note-paw{margin-bottom:3px;font-size:8px}.note-flower{right:2%;top:9%;width:34%;height:72%}.note-sign{right:4%;bottom:10px;font-size:5.5px}}

/* Three independent message streams. */
.guestbook-main{grid-template-rows:minmax(0,1fr) auto;padding-top:22px}.guestbook-head{display:none}.note-viewport{margin:0 0 12px}.note-track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;height:100%;padding:0 1%}.note-track.is-rolling{animation:none}.note-column{min-width:0;height:100%;overflow:hidden}.note-column-track{display:flex;flex-direction:column;gap:22px;padding:50px 0 70px;will-change:transform}.note-column-track.is-rolling{animation:noteRoll var(--roll-duration,70s) linear infinite;animation-delay:calc(var(--column) * -13s)}@media(hover:hover) and (pointer:fine){.note-column:hover .note-column-track{animation-play-state:paused}}.note-column:nth-child(2) .note-column-track{padding-top:150px}.note-column:nth-child(3) .note-column-track{padding-top:92px}
.note-column .public-note{align-self:stretch;width:100%;min-height:170px;margin:0;padding:20px 5% 20px 4%;grid-template-columns:minmax(72px,31%) minmax(0,1fr);column-gap:6%;border-radius:18px;transform:rotate(var(--tilt,0deg))}.note-column .public-note:before{inset:10px;border-radius:13px}.note-column .note-photo{padding:5px 5px 17px}.note-column .note-photo figcaption{bottom:1px;font-size:10px}.note-column .note-tape{left:8%;top:6px;width:72px;height:11px}.note-column .note-copy{position:relative;left:auto;right:auto;top:auto;bottom:auto;padding:16px 0}.note-column .note-copy blockquote{display:block;overflow:visible;-webkit-line-clamp:unset;font-size:clamp(10px,.9vw,13px);line-height:1.45}.note-column .note-meta{gap:4px;margin-top:8px;font-size:6.5px}.note-column .note-paw{margin-bottom:4px;font-size:8px}.note-column .note-flower{right:2%;top:8%;width:38%;height:72%}.note-column .note-sign{right:4%;bottom:10px;font-size:5.5px}
.dog-sprite{position:relative;display:block;aspect-ratio:1;overflow:visible}.dog-sprite img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain}
.note-dog{position:absolute;z-index:7;right:11px;top:9px;width:clamp(42px,4.5vw,62px);filter:drop-shadow(0 5px 7px rgba(43,61,95,.16));pointer-events:none}
@media(max-width:920px){.note-track{gap:14px}.note-column-track{gap:16px}.note-column .public-note{grid-template-columns:1fr;min-height:190px}.note-column .note-photo{display:none}.note-column .note-copy{padding:22px 10px}}
@media(max-width:820px){.guestbook-main{padding-top:10px}.note-track{display:block;padding:0 4%}.note-column{display:block}.note-column:nth-child(1) .note-column-track{padding-top:32px}.note-column .public-note{grid-template-columns:minmax(72px,28%) minmax(0,1fr);min-height:132px}.note-column .note-photo{display:block}.note-column .note-copy{padding:14px 0}.note-dog{right:7px;top:6px;width:43px}}

.dog-picker[hidden]{display:none}.dog-picker{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:20px}.dog-picker-mask{position:absolute;inset:0;border:0;background:rgba(25,34,52,.32);backdrop-filter:blur(7px)}.dog-picker-panel{position:relative;width:min(590px,100%);max-height:94vh;overflow:auto;padding:25px 28px 22px;border:1px solid rgba(86,122,206,.2);border-radius:26px;background:rgba(252,251,247,.98);box-shadow:0 28px 80px rgba(30,43,69,.24);text-align:center}.dog-picker-panel>small{color:#567ace;font-size:9px;font-weight:700;letter-spacing:.24em}.dog-picker-panel h2{margin:7px 0 4px;color:#26324a;font:500 25px/1.25 Georgia,"Noto Serif SC","Noto Serif CJK SC","Source Han Serif SC","Songti SC",serif}.dog-picker-panel>p{margin:0 0 16px;color:#929bac;font-size:11px}.dog-picker-close{position:absolute;right:13px;top:11px;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#7d8799;font-size:24px;cursor:pointer}.dog-picker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.dog-picker-grid>button{position:relative;display:grid;place-items:center;padding:6px;border:1px solid rgba(86,122,206,.15);border-radius:18px;background:#fff;color:#68748b;cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}.dog-picker-grid>button:hover,.dog-picker-grid>button:focus-visible{outline:0;border-color:#8ca4dc;background:#f7f9ff;transform:translateY(-2px)}.dog-picker-grid>button.is-selected{border-color:#567ace;background:#f3f6ff;box-shadow:0 0 0 3px rgba(86,122,206,.18),0 10px 24px rgba(86,122,206,.13)}.dog-picker-grid .dog-sprite{width:min(92px,100%)}.dog-picker-grid em{position:absolute;z-index:2;left:8px;top:7px;display:grid;place-items:center;min-width:28px;height:20px;padding:0 5px;border-radius:8px;background:rgba(255,255,255,.9);box-shadow:0 2px 9px rgba(35,48,74,.08);color:#567ace;font:700 9px/1 system-ui,sans-serif;letter-spacing:.08em}.dog-picker-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:17px;text-align:left}.dog-picker-actions>span{color:#8993a6;font-size:11px}.dog-picker-send{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-width:126px;height:44px;padding:0 18px;border:0;border-radius:15px;background:#567ace;color:#fff;font-weight:600;box-shadow:0 9px 22px rgba(86,122,206,.25);cursor:pointer;transform:scale(1);transform-origin:center;transition:opacity .18s ease,filter .18s ease}.dog-picker-send i{font-style:normal}.dog-picker-send:disabled{opacity:.42;cursor:not-allowed;box-shadow:none}.dog-picker-send:active:not(:disabled){transform:scale(.96)}.dog-picker-send.is-rebounding{opacity:1;box-shadow:0 9px 22px rgba(86,122,206,.25);animation:dog-send-spring .36s cubic-bezier(.2,.8,.25,1)}.dog-picker-open{overflow:hidden}@keyframes dog-send-spring{0%{transform:scale(.96)}45%{transform:scale(1.055)}72%{transform:scale(.988)}100%{transform:scale(1)}}
@media(max-width:520px){.dog-picker{padding:10px}.dog-picker-panel{padding:23px 12px 14px;border-radius:22px}.dog-picker-panel h2{font-size:21px}.dog-picker-panel>p{margin-bottom:12px}.dog-picker-grid{gap:6px}.dog-picker-grid>button{padding:4px;border-radius:13px}.dog-picker-grid .dog-sprite{width:min(78px,100%)}.dog-picker-grid em{left:5px;top:5px;min-width:24px;height:18px;font-size:8px}.dog-picker-actions{margin-top:13px}.dog-picker-send{min-width:116px;height:42px}}
@media(prefers-reduced-motion:reduce){.dog-picker-send.is-rebounding{opacity:1;box-shadow:0 9px 22px rgba(86,122,206,.25);animation:none}}

/* Keep the supplied lily visible behind the copy on both wide and narrow cards. */
.public-note .note-copy,.note-column .note-copy{padding-right:18%}
.public-note .note-flower,.note-column .note-flower{z-index:4;right:1%;top:6%;width:34%;height:84%;opacity:.76;background-position:right center;background-size:contain;filter:brightness(.48) contrast(1.9) saturate(1.15)}
.note-copy blockquote,.note-copy .note-meta{position:relative;z-index:1}
@media(max-width:820px){.public-note .note-copy,.note-column .note-copy{padding-right:12%}.public-note .note-flower,.note-column .note-flower{right:0;width:31%;opacity:.62}}

/* Weekly note theme: shared transparent decorations + per-note portrait/palette. */
.public-note{border-color:color-mix(in srgb,var(--note-accent,#7890bd) 36%,transparent);background:linear-gradient(128deg,color-mix(in srgb,var(--note-bg,#eef5ff) 72%,#fff),var(--note-bg,#e6f0ff));box-shadow:inset 0 0 0 7px color-mix(in srgb,#fff 38%,transparent),0 14px 28px color-mix(in srgb,var(--note-ink,#26324a) 13%,transparent)}
.public-note:before{border-color:color-mix(in srgb,var(--note-accent,#7890bd) 32%,transparent)}
.public-note .note-copy{color:var(--note-ink,#5c6d8a)}
.public-note .note-paw,.public-note .note-meta,.public-note .note-sign,.public-note .note-photo figcaption{color:var(--note-accent,#7890bd)}
.public-note .note-meta i{background:var(--note-accent,#7890bd)}
.note-theme-2 .note-stars{transform:scaleX(-1);opacity:.62}
.note-theme-2 .note-corner-tl{opacity:.42}
.note-theme-3 .note-stars{transform:scaleY(-1);opacity:.66}
.note-theme-3 .note-corner-br{opacity:.38}
.note-design-copy{position:relative;z-index:2;margin-top:12px;padding-top:9px;border-top:1px solid color-mix(in srgb,var(--note-accent,#7890bd) 24%,transparent);color:var(--note-ink,#5c6d8a)}
.note-design-copy span{display:block;overflow-wrap:anywhere}
.note-design-copy span[lang="en"]{font:italic 500 clamp(8px,.72vw,10px)/1.35 Georgia,"Noto Serif SC","Noto Serif CJK SC","Source Han Serif SC","Songti SC",serif;opacity:.8}
.note-design-copy span[lang="zh-CN"]{margin-top:3px;font-size:clamp(7px,.62vw,9px);line-height:1.35;opacity:.66}
.note-column .public-note{min-height:210px}
.note-column .note-copy blockquote{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:4}
.note-column .note-meta{margin-top:7px}
@media(max-width:920px){.note-column .public-note{min-height:225px}.note-design-copy span[lang="en"]{font-size:9px}.note-design-copy span[lang="zh-CN"]{font-size:8px}}
@media(max-width:820px){.note-column .public-note{min-height:170px}.note-design-copy{margin-top:7px;padding-top:6px}.note-design-copy span[lang="en"]{font-size:7px}.note-design-copy span[lang="zh-CN"]{font-size:6.5px}.note-column .note-copy blockquote{max-height:calc(3 * 1.4em);line-height:1.4;-webkit-line-clamp:3}}

/* Uniform card size + clickable cards. */
.note-column .public-note{height:260px;min-height:0;overflow:hidden;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.note-column .public-note:hover,.note-column .public-note:focus-visible{transform:rotate(var(--tilt,0deg)) translateY(-3px);box-shadow:inset 0 0 0 7px rgba(255,255,255,.32),0 20px 38px rgba(39,61,102,.16);outline:0}
@media(max-width:920px){.note-column .public-note{height:236px}}
@media(max-width:820px){.note-column .public-note{height:190px}}
body.note-modal-open .note-column-track{animation-play-state:paused}

/* Note detail modal. */
.note-modal[hidden]{display:none}
.note-modal{position:fixed;inset:0;z-index:110;display:grid;place-items:center;padding:22px}
.note-modal-mask{position:absolute;inset:0;border:0;background:rgba(25,34,52,.38);backdrop-filter:blur(8px)}
.note-modal-panel{position:relative;width:min(720px,100%);max-height:92vh;overflow:auto;padding:26px 26px 20px;border:1px solid rgba(86,122,206,.22);border-radius:26px;background:rgba(252,251,247,.97);box-shadow:0 30px 90px rgba(30,43,69,.28)}
.note-modal-close{position:absolute;z-index:5;right:14px;top:12px;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#7d8799;font-size:24px;cursor:pointer}
.note-modal-close:hover{color:#314f94}
.note-modal-body .public-note{width:100%;min-height:0;height:auto;grid-template-columns:minmax(120px,30%) minmax(0,1fr);cursor:default;transform:none}
.note-modal-body .public-note:hover{transform:none}
.note-modal-body .note-copy blockquote{-webkit-line-clamp:unset;display:block;overflow-y:auto;overflow-x:hidden;max-height:min(45vh,440px);max-height:min(45dvh,440px);overscroll-behavior:contain;scrollbar-width:thin;padding-right:5px;font-size:clamp(13px,1.15vw,17px)}
.note-modal-body .note-dog{width:clamp(48px,5vw,66px)}
.note-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:18px}
.note-actions[hidden]{display:none}
.note-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:42px;padding:0 10px;border:1px solid rgba(86,122,206,.2);border-radius:14px;background:#fff;color:#5c6d8a;font-size:12px;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}
.note-actions>button:hover{border-color:#8ca4dc;background:#f7f9ff;transform:translateY(-1px)}
.note-actions>button i{font-style:normal;font-size:15px}
.note-actions>button b{font-weight:600;font-variant-numeric:tabular-nums}
.note-actions>button.is-active{border-color:#567ace;background:#eef3ff;color:#314f94}
.note-actions>button.is-active i{color:#e2557b}
.note-actions>button:disabled{opacity:.55;cursor:not-allowed;transform:none}
.note-owner-actions{margin-top:12px;text-align:right}
.note-owner-actions>button{min-height:44px;padding:0 12px;border:1px solid #d6a3b0;border-radius:10px;background:transparent;color:#9e3653;font:inherit;cursor:pointer}
.note-owner-actions>button:disabled{opacity:.55;cursor:wait}
.note-owner-actions>p{margin:6px 0 0;color:#9e3653;font-size:12px}
.note-owner-actions>p:empty{margin:0}
.note-comments{margin-top:14px;border-top:1px dashed rgba(86,122,206,.25);padding-top:14px}
.comment-form{display:flex;gap:9px}
.comment-form input{flex:1;min-width:0;height:40px;padding:0 13px;border:1px solid rgba(86,122,206,.22);border-radius:12px;background:#fff;color:var(--note-ink);font-size:13px;outline:0}
.comment-form input:focus{border-color:#567ace}
.comment-form button{height:40px;padding:0 16px;border:0;border-radius:12px;background:var(--note-blue);color:#fff;font-size:12px;cursor:pointer}
.comment-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:9px;max-height:220px;overflow:auto}
.comment-list li{padding:9px 12px;border-radius:12px;background:rgba(86,122,206,.06)}
.comment-list li strong{color:#314f94;font-size:11px}
.comment-list li p{margin:3px 0;color:#43506b;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.comment-list li time{color:#9aa4b6;font-size:9px}
.comment-list li.comment-empty{background:transparent;color:#9aa4b6;font-size:11px;text-align:center}
@media(max-width:560px){.note-modal{padding:12px}.note-modal-panel{padding:20px 14px 14px;border-radius:20px}.note-actions{grid-template-columns:repeat(2,1fr)}.note-modal-body .public-note{grid-template-columns:1fr}.note-modal-body .note-photo{display:none}}

/* Delivered template details: exact gradients, ink palette and A/B frames. */
.public-note{border-color:color-mix(in srgb,var(--note-line,#aeb9c9) 72%,transparent);background:linear-gradient(145deg,var(--note-g0,#fafbfc),var(--note-g1,#e2e8f0));box-shadow:inset 0 0 0 1px rgba(255,255,255,.62),inset 0 0 0 7px rgba(255,255,255,.2),0 14px 28px color-mix(in srgb,var(--note-deep,#2a2f39) 16%,transparent)}
.public-note:before{border-color:color-mix(in srgb,var(--note-line,#aeb9c9) 72%,transparent)}
.public-note .note-copy{color:var(--note-ink,#4c5462)}
.public-note .note-copy blockquote{color:var(--note-deep,#2a2f39)}
.note-stars{background:none;background-color:var(--note-accent,#92a5c2);opacity:.72;-webkit-mask:url('/cdn/guestbook/note-stars-paws.webp') center/100% 100% no-repeat;mask:url('/cdn/guestbook/note-stars-paws.webp') center/100% 100% no-repeat}
.note-theme-2 .note-stars,.note-theme-3 .note-stars{transform:none;opacity:.72}
.note-corner{background:none;background-color:var(--note-ink,#4c5462)}
.note-corner-tl{-webkit-mask:url('/cdn/guestbook/note-corner-tl.webp') left top/contain no-repeat;mask:url('/cdn/guestbook/note-corner-tl.webp') left top/contain no-repeat;opacity:.52}
.note-corner-br{-webkit-mask:url('/cdn/guestbook/note-corner-br.webp') right bottom/contain no-repeat;mask:url('/cdn/guestbook/note-corner-br.webp') right bottom/contain no-repeat;opacity:.42}
.note-flower{background:none;background-color:var(--note-ink,#4c5462);filter:none;opacity:.33;-webkit-mask:url('/cdn/guestbook/note-flower.webp') right center/contain no-repeat;mask:url('/cdn/guestbook/note-flower.webp') right center/contain no-repeat}
.public-note .note-flower,.note-column .note-flower{filter:none;opacity:.33}
.note-tape{background-color:color-mix(in srgb,var(--note-tape,#ecf0f6) 82%,transparent);background-image:repeating-linear-gradient(90deg,transparent 0 7px,color-mix(in srgb,var(--note-accent,#92a5c2) 22%,transparent) 7px 11px);transform:rotate(-6deg);border-radius:2px}
.note-photo{border:1px solid color-mix(in srgb,var(--note-line,#aeb9c9) 62%,transparent);box-shadow:0 6px 12px color-mix(in srgb,var(--note-deep,#2a2f39) 22%,transparent);transform:none}
.public-note .note-photo figcaption{color:var(--note-deep,#2a2f39);font-family:"Segoe Script","Segoe Print",cursive}
.public-note .note-paw,.public-note .note-meta,.public-note .note-sign{color:var(--note-mid,#747e8e)}
.public-note .note-meta i{background:var(--note-accent,#92a5c2)}
.note-design-copy{color:var(--note-mid,#747e8e);border-top:0;padding-top:7px}
.note-design-copy:after{content:"";display:block;width:42%;height:1px;margin-top:6px;background:color-mix(in srgb,var(--note-line,#aeb9c9) 72%,transparent)}
.note-meta{width:fit-content;max-width:100%;padding:4px 8px;border:1px solid color-mix(in srgb,var(--note-line,#aeb9c9) 75%,transparent);border-radius:999px;background:color-mix(in srgb,var(--note-accent,#92a5c2) 10%,transparent)}
.note-sign{color:var(--note-mid,#747e8e)}
.note-frame-b .note-corner{display:none}
.note-frame-b:after{content:"";position:absolute;z-index:2;inset:8px;pointer-events:none;opacity:.38;background:linear-gradient(var(--note-ink),var(--note-ink)) left top/24px 1px no-repeat,linear-gradient(var(--note-ink),var(--note-ink)) left top/1px 24px no-repeat,linear-gradient(var(--note-ink),var(--note-ink)) right top/24px 1px no-repeat,linear-gradient(var(--note-ink),var(--note-ink)) right top/1px 24px no-repeat,linear-gradient(var(--note-ink),var(--note-ink)) left bottom/24px 1px no-repeat,linear-gradient(var(--note-ink),var(--note-ink)) left bottom/1px 24px no-repeat,linear-gradient(var(--note-ink),var(--note-ink)) right bottom/24px 1px no-repeat,linear-gradient(var(--note-ink),var(--note-ink)) right bottom/1px 24px no-repeat}
@media(max-width:820px){.note-meta{padding:3px 6px}.note-frame-b:after{inset:6px}.note-design-copy:after{margin-top:4px}}

/* 安卓壳右下角原生浮层（触控热区 48dp、视觉 34dp）：给「贴上便签」发送键让出右侧 100px，空闲态净距到 52dp */
@media(max-width:820px){.in-shell .note-composer{padding-right:100px}}

/* 三列独立手动滚动：隐藏滚动条，滚轮/触摸/键盘暂停自动轮播，5 秒后恢复 */
.note-column{overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;touch-action:pan-y;scroll-behavior:auto;scrollbar-width:none;-ms-overflow-style:none}
.note-column:focus-visible{outline:0}
.note-column::-webkit-scrollbar{display:none;width:0;height:0}
.note-column.is-manual .note-column-track{animation-play-state:paused}

/* 正在滚动时，最接近视口中心的那张成为唯一主角 */
.note-column .public-note{transform-origin:center;transition:transform .34s cubic-bezier(.2,.78,.22,1),filter .34s ease,opacity .34s ease,box-shadow .34s ease}
.note-column.is-spotlighting .public-note{opacity:.58;filter:brightness(.68) saturate(.68);box-shadow:inset 0 0 0 1px rgba(255,255,255,.38),0 8px 18px rgba(29,38,57,.10)}
.note-column.is-spotlighting .public-note.is-before-spotlight{transform-origin:center bottom;transform:scale(.88) rotate(2.7deg) translateX(2.5%)}
.note-column.is-spotlighting .public-note.is-after-spotlight{transform-origin:center top;transform:scale(.88) rotate(-2.7deg) translateX(-2.5%)}
.note-column.is-spotlighting .public-note.is-spotlight,.note-column.is-spotlighting .public-note.is-spotlight:hover,.note-column.is-spotlighting .public-note.is-spotlight:focus-visible{z-index:8;opacity:1;filter:brightness(1.04) saturate(1.06);transform:scale(1.045) rotate(0deg);box-shadow:inset 0 0 0 1px rgba(255,255,255,.78),inset 0 0 0 7px rgba(255,255,255,.22),0 24px 48px rgba(34,46,72,.22)}
@media(max-width:820px){.note-column.is-spotlighting .public-note.is-before-spotlight{transform:scale(.9) rotate(2.2deg)}.note-column.is-spotlighting .public-note.is-after-spotlight{transform:scale(.9) rotate(-2.2deg)}.note-column.is-spotlighting .public-note.is-spotlight{transform:scale(1.025) rotate(0deg)}}
@media(prefers-reduced-motion:reduce){.note-column .public-note{transition:opacity .15s ease,filter .15s ease}.note-column.is-spotlighting .public-note.is-before-spotlight,.note-column.is-spotlighting .public-note.is-after-spotlight,.note-column.is-spotlighting .public-note.is-spotlight{transform:none}}

/* 手写拉丁、Unicode 花体字与韩文留言的字体渲染 */
.note-message{font-family:"Segoe Print","Segoe Script","STKaiti","KaiTi","Noto Serif SC",Georgia,serif;font-feature-settings:"liga" 1,"dlig" 1;font-variant-ligatures:common-ligatures discretionary-ligatures}
.note-message.is-script{font-family:"Cambria Math","Segoe Script","Segoe Print","STKaiti","KaiTi",cursive;font-style:normal}
.note-message.is-korean{font-family:"Nanum Pen Script","Nanum Myeongjo","Noto Serif KR","Malgun Gothic","Apple SD Gothic Neo","Segoe Print",serif;font-style:normal;word-break:keep-all;line-break:strict}
.note-composer textarea,.comment-form input,.comment-list li p{font-family:"Segoe Print","Segoe UI","Nanum Gothic","Noto Sans KR","Malgun Gothic","Apple SD Gothic Neo","Microsoft YaHei",sans-serif}

/* 便签底色选择：沿用站内既有色值（奶油/粉/蓝/绿/黄油） */
.composer-input{min-width:0;display:flex;flex-direction:column;gap:5px;padding:3px 5px;border-radius:10px;transition:background .2s}
.composer-input[data-note-color="cream"]{background:rgba(244,241,232,.6)}
.composer-input[data-note-color="rose"]{background:rgba(251,238,241,.7)}
.composer-input[data-note-color="blue"]{background:rgba(220,229,248,.6)}
.composer-input[data-note-color="mint"]{background:rgba(238,245,232,.7)}
.composer-input[data-note-color="butter"]{background:rgba(253,246,216,.7)}
.note-color-row{display:flex;align-items:center;gap:8px;padding:1px 1px 0}
.note-color{width:18px;height:18px;padding:0;border:1px solid rgba(49,66,94,.2);border-radius:50%;cursor:pointer;background:var(--swatch,#f4f1e8);box-shadow:inset 0 0 0 2px rgba(255,255,255,.65);transition:transform .16s,box-shadow .16s;flex:none}
.note-color[data-note-color="cream"]{--swatch:#f4f1e8}
.note-color[data-note-color="rose"]{--swatch:#fbeef1}
.note-color[data-note-color="blue"]{--swatch:#dce5f8}
.note-color[data-note-color="mint"]{--swatch:#eef5e8}
.note-color[data-note-color="butter"]{--swatch:#fdf6d8}
.note-color.is-selected{transform:scale(1.16);box-shadow:0 0 0 2px #fff,0 0 0 3.5px var(--note-blue)}
.note-color:focus-visible{outline:2px solid var(--support,#567ace);outline-offset:2px}
@media(max-width:820px){.note-color-row{gap:9px;padding:2px 0 0}.note-color{width:22px;height:22px}.composer-input{padding:3px 2px}}
/* 我的留言：只看我的开关 + 便签上的归属标记 */
.note-mine-toggle{margin-top:4px;padding:2px 9px;border:1px solid rgba(86,122,206,.28);border-radius:999px;background:rgba(255,255,255,.7);color:#4a63a1;font-size:8.5px;line-height:1.6;cursor:pointer;transition:background .16s,color .16s,border-color .16s}
.note-mine-toggle[aria-pressed="true"]{background:var(--note-blue);border-color:var(--note-blue);color:#fff}
.note-mine-toggle:focus-visible{outline:2px solid var(--support,#567ace);outline-offset:2px}
.public-note .note-meta .note-mine{padding:1px 6px;border-radius:999px;background:var(--note-accent,#7890bd);color:#fff;font-size:7px;letter-spacing:.06em}
.public-note.is-mine{border-color:color-mix(in srgb,var(--note-blue) 55%,transparent)}
.public-note.is-target{animation:noteTarget 1.6s ease}
@keyframes noteTarget{0%,100%{box-shadow:0 0 0 0 rgba(86,122,206,0)}30%{box-shadow:0 0 0 4px rgba(86,122,206,.5)}}
@media(max-width:820px){.note-mine-toggle{font-size:8px}}
/* ── 单条留言版式：名字左上 / 日期左下 / 正文与署名右下 ── */
.public-note .note-copy,.note-column .note-copy{display:grid;grid-template-columns:42% minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"head head" ". body" "date body";gap:6px 10px;padding:16px 14px}
.public-note .note-head{grid-area:head;display:flex;align-items:center;gap:6px;min-width:0}
.public-note .note-name{flex:0 1 auto;min-width:0;max-width:100%;font-size:12.5px;font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.public-note .note-mine{flex:none;padding:1px 6px;border-radius:999px;background:var(--note-accent,#7890bd);color:#fff;font-size:7px;letter-spacing:.06em}
.public-note .note-stamp{flex:0 1 auto;min-width:0;margin-left:auto;font-size:8px;letter-spacing:.08em;color:var(--note-accent,#92a5c2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.public-note .note-date{grid-area:date;align-self:end;justify-self:start;font-size:9px;line-height:1.2;color:var(--note-accent,#7890bd);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.public-note .note-body{grid-area:body;align-self:end;justify-self:stretch;display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:0;text-align:right}
.public-note .note-body blockquote{width:100%;margin:0;text-align:right;white-space:pre-wrap;overflow-wrap:anywhere}
.public-note .note-body .note-design-copy{align-self:flex-end;max-width:100%}
.public-note .note-body .note-sign{align-self:flex-end;font-size:8px;line-height:1.3;letter-spacing:.04em;color:var(--note-mid,#747e8e);text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.public-note .note-paw{position:absolute;top:14px;right:12px;pointer-events:none}
@media(max-width:820px){.public-note .note-copy,.note-column .note-copy{padding:14px 10px;grid-template-columns:40% minmax(0,1fr);gap:5px 8px}.public-note .note-name{font-size:11.5px}.public-note .note-date{font-size:8.5px}.public-note .note-body blockquote{font-size:11px;line-height:1.55}.public-note .note-body .note-sign{font-size:7px}}
@media(max-width:560px){.note-modal-body .public-note .note-copy{grid-template-columns:38% minmax(0,1fr)}}
/* 署名：斜体衬线、比正文小、灰紫、右对齐贴右下（All For Yujin · Team Popo） */
.public-note .note-copy,.note-column .note-copy{grid-template-columns:minmax(0,36%) minmax(0,1fr)}
.public-note .note-body{width:100%;justify-self:stretch}
.public-note .note-body .note-sign{font-family:"Georgia","Times New Roman","Noto Serif SC",serif;font-style:italic;font-weight:400;font-size:9px;line-height:1.35;letter-spacing:.06em;color:#686d85;text-align:right;margin-top:6px;align-self:flex-end;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:820px){.public-note .note-copy,.note-column .note-copy{grid-template-columns:minmax(0,34%) minmax(0,1fr)}.public-note .note-body .note-sign{font-size:8px;letter-spacing:.05em;margin-top:5px}}
/* 署名独占最底一行（跨两列、右对齐），窄卡片也不会被挤到正文中间 */
.public-note .note-copy,.note-column .note-copy{grid-template-rows:auto minmax(0,1fr) auto auto;grid-template-areas:"head head" ". body" "date body" "sign sign"}
.public-note .note-copy .note-sign{position:static;grid-area:sign;justify-self:end;align-self:end;margin-top:6px;font-family:"Georgia","Times New Roman","Noto Serif SC",serif;font-style:italic;font-weight:400;font-size:9px;line-height:1.35;letter-spacing:.06em;color:#686d85;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
@media(max-width:820px){.public-note .note-copy .note-sign{font-size:8px;letter-spacing:.05em;margin-top:5px}}
/* ── meta 行不再顶破卡片：名字与末项都可收缩省略，永不换行 ── */
.public-note .note-head,.note-column .note-head{flex-wrap:nowrap;max-width:100%;overflow:hidden;white-space:nowrap}
.public-note .note-head .note-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.public-note .note-head .note-mine{flex:none;white-space:nowrap}
.public-note .note-head .note-stamp{flex:0 1 auto;min-width:0;margin-left:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:820px){.public-note .note-head,.note-column .note-head{gap:4px}}

/* ── 单条留言分享菜单：发图片卡片 / 复制链接 ── */
.note-actions{position:relative}
.note-share-menu{position:absolute;right:0;bottom:calc(100% + 8px);z-index:20;display:grid;gap:6px;min-width:148px;padding:8px;border:1px solid rgba(86,122,206,.22);border-radius:14px;background:#fff;box-shadow:0 18px 36px rgba(37,52,78,.16)}
.note-share-menu[hidden]{display:none}
.note-share-menu button{height:38px;padding:0 12px;border:0;border-radius:10px;background:#f4f7ff;color:#314f94;font-size:12px;text-align:left;cursor:pointer}
.note-share-menu button:hover{background:#e8efff}
@media(max-width:560px){.note-share-menu{right:auto;left:0;min-width:calc(50% - 6px)}}

/* ── 移动端点击残留:系统 tap-highlight 会在两键之间整行刷一块蓝,这里从根上关掉 ── */
html{-webkit-tap-highlight-color:transparent}
.note-actions,.note-actions *,.note-modal-close,.note-modal-panel button{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;user-select:none}
.note-actions ::selection,.note-actions::selection{background:transparent}
@media(hover:none){.public-note:focus,.note-actions>button:focus,.note-modal-close:focus{outline:0}}

/* ── 合并批次（change.zip）:4/5 行截断 + 三列定高后,把名字/日期/正文/署名四区锁在卡片内 ──
   定高后 .note-copy 会被内容撑高并居中溢出,署名被裁到卡外;这里让 copy 撑满卡高,
   正文与装饰行在中间行内消化,日期与署名各自固定在底行左右。 */
.public-note .note-copy,.note-column .note-copy{align-self:stretch;min-height:0;max-height:100%;overflow:hidden;padding:10px 14px;gap:4px 10px}
/* 正文行数按定高卡片实测反推:桌面 4 行、手机 3 行;body 采用「可伸缩正文 + 固定装饰行」,
   装饰行永不被裁,正文超出部分由 line-clamp 省略号收起。 */
.public-note .note-body,.note-column .note-body{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:4px;min-height:0;height:100%;align-self:stretch;overflow:hidden}
.public-note .note-body blockquote,.note-column .note-body blockquote{min-height:0;align-self:start}
.public-note .note-body .note-design-copy,.note-column .note-body .note-design-copy{align-self:end;min-height:0}
.public-note .note-design-copy,.note-column .note-design-copy{margin-top:8px}
.public-note .note-design-copy:after,.note-column .note-design-copy:after{margin-top:4px}
.public-note .note-design-copy span[lang="zh-CN"],.note-column .note-design-copy span[lang="zh-CN"]{margin-top:2px}
@media(max-width:820px){
  .public-note .note-copy,.note-column .note-copy{padding:4px 10px;gap:4px 8px}
  .public-note .note-body,.note-column .note-body{gap:3px}
  .public-note .note-design-copy,.note-column .note-design-copy{margin-top:4px;padding-top:4px}
  .public-note .note-design-copy:after,.note-column .note-design-copy:after{margin-top:3px}
  .public-note .note-design-copy span[lang="en"],.note-column .note-design-copy span[lang="en"]{line-height:1.3}
  .public-note .note-design-copy span[lang="zh-CN"],.note-column .note-design-copy span[lang="zh-CN"]{line-height:1.3}
  .note-column .public-note{padding-top:16px;padding-bottom:16px}
  /* 行高与 max-height 必须同源,否则 3 行会被 46.2px 的 max-height 切掉半行;限定 .note-column,详情弹窗仍全文可滚 */
  .note-column .note-body blockquote{font-size:11px;line-height:1.4;max-height:calc(3 * 1.4em);-webkit-line-clamp:3}
}

/* ══ 便签卡正式版式（参考图 B，默认启用）：品牌行 / 照片+名字+标签 / 标题+英文+分隔+正文+底行 / 底栏 ══ */
.ref-layout .public-note{display:grid;grid-template-columns:33% minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"brand brand" "figure copy" "footer footer";gap:9px 14px;height:auto;min-height:330px;padding:11px 15px 9px;align-items:start;overflow:hidden}
.ref-layout .note-ref-brand{grid-area:brand;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid color-mix(in srgb,var(--note-line,#aeb9c9) 55%,transparent);padding-bottom:5px;font-size:8px;letter-spacing:.16em;text-transform:uppercase;color:color-mix(in srgb,var(--note-ink,#4c5462) 62%,transparent);white-space:nowrap}
.ref-layout .note-ref-no{letter-spacing:.08em}
.ref-layout .note-figure{grid-area:figure;align-self:start;gap:6px}
.ref-layout .note-photo{width:100%}
.ref-layout .note-head{display:flex;flex-direction:column;align-items:center;gap:2px;max-width:100%;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;white-space:normal;overflow:visible}
.ref-layout .note-name-line{display:flex;align-items:center;justify-content:center;gap:4px;max-width:100%;min-width:0}
.ref-layout .note-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-family:"Segoe UI","Microsoft YaHei","PingFang SC","Noto Sans CJK SC","Source Han Sans SC",Roboto,system-ui,-apple-system,sans-serif;font-size:9.5px;font-weight:600;letter-spacing:0;color:var(--note-deep,#2a2f39)}
.ref-layout .note-mine{flex:none;margin:0;font-size:7px}
.ref-layout .note-label{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;font-size:7px;line-height:1.3;letter-spacing:.14em;text-transform:uppercase;color:color-mix(in srgb,var(--note-ink,#4c5462) 58%,transparent)}
.ref-layout .note-stamp{display:none}
.ref-layout .note-ref-copy{grid-area:copy;display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden}
.ref-layout .note-ref-title{margin:0;font-size:12px;line-height:1.35;font-weight:700;color:var(--note-deep,#2a2f39);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-word}
.ref-layout .note-ref-en{margin:5px 0 0;font:italic 400 9.5px/1.7 Georgia,"Noto Serif SC",serif;color:color-mix(in srgb,var(--note-ink,#4c5462) 68%,transparent);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.ref-layout .note-ref-rule{margin:6px 0 0;border-top:1px solid color-mix(in srgb,var(--note-line,#aeb9c9) 55%,transparent)}
.ref-layout .note-ref-body{margin:6px 0 0;font-size:10.5px;line-height:1.55;color:var(--note-ink,#4c5462);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.ref-layout .note-review-reason{margin:4px 0 0;font-size:8px;color:#b4534f}
.ref-layout .note-ref-foot{margin-top:auto;display:flex;align-items:flex-end;gap:8px;padding-top:6px;min-width:0}
.ref-layout .note-ref-foot .note-date{font-size:8.5px;color:color-mix(in srgb,var(--note-ink,#4c5462) 70%,transparent);white-space:nowrap}
.ref-layout .note-ref-foot .note-sign{margin-left:auto;font:italic 400 7.5px/1.3 Georgia,"Noto Serif SC",serif;color:#7890bd;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:62%;text-align:right}
.ref-layout .note-ref-like{font-size:9px;line-height:1;color:color-mix(in srgb,var(--note-ink,#4c5462) 55%,transparent)}
.ref-layout .note-ref-footer{grid-area:footer;border-top:1px solid color-mix(in srgb,var(--note-line,#aeb9c9) 55%,transparent);padding-top:5px;display:flex;justify-content:space-between;align-items:center;font-size:7.5px;letter-spacing:.14em;text-transform:uppercase;color:color-mix(in srgb,var(--note-ink,#4c5462) 66%,transparent);white-space:nowrap}
/* 胶带与狗狗会压住品牌行/标题，这一版隐藏；百合水印保留 */
.ref-layout .note-tape,.ref-layout .note-dog{display:none}
@media(max-width:820px){
  .ref-layout .public-note{min-height:270px;grid-template-columns:32% minmax(0,1fr);padding:9px 12px 8px;gap:7px 10px}
  .ref-layout .note-ref-title{font-size:11px}
  .ref-layout .note-ref-en{font-size:9px}
  .ref-layout .note-ref-body{font-size:10px;line-height:1.5}
  .ref-layout .note-ref-brand{font-size:7px;padding-bottom:4px}
}

/* 底行：日期/署名回到文档流，署名颜色跟随正文变量 --note-deep */
.ref-layout .note-ref-foot .note-date{position:static;left:auto;right:auto;top:auto;bottom:auto}
.ref-layout .note-ref-foot .note-sign{position:static;left:auto;right:auto;top:auto;bottom:auto;margin-left:auto;font:italic 400 7.5px/1.3 Georgia,"Noto Serif SC",serif;color:var(--note-deep,#2a2f39);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:62%;text-align:right}

/* 右侧文字整体水平居中；分隔线居中收窄；底行仍左日期右署名 */
.ref-layout .note-ref-copy{text-align:center}
.ref-layout .note-ref-title{text-align:center;margin-left:auto;margin-right:auto}
.ref-layout .note-ref-en{text-align:center}
.ref-layout .note-ref-body{text-align:center}
.ref-layout .note-ref-rule{width:64%;margin:6px auto 0}
.ref-layout .note-ref-foot{text-align:left}

/* 预览：文字块按整卡水平居中（?center=card），用于对比与右侧栏居中的差别 */
.center-card .ref-layout .note-ref-copy{grid-column:1/-1;justify-self:center;width:60%}

.center-card.ref-layout .note-ref-copy{grid-column:1/-1;justify-self:center;width:60%}

/* 按示意图：右侧文字区恢复左对齐，分隔线整行 */
.ref-layout .note-ref-copy{text-align:left}
.ref-layout .note-ref-title{text-align:left;margin-left:0;margin-right:0}
.ref-layout .note-ref-en{text-align:left}
.ref-layout .note-ref-body{text-align:left}
.ref-layout .note-ref-rule{width:auto;margin:6px 0 0}
.ref-layout .note-ref-foot{text-align:left}

/* 卡片比例贴近示意图（宽:高 ≈ 1 : 0.75），减少中部空白 */
.ref-layout .public-note{min-height:278px}
@media(max-width:820px){.ref-layout .public-note{min-height:252px}}

/* 文字块（标题/英文/分隔线/正文）以照片垂直中线为基准上下对称居中 */
.ref-layout .note-ref-copy{position:relative}
.ref-layout .note-ref-main{position:absolute;left:0;right:0;top:37.3%;transform:translateY(-50%);display:flex;flex-direction:column;min-width:0}

/* 以卡片坐标定位：文字块中心 = 照片中心（37.45% 卡高） */
.ref-layout .public-note{position:relative}
.ref-layout .note-ref-copy{position:static}
.ref-layout .note-ref-main{position:absolute;left:38.4%;right:4.5%;top:37.45%;transform:translateY(-50%);display:flex;flex-direction:column;min-width:0}
@media(max-width:820px){.ref-layout .note-ref-main{left:36.2%;right:4.2%}}

/* 账号名：幼圆、400、颜色与英文斜体行一致 */
.ref-layout .note-name{font-family:"YouYuan","幼圆","Yuanti SC","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;font-weight:400;color:color-mix(in srgb,var(--note-ink,#4c5462) 68%,transparent)}

/* 账号名字号与下方 BLUE HOUR 小标同源（同一个变量，含手机断点） */
.ref-layout .public-note{--note-sub-size:7px}
.ref-layout .note-name,.ref-layout .note-label{font-size:var(--note-sub-size)}

/* 字号层级：账号名 > 正文中文 > 英文斜体；标签最小 */
.ref-layout .public-note{--note-name-size:10px;--note-en-size:8.5px;--note-body-size:9.5px;--note-label-size:6.5px}
.ref-layout .note-name{font-size:var(--note-name-size)}
.ref-layout .note-label{font-size:var(--note-label-size)}
.ref-layout .note-ref-en{font-size:var(--note-en-size)}
.ref-layout .note-ref-body{font-size:var(--note-body-size)}
@media(max-width:820px){
  .ref-layout .public-note{--note-name-size:9.5px;--note-en-size:8px;--note-body-size:9px;--note-label-size:6px}
}

/* 账号名移到 GUESTBOOK 行，字号与标题同源；正文再缩一档 */
.ref-layout .public-note{--note-brand-size:8px;--note-body-size:9px}
.ref-layout .note-ref-brand{font-size:var(--note-brand-size)}
.ref-layout .note-brand-left{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden}
.ref-layout .note-ref-brand .note-name{font-size:var(--note-brand-size);text-transform:none;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:45%}
.ref-layout .note-head{justify-content:center}
@media(max-width:820px){
  .ref-layout .public-note{--note-brand-size:7px;--note-body-size:8.5px}
}

/* 满足 账号名(8) ≥ 正文 > 英文斜体 > 标签 */
.ref-layout .public-note{--note-body-size:8px;--note-en-size:7.5px}
@media(max-width:820px){.ref-layout .public-note{--note-body-size:7px;--note-en-size:6.5px}}

/* 账号名字号与英文斜体行同源（含手机断点） */
.ref-layout .note-ref-brand .note-name{font-size:var(--note-en-size)}

/* 品牌行：账号名与 GUESTBOOK 基线对齐，徽标保持垂直居中 */
.ref-layout .note-brand-left{align-items:baseline}
.ref-layout .note-brand-left .note-mine,.ref-layout .note-brand-left .note-review{align-self:center}

/* 正文固定 9px（两端一致）；账号名字号跟随品牌行变量 */
.ref-layout .public-note{--note-body-size:9px}
@media(max-width:820px){.ref-layout .public-note{--note-body-size:9px}}
.ref-layout .note-ref-brand .note-name{font-size:var(--note-brand-size)}

/* 对比版：账号名加粗 + 文案右对齐（仅卡片内部，不动底行/底栏） */
.ref-layout .note-ref-brand .note-name{font-weight:600}
.ref-layout .note-ref-title,.ref-layout .note-ref-en,.ref-layout .note-ref-body{text-align:right}

/* 对比版微调：留言正文回到左对齐（与照片右缘基准），仅标题/英文行右对齐 */
.ref-layout .note-ref-body{text-align:left}

/* 对比版：文案区顺序改为 英文斜体 → 分隔线 → 中文标题，全部右对齐；正文仍左对齐 */
.ref-layout .note-ref-main{display:flex;flex-direction:column}
.ref-layout .note-ref-en{order:1;text-align:right}
.ref-layout .note-ref-rule{order:2}
.ref-layout .note-ref-title{order:3;text-align:right}
.ref-layout .note-ref-body{order:4;text-align:left}

/* 对比版：分隔线与标题之间留出间距，避免压线 */
.ref-layout .note-ref-rule{margin:7px 0 9px}
.ref-layout .note-ref-title{margin:0}

/* 对比版：正文置顶（左对齐），其下依次 英文斜体 → 分隔线 → 中文标题（右对齐） */
.ref-layout .note-ref-body{order:0;text-align:left;margin:0 0 9px}
.ref-layout .note-ref-en{order:1;text-align:right;margin:0}

/* 对比版：文字块与正文列完全重合（左贴列首、右贴列尾） */
.ref-layout .note-ref-copy{position:relative}
.ref-layout .note-ref-main{left:0;right:0}
.ref-layout .note-ref-body,.ref-layout .note-ref-en,.ref-layout .note-ref-title,.ref-layout .note-ref-rule{margin-left:0;margin-right:0}

/* 对比版：第一行改为用户留言(item.content)，其后为模板英文 → 分隔线 → 模板中文 */
.ref-layout .note-ref-title{order:0;text-align:left;margin:0 0 9px}
.ref-layout .note-ref-en{order:1;text-align:right}
.ref-layout .note-ref-rule{order:2}
.ref-layout .note-ref-body{order:3;text-align:right;margin:0}

/* 日期：YYYY/MM/DD，置于卡片左下角（仅对比版展示，默认版隐藏） */
.note-ref-date-abs{display:none}
.ref-layout .note-ref-date-abs{display:block;position:absolute;left:4.5%;bottom:34px;font:400 9px/1 system-ui,sans-serif;letter-spacing:.04em;color:color-mix(in srgb,var(--note-ink,#4c5462) 62%,transparent)}
.ref-layout .note-ref-foot .note-date{display:none}
@media(max-width:820px){.ref-layout .note-ref-date-abs{font-size:8px;bottom:30px}}

/* 对比版：④ 模板中文再缩一档；日期左缘对齐底栏英文文字实际起笔 */
.ref-layout .note-ref-body{font-size:8px}
.ref-layout .note-ref-date-abs{left:15.2px}
@media(max-width:820px){.ref-layout .note-ref-date-abs{left:12.2px}}

/* 回退：④ 模板中文 9px；日期回 4.5%；账号名与品牌行基线对齐且行高一致 */
.ref-layout .note-ref-body{font-size:9px}
.ref-layout .note-ref-date-abs{left:4.5%}
@media(max-width:820px){.ref-layout .note-ref-date-abs{left:4.5%}}
.ref-layout .note-brand-left{align-items:baseline}
.ref-layout .note-brand-left .note-brand-title,
.ref-layout .note-brand-left .note-name{line-height:1.2}

/* 品牌行：标题与账号名同高行盒，彻底消除高低差 */
.ref-layout .note-brand-left .note-brand-title,
.ref-layout .note-brand-left .note-name{line-height:10px;vertical-align:baseline}
@media(max-width:820px){.ref-layout .note-brand-left .note-brand-title,
.ref-layout .note-brand-left .note-name{line-height:9px}}

/* 品牌行：改为垂直居中（行盒同高），消除剩余高低差 */
.ref-layout .note-brand-left{align-items:center}
.ref-layout .note-brand-left .note-brand-title,
.ref-layout .note-brand-left .note-name{display:inline-flex;align-items:center;height:10px;line-height:1;margin:0;padding-top:0;padding-bottom:0}
@media(max-width:820px){.ref-layout .note-brand-left .note-brand-title,
.ref-layout .note-brand-left .note-name{height:9px}}

/* 审核态：品牌行小胶囊，沿用品牌行的细边框 / 圆角 / 浅底 / 小标签字号 */
.ref-layout .note-brand-left .note-review{flex:none;display:inline-flex;align-items:center;height:10px;padding:0 5px;border:1px solid color-mix(in srgb,var(--note-accent,#7890bd) 42%,transparent);border-radius:999px;background:color-mix(in srgb,var(--note-accent,#7890bd) 10%,#fff);color:color-mix(in srgb,var(--note-ink,#4c5462) 80%,transparent);font-size:7px;font-weight:500;line-height:1;letter-spacing:.02em;text-transform:none;white-space:nowrap}
.ref-layout .note-brand-left .note-review.is-rejected{border-color:rgba(180,83,79,.36);background:rgba(180,83,79,.07);color:#a44f4b}
@media(max-width:820px){.ref-layout .note-brand-left .note-review{height:9px;padding:0 4px}}

/* 详情弹层里的审核提示：整条浅底提示条 */
.note-review-hint{margin:0 0 10px;padding:7px 10px;border:1px solid rgba(76,84,98,.16);border-radius:10px;background:rgba(76,84,98,.045);color:#4c5462;font-size:10px;line-height:1.6;text-align:left}
@media(max-width:820px){.note-review-hint{font-size:9px;padding:6px 9px}}

/* 未通过原因：从 8px 红字提到可读字号，并按小胶囊风格收边 */
.ref-layout .note-review-reason{order:4;width:fit-content;max-width:100%;margin:8px 0 0 auto;padding:3px 8px;border:1px solid rgba(180,83,79,.22);border-radius:8px;background:rgba(180,83,79,.05);font-size:9.5px;line-height:1.5;color:#a44f4b;text-align:left}
@media(max-width:820px){.ref-layout .note-review-reason{font-size:9px;margin-top:6px}}

/* ══ 留言配图：从自己的收藏夹选一张物料图（只存 seq 引用，不做上传） ══ */
.composer-attach{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:1px 1px 0}
.attach-pick{height:24px;padding:0 9px;border:1px dashed rgba(86,122,206,.45);border-radius:9px;background:rgba(255,255,255,.6);color:#5a6f9b;font-size:10px;cursor:pointer}
.attach-pick:hover,.attach-pick:focus-visible{border-color:#567ace;color:#3f5d9e;background:#f5f8ff;outline:0}
.attach-preview{display:inline-flex;align-items:center;gap:6px;padding:3px 4px 3px 3px;border-radius:9px;background:#fff;border:1px solid rgba(86,122,206,.22);max-width:100%}
.attach-preview[hidden]{display:none}
.attach-preview img{width:30px;height:30px;border-radius:6px;object-fit:cover;display:block;background:#eee8db}
.attach-preview-title{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#5c6880;font-size:9.5px}
.attach-clear{width:18px;height:18px;border:0;border-radius:50%;background:#eef1f7;color:#7b8699;font-size:13px;line-height:1;cursor:pointer}
.image-picker-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;max-height:54vh;overflow:auto;padding:2px;margin:0 0 2px}
.image-option{display:flex;flex-direction:column;gap:4px;padding:4px;border:1px solid rgba(86,122,206,.16);border-radius:12px;background:#fff;cursor:pointer;text-align:left;min-width:0}
.image-option:hover,.image-option:focus-visible{outline:0;border-color:#8ca4dc;background:#f7f9ff}
.image-option.is-selected{border-color:#567ace;box-shadow:0 0 0 2px rgba(86,122,206,.2)}
.image-option-thumb{display:block;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:8px;background:#f0ece1}
.image-option-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.image-option-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:9px;line-height:1.35;color:#5c6880;word-break:break-word}
.image-option.is-broken .image-option-thumb{display:grid;place-items:center}
.image-option.is-broken .image-option-thumb::after{content:"无图";font-size:9px;color:#9aa0ad}
.image-picker-loading,.image-picker-empty{grid-column:1/-1;margin:18px 4px;color:#8b93a4;font-size:11px;text-align:center}
.image-picker-buttons{display:inline-flex;align-items:center;gap:8px}
.image-picker-skip{height:38px;padding:0 12px;border:1px solid rgba(86,122,206,.25);border-radius:12px;background:#fff;color:#6b7891;font-size:11px;cursor:pointer}
#guestbookCount.is-over{color:#b4555a;font-weight:700}
/* 卡片配图：绝对定位的小照片，不参与栅格，不会撑破 ref-layout */
.note-attach{position:absolute;z-index:6;left:12px;bottom:36px;width:clamp(50px,6.2vw,72px);aspect-ratio:1;margin:0;padding:3px;border-radius:5px;background:#fffdf8;box-shadow:0 7px 16px rgba(35,48,74,.26);transform:rotate(-4deg);pointer-events:none}
.note-attach img{display:block;width:100%;height:100%;object-fit:cover;border-radius:3px;background:#efe9dc}
.note-attach.is-broken{display:grid;place-items:center;background:#f4f1e8}
.note-attach.is-broken::after{content:"配图不可用";font-size:7px;line-height:1.2;color:#8b8f9c;text-align:center}
.note-modal-body .note-attach{width:clamp(84px,16vw,112px);left:14px;bottom:44px}
@media(max-width:820px){.note-attach{left:8px;bottom:38px;width:48px}.note-modal-body .note-attach{width:92px}}
@media(max-width:560px){.note-attach{left:7px;bottom:36px;width:44px}.composer-attach{padding-left:56px}.image-picker-grid{grid-template-columns:repeat(3,1fr)}}

.note-modal-body .note-ref-title,.note-modal-body .note-ref-en,.note-modal-body .note-ref-body{display:block;overflow:visible;-webkit-line-clamp:unset;max-height:none}

/* Square reference card on desktop; the existing mobile rectangle remains below 821px. */
.square-date,.square-count,.square-name,.square-sparkle{display:none}
@media(min-width:821px){
  .ref-layout .note-column .public-note.note-ref{display:block;position:relative;width:100%;height:auto;min-height:0;aspect-ratio:1.4;padding:0;border:1px solid #c6cae6;border-radius:6%;background:linear-gradient(180deg,#fbfcff,#e7eaf9);box-shadow:0 9px 25px rgba(92,98,160,.24);transform:none;color:#3b4270}
  .ref-layout .note-column .public-note.note-ref:hover,.ref-layout .note-column .public-note.note-ref:focus-visible{transform:translateY(-3px);box-shadow:0 15px 30px rgba(92,98,160,.3)}
  .ref-layout .note-column .public-note.note-ref:before{inset:3.5%;border:1px solid #c6cae6;border-radius:5%;box-shadow:inset 0 0 0 4px rgba(198,202,230,.18)}
  .ref-layout .note-column .public-note.note-ref:after{content:"";position:absolute;z-index:1;right:3.5%;bottom:4.8%;width:34%;height:46%;opacity:.43;pointer-events:none;background:none}
  .ref-layout .note-ref-brand{position:absolute;z-index:3;left:6%;right:6%;top:6%;height:7%;padding:0 0 1.4%;border-bottom:1px solid #c6cae6;color:#3b4270;font:italic clamp(9px,1.05vw,16px)/1.1 Georgia,serif}
  .ref-layout .note-brand-left .note-brand-title{font:inherit;height:auto;white-space:nowrap}
  .ref-layout .note-brand-left .note-name,.ref-layout .note-ref-no,.ref-layout .note-mine{display:none}
  .ref-layout .note-figure{position:absolute;z-index:3;left:7%;top:15%;width:26%;height:48%;display:block}
  .ref-layout .note-column .note-photo{display:block;width:100%;height:100%;aspect-ratio:auto;padding:5% 5% 18%;border-radius:5%;transform:none;box-shadow:3px 7px 15px rgba(62,66,112,.25)}
  .ref-layout .note-photo picture,.ref-layout .note-photo img{display:block;width:100%;height:100%}
  .ref-layout .note-photo img{object-fit:cover;object-position:center}
  .ref-layout .note-photo figcaption{bottom:2%;font:italic 700 clamp(9px,1.4vw,20px)/1.1 cursive;color:#3b4270}
  .ref-layout .note-head{position:absolute;top:106%;left:0;width:100%}
  .ref-layout .note-label{color:#9aa3d4;font:clamp(7px,.8vw,12px)/1.1 Georgia,serif;letter-spacing:.15em}
  .ref-layout .note-ref-copy{position:static}
  .ref-layout .note-ref-main{position:absolute;z-index:3;left:40%;right:7%;top:27%;height:54%;transform:none;display:flex;flex-direction:column;justify-content:center}
  .ref-layout .note-ref-title{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;max-height:52%;margin:0;text-align:left;color:#3b4270;font:600 clamp(12px,1.5vw,23px)/1.36 "Microsoft YaHei",sans-serif;overflow-wrap:anywhere}
  .ref-layout .note-ref-en{position:static;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:7px 0 0;text-align:right;color:#6b72a0;font:italic clamp(7px,.8vw,12px)/1.35 Georgia,serif}
  .ref-layout .note-ref-rule{position:static;width:100%;margin:7px 0 0;border-color:#c6cae6}
  .ref-layout .note-ref-body{position:static;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:6px 0 0;text-align:right;color:#3b4270;font:clamp(8px,.85vw,12px)/1.35 "Microsoft YaHei",sans-serif}
  .ref-layout .note-ref-date-abs{display:none}
  .ref-layout .note-stars{display:block;opacity:.17;z-index:1}
  .ref-layout .note-tape{display:block;left:9%;top:13%;width:15%;height:4%;z-index:5;transform:rotate(-7deg)}
  .ref-layout .note-corner{display:block;z-index:2;opacity:.25}
  .ref-layout .note-corner-tl{width:16%;height:25%;top:2%;left:1%}
  .ref-layout .note-corner-br{width:16%;height:24%;right:1%;bottom:2%}
  .ref-layout .note-flower{display:block;z-index:2;right:1%;top:37%;width:29%;height:55%;opacity:.14}
  .ref-layout .note-dog{display:block;z-index:5;left:7%;right:auto;top:auto;bottom:8%;width:14%;max-width:54px}
  .ref-layout .note-ref-foot{display:block;position:absolute;left:41%;right:7%;bottom:8%;height:auto;margin:0;padding:0}
  .ref-layout .note-ref-foot .note-sign{position:static;display:block;max-width:none;margin:0;text-align:right;color:#6b72a0;font:italic clamp(7px,.75vw,11px)/1.2 Georgia,serif}
  .ref-layout .note-ref-foot .note-ref-like{display:none}
  .ref-layout .note-ref-footer{display:flex;position:absolute;z-index:3;left:6%;right:6%;bottom:2%;padding-top:1%;border-top:1px solid #c6cae6;color:#6b72a0;font:clamp(6px,.7vw,10px)/1.1 Georgia,serif;letter-spacing:.12em}
  .ref-layout .square-date,.ref-layout .square-count,.ref-layout .square-name,.ref-layout .square-sparkle{display:block;position:absolute;z-index:4;color:#6b72a0}
  .ref-layout .square-date{top:6%;right:13%;font:italic clamp(8px,1vw,15px) Georgia,serif}
  .ref-layout .square-count{top:6%;right:6%;color:#5b62b4;font:clamp(8px,1vw,15px) Georgia,serif}
  .ref-layout .square-name{left:22%;bottom:8%;max-width:29%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:clamp(8px,.9vw,14px) "Microsoft YaHei",sans-serif}
  .ref-layout .square-sparkle{right:7%;top:31%;color:#9aa3d4;font-size:clamp(12px,1.5vw,23px)}
  .ref-layout .note-column .public-note.note-ref{background-image:linear-gradient(180deg,var(--note-g0,#fbfcff),var(--note-g1,#e7eaf9));background-size:100% 100%;background-position:center;background-repeat:no-repeat}
  .ref-layout .note-column .public-note.note-ref .note-attach,
  .ref-layout .note-modal-body .public-note.note-ref .note-attach{left:26%;top:49%;bottom:auto;width:13%;aspect-ratio:1;margin:0;padding:1% 1% 2.5%;border:1px solid #e7eaf9;border-radius:5%;background:#fff;box-shadow:3px 7px 15px rgba(62,66,112,.25);transform:rotate(30deg);transform-origin:center;z-index:6}
  .ref-layout .public-note.note-ref .note-attach img{width:100%;height:100%;border-radius:2%;object-fit:cover}
  .ref-layout .note-modal-body .public-note.note-ref{width:100%;min-height:0;aspect-ratio:1.4}
}

/* 手机继续使用参考文件夹的长方形便利贴，并恢复小狗和胶带。 */
@media(max-width:820px){
  .ref-layout .note-dog{display:block;right:3%;top:13%;width:36px;opacity:.9}
  .ref-layout .note-tape{display:block;left:8%;top:7%;width:16%;height:10px}
}

/* 手机端配图按钮保持易于点按的高度。 */
@media(max-width:820px){
  .attach-pick{min-height:38px;padding-top:7px;padding-bottom:7px;font-size:12px}
}

/* 便签配色圆点只有 22px（选中态 26px）：用透明伪元素把触控区扩到 32px，视觉尺寸不变 */
@media(max-width:820px){
  .note-color{position:relative}
  .note-color::after{content:"";position:absolute;inset:-5px;border-radius:50%}
  .note-color-row{gap:12px}
}

/* 狗狗像盖章一样压在卡片右下角。 */
.ref-layout .public-note.note-ref{overflow:visible}
.ref-layout .note-brand-title{font-family:Georgia,"Times New Roman",serif;font-weight:700;letter-spacing:.12em}
.ref-layout .note-ref-title{font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-weight:700;letter-spacing:.01em}
.ref-layout .note-ref-en{font-family:Georgia,"Times New Roman",serif;font-weight:400;opacity:.78}
.ref-layout .note-ref-body{font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-weight:400;opacity:.74}
@media(min-width:821px){
  .ref-layout .note-brand-left .note-brand-title{font-size:clamp(11px,1vw,15px)}
  .ref-layout .note-ref-title{font-size:clamp(13px,1.15vw,18px);line-height:1.38}
  .ref-layout .note-ref-en{font-size:clamp(8px,.7vw,10px)}
  .ref-layout .note-ref-body{font-size:clamp(8px,.7vw,10px)}
  .ref-layout .note-dog{left:auto;right:-3%;top:auto;bottom:-9%;width:18%;max-width:72px;transform:rotate(-13deg);filter:drop-shadow(0 4px 5px rgba(48,58,102,.27))}
  .ref-layout .square-name{display:none}
  .ref-layout .note-ref-foot{right:15%;bottom:9%}
}
@media(max-width:820px){
  .ref-layout .note-brand-title{font-size:9px;letter-spacing:.1em}
  .ref-layout .note-ref-title{font-size:clamp(11px,3vw,13px);line-height:1.45}
  .ref-layout .note-ref-en{font-size:clamp(6px,1.8vw,8px);line-height:1.3}
  .ref-layout .note-ref-body{font-size:clamp(7px,2vw,9px);line-height:1.35}
  .ref-layout .note-dog{left:auto;right:-3%;top:auto;bottom:-7%;width:clamp(42px,13vw,58px);transform:rotate(-13deg);filter:drop-shadow(0 3px 4px rgba(48,58,102,.27))}
}

/* 留言与照片顶部对齐；主题文案固定在落款上方。 */
.ref-layout .note-head{display:none}
.ref-layout .note-ref-main{position:absolute;top:15%;left:40%;right:7%;height:60%;transform:none;display:flex;flex-direction:column;justify-content:flex-start;min-height:0}
.ref-layout .note-ref-title{font-family:"Noto Serif SC","Songti SC","SimSun",serif;font-weight:600;line-height:1.5;text-align:left}
.ref-layout .note-ref-template{display:flex;flex-direction:column;flex:none;margin-top:auto;padding-top:12px}
.ref-layout .note-ref-template .note-ref-en{order:0;margin:0;text-align:right}
.ref-layout .note-ref-template .note-ref-rule{order:1;margin:8px 0 0}
.ref-layout .note-ref-template .note-ref-body{order:2;margin:7px 0 0;text-align:right}
.ref-layout .note-dog{right:1.5%;bottom:-5%}
.ref-layout .note-ref-foot{bottom:11%}
@media(max-width:820px){
  .ref-layout .note-ref-main{left:36%;right:5%;top:15%;height:60%}
  .ref-layout .note-dog{right:1.5%;bottom:-5%}
}

/* 详情卡保持与缩略卡相同的照片比例和文字坐标。 */
.ref-layout .note-modal-body .public-note.note-ref{display:block;position:relative;width:100%;height:auto;min-height:0;aspect-ratio:1.4;padding:0;overflow:visible}
.ref-layout .note-modal-body .note-figure{position:absolute;left:7%;top:15%;width:26%;height:auto;display:block}
.ref-layout .note-modal-body .note-photo{display:block!important;width:100%;height:auto;aspect-ratio:auto;margin:0;padding:5% 5% 16%;overflow:hidden}
.ref-layout .note-modal-body .note-photo img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
.ref-layout .note-modal-body .note-photo figcaption{bottom:2%;font-size:clamp(10px,1.4vw,18px)}
.ref-layout .note-modal-body .note-ref-copy{position:static}
.ref-layout .note-modal-body .note-ref-main{position:absolute;left:40%;right:7%;top:15%;height:60%;transform:none}
.ref-layout .note-modal-body .note-ref-title{display:block;max-height:58%;overflow-y:auto;-webkit-line-clamp:unset;font-size:clamp(14px,1.7vw,24px)}
.ref-layout .note-modal-body .note-ref-template{margin-top:auto}
.ref-layout .note-modal-body .note-ref-foot{position:absolute;left:40%;right:7%;bottom:11%;height:auto;margin:0;padding:0;display:block}
.ref-layout .note-modal-body .note-ref-foot .note-sign{position:static;display:block;max-width:none;margin:0;text-align:right}
.ref-layout .note-modal-body .note-ref-foot .note-ref-like,.ref-layout .note-modal-body .note-ref-foot .note-date{display:none}
.ref-layout .note-modal-body .note-dog{right:1.5%;bottom:-5%;width:clamp(48px,6vw,80px)}
@media(max-width:820px){
  .ref-layout .note-modal-body .note-ref-main{left:36%;right:5%}
  .ref-layout .note-modal-body .note-ref-title{font-size:clamp(11px,3vw,15px)}
  .ref-layout .note-modal-body .note-ref-foot{left:36%;right:5%}
}

/* 卡片尺寸变化时，两段底部文字的间距随卡片高度等比缩放。 */
.ref-layout .note-ref-main,.ref-layout .note-modal-body .note-ref-main{height:65%}
.ref-layout .note-stars{opacity:.22}
.ref-layout .note-flower{opacity:.20}
.ref-layout .note-ref-title{font-size:clamp(11px,1vw,16px)}
.ref-layout .note-modal-body .note-ref-title{font-size:clamp(13px,1.5vw,21px)}
@media(max-width:820px){
  .ref-layout .note-ref-title{font-size:clamp(10px,2.8vw,12px)}
  .ref-layout .note-modal-body .note-ref-title{font-size:clamp(10px,2.8vw,14px)}
  .ref-layout .note-column .note-ref-main{height:75%}
}

/* 留言、主题文案和署名共用相同间距；照片到文字留出两倍间距。 */
.ref-layout .note-ref-copy{position:static}
.ref-layout .note-ref-main,.ref-layout .note-modal-body .note-ref-main{left:38%;gap:8px;align-items:stretch}
.ref-layout .note-ref-title{flex:none;margin:0;max-height:4.5em;line-height:1.5;-webkit-line-clamp:3;overflow:hidden}
.ref-layout .note-ref-template,.ref-layout .note-modal-body .note-ref-template{flex:none;margin:0;padding:0}
.ref-layout .note-ref-main>.note-sign{position:static;display:block;flex:none;align-self:flex-end;max-width:100%;margin:0;color:#6b72a0;font:italic 400 clamp(7px,.7vw,10px)/1.25 Georgia,"Noto Serif SC",serif;white-space:nowrap}
.ref-layout .note-ref-foot{display:block;position:absolute;left:38%;right:7%;bottom:8%;height:auto;margin:0;padding:0}
.ref-layout .note-ref-foot .note-ref-like{display:none}
.ref-layout .note-photo figcaption{font-family:"Segoe Script","Segoe Print",cursive;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:clip}
@media(min-width:821px){.ref-layout .note-photo figcaption{font-size:clamp(8px,.72vw,11px)}}
@media(max-width:820px){
  .ref-layout .note-ref-main,.ref-layout .note-modal-body .note-ref-main{left:38%}
  .ref-layout .note-ref-main>.note-sign{font-size:7px}
  .ref-layout .note-modal-body .public-note.note-ref{aspect-ratio:1.2}
}
.ref-layout .note-modal-body .note-ref-title{max-height:5lh;overflow-y:auto;-webkit-line-clamp:unset}

/* 五行留言区在上方；主题文案和署名固定于卡片下方。 */
.ref-layout .note-ref-title{-webkit-line-clamp:5;max-height:7.5em}
.ref-layout .note-ref-template,.ref-layout .note-modal-body .note-ref-template{margin-top:auto}
.ref-layout .note-modal-body .note-ref-title{max-height:5lh}
@media(min-width:821px){.ref-layout .note-column .note-ref-main{height:73%}}
@media(max-width:820px){
  .ref-layout .note-column .public-note.note-ref{height:clamp(215px,64vw,250px);min-height:0}
  .ref-layout .note-column .note-ref-main{height:62%}
  .ref-layout .note-modal-body .public-note.note-ref{aspect-ratio:1.1}
}

/* 使用正文原生截断省略号，点按文字仍由卡片打开详情。 */
.ref-layout .note-title-wrap{position:relative;flex:none;min-width:0}
.ref-layout .note-title-wrap .note-ref-title{width:100%}
.ref-layout .note-column .note-ref-title{cursor:pointer}

/* 详情文案的末行停在小狗印章上方 4px，正文最多显示五个完整行。 */
.ref-layout .note-modal-body .note-ref-main{top:15%;height:auto;bottom:calc(clamp(48px,6vw,80px) - 5% + 9px)}
.ref-layout .note-modal-body .note-ref-title{max-height:5lh;overflow-y:auto;overflow-x:hidden;-webkit-line-clamp:unset}

/* 为右上角的日期留出一个数字的宽度。 */
@media(min-width:821px){.ref-layout .square-date{right:calc(13% + 1.5ch)}}

/* 字数分列共用的循环轨道；每列的实际像素长度决定滚动时长。 */
.ref-layout .note-column-track{--cycle-gap:22px;--cycle-half-gap:11px;gap:var(--cycle-gap);padding:0}
.ref-layout .note-cycle{display:flex;flex-direction:column;gap:22px;padding:0}
@media(min-width:821px){
  .ref-layout .note-cycle{padding-inline:calc(2.2% + 7px)}
}
.ref-layout .note-column-track.is-rolling{
  /* 位移按内容区计算，让一个周期与手动滚动使用的高度一致。 */
  transform-box:content-box;
  animation:noteCycleRoll var(--roll-duration,70s) linear infinite;
  animation-delay:var(--roll-delay,calc(var(--column) * -13s));
}
.ref-layout .note-column.is-manual .note-column-track.is-rolling,body.note-modal-open.ref-layout .note-column-track.is-rolling{animation-play-state:paused}@media(hover:hover) and (pointer:fine){.note-column:hover .note-column-track.is-rolling{animation-play-state:paused}}
@keyframes noteCycleRoll{from{transform:translateY(0)}to{transform:translateY(calc(-50% - var(--cycle-half-gap)))}}
@media(max-width:820px){
  .ref-layout .note-column-track{--cycle-gap:16px;--cycle-half-gap:8px}
  .ref-layout .note-cycle{gap:16px;padding:0}
}

/* 手动翻滚时，居中的便签成为焦点。 */
.ref-layout .note-column.is-spotlighting .public-note.note-ref{opacity:.58;filter:brightness(.68) saturate(.68);box-shadow:inset 0 0 0 1px rgba(255,255,255,.38),0 8px 18px rgba(29,38,57,.10)}
.ref-layout .note-column.is-spotlighting .public-note.note-ref.is-before-spotlight{transform:scale(.88) rotate(2.7deg) translateX(2.5%)}
.ref-layout .note-column.is-spotlighting .public-note.note-ref.is-after-spotlight{transform:scale(.88) rotate(-2.7deg) translateX(-2.5%)}
.ref-layout .note-column.is-spotlighting .public-note.note-ref.is-spotlight,.ref-layout .note-column.is-spotlighting .public-note.note-ref.is-spotlight:hover,.ref-layout .note-column.is-spotlighting .public-note.note-ref.is-spotlight:focus-visible{z-index:8;opacity:1;filter:brightness(1.04) saturate(1.06);transform:scale(1.045) rotate(0deg);box-shadow:inset 0 0 0 1px rgba(255,255,255,.78),inset 0 0 0 7px rgba(255,255,255,.22),0 24px 48px rgba(34,46,72,.22)}
@media(max-width:820px){
  .ref-layout .note-column.is-spotlighting .public-note.note-ref.is-before-spotlight{transform:scale(.9) rotate(2.2deg)}
  .ref-layout .note-column.is-spotlighting .public-note.note-ref.is-after-spotlight{transform:scale(.9) rotate(-2.2deg)}
  .ref-layout .note-column.is-spotlighting .public-note.note-ref.is-spotlight{transform:scale(1.025) rotate(0deg)}
}
@media(prefers-reduced-motion:reduce){
  .ref-layout .note-column.is-spotlighting .public-note.note-ref.is-before-spotlight,.ref-layout .note-column.is-spotlighting .public-note.note-ref.is-after-spotlight,.ref-layout .note-column.is-spotlighting .public-note.note-ref.is-spotlight{transform:none}
}

/* 参照提供版本的留言手写字体，保留现有字号与五行限制。 */
.ref-layout .note-ref-title.note-message{font-family:"Segoe Print","Segoe Script","STKaiti","KaiTi","Noto Serif SC",Georgia,serif;font-feature-settings:"liga" 1,"dlig" 1;font-variant-ligatures:common-ligatures discretionary-ligatures}
.ref-layout .note-ref-title.note-message.is-script{font-family:"Cambria Math","Segoe Script","Segoe Print","STKaiti","KaiTi",cursive;font-style:normal}
.ref-layout .note-ref-title.note-message.is-korean{font-family:"Nanum Pen Script","Nanum Myeongjo","Noto Serif KR","Malgun Gothic","Apple SD Gothic Neo","Segoe Print",serif;font-style:normal;word-break:keep-all;line-break:strict}

.ref-layout .note-ref-title.note-message,.ref-layout .note-ref-title.note-message.is-script,.ref-layout .note-ref-title.note-message.is-korean{font-family:"AYJ Source Han Serif","Source Han Serif SC","Noto Serif SC","Noto Serif KR",serif;font-weight:600;font-style:normal}
.ref-layout #guestbookInput::placeholder{font-family:"AYJ Source Han Serif","Source Han Serif SC","Noto Serif SC",serif;font-weight:400}

/* 展开后只让正文滚动，最多露出八个完整行。 */
.ref-layout .note-modal-body .note-ref-title{max-height:8lh;overflow-y:auto;overflow-x:hidden}
@media(max-width:820px){.ref-layout .note-modal-body .public-note.note-ref{min-height:300px}}

/* 花朵与爪印只加深一档，仍作为文字后方的底纹。 */
.ref-layout .note-stars{opacity:.30}
.ref-layout .note-flower{opacity:.28}
@media(min-width:821px){.ref-layout .note-column .public-note.note-ref:after{opacity:.52}}

/* 桌面匿名昵称压在底部署名上方的框线处。 */
.ref-layout .note-anon-name{display:none}
@media(min-width:821px){
  .ref-layout .note-ref-footer .note-anon-name{display:block;position:absolute;left:0;top:0;z-index:2;max-width:38%;padding:0 4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transform:translateY(-100%);background:var(--note-g1,#e7eaf9);color:#6b72a0;font:400 clamp(8px,.7vw,10px)/1.35 "AYJ Source Han Serif","Source Han Serif SC",serif;letter-spacing:0}
}

/* 详情正文的细窄主题滚动条。 */
.ref-layout .note-modal-body .note-ref-title{scrollbar-gutter:stable;overscroll-behavior:contain;padding-right:6px}
.ref-layout .note-modal-body .note-ref-title::-webkit-scrollbar{width:6px}
.ref-layout .note-modal-body .note-ref-title::-webkit-scrollbar-track{border-radius:99px;background:color-mix(in srgb,var(--note-g1,#eef1fb) 64%,#fff)}
.ref-layout .note-modal-body .note-ref-title::-webkit-scrollbar-thumb{border-radius:99px;background:linear-gradient(180deg,color-mix(in srgb,var(--note-accent,#9aa3d4) 74%,#fff),color-mix(in srgb,var(--note-accent,#9aa3d4) 54%,#fff))}
.ref-layout .note-modal-body .note-ref-title::-webkit-scrollbar-thumb:hover{background:var(--note-accent,#9aa3d4)}
.ref-layout .note-modal-body .note-ref-title::-webkit-scrollbar-button{display:none;width:0;height:0}
.ref-layout .note-modal-panel::-webkit-scrollbar{width:6px}
.ref-layout .note-modal-panel::-webkit-scrollbar-track{border-radius:99px;background:#f7f6f3}
.ref-layout .note-modal-panel::-webkit-scrollbar-thumb{border-radius:99px;background:linear-gradient(180deg,#b4b7df,#929ac8)}
.ref-layout .note-modal-panel::-webkit-scrollbar-thumb:hover{background:#858fbe}
.ref-layout .note-modal-panel::-webkit-scrollbar-button{display:none;width:0;height:0}
@supports (-moz-appearance:none){
  .ref-layout .note-modal-body .note-ref-title{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--note-accent,#9aa3d4) 72%,#fff) color-mix(in srgb,var(--note-g1,#eef1fb) 64%,#fff)}
  .ref-layout .note-modal-panel{scrollbar-width:thin;scrollbar-color:#a5a9d4 #f7f6f3}
}

/* 用户输入文本整体缩小 1px，主题文案和署名保持不变。 */
@media(min-width:821px){
  .ref-layout .note-column .note-ref-title.note-message{font-size:clamp(10px,calc(1vw - 1px),15px)}
  .ref-layout .note-modal-body .note-ref-title.note-message{font-size:clamp(11px,calc(1.5vw - 2px),19px)}
}
@media(max-width:820px){
  .ref-layout .note-column .note-ref-title.note-message{font-size:clamp(10px,2.8vw,12px)}
  .ref-layout .note-modal-body .note-ref-title.note-message{font-size:clamp(10px,2.8vw,14px)}
}

/* 留言排序与投稿区：保持原有操作，调整层级和留白。 */
.guestbook-main{grid-template-rows:auto minmax(0,1fr) auto}
.note-sort{position:relative;z-index:3;display:flex;gap:6px;justify-content:flex-end;padding:0 4px 5px}
.note-sort button{padding:7px 14px;border:1px solid #dce2f1;border-radius:999px;background:rgba(255,255,255,.88);color:#73809d;font:600 11px/1.2 "AYJ Source Han Serif","Source Han Serif SC",serif;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s}
.note-sort button[aria-pressed="true"]{background:#5b76c8;border-color:#5b76c8;color:#fff;box-shadow:0 4px 12px rgba(79,106,184,.2)}
.note-sort button:focus-visible{outline:2px solid #5877cf;outline-offset:2px}
.note-composer{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:14px;border:1px solid #dce3f3;border-radius:24px;background:rgba(255,255,255,.96);box-shadow:0 14px 38px rgba(56,75,125,.12)}
.composer-copy{grid-column:1/-1;display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0;padding:0 4px}
.composer-copy span{font-size:11px}.composer-copy small{margin:0 0 0 auto;font-size:9px}
.note-mine-toggle{margin:0}
.composer-input{gap:10px;padding:12px 14px;border:1px solid rgba(86,122,206,.10);border-radius:17px}
.note-composer textarea{min-height:60px;max-height:100px;padding:0;resize:vertical;font:400 14px/1.65 "AYJ Source Han Serif","Source Han Serif SC",serif}
.note-composer textarea::placeholder{color:#a0aabd}
.note-color-row{gap:12px;padding:2px 0}
.note-color{width:22px;height:22px}
.composer-attach{padding:3px 0 0}
.attach-pick{border-radius:11px}
.composer-action{align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:9px;padding:3px 0}
.composer-action>span{font-size:10px;white-space:nowrap}
.composer-action button{min-width:54px;height:54px;padding:0 12px;border-radius:17px;font-size:0;box-shadow:0 8px 18px rgba(86,122,206,.25)}
.composer-action button i{margin:0;font-size:23px}
.form-status{left:17px;bottom:-17px}
@media(max-width:820px){
  .note-sort{justify-content:center;padding:0 0 4px}
  .note-sort button{font-size:11px;padding:7px 13px}
  .note-composer{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px;border-radius:20px}
  .composer-copy{gap:5px 10px;padding:0 3px}
  .composer-copy span{font-size:10px}.composer-copy small{font-size:8px;margin-left:auto}
  .composer-input{padding:9px 10px;gap:7px}
  .note-composer textarea{min-height:54px;max-height:90px;font-size:16px;line-height:1.5}
  .note-color-row{gap:9px}.note-color{width:21px;height:21px}
  .composer-action>span{display:block;font-size:8px}
  .composer-action button{width:46px;min-width:46px;height:46px;border-radius:14px}
  .composer-attach{padding-left:0}
}

/* 收藏夹配图作为第二张小照片，始终落在主照片下方的左侧留白。 */
.ref-layout .public-note.note-ref .note-attach,
.ref-layout .note-column .public-note.note-ref .note-attach,
.ref-layout .note-modal-body .public-note.note-ref .note-attach{
  display:block!important;position:absolute;z-index:4;left:8%;top:65%;bottom:auto;
  width:17%;aspect-ratio:1;margin:0;padding:3px;border:1px solid #e8e7ef;
  border-radius:4px;background:#fff;box-shadow:2px 5px 11px rgba(47,51,91,.22);
  transform:rotate(-10deg);transform-origin:center;pointer-events:none;
}
.ref-layout .public-note.note-ref .note-attach img{display:block;width:100%;height:100%;object-fit:cover}
.ref-layout .public-note.note-ref .note-attach.is-broken img{display:none}
.ref-layout .note-ref-main>.note-sign{display:none}
.ref-layout .note-ref-footer>span:nth-child(2){font-style:italic;letter-spacing:.02em;text-transform:none}
@media(max-width:820px){
  .ref-layout .note-column .public-note.note-ref .note-attach,
  .ref-layout .note-modal-body .public-note.note-ref .note-attach{left:8%;top:65%;width:16%;padding:2px}
}

/* 投稿栏收起时如一条轻量输入胶囊；展开后保留完整工具。 */
.note-composer{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center}
.note-composer .composer-copy{grid-column:1/-1}
.composer-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.composer-tools .note-color-row{flex:none}
.composer-tools .composer-attach{flex:none;padding:0}
.note-composer:not(.is-expanded){display:grid;grid-template-columns:minmax(0,1fr) 42px;grid-template-rows:42px;gap:8px;padding:7px 9px;border-radius:999px;background:#fff}
.note-composer:not(.is-expanded) .composer-copy,.note-composer:not(.is-expanded) .composer-tools,.note-composer:not(.is-expanded) .composer-action>span{display:none}
.note-composer:not(.is-expanded) .composer-input{grid-column:1;min-width:0;padding:4px 12px;border:0;background:transparent;box-shadow:none}
.note-composer:not(.is-expanded) textarea{min-height:32px;height:32px;max-height:32px;overflow:hidden;resize:none;white-space:nowrap;padding:5px 0}
.note-composer:not(.is-expanded) .composer-action{display:block;grid-column:2;align-self:center;padding:0}
.note-composer:not(.is-expanded) .composer-action button{display:grid;place-items:center;width:42px;min-width:42px;height:42px;border-radius:50%;background:#a9bff0;box-shadow:none}
.note-composer.is-expanded .composer-input{grid-column:1;box-shadow:inset 0 0 0 1px rgba(86,122,206,.08)}
.note-composer.is-expanded .composer-action{grid-column:2}
.note-sort .note-mine-toggle{margin:0;font:600 11px/1.2 "AYJ Source Han Serif","Source Han Serif SC",serif}
.note-sort .note-mine-toggle[aria-pressed="true"]{background:#5b76c8;border-color:#5b76c8;color:#fff}
.note-modal{padding-top:54px;padding-bottom:14px}
.note-modal-shell{position:relative;min-width:0;width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 68px)}
.note-modal-shell .note-modal-panel{width:100%;max-height:calc(100dvh - 68px)}
.note-modal-close{display:grid;place-items:center;z-index:8;right:3px;top:-42px;width:34px;height:34px;border:1px solid rgba(86,122,206,.22);background:#fff;color:#596789;font-size:23px;box-shadow:0 4px 12px rgba(30,43,69,.15)}
.composer-action button{display:grid;place-items:center;width:48px;min-width:48px;height:48px;padding:0;border-radius:50%;background:#6381ce;box-shadow:0 5px 15px rgba(76,105,185,.2);transition:background .18s,transform .18s,box-shadow .18s}
.composer-action button:hover{background:#4f6fbe;transform:translateY(-1px);box-shadow:0 7px 18px rgba(76,105,185,.26)}
.composer-action button:active{transform:translateY(0)}
.composer-action button svg{display:block;width:22px;height:22px;flex:none}
.note-modal{padding-top:14px;padding-bottom:14px}
.note-modal-shell,.note-modal-shell .note-modal-panel{max-height:calc(100dvh - 28px)}
.note-modal-close{right:14px;top:13px;width:34px;height:34px;border:0;border-radius:0;background:transparent;color:#56648a;font:400 30px/1 Arial,sans-serif;box-shadow:none}
.note-modal-close:hover{background:transparent;color:#324a8b}
.note-modal-shell .note-modal-panel{padding-top:54px}
.ref-layout .note-column .public-note.note-ref.is-just-posted{z-index:10;outline:3px solid #5b76c8;outline-offset:3px;box-shadow:0 0 0 8px rgba(91,118,200,.16),0 18px 36px rgba(55,71,133,.3)}
.form-status:not(:empty){position:absolute;left:12px;bottom:calc(100% + 7px);z-index:12;max-width:calc(100% - 24px);padding:7px 11px;border:1px solid #d9e3fa;border-radius:10px;background:#f5f8ff;box-shadow:0 6px 18px rgba(56,75,125,.15);color:#4864aa;font-size:11px;line-height:1.45}
@media(max-width:820px){
  .note-sort{gap:5px;flex-wrap:nowrap}.note-sort button,.note-sort .note-mine-toggle{padding:7px 9px;font-size:10px;white-space:nowrap}
  .note-composer:not(.is-expanded){grid-template-columns:minmax(0,1fr) 40px;grid-template-rows:40px;gap:7px;padding:6px 8px}
  .note-composer:not(.is-expanded) .composer-action button{width:40px;min-width:40px;height:40px}
  .note-composer.is-expanded .composer-action button{width:40px;min-width:40px;height:40px}
  .note-composer textarea,.note-composer.is-expanded textarea{font-size:12px;line-height:1.5}
  .note-composer:not(.is-expanded) textarea{min-height:30px;height:30px;max-height:30px}
  .note-composer.is-expanded .composer-input{gap:10px;padding:11px 10px}
  .composer-tools{gap:9px;justify-content:space-between;flex-wrap:nowrap;min-width:0;padding:3px 2px 2px 4px;overflow:visible}
  .composer-tools::-webkit-scrollbar{display:none}
  .composer-tools .note-color-row{gap:6px;padding:1px 0}.composer-tools .note-color{width:17px;height:17px}
  .composer-tools .attach-pick{height:28px;min-height:28px;padding:0 7px;border-radius:9px;font-size:9px;white-space:nowrap}
  .composer-tools .composer-attach{margin-left:auto}
  .composer-tools .attach-preview-title{display:none}
  .note-composer.is-expanded .composer-copy span{font-size:10px}
  .note-modal-shell{width:calc(100vw - 24px)}
}
@media(max-width:350px){
  .composer-tools .note-color-row{gap:5px}.composer-tools .note-color{width:16px;height:16px}
  .composer-tools .attach-pick{padding:0 4px;font-size:8px}
}

/* popo: 移动端输入与安全区兜底（iOS 聚焦不缩放 / 安卓键盘不顶飞 / 360 档不横向溢出） */
@media(max-width:820px){
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{max-width:100%;overflow-x:hidden}
.note-composer textarea,#guestbookInput,.note-composer input,.note-composer select{
  font-size:16px;line-height:1.5;-webkit-text-size-adjust:100%
}
.note-composer{max-width:100%}
.note-composer *{min-width:0}
button,.note-composer button,.note-card,.public-note{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
#guestbookForm{padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))}
.note-viewport,.note-track,.note-column{max-width:100%;overflow-x:hidden}
@media(max-width:360px){
  .note-composer{gap:6px;padding:8px 8px 8px 10px}
  .note-composer textarea{min-height:40px}
}
}
@media(min-width:391px) and (max-width:430px){
  .note-composer{padding:9px 10px 9px 14px}
}

/* 移动中的卡片必须持续绘制，避免进入视口时才栅格化而闪白。 */

/* popo: 窄屏取消视口遮罩，避免整轨离屏合成导致每帧重栅格化 */
@media(max-width:820px){
.note-viewport{mask-image:none;-webkit-mask-image:none}
}
.loading-note{animation:popoNoteLoading 1.1s ease-in-out infinite}
@keyframes popoNoteLoading{0%,100%{opacity:.45}50%{opacity:1}}

/* ===== popo: 非宽度类适配（键盘 / 触控 / 安全区 / 旧安卓降级） =====
   只看「可视视口 / 触控尺寸 / 系统偏好」，不看机型也不看 DPR：
   - 键盘：安卓由 JS 把可视视口高度写进 --ayj-vv-height（不读 dvh），键盘弹起时整页收到可视区，
     投稿栏既不会被顶出屏幕，也不会因为高度被压扁而叠在一起
   - 投稿栏：发送键固定占 44px 一条轨道，工具行只在左侧列里换行，永远钻不到发送键下面
   - 触控：排序 / 选图 / 关闭 / 跳过 / 发送 / 附件 一律 ≥44px（配色圆点保持视觉尺寸，不抢点击）
   - 安全区：底部统一 env(safe-area-inset-bottom)
   - 旧安卓：模态框 dvh 带 vh 回退；选图缩略图没有 aspect-ratio 时用 padding-top 撑比例
   - 动效：prefers-reduced-motion 下关掉新增过渡
   断点只跟既有档位：380 / 430 / 820（矮视口另加 max-height 一档） */
@media(max-width:820px){
  /* 键盘弹起：整页收到可视区，底部不留空档（offsetTop 由 JS 一起写，键盘把视口顶上去时跟着上移） */
  html.kb-open body{height:var(--ayj-vv-height,100%);bottom:auto;top:calc(-1 * var(--ayj-vv-top,0px))}
  html.kb-open .guestbook-main{grid-template-rows:auto minmax(0,1fr) auto}
  html.kb-open .note-viewport{min-height:0}
  /* 投稿栏：左列自适应，右列固定 44px 只放发送键 */
  .note-composer{grid-template-columns:minmax(0,1fr) 44px;column-gap:8px}
  .note-composer .composer-copy{grid-column:1/-1}
  .note-composer .composer-input{grid-column:1;min-width:0}
  .note-composer .composer-action{grid-column:2;position:relative;z-index:2}
  .note-composer .composer-action button{min-width:44px;min-height:44px}
  /* 安卓壳（in-shell）旧版给右下齿轮预留的 100px 会把新版双列投稿栏压窄：
     收起态早已被后面的 padding 覆盖成 8px，展开态这里同样取消，输入框回到整行宽度。
     齿轮若出现也只在收起态悬浮，展开态保持与收起态一致的避让策略。 */
  html.in-shell .note-composer.is-expanded{padding-right:10px}
  /* 展开态发送键固定在 44px 轨道内，宽度也压回 44，避免 40×44 的窄触控 */
  .note-composer.is-expanded .composer-action button{width:44px;min-width:44px;height:44px}
  .composer-tools{flex-wrap:wrap;row-gap:6px;column-gap:8px;justify-content:flex-start;min-width:0;padding:2px 0 0;overflow:visible}
  .composer-tools .composer-attach{flex:1 1 auto;min-width:0;margin-left:0;justify-content:flex-end}
  .composer-tools .attach-pick{min-height:44px;max-width:100%;padding:0 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
  .composer-tools .attach-preview{min-height:44px;max-width:100%}
  /* 收起态胶囊同样保证 44px 触控 */
  .note-composer:not(.is-expanded){grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:44px}
  .note-composer:not(.is-expanded) .composer-action button{width:44px;min-width:44px;height:44px}
  /* 触控尺寸：排序档位 / 关闭 / 跳过 / 发送 / 选图卡片 / 清除配图 */
  .note-sort button,.note-sort .note-mine-toggle{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .dog-picker-close{width:44px;height:44px;min-width:44px;min-height:44px;right:8px;top:6px;font-size:26px}
  .note-modal-close{width:44px;height:44px;min-width:44px;min-height:44px}
  .image-picker-skip,.dog-picker-send{min-height:44px}
  .image-option{min-height:44px}
  .attach-clear{width:30px;height:30px;min-width:30px;min-height:30px;font-size:15px}
  /* 安全区：底部按钮与面板都不贴边 */
  #guestbookForm{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
  .dog-picker-panel,.image-picker-panel{padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))}
}
/* 380 及以下：附件按钮独占一行，避免和发送键抢位置 */
@media(max-width:380px){
  .composer-tools{column-gap:6px}
  .composer-tools .composer-attach{flex:1 1 100%}
  .composer-tools .attach-pick{width:100%;padding:0 8px}
  .note-color-row{gap:8px}
}
/* 矮视口（键盘 + 小屏 / 横屏）：先收装饰文案，再收输入框，保证发送键留在可视区 */
@media(max-width:820px) and (max-height:520px){
  .note-composer .composer-copy{display:none}
  .note-composer textarea{min-height:44px;max-height:64px}
  .note-composer.is-expanded .composer-input{padding:8px;gap:6px}
  .note-sort{padding-bottom:2px}
}
html.kb-open .note-composer .composer-copy{display:none}
html.kb-open .note-composer textarea{min-height:44px;max-height:64px}

/* 旧安卓兜底：dvh 不认时退回 vh，模态框不会高到看不见关闭键 */
.note-modal-shell{max-height:calc(100vh - 68px);max-height:calc(100dvh - 68px)}
.note-modal-shell .note-modal-panel{max-height:calc(100vh - 68px);max-height:calc(100dvh - 68px)}
.note-modal-shell,.note-modal-shell .note-modal-panel{max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px)}

/* 旧安卓兜底：选图缩略图没有 aspect-ratio 时用 padding-top 撑比例（不用 container query） */
.image-option-thumb{position:relative;height:0;padding-top:75%}
.image-option-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
@supports (aspect-ratio:4/3){
  .image-option-thumb{height:auto;padding-top:0;aspect-ratio:4/3}
  .image-option-thumb img{position:static}
}

/* 动效降级：投稿栏与选图卡片不再做位移动画 */
@media(prefers-reduced-motion:reduce){
  .note-composer,.composer-tools,.attach-pick,.attach-preview,.attach-clear,
  .image-option,.image-option-thumb img,.note-sort button,
  .dog-picker-close,.note-modal-close{transition:none!important;animation:none!important}
  .image-option:hover,.image-option:focus-visible{transform:none!important}
}

/* ===== 卡片角标与右下角落款（2026-11-18） =====
   1) 右上角「✿ 两位随机数」已从模板里删掉，位置让给小狗
   2) 小狗从右下角挪到右上角，倾斜方向反过来（原来 -13deg → 现在 +13deg）
   3) 右下角文案（英文小行 + 细横线 + 中文）整块贴住落款横线上方：
      文案到横线、横线到卡片内框的留白一致，且不再跟着标题长短浮动
   断点跟页面既有档位：≤430 / ≤820 / 821–1023 / ≥1024 */
.public-note.note-ref{
  --note-foot-offset:calc(5% + 13px);   /* 卡片底边 → 落款横线的距离（落款自身高度 + bottom:5%） */
  --note-copy-gap:8px;                  /* 文案与横线之间的留白（上下同值） */
}
@media(max-width:820px){
  .public-note.note-ref{--note-foot-offset:calc(5% + 13px)}
}

/* 品牌行压在胶带贴纸上面（原来胶带 z-index 比文字高，字被盖掉一截） */
.ref-layout .public-note.note-ref .note-ref-brand{z-index:6}

/* 落款整行：文字在「落款横线」与「卡片内框」之间居中，不再贴着内框下沿。
   手机端网格卡片的绝对定位子元素以「所在网格区」为包含块（高度为 0），百分比 bottom 会算成 0，
   所以手机端用 px 微调，桌面沿用卡片百分比定位。 */
.ref-layout .public-note.note-ref .note-ref-footer{
  position:absolute;left:6%;right:6%;bottom:5%;z-index:3;
  padding-top:2px;padding-bottom:0;line-height:1.05;align-items:center;
}
@media(max-width:820px){
  .ref-layout .public-note.note-ref .note-ref-footer{bottom:4px}
}

/* 小狗：右上角，反方向倾斜。尺寸压在「标题区上沿以上」的高度内，
   再给标题留一点右内边距，长标题的文字不会压到小狗身上 */
.ref-layout .public-note.note-ref .note-dog,
.ref-layout .note-column .public-note.note-ref .note-dog,
.ref-layout .note-modal-body .public-note.note-ref .note-dog{
  display:block;left:auto;right:1.5%;top:1.5%;bottom:auto;
  width:clamp(34px,3.3vw,42px);max-width:none;opacity:1;
  transform:rotate(13deg);transform-origin:50% 50%;
  filter:drop-shadow(0 4px 6px rgba(48,58,102,.22));
}
@media(min-width:821px) and (max-width:1023px){
  .ref-layout .public-note.note-ref .note-dog,
  .ref-layout .note-column .public-note.note-ref .note-dog,
  .ref-layout .note-modal-body .public-note.note-ref .note-dog{right:1.5%;top:1.5%;width:40px}
}
@media(max-width:820px){
  .ref-layout .public-note.note-ref .note-dog,
  .ref-layout .note-column .public-note.note-ref .note-dog,
  .ref-layout .note-modal-body .public-note.note-ref .note-dog{right:2%;top:1%;width:clamp(34px,9vw,44px)}
}
@media(max-width:430px){
  .ref-layout .public-note.note-ref .note-dog,
  .ref-layout .note-column .public-note.note-ref .note-dog,
  .ref-layout .note-modal-body .public-note.note-ref .note-dog{right:2%;top:1%;width:clamp(32px,8.6vw,42px)}
}

@media(min-width:821px){
  /* 桌面/平板：右上角让给小狗。日期往左挪，点赞数（✦ N）不再挤在品牌行右侧 ——
     卡片本身已经有点赞/收藏入口，详情弹窗里也有 ♥ 计数，这里只留装饰性的花与心 */
  .public-note.note-ref{--note-foot-offset:23px}
  .ref-layout .public-note.note-ref .note-ref-footer{bottom:11px}
  /* 昵称小标签：原来正好压在落款横线上，往上抬到线外 */
  .ref-layout .note-ref-footer .note-anon-name{transform:translateY(-100%) translateY(-2px)}
  .ref-layout .public-note.note-ref .square-date{right:22%}
  .ref-layout .public-note.note-ref .square-count{display:none}
  /* 标题右侧给小狗让路：长标题最后一行不会钻到小狗下面 */
  .ref-layout .public-note.note-ref .note-ref-title{padding-right:9%}
}
@media(min-width:821px) and (max-width:1023px){
  .public-note.note-ref{--note-foot-offset:22px}
  .ref-layout .public-note.note-ref .note-ref-footer{bottom:10px}
  .ref-layout .public-note.note-ref .square-date{right:26%}
  .ref-layout .public-note.note-ref .square-count{display:none}
}
@media(max-width:820px){
  .ref-layout .public-note.note-ref .note-ref-title{padding-right:8%}
}

/* 右下角文案：整块钉在文字区下沿（不再被标题长度推着走）—— 文案与横线、横线与内框的留白一致 */
.ref-layout .public-note.note-ref .note-ref-main{
  top:15%;height:auto;bottom:calc(var(--note-foot-offset) + var(--note-copy-gap));
}
.ref-layout .public-note.note-ref .note-ref-template{
  position:absolute;left:0;right:0;bottom:0;margin:0;padding:0;
  display:flex;flex-direction:column;justify-content:flex-end;
}
.ref-layout .public-note.note-ref .note-ref-template .note-ref-en{margin:0}
.ref-layout .public-note.note-ref .note-ref-template .note-ref-rule{margin:var(--note-copy-gap) 0 0}
.ref-layout .public-note.note-ref .note-ref-template .note-ref-body{margin:var(--note-copy-gap) 0 0}
.ref-layout .note-modal-body .public-note.note-ref .note-ref-main{
  top:15%;height:auto;bottom:calc(var(--note-foot-offset) + var(--note-copy-gap));
}
@media(max-width:820px){
  .ref-layout .public-note.note-ref .note-ref-main,
  .ref-layout .note-modal-body .public-note.note-ref .note-ref-main{
    left:36%;right:5%;top:15%;
  }
}

/* Shared card baselines and readable message type across card sizes. */
:root{--popo-pg-safe-bottom:env(safe-area-inset-bottom,0px)}
.ref-layout .public-note.note-ref{
  --note-dog-size:clamp(44px,4vw,54px);
  --note-footer-bottom:11px;
  --note-footer-height:18px;
}
.ref-layout .public-note.note-ref .note-ref-brand{align-items:center}
.ref-layout .public-note.note-ref .note-brand-left{
  max-width:calc(100% - var(--note-dog-size) - 8px);
}
.ref-layout .public-note.note-ref .square-date{
  top:6%;right:calc(3% + var(--note-dog-size) + 6px);
  height:7%;margin:0;display:flex;align-items:center;
  line-height:1;white-space:nowrap;
}
.ref-layout .public-note.note-ref .note-dog,
.ref-layout .note-column .public-note.note-ref .note-dog,
.ref-layout .note-modal-body .public-note.note-ref .note-dog{
  z-index:20;right:1%;top:1%;width:var(--note-dog-size);
}
.ref-layout .public-note.note-ref .note-ref-footer{
  bottom:var(--note-footer-bottom);height:var(--note-footer-height);
  min-height:var(--note-footer-height);padding:0;
  display:flex;align-items:center;
}
.ref-layout .public-note.note-ref .note-ref-title.note-message,
.ref-layout .note-column .public-note.note-ref .note-ref-title.note-message,
.ref-layout .note-modal-body .public-note.note-ref .note-ref-title.note-message,
.ref-layout .note-composer #guestbookInput{
  font-family:"AYJ Source Han Serif","Source Han Serif SC","Noto Serif SC","Songti SC",serif;
  font-size:12px;line-height:1.5;font-weight:600;letter-spacing:0;
}
.ref-layout .note-composer #guestbookInput::placeholder{
  font-family:inherit;font-size:inherit;font-weight:400;
}
.ref-layout #guestbookForm{padding-bottom:calc(8px + var(--popo-pg-safe-bottom))}
@media(min-width:821px) and (max-width:1023px){
  .ref-layout .public-note.note-ref{--note-dog-size:clamp(44px,4.8vw,50px);--note-footer-bottom:10px}
  .ref-layout .note-column .public-note.note-ref{aspect-ratio:1}
}
@media(min-width:821px) and (max-width:899px){
  .ref-layout .note-column .public-note.note-ref{aspect-ratio:.94}
}
@media(min-width:1024px) and (max-width:1279px){
  .ref-layout .note-column .public-note.note-ref{aspect-ratio:1.25}
}
@media(min-width:821px){
  .ref-layout .public-note.note-ref .note-ref-brand{
    top:6%;height:7%;padding:0;border-bottom:1px solid #c6cae6;
  }
}
@media(min-width:1024px){
  .ref-layout .note-modal-body .public-note.note-ref{--note-dog-size:clamp(54px,5vw,66px)}
}
@media(max-width:820px){
  .ref-layout .public-note.note-ref{
    --note-dog-size:clamp(42px,11vw,52px);
    --note-footer-bottom:4px;
  }
  .ref-layout .public-note.note-ref .note-ref-brand{
    right:6%;height:auto;min-height:18px;padding:0 0 4px;
  }
  .ref-layout .public-note.note-ref .square-date{display:none}
  .ref-layout .public-note.note-ref .note-ref-date-abs{
    display:flex;align-items:center;left:6%;bottom:calc(var(--note-footer-bottom) + 8px);
    z-index:4;height:var(--note-footer-height);font-size:9px;line-height:1;
  }
  .ref-layout .public-note.note-ref .note-ref-footer{
    padding-left:clamp(92px,24%,125px);gap:6px;
  }
  .ref-layout .public-note.note-ref .note-ref-footer>span:nth-child(2){margin-left:0}
  .ref-layout .public-note.note-ref .note-ref-icons{margin-left:auto}
  .ref-layout .note-modal-body .public-note.note-ref{--note-dog-size:clamp(48px,12vw,60px)}
  .ref-layout .note-modal-body .public-note.note-ref .note-ref-date-abs{
    bottom:var(--note-footer-bottom);
  }
}
@media(max-width:380px){
  .ref-layout .public-note.note-ref{--note-dog-size:42px}
  .ref-layout .public-note.note-ref .note-ref-footer{padding-left:90px;letter-spacing:.02em}
}

/* Give the expanded card a distinct lower margin around its fixed caption and credit. */
@media(min-width:821px){
  .ref-layout .note-modal-shell{width:min(1120px,90vw,calc(128vh - 187px))}
  .ref-layout .note-modal-body .public-note.note-ref{
    aspect-ratio:1.28;
    --note-footer-bottom:clamp(20px,1.8vw,28px);
    --note-foot-offset:calc(var(--note-footer-bottom) + var(--note-footer-height) + 18px);
  }
  .ref-layout .note-modal-body .public-note.note-ref .note-ref-title.note-message{font-size:clamp(14px,1.4vw,18px)}
}
@supports (height:100dvh){
  @media(min-width:821px){
    .ref-layout .note-modal-shell{width:min(1120px,90vw,calc(128dvh - 187px))}
  }
}
@media(max-width:820px){
  .ref-layout .note-modal-body .public-note.note-ref{
    --note-footer-bottom:12px;
    --note-foot-offset:calc(var(--note-footer-bottom) + var(--note-footer-height) + 12px);
  }
}

/* 正文缩小一号后，六个完整行保持原有文字区高度；详情仍为八整行。 */
@media(min-width:821px){
  .ref-layout .note-column .public-note.note-ref{min-height:230px}
}
.ref-layout .note-column .public-note.note-ref .note-ref-title.note-message{
  -webkit-line-clamp:6;
  max-height:9em;
  overflow:hidden;
}
.ref-layout .public-note.note-ref .note-ref-title.note-message{
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.ref-layout .note-modal-body .public-note.note-ref .note-ref-title.note-message{
  -webkit-line-clamp:unset;
  max-height:12em;
  overflow-y:auto;
}

/* 输入框滚动条沿用卡片的蓝色与圆角，轨道保持通透。 */
.ref-layout .note-composer #guestbookInput{
  scrollbar-width:thin;
  scrollbar-color:#9cadd5 transparent;
  overscroll-behavior:contain;
}
.ref-layout .note-composer #guestbookInput::-webkit-scrollbar{width:8px}
.ref-layout .note-composer #guestbookInput::-webkit-scrollbar-track{background:transparent}
.ref-layout .note-composer #guestbookInput::-webkit-scrollbar-thumb{
  border:2px solid transparent;
  border-radius:99px;
  background:linear-gradient(180deg,#b8c5e3,#8499ca) padding-box;
}
.ref-layout .note-composer #guestbookInput::-webkit-scrollbar-thumb:hover{
  background:#788ec3 padding-box;
}
.ref-layout .note-composer #guestbookInput::-webkit-scrollbar-button{display:none;width:0;height:0}

/* Keep the archive heading and optional nickname inside the card frame. */
.ref-layout .public-note.note-ref .note-ref-brand{box-sizing:border-box;min-width:0;overflow:hidden}
.ref-layout .public-note.note-ref .note-brand-left{min-width:0;overflow:hidden}
.ref-layout .public-note.note-ref .note-brand-left{box-sizing:border-box;padding-left:.5em}
.ref-layout .public-note.note-ref .note-brand-title{
  flex:none;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;height:auto;line-height:1.1;
}
.ref-layout .public-note.note-ref .note-ref-brand .note-name{
  flex:0 1 auto;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;
}
@media(max-width:820px){
  .ref-layout .note-column .public-note.note-ref .note-brand-left{padding-left:1em}
  .ref-layout .note-modal-body .public-note.note-ref .note-ref-brand{
    position:absolute;left:6%;right:6%;top:6%;height:7%;min-height:16px;
    padding:0;border-bottom:1px solid #c6cae6;
  }
}
@media(min-width:600px) and (max-width:820px){
  .ref-layout .note-modal-shell{width:min(calc(100vw - 24px),calc(110vh - 203px))}
}
@supports (height:100dvh){
  @media(min-width:600px) and (max-width:820px){
    .ref-layout .note-modal-shell{width:min(calc(100vw - 24px),calc(110dvh - 203px))}
  }
}


/* 输入框与卡片留言保持相同字号。 */
:root{--note-message-font-size:clamp(10px,2.8vw,12px)}
@media(min-width:821px){
  :root{--note-message-font-size:clamp(11px,1vw,16px)}
}
.ref-layout .note-column .public-note.note-ref .note-ref-title.note-message,
.ref-layout .note-composer #guestbookInput,
.note-composer #guestbookInput{
  font-size:var(--note-message-font-size);
  line-height:1.5
}

@media (max-width:820px){.ref-layout .note-composer #guestbookInput,.note-composer #guestbookInput{font-size:16px;line-height:1.5}}
