/* v0.13: focused corrections from the all-screen review. */
html{scroll-padding-top:104px}
.unread-badge{display:inline-block;font:10px/1.2 var(--mono);background:#e9b651;color:#211b10;border-radius:20px;padding:3px 6px;margin-left:6px;vertical-align:middle}
.mobile-nav .unread-badge{position:absolute;top:2px;right:8px;margin:0}
.match-back{display:none}
.matches-layout.is-empty{grid-template-columns:minmax(0,1fr)}
.matches-layout.is-empty>.panel{width:100%}
.matches-layout.is-empty .blocked-state{min-height:260px}
.matches-layout.is-empty .cold-shelf{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:16px}
.matches-layout.is-empty .cold-shelf article{min-width:0}
.note-card .note-context{grid-template-columns:240px minmax(0,1fr)}
.note-card .context-shelf{padding:20px}
.note-card .context-games{display:grid;gap:16px}
.note-card .context-game{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center;min-width:0}
.note-card .context-game .mini-cover{width:44px;height:60px;margin:0;flex-shrink:0}
.note-card .context-game strong{font-size:14px;overflow-wrap:anywhere}
.note-card .context-game small{font-size:11px}
.note-card .note-exchange{min-height:0}
.note-card .notes-thread{min-height:0;flex:0 0 auto;padding:20px;gap:14px}
.note-card .thread-prompt{padding:18px 16px;margin:0}
.note-card .thread-prompt span{font-size:18px}
.note-card .thread-prompt small{margin-top:8px}
.note-card .composer.is-locked{display:none}
.note-sent-status{padding:16px 20px;margin:0;border-top:1px solid var(--line);font-size:14px;color:#d8c39e}
.note-card .note-safety{padding-top:12px;padding-bottom:12px;align-items:center;flex-wrap:nowrap}
.note-card .note-safety span{flex:1;min-width:0;overflow-wrap:anywhere;margin-right:0}
.note-card .note-safety button{flex-shrink:0}
.note-card .composer textarea{min-height:104px}
.invite-hero:has(.invite-empty:not([hidden])){grid-template-columns:1fr;min-height:280px}
.invite-hero:has(.invite-empty:not([hidden])) .invite-linkbox{display:none}
.invite-empty p{margin:16px 0}
.share-empty-preview{padding:40px 20px;margin:0;text-align:center}
.invite-game[hidden]{display:none!important}
.toast-region{bottom:28px}
@media(max-width:900px){
 .match-back{display:block;margin:16px 20px 8px;color:#e6c58b;min-height:44px}
 .note-card .note-context{grid-template-columns:200px minmax(0,1fr)}
 .matches-layout.is-empty .cold-shelf{grid-template-columns:1fr}
}
@media(max-width:680px){
 html{scroll-padding-top:88px}
 .note-card>.panel-paper-head{padding:16px}
 .note-card>.panel-paper-head .micro{margin-bottom:8px}
 .note-card>.panel-paper-head h2{font-size:2rem;margin-bottom:8px}
 .note-card>.panel-paper-head p{font-size:14px}
 .note-card .note-status-strip{display:none}
 .note-card .note-safety{gap:12px;padding:12px 18px}
 .note-card .note-safety span{width:auto;margin-right:auto}
 .note-card .note-context{grid-template-columns:1fr}
 .note-card .context-shelf{padding:14px 18px}
 .note-card .context-shelf h4{margin-bottom:10px}
 .note-card .context-games{display:flex;flex-wrap:wrap;gap:12px}
 .note-card .context-game{flex:1 1 140px;grid-template-columns:30px minmax(0,1fr);gap:8px}
 .note-card .context-game .mini-cover{width:30px;height:40px}
 .note-card .context-game strong{font-size:12px;line-height:1.4}
 .note-card .context-game small{display:none}
 .note-card .notes-thread{padding:14px 18px}
 .note-card .thread-prompt{padding:12px}
 .note-card .thread-prompt span{font-size:16px}
 .note-card .composer{padding:14px 18px}
 .note-card .composer-row{gap:10px}
 .note-card .reveal-discord{padding:16px 18px}
 .note-card .reveal-discord span{font-size:12px}
 .activity-card{padding:16px 14px;display:flex;flex-direction:column}
 .activity-card>strong{min-height:0;font-size:23px;margin-bottom:12px}
 .activity-card>span{min-height:0;font-size:13px;margin-bottom:14px}
 .activity-card button{margin-top:auto}
 .dashboard-hero{padding:20px}
 .dashboard-hero h2{font-size:2.5rem}
 .toast-region{bottom:calc(84px + env(safe-area-inset-bottom))}
 body[data-view="games"] .toast-region{bottom:calc(276px + env(safe-area-inset-bottom))}
}

.connection-notice{margin:0 auto;padding:16px max(20px,5%);border-bottom:1px solid #84643e;background:#30251b;color:#efdfc2;justify-content:space-between;gap:24px}
.connection-notice>div{min-width:0;display:grid;gap:5px;max-width:850px}
.connection-notice strong{font:20px/1.2 var(--serif)}
.connection-notice span{font-size:13px;line-height:1.5;color:#ddc9a8}
.connection-notice .ticket-btn{flex:none;white-space:nowrap}
.archive-sync{display:flex;align-items:center;flex-wrap:wrap;gap:10px 20px;margin-top:18px;color:#dac6a4;font-size:12px}
.archive-sync .text-button{min-height:40px;color:#f0c47b;font-size:13px;text-decoration:underline;text-underline-offset:4px}
button[aria-busy="true"]{cursor:wait}
@media(max-width:680px){.connection-notice{align-items:flex-start;gap:12px;flex-wrap:wrap;padding:16px 20px}.connection-notice>div{flex:1 1 230px}.connection-notice strong{font-size:19px}.connection-notice .ticket-btn{min-height:44px}.archive-sync{gap:4px 14px}}
