#winter-post { position:fixed; inset:0; z-index:74000; display:grid; place-items:center; padding:16px; overflow:hidden; background:#081427c7; backdrop-filter:blur(5px); color:#693d20; --game-title:32px; --game-subtitle:23px; --game-text:15px; --game-label:16px; --game-note:12px; --game-ui-font:Arial,sans-serif; }
#winter-post[hidden] { display:none; }
#winter-post *,#winter-post *::before,#winter-post *::after { box-sizing:border-box; }
.pm-window { position:relative; display:flex; flex-direction:column; width:min(1200px,100%); max-height:calc(100dvh - 32px); --pm-frame-top:100px; padding:calc(var(--pm-frame-top) + 4px) 68px 53px; isolation:isolate; }
.pm-window::before { content:''; position:absolute; inset:0; z-index:5; pointer-events:none; border:solid transparent; border-width:100px 70px 54px; border-image:url('assets/quests/story-frame-v1.png') 145 110 75 / var(--pm-frame-top) 70px 54px / 0 stretch; }
.pm-window::after { content:''; position:absolute; inset:30px 30px 23px; z-index:-1; border-radius:28px; background:linear-gradient(120deg,#623518,#3d2519 40%,#5a321d); box-shadow:0 20px 70px #030e22aa; }
.pm-header { display:flex; justify-content:center; padding:4px 40px 10px; }
.pm-header h2 { margin:0; color:#ffe5a1; text-align:center; text-shadow:0 2px 2px #30180d; font:700 clamp(25px,3vw,36px)/1.1 Georgia,serif !important; }
.pm-close { position:absolute; z-index:6; top:32px; right:29px; width:40px; height:40px; border:2px solid #ffe69e; border-radius:50%; background:linear-gradient(#dd683c,#9d2f1a); color:#fff3c6; font:28px/1 Arial,sans-serif !important; box-shadow:0 0 0 2px #af7936; cursor:pointer; }
.pm-nav { display:flex; align-items:center; justify-content:center; gap:12px; margin:5px 0 12px; }
.pm-tab { min-width:160px; min-height:40px; padding:7px 20px; border:2px solid #c39245; border-radius:24px; color:#79471f; background:linear-gradient(#fff8e3,#ecc68e); box-shadow:inset 0 1px #fff8dc,0 2px 4px #1d110c55; }
.pm-tab[aria-current="page"] { color:#fff4c7; border-color:#e9c65a; background:linear-gradient(#56843c,#20572e 70%,#153e28); }
.pm-journal-link,.pm-back { border:0; padding:7px 2px; color:#f6dfac; background:none; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.pm-summary { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:5px 22px; margin:0 0 12px; padding:8px 12px; border:1px solid #b28b4d; border-radius:12px; color:#f3dfb2; background:#2f1d1599; font-size:13px; }
.pm-content { min-height:0; overflow:auto; padding:3px 4px 8px; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#b88843 #48281a; }
.pm-content>.pm-letter-title { color:#ffe6ae; margin:5px 0 20px; text-align:center; }
.pm-inbox { display:grid; grid-template-columns:180px minmax(0,1fr); gap:20px; }
.pm-postman { display:flex; flex-direction:column; justify-content:center; align-items:center; min-width:0; margin:0; color:#ffe5b3; background:radial-gradient(ellipse,#192337dd,#14213799 80%,transparent); border-radius:22px; }
.pm-rabbit { width:100%; aspect-ratio:260/375; background:url('assets/post-r01/reference-atlas.png') 3.68% 12.01% / 643.08% 250.93% no-repeat; }
.pm-postman p { max-width:150px; text-align:center; margin:0 8px 15px; font:italic 18px/1.35 Georgia,serif !important; }
.pm-letters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.pm-card { display:flex; flex-direction:column; align-items:center; min-width:0; padding:9px 10px 15px; border:2px solid #d8ad5b; border-radius:22px; color:#713a18; background:linear-gradient(#fff9e8,#f6dcad); box-shadow:0 4px 6px #25130966,inset 0 0 0 2px #fff0cb; }
.pm-envelope { width:100%; aspect-ratio:285/190; background-repeat:no-repeat; border-radius:14px; flex:none; }
.pm-card h3 { min-height:50px; margin:8px 0 4px; text-align:center; --game-subtitle:20px; }
.pm-chapter { color:#97723e; text-align:center; }
.pm-card-title { min-height:38px; margin:9px 0; text-align:center; color:#865b33; --game-text:13px; }
.pm-gift-count { font-size:14px; font-weight:700; }
.pm-rewards { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:5px 13px; margin:10px 0 12px; }
.pm-rewards>span { display:flex; align-items:center; gap:5px; white-space:nowrap; font-size:14px; }
.pm-currency { width:25px; height:25px; object-fit:contain; }
.pm-button { display:flex; align-items:center; justify-content:center; gap:7px; width:100%; min-height:43px; padding:9px 13px; border:2px solid #d9ac4b; border-radius:24px; color:#fff5cd; background:linear-gradient(#628d42,#266333 65%,#174a2b); box-shadow:inset 0 1px #c0d58a,0 2px 0 #70411f; cursor:pointer; }
.pm-button:disabled { color:#a6977a; border-color:#c8b999; background:linear-gradient(#e9e0cf,#cfc3ad); box-shadow:inset 0 1px #faf1df; cursor:default; }
.pm-card>.pm-button { margin-top:auto; }
.pm-button:not(:disabled):hover,.pm-tab:not(:disabled):hover { filter:brightness(1.06); }
#winter-post button:focus-visible { outline:3px solid #81c7df; outline-offset:3px; }
.pm-day-done { color:#ffe7bc; text-align:center; margin:14px 0 0; }
.pm-letter { display:grid; grid-template-columns:minmax(200px,.8fr) minmax(0,1.2fr); gap:23px; align-items:start; padding:24px; border:2px solid #d5ad60; border-radius:22px; color:#754221; background:linear-gradient(120deg,#fff8e8,#f4d9a9); }
.pm-letter-picture { width:100%; aspect-ratio:285/190; background-repeat:no-repeat; border-radius:16px; margin-top:4px; }
.pm-letter-body { min-width:0; }
.pm-from { color:#a0703e; }
.pm-letter-title { margin:10px 0 13px; color:#713717; --game-subtitle:26px; }
.pm-story { margin:12px 0 17px; line-height:1.7 !important; --game-text:17px; }
.pm-letter-stock { font-weight:700; padding:10px; border:1px solid #dfbd80; border-radius:12px; background:#fff6dd; }
.pm-letter-body .pm-rewards { justify-content:flex-start; }
.pm-missing,.pm-unavailable { color:#a36839; }
.pm-confirm { display:flex; flex-direction:column; gap:9px; padding:16px; border:2px solid #d4a552; border-radius:17px; background:#fff3cc; }
.pm-confirm p { margin:0 0 8px; }
.pm-confirm .pm-back { color:#7b502b; }
.pm-reply { max-width:650px; margin:0 auto; padding:22px 30px; border:2px solid #d4a557; border-radius:23px; text-align:center; color:#713b1e; background:linear-gradient(#fff9e7,#f4ddaf); }
.pm-reply .pm-envelope { max-width:320px; margin:0 auto 15px; }
.pm-reply .pm-letter-title { --game-subtitle:36px; }
.pm-reply-from { color:#a57740; font-weight:700; }
.pm-sent { display:inline-block; margin:5px 0 10px; padding:5px 14px; border:2px solid #a13c2b; border-radius:8px; color:#a13c2b; background:#fff1cf; font-size:13px; font-weight:700; }
.pm-reply small { color:#9b784c; }
.pm-album-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.pm-album-card { display:flex; flex-direction:column; gap:10px; align-items:center; min-width:0; padding:13px; border:2px solid #d5ad60; border-radius:20px; background:#fff1d5; text-align:center; }
.pm-album-card h3 { margin:2px 0; --game-subtitle:19px; }
.pm-album-card small { color:#9a7246; }
.pm-album-card .pm-button { margin-top:auto; }
.pm-album-note { max-width:550px; margin:25px auto 35px; text-align:center; color:#ffebc1; line-height:1.6; }
.pm-journal-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:14px 18px; margin-bottom:10px; border:1px solid #d3aa67; border-radius:14px; background:#fff1d5; }
.pm-journal-row .pm-rewards { margin:0; }
.pm-journal-row time { color:#a07846; }
.pm-status { flex:none; margin:10px 0 0; padding:8px 13px; border:1px solid #ceab6b; border-radius:12px; color:#ffedb8; background:#38261b; text-align:center; }
.pm-status.success { color:#d4efb3; }
.pm-status.error { color:#ffd2b4; }
.pm-retry { flex:none; width:min(370px,100%); margin:12px auto 0; }
.pm-footer { flex:none; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:4px 23px; padding:12px 5px 0; color:#f4d5a1; font-size:12px; }
.pm-clock { font-variant-numeric:tabular-nums; }
.pm-loading { padding:30px 10px; text-align:center; color:#ffe7b7; }
@media(max-width:1000px) { .pm-window { --pm-frame-top:94px; padding-inline:55px; padding-bottom:45px; } .pm-window::before { border-image-width:var(--pm-frame-top) 60px 48px; } .pm-inbox { grid-template-columns:130px minmax(0,1fr); gap:12px; } .pm-letters { gap:10px; } .pm-card { padding:7px 7px 12px; } .pm-card h3 { --game-subtitle:18px; } .pm-rewards>span { font-size:12px; } }
@media(max-height:720px) and (min-width:700px) { .pm-window { --pm-frame-top:80px; padding-bottom:38px; } .pm-window::before { border-image-width:var(--pm-frame-top) 65px 42px; } .pm-header h2 { font-size:29px !important; } .pm-close { top:25px; right:25px; width:35px; height:35px; } .pm-nav { margin:2px 0 9px; } .pm-tab { min-height:34px; } .pm-summary { margin-bottom:9px; padding:6px 10px; font-size:12px; } .pm-postman { max-height:310px; } .pm-rabbit { max-height:250px; } .pm-card h3 { --game-subtitle:18px; min-height:43px; } .pm-card-title { --game-text:12px; min-height:30px; margin:5px 0; } .pm-rewards { margin:7px 0 10px; } .pm-card .pm-button { min-height:37px; } .pm-footer { padding-top:9px; } }
@media(max-width:699px) { #winter-post { padding:8px; --game-label:14px; --game-text:14px; } .pm-window { max-height:calc(100dvh - 16px); --pm-frame-top:78px; padding-inline:24px; padding-bottom:35px; } .pm-window::before { border-width:78px 28px 38px; border-image-width:var(--pm-frame-top) 28px 38px; } .pm-window::after { inset:25px 10px 14px; border-radius:20px; } .pm-header { padding:4px 6px 12px; } .pm-header h2 { font-size:27px !important; } .pm-close { top:22px; right:15px; width:31px; height:31px; font-size:23px !important; } .pm-nav { gap:7px; flex-wrap:wrap; margin-bottom:10px; } .pm-tab { min-width:0; flex:1; min-height:37px; padding:7px 12px; } .pm-journal-link { flex:none; font-size:12px; } .pm-summary { gap:4px 12px; font-size:11px; padding:7px; } .pm-inbox { display:block; } .pm-postman { display:none; } .pm-letters { grid-template-columns:1fr; gap:16px; } .pm-card { max-width:360px; margin:0 auto; width:100%; padding:12px 16px 17px; } .pm-card .pm-envelope { max-height:200px; } .pm-card h3 { min-height:0; --game-subtitle:23px; } .pm-card-title { min-height:0; margin:8px 0; } .pm-rewards { gap:5px 12px; } .pm-rewards>span { font-size:14px; } .pm-letter { grid-template-columns:1fr; padding:16px; gap:12px; } .pm-letter-picture { max-width:300px; margin:0 auto; } .pm-letter-title { --game-subtitle:23px; } .pm-story { --game-text:16px; } .pm-letter-body .pm-button { position:relative; } .pm-reply { padding:18px 15px; } .pm-album-grid { grid-template-columns:1fr; } .pm-footer { font-size:10px; gap:4px 12px; } .pm-journal-row { padding:12px; } }
@media(max-height:450px) and (min-width:700px) { .pm-window { --pm-frame-top:66px; padding-bottom:30px; } .pm-window::before { border-image-width:var(--pm-frame-top) 60px 34px; } .pm-header { padding-bottom:4px; } .pm-header h2 { font-size:24px !important; } .pm-nav { margin:0 0 5px; } .pm-tab { min-height:29px; padding:4px 12px; } .pm-summary { padding:4px 10px; margin-bottom:5px; } .pm-footer { padding-top:5px; } }
#winter-post { border:0; border-radius:0; box-shadow:none; max-width:none; max-height:none; margin:0; }
#winter-post .pm-close { --game-label:28px; }
@media(max-height:720px) and (min-width:700px) { .pm-card .pm-envelope { width:90%; } .pm-card h3 { min-height:40px; } .pm-card .pm-rewards { margin:5px 0 9px; } }
@media(max-width:699px) { #winter-post .pm-close { --game-label:23px; } .pm-letter-picture { max-width:230px; } }
.pm-letter-actions { flex:none; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px 16px; margin:10px 4px 0; padding:12px 16px; border:2px solid #c99b51; border-radius:17px; color:#754221; background:linear-gradient(#fff7df,#f1d7a7); }
.pm-letter-actions .pm-letter-stock { padding:0; border:0; background:none; margin:0; --game-text:14px; }
.pm-letter-actions .pm-rewards { margin:0; }
.pm-letter-actions>.pm-button { width:auto; min-width:220px; }
.pm-letter-actions .pm-missing { flex-basis:100%; text-align:center; margin:0; --game-text:13px; }
.pm-letter-actions .pm-confirm { width:100%; padding:10px; }
.pm-letter-actions .pm-confirm .pm-button { min-height:38px; }
@media(max-width:699px) { .pm-letter-actions { gap:6px; padding:9px 10px; margin:8px 4px 0; } .pm-letter-actions .pm-letter-stock { flex-basis:100%; text-align:center; --game-text:12px; } .pm-letter-actions .pm-rewards>span { font-size:13px; } .pm-letter-actions>.pm-button { flex-basis:100%; min-height:40px; } .pm-letter-actions .pm-confirm { padding:5px; --game-text:12px; } }
@media(max-width:699px) and (max-height:650px) {
 .pm-window { --pm-frame-top:64px; padding-inline:22px; padding-bottom:28px; }
 .pm-window::before { border-image-width:var(--pm-frame-top) 26px 30px; }
 .pm-header { padding-bottom:9px; }
 .pm-header h2 { font-size:23px !important; }
 .pm-close { top:17px; right:13px; width:29px; height:29px; }
 .pm-summary { padding:5px 7px; margin-bottom:7px; }
 .pm-window:has(.pm-confirm) .pm-nav { display:none; }
 .pm-letter-actions .pm-confirm { gap:6px; }
 .pm-letter-actions .pm-confirm p { font-size:11px !important; margin:0; }
 .pm-letter-actions .pm-confirm .pm-button { min-height:36px; }
}
.pm-card { position:relative; }
.pm-card>.pm-sent { position:absolute; top:13px; left:14px; z-index:1; margin:0; transform:rotate(-7deg); background:#fff1cff2; pointer-events:none; }
.pm-card-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
/* Confirmation is a compact standalone decision, without a clipped letter behind it. */
.pm-window:has(.pm-confirm) .pm-content,.pm-window:has(.pm-confirm) .pm-nav { display:none; }
.pm-letter-actions .pm-confirm { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pm-confirm>strong,.pm-confirm>p { grid-column:1 / -1; }
.pm-confirm>.pm-back { border:1px solid #b78a48; border-radius:22px; text-decoration:none; background:#fff6df; }
.pm-header { --game-title:32px; }
@media(max-height:720px) and (min-width:700px) { .pm-header { --game-title:29px; } }
@media(max-width:699px) { .pm-header { --game-title:27px; } }
@media(max-width:699px) and (max-height:650px) { .pm-header { --game-title:23px; } }
@media(max-height:450px) and (min-width:700px) {
 .pm-header { --game-title:24px; }
 .pm-letter-actions .pm-confirm { padding:7px; gap:6px; }
 .pm-confirm p { margin:0; --game-text:12px; }
 .pm-letter-actions { padding:8px 12px; margin-top:6px; }
}

/* R02: fit the full daily inbox and letter on laptop-height viewports. */
@media(min-width:700px) {
 #winter-post { padding:8px; --game-text:14px; --game-label:14px; }
 #winter-post .pm-window { width:min(1120px,100%); height:auto; max-height:calc(100dvh - 16px); --pm-frame-top:70px; padding-inline:52px; padding-bottom:34px; }
 #winter-post .pm-window::before { border-image-width:var(--pm-frame-top) 55px 38px; }
 #winter-post .pm-header { flex:none; padding:0 35px 5px; --game-title:27px; }
 #winter-post .pm-close { top:22px; right:22px; width:32px; height:32px; --game-label:24px; }
 #winter-post .pm-nav { flex:none; gap:10px; margin:0 0 7px; }
 #winter-post .pm-tab { min-width:130px; min-height:32px; padding:5px 16px; }
 #winter-post .pm-summary { flex:none; margin-bottom:8px; padding:5px 9px; gap:4px 18px; font-size:12px; }
 #winter-post .pm-content { flex:0 1 auto; padding:0 3px 3px; }
 #winter-post .pm-inbox { grid-template-columns:130px minmax(0,1fr); gap:14px; }
 #winter-post .pm-postman { align-self:center; }
 #winter-post .pm-rabbit { max-height:220px; }
 #winter-post .pm-postman p { margin:0 5px 8px; font-size:14px !important; }
 #winter-post .pm-letters { gap:12px; align-items:stretch; }
 #winter-post .pm-card { padding:8px 10px 10px; border-radius:18px; }
 #winter-post .pm-card .pm-envelope { height:clamp(74px,20dvh,140px); width:auto; max-width:100%; aspect-ratio:285/190; }
 #winter-post .pm-card h3 { display:flex; align-items:center; justify-content:center; min-height:42px; margin:5px 0 2px; --game-subtitle:18px; }
 #winter-post .pm-card .pm-chapter { --game-note:11px; }
 #winter-post .pm-card-title { min-height:32px; margin:4px 0; --game-text:12px; }
 #winter-post .pm-gift-count { font-size:13px; }
 #winter-post .pm-card .pm-rewards { margin:5px 0 8px; }
 #winter-post .pm-rewards>span { font-size:13px; }
 #winter-post .pm-currency { width:22px; height:22px; }
 #winter-post .pm-button { min-height:34px; padding:6px 12px; }
 #winter-post .pm-footer { padding-top:6px; font-size:11px; }
 #winter-post .pm-back { padding:3px 1px 6px; }
 #winter-post .pm-letter { grid-template-columns:190px minmax(0,1fr); gap:18px; padding:16px; border-radius:18px; }
 #winter-post .pm-letter-picture { align-self:center; width:100%; margin:0; }
 #winter-post .pm-letter-title { margin:6px 0 9px; --game-subtitle:22px; }
 #winter-post .pm-story { margin:8px 0; --game-text:15px; line-height:1.45 !important; }
 #winter-post .pm-from { --game-note:12px; }
 #winter-post .pm-letter-actions { gap:6px 14px; margin-top:7px; padding:8px 12px; }
 #winter-post .pm-letter-actions .pm-missing { flex-basis:auto; --game-text:12px; }
 #winter-post .pm-letter-actions>.pm-button { min-width:180px; }
 #winter-post .pm-reply { max-width:720px; padding:12px 20px; }
 #winter-post .pm-reply .pm-envelope { width:165px; margin:0 auto 5px; }
 #winter-post .pm-reply .pm-letter-title { --game-subtitle:25px; margin:4px 0; }
 #winter-post .pm-reply .pm-story { margin:6px 0; }
 #winter-post .pm-day-done { margin:6px 0 0; --game-text:12px; }
}
@media(min-width:700px) and (max-height:620px) {
 #winter-post .pm-window { --pm-frame-top:59px; padding-bottom:28px; }
 #winter-post .pm-window::before { border-image-width:var(--pm-frame-top) 55px 32px; }
 #winter-post .pm-header { --game-title:23px; padding-bottom:4px; }
 #winter-post .pm-nav { margin-bottom:5px; }
 #winter-post .pm-summary { margin-bottom:6px; padding:4px 8px; }
 #winter-post .pm-card .pm-envelope { height:clamp(62px,18dvh,108px); }
 #winter-post .pm-card h3 { min-height:38px; --game-subtitle:16px; }
 #winter-post .pm-letter { grid-template-columns:145px minmax(0,1fr); padding:12px; gap:14px; }
 #winter-post .pm-letter-title { --game-subtitle:20px; }
 #winter-post .pm-story { --game-text:14px; }
 #winter-post .pm-reply .pm-envelope { width:125px; }
}

.pm-news-list { display:grid;gap:10px;max-width:720px;margin:12px auto; }
.pm-news-card,.pm-news-letter { border:1px solid #c79b5e;border-radius:13px;background:linear-gradient(#fff9e9,#f4e0b9);color:#63401f;padding:14px 16px; }
.pm-news-card { display:flex;justify-content:space-between;align-items:center;gap:12px; }
.pm-news-card h3 { margin:4px 0 0;font:700 18px Georgia,serif; }
.pm-news-card > :first-child { flex:1;min-width:0; }
.pm-news-card .pm-button { flex:0 0 auto;width:auto;min-width:0;padding-inline:18px; }
.pm-news-letter { max-width:720px;margin:12px auto; }
.pm-news-letter .pm-story { white-space:pre-line; }
.pm-news-prize { display:flex;align-items:center;gap:7px;margin:12px 0;color:#3c6236; }
.pm-news-prize .pm-currency { width:23px;height:23px; }
@media(max-width:699px){.pm-nav{flex-wrap:wrap;gap:6px}.pm-news-card,.pm-news-letter{padding:10px 12px}}

/* M2: the M1 safe rectangle contains one toolbar and one reading surface.
   Only compact mail changes composition; the desktop frame and DOM order stay intact. */
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] {
 display:grid;grid-template-columns:minmax(118px,.7fr) minmax(0,1.3fr) 44px;
 grid-template-rows:44px minmax(0,1fr);gap:6px;
 padding:10px 12px;overflow:hidden;--pm-frame-top:10px;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout]::before {
 border-width:10px 12px;border-image-width:10px 12px;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout]::after {inset:4px;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-header {display:contents;background:none;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-header h2 {
 grid-area:1/1;display:flex;align-items:center;justify-content:flex-start;
 min-width:0;margin:0;text-align:left;font-size:18px !important;line-height:1.12;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-close {
 grid-area:1/3;position:static;width:44px;height:44px;min-width:44px;min-height:44px;margin:0;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-nav {
 grid-area:1/2;display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:4px;min-width:0;margin:0;padding:0;align-items:stretch;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-nav button {
 min-width:0;min-height:44px;padding:3px 5px;font-size:13px;line-height:1.15;
 overflow-wrap:anywhere;white-space:normal;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-journal-link {
 border:2px solid #c39245;border-radius:24px;color:#79471f;text-decoration:none;
 background:linear-gradient(#fff8e3,#ecc68e);box-shadow:inset 0 1px #fff8dc,0 2px 4px #1d110c55;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-journal-link[aria-current="page"] {
 color:#fff4c7;border-color:#e9c65a;background:linear-gradient(#56843c,#20572e 70%,#153e28);
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] :is(.pm-content,.pm-loading) {
 grid-area:2/1/3/-1;display:block !important;min-width:0;min-height:0;margin:0;
 overflow-y:auto;overflow-x:hidden;padding:4px 4px 12px;overscroll-behavior:contain;
 scroll-padding-block:8px 16px;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-summary {
 justify-content:flex-start;gap:3px 14px;margin:0 0 8px;padding:4px 8px;font-size:12px;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-inbox {display:block;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-postman {display:none;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] :is(.pm-letters,.pm-album-grid) {
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:8px;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] :is(.pm-card,.pm-album-card) {
 display:grid;grid-template-columns:72px minmax(0,1fr);align-content:start;align-items:center;
 gap:4px 8px;max-width:none;width:100%;margin:0;padding:8px;border-radius:14px;text-align:left;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] :is(.pm-card,.pm-album-card)>.pm-envelope {
 grid-area:1/1/span 4;width:72px;height:48px;max-height:none;margin:0;border-radius:8px;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] :is(.pm-card,.pm-album-card)>:not(.pm-envelope) {grid-column:2;min-width:0;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] :is(.pm-card,.pm-album-card) h3 {
 min-height:0;margin:0;text-align:left;--game-subtitle:17px;font-size:17px;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] :is(.pm-chapter,.pm-card-title) {
 min-height:0;margin:0;text-align:left;--game-text:13px;--game-note:12px;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] :is(.pm-card,.pm-album-card)>:is(.pm-rewards,.pm-button) {grid-column:1/-1;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-card>.pm-sent {top:5px;left:5px;font-size:10px;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-rewards {justify-content:flex-start;gap:4px 10px;margin:4px 0;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] :is(.pm-button,.pm-back,.pm-retry) {min-height:44px;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-button {font-size:14px;padding:7px 12px;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-back {display:inline-flex;align-items:center;padding:5px 2px;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-letter {
 grid-template-columns:minmax(70px,20%) minmax(0,1fr);padding:10px;gap:12px;border-radius:14px;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-letter-picture {align-self:start;width:100%;max-width:140px;margin:0;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-letter-title {
 margin:6px 0 10px;--game-subtitle:21px;font-size:21px;line-height:1.25;overflow-wrap:anywhere;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-story {
 margin:8px 0;--game-text:15px;font-size:15px;line-height:1.55 !important;white-space:pre-line;overflow-wrap:anywhere;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-letter-actions {
 display:flex;flex-wrap:wrap;gap:6px 12px;margin:8px 0 0;padding:8px 10px;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-letter-actions>.pm-button {min-width:0;width:auto;flex:1 1 180px;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout][data-confirm="true"] .pm-content>:is(.pm-summary,.pm-back,.pm-letter) {display:none;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-confirm {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;padding:10px;gap:8px;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-confirm :is(strong,p) {grid-column:1/-1;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-confirm .pm-back {justify-content:center;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-footer {margin:8px 0 0;padding:4px 0;font-size:11px;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-status {margin:8px 0 0;overflow-wrap:anywhere;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-news-list {max-width:none;margin:8px 0;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] :is(.pm-news-card,.pm-news-letter) {padding:10px 12px;min-width:0;overflow-wrap:anywhere;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-news-card .pm-button {flex:0 0 auto;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-journal-row {padding:9px 10px;margin-bottom:8px;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-reply {
 display:grid;grid-template-columns:80px minmax(0,1fr);gap:4px 10px;padding:10px;max-width:none;text-align:left;
}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-reply>.pm-envelope {grid-area:1/1/span 3;width:80px;margin:0;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-reply>:not(.pm-envelope) {grid-column:2;min-width:0;}
:root #winter-post[data-mail-layout="compact"] .pm-window[data-mail-layout] .pm-reply>:is(.pm-story,small) {grid-column:1/-1;}
