/* A small stationery collection, fitted to the existing garden palette. */
#shop .ritual-description em{font-style:italic}
#shop .lottery-balance{gap:10px;align-items:center;flex-wrap:wrap}
#shop .lottery-balance::before,#shop .lottery-balance::after,#lottery-balance::before,#lottery-balance::after{content:none!important}
#shop #lottery-balance.is-guest{font-family:inherit;font-size:13px;font-weight:400;line-height:1.5}
#mailbox .compose-stamp{pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:82px;height:99px;top:22px;right:24px;padding:6px;border:1px dashed #9aaf8a;border-radius:4px;background:var(--art-paper);color:var(--deep);opacity:1;transform:rotate(5deg);cursor:pointer;box-shadow:3px 4px 0 #9dab851b;transition:transform .2s,box-shadow .2s}
#mailbox .compose-stamp::after{content:none}
#mailbox .compose-stamp:hover{transform:rotate(0) translateY(-2px);box-shadow:2px 6px 12px #71835c24}
#mailbox .compose-stamp:disabled{cursor:default;opacity:.6}
.stamp-art{display:grid;place-items:center;flex:1;min-height:0;width:100%;font:40px/1 var(--serif);color:#829b71}
.stamp-caption{font:7px/1.6 sans-serif;letter-spacing:1.4px;white-space:nowrap;color:var(--muted)}
#mailbox .compose-head{padding-right:88px}
#letter-writing-surface{display:flex;flex-direction:column;min-height:0;width:100%;gap:9px}
#letter-writing-surface #letter-body{display:block;width:100%;margin:0}
#letter-writing-surface #letter-body[hidden],#letter-body-preview[hidden]{display:none!important}
.letter-format-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;flex-shrink:0}
.letter-format-toolbar button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:36px;height:34px;padding:5px 10px;border:1px solid var(--art-edge);border-radius:10px;background:var(--art-card);color:var(--deep);font-family:inherit;font-size:12px;line-height:1.3;cursor:pointer;transition:background .2s,transform .2s}
.letter-format-toolbar button:hover{background:var(--art-mint);transform:translateY(-1px)}
.letter-format-toolbar button:disabled{opacity:.4;cursor:default;transform:none}
.letter-format-toolbar [data-letter-style]{font-family:Georgia,serif;font-size:17px}
.letter-format-toolbar [aria-pressed=true]{background:var(--art-mint);border-color:var(--art-focus)}
.format-divider{height:17px;width:1px;background:var(--art-edge);margin:0 3px}
#letter-preview-toggle{margin-left:auto}
.format-hint{margin:0!important;font-size:10px!important;font-weight:400;color:var(--muted);line-height:1.65}
.yobu-letter-preview{min-height:240px;border:1px solid var(--art-edge);border-radius:20px;padding:17px 20px;background:var(--art-card);color:var(--deep);font-size:15px;overflow:auto}
.letter-editor #letter-writing-surface{flex:1;height:100%;min-height:0}
.letter-editor #letter-body,.letter-editor #letter-body-preview{flex:1;min-height:0;height:auto;overflow:auto;font-size:16px}
.letter-editor #letter-writing-surface>.format-hint{flex:none}
.emote-picker{width:min(490px,calc(100vw - 28px));max-width:490px;max-height:min(680px,88dvh);padding:0;border:1px solid var(--art-edge);border-radius:25px;background:var(--art-paper);color:var(--deep);box-shadow:0 24px 80px #1d3c3940;overflow:hidden}
.emote-picker[open]{display:flex;flex-direction:column}
.emote-picker::backdrop{background:#23382970;backdrop-filter:blur(4px)}
.emote-picker header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:20px 22px 15px;border-bottom:1px solid var(--art-edge);flex-shrink:0}
.emote-picker h3{font:500 19px/1.5 var(--serif);margin:3px 0 0}
.emote-picker .small-label{font-size:8px;letter-spacing:2px;margin:0;color:var(--muted)}
#emote-picker-close{position:relative;box-sizing:border-box;display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;padding:0;border:1px solid var(--art-edge);border-radius:50%;font-size:0;line-height:1;background:var(--art-card);color:var(--muted);cursor:pointer}
#emote-picker-close::before,#emote-picker-close::after{content:"";position:absolute;top:50%;left:50%;width:12px;height:1.5px;border-radius:1px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
#emote-picker-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
.emote-picker-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;padding:16px;overflow:auto;overscroll-behavior:contain;min-height:0}
.emote-picker-grid button{min-width:0;padding:5px 2px 6px;border:1px solid transparent;border-radius:14px;background:var(--art-card);color:var(--deep);cursor:pointer;transition:border-color .2s,background .2s,transform .2s}
.emote-picker-grid button:hover,.emote-picker-grid button[aria-pressed=true]{background:var(--art-mint);border-color:var(--art-focus);transform:translateY(-2px)}
.emote-picker-grid .yobu-inline-emote{width:100%!important;height:auto!important;aspect-ratio:1;margin:0}
.emote-picker-grid span{display:block;font-size:10px;font-weight:400;line-height:1.5}
.emote-picker footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px 16px;font-size:10px;color:var(--muted);flex-shrink:0;border-top:1px solid var(--art-edge)}
#letter-stamp-remove{border:0;border-bottom:1px solid var(--art-edge);padding:4px 0;color:var(--deep);background:none;font:inherit;white-space:nowrap;cursor:pointer}
#letter-stamp-remove[hidden]{display:none}
:is(.letter-format-toolbar button,.compose-stamp,.emote-picker button,.sidebar-profile):focus-visible{outline:2px solid var(--art-focus);outline-offset:3px}
.sidebar-eyebrow{display:none}
@media(max-width:760px){
 dialog.mobile-sidebar{width:min(87vw,334px);border-right:1px solid var(--art-edge);border-radius:0 28px 28px 0;background:var(--art-paper)}
 .sidebar-eyebrow{display:block;margin:0;padding:28px 24px 8px;font-size:8px;letter-spacing:2.2px;color:var(--muted);line-height:1.6}
 .sidebar-close{top:18px;right:16px;width:30px;height:30px;font-size:20px;background:transparent;border-color:transparent}
 button.sidebar-profile{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr);grid-template-rows:auto auto auto;align-items:center;gap:2px 13px;width:calc(100% - 36px);margin:9px 18px 18px;padding:18px 14px;border:1px solid var(--art-edge);border-radius:22px;background:linear-gradient(125deg,var(--art-mint),var(--art-paper));color:var(--deep);text-align:left;cursor:pointer;box-shadow:0 8px 22px #65816110;overflow:hidden}
 button.sidebar-profile::after{content:'♧';position:absolute;right:-15px;bottom:-32px;font:130px/1 var(--serif);color:var(--art-focus);opacity:.07;pointer-events:none;transform:rotate(-18deg)}
 #sidebar-avatar{grid-column:1;grid-row:1/4;width:58px;height:58px;margin:0;border:3px solid var(--art-card);border-radius:50%;box-shadow:0 2px 10px #556d4220}
 #sidebar-name{grid-column:2;grid-row:1;font-size:18px;line-height:1.5;position:relative;z-index:1}
 #sidebar-identity{grid-column:2;grid-row:2;font-size:10px;line-height:1.6}
 .sidebar-account-hint{grid-column:2;grid-row:3;font-size:9px;letter-spacing:.1em;color:var(--deep);margin-top:5px}
 .sidebar-account-hint>span{padding-left:6px}
 .sidebar-links{padding:0 18px max(22px,env(safe-area-inset-bottom));gap:3px}
 .sidebar-links a{position:relative;display:flex;align-items:center;gap:13px;padding:10px 14px;min-height:44px;border:1px solid transparent;border-radius:13px;font-size:12px;letter-spacing:.1em;line-height:1.5;transition:background .2s,border .2s,translate .2s}
 .sidebar-links a svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.35;stroke-linecap:round;stroke-linejoin:round;opacity:.65;flex:none}
 .sidebar-link-arrow{margin-left:auto;font-size:13px;opacity:.28}
 .sidebar-links a.active{background:var(--art-mint);border-color:var(--art-edge);box-shadow:none}
 .sidebar-links a.active svg{opacity:1}
 .sidebar-links a.active .sidebar-link-arrow{opacity:.75}
 .sidebar-links a.sidebar-council{margin-top:9px;border-top:1px solid var(--art-edge);border-radius:0;padding-top:16px}
 #memories .sync-panel{grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:24px;padding:16px 14px}
 #memories .sync-copy{gap:9px;min-width:0}
 #memories .sync-copy>div{min-width:0}
 #memories #sync-title{font-size:13px;line-height:1.55;margin-bottom:4px}
 #memories #sync-desc{font-size:9px}
 #memories #sync-badge{width:39px;height:39px;flex-basis:39px}
 #memories .sync-actions{padding:0;width:auto;align-self:center}
 #memories .sync-actions .btn,#memories .sync-actions .btn.primary{min-height:35px;white-space:nowrap;padding:7px 12px;font-size:11px;flex:none}
 #memories .yearring-panel{margin-top:24px}
 .footer{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:end;gap:0 12px}
 .footer .footer-brand{display:contents}
 .footer .signature-crop{grid-column:2;grid-row:1;justify-self:center}
 .footer .footer-brand>span{grid-column:2;grid-row:2;justify-self:center;line-height:28px}
 .footer .footer-meta{grid-column:1;grid-row:2;align-self:baseline;display:block}
 .footer .footer-version{min-height:28px;line-height:28px;padding-top:0;padding-bottom:0}
 #mailbox .compose-stamp{width:65px;height:80px;right:16px;top:19px;padding:5px;transform:rotate(4deg)}
 #mailbox .compose-head{padding-right:75px}
 .stamp-caption{font-size:6px;letter-spacing:1px}
 .stamp-art{font-size:31px}
 .emote-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:13px}
 .emote-picker-grid .yobu-inline-emote{max-height:88px;object-fit:contain}
 .emote-picker header{padding:17px 16px 12px}
 .emote-picker h3{font-size:17px}
 .emote-picker footer{font-size:9px}
 .yobu-letter-preview{padding:14px 16px;font-size:16px}
}
@media(max-width:760px) and (max-height:700px){
 .sidebar-eyebrow{padding-top:20px}
 button.sidebar-profile{margin-top:5px;margin-bottom:12px;padding:12px;grid-template-columns:50px minmax(0,1fr)}
 #sidebar-avatar{width:50px;height:50px}
 #sidebar-name{font-size:16px}
 .sidebar-links a{min-height:35px;padding:7px 12px;font-size:11px}
 .sidebar-links a.sidebar-council{margin-top:5px;padding-top:11px}
 #memories .sync-panel{margin-bottom:16px;padding:12px 11px;gap:7px}
 #memories #sync-title{font-size:11px}
 #memories #sync-desc{font-size:8px}
 #memories .sync-copy{gap:7px}
 #memories #sync-badge{width:32px;height:32px;flex-basis:32px}
 #memories .sync-actions .btn,#memories .sync-actions .btn.primary{padding:6px 9px;font-size:10px;min-height:32px}
 #memories .yearring-panel{margin-top:16px}
}
html[data-theme=dark] button.sidebar-profile{background:linear-gradient(125deg,var(--surface-soft),var(--surface))}
html[data-theme=dark] :is(.emote-picker,.yobu-letter-preview,#mailbox .compose-stamp){background:var(--surface);color:var(--deep)}
html[data-theme=dark] :is(.letter-format-toolbar button,.emote-picker-grid button){background:var(--surface-soft)}
@media(prefers-reduced-motion:reduce){.compose-stamp,.emote-picker-grid button,.letter-format-toolbar button{transition:none!important}}
