
:root{--paper:#fcfcf9;--paper2:#fff;--ink:#42464a;--ink2:#676d71;--muted:#9ea4a5;--line:#d9dddc;--line2:#ebeeec;--accent:var(--theme-accent);--accent-soft:var(--theme-accent-soft);--sky:#d9e9ee;--mint:#dbece1;--shadow:0 5px 24px rgba(65,75,75,.095),0 1px 3px rgba(65,75,75,.075)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:'Pretendard Variable','Pretendard','Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:var(--ink);font-size:13px}html{background:#fafbf9}body{overflow-x:hidden}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}button{touch-action:manipulation} .hidden{display:none!important}
.desktop{position:relative;min-height:100dvh;overflow:hidden;isolation:isolate;background:#fafbf9}.wallpaper{position:fixed;inset:0;background:radial-gradient(ellipse at 27% 15%,#fff 0,transparent 43%),radial-gradient(ellipse at 90% 80%,#f3f7f3 0,transparent 40%),#fafbf9;background-size:cover;background-position:center;z-index:-1;pointer-events:none}
/* Tab menu is the only window-management UI; no bottom dock. */
.tab-launch{position:fixed;top:84px;left:0;z-index:120;background:#fff;border:1px solid var(--accent);border-left:0;border-radius:0 6px 6px 0;box-shadow:var(--shadow);padding:11px 10px;color:color-mix(in srgb,var(--theme-accent) 65%,#555);font-size:11px;font-weight:800;letter-spacing:.035em}.tab-launch:hover,.tab-launch[aria-expanded=true]{background:var(--accent-soft)}
.tab-menu{position:fixed;top:84px;left:44px;z-index:119;width:250px;max-height:calc(100dvh - 110px);overflow:auto;background:#fff;border:1px solid color-mix(in srgb,var(--theme-accent) 25%,#fff);box-shadow:0 12px 35px #44515222;border-radius:7px;padding:12px}.tab-menu h2{font-size:13px;font-weight:700;margin:2px 0 10px}.tab-heading{font-size:10px;font-weight:750;color:#98a3a4;letter-spacing:.13em;margin:14px 0 7px}.tab-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}.tab-btn{font-size:11px;padding:9px 6px;border:1px solid #e5e5e3;background:#fff;text-align:center;border-radius:4px;color:#62696d}.tab-btn:hover{background:var(--theme-accent-soft);border-color:color-mix(in srgb,var(--theme-accent) 50%,#fff)}.tab-action{display:block;width:100%;padding:10px;border:1px solid #e5e5e3;background:#fff;text-align:left;color:#525c60;border-radius:4px;margin-top:6px;font-size:11px}.tab-action:hover{background:var(--theme-accent-soft)}.tab-desc{font-size:10px;color:#99a0a1;line-height:1.5;margin:7px 0 0}
/* Windows float across the actual browser viewport, not a central stage. */
.window{position:fixed;background:#fff;border:1px solid #bfc8c5;box-shadow:var(--shadow);border-radius:3px;display:flex;flex-direction:column;overflow:hidden;resize:both;min-width:220px;min-height:100px}.window[hidden]{display:none!important}.window.is-moving{box-shadow:0 17px 48px #53585b29}.titlebar{height:31px;min-height:31px;display:flex;justify-content:space-between;align-items:center;gap:9px;padding:0 6px 0 11px;border-bottom:1px solid color-mix(in srgb,var(--theme-accent) 25%,#fff);background:linear-gradient(180deg,var(--theme-header) 0%,var(--theme-surface) 100%);cursor:grab;touch-action:none;user-select:none}.window.is-moving .titlebar{cursor:grabbing}.title-text{min-width:0;font-size:11px;font-weight:700;display:flex;align-items:center;gap:7px;color:#616c70;letter-spacing:.02em}.title-text::before{content:'';width:10px;height:10px;background:#fff;border:1px solid color-mix(in srgb,var(--theme-accent) 85%,#fff);box-shadow:inset 2px 2px var(--theme-accent-soft);flex:none;border-radius:2px}.win-actions{display:flex;gap:4px}.win-close{background:#fff;border:1px solid color-mix(in srgb,var(--theme-accent) 60%,#fff);color:color-mix(in srgb,var(--theme-accent) 65%,#555);width:20px;height:20px;display:grid;place-items:center;border-radius:2px;font-size:15px;line-height:1;padding:0}.win-close:hover{background:var(--theme-accent-soft)}.content{min-height:0;flex:1;overflow:auto;scrollbar-color:#d4dad7 transparent;scrollbar-width:thin}
/* All coordinates are initial positions only; script allows moving to any viewport edge. */
#w-photo-v{left:4%;top:11%;width:264px;height:492px;z-index:12}
#w-main{left:29%;top:15%;width:600px;height:547px;z-index:14}
#w-dday{right:3.2%;top:44%;width:300px;height:300px;z-index:11}
#w-banners{right:3.2%;top:8%;width:332px;height:276px;z-index:11}
#w-music{left:5%;top:73%;width:308px;height:132px;z-index:15}
#w-photo-h{left:35%;top:75.5%;width:476px;height:189px;z-index:13}
/* pictures swap when clicking directly on the image */
.photo-frame{height:100%;width:100%;border:0;position:relative;display:flex;align-items:center;justify-content:center;padding:0;background:linear-gradient(135deg,#fafaf8,#f5f5f3 40%,#fff);overflow:hidden}.photo-frame img{width:100%;height:100%;object-fit:cover;display:block;position:absolute;inset:0}.photo-frame:hover{box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--theme-accent) 45%,transparent)}.placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;color:#a4aca8;line-height:1.6;font-size:12px;padding:14px;pointer-events:none}.placeholder .photo-mark{height:49px;width:60px;border:1px solid #d7ded9;display:grid;place-items:center;background:#fff;font-size:24px;color:#c9d8d1}.photo-frame:has(img) .placeholder{display:none}
/* main = EXACTLY FOUR VERTICALLY STACKED SECTIONS */
.main-list{padding:0 12px 9px}.section{border-bottom:1px solid #e1e5e3}.section:last-child{border-bottom:0}.section-toggle{display:grid;grid-template-columns:55px minmax(0,1fr) 24px;align-items:center;gap:11px;width:100%;padding:14px 2px;border:0;background:#fff;text-align:left;color:inherit}.section-toggle:hover{background:#fbfcfb}.section-avatar{height:53px;width:53px;flex:none;display:grid;place-items:center;background:#f5f8f7;border:1px solid #dae1df;color:#b2bcb6;overflow:hidden}.section-avatar img{width:100%;height:100%;object-fit:cover}.section-avatar .glyph{font-size:23px}.section-title{font-weight:740;font-size:13px;line-height:1.3;color:#55646a;margin-bottom:4px}.section-time{font-size:10px;color:#a4aaa8;margin-bottom:4px}.section-sub{color:#7d8584;font-size:11px;line-height:1.48;overflow-wrap:anywhere}.chev{font-size:18px;font-weight:300;color:color-mix(in srgb,var(--theme-accent) 75%,#555);text-align:center;transition:transform .18s}.section.open .chev{transform:rotate(180deg)}.section-panel{display:none;margin:0 2px 12px 68px;background:#fcfdfc;border:1px solid #e7eae7;padding:11px;font-size:11px;line-height:1.65}.section.open .section-panel{display:block}.section-panel h3{font-size:12px;margin:0 0 7px}.section-panel p{margin:5px 0;white-space:pre-wrap}.section-panel .profile-image{width:76px;height:76px;object-fit:cover;background:#f1f3f1;border:1px solid #e3e5e3;float:left;margin:0 10px 8px 0}.profile-links{display:flex;gap:7px;margin-top:10px;clear:both}.text-link{border:1px solid color-mix(in srgb,var(--theme-accent) 30%,#fff);background:white;padding:5px 10px;font-size:10px;color:var(--theme-muted)}
/* nested log/gallery categories fold closed independently */
.category{border:1px solid #e1e4e3;background:#fff;margin:6px 0}.category-head{width:100%;border:0;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:9px 10px;font-weight:650;color:#606b70;text-align:left;font-size:11px}.category-head:after{content:'+';font-size:16px;font-weight:400;color:color-mix(in srgb,var(--theme-accent) 75%,#555)}.category.is-open .category-head:after{content:'−'}.category-body{display:none;padding:0 10px 9px}.category.is-open .category-body{display:block}.log-link{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:8px;background:transparent;border:0;border-top:1px solid #eceeeb;width:100%;padding:10px 0;font-size:11px;color:#606767}.log-link:hover{color:color-mix(in srgb,var(--theme-accent) 75%,#555)}.log-link time{white-space:nowrap;color:#aeb1b0;font-size:9px}.log-detail{background:#f9faf8;border:1px solid #e1e4df;padding:11px;margin-top:7px}.log-detail h4{margin:0 0 8px;font-size:12px}.log-detail p{margin:0}.back{border:0;background:transparent;padding:0;color:color-mix(in srgb,var(--theme-accent) 70%,#555);margin-bottom:8px;font-size:11px}.thumb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:7px 0 1px;border-top:1px solid #eceeeb}.thumb{display:grid;place-items:center;aspect-ratio:1/1;background:#f3f5f1;border:1px solid #e1e4e0;padding:0;overflow:hidden;color:#b4bdba}.thumb img{width:100%;height:100%;object-fit:cover;display:block}.thumb:hover{border-color:var(--theme-accent)}.pages{display:flex;justify-content:space-between;align-items:center;gap:6px;padding-top:8px;font-size:10px;color:#a1a8a4}.pages button{border:1px solid #e1e4e1;background:#fff;color:#7e8686;font-size:10px;padding:4px 8px}.pages button:disabled{opacity:.45;cursor:default}
/* guestbook: the 4th section is permanently open */
.guest-head{display:grid;grid-template-columns:55px 1fr;gap:11px;align-items:center;padding:13px 2px 8px}.guest-body{padding:0 0 14px 68px}.guest-entry{padding:6px 0 9px;border-bottom:1px solid #e9ebe8;margin-bottom:8px}.guest-meta{font-size:10px;color:#9a9e9c}.guest-text{font-size:11px;margin-top:4px;line-height:1.55}.guest-form{display:grid;grid-template-columns:1fr auto;gap:5px}.guest-form textarea{resize:vertical;min-height:45px;max-height:100px;border:1px solid #dce1dd;padding:7px;background:#fff;outline:0;font-size:11px}.guest-form button{border:1px solid color-mix(in srgb,var(--theme-accent) 50%,#fff);background:var(--theme-accent-soft);color:color-mix(in srgb,var(--theme-accent) 65%,#555);padding:6px 11px;font-size:11px}.guest-note{font-size:9px;color:#b0b4b2;margin-top:5px}
/* D-days and banners */
.ddays{display:grid;gap:6px;padding:10px}.dday{display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:center;min-height:72px;border:1px solid #edf0ec;background:#fff;padding:5px}.dday-pic{height:62px;width:62px;display:grid;place-items:center;background:#f7f7f3;border:1px solid #e8e8e3;color:#b9c2b9;font-size:20px;overflow:hidden}.dday-pic img{width:100%;height:100%;object-fit:cover}.dday-name{font-size:11px;color:#7f8987}.dday-count{font-size:20px;letter-spacing:-.035em;color:color-mix(in srgb,var(--theme-accent) 75%,#555);margin:2px 0 0}.dday-date{font-size:10px;color:#b4b8b5}
.banners{display:grid;grid-template-columns:1fr;gap:7px;padding:11px}.banner{min-height:52px;border:1px solid #e2e7e4;background:#fff;display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding:5px;gap:3px;min-width:0;overflow:hidden}.banner:hover{border-color:var(--theme-accent)}.banner img{width:100%;height:36px;object-fit:contain}.banner-placeholder{height:36px;display:grid;place-items:center;color:#bec6c1;border:1px dashed #d9dedb;background:#fbfcfb;font-size:10px}.banner span:last-child{font-size:10px;color:#9fa4a3;text-align:center}
/* Music */
.music{height:100%;display:grid;grid-template-columns:78px 1fr;align-items:center;gap:11px;padding:11px;background:#fff}.cover{width:77px;height:77px;display:grid;place-items:center;overflow:hidden;border:1px solid #e2e7e3;background:#f6f7f5;color:#b2bfb9;font-size:22px}.cover img{width:100%;height:100%;object-fit:cover}.track-name{font-size:11px;font-weight:670;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#677171}.music-controls{display:flex;gap:11px;align-items:center;justify-content:center;margin-top:9px}.music-controls button{border:0;background:transparent;color:#77817f;font-size:15px;padding:1px 4px}.progress{width:100%;height:4px;background:#e6e8e5;margin-top:9px;cursor:pointer;overflow:hidden}.progress i{display:block;width:0;height:100%;background:var(--accent)}.music-stamp{font-size:10px;color:#a2a8a5;margin-top:5px;display:flex;justify-content:space-between}
/* Each SD can use a real uploaded image. Hover sways, click shows a bubble. */
.sd-sticker{position:fixed;z-index:9;border:0;background:none;display:grid;place-items:center;padding:3px;cursor:pointer;touch-action:none;user-select:none;transform-origin:50% 80%;transition:filter .18s}.sd-sticker:hover{animation:sticker-sway .5s ease-in-out infinite alternate;filter:drop-shadow(0 4px 5px #7775)}@keyframes sticker-sway{from{transform:rotate(-7deg) translateY(0)}to{transform:rotate(7deg) translateY(-3px)}}.sd-pic{display:grid;place-items:center;width:100%;height:100%;font-weight:750;font-size:16px;color:#8cae9b;background:linear-gradient(145deg,#e8f4e7,#fff7e9);border:2px solid white;box-shadow:0 1px 4px #9cb2a64a;border-radius:44% 47% 42% 38%;overflow:hidden}.sd-pic img{width:100%;height:100%;object-fit:contain;pointer-events:none}.sd-sticker::after{content:attr(data-word);display:none;position:absolute;bottom:calc(100% + 9px);left:50%;transform:translateX(-50%);white-space:nowrap;padding:7px 10px;border:1px solid #d6ded8;background:#fff;color:#65746a;font-size:11px;box-shadow:var(--shadow);border-radius:7px;pointer-events:none}.sd-sticker.bubble::after{display:block;animation:bubble-appear 2.3s ease forwards}@keyframes bubble-appear{0%{opacity:0;transform:translate(-50%,7px)}12%{opacity:1;transform:translate(-50%,0)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-5px)}}
/* settings panel in Tab: self-contained demo image inputs */
.settings{display:grid;gap:8px}.settings label{display:block;font-size:10px;font-weight:690;color:#697677;margin-top:7px}.settings input[type=file],.settings input[type=text],.settings input[type=date],.settings input[type=color],.settings textarea{width:100%;margin-top:4px;padding:6px;border:1px solid #e1e5e3;background:#fff;color:#51575a;font-size:10px}.settings input[type=color]{height:35px;padding:3px}.settings textarea{min-height:60px;resize:vertical}.settings summary{border:1px solid #e5e7e3;background:#fafbfa;padding:8px;font-size:11px;cursor:pointer;color:#747f80}.settings details>div{padding:5px 8px 10px;border:1px solid #e9ebe8;border-top:0}.settings button{background:var(--theme-accent-soft);border:1px solid color-mix(in srgb,var(--theme-accent) 55%,#fff);color:color-mix(in srgb,var(--theme-accent) 65%,#555);padding:7px 10px;font-size:10px;margin-top:5px}.settings small{font-size:9px;color:#acb4b1;display:block;line-height:1.6;margin-top:3px}
#settingsPanel{position:fixed;z-index:125;right:12px;top:70px;width:304px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 88px);overflow:auto;background:white;border:1px solid #c7d0cb;box-shadow:0 14px 40px #717e7830;border-radius:5px;padding:13px}.settings-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;font-size:13px;font-weight:700}.settings-top button{padding:3px 7px;background:white;border:1px solid #ddd}
.lightbox{position:fixed;inset:0;z-index:300;background:#17201ec7;display:none;align-items:center;justify-content:center;padding:30px}.lightbox.open{display:flex}.lightbox img{max-width:100%;max-height:90dvh;object-fit:contain;box-shadow:0 9px 30px #0005}.lightbox button{position:fixed;top:15px;right:20px;background:#fff;border:0;border-radius:50%;width:35px;height:35px;font-size:23px}
/* On phones: no squeezed mini desktop; single active center window + music. */
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){.desktop{min-height:100dvh;overflow:visible;padding:0 0 16px}.tab-launch{top:21px;left:0}.tab-menu{top:18px;left:44px;width:min(260px,calc(100vw - 56px))}.window{resize:none;left:14px!important;right:auto!important;top:83px!important;width:calc(100vw - 28px)!important;height:min(68dvh,600px)!important;min-width:0!important;max-width:none!important;max-height:none!important;}.window.mobile-hide{display:none!important}.window#w-main{height:min(69dvh,595px)!important}.window#w-music{top:calc(83px + min(69dvh,595px) + 16px)!important;height:115px!important;display:flex!important;}.window#w-photo-v,.window#w-photo-h,.window#w-dday,.window#w-banners{height:min(65dvh,530px)!important}.desktop:has(.window.active:not(#w-main):not(#w-music)) #w-music{display:none!important}.sd-sticker{width:50px!important;height:50px!important;z-index:2!important;position:absolute!important}.sd-sticker:nth-of-type(n+4){display:none}.sd-sticker[data-mobile-hide="yes"]{display:none}.section-toggle{grid-template-columns:49px minmax(0,1fr) 18px;gap:9px;padding:12px 0}.section-avatar{width:48px;height:48px}.section-panel{margin-left:57px;padding:9px}.guest-head{grid-template-columns:49px 1fr;gap:9px}.guest-body{padding-left:57px}.section-sub{font-size:10px}.main-list{padding:0 9px 8px}.sd-sticker{pointer-events:none}#settingsPanel{top:70px;right:8px;max-height:calc(100dvh - 82px)}.banner{min-height:70px}}
@media(max-width:400px){.guest-form{grid-template-columns:1fr}.guest-form button{justify-self:end}.music{grid-template-columns:68px 1fr}.cover{height:67px;width:67px}}
@media(prefers-reduced-motion:reduce){.sd-sticker:hover,.sd-sticker.bubble::after{animation:none}}

/* Readable separate fields inside each of the four main rows */
.section-toggle>span:nth-child(2){display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;min-width:0}
.section-title{display:block;font-size:14px;margin:0;line-height:1.4}
.section-time{display:block;font-size:11px;margin:0;line-height:1.35}
.section-sub{display:block;font-size:12px;margin:0;line-height:1.5}
.section-toggle{padding-top:16px;padding-bottom:16px}
.section-avatar{width:56px;height:56px}
.guest-head .section-title{margin-bottom:4px}
.guest-head .section-time{margin-bottom:0}
.guest-body{padding-bottom:18px}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){.section-avatar{width:48px;height:48px}.section-toggle{padding-top:12px;padding-bottom:12px}.section-title{font-size:13px}.section-time{font-size:10px}.section-sub{font-size:11px}}

/* V4 — faithful comment-feed layout, never a notification center */
:root{--bg-base:#f9faf7;--bg-blur:8px;--bg-opacity:.55}
.desktop{background:transparent;min-height:100dvh}
.wallpaper{z-index:0;background:var(--bg-base);overflow:hidden}
.wallpaper-image{position:absolute;inset:-36px;background-size:cover;background-position:center;background-repeat:no-repeat;opacity:var(--bg-opacity);filter:blur(var(--bg-blur));pointer-events:none}
.wallpaper-tint{position:absolute;inset:0;background:linear-gradient(130deg,#fff9 0%,#fffc 35%,#fbf6ee77 100%);pointer-events:none}
#w-photo-v{width:325px;height:485px}
#w-main{width:680px;height:630px}
#w-photo-h{width:385px;height:233px}
#w-banners{width:332px;height:276px}
.window{z-index:12}
.main-list{padding:1px 20px 10px}
.post-section{padding:0;margin:0;border-color:#e2e5e5}
.post-row{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:start;gap:16px;padding:20px 0 18px;min-height:122px}
.post-avatar{width:64px;height:64px;background:color-mix(in srgb,var(--theme-accent) 10%,#fff);border:1px solid color-mix(in srgb,var(--theme-accent) 15%,#fff);border-radius:2px;overflow:hidden}
.post-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.post-avatar .avatar-motif{font-size:26px;color:var(--theme-accent)}
.post-copy{min-width:0}
.post-top{display:flex;align-items:start;justify-content:space-between;gap:7px;padding-top:0}
.post-author{font-weight:760;font-size:15px;line-height:1.3;color:#58667b;letter-spacing:0}
.post-date{display:block;color:#9fa4a9;font-size:11px;line-height:1.35;margin-top:4px}
.post-preview{display:block;margin:9px 0 0;color:#50585b;font-size:13px;line-height:1.65;min-height:20px;white-space:pre-wrap;overflow-wrap:anywhere;outline:none}
.post-preview:focus,.profile-freeform:focus{background:var(--theme-accent-soft);outline:1px dashed color-mix(in srgb,var(--theme-accent) 55%,#fff);outline-offset:4px}

.post-row[data-open-row]{cursor:pointer}
.post-row[data-open-row]:hover{background:#fbfcfb}
.post-tag{flex:none;font-size:11px;min-width:70px;background:#fff;border:1px solid #e0e5e2;border-radius:3px;padding:5px 7px;color:#768587;text-align:center;letter-spacing:.015em;font-weight:660;line-height:1.25;pointer-events:none}
.static-tag{border-color:transparent;background:none;color:#9da5a3;cursor:default;min-width:auto}
.profile-layout{display:grid;grid-template-columns:140px minmax(0,1fr);gap:18px;align-items:start}
.profile-left{display:grid;gap:8px}
.profile-mini-image{height:106px;border:1px solid #dbdfdb;background:#f6f6f2;display:grid;place-items:center;overflow:hidden}
.profile-mini-image img{width:100%;height:100%;object-fit:cover;display:block}
.profile-note{min-height:98px;border:1px solid #dbdfdb;background:#fff;padding:8px;line-height:1.6;white-space:pre-wrap;outline:none}
.profile-right{display:grid;gap:10px}
.profile-heading{margin:0;font-size:28px;line-height:1.1;font-weight:800;outline:none}
.profile-wide{min-height:88px;border:1px solid #dbdfdb;background:#f8f8f5;display:grid;place-items:center;color:#a7acab;overflow:hidden}
.profile-wide img{width:100%;height:100%;object-fit:cover;display:block}
.profile-desc{min-height:56px;white-space:pre-wrap;line-height:1.7;outline:none}
.profile-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.profile-square{width:18px;height:18px;border:1px solid var(--theme-accent);background:#fff}
.guest-body{padding:0 0 16px 80px}
.guest-entry:last-child{border-bottom:0;margin-bottom:0}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){.profile-layout{grid-template-columns:92px minmax(0,1fr);gap:10px}.profile-mini-image{height:82px}.profile-heading{font-size:22px}.profile-note{min-height:82px}.profile-wide{min-height:64px}.profile-actions{justify-content:flex-start;flex-wrap:wrap}}
.post-panel{display:none;margin:0 0 18px 80px;padding:9px 10px;background:#fff;border:1px solid #e7e9e8}
.post-section.open .post-panel{display:block}
.profile-freeform{outline:0;min-height:125px;white-space:pre-wrap;line-height:1.85;font-size:13px;padding:9px;background:#fcfcfb;overflow-wrap:anywhere}
.profile-freeform:empty:before{content:attr(data-placeholder);color:#c6caca}
.profile-links{margin-top:10px}
.category{margin:4px 0 7px;border:1px solid #e0e4e2}
.category-head{font-size:12px;padding:11px 13px}
.category-body{padding:0 12px 11px}
.log-link{font-size:12px}
.guest-body{padding:0 0 16px 80px}
.guest-entry{padding:6px 0 12px}
.guest-meta{font-size:11px}
.guest-text{font-size:12px}
.guest-form textarea{min-height:64px;font-size:12px}
.guest-note{font-size:9px}
/* Every sticker is a free-floating transparent image, no colored frame or background. */
#stickerLayer{position:fixed;inset:0;pointer-events:none;z-index:73}
.sd-sticker{z-index:auto;position:fixed;padding:0;margin:0;border:0;background:transparent;box-shadow:none;border-radius:0;display:block;pointer-events:auto;overflow:visible;transform-origin:50% 80%;filter:drop-shadow(0 2px 3px #0002)}
.sd-sticker .sticker-img{width:100%;height:100%;object-fit:contain;display:block;pointer-events:none;border:0;box-shadow:none;background:transparent;border-radius:0}
.sd-sticker:hover{filter:drop-shadow(0 4px 5px #7775)}
.sd-sticker::after{z-index:4;max-width:180px}
/* Adjustable background blur/opacity in native settings */
.range-setting{display:block;margin:10px 0;font-weight:650}
.range-setting output{float:right;font-weight:400;color:color-mix(in srgb,var(--theme-accent) 65%,#555)}
.settings input[type=range]{width:100%;accent-color:var(--theme-accent);margin:7px 0 3px}
/* On mobile use the same feed hierarchy, without author/category headings in the post body. */
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
  .desktop{min-height:100dvh}
  .window{min-width:0!important}
  .window#w-main{height:min(70dvh,640px)!important}
  .window#w-music{top:calc(83px + min(70dvh,640px) + 14px)!important}
  .main-list{padding:0 12px 8px}
  .post-row{grid-template-columns:53px minmax(0,1fr);gap:10px;padding:17px 0;min-height:100px}
  .post-avatar{width:53px;height:53px}
  .post-author{font-size:13px}
  .post-date{font-size:10px}
  .post-preview{font-size:12px;line-height:1.6;margin-top:8px}
  .post-tag{min-width:55px;font-size:10px;padding:4px 5px}
  .post-panel{margin-left:63px;padding:8px}
  .guest-body{padding-left:63px}
  #stickerLayer{pointer-events:none;position:fixed;z-index:73}
  .sd-sticker{position:fixed!important;z-index:auto!important;width:55px!important;height:72px!important;pointer-events:auto!important}
  .sd-sticker:nth-of-type(n+4){display:block!important}
}
@media(max-width:400px){.post-row{grid-template-columns:46px minmax(0,1fr);gap:9px}.post-avatar{width:46px;height:46px}.post-panel{margin-left:55px}.guest-body{padding-left:55px}.post-tag{min-width:48px}}



/* Banner panel; initial position set in defaults JS. */
@media (min-width:751px) and (orientation:landscape), (min-width:1101px), (min-width:751px) and (hover:hover){
  #w-banners { width:332px; height:276px; right:3.2%; top:8%; min-width:240px; }
}
#w-banners .banners {
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  gap:7px !important;
  padding:12px !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  height:100%;
  box-sizing:border-box;
}
#w-banners .banner {
  display:flex;
  flex:0 0 45px !important;
  width:100% !important;
  height:45px !important;
  min-height:45px !important;
  max-width:100%;
  box-sizing:border-box;
  align-items:center !important;
  justify-content:center !important;
}
#w-banners .banner img { width:100%; height:100%; object-fit:contain; }
#w-banners .banner-placeholder {width:100%;height:100%;}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
  #w-banners .banners { height:100%; overflow-y:auto !important; overflow-x:hidden !important; }
  #w-banners .banner {flex:0 0 54px !important; height:54px !important; min-height:54px !important;}
}


/* V6: initial arrangement follows client's reference: photo / feed / vertical banners, music & landscape photo below. */
@media (min-width:751px) and (orientation:landscape), (min-width:1101px), (min-width:751px) and (hover:hover){
  #w-photo-v{width:275px;height:485px;}
  #w-main{width:610px;height:565px;}
  #w-banners{width:332px;height:276px;min-width:240px;min-height:180px;}
  #w-dday{width:300px;height:300px;}
  #w-music{width:292px;height:124px;}
  #w-photo-h{width:415px;height:183px;}
}
/* Only 3 to 4 banners in view at a time; the remaining banners scroll inside this window. */
#w-banners .content.banners{
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  grid-template-columns:none !important;
  gap:9px !important;
  padding:11px !important;
  height:100% !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
}
#w-banners .banner{
  flex:0 0 75px !important;
  height:75px !important;
  min-height:75px !important;
  width:100% !important;
  padding:6px !important;
  box-sizing:border-box;
}
#w-banners .banner-placeholder{height:100%;width:100%;}
#w-banners .banner img{height:100%;width:100%;object-fit:cover;}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
  #w-banners .banner{flex:0 0 75px !important;height:75px !important;min-height:75px !important;}
}


/* verified v8: gallery/log/profile rows open by clicking their existing post; banner vertical single column */
@media (min-width:751px) and (orientation:landscape), (min-width:1101px), (min-width:751px) and (hover:hover){#w-banners .content.banners{display:flex!important;flex-direction:column!important;gap:8px!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;align-items:stretch!important}#w-banners .banner{flex:0 0 58px!important;min-height:58px!important;height:58px!important;width:100%!important}}
.post-row[data-open-row]{cursor:pointer}
.post-row[data-open-row] .post-tag{pointer-events:none}
.post-panel{overflow:visible}
.profile-layout{grid-template-columns:140px minmax(0,1fr)}
@media(max-width:500px){.profile-layout{grid-template-columns:95px minmax(0,1fr)}}

/* Final customer layout — portrait + plain writing area + exactly two external link squares. */
.profile-two-col{display:grid;grid-template-columns:32% minmax(0,1fr);gap:14px;align-items:stretch;min-height:282px}
.profile-portrait{border:1px solid #cfd4d2;background:#fff;min-height:282px;display:grid;place-items:center;color:#73797a;overflow:hidden;font-size:13px}
.profile-portrait img{width:100%;height:100%;display:block;object-fit:cover}
.profile-writing{min-width:0;display:flex;flex-direction:column;min-height:282px}
.profile-writing-text{display:block;flex:1;min-height:230px;padding:12px 10px;outline:none;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;color:#4a5052}
.profile-writing-text:focus{outline:1px dashed color-mix(in srgb,var(--theme-accent) 55%,#fff);outline-offset:-2px}
.profile-footer{display:flex;gap:10px;justify-content:flex-end;align-items:center;min-height:43px;padding:6px 2px}
.profile-link-label{font-size:11px;color:#8e9797;margin-right:2px}
.profile-icon-link{display:grid;place-items:center;width:26px;height:26px;flex:none;border:1px solid #cfd3d1;font-size:18px;color:#7b8a8a;line-height:1;background:#fff}
.profile-icon-link:hover{border-color:var(--accent);background:var(--theme-accent-soft)}
#w-main .titlebar .main-mode-toggle{font-size:10px;padding:2px 8px;min-height:20px;border:1px solid color-mix(in srgb,var(--theme-accent) 60%,#fff);background:#fff;color:color-mix(in srgb,var(--theme-accent) 65%,#555);border-radius:2px;cursor:pointer}
#w-main .titlebar .main-mode-toggle:hover{background:var(--theme-accent-soft)}
@media (min-width:751px) and (orientation:landscape), (min-width:1101px), (min-width:751px) and (hover:hover){#w-dday{right:3.5%;top:10%;width:300px;height:300px}#w-banners{right:3.5%;top:52%;width:332px;height:276px}}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){.profile-two-col{grid-template-columns:32% minmax(0,1fr);gap:8px;min-height:215px}.profile-portrait{min-height:215px}.profile-writing{min-height:215px}.profile-writing-text{min-height:165px;padding:7px;font-size:12px}.profile-footer{flex-wrap:wrap;gap:5px;min-height:35px}.profile-icon-link{width:24px;height:24px}}

/* V11 theme: all visible UI surfaces are driven by one live palette. */
:root{
 --theme-page:#f9faf7;--theme-surface:#ffffff;--theme-header:#fff9fa;
 --theme-panel:#fcfcfb;--theme-control:#ffffff;--theme-text:#42464a;
 --theme-muted:#7e898b;--theme-title:#616c70;--theme-border:#d9dddc;
 --theme-accent:#e8a4b6;--theme-accent-soft:#fff1f5;--sd-size:200px;
 --accent:var(--theme-accent);--accent-soft:var(--theme-accent-soft);
 --ink:var(--theme-text);--ink2:var(--theme-title);--muted:var(--theme-muted);
 --line:var(--theme-border);--line2:var(--theme-border);
}
html,body,.desktop{background:var(--theme-page);color:var(--theme-text)}
.wallpaper{background:var(--theme-page)}
.wallpaper-tint{background:transparent}
.window,.window .content,#mainContent,.main-list{background:var(--theme-surface);color:var(--theme-text)}
.window{border-color:var(--theme-border)}
.titlebar{background:var(--theme-header);border-bottom-color:var(--theme-border)}
.title-text{color:var(--theme-title)}
.title-text::before{background:var(--theme-control);border-color:var(--theme-accent);box-shadow:inset 2px 2px var(--theme-accent-soft)}
.win-close,#mainModeToggle,.tab-launch{background:var(--theme-control);color:var(--theme-accent);border-color:var(--theme-accent)}
.win-close:hover,#mainModeToggle:hover,.tab-launch:hover,.tab-launch[aria-expanded=true]{background:var(--theme-accent-soft)}
.tab-menu,#settingsPanel{background:var(--theme-surface);border-color:var(--theme-border);color:var(--theme-text)}
.tab-list button,.tab-action,.tab-btn,#settingsClose,.settings button,.pages button{background:var(--theme-control);border-color:var(--theme-border);color:var(--theme-text)}
.tab-action:hover,.tab-btn:hover,.settings button:hover,.pages button:hover{background:var(--theme-accent-soft);border-color:var(--theme-accent)}
.tab-menu h2,.settings-top{color:var(--theme-title)}
.tab-heading,.tab-desc,.settings small{color:var(--theme-muted)}
.post-section,.section,.post-section:last-child,.guest-entry{border-color:var(--theme-border)}
.post-row,.section-toggle{background:var(--theme-surface);color:var(--theme-text)}
.post-row[data-open-row]:hover,.section-toggle:hover{background:var(--theme-accent-soft)}
.section-avatar,.post-avatar{background:var(--theme-panel);border-color:var(--theme-border)}
.avatar-motif,.post-avatar .avatar-motif,.section-avatar .glyph{color:var(--theme-accent)}
.post-author,.section-title{color:var(--theme-title)}
.post-preview,.guest-text,.profile-writing-text,.profile-desc,.profile-note,.section-sub{color:var(--theme-text)}
.post-date,.section-time,.guest-meta,.guest-note,.dday-date,.music-stamp,.pages,.log-link time{color:var(--theme-muted)}
.post-tag,.static-tag{background:var(--theme-control);border-color:var(--theme-border);color:var(--theme-title)}
.post-panel,.section-panel,.profile-writing,.profile-layout{background:var(--theme-surface);border-color:var(--theme-border)}
.profile-portrait,.profile-mini-image,.profile-wide,.profile-note,.profile-square{background:var(--theme-panel);border-color:var(--theme-border);color:var(--theme-text)}
.profile-writing-text:focus,.profile-note:focus{outline-color:var(--theme-accent)}
.profile-icon-link,.profile-actions a,.text-link{background:var(--theme-control);border-color:var(--theme-accent);color:var(--theme-accent)}
.profile-icon-link:hover,.text-link:hover{background:var(--theme-accent-soft)}
.category,.category-head,.log-detail,.thumb,.pages button{background:var(--theme-panel);border-color:var(--theme-border);color:var(--theme-text)}
.category-head:after,.back,.log-link:hover{color:var(--theme-accent)}
.category-body{background:var(--theme-panel)}
.log-link{color:var(--theme-text);border-color:var(--theme-border)}
.thumb{background:var(--theme-panel)}
.thumb:hover{border-color:var(--theme-accent)}
.guest-form textarea,.guest-form button{background:var(--theme-control);border-color:var(--theme-border);color:var(--theme-text)}
.guest-form button{background:var(--theme-accent-soft);border-color:var(--theme-accent);color:var(--theme-accent)}
.dday,.banner,.dday-pic,.banner-placeholder,.cover{background:var(--theme-panel);border-color:var(--theme-border);color:var(--theme-text)}
.dday-name,.banner-placeholder,.music-stamp{color:var(--theme-muted)}
.dday-count{color:var(--theme-title);background:transparent}.progress i{background:var(--theme-accent)}
.banner:hover{border-color:var(--theme-accent)}
.music{background:var(--theme-surface)}
.track-name,.music-controls button{color:var(--theme-text)}
.progress{background:var(--theme-border)}
.photo-frame,.placeholder,.placeholder .photo-mark{background:var(--theme-panel);color:var(--theme-muted);border-color:var(--theme-border)}
.photo-frame:hover{box-shadow:inset 0 0 0 3px var(--theme-accent)}
.settings details>div{background:var(--theme-surface);border-color:var(--theme-border)}
.settings summary{background:var(--theme-panel);border-color:var(--theme-border);color:var(--theme-text)}
.settings label{color:var(--theme-title)}
.settings input:not([type="color"]):not([type="range"]),.settings textarea,.settings select{background:var(--theme-panel);border:1px solid var(--theme-border);color:var(--theme-text)}
.settings input[type="color"]{background:var(--theme-panel);border-color:var(--theme-border)}
.settings input[type="range"]{accent-color:var(--theme-accent)}
.sd-sticker::after{background:var(--theme-panel);border-color:var(--theme-border);color:var(--theme-text)}
.lightbox button{background:var(--theme-control);color:var(--theme-text)}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
 .sd-sticker{width:var(--sd-size)!important;height:calc(var(--sd-size) * 1.28)!important;position:fixed!important;pointer-events:auto!important}
}


/* V12: display D-day numbers without an accent-filled rectangle. */
#w-dday .dday-count{display:block;background:none!important;color:var(--theme-title);font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums}
/* Player window itself gets enough height; the player content never becomes a scroller. */
#w-music{min-height:156px}
#w-music .content.music{overflow:hidden!important;scrollbar-width:none;display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px;align-items:center;padding:12px 14px;height:auto;min-height:0}
#w-music .content.music::-webkit-scrollbar{display:none}
#w-music .cover{width:82px;height:82px}
#w-music .track-name{line-height:1.4}
/* Direct photo click: light crossfade + subtle scale, no swap button or arrows. */
.photo-frame img{pointer-events:none;opacity:1;transform:scale(1);backface-visibility:hidden}
.photo-frame img.photo-current{z-index:1;opacity:1}
.photo-frame img.photo-enter{z-index:2;opacity:0;transform:scale(1.035);transition:opacity .38s ease,transform .46s ease}
.photo-frame img.photo-enter.photo-visible{opacity:1;transform:scale(1)}
@media (min-width:751px) and (orientation:landscape), (min-width:1101px), (min-width:751px) and (hover:hover){#w-music{height:170px!important}}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){.window#w-music{height:164px!important;min-height:164px!important}#w-music .content.music{padding:11px 13px;grid-template-columns:76px minmax(0,1fr)}#w-music .cover{width:76px;height:76px}}
@media(prefers-reduced-motion:reduce){.photo-frame img.photo-enter{transition:none;transform:none}}

/* FINAL HTML PREVIEW — client approved updates */
#verticalPhoto img,#horizontalPhoto img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
#w-banners .banner{padding:0!important;overflow:hidden!important;border-radius:0!important}
#w-banners .banner img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
#w-banners .banner-placeholder{height:100%!important}
/* Four original comment rows, four full-width expandable panels. */
#w-main .post-panel{margin:0 0 16px 0!important;width:100%!important;box-sizing:border-box!important}
#w-main .guest-panel{background:var(--theme-surface);padding:12px!important}
#w-main .guest-body{padding:0!important}
#w-main #sec-guestbook .guest-post{cursor:pointer}
#w-main #sec-guestbook .guest-post:hover{background:var(--theme-accent-soft)}
.dday-empty{padding:25px 10px;text-align:center;color:var(--theme-muted);font-size:12px}
/* Slide-out Tab: panel sits to the LEFT of the moved tab button. */
.desktop{--tab-panel-w:min(270px,calc(100vw - 56px))}
.tab-menu{display:block!important;left:0!important;top:84px!important;width:var(--tab-panel-w)!important;transform:translateX(-103%);opacity:0;visibility:hidden;pointer-events:none;transition:transform .35s cubic-bezier(.22,.8,.22,1),opacity .24s ease,visibility .35s}
.tab-launch{left:0!important;transition:transform .35s cubic-bezier(.22,.8,.22,1);will-change:transform}
.desktop.tab-open .tab-menu{transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto}
.desktop.tab-open .tab-launch{transform:translateX(var(--tab-panel-w))}
/* Stickers: subtle grow + tiny sway only on hover */
.sd-sticker:hover{animation:sticker-sway-soft .85s ease-in-out infinite alternate!important;filter:drop-shadow(0 3px 4px #7774)!important}
@keyframes sticker-sway-soft{from{transform:rotate(-1.2deg) scale(1.035)}to{transform:rotate(1.2deg) scale(1.055)}}
/* Separate square photo window opened by one SD */
.sticker-photo-popup{position:fixed;z-index:185;display:flex;flex-direction:column;width:266px;height:296px;background:var(--theme-surface);border:1px solid var(--theme-border);box-shadow:0 14px 36px #0003;border-radius:4px;overflow:hidden}
.sticker-popup-title{height:30px;flex:none;padding:4px 8px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--theme-border);background:var(--theme-header);font-size:11px;color:var(--theme-title)}
.sticker-popup-title button{border:1px solid var(--theme-accent);background:var(--theme-control);color:var(--theme-accent);width:21px;height:21px;font-size:15px}
.sticker-popup-body{flex:1;display:grid;place-items:center;min-height:0;padding:8px;color:var(--theme-muted);background:var(--theme-panel);font-size:11px;text-align:center}
.sticker-popup-body img{width:100%;height:100%;object-fit:contain;display:block}
#verticalPhoto img,#horizontalPhoto img{object-fit:cover!important;object-position:center!important}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
 .tab-menu{top:21px!important;max-height:calc(100dvh - 40px)}
 #w-main .post-panel{margin:0 0 10px 0!important;padding:8px!important}
 #w-main .guest-panel{padding:8px!important}
 .sticker-photo-popup{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
}
@media(prefers-reduced-motion:reduce){.tab-menu,.tab-launch{transition:none!important}.sd-sticker:hover{animation:none!important;transform:scale(1.04)}}


/* TISTORY PRODUCTION: preserve v14 visuals, native Tistory bodies */
body{overflow:hidden}
#desktop{min-height:100dvh}
#tistoryData{display:none!important}
#mainDetail{display:none}
#mainDetail.active{display:block;background:var(--theme-surface);padding:10px 14px 20px;min-width:0}
#mainHome.detail-hidden{display:none!important}
.reading-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;border-bottom:1px solid var(--theme-border);padding-bottom:12px}
.reading-head h2{font-size:17px;margin:0 0 6px;color:var(--theme-title);overflow-wrap:anywhere}
.reading-head time,.reading-head small{font-size:11px;color:var(--theme-muted)}
.reading-back{flex:none;display:inline-flex;padding:7px 10px;border:1px solid var(--theme-border);background:var(--theme-control);color:var(--theme-text);border-radius:3px}
.reading-body{line-height:1.8;font-size:13px;color:var(--theme-text);overflow-wrap:anywhere}
.reading-body img,.reading-body video,.reading-body iframe{max-width:100%;height:auto}
.reading-body iframe{min-height:240px}
.reading-body pre{white-space:pre-wrap;overflow-wrap:anywhere}
.reading-body table{max-width:100%;display:block;overflow:auto}
.reading-body a{color:var(--theme-accent);text-decoration:underline}
.reading-body p{margin:.5em 0 1em}
.reading-body .tt-comment-cont{max-width:100%;overflow-wrap:anywhere}
.reading-body .tt-area-write{max-width:100%}
.reading-body input,.reading-body textarea{max-width:100%}
.protected-box{border:1px solid var(--theme-border);background:var(--theme-panel);padding:20px;line-height:1.8}
.protected-box input[type=password]{max-width:100%;padding:8px;border:1px solid var(--theme-border);background:var(--theme-control)}
.protected-box button{padding:8px 12px;border:1px solid var(--theme-accent);background:var(--theme-accent-soft);color:var(--theme-text)}
.category-report{padding:14px;color:var(--theme-muted)}
.native-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.native-item{display:grid;gap:6px;padding:8px;border:1px solid var(--theme-border);background:var(--theme-panel);min-width:0;overflow:hidden}
.native-item strong{font-size:12px;font-weight:650;overflow-wrap:anywhere}
.native-item time{font-size:10px;color:var(--theme-muted)}
.native-thumb{aspect-ratio:1/1;background:var(--theme-control);display:grid;place-items:center;overflow:hidden;border:1px solid var(--theme-border)}
.native-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.native-thumb.locked{background:white;border-color:#e2e2e2}
.native-thumb.locked svg{width:19px;height:19px;stroke:#888;fill:none}
#logCats .category .category-body,#galleryCats .category .category-body{max-width:100%}
#logCats .log-link{cursor:pointer}
#galleryCats .thumb{position:relative;overflow:hidden}
#galleryCats .thumb img{width:100%;height:100%;object-fit:cover}
#galleryCats .thumb.locked{background:#fff;border:1px solid #eee}
#galleryCats .thumb.locked svg{width:18px;height:18px;stroke:#8f8f8f}
.gallery-item-title{font-size:10px;color:var(--theme-text);text-align:center;padding:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gb-native{background:var(--theme-surface);min-height:100px;width:100%}
.gb-native iframe{border:none;display:block;width:100%;min-height:320px;background:var(--theme-surface)}
.guest-embed #desktop{display:none!important}
#guest-embedded-root{display:none}
.guest-embed #guest-embedded-root{display:block;padding:12px;background:var(--theme-surface)}
#guest-embedded-root .tt-comment-cont{width:100%!important;max-width:100%;overflow-wrap:anywhere}
#guest-embedded-root textarea,#guest-embedded-root input{max-width:100%}
#guest-embedded-root .tt-area-write{max-width:100%}
#guest-embedded-root .tt-box-thumb{display:none}
#guest-embedded-root .tt-wrap-cmt{margin:0!important}
#w-main .post-row[data-open-row] .post-preview{cursor:pointer}
#w-main .post-section .post-panel{margin-left:0!important;margin-right:0!important;width:100%!important}
#profilePortrait{height:300px}
#profilePortrait img{object-fit:cover}
#profileBody{min-height:300px;white-space:pre-wrap;overflow-wrap:anywhere}
#panel-profile .profile-layout{display:grid;grid-template-columns:34% minmax(0,1fr);gap:22px;align-items:stretch}
#panel-profile .profile-actions{margin-top:10px}
#panel-profile .profile-icon-link:empty{visibility:hidden}
#panel-profile .profile-writing{background:transparent;border:0}
#panel-profile .profile-writing-text{min-height:300px}
#panel-profile .profile-icon-link{min-height:22px;min-width:22px}
#stickerLayer{pointer-events:none}
.sd-sticker{pointer-events:auto}
#stickerLayer .sd-sticker{position:fixed;background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;overflow:visible}
#stickerLayer .sd-sticker img{height:100%;width:100%;object-fit:contain}
#stickerPhotoPopup .sticker-popup-body img{object-fit:contain}
#verticalPhoto img,#horizontalPhoto img{object-fit:cover!important}
#w-banners .content.banners{overflow-y:auto!important;overflow-x:hidden!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:8px!important;min-height:0!important}
#w-banners .banner{min-height:70px!important;height:70px!important;flex:0 0 70px!important;width:100%;padding:0!important;overflow:hidden}
#w-banners .banner img{object-fit:cover!important;width:100%!important;height:100%!important}
#w-music{height:170px}
#w-music .music{overflow:hidden!important}
#musicProgress{cursor:pointer}
#stickerPhotoPopup .sticker-popup-title{touch-action:none}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
 html,body{overflow:hidden}
 #desktop{height:100dvh;min-height:100dvh;overflow:hidden!important}
 .window{min-width:0!important;resize:none!important;right:auto!important}
 .window#w-main{left:50%!important;transform:translateX(-50%)!important;top:68px!important;bottom:172px!important;width:calc(100vw - 30px)!important;height:auto!important;max-height:none!important;}
 .window#w-music{left:12px!important;right:auto!important;top:auto!important;bottom:12px!important;width:min(315px,calc(100vw - 24px))!important;height:144px!important;min-height:144px!important;max-height:144px!important;;display:flex!important}
 .window#w-music .content.music{grid-template-columns:75px minmax(0,1fr)!important;padding:8px 12px!important}
 .window#w-photo-v,.window#w-photo-h,.window#w-dday,.window#w-banners{left:50%!important;top:68px!important;bottom:172px!important;width:calc(100vw - 30px)!important;height:auto!important;min-width:0!important;transform:translateX(-50%)!important}
 .window.mobile-hide{display:none!important}
 .window#w-main.mobile-hide{display:none!important}
 .window#w-music.mobile-hide{display:none!important}
 
 #desktop:has(.window.mobile-active:not(#w-main):not(#w-music)) .window#w-photo-v,
 #desktop:has(.window.mobile-active:not(#w-main):not(#w-music)) .window#w-photo-h,
 #desktop:has(.window.mobile-active:not(#w-main):not(#w-music)) .window#w-banners,
 #desktop:has(.window.mobile-active:not(#w-main):not(#w-music)) .window#w-dday{bottom:15px!important;height:auto!important}
 #panel-profile .profile-layout{grid-template-columns:34% minmax(0,1fr);gap:10px}
 #profilePortrait,#profileBody,#panel-profile .profile-writing-text{min-height:190px;height:190px}
 .post-panel{margin-left:0!important}
 .native-list{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tab-launch{top:16px!important}
 .tab-menu{top:16px!important}
 #stickerLayer .sd-sticker{width:calc(var(--sd-size) * .34)!important;height:calc(var(--sd-size) * .44)!important;pointer-events:auto}
}
@media(max-width:370px){.window#w-main{width:calc(100vw - 20px)!important}.post-row{grid-template-columns:45px minmax(0,1fr)!important}.post-avatar{width:45px!important;height:45px!important}.post-tag{min-width:44px!important}}

/* v2 delivery fixes: mobile independent window controls, scrollable lists, compact utility windows */
.post-popup{position:fixed;inset:0;z-index:500;display:grid;place-items:center;background:rgba(25,29,32,.55);padding:clamp(8px,3vw,24px)}
.post-popup.hidden{display:none!important}
.post-popup-window{width:min(900px,calc(100vw - 24px));height:min(740px,calc(100dvh - 30px));display:flex;flex-direction:column;overflow:hidden;border-radius:5px;background:var(--theme-surface);border:1px solid var(--theme-border);box-shadow:0 20px 60px #0004}
.post-popup-header{height:34px;flex:none;background:var(--theme-header);border-bottom:1px solid var(--theme-border);display:flex;align-items:center;justify-content:space-between;padding:0 9px;color:var(--theme-title);font-size:12px;font-weight:650}
.post-popup-header button{border:1px solid var(--theme-border);background:var(--theme-control);color:var(--theme-title);height:24px;width:26px;font-size:19px}
#postPopupFrame{border:0;flex:1;width:100%;min-height:0;background:var(--theme-surface)}
.post-embed html,.post-embed body{overflow:auto!important;height:auto!important;min-height:100%!important;background:var(--theme-surface)!important}
.post-embed #desktop,.post-embed #guest-embedded-root{display:none!important}
.post-embed #tistoryData{display:block!important;position:static!important;visibility:visible!important;height:auto!important;width:auto!important;overflow:visible!important}
.post-embed #t-entry-source{display:block!important}
.post-embed #t-entry-source .t-entry-detail{padding:15px 18px;max-width:100%;box-sizing:border-box}
.post-embed #t-entry-source .reading-back{display:none}
#logCats .category-body,#galleryCats .category-body{min-width:0}
#galleryCats .thumb-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#logCats .pages,#galleryCats .pages{justify-content:center;gap:12px}
#logCats .pages button,#galleryCats .pages button{border:1px solid var(--theme-border);background:var(--theme-control);padding:5px 12px;color:var(--theme-text);border-radius:2px}
#logCats .pages span,#galleryCats .pages span{font-size:10px;color:var(--theme-muted)}
#tistoryData{display:none!important}
#w-dday .content.ddays,#w-banners .content.banners{min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important}
#w-music .music-controls{justify-content:center;gap:8px}
#w-music .music-controls button{font-size:19px;min-width:28px}
#stickerLayer .sd-sticker{touch-action:none!important;user-select:none!important;cursor:grab}
#stickerLayer .sd-sticker:active{cursor:grabbing}
#desktop .window .titlebar{touch-action:none!important}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
 html,body{overflow:hidden!important;height:100%!important}
 #desktop{height:100dvh!important;min-height:100dvh!important;overflow:hidden!important}
 #desktop .window{position:fixed!important;resize:none!important;max-width:calc(100vw - 8px)!important;max-height:calc(100dvh - 50px)!important;min-width:0!important;min-height:65px!important;transform:none!important;right:auto!important;bottom:auto!important}
 #desktop .window[hidden],#desktop .window.mobile-hide,#desktop #w-music[hidden]{display:none!important}
 #desktop .window:not(.mobile-hide):not([hidden]){display:flex!important}
 #desktop #w-main{max-height:calc(100dvh - 205px)!important}
 #desktop #w-music{max-height:155px!important;min-height:115px!important}
 #desktop #w-photo-h,#desktop #w-photo-v{min-height:80px!important}
 #desktop #w-photo-h .photo-frame,#desktop #w-photo-v .photo-frame{min-height:0!important;height:100%!important}
 #desktop #w-dday .content,#desktop #w-banners .content{overflow-y:auto!important}
 #desktop #w-music .content.music{grid-template-columns:68px minmax(0,1fr)!important;padding:8px 9px!important;overflow:hidden!important}
 #desktop #w-music .cover{height:64px!important;width:64px!important}
 #desktop:has(.window.mobile-active:not(#w-main):not(#w-music)) #w-music:not([hidden]){display:flex!important}
 #stickerLayer .sd-sticker{transform:none;filter:drop-shadow(0 1px 2px #0003)}
 #stickerLayer .sd-sticker:hover{animation:none!important;transform:scale(1.04)}
 .post-popup-window{height:calc(100dvh - 22px);width:calc(100vw - 14px)}
 .post-embed #t-entry-source .t-entry-detail{padding:12px 10px}
}

/* v3: no decorative SDs on mobile; opening a window must not hide music.
   JS controls each window's z-index; no static important z-index on #w-main/#w-music. */
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
  #stickerLayer, #stickerPhotoPopup {display:none!important;}
}
/* Single-song controls keep previous / play / next visually balanced. */
#w-music .music-controls{display:flex;justify-content:center;align-items:center;gap:10px;}
#w-music .music-controls button{min-width:30px;min-height:27px;}
#w-music .music-status{font-size:10px;color:color-mix(in srgb,var(--theme-accent) 70%,#555);line-height:1.35;max-width:100%;white-space:normal;margin-top:3px;}
.sticker-popup-title{cursor:grab;touch-action:none;user-select:none;}
.sticker-photo-popup.is-moving .sticker-popup-title{cursor:grabbing;}

/* =========================================================
   v4 (냥이 수정) — 창 배치 옵션 · 작업표시줄 · 뒤로가기 · 버튼 정렬 · 방명록/글 디자인
   ========================================================= */
/* 1. 창 크기 조절: 기본 resize 대신 오른쪽 아래 손잡이 */
.window{resize:none!important}
.win-grip{position:absolute;right:1px;bottom:1px;width:14px;height:14px;z-index:6;cursor:nwse-resize;touch-action:none;opacity:.45;
 background:linear-gradient(135deg,transparent 0 55%,var(--theme-accent) 55% 62%,transparent 62% 72%,var(--theme-accent) 72% 79%,transparent 79%)}
.win-grip:hover,.window.is-moving .win-grip{opacity:1}

/* 7. 모든 창 제목줄 버튼 크기·정렬 통일 */
.titlebar,.post-popup-header,.sticker-popup-title{height:31px!important;min-height:31px;padding:0 6px 0 11px!important;display:flex;align-items:center;justify-content:space-between;gap:9px;box-sizing:border-box}
.win-actions{display:flex;align-items:center;gap:4px;height:100%}
.win-actions button,.post-popup-header button,.sticker-popup-title button{box-sizing:border-box;height:20px!important;min-width:20px;margin:0;padding:0 6px;display:inline-grid;place-items:center;border:1px solid var(--theme-accent)!important;background:var(--theme-control)!important;color:var(--theme-accent)!important;border-radius:2px;font-size:11px;line-height:1;font-weight:600}
.win-close,.win-back,.post-popup-header button,.sticker-popup-title button{width:20px!important;padding:0!important;font-size:14px!important}
.win-back{font-size:12px!important}
#mainModeToggle{font-size:10px!important;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.win-actions button:hover,.post-popup-header button:hover,.sticker-popup-title button:hover{background:var(--theme-accent-soft)!important}
#postPopupTitle,#stickerPopupTitleText{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700;color:var(--theme-title);letter-spacing:.02em;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#postPopupTitle::before,#stickerPopupTitleText::before{content:'';width:10px;height:10px;flex:none;border-radius:2px;background:var(--theme-control);border:1px solid var(--theme-accent);box-shadow:inset 2px 2px var(--theme-accent-soft)}

/* 2. 작업표시줄 */
.taskbar{position:fixed;left:0;right:0;bottom:0;height:38px;z-index:60;display:flex;align-items:center;gap:8px;padding:0 10px;background:var(--theme-header);border-top:1px solid var(--theme-border);box-shadow:0 -2px 12px rgba(0,0,0,.05)}
.taskbar-apps{flex:1;min-width:0;display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:none}
.taskbar-apps::-webkit-scrollbar{display:none}
.tb-app{flex:none;display:inline-flex;align-items:center;gap:6px;height:26px;max-width:160px;padding:0 11px;border:1px solid var(--theme-border);background:var(--theme-control);color:var(--theme-muted);font-size:11px;font-weight:650;border-radius:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-app::before{content:'';width:8px;height:8px;flex:none;border:1px solid var(--theme-border);border-radius:2px;background:var(--theme-control)}
.tb-app:hover{background:var(--theme-accent-soft)}
.tb-app.is-open{color:var(--theme-title)}
.tb-app.is-open::before{border-color:var(--theme-accent)}
.tb-app.is-active{border-color:var(--theme-accent);background:var(--theme-accent-soft)}
.tb-app.is-active::before{background:var(--theme-accent)}
.taskbar-clock{flex:none;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;line-height:1.25;padding-left:10px;border-left:1px solid var(--theme-border);color:var(--theme-title);font-variant-numeric:tabular-nums}
.tb-time{font-size:12px;font-weight:700}
.tb-date{font-size:9px;color:var(--theme-muted)}
.tab-menu{max-height:calc(100dvh - 140px)!important}
.layout-report{margin:8px 0 0;padding:8px;border:1px dashed var(--theme-accent);background:var(--theme-panel);font-size:10px;line-height:1.6;white-space:pre-wrap;user-select:text;font-family:inherit;color:var(--theme-text)}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){.taskbar{height:42px;padding:0 6px;gap:6px}.tb-app{height:28px;padding:0 9px;font-size:10px;max-width:110px}.taskbar-clock{padding-left:7px}}

/* 8. 스티커는 항상 창·작업표시줄보다 위 (창은 20번대, 스티커 73) */
#stickerLayer{z-index:73!important}

/* 3. 메인창이 자라는 동안 안쪽 스크롤은 필요할 때만 */
#w-main .content{overflow-y:auto}

/* 5-1. 글 팝업: 티스토리 기본 공감·구독·다른 글·블로그 소개 숨기기 */
.container_postbtn,.postbtn_like,.btn_post,.wrap_btn_etc,.another_category,.tt_box_namecard,
[class*="namecard"],[class*="Namecard"],[data-tistory-react-app="Namecard"],[data-tistory-react-app="SupportButton"],
.revenue_unit_wrap,#tistoryEtcLayer,#tistorySnsLayer{display:none!important}
.post-embed body{background:var(--theme-surface)!important}
.post-embed .reading-head{display:block;text-align:center;padding:8px 0 16px;margin-bottom:18px;border-bottom:1px dashed var(--theme-border)}
.post-embed .reading-head h2{font-size:18px;font-weight:750;margin:0 0 6px;color:var(--theme-title)}
.post-embed .reading-head time{font-size:11px;color:var(--theme-muted)}
.post-embed .reading-body{max-width:760px;margin:0 auto}
.post-embed .reading-body img{display:block;margin-left:auto;margin-right:auto}

/* 5-2. 방명록 · 글 댓글: 창 디자인에 맞춘 입력칸 */
.guest-embed,.guest-embed body{background:var(--theme-surface)!important}
:is(#guest-embedded-root,.native-comments){font-size:12px;color:var(--theme-text)}
:is(#guest-embedded-root,.native-comments) .tt-comment-cont{border:1px solid var(--theme-border)!important;background:var(--theme-surface)!important;border-radius:3px;padding:14px!important;margin:0!important}
:is(#guest-embedded-root,.native-comments) .tt-comment-cont div{background-color:transparent!important;border-color:var(--theme-border)!important}
:is(#guest-embedded-root,.native-comments) .tt-box-total{display:flex;align-items:center;gap:7px;font-size:11px!important;font-weight:700;color:var(--theme-title)!important;padding:0 0 10px!important;margin:0 0 12px!important;border-bottom:1px dashed var(--theme-border)!important;letter-spacing:.02em}
:is(#guest-embedded-root,.native-comments) .tt-box-total::before{content:'';width:10px;height:10px;border-radius:2px;border:1px solid var(--theme-accent);box-shadow:inset 2px 2px var(--theme-accent-soft)}
:is(#guest-embedded-root,.native-comments) :is(input[type=text],input[type=password],input:not([type]),textarea){box-sizing:border-box;width:100%;border:1px solid var(--theme-border)!important;background:var(--theme-panel)!important;color:var(--theme-text)!important;border-radius:3px!important;padding:8px 10px!important;font-size:12px!important;box-shadow:none!important;outline:none}
:is(#guest-embedded-root,.native-comments) :is(input,textarea):focus{border-color:var(--theme-accent)!important;background:var(--theme-surface)!important}
:is(#guest-embedded-root,.native-comments) :is(input,textarea)::placeholder{color:var(--theme-muted);opacity:.8}
:is(#guest-embedded-root,.native-comments) textarea{min-height:78px!important;resize:vertical;line-height:1.6}
:is(#guest-embedded-root,.native-comments) :is(.tt-btn_register,button[type=submit]){height:28px!important;min-width:56px;padding:0 14px!important;border:1px solid var(--theme-accent)!important;background:var(--theme-accent-soft)!important;color:var(--theme-accent)!important;border-radius:3px!important;font-size:11px!important;font-weight:700;box-shadow:none!important}
:is(#guest-embedded-root,.native-comments) :is(.tt-btn_register,button[type=submit]):disabled{opacity:.5;cursor:default}
:is(#guest-embedded-root,.native-comments) :is(.tt-btn_register,button[type=submit]):not(:disabled):hover{background:var(--theme-accent)!important;color:#fff!important}
:is(#guest-embedded-root,.native-comments) :is(.tt-link-user,.tt-link-user span){color:var(--theme-title)!important;font-weight:700;font-size:12px!important}
:is(#guest-embedded-root,.native-comments) :is(.tt_date,.tt-txt-g,.tt-date){color:var(--theme-muted)!important;font-size:10px!important}
:is(#guest-embedded-root,.native-comments) :is(.tt-item-reply,.tt-list-reply-comment>li){border-color:var(--theme-border)!important}
:is(#guest-embedded-root,.native-comments) :is(.tt_desc,.tt-box-content p){color:var(--theme-text)!important;font-size:12px!important;line-height:1.7!important}
:is(#guest-embedded-root,.native-comments) a{color:var(--theme-accent)}
.native-comments{margin-top:28px}

/* 5-3. 글로그·갤러리 목록 다듬기 */
#logCats .category,#galleryCats .category{border-radius:3px;overflow:hidden}
#logCats .category.is-open,#galleryCats .category.is-open{border-color:var(--theme-accent)}
#logCats .category.is-open .category-head,#galleryCats .category.is-open .category-head{background:var(--theme-accent-soft);color:var(--theme-title)}
#logCats .log-link{padding:10px 2px}
#logCats .log-link span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#logCats .log-link::before{content:'·';color:var(--theme-accent);margin-right:6px;font-weight:800}
#logCats .log-link{justify-content:flex-start}
#logCats .log-link time{margin-left:auto}
#galleryCats .thumb{border-radius:3px;transition:transform .15s ease,border-color .15s ease}
#galleryCats .thumb:hover{transform:translateY(-2px)}

/* ===== v5 미리보기 (냥이 2차 요청) ===== */
/* 1. 스티커 말풍선: 길면 자동 줄바꿈, <br>로 직접 줄바꿈 */
.sd-sticker::after,#stickerLayer .sd-sticker::after{white-space:pre-line!important;width:max-content;max-width:230px!important;text-align:center;line-height:1.5;padding:7px 12px;overflow:visible;text-overflow:clip;word-break:keep-all;overflow-wrap:anywhere}
.sd-sticker.bubble-left::after{left:0!important;transform:none!important;animation-name:bubble-appear-side!important}
.sd-sticker.bubble-right::after{left:auto!important;right:0;transform:none!important;animation-name:bubble-appear-side!important}
@keyframes bubble-appear-side{0%{opacity:0;translate:0 7px}12%{opacity:1;translate:0 0}75%{opacity:1}100%{opacity:0;translate:0 -5px}}
.sd-sticker[hidden]{display:none!important}
body.no-stickers #stickerLayer{display:none!important}

/* 3. 갤러리: PC 최대 5칸 (창 너비 따라 줄어듦), 모바일 3칸 + 단색 커버 */
:root{--gallery-tint:var(--theme-accent)}
#galleryCats .thumb-grid{grid-template-columns:repeat(auto-fill,minmax(max(96px,calc((100% - 4 * 6px) / 5)),1fr))!important;gap:6px!important}
#galleryCats .thumb{position:relative;isolation:isolate;aspect-ratio:1/1}
#galleryCats .thumb img{filter:grayscale(1) contrast(1.05);transition:filter .25s ease}
#galleryCats .thumb:not(.locked)::after{content:'';position:absolute;inset:0;background:var(--gallery-tint);mix-blend-mode:color;opacity:1;transition:opacity .25s ease;pointer-events:none}
#galleryCats .thumb:hover img,#galleryCats .thumb:focus-visible img{filter:none}
#galleryCats .thumb:hover::after,#galleryCats .thumb:focus-visible::after{opacity:0}
.no-gallery-tint #galleryCats .thumb img{filter:none}
.no-gallery-tint #galleryCats .thumb::after{display:none}
#galleryCats .thumb.locked{background:var(--theme-accent-soft)!important;border-color:var(--theme-border)!important;display:grid;place-items:center}
#galleryCats .thumb.locked svg{width:28px!important;height:28px!important;stroke:var(--gallery-tint)!important;opacity:.85}

/* 2. 모바일: 시작 버튼 + 작업표시줄 + 스티커 선반 */
.tb-start{display:none}
.sticker-shelf{display:none}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
 .tab-launch{display:none!important}
 .tb-start{display:inline-flex;align-items:center;gap:5px;flex:none;height:28px;padding:0 11px;border:1px solid var(--theme-accent);background:var(--theme-control);color:var(--theme-accent);font-size:11px;font-weight:800;letter-spacing:.04em;border-radius:3px}
 .tb-start::after{content:'▴';font-size:9px;transition:transform .2s}
 .tb-start.is-active{background:var(--theme-accent-soft)}
 .tb-start.is-active::after{transform:rotate(180deg)}
 .tab-menu{top:auto!important;bottom:50px!important;left:6px!important;width:min(270px,calc(100vw - 12px))!important;max-height:calc(100dvh - 70px)!important;transform:translateY(12px)!important;z-index:9000!important}
 .desktop.tab-open .tab-menu{transform:translateY(0)!important}
 .taskbar{z-index:9001}
 .desktop.has-stickers .sticker-shelf{display:block;position:fixed;left:0;right:0;bottom:42px;height:66px;z-index:59;background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--theme-header) 85%,transparent));border-top:1px dashed color-mix(in srgb,var(--theme-accent) 45%,transparent);pointer-events:none}
 body.no-stickers .sticker-shelf{display:none!important}
 #stickerLayer{display:block!important}
 #stickerPhotoPopup{display:flex!important}
 #stickerPhotoPopup.hidden{display:none!important}
 #stickerLayer .sd-sticker{filter:drop-shadow(0 1px 2px #0003)}
 #stickerLayer .sd-sticker::after{bottom:calc(100% + 6px);max-width:200px!important;font-size:11px}
 #galleryCats .thumb-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
 #w-main .post-preview{white-space:pre!important;overflow:hidden;text-overflow:clip}
 #w-main .post-row{min-height:0;padding:15px 0}
}

/* ===== v6 미리보기 (냥이 3차 요청) ===== */
/* 3. 방문자 수 */
.tb-visit{flex:none;display:flex;gap:10px;align-items:center;padding:0 10px;font-size:10px;font-weight:700;letter-spacing:.06em;color:var(--theme-muted);border-left:1px solid var(--theme-border);height:24px}
.tb-visit b{color:var(--theme-accent);font-weight:800;margin-left:3px;font-variant-numeric:tabular-nums}
.menu-visit{display:none}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
 .tb-visit{display:none}
 .menu-visit{display:flex;justify-content:space-around;gap:8px;margin:0 0 12px;padding:9px 6px;border:1px dashed var(--theme-accent);border-radius:4px;background:var(--theme-accent-soft);font-size:10px;font-weight:700;letter-spacing:.06em;color:var(--theme-muted)}
 .menu-visit b{color:var(--theme-accent);font-size:13px;margin-left:4px;font-variant-numeric:tabular-nums}
}
/* 4. 보호글: 흐린 실루엣 + 자물쇠 */
#galleryCats .thumb.locked{position:relative;overflow:hidden}
#galleryCats .thumb.locked .lock-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:blur(9px) grayscale(.35)!important;transform:scale(1.18);opacity:.85}
#galleryCats .thumb.locked.has-cover::after{content:'';position:absolute;inset:0;background:var(--gallery-tint);mix-blend-mode:color;opacity:.9;pointer-events:none}
#galleryCats .thumb.locked .lock-mark{position:absolute;inset:0;display:grid;place-items:center;z-index:2}
#galleryCats .thumb.locked.has-cover .lock-mark svg{width:26px!important;height:26px!important;padding:7px;box-sizing:content-box;border-radius:50%;background:color-mix(in srgb,var(--theme-surface) 80%,transparent);stroke:var(--gallery-tint)!important}
#galleryCats .thumb.locked:hover .lock-cover{filter:blur(7px)!important}
/* 2·5. 모바일 스티커: 선반 없음, 각자 위치 / 꾹 누르면 흔들 / 글 열면 숨김 */
.sticker-shelf{display:none!important}
.sd-sticker{-webkit-touch-callout:none;-webkit-user-select:none}
@keyframes sticker-wiggle{0%{transform:rotate(-6deg) scale(1.06)}100%{transform:rotate(6deg) scale(1.06)}}
.sd-sticker.wiggle{animation:sticker-wiggle .16s ease-in-out infinite alternate!important}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
 #stickerLayer{transition:opacity .25s ease,visibility .25s}
 .desktop.stickers-away #stickerLayer{opacity:0;visibility:hidden;pointer-events:none}
}
#galleryCats .thumb.locked svg{fill:none!important}
/* 보호글: 흰 배경 + 자물쇠, 다른 칸과 같은 커버 색 */
#galleryCats .thumb.locked{background:#fff!important;border-color:var(--theme-border)!important}
#galleryCats .thumb.locked .lock-mark svg{width:30px!important;height:30px!important;padding:0!important;background:none!important;stroke:#5c5c5c!important;fill:none!important;opacity:1}
#galleryCats .thumb.locked::after{content:'';position:absolute;inset:0;background:var(--gallery-tint);mix-blend-mode:color;opacity:1;transition:opacity .25s ease;pointer-events:none;z-index:3}
#galleryCats .thumb.locked:hover::after{opacity:0}
.no-gallery-tint #galleryCats .thumb.locked::after{display:none}
/* 모바일 방문자: 탭 메뉴 안 작은 한 줄 */
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
 .menu-visit{display:flex;justify-content:flex-start;gap:10px;margin:-4px 0 10px;padding:0;border:0;background:none;font-size:9.5px;font-weight:600;letter-spacing:.05em;color:var(--theme-muted)}
 .menu-visit b{font-size:inherit;font-weight:700;color:var(--theme-title);margin-left:3px}
 .menu-visit span+span::before{content:'·';margin-right:10px;color:var(--theme-border)}
}
/* 탭 메뉴 버튼 날씬하게 */
.tab-menu .tab-list{gap:4px!important}
.tab-menu .tab-btn,.tab-menu .tab-action{height:24px!important;min-height:0!important;padding:0 9px!important;font-size:10px!important;line-height:22px!important;border-radius:3px!important;display:flex!important;align-items:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tab-menu .tab-btn{justify-content:center}
.tab-menu .tab-action{margin-top:4px!important;justify-content:flex-start}
.tab-menu h2{margin:0 0 6px!important;font-size:12px!important}
.tab-menu .tab-heading{margin:10px 0 4px!important}
.tab-menu{padding:10px 10px 11px!important}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){.tab-menu{width:min(230px,calc(100vw - 12px))!important}}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){.tab-menu .tab-btn,.tab-menu .tab-action{height:30px!important;line-height:28px!important;font-size:11px!important}}
/* 모바일: 디데이 한 줄 높이 줄이기 (메인창 아래 칸에 들어가도록) */
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
 #w-dday .content.ddays{gap:5px;padding:7px}
 #w-dday .dday{min-height:0;grid-template-columns:48px 1fr;gap:9px;padding:4px}
 #w-dday .dday-pic{width:46px;height:46px}
 #w-dday .dday-count{font-size:17px;margin:0}
 #w-dday .dday-name,#w-dday .dday-date{font-size:10px}
}
/* 모바일: 메인창 제목줄 음악 버튼 */
.win-play{display:none!important}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){.win-play{display:inline-grid!important;width:20px!important;padding:0!important;font-size:9px!important}}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){#w-dday .content.ddays{display:grid;align-content:start;grid-auto-rows:max-content}}
/* 키 작은 화면: 메인 글줄을 살짝 촘촘하게 → 디데이 2개가 한 화면에 */
@media (max-width:750px) and (max-height:780px), (orientation:portrait) and (max-width:1100px) and (hover:none) and (max-height:780px){
 #w-main .post-row{padding:10px 0!important;gap:9px!important}
 #w-main .post-avatar{width:46px!important;height:46px!important}
 #w-main .post-row{grid-template-columns:46px minmax(0,1fr)!important}
 #w-main .post-date{margin-top:2px}
 #w-main .post-preview{margin-top:5px!important}
 #w-dday .content.ddays{padding:6px;gap:4px}
 #w-dday .dday{padding:3px}
 #w-dday .dday-pic{width:42px;height:42px}
 #w-dday .dday{grid-template-columns:44px 1fr}
}

/* 테마 연동: 연한 포인트색은 포인트 색에서 자동으로 만들어요 */
:root{--theme-accent-soft:color-mix(in srgb,var(--theme-accent) 13%,#fff);--accent-soft:var(--theme-accent-soft);--gallery-tint:var(--theme-accent)}

/* ===== 프로필 (info) 펼침 ===== */
#panel-profile{padding:16px 18px!important}
.prof-box{font-size:12.5px;color:var(--theme-text)}
.prof-note{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--theme-muted);background:var(--theme-panel);border:1px dashed var(--theme-border);border-radius:3px;padding:7px 10px;margin-bottom:16px}
.prof-note b{color:var(--theme-accent);font-weight:800;letter-spacing:.04em}
.prof-sec{margin-bottom:18px}
.prof-kicker{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:800;letter-spacing:.14em;color:var(--theme-accent);margin-bottom:6px}
.prof-kicker:after{content:'';flex:1;height:1px;background:var(--theme-border)}
.prof-title{margin:0 0 4px;font-size:14px;font-weight:800;color:var(--theme-title);line-height:1.45}
.prof-tag{display:inline-block;vertical-align:2px;font-size:10.5px;font-weight:700;color:color-mix(in srgb,var(--theme-accent) 70%,#555);background:var(--theme-accent-soft);border:1px solid var(--theme-accent);border-radius:20px;padding:1px 8px}
.prof-list{list-style:none;margin:6px 0 0;padding:0}
.prof-list li{position:relative;padding:6px 0 6px 14px;line-height:1.65;border-bottom:1px solid color-mix(in srgb,var(--theme-border) 55%,transparent)}
.prof-list li:last-child{border-bottom:0}
.prof-list li:before{content:'';position:absolute;left:2px;top:14px;width:4px;height:4px;border-radius:50%;background:var(--theme-accent)}
.prof-list li.is-warn{margin:4px 0;padding:7px 10px 7px 12px;border:0;border-left:2px solid var(--theme-accent);border-radius:0 3px 3px 0;background:var(--theme-accent-soft);font-weight:700;color:color-mix(in srgb,var(--theme-accent) 55%,#444)}
.prof-list li.is-warn:before,.prof-list li.is-ng:before{display:none}
.prof-list li.is-ng{padding-left:0}
.ng-badge{display:inline-block;margin-right:6px;padding:1px 6px;border-radius:3px;background:var(--theme-accent);color:#fff;font-size:10px;font-weight:800;letter-spacing:.06em;vertical-align:1px}
.prof-pair-kicker{margin-top:4px}
.pair-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.pair-card{display:flex;align-items:center;gap:12px;min-width:0;padding:9px 12px;border:1px solid var(--theme-border);border-radius:4px;background:var(--theme-surface);text-align:left;color:var(--theme-text)}
.pair-card:hover,.pair-card.is-current{border-color:var(--theme-accent);background:var(--theme-accent-soft)}
.pair-thumbs{display:flex;flex:none;align-items:center}
.pair-thumbs i{width:38px;height:38px;border-radius:50%;border:2px solid var(--theme-surface);box-shadow:0 0 0 1px var(--theme-accent);background:var(--theme-panel);display:flex;align-items:center;justify-content:center;overflow:hidden;font-style:normal;font-size:12px;font-weight:800;color:var(--theme-accent);position:relative}
.pair-thumbs i img{width:100%;height:100%;object-fit:cover;object-position:center 20%;display:block}
.pair-thumbs i.is-face img{object-position:center center}
.pair-thumbs i+i{margin-left:-11px}
.pair-text{min-width:0}.pair-text b{display:block;font-size:12.5px;color:var(--theme-title);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pair-text small{font-size:10.5px;color:var(--theme-muted)}
.pair-go{margin-left:auto;flex:none;font-size:10px;font-weight:800;letter-spacing:.08em;color:var(--theme-accent)}

/* ===== 페어 위키 창 ===== */
.lightbox{z-index:700!important}
.wiki-window{width:min(820px,calc(100vw - 24px))!important;height:auto!important;max-height:calc(100dvh - 40px)!important}
.wiki-body{flex:1;min-height:0;overflow-y:auto;padding:16px 20px 20px;background:var(--theme-surface);color:var(--theme-text)}
.wiki-info{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0 0 12px;font-size:11.5px;color:var(--theme-muted)}
.wiki-info b{color:var(--theme-accent);margin-right:6px;font-weight:800}
.wiki-cols{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.wiki-col{--card:#86c9b4;min-width:0}
.wiki-card{border:1px solid color-mix(in srgb,var(--card) 55%,#888);background:#fff}
.wiki-card-head{background:var(--card);color:#fff;text-align:center;padding:12px 6px}
.wiki-card-head b{display:block;font-size:18px;line-height:1.25;overflow-wrap:anywhere}
.wiki-card-head small{display:block;margin-top:4px;font-size:12px;font-weight:700;opacity:.95}
.wiki-pic{display:block;width:100%;padding:0;border:0;border-bottom:1px solid color-mix(in srgb,var(--card) 55%,#888);background:#fff;cursor:zoom-in;aspect-ratio:3/4;overflow:hidden;color:var(--theme-muted)}
.wiki-pic img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}
.wiki-row{display:grid;grid-template-columns:30% minmax(0,1fr);font-size:12.5px;border-top:1px solid #e3e6e5}
.wiki-row:first-child{border-top:0}
.wiki-row b{background:var(--card);color:#fff;text-align:center;padding:7px 4px;font-weight:700;display:flex;align-items:center;justify-content:center}
.wiki-row span{padding:7px 9px;line-height:1.55;white-space:pre-line;word-break:keep-all;overflow-wrap:anywhere;color:#42464a}
.wiki-intro{margin:10px 0 8px;font-size:12.5px;line-height:1.75;white-space:pre-line}
.wiki-prompt{border:1px solid var(--theme-border);border-radius:3px;background:var(--theme-panel)}
.wiki-prompt summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:8px 11px;font-size:10.5px;font-weight:800;letter-spacing:.06em;color:var(--theme-title);cursor:pointer}
.wiki-prompt summary::-webkit-details-marker{display:none}
.wiki-prompt summary:after{content:'+';color:var(--theme-accent);font-size:15px;font-weight:400;line-height:1}
.wiki-prompt[open] summary:after{content:'−'}
.wiki-code{border-top:1px solid var(--theme-border);padding:9px 11px;overflow:hidden}
.wiki-code code{font-family:ui-monospace,Consolas,monospace;font-size:11px;line-height:1.6;color:var(--theme-text);white-space:pre-wrap;overflow-wrap:anywhere}
.wiki-copy{float:right;margin:0 0 6px 8px;padding:2px 9px;font-size:10px;border:1px solid var(--theme-accent);border-radius:3px;background:var(--theme-surface);color:var(--theme-accent)}
.wiki-copy:hover{background:var(--theme-accent-soft)}
.wiki-story{margin-top:20px;padding:14px 16px;border:1px solid var(--theme-border);border-radius:3px;background:var(--theme-panel)}
.wiki-story p{margin:0;font-size:12.5px;line-height:1.85;white-space:pre-line}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
 .wiki-body{padding:10px}
 .wiki-cols{gap:8px}
 .wiki-card-head{padding:8px 4px}.wiki-card-head b{font-size:15px}.wiki-card-head small{font-size:10.5px}
 .wiki-row{grid-template-columns:36% minmax(0,1fr);font-size:11.5px}.wiki-row b{padding:6px 2px}.wiki-row span{padding:6px 5px}
 .wiki-intro{font-size:11.5px}
 .wiki-prompt summary{padding:7px 8px;font-size:9.5px}
 .wiki-story{padding:11px 12px}
 #panel-profile{padding:12px!important}
 .pair-cards{grid-template-columns:1fr}
}
.pair-cards{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.pair-text b{white-space:normal;overflow:visible;line-height:1.35}
/* 프로필 목록: 점 대신 왼쪽 회색 막대 */
.prof-list li{padding:7px 0 7px 12px!important;border-left:4px solid color-mix(in srgb,var(--theme-border) 80%,#999);margin:6px 0;border-bottom:0!important}
.prof-list li+li{position:relative}
.prof-list li:not(.is-warn)+li:not(.is-warn):after{content:'';position:absolute;left:-4px;right:0;top:-6px;height:1px;background:color-mix(in srgb,var(--theme-border) 60%,transparent)}
.prof-list li:before{display:none!important}
.prof-list li.is-warn{border-left:4px solid var(--theme-accent)!important;padding:8px 10px 8px 12px!important}
/* 접히는 항목 */
.prof-fold summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px}
.prof-fold summary::-webkit-details-marker{display:none}
.prof-fold summary .prof-title{margin:0}
.prof-fold summary:after{content:'+';flex:none;width:20px;height:20px;display:grid;place-items:center;border:1px solid var(--theme-accent);border-radius:2px;color:var(--theme-accent);font-size:14px;line-height:1}
.prof-fold[open] summary:after{content:'−'}
.prof-fold[open] summary{margin-bottom:4px}
.prof-list li:not(.is-warn){border-left-color:var(--prof-bar,#c9cdcc)!important}
/* 페어 버튼: PC는 한 줄에 둘, 글자는 잘리지 않고 줄바꿈 */
.pair-cards{grid-template-columns:1fr 1fr!important}
.pair-card{align-items:center}
.pair-text b{white-space:normal!important;word-break:keep-all;overflow-wrap:anywhere}
.pair-text small{display:block;margin-top:2px}
.pair-text .pair-go{margin:0;font-size:10px}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){.pair-cards{grid-template-columns:1fr!important}}
.pair-thumbs i.is-face{background-position:center!important}
/* PC도 작업표시줄 시작 버튼(tab ▴)으로 메뉴 열기 */
.tab-launch{display:none!important}
.tb-start{display:inline-flex!important;align-items:center;gap:5px;flex:none;height:26px;padding:0 11px;border:1px solid var(--theme-accent);background:var(--theme-control);color:var(--theme-accent);font-size:11px;font-weight:800;letter-spacing:.04em;border-radius:3px}
.tb-start::after{content:'▴';font-size:9px;transition:transform .2s}
.tb-start:hover,.tb-start.is-active{background:var(--theme-accent-soft)}
.tb-start.is-active::after{transform:rotate(180deg)}
.tab-menu{top:auto!important;bottom:46px!important;left:8px!important;width:min(250px,calc(100vw - 16px))!important;max-height:calc(100dvh - 70px)!important;transform:translateY(12px)!important;z-index:9000!important}
.desktop.tab-open .tab-menu{transform:translateY(0)!important}
.taskbar{z-index:9001}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){.tab-menu{bottom:50px!important;left:6px!important}}
/* 글 팝업: 소설 읽기용 다듬기 */
.post-popup{z-index:9500!important}.lightbox{z-index:9600!important}
.post-embed #t-paging-source,.post-embed #t-list-source{display:none!important}
.post-embed .reading-body{max-width:680px!important;font-size:14.5px;line-height:1.95;letter-spacing:-.005em;color:var(--theme-text)}
.post-embed .reading-body p{margin:0 0 .55em!important}
.post-embed .reading-body hr{border:0!important;height:1px!important;width:38%;margin:2.2em auto!important;background:var(--theme-border)!important;background-image:none!important}
.post-embed .reading-body hr::before,.post-embed .reading-body hr::after{display:none!important}
.post-embed .native-comments{max-width:680px;margin:36px auto 10px}
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){.post-embed .reading-body{font-size:14px;line-height:1.9}.post-embed .reading-head h2{font-size:17px}}
/* 글로그 목록: 점 없애기 */
#logCats .log-link::before{content:none!important;display:none!important}
/* 글 팝업 제목줄: 제목 왼쪽, 날짜 오른쪽 */
.post-embed .reading-head{display:block!important;text-align:left!important;padding:6px 0 14px!important;margin:0 auto 22px!important;max-width:680px}
.post-embed .reading-head>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.post-embed .reading-head h2{margin:0!important;min-width:0;overflow-wrap:anywhere}
.post-embed .reading-head time{flex:none;white-space:nowrap}
/* 굵게·사진 */
.post-embed .reading-body :is(b,strong){font-weight:800;color:var(--theme-title)}
.post-embed .reading-body figure{margin:1.4em auto!important;text-align:center}
.post-embed .reading-body img{max-width:100%!important;height:auto!important;border-radius:3px}
.post-embed .reading-body figcaption{font-size:11.5px;color:var(--theme-muted);margin-top:6px}
/* 모바일: 양옆 여백 넉넉하게 */
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){.post-embed #t-entry-source .t-entry-detail{padding:16px 22px 18px!important}.post-popup-window{width:calc(100vw - 12px)!important}}
/* 소설 본문 양쪽 정렬 (오른쪽 끝도 가지런하게) */
.post-embed .reading-body p,.post-embed .reading-body li{text-align:justify;text-justify:inter-character}
/* 클릭 힌트: 사진 */
.photo-frame{cursor:pointer}
.photo-dots{position:absolute;left:0;right:0;bottom:9px;z-index:5;display:flex;justify-content:center;gap:5px;pointer-events:none}
.photo-dots i{width:6px;height:6px;border-radius:50%;background:#fff9;box-shadow:0 0 0 1px #0002;transition:all .25s}
.photo-dots i.on{width:16px;border-radius:4px;background:var(--theme-accent)}
.photo-frame.hint::before{content:'';position:absolute;inset:0;z-index:4;pointer-events:none;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.55) 48%,transparent 60%);background-size:250% 100%;background-position:130% 0;animation:hint-shine 6s ease-in-out 1.2s infinite}
@keyframes hint-shine{0%,72%{background-position:130% 0}90%,100%{background-position:-60% 0}}
/* 클릭 힌트: 스티커 (통통 + 반짝이) */
.sd-sticker.hint{animation:hint-hop 5.5s ease-in-out var(--hint-delay,0s) infinite}
@keyframes hint-hop{0%,78%,100%{transform:translateY(0)}84%{transform:translateY(-9px) rotate(-3deg)}90%{transform:translateY(0)}94%{transform:translateY(-4px) rotate(2deg)}}
.sd-sticker.hint::before{content:'✦';position:absolute;top:4%;right:6%;z-index:3;font-size:15px;line-height:1;color:var(--theme-accent);text-shadow:0 0 4px #fff,0 0 8px #fff;pointer-events:none;animation:hint-twinkle 2.2s ease-in-out var(--hint-delay,0s) infinite}
@keyframes hint-twinkle{0%,100%{opacity:0;transform:scale(.4) rotate(0)}45%,60%{opacity:1;transform:scale(1.1) rotate(25deg)}}
.sd-sticker.hint:hover{animation:sticker-sway-soft .85s ease-in-out infinite alternate!important}
@media(prefers-reduced-motion:reduce){.photo-frame.hint::before,.sd-sticker.hint,.sd-sticker.hint::before{animation:none!important}}
/* 움직임 정리: 사진 빛줄기·스티커 통통 없애고, 스티커 머리 위 반짝이만 */
.photo-frame.hint::before{content:none!important;animation:none!important}
.sd-sticker.hint{animation:none}
.sd-sticker.hint:hover{animation:sticker-sway-soft .85s ease-in-out infinite alternate!important}
.sd-sticker.hint::before{top:-6px!important;right:auto!important;left:50%;margin-left:-8px;font-size:16px}
/* 고양이 발바닥 커서 */
.paw-cursor,.paw-cursor body,.paw-cursor .desktop{cursor:var(--paw)}
.paw-cursor :is(a,button,summary,[role=button],.post-row,.photo-frame,.sd-sticker,.thumb,.log-link,.pair-card,.wiki-pic,.category-head,.tb-app,.tb-start,label,select){cursor:var(--paw-click)!important}
.paw-cursor .titlebar{cursor:var(--paw-click)}
.paw-cursor :is(input,textarea,[contenteditable]){cursor:text}
/* 반짝이는 글꼴 대신 그림(별 모양)으로: 어떤 기기에서도 똑같이 보이게 */
.sd-sticker.hint::before{content:''!important;width:16px;height:16px;margin-left:-8px;background:var(--theme-accent);
 -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0C10.8 6 14 9.2 20 10C14 10.8 10.8 14 10 20C9.2 14 6 10.8 0 10C6 9.2 9.2 6 10 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0C10.8 6 14 9.2 20 10C14 10.8 10.8 14 10 20C9.2 14 6 10.8 0 10C6 9.2 9.2 6 10 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
 filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 3px #fff);text-shadow:none}
/* × 버튼: 글자 대신 선 두 개로 그려서 정확히 가운데 */
:is(.win-close,#postPopupClose,#wikiClose,#stickerPopupClose){position:relative;font-size:0!important;color:transparent!important;line-height:0}
:is(.win-close,#postPopupClose,#wikiClose,#stickerPopupClose)::before,:is(.win-close,#postPopupClose,#wikiClose,#stickerPopupClose)::after{content:'';position:absolute;left:50%;top:50%;width:10px;height:1.4px;border-radius:1px;background:var(--theme-accent);transform:translate(-50%,-50%) rotate(45deg)}
:is(.win-close,#postPopupClose,#wikiClose,#stickerPopupClose)::after{transform:translate(-50%,-50%) rotate(-45deg)}
/* ← 버튼도 선으로 그려서 가운데 */
.win-back{position:relative;font-size:0!important;color:transparent!important}
.win-back::before{content:'';position:absolute;left:50%;top:50%;width:10px;height:1.4px;background:var(--theme-accent);transform:translate(-50%,-50%)}
.win-back::after{content:'';position:absolute;left:50%;top:50%;width:5px;height:5px;border-left:1.4px solid var(--theme-accent);border-bottom:1.4px solid var(--theme-accent);transform:translate(-6px,-50%) rotate(45deg)}
/* 티스토리 구독하기 떠다니는 버튼 숨기기 (작업표시줄 시계를 가림) */
.btn_subscription,.menu_toolbar .btn_subscription{display:none!important}
/* 모바일 글 팝업: 네 방향 여백 똑같이 */
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
 .post-popup{padding:12px!important;box-sizing:border-box}
 .post-popup-window{width:100%!important;max-width:100%!important;height:calc(100dvh - 24px)!important;box-sizing:border-box}
 .wiki-window{height:auto!important;max-height:calc(100dvh - 24px)!important}
}
/* 방명록 입력칸: 작고 단정하게 */
.guest-embed #guest-embedded-root{padding:0!important}
#w-main .guest-panel{padding:8px!important}
#guest-embedded-root .tt-comment-cont{border:0!important;padding:10px 12px 12px!important;background:transparent!important}
#guest-embedded-root .tt-box-total{font-size:12px!important;font-weight:650!important;color:var(--theme-title)!important;padding:0 0 8px!important;margin:0 0 10px!important;letter-spacing:0!important}
#guest-embedded-root .tt-box-total::before{content:none!important;display:none!important}
#guest-embedded-root .tt-box-total *{font-size:12px!important;font-weight:650!important}
#guest-embedded-root .tt-box-total :is(.tt_num_g,span:last-child){color:var(--theme-accent)!important;margin-left:4px}
#guest-embedded-root .tt-box-account{gap:6px!important;margin-bottom:6px!important}
#guest-embedded-root :is(input[type=text],input[type=password],input:not([type])){height:30px!important;padding:5px 9px!important;font-size:11.5px!important}
#guest-embedded-root textarea{min-height:58px!important;height:58px;padding:7px 9px!important;font-size:11.5px!important;line-height:1.55!important}
#guest-embedded-root :is(.tt-btn_register,button[type=submit]){height:26px!important;min-width:48px;padding:0 12px!important;font-size:11px!important}
#guest-embedded-root .tt-box-write,#guest-embedded-root .tt-area-write{margin:0!important;padding:0!important}
#guest-embedded-root .tt-box-write{margin-top:6px!important}
.gb-native iframe{min-height:0!important;height:260px}
.guest-embed body,.guest-embed html{min-height:0!important;height:auto!important}
/* 동그란 썸네일 최종 정리 */
.pair-thumbs i {
  width: 44px !important;
  height: 44px !important;
  overflow: hidden !important;
}
.pair-thumbs i img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}
/* ===== 추가 1: 탭 메뉴 "창 목록"/"화면" 제목 크기 통일 ===== */
.tab-menu h2,.tab-menu .tab-heading{font-size:11px!important;font-weight:700!important;letter-spacing:.02em!important;color:var(--theme-title)!important;margin:0 0 6px!important;text-transform:none!important}
.tab-menu .tab-heading{margin-top:12px!important}
/* ===== 추가 2: 그림 저장·끌기·길게 눌러 저장 막기 (글로그 글 사진 포함) ===== */
#desktop img,#wikiPopup img,#lightbox img,#stickerPhotoPopup img,.reading-body img,#desktop .pair-thumbs i{-webkit-user-drag:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#desktop :is(.photo-frame,.sd-sticker,.banner,.wiki-pic,.post-avatar,.dday-pic,.cover,.pair-thumbs),.reading-body figure{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
#extraBanners{display:none!important}
/* ===== 추가 3: 위키 카드 아래 주석 작게 + 프롬프트 칸 띄우기 ===== */
.wiki-intro{font-size:10.5px!important;line-height:1.5!important;color:var(--theme-muted)!important;margin:6px 2px 12px!important;letter-spacing:.01em}
.wiki-card+.wiki-prompt{margin-top:14px}
.st-name ~ .st-text{padding-left:1.1em;font-size:.95em}
/* 말풍선이 뜬 스티커를 다른 스티커보다 위로 */
#stickerLayer .sd-sticker.bubble,
#stickerLayer .sd-sticker:hover{z-index:20!important}
#stickerLayer .sd-sticker::after{z-index:21!important}
/* 모바일에서 숨길 스티커 — 숫자 = 스티커 번호 */
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
 #stickerLayer .sd-sticker[data-slot="5"],
 #stickerLayer .sd-sticker[data-slot="6"],
 #stickerLayer .sd-sticker[data-slot="7"]{display:none!important}
 /* 6번·1번 스티커 그림을 칸 바닥에 붙이기 */
#stickerLayer .sd-sticker[data-slot="6"] .sticker-img,
#stickerLayer .sd-sticker[data-slot="1"] .sticker-img{object-position:50% 100%}
}
/* 글 팝업 안쪽 스크롤 고치기 (모바일) */
html.post-embed{height:100%!important;overflow:hidden!important}
html.post-embed body{height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
/* 보호글 비밀번호 칸 정리 (모바일만) */
@media (max-width:750px), (orientation:portrait) and (max-width:1100px) and (hover:none){
 #t-entry-source .protected-box{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;padding:30px 18px!important;text-align:center}
 #t-entry-source .protected-box p{flex:1 0 100%;margin:0 0 8px!important;font-size:13px;color:var(--theme-muted)}
 #t-entry-source .protected-box input{flex:1 1 auto;min-width:0;max-width:220px;height:36px;margin:0!important;padding:0 12px!important;box-sizing:border-box;font-size:14px;border:1px solid var(--theme-border);border-radius:4px;background:var(--theme-surface)}
 #t-entry-source .protected-box button{flex:none;height:36px;margin:0!important;padding:0 14px!important;box-sizing:border-box;font-size:12px;border:1px solid var(--theme-accent)!important;background:var(--theme-control)!important;color:var(--theme-accent)!important;border-radius:4px}
}
/* 보호글 힌트 문구 (PC·모바일 공통) */
#t-entry-source .protected-box::after{content:"힌트 : 계정 생일";display:block;flex:1 0 100%;margin-top:10px;font-size:11.5px;color:var(--theme-muted)}
/* 인용 상자 글자 크기를 본문에 맞추기 */
.t-entry-detail .reading-body blockquote,
.t-entry-detail .reading-body blockquote p,
.t-entry-detail .reading-body blockquote span{font-size:inherit!important;line-height:1.85!important}
/* PC 글 팝업 가독성 */
@media (min-width:751px) and (hover:hover){
 .post-embed .reading-body{font-size:15px!important;line-height:1.95!important}
 .post-embed .reading-body p{margin:0 0 .9em!important}
}
/* 댓글 이름·비밀번호 칸 사이 간격 */
.native-comments input[type="text"]:has(+ input[type="password"]),
.native-comments input[type="password"]{width:calc(50% - 6px)!important;box-sizing:border-box!important}
.native-comments input[type="password"]{margin-left:8px!important}
/* 메인 창 안에서 열린 글도 팝업과 같은 크기로 */
#mainDetail .reading-head{max-width:680px;margin-left:auto!important;margin-right:auto!important}
#mainDetail .reading-body{max-width:680px!important;margin:0 auto!important;font-size:14.5px!important;line-height:1.95!important;letter-spacing:-.005em}
#mainDetail .reading-body p{font-size:inherit!important;line-height:inherit!important;margin:0 0 .9em!important}
@media (min-width:751px) and (hover:hover){
 #mainDetail .reading-body{font-size:15px!important}
}
/* 배경: 은은한 격자 */
.wallpaper{background-color:var(--theme-page)!important;background-image:linear-gradient(color-mix(in srgb,var(--theme-accent) 12%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--theme-accent) 12%,transparent) 1px,transparent 1px)!important;background-size:28px 28px!important}
/* PC: 창 안 내용물을 화면 크기에 맞춰 같이 줄이기 (1920px 기준) */
@media (min-width:751px) and (orientation:landscape), (min-width:1101px), (min-width:751px) and (hover:hover){
 #desktop .window>.titlebar,
 #desktop .window>.content{zoom:var(--ui,1)}
}
/* PC: 스티커·작업표시줄·탭 메뉴도 화면 배율 따라가기 */
@media (min-width:751px) and (orientation:landscape), (min-width:1101px), (min-width:751px) and (hover:hover){
 #stickerLayer .sd-sticker{scale:var(--ui,1)}
 #taskbar,.tab-menu{zoom:var(--ui,1)}
}
/* 글 본문: 빈 줄이 겹쳐 생긴 넓은 간격을 하나로 맞추기 */
.reading-body p:empty+p:empty,
.reading-body p:has(>br:only-child)+p:has(>br:only-child){display:none}